window.$=window.$||{},function(){$&&$.fn&&$.fn.select2&&$.fn.select2.amd&&(c=$.fn.select2.amd.define,b=$.fn.select2.amd.require);vara,b,c;!function(d){functione(a,b){returnu.call(a,b)}functionf(a,b){varc,d,e,f,g,h,i,j,k,l,m,n=b&&b.split("/"),o=s.map,p=o&&o["*"]||{};if(a&&"."===a.charAt(0))if(b){for(n=n.slice(0,n.length-1),a=a.split("/"),g=a.length-1,s.nodeIdCompat&&w.test(a[g])&&(a[g]=a[g].replace(w,"")),a=n.concat(a),k=0;k<a.length;k+=1)if(m=a[k],"."===m)a.splice(k,1),k-=1;elseif(".."===m){if(1===k&&(".."===a[2]||".."===a[0]))break;k>0&&(a.splice(k-1,2),k-=2)}a=a.join("/")}else0===a.indexOf("./")&&(a=a.substring(2));if((n||p)&&o){for(c=a.split("/"),k=c.length;k>0;k-=1){if(d=c.slice(0,k).join("/"),n)for(l=n.length;l>0;l-=1)if(e=o[n.slice(0,l).join("/")],e&&(e=e[d])){f=e,h=k;break}if(f)break;!i&&p&&p[d]&&(i=p[d],j=k)}!f&&i&&(f=i,h=j),f&&(c.splice(0,h,f),a=c.join("/"))}returna}functiong(a,b){returnfunction(){returnn.apply(d,v.call(arguments,0).concat([a,b]))}}functionh(a){returnfunction(b){returnf(b,a)}}functioni(a){returnfunction(b){q[a]=b}}functionj(a){if(e(r,a)){varb=r[a];deleter[a],t[a]=!0,m.apply(d,b)}if(!e(q,a)&&!e(t,a))thrownewError("No "+a);returnq[a]}functionk(a){varb,c=a?a.indexOf("!"):-1;returnc>-1&&(b=a.substring(0,c),a=a.substring(c+1,a.length)),[b,a]}functionl(a){returnfunction(){returns&&s.config&&s.config[a]||{}}}varm,n,o,p,q={},r={},s={},t={},u=Object.prototype.hasOwnProperty,v=[].slice,w=/\.js$/;o=function(a,b){varc,d=k(a),e=d[0];returna=d[1],e&&(e=f(e,b),c=j(e)),e?a=c&&c.normalize?c.normalize(a,h(b)):f(a,b):(a=f(a,b),d=k(a),e=d[0],a=d[1],e&&(c=j(e))),{f:e?e+"!"+a:a,n:a,pr:e,p:c}},p={require:function(a){returng(a)},exports:function(a){varb=q[a];return"undefined"!=typeofb?b:q[a]={}},module:function(a){return{id:a,uri:"",exports:q[a],config:l(a)}}},m=function(a,b,c,f){varh,k,l,m,n,s,u=[],v=typeofc;if(f=f||a,"undefined"===v||"function"===v){for(b=!b.length&&c.length?["require","exports","module"]:b,n=0;n<b.length;n+=1)if(m=o(b[n],f),k=m.f,"require"===k)u[n]=p.require(a);elseif("exports"===k)u[n]=p.exports(a),s=!0;elseif("module"===k)h=u[n]=p.module(a);elseif(e(q,k)||e(r,k)||e(t,k))u[n]=j(k);else{if(!m.p)thrownewError(a+" missing "+k);m.p.load(m.n,g(f,!0),i(k),{}),u[n]=q[k]}l=c?c.apply(q[a],u):void0,a&&(h&&h.exports!==d&&h.exports!==q[a]?q[a]=h.exports:l===d&&s||(q[a]=l))}elsea&&(q[a]=c)},a=b=n=function(a,b,c,e,f){if("string"==typeofa)returnp[a]?p[a](b):j(o(a,b).f);if(!a.splice){if(s=a,s.deps&&n(s.deps,s.callback),!b)return;b.splice?(a=b,b=c,c=null):a=d}returnb=b||function(){},"function"==typeofc&&(c=e,e=f),e?m(d,a,b,c):setTimeout(function(){m(d,a,b,c)},4),n},n.config=function(a){returnn(a)},a._defined=q,c=function(a,b,c){b.splice||(c=b,b=[]),e(q,a)||e(r,a)||(r[a]=[a,b,c])},c.amd={jQuery:!0}}(),c("almond",function(){}),function(a,b){"object"==typeofmodule&&"object"==typeofmodule.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)thrownewError("jQuery requires a window with a document");returnb(a)}:b(a)}("undefined"!=typeofwindow?window:this,function(a,b){functiond(a){varb=a.length,c=bb.type(a);return"function"===c||bb.isWindow(a)?!1:1===a.nodeType&&b?!0:"array"===c||0===b||"number"==typeofb&&b>0&&b-1ina}functione(a,b,c){if(bb.isFunction(b))returnbb.grep(a,function(a,d){return!!b.call(a,d,a)!==c});if(b.nodeType)returnbb.grep(a,function(a){returna===b!==c});if("string"==typeofb){if(ib.test(b))returnbb.filter(b,a,c);b=bb.filter(b,a)}returnbb.grep(a,function(a){returnV.call(b,a)>=0!==c})}functionf(a,b){for(;(a=a[b])&&1!==a.nodeType;);returna}functiong(a){varb=pb[a]={};returnbb.each(a.match(ob)||[],function(a,c){b[c]=!0}),b}functionh(){_.removeEventListener("DOMContentLoaded",h,!1),a.removeEventListener("load",h,!1),bb.ready()}functioni(){Object.defineProperty(this.cache={},0,{get:function(){return{}}}),this.expando=bb.expando+Math.random()}functionj(a,b,c){vard;if(void0===c&&1===a.nodeType)if(d="data-"+b.replace(vb,"-$1").toLowerCase(),c=a.getAttribute(d),"string"==typeofc){try{c="true"===c?!0:"false"===c?!1:"null"===
}),this.selection.on("close",function(){a.close()}),this.selection.on("toggle",function(){a.toggleDropdown()}),this.selection.on("results:select",function(){a.trigger("results:select")}),this.selection.on("results:previous",function(){a.trigger("results:previous")}),this.selection.on("results:next",function(){a.trigger("results:next")}),this.selection.on("unselected",function(b){a.trigger("unselect",b),a.close()}),this.selection.on("query",function(b){a.trigger("query",b)}),this.selection.on("keypress",function(b){a.trigger("keypress",b)})},e.prototype._registerDropdownEvents=function(){vara=this;this.dropdown.on("query",function(b){a.trigger("query",b)}),this.dropdown.on("keypress",function(b){a.trigger("keypress",b)})},e.prototype._registerResultsEvents=function(){vara=this;this.results.on("query:append",function(b){a.trigger("query:append",b)}),this.results.on("selected",function(b){a.trigger("select",b),a.close()}),this.results.on("unselected",function(b){a.trigger("unselect",b),a.close()}),this.results.on("results:focus",function(b){a.trigger("results:focus",b)})},e.prototype._registerEvents=function(){vara=this;this.on("open",function(){a.$container.addClass("select2-container--open")}),this.on("close",function(){a.$container.removeClass("select2-container--open")}),this.on("enable",function(){a.$container.removeClass("select2-container--disabled")}),this.on("disable",function(){a.$container.addClass("select2-container--disabled")}),this.on("query",function(b){this.data.query(b,function(c){a.trigger("results:all",{data:c,query:b})})}),this.on("query:append",function(b){this.data.query(b,function(c){a.trigger("results:append",{data:c,query:b})})}),this.on("keypress",function(b){varc=b.which;a.isOpen()?c===d.ENTER?(a.trigger("results:select"),b.preventDefault()):c===d.UP?(a.trigger("results:previous"),b.preventDefault()):c===d.DOWN?(a.trigger("results:next"),b.preventDefault()):(c===d.ESC||c===d.TAB)&&(a.close(),b.preventDefault()):(c===d.ENTER||c===d.SPACE||(c===d.DOWN||c===d.UP)&&b.altKey)&&(a.open(),b.preventDefault())})},e.prototype._syncAttributes=function(){this.options.set("disabled",this.$element.prop("disabled")),this.options.get("disabled")?(this.isOpen()&&this.trigger("close"),this.trigger("disable")):this.trigger("enable")},e.prototype.toggleDropdown=function(){this.options.get("disabled")||(this.isOpen()?this.close():this.open())},e.prototype.open=function(){this.isOpen()||(this.trigger("query",{}),this.trigger("open"))},e.prototype.close=function(){this.isOpen()&&this.trigger("close")},e.prototype.isOpen=function(){returnthis.$container.hasClass("select2-container--open")},e.prototype.enable=function(a){console&&console.warn&&console.warn('Select2: The `select2("val")` method has been deprecated and will be removed in later Select2 versions. Use $element.prop("disabled") instead.'),0===a.length&&(a=[!0]);varb=!a[0];this.$element.prop("disabled",b)},e.prototype.val=function(b){if(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.'),0===b.length)returnthis.$element.val();varc=b[0];a.isArray(c)&&(c=a.map(c,function(a){returna.toString()})),this.$element.val(c).trigger("change")},e.prototype.destroy=function(){this.$container.remove(),this.$element[0].detachEvent&&this.$element[0].detachEvent("onpropertychange",this._sync),null!=this._observer&&(this._observer.disconnect(),this._observer=null),this._sync=null,this.$element.off(".select2"),this.$element.attr("tabindex",this._tabindex),this.$element.show(),this.$element.removeData("select2"),this.data.destroy(),this.selection.destroy(),this.dropdown.destroy(),this.results.destroy(),this.data=null,this.selection=null,this.dropdown=null,this.results=null},e.prototype.render=function(){varb=a('<span class="select2 select2-container"><span class="selection"></span><span class="dropdown-wrapper" aria-hidden="true"></span></span>');returnthis.$container=b,this.$container.addClass("select2-container--"+this.options.get("theme")),b.data("e