c+50>=d&&e.loadMore()}})},b.prototype.loadMore=function(){this.loading=!0;varb=a.extend({},{page:1},this.lastParams);b.page++,this.trigger("query:append",b)},b.prototype.createLoadingMore=function(){varb=a('<li class="option load-more" role="treeitem"></li>'),c=this.options.get("translations").get("loadingMore");returnb.html(c(this.lastParams)),b},b}),c("select2/i18n/en",[],function(){return{errorLoading:function(){return"The results could not be loaded."},inputTooLong:function(a){varb=a.input.length-a.maximum,c="Please delete "+b+" character";return1!=b&&(c+="s"),c},inputTooShort:function(a){varb=a.minimum-a.input.length,c="Please enter "+b+" or more character";return1!=b&&(c+="s"),c},searching:function(){return"Searching…"},loadingMore:function(){return"Loading more results…"},maximumSelected:function(a){varb="You can only select"+a.maximum+" item";return1!=a.maximum&&(b+="s"),b},noResults:function(){return"No results found"}}}),c("select2/defaults",["jquery","./results","./selection/single","./selection/multiple","./selection/placeholder","./selection/search","./utils","./translation","./diacritics","./data/select","./data/array","./data/ajax","./data/tags","./data/minimumInputLength","./dropdown","./dropdown/search","./dropdown/hidePlaceholder","./dropdown/infiniteScroll","./i18n/en"],function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r){functions(){this.reset()}s.prototype.apply=function(i){if(i=a.extend({},this.defaults,i),null==i.dataAdapter&&(i.dataAdapter=null!=i.ajax?l:null!=i.data?k:j),i.minimumInputLength>0&&(i.dataAdapter=g.Decorate(i.dataAdapter,n)),null!=i.tags&&(i.dataAdapter=g.Decorate(i.dataAdapter,m)),null==i.resultsAdapter&&(i.resultsAdapter=b,null!=i.ajax&&(i.resultsAdapter=g.Decorate(i.resultsAdapter,r)),null!=i.placeholder&&(i.resultsAdapter=g.Decorate(i.resultsAdapter,q))),null==i.dropdownAdapter)if(i.multiple)i.dropdownAdapter=o;else{vars=g.Decorate(o,p);i.dropdownAdapter=s}if(null==i.selectionAdapter&&(i.selectionAdapter=i.multiple?d:c,null!=i.placeholder&&(i.selectionAdapter=g.Decorate(i.selectionAdapter,e)),i.multiple&&(i.selectionAdapter=g.Decorate(i.selectionAdapter,f))),"string"==typeofi.language&&(i.language=[i.language]),a.isArray(i.language)){for(vart=newh,u=i.language.concat(this.defaults.language),v=0;v<u.length;v++){varw=u[v],x={};try{x=h.loadPath(w)}catch(y){w="select2/i18n/"+w,x=h.loadPath(w)}t.extend(x)}i.translations=t}elsei.translations=newTranslations(i.language);returni},s.prototype.reset=function(){functionb(a){functionb(a){returni[a]||a}returna.replace(/[^\u0000-\u007E]/g,b)}functionc(d,e){if(""===a.trim(d.term))returne;if(e.children&&e.children.length>0){for(varf=a.extend(!0,{},e),g=e.children.length-1;g>=0;g--){varh=e.children[g],i=c(d,h);null==i&&f.children.splice(g,1)}returnf.children.length>0?f:c(d,f)}varj=b(e.text).toUpperCase(),k=b(d.term).toUpperCase();returnj.indexOf(k)>-1?e:null}this.defaults={language:["select2/i18n/en"],matcher:c,minimumInputLength:0,theme:"default",templateResult:function(a){returna.text},templateSelection:function(a){returna.text}}};vart=news;returnt}),c("select2/options",["./defaults"],function(a){functionb(b,c){this.options=b,null!=c&&this.fromElement(c),this.options=a.apply(this.options)}returnb.prototype.fromElement=function(a){returnnull==this.options.multiple&&(this.options.multiple=a.prop("multiple")),this},b.prototype.get=function(a){returnthis.options[a]},b.prototype.set=function(a,b){this.options[a]=b},b}),c("select2/core",["jquery","./options","./utils","./keys"],function(a,b,c,d){vare=function(a,c){if(null==a.data("select2")){this.$element=a,this.id=this._generateId(a),c=c||{},this.options=newb(c,a),e.__super__.constructor.call(this);vard=this.options.get("dataAdapter");this.data=newd(a,this.options);varf=this.render();this._placeContainer(f);varg=this.options.get("selectionAdapter");this.selection=newg(a,this.options);varh=this.selection.render();this._placeSelection(h);vari=this.options.get("dropdownAdapter");this.dropdown=newi(a,this.options);varj=this.dropdown.render();this._placeDrop