/* * Select2 4.0.4 * https://select2.github.io * * Released under the MIT license * https://github.com/select2/select2/blob/master/LICENSE.md */ (function(a){if(typeof define==="function"&&define.amd){define(["jquery"],a)}else{if(typeof module==="object"&&module.exports){module.exports=function(c,b){if(b===undefined){if(typeof window!=="undefined"){b=require("jquery")}else{b=require("jquery")(c)}}a(b);return b}}else{a(jQuery)}}}(function(a){var b=(function(){if(a&&a.fn&&a.fn.select2&&a.fn.select2.amd){var d=a.fn.select2.amd}var d;(function(){if(!d||!d.requirejs){if(!d){d={}}else{f=d}var g,f,e;(function(A){var q,y,t,m,k={},B={},j={},l={},n=Object.prototype.hasOwnProperty,h=[].slice,p=/\.js$/;function o(C,D){return n.call(C,D)}function x(M,C){var N,O,L,F,J,E,G,R,H,I,Q,P,D=C&&C.split("/"),K=j.map,S=(K&&K["*"])||{};if(M){M=M.split("/");J=M.length-1;if(j.nodeIdCompat&&p.test(M[J])){M[J]=M[J].replace(p,"")}if(M[0].charAt(0)==="."&&D){P=D.slice(0,D.length-1);M=P.concat(M)}for(H=0;H0){M.splice(H-1,2);H-=2}}}}}M=M.join("/")}if((D||S)&&K){N=M.split("/");for(H=N.length;H>0;H-=1){O=N.slice(0,H).join("/");if(D){for(I=D.length;I>0;I-=1){L=K[D.slice(0,I).join("/")];if(L){L=L[O];if(L){F=L;E=H;break}}}}if(F){break}if(!G&&S&&S[O]){G=S[O];R=H}}if(!F&&G){F=G;E=R}if(F){N.splice(0,E,F);M=N.join("/")}}return M}function w(D,C){return function(){var E=h.call(arguments,0);if(typeof E[0]!=="string"&&E.length===1){E.push(null)}return y.apply(A,E.concat([D,C]))}}function u(C){return function(D){return x(D,C)}}function s(C){return function(D){k[C]=D}}function i(D){if(o(B,D)){var C=B[D];delete B[D];l[D]=true;q.apply(A,C)}if(!o(k,D)&&!o(l,D)){throw new Error("No "+D)}return k[D]}function z(D){var E,C=D?D.indexOf("!"):-1;if(C>-1){E=D.substring(0,C);D=D.substring(C+1,D.length)}return[E,D]}function v(C){return C?z(C):[]}t=function(C,G){var E,D=z(C),F=D[0],H=G[1];C=D[1];if(F){F=x(F,H);E=i(F)}if(F){if(E&&E.normalize){C=E.normalize(C,u(H))}else{C=x(C,H)}}else{C=x(C,H);D=z(C);F=D[0];C=D[1];if(F){E=i(F)}}return{f:F?F+"!"+C:C,n:C,pr:F,p:E}};function r(C){return function(){return(j&&j.config&&j.config[C])||{}}}m={require:function(C){return w(C)},exports:function(D){var C=k[D];if(typeof C!=="undefined"){return C}else{return(k[D]={})}},module:function(C){return{id:C,uri:"",exports:k[C],config:r(C)}}};q=function(K,H,D,L){var F,G,N,J,I,M,C=[],E=typeof D,O;L=L||K;M=v(L);if(E==="undefined"||E==="function"){H=!H.length&&D.length?["require","exports","module"]:H;for(I=0;I0){v.call(arguments,r.prototype.constructor);u=p.prototype.constructor}u.apply(this,arguments)}p.displayName=r.displayName;function j(){this.constructor=l}l.prototype=new j();for(var q=0;q":">",'"':""","'":"'","/":"/"};if(typeof i!=="string"){return i}return String(i).replace(/[&<>"'\/\\]/g,function(k){return j[k]})};h.appendMany=function(i,k){if(e.fn.jquery.substr(0,3)==="1.7"){var j=e();e.map(k,function(l){j=j.add(l)});k=j}i.append(k)};return h});d.define("select2/results",["jquery","./utils"],function(e,g){function f(h,j,i){this.$element=h;this.data=i;this.options=j;f.__super__.constructor.call(this)}g.Extend(f,g.Observable);f.prototype.render=function(){var h=e('
    ');if(this.options.get("multiple")){h.attr("aria-multiselectable","true")}this.$results=h;return h};f.prototype.clear=function(){this.$results.empty()};f.prototype.displayMessage=function(k){var i=this.options.get("escapeMarkup");this.clear();this.hideLoading();var h=e('
  • ');var j=this.options.get("translations").get(k.message);h.append(i(j(k.args)));h[0].className+=" select2-results__message";this.$results.append(h)};f.prototype.hideMessages=function(){this.$results.find(".select2-results__message").remove()};f.prototype.append=function(k){this.hideLoading();var i=[];if(k.results==null||k.results.length===0){if(this.$results.children().length===0){this.trigger("results:message",{message:"noResults"})}return}k.results=this.sort(k.results);for(var j=0;j0){i.first().trigger("mouseenter")}else{h.first().trigger("mouseenter")}this.ensureHighlightVisible()};f.prototype.setClasses=function(){var h=this;this.data.current(function(j){var k=e.map(j,function(l){return l.id.toString()});var i=h.$results.find(".select2-results__option[aria-selected]");i.each(function(){var l=e(this);var n=e.data(this,"data");var m=""+n.id;if((n.element!=null&&n.element.selected)||(n.element==null&&e.inArray(m,k)>-1)){l.attr("aria-selected","true")}else{l.attr("aria-selected","false")}})})};f.prototype.showLoading=function(k){this.hideLoading();var j=this.options.get("translations").get("searching");var i={disabled:true,loading:true,text:j(k)};var h=this.option(i);h.className+=" loading-results";this.$results.prepend(h)};f.prototype.hideLoading=function(){this.$results.find(".loading-results").remove()};f.prototype.option=function(q){var s=document.createElement("li");s.className="select2-results__option";var n={role:"treeitem","aria-selected":"false"};if(q.disabled){delete n["aria-selected"];n["aria-disabled"]="true"}if(q.id==null){delete n["aria-selected"]}if(q._resultId!=null){s.id=q._resultId}if(q.title){s.title=q.title}if(q.children){n.role="group";n["aria-label"]=q.text;delete n["aria-selected"]}for(var m in n){var t=n[m];s.setAttribute(m,t)}if(q.children){var l=e(s);var r=document.createElement("strong");r.className="select2-results__group";var k=e(r);this.template(q,r);var i=[];for(var o=0;o",{"class":"select2-results__options select2-results__options--nested"});j.append(i);l.append(r);l.append(j)}else{this.template(q,s)}e.data(s,"data",q);return s};f.prototype.bind=function(i,h){var k=this;var j=i.id+"-results";this.$results.attr("id",j);i.on("results:all",function(l){k.clear();k.append(l.data);if(i.isOpen()){k.setClasses();k.highlightFirstItem()}});i.on("results:append",function(l){k.append(l.data);if(i.isOpen()){k.setClasses()}});i.on("query",function(l){k.hideMessages();k.showLoading(l)});i.on("select",function(){if(!i.isOpen()){return}k.setClasses();k.highlightFirstItem()});i.on("unselect",function(){if(!i.isOpen()){return}k.setClasses();k.highlightFirstItem()});i.on("open",function(){k.$results.attr("aria-expanded","true");k.$results.attr("aria-hidden","false");k.setClasses();k.ensureHighlightVisible()});i.on("close",function(){k.$results.attr("aria-expanded","false");k.$results.attr("aria-hidden","true");k.$results.removeAttr("aria-activedescendant")});i.on("results:toggle",function(){var l=k.getHighlightedResults();if(l.length===0){return}l.trigger("mouseup")});i.on("results:select",function(){var l=k.getHighlightedResults();if(l.length===0){return}var m=l.data("data");if(l.attr("aria-selected")=="true"){k.trigger("close",{})}else{k.trigger("select",{data:m})}});i.on("results:previous",function(){var l=k.getHighlightedResults();var n=k.$results.find("[aria-selected]");var o=n.index(l);if(o===0){return}var q=o-1;if(l.length===0){q=0}var m=n.eq(q);m.trigger("mouseenter");var p=k.$results.offset().top;var s=m.offset().top;var r=k.$results.scrollTop()+(s-p);if(q===0){k.$results.scrollTop(0)}else{if(s-p<0){k.$results.scrollTop(r)}}});i.on("results:next",function(){var l=k.getHighlightedResults();var n=k.$results.find("[aria-selected]");var o=n.index(l);var r=o+1;if(r>=n.length){return}var m=n.eq(r);m.trigger("mouseenter");var p=k.$results.offset().top+k.$results.outerHeight(false);var q=m.offset().top+m.outerHeight(false);var s=k.$results.scrollTop()+q-p;if(r===0){k.$results.scrollTop(0)}else{if(q>p){k.$results.scrollTop(s)}}});i.on("results:focus",function(l){l.element.addClass("select2-results__option--highlighted")});i.on("results:message",function(l){k.displayMessage(l)});if(e.fn.mousewheel){this.$results.on("mousewheel",function(m){var p=k.$results.scrollTop();var l=k.$results.get(0).scrollHeight-p+m.deltaY;var o=m.deltaY>0&&p-m.deltaY<=0;var n=m.deltaY<0&&l<=k.$results.height();if(o){k.$results.scrollTop(0);m.preventDefault();m.stopPropagation()}else{if(n){k.$results.scrollTop(k.$results.get(0).scrollHeight-k.$results.height());m.preventDefault();m.stopPropagation()}}})}this.$results.on("mouseup",".select2-results__option[aria-selected]",function(n){var l=e(this);var m=l.data("data");if(l.attr("aria-selected")==="true"){if(k.options.get("multiple")){k.trigger("unselect",{originalEvent:n,data:m})}else{k.trigger("close",{})}return}k.trigger("select",{originalEvent:n,data:m})});this.$results.on("mouseenter",".select2-results__option[aria-selected]",function(m){var l=e(this).data("data");k.getHighlightedResults().removeClass("select2-results__option--highlighted");k.trigger("results:focus",{data:l,element:e(this)})})};f.prototype.getHighlightedResults=function(){var h=this.$results.find(".select2-results__option--highlighted");return h};f.prototype.destroy=function(){this.$results.remove()};f.prototype.ensureHighlightVisible=function(){var h=this.getHighlightedResults();if(h.length===0){return}var i=this.$results.find("[aria-selected]");var j=i.index(h);var k=this.$results.offset().top;var m=h.offset().top;var l=this.$results.scrollTop()+(m-k);var n=m-k;l-=h.outerHeight(false)*2;if(j<=2){this.$results.scrollTop(0)}else{if(n>this.$results.outerHeight()||n<0){this.$results.scrollTop(l)}}};f.prototype.template=function(k,h){var l=this.options.get("templateResult");var j=this.options.get("escapeMarkup");var i=l(k,h);if(i==null){h.style.display="none"}else{if(typeof i==="string"){h.innerHTML=j(i)}else{e(h).append(i)}}};return f});d.define("select2/keys",[],function(){var e={BACKSPACE:8,TAB:9,ENTER:13,SHIFT:16,CTRL:17,ALT:18,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46};return e});d.define("select2/selection/base",["jquery","../utils","../keys"],function(e,h,g){function f(i,j){this.$element=i;this.options=j;f.__super__.constructor.call(this)}h.Extend(f,h.Observable);f.prototype.render=function(){var i=e('');this._tabindex=0;if(this.$element.data("old-tabindex")!=null){this._tabindex=this.$element.data("old-tabindex")}else{if(this.$element.attr("tabindex")!=null){this._tabindex=this.$element.attr("tabindex")}}i.attr("title",this.$element.attr("title"));i.attr("tabindex",this._tabindex);this.$selection=i;return i};f.prototype.bind=function(j,i){var m=this;var k=j.id+"-container";var l=j.id+"-results";this.container=j;this.$selection.on("focus",function(n){m.trigger("focus",n)});this.$selection.on("blur",function(n){m._handleBlur(n)});this.$selection.on("keydown",function(n){m.trigger("keypress",n);if(n.which===g.SPACE){n.preventDefault()}});j.on("results:focus",function(n){m.$selection.attr("aria-activedescendant",n.data._resultId)});j.on("selection:update",function(n){m.update(n.data)});j.on("open",function(){m.$selection.attr("aria-expanded","true");m.$selection.attr("aria-owns",l);m._attachCloseHandler(j)});j.on("close",function(){m.$selection.attr("aria-expanded","false");m.$selection.removeAttr("aria-activedescendant");m.$selection.removeAttr("aria-owns");m.$selection.focus();m._detachCloseHandler(j)});j.on("enable",function(){m.$selection.attr("tabindex",m._tabindex)});j.on("disable",function(){m.$selection.attr("tabindex","-1")})};f.prototype._handleBlur=function(i){var j=this;window.setTimeout(function(){if((document.activeElement==j.$selection[0])||(e.contains(j.$selection[0],document.activeElement))){return}j.trigger("blur",i)},1)};f.prototype._attachCloseHandler=function(i){var j=this;e(document.body).on("mousedown.select2."+i.id,function(n){var m=e(n.target);var l=m.closest(".select2");var k=e(".select2.select2-container--open");k.each(function(){var p=e(this);if(this==l[0]){return}var o=p.data("element");o.select2("close")})})};f.prototype._detachCloseHandler=function(i){e(document.body).off("mousedown.select2."+i.id)};f.prototype.position=function(j,i){var k=i.find(".selection");k.append(j)};f.prototype.destroy=function(){this._detachCloseHandler(this.container)};f.prototype.update=function(i){throw new Error("The `update` method must be defined in child classes.")};return f});d.define("select2/selection/single",["jquery","./base","../utils","../keys"],function(e,f,i,g){function h(){h.__super__.constructor.apply(this,arguments)}i.Extend(h,f);h.prototype.render=function(){var j=h.__super__.render.call(this);j.addClass("select2-selection--single");j.html('');return j};h.prototype.bind=function(k,j){var m=this;h.__super__.bind.apply(this,arguments);var l=k.id+"-container";this.$selection.find(".select2-selection__rendered").attr("id",l);this.$selection.attr("aria-labelledby",l);this.$selection.on("mousedown",function(n){if(n.which!==1){return}m.trigger("toggle",{originalEvent:n})});this.$selection.on("focus",function(n){});this.$selection.on("blur",function(n){});k.on("focus",function(n){if(!k.isOpen()){m.$selection.focus()}});k.on("selection:update",function(n){m.update(n.data)})};h.prototype.clear=function(){this.$selection.find(".select2-selection__rendered").empty()};h.prototype.display=function(k,j){var m=this.options.get("templateSelection");var l=this.options.get("escapeMarkup");return l(m(k,j))};h.prototype.selectionContainer=function(){return e("")};h.prototype.update=function(k){if(k.length===0){this.clear();return}var m=k[0];var j=this.$selection.find(".select2-selection__rendered");var l=this.display(m,j);j.empty().append(l);j.prop("title",m.title||m.text)};return h});d.define("select2/selection/multiple",["jquery","./base","../utils"],function(e,f,h){function g(i,j){g.__super__.constructor.apply(this,arguments)}h.Extend(g,f);g.prototype.render=function(){var i=g.__super__.render.call(this);i.addClass("select2-selection--multiple");i.html('
      ');return i};g.prototype.bind=function(j,i){var k=this;g.__super__.bind.apply(this,arguments);this.$selection.on("click",function(l){k.trigger("toggle",{originalEvent:l})});this.$selection.on("click",".select2-selection__choice__remove",function(o){if(k.options.get("disabled")){return}var l=e(this);var m=l.parent();var n=m.data("data");k.trigger("unselect",{originalEvent:o,data:n})})};g.prototype.clear=function(){this.$selection.find(".select2-selection__rendered").empty()};g.prototype.display=function(j,i){var l=this.options.get("templateSelection");var k=this.options.get("escapeMarkup");return k(l(j,i))};g.prototype.selectionContainer=function(){var i=e('
    • ×
    • ');return i};g.prototype.update=function(m){this.clear();if(m.length===0){return}var k=[];for(var l=0;l1;if(j||k){return i.call(this,h)}this.clear();var g=this.createPlaceholder(this.placeholder);this.$selection.find(".select2-selection__rendered").append(g)};return e});d.define("select2/selection/allowClear",["jquery","../keys"],function(e,g){function f(){}f.prototype.bind=function(j,i,h){var k=this;j.call(this,i,h);if(this.placeholder==null){if(this.options.get("debug")&&window.console&&console.error){console.error("Select2: The `allowClear` option should be used in combination with the `placeholder` option.")}}this.$selection.on("mousedown",".select2-selection__clear",function(l){k._handleClear(l)});i.on("keypress",function(l){k._handleKeyboardClear(l,i)})};f.prototype._handleClear=function(i,l){if(this.options.get("disabled")){return}var h=this.$selection.find(".select2-selection__clear");if(h.length===0){return}l.stopPropagation();var k=h.data("data");for(var j=0;j0||i.length===0){return}var h=e('×');h.data("data",i);this.$selection.find(".select2-selection__rendered").prepend(h)};return f});d.define("select2/selection/search",["jquery","../utils","../keys"],function(e,h,f){function g(j,i,k){j.call(this,i,k)}g.prototype.render=function(k){var j=e('');this.$searchContainer=j;this.$search=j.find("input");var i=k.call(this);this._transferTabIndex();return i};g.prototype.bind=function(k,j,i){var n=this;k.call(this,j,i);j.on("open",function(){n.$search.trigger("focus")});j.on("close",function(){n.$search.val("");n.$search.removeAttr("aria-activedescendant");n.$search.trigger("focus")});j.on("enable",function(){n.$search.prop("disabled",false);n._transferTabIndex()});j.on("disable",function(){n.$search.prop("disabled",true)});j.on("focus",function(o){n.$search.trigger("focus")});j.on("results:focus",function(o){n.$search.attr("aria-activedescendant",o.id)});this.$selection.on("focusin",".select2-search--inline",function(o){n.trigger("focus",o)});this.$selection.on("focusout",".select2-search--inline",function(o){n._handleBlur(o)});this.$selection.on("keydown",".select2-search--inline",function(p){p.stopPropagation();n.trigger("keypress",p);n._keyUpPrevented=p.isDefaultPrevented();var r=p.which;if(r===f.BACKSPACE&&n.$search.val()===""){var o=n.$searchContainer.prev(".select2-selection__choice");if(o.length>0){var q=o.data("data");n.searchRemoveChoice(q);p.preventDefault()}}});var m=document.documentMode;var l=m&&m<=11;this.$selection.on("input.searchcheck",".select2-search--inline",function(o){if(l){n.$selection.off("input.search input.searchcheck");return}n.$selection.off("keyup.search")});this.$selection.on("keyup.search input.search",".select2-search--inline",function(o){if(l&&o.type==="input"){n.$selection.off("input.search input.searchcheck");return}var p=o.which;if(p==f.SHIFT||p==f.CTRL||p==f.ALT){return}if(p==f.TAB){return}n.handleSearch(o)})};g.prototype._transferTabIndex=function(i){this.$search.attr("tabindex",this.$selection.attr("tabindex"));this.$selection.attr("tabindex","-1")};g.prototype.createPlaceholder=function(i,j){this.$search.attr("placeholder",j.text)};g.prototype.update=function(j,i){var k=this.$search[0]==document.activeElement;this.$search.attr("placeholder","");j.call(this,i);this.$selection.find(".select2-selection__rendered").append(this.$searchContainer);this.resizeSearch();if(k){this.$search.focus()}};g.prototype.handleSearch=function(){this.resizeSearch();if(!this._keyUpPrevented){var i=this.$search.val();this.trigger("query",{term:i})}this._keyUpPrevented=false};g.prototype.searchRemoveChoice=function(i,j){this.trigger("unselect",{data:j});this.$search.val(j.text);this.handleSearch()};g.prototype.resizeSearch=function(){this.$search.css("width","25px");var j="";if(this.$search.attr("placeholder")!==""){j=this.$selection.find(".select2-selection__rendered").innerWidth()}else{var i=this.$search.val().length+1;j=(i*0.75)+"em"}this.$search.css("width",j)};return g});d.define("select2/selection/eventRelay",["jquery"],function(e){function f(){}f.prototype.bind=function(i,h,g){var l=this;var k=["open","opening","close","closing","select","selecting","unselect","unselecting"];var j=["opening","closing","selecting","unselecting"];i.call(this,h,g);h.on("*",function(n,o){if(e.inArray(n,k)===-1){return}o=o||{};var m=e.Event("select2:"+n,{params:o});l.$element.trigger(m);if(e.inArray(n,j)===-1){return}o.prevented=m.isDefaultPrevented()})};return f});d.define("select2/translation",["jquery","require"],function(e,f){function g(h){this.dict=h||{}}g.prototype.all=function(){return this.dict};g.prototype.get=function(h){return this.dict[h]};g.prototype.extend=function(h){this.dict=e.extend({},h.all(),this.dict)};g._cache={};g.loadPath=function(h){if(!(h in g._cache)){var i=f(h);g._cache[h]=i}return new g(g._cache[h])};return g});d.define("select2/diacritics",[],function(){var e={"\u24B6":"A","\uFF21":"A","\u00C0":"A","\u00C1":"A","\u00C2":"A","\u1EA6":"A","\u1EA4":"A","\u1EAA":"A","\u1EA8":"A","\u00C3":"A","\u0100":"A","\u0102":"A","\u1EB0":"A","\u1EAE":"A","\u1EB4":"A","\u1EB2":"A","\u0226":"A","\u01E0":"A","\u00C4":"A","\u01DE":"A","\u1EA2":"A","\u00C5":"A","\u01FA":"A","\u01CD":"A","\u0200":"A","\u0202":"A","\u1EA0":"A","\u1EAC":"A","\u1EB6":"A","\u1E00":"A","\u0104":"A","\u023A":"A","\u2C6F":"A","\uA732":"AA","\u00C6":"AE","\u01FC":"AE","\u01E2":"AE","\uA734":"AO","\uA736":"AU","\uA738":"AV","\uA73A":"AV","\uA73C":"AY","\u24B7":"B","\uFF22":"B","\u1E02":"B","\u1E04":"B","\u1E06":"B","\u0243":"B","\u0182":"B","\u0181":"B","\u24B8":"C","\uFF23":"C","\u0106":"C","\u0108":"C","\u010A":"C","\u010C":"C","\u00C7":"C","\u1E08":"C","\u0187":"C","\u023B":"C","\uA73E":"C","\u24B9":"D","\uFF24":"D","\u1E0A":"D","\u010E":"D","\u1E0C":"D","\u1E10":"D","\u1E12":"D","\u1E0E":"D","\u0110":"D","\u018B":"D","\u018A":"D","\u0189":"D","\uA779":"D","\u01F1":"DZ","\u01C4":"DZ","\u01F2":"Dz","\u01C5":"Dz","\u24BA":"E","\uFF25":"E","\u00C8":"E","\u00C9":"E","\u00CA":"E","\u1EC0":"E","\u1EBE":"E","\u1EC4":"E","\u1EC2":"E","\u1EBC":"E","\u0112":"E","\u1E14":"E","\u1E16":"E","\u0114":"E","\u0116":"E","\u00CB":"E","\u1EBA":"E","\u011A":"E","\u0204":"E","\u0206":"E","\u1EB8":"E","\u1EC6":"E","\u0228":"E","\u1E1C":"E","\u0118":"E","\u1E18":"E","\u1E1A":"E","\u0190":"E","\u018E":"E","\u24BB":"F","\uFF26":"F","\u1E1E":"F","\u0191":"F","\uA77B":"F","\u24BC":"G","\uFF27":"G","\u01F4":"G","\u011C":"G","\u1E20":"G","\u011E":"G","\u0120":"G","\u01E6":"G","\u0122":"G","\u01E4":"G","\u0193":"G","\uA7A0":"G","\uA77D":"G","\uA77E":"G","\u24BD":"H","\uFF28":"H","\u0124":"H","\u1E22":"H","\u1E26":"H","\u021E":"H","\u1E24":"H","\u1E28":"H","\u1E2A":"H","\u0126":"H","\u2C67":"H","\u2C75":"H","\uA78D":"H","\u24BE":"I","\uFF29":"I","\u00CC":"I","\u00CD":"I","\u00CE":"I","\u0128":"I","\u012A":"I","\u012C":"I","\u0130":"I","\u00CF":"I","\u1E2E":"I","\u1EC8":"I","\u01CF":"I","\u0208":"I","\u020A":"I","\u1ECA":"I","\u012E":"I","\u1E2C":"I","\u0197":"I","\u24BF":"J","\uFF2A":"J","\u0134":"J","\u0248":"J","\u24C0":"K","\uFF2B":"K","\u1E30":"K","\u01E8":"K","\u1E32":"K","\u0136":"K","\u1E34":"K","\u0198":"K","\u2C69":"K","\uA740":"K","\uA742":"K","\uA744":"K","\uA7A2":"K","\u24C1":"L","\uFF2C":"L","\u013F":"L","\u0139":"L","\u013D":"L","\u1E36":"L","\u1E38":"L","\u013B":"L","\u1E3C":"L","\u1E3A":"L","\u0141":"L","\u023D":"L","\u2C62":"L","\u2C60":"L","\uA748":"L","\uA746":"L","\uA780":"L","\u01C7":"LJ","\u01C8":"Lj","\u24C2":"M","\uFF2D":"M","\u1E3E":"M","\u1E40":"M","\u1E42":"M","\u2C6E":"M","\u019C":"M","\u24C3":"N","\uFF2E":"N","\u01F8":"N","\u0143":"N","\u00D1":"N","\u1E44":"N","\u0147":"N","\u1E46":"N","\u0145":"N","\u1E4A":"N","\u1E48":"N","\u0220":"N","\u019D":"N","\uA790":"N","\uA7A4":"N","\u01CA":"NJ","\u01CB":"Nj","\u24C4":"O","\uFF2F":"O","\u00D2":"O","\u00D3":"O","\u00D4":"O","\u1ED2":"O","\u1ED0":"O","\u1ED6":"O","\u1ED4":"O","\u00D5":"O","\u1E4C":"O","\u022C":"O","\u1E4E":"O","\u014C":"O","\u1E50":"O","\u1E52":"O","\u014E":"O","\u022E":"O","\u0230":"O","\u00D6":"O","\u022A":"O","\u1ECE":"O","\u0150":"O","\u01D1":"O","\u020C":"O","\u020E":"O","\u01A0":"O","\u1EDC":"O","\u1EDA":"O","\u1EE0":"O","\u1EDE":"O","\u1EE2":"O","\u1ECC":"O","\u1ED8":"O","\u01EA":"O","\u01EC":"O","\u00D8":"O","\u01FE":"O","\u0186":"O","\u019F":"O","\uA74A":"O","\uA74C":"O","\u01A2":"OI","\uA74E":"OO","\u0222":"OU","\u24C5":"P","\uFF30":"P","\u1E54":"P","\u1E56":"P","\u01A4":"P","\u2C63":"P","\uA750":"P","\uA752":"P","\uA754":"P","\u24C6":"Q","\uFF31":"Q","\uA756":"Q","\uA758":"Q","\u024A":"Q","\u24C7":"R","\uFF32":"R","\u0154":"R","\u1E58":"R","\u0158":"R","\u0210":"R","\u0212":"R","\u1E5A":"R","\u1E5C":"R","\u0156":"R","\u1E5E":"R","\u024C":"R","\u2C64":"R","\uA75A":"R","\uA7A6":"R","\uA782":"R","\u24C8":"S","\uFF33":"S","\u1E9E":"S","\u015A":"S","\u1E64":"S","\u015C":"S","\u1E60":"S","\u0160":"S","\u1E66":"S","\u1E62":"S","\u1E68":"S","\u0218":"S","\u015E":"S","\u2C7E":"S","\uA7A8":"S","\uA784":"S","\u24C9":"T","\uFF34":"T","\u1E6A":"T","\u0164":"T","\u1E6C":"T","\u021A":"T","\u0162":"T","\u1E70":"T","\u1E6E":"T","\u0166":"T","\u01AC":"T","\u01AE":"T","\u023E":"T","\uA786":"T","\uA728":"TZ","\u24CA":"U","\uFF35":"U","\u00D9":"U","\u00DA":"U","\u00DB":"U","\u0168":"U","\u1E78":"U","\u016A":"U","\u1E7A":"U","\u016C":"U","\u00DC":"U","\u01DB":"U","\u01D7":"U","\u01D5":"U","\u01D9":"U","\u1EE6":"U","\u016E":"U","\u0170":"U","\u01D3":"U","\u0214":"U","\u0216":"U","\u01AF":"U","\u1EEA":"U","\u1EE8":"U","\u1EEE":"U","\u1EEC":"U","\u1EF0":"U","\u1EE4":"U","\u1E72":"U","\u0172":"U","\u1E76":"U","\u1E74":"U","\u0244":"U","\u24CB":"V","\uFF36":"V","\u1E7C":"V","\u1E7E":"V","\u01B2":"V","\uA75E":"V","\u0245":"V","\uA760":"VY","\u24CC":"W","\uFF37":"W","\u1E80":"W","\u1E82":"W","\u0174":"W","\u1E86":"W","\u1E84":"W","\u1E88":"W","\u2C72":"W","\u24CD":"X","\uFF38":"X","\u1E8A":"X","\u1E8C":"X","\u24CE":"Y","\uFF39":"Y","\u1EF2":"Y","\u00DD":"Y","\u0176":"Y","\u1EF8":"Y","\u0232":"Y","\u1E8E":"Y","\u0178":"Y","\u1EF6":"Y","\u1EF4":"Y","\u01B3":"Y","\u024E":"Y","\u1EFE":"Y","\u24CF":"Z","\uFF3A":"Z","\u0179":"Z","\u1E90":"Z","\u017B":"Z","\u017D":"Z","\u1E92":"Z","\u1E94":"Z","\u01B5":"Z","\u0224":"Z","\u2C7F":"Z","\u2C6B":"Z","\uA762":"Z","\u24D0":"a","\uFF41":"a","\u1E9A":"a","\u00E0":"a","\u00E1":"a","\u00E2":"a","\u1EA7":"a","\u1EA5":"a","\u1EAB":"a","\u1EA9":"a","\u00E3":"a","\u0101":"a","\u0103":"a","\u1EB1":"a","\u1EAF":"a","\u1EB5":"a","\u1EB3":"a","\u0227":"a","\u01E1":"a","\u00E4":"a","\u01DF":"a","\u1EA3":"a","\u00E5":"a","\u01FB":"a","\u01CE":"a","\u0201":"a","\u0203":"a","\u1EA1":"a","\u1EAD":"a","\u1EB7":"a","\u1E01":"a","\u0105":"a","\u2C65":"a","\u0250":"a","\uA733":"aa","\u00E6":"ae","\u01FD":"ae","\u01E3":"ae","\uA735":"ao","\uA737":"au","\uA739":"av","\uA73B":"av","\uA73D":"ay","\u24D1":"b","\uFF42":"b","\u1E03":"b","\u1E05":"b","\u1E07":"b","\u0180":"b","\u0183":"b","\u0253":"b","\u24D2":"c","\uFF43":"c","\u0107":"c","\u0109":"c","\u010B":"c","\u010D":"c","\u00E7":"c","\u1E09":"c","\u0188":"c","\u023C":"c","\uA73F":"c","\u2184":"c","\u24D3":"d","\uFF44":"d","\u1E0B":"d","\u010F":"d","\u1E0D":"d","\u1E11":"d","\u1E13":"d","\u1E0F":"d","\u0111":"d","\u018C":"d","\u0256":"d","\u0257":"d","\uA77A":"d","\u01F3":"dz","\u01C6":"dz","\u24D4":"e","\uFF45":"e","\u00E8":"e","\u00E9":"e","\u00EA":"e","\u1EC1":"e","\u1EBF":"e","\u1EC5":"e","\u1EC3":"e","\u1EBD":"e","\u0113":"e","\u1E15":"e","\u1E17":"e","\u0115":"e","\u0117":"e","\u00EB":"e","\u1EBB":"e","\u011B":"e","\u0205":"e","\u0207":"e","\u1EB9":"e","\u1EC7":"e","\u0229":"e","\u1E1D":"e","\u0119":"e","\u1E19":"e","\u1E1B":"e","\u0247":"e","\u025B":"e","\u01DD":"e","\u24D5":"f","\uFF46":"f","\u1E1F":"f","\u0192":"f","\uA77C":"f","\u24D6":"g","\uFF47":"g","\u01F5":"g","\u011D":"g","\u1E21":"g","\u011F":"g","\u0121":"g","\u01E7":"g","\u0123":"g","\u01E5":"g","\u0260":"g","\uA7A1":"g","\u1D79":"g","\uA77F":"g","\u24D7":"h","\uFF48":"h","\u0125":"h","\u1E23":"h","\u1E27":"h","\u021F":"h","\u1E25":"h","\u1E29":"h","\u1E2B":"h","\u1E96":"h","\u0127":"h","\u2C68":"h","\u2C76":"h","\u0265":"h","\u0195":"hv","\u24D8":"i","\uFF49":"i","\u00EC":"i","\u00ED":"i","\u00EE":"i","\u0129":"i","\u012B":"i","\u012D":"i","\u00EF":"i","\u1E2F":"i","\u1EC9":"i","\u01D0":"i","\u0209":"i","\u020B":"i","\u1ECB":"i","\u012F":"i","\u1E2D":"i","\u0268":"i","\u0131":"i","\u24D9":"j","\uFF4A":"j","\u0135":"j","\u01F0":"j","\u0249":"j","\u24DA":"k","\uFF4B":"k","\u1E31":"k","\u01E9":"k","\u1E33":"k","\u0137":"k","\u1E35":"k","\u0199":"k","\u2C6A":"k","\uA741":"k","\uA743":"k","\uA745":"k","\uA7A3":"k","\u24DB":"l","\uFF4C":"l","\u0140":"l","\u013A":"l","\u013E":"l","\u1E37":"l","\u1E39":"l","\u013C":"l","\u1E3D":"l","\u1E3B":"l","\u017F":"l","\u0142":"l","\u019A":"l","\u026B":"l","\u2C61":"l","\uA749":"l","\uA781":"l","\uA747":"l","\u01C9":"lj","\u24DC":"m","\uFF4D":"m","\u1E3F":"m","\u1E41":"m","\u1E43":"m","\u0271":"m","\u026F":"m","\u24DD":"n","\uFF4E":"n","\u01F9":"n","\u0144":"n","\u00F1":"n","\u1E45":"n","\u0148":"n","\u1E47":"n","\u0146":"n","\u1E4B":"n","\u1E49":"n","\u019E":"n","\u0272":"n","\u0149":"n","\uA791":"n","\uA7A5":"n","\u01CC":"nj","\u24DE":"o","\uFF4F":"o","\u00F2":"o","\u00F3":"o","\u00F4":"o","\u1ED3":"o","\u1ED1":"o","\u1ED7":"o","\u1ED5":"o","\u00F5":"o","\u1E4D":"o","\u022D":"o","\u1E4F":"o","\u014D":"o","\u1E51":"o","\u1E53":"o","\u014F":"o","\u022F":"o","\u0231":"o","\u00F6":"o","\u022B":"o","\u1ECF":"o","\u0151":"o","\u01D2":"o","\u020D":"o","\u020F":"o","\u01A1":"o","\u1EDD":"o","\u1EDB":"o","\u1EE1":"o","\u1EDF":"o","\u1EE3":"o","\u1ECD":"o","\u1ED9":"o","\u01EB":"o","\u01ED":"o","\u00F8":"o","\u01FF":"o","\u0254":"o","\uA74B":"o","\uA74D":"o","\u0275":"o","\u01A3":"oi","\u0223":"ou","\uA74F":"oo","\u24DF":"p","\uFF50":"p","\u1E55":"p","\u1E57":"p","\u01A5":"p","\u1D7D":"p","\uA751":"p","\uA753":"p","\uA755":"p","\u24E0":"q","\uFF51":"q","\u024B":"q","\uA757":"q","\uA759":"q","\u24E1":"r","\uFF52":"r","\u0155":"r","\u1E59":"r","\u0159":"r","\u0211":"r","\u0213":"r","\u1E5B":"r","\u1E5D":"r","\u0157":"r","\u1E5F":"r","\u024D":"r","\u027D":"r","\uA75B":"r","\uA7A7":"r","\uA783":"r","\u24E2":"s","\uFF53":"s","\u00DF":"s","\u015B":"s","\u1E65":"s","\u015D":"s","\u1E61":"s","\u0161":"s","\u1E67":"s","\u1E63":"s","\u1E69":"s","\u0219":"s","\u015F":"s","\u023F":"s","\uA7A9":"s","\uA785":"s","\u1E9B":"s","\u24E3":"t","\uFF54":"t","\u1E6B":"t","\u1E97":"t","\u0165":"t","\u1E6D":"t","\u021B":"t","\u0163":"t","\u1E71":"t","\u1E6F":"t","\u0167":"t","\u01AD":"t","\u0288":"t","\u2C66":"t","\uA787":"t","\uA729":"tz","\u24E4":"u","\uFF55":"u","\u00F9":"u","\u00FA":"u","\u00FB":"u","\u0169":"u","\u1E79":"u","\u016B":"u","\u1E7B":"u","\u016D":"u","\u00FC":"u","\u01DC":"u","\u01D8":"u","\u01D6":"u","\u01DA":"u","\u1EE7":"u","\u016F":"u","\u0171":"u","\u01D4":"u","\u0215":"u","\u0217":"u","\u01B0":"u","\u1EEB":"u","\u1EE9":"u","\u1EEF":"u","\u1EED":"u","\u1EF1":"u","\u1EE5":"u","\u1E73":"u","\u0173":"u","\u1E77":"u","\u1E75":"u","\u0289":"u","\u24E5":"v","\uFF56":"v","\u1E7D":"v","\u1E7F":"v","\u028B":"v","\uA75F":"v","\u028C":"v","\uA761":"vy","\u24E6":"w","\uFF57":"w","\u1E81":"w","\u1E83":"w","\u0175":"w","\u1E87":"w","\u1E85":"w","\u1E98":"w","\u1E89":"w","\u2C73":"w","\u24E7":"x","\uFF58":"x","\u1E8B":"x","\u1E8D":"x","\u24E8":"y","\uFF59":"y","\u1EF3":"y","\u00FD":"y","\u0177":"y","\u1EF9":"y","\u0233":"y","\u1E8F":"y","\u00FF":"y","\u1EF7":"y","\u1E99":"y","\u1EF5":"y","\u01B4":"y","\u024F":"y","\u1EFF":"y","\u24E9":"z","\uFF5A":"z","\u017A":"z","\u1E91":"z","\u017C":"z","\u017E":"z","\u1E93":"z","\u1E95":"z","\u01B6":"z","\u0225":"z","\u0240":"z","\u2C6C":"z","\uA763":"z","\u0386":"\u0391","\u0388":"\u0395","\u0389":"\u0397","\u038A":"\u0399","\u03AA":"\u0399","\u038C":"\u039F","\u038E":"\u03A5","\u03AB":"\u03A5","\u038F":"\u03A9","\u03AC":"\u03B1","\u03AD":"\u03B5","\u03AE":"\u03B7","\u03AF":"\u03B9","\u03CA":"\u03B9","\u0390":"\u03B9","\u03CC":"\u03BF","\u03CD":"\u03C5","\u03CB":"\u03C5","\u03B0":"\u03C5","\u03C9":"\u03C9","\u03C2":"\u03C3"};return e});d.define("select2/data/base",["../utils"],function(f){function e(g,h){e.__super__.constructor.call(this)}f.Extend(e,f.Observable);e.prototype.current=function(g){throw new Error("The `current` method must be defined in child classes.")};e.prototype.query=function(h,g){throw new Error("The `query` method must be defined in child classes.")};e.prototype.bind=function(h,g){};e.prototype.destroy=function(){};e.prototype.generateResultId=function(g,h){var i=g.id+"-result-";i+=f.generateChars(4);if(h.id!=null){i+="-"+h.id.toString()}else{i+="-"+f.generateChars(4)}return i};return e});d.define("select2/data/select",["./base","../utils","jquery"],function(f,h,e){function g(i,j){this.$element=i;this.options=j;g.__super__.constructor.call(this)}h.Extend(g,f);g.prototype.current=function(i){var j=[];var k=this;this.$element.find(":selected").each(function(){var l=e(this);var m=k.item(l);j.push(m)});i(j)};g.prototype.select=function(i){var j=this;i.selected=true;if(e(i.element).is("option")){i.element.selected=true;this.$element.trigger("change");return}if(this.$element.prop("multiple")){this.current(function(l){var o=[];i=[i];i.push.apply(i,l);for(var m=0;m=0){var k=j.filter(u(s));var q=this.item(k);var t=e.extend(true,{},s,q);var l=this.option(t);k.replaceWith(l);continue}var m=this.option(s);if(s.children){var i=this.convertToOptions(s.children);h.appendMany(m,i)}n.push(m)}return n};return f});d.define("select2/data/ajax",["./array","../utils","jquery"],function(g,h,e){function f(i,j){this.ajaxOptions=this._applyDefaults(j.get("ajax"));if(this.ajaxOptions.processResults!=null){this.processResults=this.ajaxOptions.processResults}f.__super__.constructor.call(this,i,j)}h.Extend(f,g);f.prototype._applyDefaults=function(j){var i={data:function(k){return e.extend({},k,{q:k.term})},transport:function(m,n,l){var k=e.ajax(m);k.then(n);k.fail(l);return k}};return e.extend({},i,j,true)};f.prototype.processResults=function(i){return i};f.prototype.query=function(l,i){var j=[];var n=this;if(this._request!=null){if(e.isFunction(this._request.abort)){this._request.abort()}this._request=null}var k=e.extend({type:"GET"},this.ajaxOptions);if(typeof k.url==="function"){k.url=k.url.call(this.$element,l)}if(typeof k.data==="function"){k.data=k.data.call(this.$element,l)}function m(){var o=k.transport(k,function(p){var q=n.processResults(p,l);if(n.options.get("debug")&&window.console&&console.error){if(!q||!q.results||!e.isArray(q.results)){console.error("Select2: The AJAX results did not return an array in the `results` key of the response.")}}i(q)},function(){if(o.status&&o.status==="0"){return}n.trigger("results:message",{message:"errorLoading"})});n._request=o}if(this.ajaxOptions.delay&&l.term!=null){if(this._queryTimeout){window.clearTimeout(this._queryTimeout)}this._queryTimeout=window.setTimeout(m,this.ajaxOptions.delay)}else{m()}};return f});d.define("select2/data/tags",["jquery"],function(e){function f(j,g,m){var p=m.get("tags");var i=m.get("createTag");if(i!==undefined){this.createTag=i}var k=m.get("insertTag");if(k!==undefined){this.insertTag=k}j.call(this,g,m);if(e.isArray(p)){for(var n=0;n0&&h.term.length>this.maximumInputLength){this.trigger("results:message",{message:"inputTooLong",args:{maximum:this.maximumInputLength,input:h.term,params:h}});return}g.call(this,h,f)};return e});d.define("select2/data/maximumSelectionLength",[],function(){function e(g,f,h){this.maximumSelectionLength=h.get("maximumSelectionLength");g.call(this,f,h)}e.prototype.query=function(g,h,f){var i=this;this.current(function(k){var j=k!=null?k.length:0;if(i.maximumSelectionLength>0&&j>=i.maximumSelectionLength){i.trigger("results:message",{message:"maximumSelected",args:{maximum:i.maximumSelectionLength}});return}g.call(i,h,f)})};return e});d.define("select2/dropdown",["jquery","./utils"],function(e,g){function f(h,i){this.$element=h;this.options=i;f.__super__.constructor.call(this)}g.Extend(f,g.Observable);f.prototype.render=function(){var h=e('');h.attr("dir",this.options.get("dir"));this.$dropdown=h;return h};f.prototype.bind=function(){};f.prototype.position=function(i,h){};f.prototype.destroy=function(){this.$dropdown.remove()};return f});d.define("select2/dropdown/search",["jquery","../utils"],function(e,g){function f(){}f.prototype.render=function(j){var h=j.call(this);var i=e('');this.$searchContainer=i;this.$search=i.find("input");h.prepend(i);return h};f.prototype.bind=function(j,i,h){var k=this;j.call(this,i,h);this.$search.on("keydown",function(l){k.trigger("keypress",l);k._keyUpPrevented=l.isDefaultPrevented()});this.$search.on("input",function(l){e(this).off("keyup")});this.$search.on("keyup input",function(l){k.handleSearch(l)});i.on("open",function(){k.$search.attr("tabindex",0);k.$search.focus();window.setTimeout(function(){k.$search.focus()},0)});i.on("close",function(){k.$search.attr("tabindex",-1);k.$search.val("")});i.on("focus",function(){if(!i.isOpen()){k.$search.focus()}});i.on("results:all",function(l){if(l.query.term==null||l.query.term===""){var m=k.showSearch(l);if(m){k.$searchContainer.removeClass("select2-search--hide")}else{k.$searchContainer.addClass("select2-search--hide")}}})};f.prototype.handleSearch=function(h){if(!this._keyUpPrevented){var i=this.$search.val();this.trigger("query",{term:i})}this._keyUpPrevented=false};f.prototype.showSearch=function(h,i){return true};return f});d.define("select2/dropdown/hidePlaceholder",[],function(){function e(h,f,i,g){this.placeholder=this.normalizePlaceholder(i.get("placeholder"));h.call(this,f,i,g)}e.prototype.append=function(g,f){f.results=this.removePlaceholder(f.results);g.call(this,f)};e.prototype.normalizePlaceholder=function(f,g){if(typeof g==="string"){g={id:"",text:g}}return g};e.prototype.removePlaceholder=function(f,h){var j=h.slice(0);for(var g=h.length-1;g>=0;g--){var i=h[g];if(this.placeholder.id===i.id){j.splice(g,1)}}return j};return e});d.define("select2/dropdown/infiniteScroll",["jquery"],function(e){function f(i,g,j,h){this.lastParams={};i.call(this,g,j,h);this.$loadingMore=this.createLoadingMore();this.loading=false}f.prototype.append=function(h,g){this.$loadingMore.remove();this.loading=false;h.call(this,g);if(this.showLoadingMore(g)){this.$results.append(this.$loadingMore)}};f.prototype.bind=function(i,h,g){var j=this;i.call(this,h,g);h.on("query",function(k){j.lastParams=k;j.loading=true});h.on("query:append",function(k){j.lastParams=k;j.loading=true});this.$results.on("scroll",function(){var l=e.contains(document.documentElement,j.$loadingMore[0]);if(j.loading||!l){return}var k=j.$results.offset().top+j.$results.outerHeight(false);var m=j.$loadingMore.offset().top+j.$loadingMore.outerHeight(false);if(k+50>=m){j.loadMore()}})};f.prototype.loadMore=function(){this.loading=true;var g=e.extend({},{page:1},this.lastParams);g.page++;this.trigger("query:append",g)};f.prototype.showLoadingMore=function(g,h){return h.pagination&&h.pagination.more};f.prototype.createLoadingMore=function(){var g=e('
    • ');var h=this.options.get("translations").get("loadingMore");g.html(h(this.lastParams));return g};return f});d.define("select2/dropdown/attachBody",["jquery","../utils"],function(e,g){function f(i,h,j){this.$dropdownParent=j.get("dropdownParent")||e(document.body);i.call(this,h,j)}f.prototype.bind=function(j,i,h){var k=this;var l=false;j.call(this,i,h);i.on("open",function(){k._showDropdown();k._attachPositioningHandler(i);if(!l){l=true;i.on("results:all",function(){k._positionDropdown();k._resizeDropdown()});i.on("results:append",function(){k._positionDropdown();k._resizeDropdown()})}});i.on("close",function(){k._hideDropdown();k._detachPositioningHandler(i)});this.$dropdownContainer.on("mousedown",function(m){m.stopPropagation()})};f.prototype.destroy=function(h){h.call(this);this.$dropdownContainer.remove()};f.prototype.position=function(j,i,h){i.attr("class",h.attr("class"));i.removeClass("select2");i.addClass("select2-container--open");i.css({position:"absolute",top:-999999});this.$container=h};f.prototype.render=function(j){var h=e("");var i=j.call(this);h.append(i);this.$dropdownContainer=h;return h};f.prototype._hideDropdown=function(h){this.$dropdownContainer.detach()};f.prototype._attachPositioningHandler=function(j,i){var n=this;var m="scroll.select2."+i.id;var l="resize.select2."+i.id;var k="orientationchange.select2."+i.id;var h=this.$container.parents().filter(g.hasScroll);h.each(function(){e(this).data("select2-scroll-position",{x:e(this).scrollLeft(),y:e(this).scrollTop()})});h.on(m,function(o){var p=e(this).data("select2-scroll-position");e(this).scrollTop(p.y)});e(window).on(m+" "+l+" "+k,function(o){n._positionDropdown();n._resizeDropdown()})};f.prototype._detachPositioningHandler=function(j,i){var m="scroll.select2."+i.id;var l="resize.select2."+i.id;var k="orientationchange.select2."+i.id;var h=this.$container.parents().filter(g.hasScroll);h.off(m);e(window).off(m+" "+l+" "+k)};f.prototype._positionDropdown=function(){var i=e(window);var o=this.$dropdown.hasClass("select2-dropdown--above");var p=this.$dropdown.hasClass("select2-dropdown--below");var q=null;var r=this.$container.offset();r.bottom=r.top+this.$container.outerHeight(false);var j={height:this.$container.outerHeight(false)};j.top=r.top;j.bottom=r.top+j.height;var l={height:this.$dropdown.outerHeight(false)};var t={top:i.scrollTop(),bottom:i.scrollTop()+i.height()};var m=t.top<(r.top-l.height);var n=t.bottom>(r.bottom+l.height);var k={left:r.left,top:j.bottom};var h=this.$dropdownParent;if(h.css("position")==="static"){h=h.offsetParent()}var s=h.offset();k.top-=s.top;k.left-=s.left;if(!o&&!p){q="below"}if(!n&&m&&!o){q="above"}else{if(!m&&n&&o){q="below"}}if(q=="above"||(o&&q!=="below")){k.top=j.top-s.top-l.height}if(q!=null){this.$dropdown.removeClass("select2-dropdown--below select2-dropdown--above").addClass("select2-dropdown--"+q);this.$container.removeClass("select2-container--below select2-container--above").addClass("select2-container--"+q)}this.$dropdownContainer.css(k)};f.prototype._resizeDropdown=function(){var h={width:this.$container.outerWidth(false)+"px"};if(this.options.get("dropdownAutoWidth")){h.minWidth=h.width;h.position="relative";h.width="auto"}this.$dropdown.css(h)};f.prototype._showDropdown=function(h){this.$dropdownContainer.appendTo(this.$dropdownParent);this._positionDropdown();this._resizeDropdown()};return f});d.define("select2/dropdown/minimumResultsForSearch",[],function(){function e(i){var g=0;for(var h=0;h0){X.dataAdapter=I.Decorate(X.dataAdapter,v)}if(X.maximumInputLength>0){X.dataAdapter=I.Decorate(X.dataAdapter,t)}if(X.maximumSelectionLength>0){X.dataAdapter=I.Decorate(X.dataAdapter,u)}if(X.tags){X.dataAdapter=I.Decorate(X.dataAdapter,F)}if(X.tokenSeparators!=null||X.tokenizer!=null){X.dataAdapter=I.Decorate(X.dataAdapter,G)}if(X.query!=null){var Y=z(X.amdBase+"compat/query");X.dataAdapter=I.Decorate(X.dataAdapter,Y)}if(X.initSelection!=null){var Q=z(X.amdBase+"compat/initSelection");X.dataAdapter=I.Decorate(X.dataAdapter,Q)}}if(X.resultsAdapter==null){X.resultsAdapter=A;if(X.ajax!=null){X.resultsAdapter=I.Decorate(X.resultsAdapter,s)}if(X.placeholder!=null){X.resultsAdapter=I.Decorate(X.resultsAdapter,r)}if(X.selectOnClose){X.resultsAdapter=I.Decorate(X.resultsAdapter,D)}}if(X.dropdownAdapter==null){if(X.multiple){X.dropdownAdapter=n}else{var Z=I.Decorate(n,o);X.dropdownAdapter=Z}if(X.minimumResultsForSearch!==0){X.dropdownAdapter=I.Decorate(X.dropdownAdapter,w)}if(X.closeOnSelect){X.dropdownAdapter=I.Decorate(X.dropdownAdapter,j)}if(X.dropdownCssClass!=null||X.dropdownCss!=null||X.adaptDropdownCssClass!=null){var N=z(X.amdBase+"compat/dropdownCss");X.dropdownAdapter=I.Decorate(X.dropdownAdapter,N)}X.dropdownAdapter=I.Decorate(X.dropdownAdapter,i)}if(X.selectionAdapter==null){if(X.multiple){X.selectionAdapter=x}else{X.selectionAdapter=E}if(X.placeholder!=null){X.selectionAdapter=I.Decorate(X.selectionAdapter,y)}if(X.allowClear){X.selectionAdapter=I.Decorate(X.selectionAdapter,g)}if(X.multiple){X.selectionAdapter=I.Decorate(X.selectionAdapter,C)}if(X.containerCssClass!=null||X.containerCss!=null||X.adaptContainerCssClass!=null){var L=z(X.amdBase+"compat/containerCss");X.selectionAdapter=I.Decorate(X.selectionAdapter,L)}X.selectionAdapter=I.Decorate(X.selectionAdapter,q)}if(typeof X.language==="string"){if(X.language.indexOf("-")>0){var U=X.language.split("-");var J=U[0];X.language=[X.language,J]}else{X.language=[X.language]}}if(e.isArray(X.language)){var V=new H();X.language.push("en");var T=X.language;for(var R=0;R0){var O=e.extend(true,{},N);for(var L=N.children.length-1;L>=0;L--){var M=N.children[L];var P=J(R,M);if(P==null){O.children.splice(L,1)}}if(O.children.length>0){return O}return J(R,O)}var Q=K(N.text).toUpperCase();var S=K(R.term).toUpperCase();if(Q.indexOf(S)>-1){return N}return null}this.defaults={amdBase:"./",amdLanguageBase:"./i18n/",closeOnSelect:true,debug:false,dropdownAutoWidth:false,escapeMarkup:I.escapeMarkup,language:p,matcher:J,minimumInputLength:0,maximumInputLength:0,maximumSelectionLength:0,minimumResultsForSearch:0,selectOnClose:false,sorter:function(L){return L},templateResult:function(L){return L.text},templateSelection:function(L){return L.text},theme:"default",width:"resolve"}};l.prototype.set=function(M,N){var J=e.camelCase(M);var L={};L[J]=N;var K=I._convertData(L);e.extend(this.defaults,K)};var k=new l();return k});d.define("select2/options",["require","jquery","./defaults","./utils"],function(h,e,f,i){function g(l,j){this.options=l;if(j!=null){this.fromElement(j)}this.options=f.apply(this.options);if(j&&j.is("input")){var k=h(this.get("amdBase")+"compat/inputData");this.options.dataAdapter=i.Decorate(this.options.dataAdapter,k)}}g.prototype.fromElement=function(j){var m=["select2"];if(this.options.multiple==null){this.options.multiple=j.prop("multiple")}if(this.options.disabled==null){this.options.disabled=j.prop("disabled")}if(this.options.language==null){if(j.prop("lang")){this.options.language=j.prop("lang").toLowerCase()}else{if(j.closest("[lang]").prop("lang")){this.options.language=j.closest("[lang]").prop("lang")}}}if(this.options.dir==null){if(j.prop("dir")){this.options.dir=j.prop("dir")}else{if(j.closest("[dir]").prop("dir")){this.options.dir=j.closest("[dir]").prop("dir")}else{this.options.dir="ltr"}}}j.prop("disabled",this.options.disabled);j.prop("multiple",this.options.multiple);if(j.data("select2Tags")){if(this.options.debug&&window.console&&console.warn){console.warn('Select2: The `data-select2-tags` attribute has been changed to use the `data-data` and `data-tags="true"` attributes and will be removed in future versions of Select2.')}j.data("data",j.data("select2Tags"));j.data("tags",true)}if(j.data("ajaxUrl")){if(this.options.debug&&window.console&&console.warn){console.warn("Select2: The `data-ajax-url` attribute has been changed to `data-ajax--url` and support for the old attribute will be removed in future versions of Select2.")}j.attr("ajax--url",j.data("ajaxUrl"));j.data("ajax--url",j.data("ajaxUrl"))}var l={};if(e.fn.jquery&&e.fn.jquery.substr(0,2)=="1."&&j[0].dataset){l=e.extend(true,{},j[0].dataset,j.data())}else{l=j.data()}var k=e.extend(true,{},l);k=i._convertData(k);for(var n in k){if(e.inArray(n,m)>-1){continue}if(e.isPlainObject(this.options[n])){e.extend(this.options[n],k[n])}else{this.options[n]=k[n]}}return this};g.prototype.get=function(j){return this.options[j]};g.prototype.set=function(j,k){this.options[j]=k};return g});d.define("select2/core",["jquery","./options","./utils","./keys"],function(e,g,i,f){var h=function(k,n){if(k.data("select2")!=null){k.data("select2").destroy()}this.$element=k;this.id=this._generateId(k);n=n||{};this.options=new g(n,k);h.__super__.constructor.call(this);var r=k.attr("tabindex")||0;k.data("old-tabindex",r);k.attr("tabindex","-1");var l=this.options.get("dataAdapter");this.dataAdapter=new l(k,this.options);var j=this.render();this._placeContainer(j);var p=this.options.get("selectionAdapter");this.selection=new p(k,this.options);this.$selection=this.selection.render();this.selection.position(this.$selection,j);var m=this.options.get("dropdownAdapter");this.dropdown=new m(k,this.options);this.$dropdown=this.dropdown.render();this.dropdown.position(this.$dropdown,j);var o=this.options.get("resultsAdapter");this.results=new o(k,this.options,this.dataAdapter);this.$results=this.results.render();this.results.position(this.$results,this.$dropdown);var q=this;this._bindAdapters();this._registerDomEvents();this._registerDataEvents();this._registerSelectionEvents();this._registerDropdownEvents();this._registerResultsEvents();this._registerEvents();this.dataAdapter.current(function(s){q.trigger("selection:update",{data:s})});k.addClass("select2-hidden-accessible");k.attr("aria-hidden","true");this._syncAttributes();k.data("select2",this)};i.Extend(h,i.Observable);h.prototype._generateId=function(j){var k="";if(j.attr("id")!=null){k=j.attr("id")}else{if(j.attr("name")!=null){k=j.attr("name")+"-"+i.generateChars(2)}else{k=i.generateChars(4)}}k=k.replace(/(:|\.|\[|\]|,)/g,"");k="select2-"+k;return k};h.prototype._placeContainer=function(j){j.insertAfter(this.$element);var k=this._resolveWidth(this.$element,this.options.get("width"));if(k!=null){j.css("width",k)}};h.prototype._resolveWidth=function(j,r){var u=/^width:(([-+]?([0-9]*\.)?[0-9]+)(px|em|ex|%|in|cm|mm|pt|pc))/i;if(r=="resolve"){var t=this._resolveWidth(j,"style");if(t!=null){return t}return this._resolveWidth(j,"element")}if(r=="element"){var n=j.outerWidth(false);if(n<=0){return"auto"}return n+"px"}if(r=="style"){var s=j.attr("style");if(typeof(s)!=="string"){return null}var m=s.split(";");for(var o=0,p=m.length;o=1){return q[1]}}return null}return r};h.prototype._bindAdapters=function(){this.dataAdapter.bind(this,this.$container);this.selection.bind(this,this.$container);this.dropdown.bind(this,this.$container);this.results.bind(this,this.$container)};h.prototype._registerDomEvents=function(){var k=this;this.$element.on("change.select2",function(){k.dataAdapter.current(function(l){k.trigger("selection:update",{data:l})})});this.$element.on("focus.select2",function(l){k.trigger("focus",l)});this._syncA=i.bind(this._syncAttributes,this);this._syncS=i.bind(this._syncSubtree,this);if(this.$element[0].attachEvent){this.$element[0].attachEvent("onpropertychange",this._syncA)}var j=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver;if(j!=null){this._observer=new j(function(l){e.each(l,k._syncA);e.each(l,k._syncS)});this._observer.observe(this.$element[0],{attributes:true,childList:true,subtree:false})}else{if(this.$element[0].addEventListener){this.$element[0].addEventListener("DOMAttrModified",k._syncA,false);this.$element[0].addEventListener("DOMNodeInserted",k._syncS,false);this.$element[0].addEventListener("DOMNodeRemoved",k._syncS,false)}}};h.prototype._registerDataEvents=function(){var j=this;this.dataAdapter.on("*",function(k,l){j.trigger(k,l)})};h.prototype._registerSelectionEvents=function(){var k=this;var j=["toggle","focus"];this.selection.on("toggle",function(){k.toggleDropdown()});this.selection.on("focus",function(l){k.focus(l)});this.selection.on("*",function(l,m){if(e.inArray(l,j)!==-1){return}k.trigger(l,m)})};h.prototype._registerDropdownEvents=function(){var j=this;this.dropdown.on("*",function(k,l){j.trigger(k,l)})};h.prototype._registerResultsEvents=function(){var j=this;this.results.on("*",function(k,l){j.trigger(k,l)})};h.prototype._registerEvents=function(){var j=this;this.on("open",function(){j.$container.addClass("select2-container--open")});this.on("close",function(){j.$container.removeClass("select2-container--open")});this.on("enable",function(){j.$container.removeClass("select2-container--disabled")});this.on("disable",function(){j.$container.addClass("select2-container--disabled")});this.on("blur",function(){j.$container.removeClass("select2-container--focus")});this.on("query",function(k){if(!j.isOpen()){j.trigger("open",{})}this.dataAdapter.query(k,function(l){j.trigger("results:all",{data:l,query:k})})});this.on("query:append",function(k){this.dataAdapter.query(k,function(l){j.trigger("results:append",{data:l,query:k})})});this.on("keypress",function(k){var l=k.which;if(j.isOpen()){if(l===f.ESC||l===f.TAB||(l===f.UP&&k.altKey)){j.close();k.preventDefault()}else{if(l===f.ENTER){j.trigger("results:select",{});k.preventDefault()}else{if((l===f.SPACE&&k.ctrlKey)){j.trigger("results:toggle",{});k.preventDefault()}else{if(l===f.UP){j.trigger("results:previous",{});k.preventDefault()}else{if(l===f.DOWN){j.trigger("results:next",{});k.preventDefault()}}}}}}else{if(l===f.ENTER||l===f.SPACE||(l===f.DOWN&&k.altKey)){j.open();k.preventDefault()}}})};h.prototype._syncAttributes=function(){this.options.set("disabled",this.$element.prop("disabled"));if(this.options.get("disabled")){if(this.isOpen()){this.close()}this.trigger("disable",{})}else{this.trigger("enable",{})}};h.prototype._syncSubtree=function(k,l){var j=false;var p=this;if(k&&k.target&&(k.target.nodeName!=="OPTION"&&k.target.nodeName!=="OPTGROUP")){return}if(!l){j=true}else{if(l.addedNodes&&l.addedNodes.length>0){for(var m=0;m0){j=true}}}if(j){this.dataAdapter.current(function(n){p.trigger("selection:update",{data:n})})}};h.prototype.trigger=function(l,k){var j=h.__super__.trigger;var n={open:"opening",close:"closing",select:"selecting",unselect:"unselecting"};if(k===undefined){k={}}if(l in n){var o=n[l];var m={prevented:false,name:l,args:k};j.call(this,o,m);if(m.prevented){k.prevented=true;return}}j.call(this,l,k)};h.prototype.toggleDropdown=function(){if(this.options.get("disabled")){return}if(this.isOpen()){this.close()}else{this.open()}};h.prototype.open=function(){if(this.isOpen()){return}this.trigger("query",{})};h.prototype.close=function(){if(!this.isOpen()){return}this.trigger("close",{})};h.prototype.isOpen=function(){return this.$container.hasClass("select2-container--open")};h.prototype.hasFocus=function(){return this.$container.hasClass("select2-container--focus")};h.prototype.focus=function(j){if(this.hasFocus()){return}this.$container.addClass("select2-container--focus");this.trigger("focus",{})};h.prototype.enable=function(j){if(this.options.get("debug")&&window.console&&console.warn){console.warn('Select2: The `select2("enable")` method has been deprecated and will be removed in later Select2 versions. Use $element.prop("disabled") instead.')}if(j==null||j.length===0){j=[true]}var k=!j[0];this.$element.prop("disabled",k)};h.prototype.data=function(){if(this.options.get("debug")&&arguments.length>0&&window.console&&console.warn){console.warn('Select2: Data can no longer be set using `select2("data")`. You should consider setting the value instead using `$element.val()`.')}var j=[];this.dataAdapter.current(function(k){j=k});return j};h.prototype.val=function(j){if(this.options.get("debug")&&window.console&&console.warn){console.warn('Select2: The `select2("val")` method has been deprecated and will be removed in later Select2 versions. Use $element.val() instead.')}if(j==null||j.length===0){return this.$element.val()}var k=j[0];if(e.isArray(k)){k=e.map(k,function(l){return l.toString()})}this.$element.val(k).trigger("change")};h.prototype.destroy=function(){this.$container.remove();if(this.$element[0].detachEvent){this.$element[0].detachEvent("onpropertychange",this._syncA)}if(this._observer!=null){this._observer.disconnect();this._observer=null}else{if(this.$element[0].removeEventListener){this.$element[0].removeEventListener("DOMAttrModified",this._syncA,false);this.$element[0].removeEventListener("DOMNodeInserted",this._syncS,false);this.$element[0].removeEventListener("DOMNodeRemoved",this._syncS,false)}}this._syncA=null;this._syncS=null;this.$element.off(".select2");this.$element.attr("tabindex",this.$element.data("old-tabindex"));this.$element.removeClass("select2-hidden-accessible");this.$element.attr("aria-hidden","false");this.$element.removeData("select2");this.dataAdapter.destroy();this.selection.destroy();this.dropdown.destroy();this.results.destroy();this.dataAdapter=null;this.selection=null;this.dropdown=null;this.results=null};h.prototype.render=function(){var j=e('');j.attr("dir",this.options.get("dir"));this.$container=j;this.$container.addClass("select2-container--"+this.options.get("theme"));j.data("element",this.$element);return j};return h});d.define("jquery-mousewheel",["jquery"],function(e){return e});d.define("jquery.select2",["jquery","jquery-mousewheel","./select2/core","./select2/defaults"],function(e,f,h,g){if(e.fn.select2==null){var i=["open","close","destroy"];e.fn.select2=function(k){k=k||{};if(typeof k==="object"){this.each(function(){var n=e.extend(true,{},k);var m=new h(e(this),n)});return this}else{if(typeof k==="string"){var l;var j=Array.prototype.slice.call(arguments,1);this.each(function(){var m=e(this).data("select2");if(m==null&&window.console&&console.error){console.error("The select2('"+k+"') method was called on an element that is not using Select2.")}l=m[k].apply(m,j)});if(e.inArray(k,i)>-1){return this}return l}else{throw new Error("Invalid arguments for Select2: "+k)}}}}if(e.fn.select2.defaults==null){e.fn.select2.defaults=g}return h});return{define:d.define,require:d.require}}());var c=b.require("jquery.select2");a.fn.select2.amd=b;return c})); /* Select2 4.0.4 | https://github.com/select2/select2/blob/master/LICENSE.md */ (function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd){var a=jQuery.fn.select2.amd}return a.define("select2/i18n/de",[],function(){return{errorLoading:function(){return"Die Ergebnisse konnten nicht geladen werden."},inputTooLong:function(b){var c=b.input.length-b.maximum;return"Bitte "+c+" Zeichen weniger eingeben"},inputTooShort:function(b){var c=b.minimum-b.input.length;return"Bitte "+c+" Zeichen mehr eingeben"},loadingMore:function(){return"Lade mehr Ergebnisse…"},maximumSelected:function(b){var c="Sie können nur "+b.maximum+" Eintr";return b.maximum===1?c+="ag":c+="äge",c+=" auswählen",c},noResults:function(){return"Keine Übereinstimmungen gefunden"},searching:function(){return"Suche…"}}}),{define:a.define,require:a.require}})(); /* Select2 4.0.4 | https://github.com/select2/select2/blob/master/LICENSE.md */ (function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd){var a=jQuery.fn.select2.amd}return a.define("select2/i18n/es",[],function(){return{errorLoading:function(){return"La carga falló"},inputTooLong:function(b){var d=b.input.length-b.maximum,c="Por favor, elimine "+d+" car";return d==1?c+="ácter":c+="acteres",c},inputTooShort:function(b){var d=b.minimum-b.input.length,c="Por favor, introduzca "+d+" car";return d==1?c+="ácter":c+="acteres",c},loadingMore:function(){return"Cargando más resultados…"},maximumSelected:function(b){var c="Sólo puede seleccionar "+b.maximum+" elemento";return b.maximum!=1&&(c+="s"),c},noResults:function(){return"No se encontraron resultados"},searching:function(){return"Buscando…"}}}),{define:a.define,require:a.require}})(); /* Select2 4.0.4 | https://github.com/select2/select2/blob/master/LICENSE.md */ (function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd){var a=jQuery.fn.select2.amd}return a.define("select2/i18n/en",[],function(){return{errorLoading:function(){return"The results could not be loaded."},inputTooLong:function(b){var d=b.input.length-b.maximum,c="Please delete "+d+" character";return d!=1&&(c+="s"),c},inputTooShort:function(b){var d=b.minimum-b.input.length,c="Please enter "+d+" or more characters";return c},loadingMore:function(){return"Loading more results…"},maximumSelected:function(b){var c="You can only select "+b.maximum+" item";return b.maximum!=1&&(c+="s"),c},noResults:function(){return"No results found"},searching:function(){return"Searching…"}}}),{define:a.define,require:a.require}})(); /* Select2 4.0.4 | https://github.com/select2/select2/blob/master/LICENSE.md */ (function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd){var a=jQuery.fn.select2.amd}return a.define("select2/i18n/fr",[],function(){return{errorLoading:function(){return"Les résultats ne peuvent pas être chargés."},inputTooLong:function(b){var d=b.input.length-b.maximum,c="Supprimez "+d+" caractère";return d!==1&&(c+="s"),c},inputTooShort:function(b){var d=b.minimum-b.input.length,c="Saisissez "+d+" caractère";return d!==1&&(c+="s"),c},loadingMore:function(){return"Chargement de résultats supplémentaires…"},maximumSelected:function(b){var c="Vous pouvez seulement sélectionner "+b.maximum+" élément";return b.maximum!==1&&(c+="s"),c},noResults:function(){return"Aucun résultat trouvé"},searching:function(){return"Recherche en cours…"}}}),{define:a.define,require:a.require}})(); /* Select2 4.0.4 | https://github.com/select2/select2/blob/master/LICENSE.md */ (function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd){var a=jQuery.fn.select2.amd}return a.define("select2/i18n/hr",[],function(){function b(c){var d=" "+c+" znak";return c%10<5&&c%10>0&&(c%100<5||c%100>19)?c%10>1&&(d+="a"):d+="ova",d}return{errorLoading:function(){return"Preuzimanje nije uspjelo."},inputTooLong:function(d){var c=d.input.length-d.maximum;return"Unesite "+b(c)},inputTooShort:function(d){var c=d.minimum-d.input.length;return"Unesite još "+b(c)},loadingMore:function(){return"Učitavanje rezultata…"},maximumSelected:function(c){return"Maksimalan broj odabranih stavki je "+c.maximum},noResults:function(){return"Nema rezultata"},searching:function(){return"Pretraga…"}}}),{define:a.define,require:a.require}})(); /* Select2 4.0.4 | https://github.com/select2/select2/blob/master/LICENSE.md */ (function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd){var a=jQuery.fn.select2.amd}return a.define("select2/i18n/it",[],function(){return{errorLoading:function(){return"I risultati non possono essere caricati."},inputTooLong:function(b){var d=b.input.length-b.maximum,c="Per favore cancella "+d+" caratter";return d!==1?c+="i":c+="e",c},inputTooShort:function(b){var d=b.minimum-b.input.length,c="Per favore inserisci "+d+" o più caratteri";return c},loadingMore:function(){return"Caricando più risultati…"},maximumSelected:function(b){var c="Puoi selezionare solo "+b.maximum+" element";return b.maximum!==1?c+="i":c+="o",c},noResults:function(){return"Nessun risultato trovato"},searching:function(){return"Sto cercando…"}}}),{define:a.define,require:a.require}})(); /* Select2 4.0.4 | https://github.com/select2/select2/blob/master/LICENSE.md */ (function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd){var a=jQuery.fn.select2.amd}return a.define("select2/i18n/pl",[],function(){var b=["znak","znaki","znaków"],d=["element","elementy","elementów"],c=function(f,e){if(f===1){return e[0]}if(f>1&&f<=4){return e[1]}if(f>=5){return e[2]}};return{errorLoading:function(){return"Nie można załadować wyników."},inputTooLong:function(f){var e=f.input.length-f.maximum;return"Usuń "+e+" "+c(e,b)},inputTooShort:function(f){var e=f.minimum-f.input.length;return"Podaj przynajmniej "+e+" "+c(e,b)},loadingMore:function(){return"Trwa ładowanie…"},maximumSelected:function(f){return"Możesz zaznaczyć tylko "+f.maximum+" "+c(f.maximum,d)},noResults:function(){return"Brak wyników"},searching:function(){return"Trwa wyszukiwanie…"}}}),{define:a.define,require:a.require}})(); /* Select2 4.0.4 | https://github.com/select2/select2/blob/master/LICENSE.md */ (function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd){var a=jQuery.fn.select2.amd}return a.define("select2/i18n/tr",[],function(){return{errorLoading:function(){return"Sonuç yüklenemedi"},inputTooLong:function(b){var d=b.input.length-b.maximum,c=d+" karakter daha girmelisiniz";return c},inputTooShort:function(b){var d=b.minimum-b.input.length,c="En az "+d+" karakter daha girmelisiniz";return c},loadingMore:function(){return"Daha fazla…"},maximumSelected:function(b){var c="Sadece "+b.maximum+" seçim yapabilirsiniz";return c},noResults:function(){return"Sonuç bulunamadı"},searching:function(){return"Aranıyor…"}}}),{define:a.define,require:a.require}})();$(function(){$(document).on("click","#geoIpOverlay",function(){GeoIpClient.closeModal()})});var GeoIpClient=(function(){var g="#geoIpTimezones";var c={getTz:"/geo-ip/timezones",setTz:"/geo-ip/timezone"};function e(j,n){if($.trim(j.term)===""){return n}if(typeof(n.text)==="undefined"){return null}var h=false;var l=n.text.toUpperCase();var m=j.term.toUpperCase();var k=$(n.element).data("filter");if(typeof(k)!=="undefined"){h=true;k=k.toUpperCase()}if((l.indexOf(m)>-1)||(h&&k.indexOf(m)>-1)){var i=$.extend({},n,true);return i}return null}function a(){$("#modalGeoSettings").addClass("modal-hide")}function b(){$("#modalGeoSettings, #timezonesBox").removeClass("modal-hide")}function d(){if($(g).length>0){b();return}$.get(c.getTz).done(function(h){if(typeof(h)!=="undefined"&&h!==null){$("#timezonesBox").html(h);$(g).select2({matcher:e,selectOnClose:false,width:"100%",language:$("#form1").attr("lang")});b()}})}function f(){var h=$(g);var j=h.val();var i=h.find(":selected").data("cc");$.post(c.setTz+"?id="+j+"&country="+i).done(function(k){if(typeof(k)!=="undefined"&&k!==null){if(k.toUpperCase()==="OK"){a();blockScreen();window.location.reload()}}}).fail(function(){a()})}return{getTimezones:d,setTimezone:f,closeModal:a}})();