1import{r as Y,g as U}from"./jquery-RVw8ip9r.js";function ee(k,I){for(var j=0;j<I.length;j++){const q=I[j];if(typeof q!="string"&&!Array.isArray(q)){for(const g in q)if(g!=="default"&&!(g in k)){const l=Object.getOwnPropertyDescriptor(q,g);l&&Object.defineProperty(k,g,l.get?l:{enumerable:!0,get:()=>q[g]})}}}return Object.freeze(Object.defineProperty(k,Symbol.toStringTag,{value:"Module"}))}var Z={exports:{}};var K;function te(){return K||(K=1,(function(k){(function(I){k.exports?k.exports=function(j,q){return q===void 0&&(typeof window<"u"?q=Y():q=Y()(j)),I(q),q}:I(jQuery)})(function(I){var j=(function(){if(I&&I.fn&&I.fn.select2&&I.fn.select2.amd)var g=I.fn.select2.amd;var g;return(function(){if(!g||!g.requirejs){g?u=g:g={};var l,u,s;(function(r){var t,e,n,i,o={},a={},h={},p={},f=Object.prototype.hasOwnProperty,y=[].slice,E=/\.js$/;function _(c,m){return f.call(c,m)}function S(c,m){var A,O,C,x,R,L,T,d,v,w,b,F,D=m&&m.split("/"),M=h.map,H=M&&M["*"]||{};if(c){for(c=c.split("/"),R=c.length-1,h.nodeIdCompat&&E.test(c[R])&&(c[R]=c[R].replace(E,"")),c[0].charAt(0)==="."&&D&&(F=D.slice(0,D.length-1),c=F.concat(c)),v=0;v<c.length;v++)if(b=c[v],b===".")c.splice(v,1),v-=1;else if(b===".."){if(v===0||v===1&&c[2]===".."||c[v-1]==="..")continue;v>0&&(c.splice(v-1,2),v-=2)}c=c.join("/")}if((D||H)&&M){for(A=c.split("/"),v=A.length;v>0;v-=1){if(O=A.slice(0,v).join("/"),D){for(w=D.length;w>0;w-=1)if(C=M[D.slice(0,w).join("/")],C&&(C=C[O],C)){x=C,L=v;break}}if(x)break;!T&&H&&H[O]&&(T=H[O],d=v)}!x&&T&&(x=T,L=d),x&&(A.splice(0,L,x),c=A.join("/"))}return c}function B(c,m){return function(){var A=y.call(arguments,0);return typeof A[0]!="string"&&A.length===1&&A.push(null),e.apply(r,A.concat([c,m]))}}function P(c){return function(m){return S(m,c)}}function G(c){return function(m){o[c]=m}}function z(c){if(_(a,c)){var m=a[c];delete a[c],p[c]=!0,t.apply(r,m)}if(!_(o,c)&&!_(p,c))throw new Error("No "+c);return o[c]}function N(c){var m,A=c?c.indexOf("!"):-1;return A>-1&&(m=c.substring(0,A),c=c.substring(A+1,c.length)),[m,c]}function W(c){return c?N(c):[]}n=function(c,m){var A,O=N(c),C=O[0],x=m[1];return c=O[1],C&&(C=S(C,x),A=z(C)),C?A&&A.normalize?c=A.normalize(c,P(x)):c=S(c,x):(c=S(c,x),O=N(c),C=O[0],c=O[1],C&&(A=z(C))),{f:C?C+"!"+c:c,n:c,pr:C,p:A}};function V(c){return function(){return h&&h.config&&h.config[c]||{}}}i={require:function(c){return B(c)},exports:function(c){var m=o[c];return typeof m<"u"?m:o[c]={}},module:function(c){return{id:c,uri:"",exports:o[c],config:V(c)}}},t=function(c,m,A,O){var C,x,R,L,T,d,v=[],w=typeof A,b;if(O=O||c,d=W(O),w==="undefined"||w==="function"){for(m=!m.length&&A.length?["require","exports","module"]:m,T=0;T<m.length;T+=1)if(L=n(m[T],d),x=L.f,x==="require")v[T]=i.require(c);else if(x==="exports")v[T]=i.exports(c),b=!0;else if(x==="module")C=v[T]=i.module(c);else if(_(o,x)||_(a,x)||_(p,x))v[T]=z(x);else if(L.p)L.p.load(L.n,B(O,!0),G(x),{}),v[T]=o[x];else throw new Error(c+" missing "+x);R=A?A.apply(o[c],v):void 0,c&&(C&&C.exports!==r&&C.exports!==o[c]?o[c]=C.exports:(R!==r||!b)&&(o[c]=R))}else c&&(o[c]=A)},l=u=e=function(c,m,A,O,C){if(typeof c=="string")return i[c]?i[c](m):z(n(c,W(m)).f);if(!c.splice){if(h=c,h.deps&&e(h.deps,h.callback),!m)return;m.splice?(c=m,m=A,A=null):c=r}return m=m||function(){},typeof A=="function"&&(A=O,O=C),O?t(r,c,m,A):setTimeout(function(){t(r,c,m,A)},4),e},e.config=function(c){return e(c)},l._defined=o,s=function(c,m,A){if(typeof c!="string")throw new Error("See almond README: incorrect module build, no module name");m.splice||(A=m,m=[]),!_(o,c)&&!_(a,c)&&(a[c]=[c,m,A])},s.amd={jQuery:!0}})(),g.requirejs=l,g.require=u,g.define=s}})(),g.define("almond",function(){}),g.define("jquery",[],function(){var l=I||$;return l==null&&console&&console.error&&console.error("Select2: An instance of jQuery or a jQuery-compatible library was not found. Make sure that you are including jQuery before Select2 on your web page."),l}),g.define("select2/utils",["jquery"],function(l){var u={};u.Extend=function(e,n){var i={}.hasOwnProperty;function o(){this.constructor=e}for(var a in n)i.call(n,a)&&(e[a]=n[a]);return o.prototype=n.prototype,e.prototype=new o,e.__super__=n.prototype,e};function s(e){var n=e.prototype,i=[];for(var o in n){var a=n[o];typeof a=="function"&&o!=="constructor"&&i.push(o)}return i}u.Decorate=function(e,n){var i=s(n),o=s(e);function a(){var S=Array.prototype.unshift,B=n.prototype.constructor.length,P=e.prototype.constructor;B>0&&(S.call(arguments,e.prototype.constructor),P=n.prototype.constructor),P.apply(this,arguments)}n.displayName=e.displayName;function h(){this.constructor=a}a.prototype=new h;for(var p=0;p<o.length;p++){var f=o[p];a.prototype[f]=e.prototype[f]}for(var y=function(S){var B=function(){};S in a.prototype&&(B=a.prototype[S]);var P=n.prototype[S];return function(){var G=Array.prototype.unshift;return G.call(arguments,B),P.apply(this,arguments)}},E=0;E<i.length;E++){var _=i[E];a.prototype[_]=y(_)}return a};var r=function(){this.listeners={}};r.prototype.on=function(e,n){this.listeners=this.listeners||{},e in this.listeners?this.listeners[e].push(n):this.listeners[e]=[n]},r.prototype.trigger=function(e){var n=Array.prototype.slice,i=n.call(arguments,1
1);this.listeners=this.listeners||{},i==null&&(i=[]),i.length===0&&i.push({}),i[0]._type=e,e in this.listeners&&this.invoke(this.listeners[e],n.call(arguments,1)),"*"in this.listeners&&this.invoke(this.listeners["*"],arguments)},r.prototype.invoke=function(e,n){for(var i=0,o=e.length;i<o;i++)e[i].apply(this,n)},u.Observable=r,u.generateChars=function(e){for(var n="",i=0;i<e;i++){var o=Math.floor(Math.random()*36);n+=o.toString(36)}return n},u.bind=function(e,n){return function(){e.apply(n,arguments)}},u._convertData=function(e){for(var n in e){var i=n.split("-"),o=e;if(i.length!==1){for(var a=0;a<i.length;a++){var h=i[a];h=h.substring(0,1).toLowerCase()+h.substring(1),h in o||(o[h]={}),a==i.length-1&&(o[h]=e[n]),o=o[h]}delete e[n]}}return e},u.hasScroll=function(e,n){var i=l(n),o=n.style.overflowX,a=n.style.overflowY;return o===a&&(a==="hidden"||a==="visible")?!1:o==="scroll"||a==="scroll"?!0:i.innerHeight()<n.scrollHeight||i.innerWidth()<n.scrollWidth},u.escapeMarkup=function(e){var n={"\\":"\","&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};return typeof e!="string"?e:String(e).replace(/[&<>"'\/\\]/g,function(i){return n[i]})},u.__cache={};var t=0;return u.GetUniqueElementId=function(e){var n=e.getAttribute("data-select2-id");return n!=null||(e.id?n="select2-data-"+e.id:n="select2-data-"+(++t).toString()+"-"+u.generateChars(4),e.setAttribute("data-select2-id",n)),n},u.StoreData=function(e,n,i){var o=u.GetUniqueElementId(e);u.__cache[o]||(u.__cache[o]={}),u.__cache[o][n]=i},u.GetData=function(e,n){var i=u.GetUniqueElementId(e);return n?u.__cache[i]&&u.__cache[i][n]!=null?u.__cache[i][n]:l(e).data(n):u.__cache[i]},u.RemoveData=function(e){var n=u.GetUniqueElementId(e);u.__cache[n]!=null&&delete u.__cache[n],e.removeAttribute("data-select2-id")},u.copyNonInternalCssClasses=function(e,n){var i=e.getAttribute("class").trim().split(/\s+/);i=i.filter(function(h){return h.indexOf("select2-")===0});var o=n.getAttribute("class").trim().split(/\s+/);o=o.filter(function(h){return h.indexOf("select2-")!==0});var a=i.concat(o);e.setAttribute("class",a.join(" "))},u}),g.define("select2/results",["jquery","./utils"],function(l,u){function s(r,t,e){this.$element=r,this.data=e,this.options=t,s.__super__.constructor.call(this)}return u.Extend(s,u.Observable),s.prototype.render=function(){var r=l('<ul class="select2-results__options" role="listbox"></ul>');return this.options.get("multiple")&&r.attr("aria-multiselectable","true"),this.$results=r,r},s.prototype.clear=function(){this.$results.empty()},s.prototype.displayMessage=function(r){var t=this.options.get("escapeMarkup");this.clear(),this.hideLoading();var e=l('<li role="alert" aria-live="assertive" class="select2-results__option"></li>'),n=this.options.get("translations").get(r.message);e.append(t(n(r.args))),e[0].className+=" select2-results__message",this.$results.append(e)},s.prototype.hideMessages=function(){this.$results.find(".select2-results__message").remove()},s.prototype.append=function(r){this.hideLoading();var t=[];if(r.results==null||r.results.length===0){this.$results.children().length===0&&this.trigger("results:message",{message:"noResults"});return}r.results=this.sort(r.results);for(var e=0;e<r.results.length;e++){var n=r.results[e],i=this.option(n);t.push(i)}this.$results.append(t)},s.prototype.position=function(r,t){var e=t.find(".select2-results");e.append(r)},s.prototype.sort=function(r){var t=this.options.get("sorter");return t(r)},s.prototype.highlightFirstItem=function(){var r=this.$results.find(".select2-results__option--selectable"),t=r.filter(".select2-results__option--selected");t.length>0?t.first().trigger("mouseenter"):r.first().trigger("mouseenter"),this.ensureHighlightVisible()},s.prototype.setClasses=function(){var r=this;this.data.current(function(t){var e=t.map(function(i){return i.id.toString()}),n=r.$results.find(".select2-results__option--selectable");n.each(function(){var i=l(this),o=u.GetData(this,"data"),a=""+o.id;o.element!=null&&o.element.selected||o.element==null&&e.indexOf(a)>-1?(this.classList.add("select2-results__option--selected"),i.attr("aria-selected","true")):(this.classList.remove("select2-results__option--selected"),i.attr("aria-selected","false"))})})},s.prototype.showLoading=function(r){this.hideLoading();var t=this.options.get("translations").get("searching"),e={disabled:!0,loading:!0,text:t(r)},n=this.option(e);n.className+=" loading-results",this.$results.prepend(n)},s.prototype.hideLoading=function(){this.$results.find(".loading-results").remove()},s.prototype.option=function(r){var t=document.createElement("li");t.classList.add("select2-results__option"),t.classList.add("select2-results__option--selectable");var e={role:"option"},n=window.Element.prototype.matches||window.Element.prototype.msMatchesSelector||window.Element.prototype.webkitMatchesSelector;(r.element!=null&&n.call(r.element,":disabled")||r.element==null&&r.disabled)&&(e["aria-disabled"]="true",t.classList.remove("select2-results__option--selectable"),t.classList.add("select2-results__option--disabled")),r.id==null&&t.classList.remove("select2-results__option--selectable"),r._resultId!=null&&(t.id=r._resultId),r.title&&(t.title=r.title),r.children&&(e.role="group",e["aria-label"]=r.text,t.classList.remove("select2-results__option--selectable"),t.classList.add("select2-results__option--group"));for(var i in e){var o=e[i];t.setAttribute(i,o)}if(r.children){var a=l(t),h=document.createElement("strong");h.className="select2-results__group",this.template(r,h);for(var p=[],f=0;f<r.children.length;f++){var y=r.children[f],E=this.option(y);p.push(E)}
1var _=l("<ul></ul>",{class:"select2-results__options select2-results__options--nested",role:"none"});_.append(p),a.append(h),a.append(_)}else this.template(r,t);return u.StoreData(t,"data",r),t},s.prototype.bind=function(r,t){var e=this,n=r.id+"-results";this.$results.attr("id",n),r.on("results:all",function(i){e.clear(),e.append(i.data),r.isOpen()&&(e.setClasses(),e.highlightFirstItem())}),r.on("results:append",function(i){e.append(i.data),r.isOpen()&&e.setClasses()}),r.on("query",function(i){e.hideMessages(),e.showLoading(i)}),r.on("select",function(){r.isOpen()&&(e.setClasses(),e.options.get("scrollAfterSelect")&&e.highlightFirstItem())}),r.on("unselect",function(){r.isOpen()&&(e.setClasses(),e.options.get("scrollAfterSelect")&&e.highlightFirstItem())}),r.on("open",function(){e.$results.attr("aria-expanded","true"),e.$results.attr("aria-hidden","false"),e.setClasses(),e.ensureHighlightVisible()}),r.on("close",function(){e.$results.attr("aria-expanded","false"),e.$results.attr("aria-hidden","true"),e.$results.removeAttr("aria-activedescendant")}),r.on("results:toggle",function(){var i=e.getHighlightedResults();i.length!==0&&i.trigger("mouseup")}),r.on("results:select",function(){var i=e.getHighlightedResults();if(i.length!==0){var o=u.GetData(i[0],"data");i.hasClass("select2-results__option--selected")?e.trigger("close",{}):e.trigger("select",{data:o})}}),r.on("results:previous",function(){var i=e.getHighlightedResults(),o=e.$results.find(".select2-results__option--selectable"),a=o.index(i);if(!(a<=0)){var h=a-1;i.length===0&&(h=0);var p=o.eq(h);p.trigger("mouseenter");var f=e.$results.offset().top,y=p.offset().top,E=e.$results.scrollTop()+(y-f);h===0?e.$results.scrollTop(0):y-f<0&&e.$results.scrollTop(E)}}),r.on("results:next",function(){var i=e.getHighlightedResults(),o=e.$results.find(".select2-results__option--selectable"),a=o.index(i),h=a+1;if(!(h>=o.length)){var p=o.eq(h);p.trigger("mouseenter");var f=e.$results.offset().top+e.$results.outerHeight(!1),y=p.offset().top+p.outerHeight(!1),E=e.$results.scrollTop()+y-f;h===0?e.$results.scrollTop(0):y>f&&e.$results.scrollTop(E)}}),r.on("results:focus",function(i){i.element[0].classList.add("select2-results__option--highlighted"),i.element[0].setAttribute("aria-selected","true")}),r.on("results:message",function(i){e.displayMessage(i)}),l.fn.mousewheel&&this.$results.on("mousewheel",function(i){var o=e.$results.scrollTop(),a=e.$results.get(0).scrollHeight-o+i.deltaY,h=i.deltaY>0&&o-i.deltaY<=0,p=i.deltaY<0&&a<=e.$results.height();h?(e.$results.scrollTop(0),i.preventDefault(),i.stopPropagation()):p&&(e.$results.scrollTop(e.$results.get(0).scrollHeight-e.$results.height()),i.preventDefault(),i.stopPropagation())}),this.$results.on("mouseup",".select2-results__option--selectable",function(i){var o=l(this),a=u.GetData(this,"data");if(o.hasClass("select2-results__option--selected")){e.options.get("multiple")?e.trigger("unselect",{originalEvent:i,data:a}):e.trigger("close",{});return}e.trigger("select",{originalEvent:i,data:a})}),this.$results.on("mouseenter",".select2-results__option--selectable",function(i){var o=u.GetData(this,"data");e.getHighlightedResults().removeClass("select2-results__option--highlighted").attr("aria-selected","false"),e.trigger("results:focus",{data:o,element:l(this)})})},s.prototype.getHighlightedResults=function(){var r=this.$results.find(".select2-results__option--highlighted");return r},s.prototype.destroy=function(){this.$results.remove()},s.prototype.ensureHighlightVisible=function(){var r=this.getHighlightedResults();if(r.length!==0){var t=this.$results.find(".select2-results__option--selectable"),e=t.index(r),n=this.$results.offset().top,i=r.offset().top,o=this.$results.scrollTop()+(i-n),a=i-n;o-=r.outerHeight(!1)*2,e<=2?this.$results.scrollTop(0):(a>this.$results.outerHeight()||a<0)&&this.$results.scrollTop(o)}},s.prototype.template=function(r,t){var e=this.options.get("templateResult"),n=this.options.get("escapeMarkup"),i=e(r,t);i==null?t.style.display="none":typeof i=="string"?t.innerHTML=n(i):l(t).append(i)},s}),g.define("select2/keys",[],function(){var l={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 l}),g.define("select2/selection/base",["jquery","../utils","../keys"],function(l,u,s){function r(t,e){this.$element=t,this.options=e,r.__super__.constructor.call(this)}return u.Extend(r,u.Observable),r.prototype.render=function(){var t=l('<span class="select2-selection" role="combobox" aria-haspopup="true" aria-expanded="false"></span>');return this._tabindex=0,u.GetData(this.$element[0],"old-tabindex")!=null?this._tabindex=u.GetData(this.$element[0],"old-tabindex"):this.$element.attr("tabindex")!=null&&(this._tabindex=this.$element.attr("tabindex")),t.attr("title",this.$element.attr("title")),t.attr("tabindex",this._tabindex),t.attr("aria-disabled","false"),this.$selection=t,t},r.prototype.bind=function(t,e){var n=this,i=t.id+"-results";this.container=t,this.$selection.on("focus",function(o){n.trigger("focus",o)}),this.$selection.on("blur",function(o){n._handleBlur(o)}),this.$selection.on("keydown",function(o){n.trigger("keypress",o),o.which===s.SPACE&&o.preventDefault()}),t.on("results:focus",function(o){n.$selection.attr("aria-activedescendant",o.data._resultId)}),t.on("selection:update",function(o){n.update(o.data)}),t.on("open",function(){n.$selection.attr("aria-expanded","true"),n.$selection.attr("aria-owns",i),n._attachCloseHandler(t)}),t.on("close",function(){n.$selection.attr("aria-expanded","fal
1se"),n.$selection.removeAttr("aria-activedescendant"),n.$selection.removeAttr("aria-owns"),n.$selection.trigger("focus"),n._detachCloseHandler(t)}),t.on("enable",function(){n.$selection.attr("tabindex",n._tabindex),n.$selection.attr("aria-disabled","false")}),t.on("disable",function(){n.$selection.attr("tabindex","-1"),n.$selection.attr("aria-disabled","true")})},r.prototype._handleBlur=function(t){var e=this;window.setTimeout(function(){document.activeElement==e.$selection[0]||l.contains(e.$selection[0],document.activeElement)||e.trigger("blur",t)},1)},r.prototype._attachCloseHandler=function(t){l(document.body).on("mousedown.select2."+t.id,function(e){var n=l(e.target),i=n.closest(".select2"),o=l(".select2.select2-container--open");o.each(function(){if(this!=i[0]){var a=u.GetData(this,"element");a.select2("close")}})})},r.prototype._detachCloseHandler=function(t){l(document.body).off("mousedown.select2."+t.id)},r.prototype.position=function(t,e){var n=e.find(".selection");n.append(t)},r.prototype.destroy=function(){this._detachCloseHandler(this.container)},r.prototype.update=function(t){throw new Error("The `update` method must be defined in child classes.")},r.prototype.isEnabled=function(){return!this.isDisabled()},r.prototype.isDisabled=function(){return this.options.get("disabled")},r}),g.define("select2/selection/single",["jquery","./base","../utils","../keys"],function(l,u,s,r){function t(){t.__super__.constructor.apply(this,arguments)}return s.Extend(t,u),t.prototype.render=function(){var e=t.__super__.render.call(this);return e[0].classList.add("select2-selection--single"),e.html('<span class="select2-selection__rendered"></span><span class="select2-selection__arrow" role="presentation"><b role="presentation"></b></span>'),e},t.prototype.bind=function(e,n){var i=this;t.__super__.bind.apply(this,arguments);var o=e.id+"-container";this.$selection.find(".select2-selection__rendered").attr("id",o).attr("role","textbox").attr("aria-readonly","true"),this.$selection.attr("aria-labelledby",o),this.$selection.attr("aria-controls",o),this.$selection.on("mousedown",function(a){a.which===1&&i.trigger("toggle",{originalEvent:a})}),this.$selection.on("focus",function(a){}),this.$selection.on("blur",function(a){}),e.on("focus",function(a){e.isOpen()||i.$selection.trigger("focus")})},t.prototype.clear=function(){var e=this.$selection.find(".select2-selection__rendered");e.empty(),e.removeAttr("title")},t.prototype.display=function(e,n){var i=this.options.get("templateSelection"),o=this.options.get("escapeMarkup");return o(i(e,n))},t.prototype.selectionContainer=function(){return l("<span></span>")},t.prototype.update=function(e){if(e.length===0){this.clear();return}var n=e[0],i=this.$selection.find(".select2-selection__rendered"),o=this.display(n,i);i.empty().append(o);var a=n.title||n.text;a?i.attr("title",a):i.removeAttr("title")},t}),g.define("select2/selection/multiple",["jquery","./base","../utils"],function(l,u,s){function r(t,e){r.__super__.constructor.apply(this,arguments)}return s.Extend(r,u),r.prototype.render=function(){var t=r.__super__.render.call(this);return t[0].classList.add("select2-selection--multiple"),t.html('<ul class="select2-selection__rendered"></ul>'),t},r.prototype.bind=function(t,e){var n=this;r.__super__.bind.apply(this,arguments);var i=t.id+"-container";this.$selection.find(".select2-selection__rendered").attr("id",i),this.$selection.on("click",function(o){n.trigger("toggle",{originalEvent:o})}),this.$selection.on("click",".select2-selection__choice__remove",function(o){if(!n.isDisabled()){var a=l(this),h=a.parent(),p=s.GetData(h[0],"data");n.trigger("unselect",{originalEvent:o,data:p})}}),this.$selection.on("keydown",".select2-selection__choice__remove",function(o){n.isDisabled()||o.stopPropagation()})},r.prototype.clear=function(){var t=this.$selection.find(".select2-selection__rendered");t.empty(),t.removeAttr("title")},r.prototype.display=function(t,e){var n=this.options.get("templateSelection"),i=this.options.get("escapeMarkup");return i(n(t,e))},r.prototype.selectionContainer=function(){var t=l('<li class="select2-selection__choice"><button type="button" class="select2-selection__choice__remove" tabindex="-1"><span aria-hidden="true">×</span></button><span class="select2-selection__choice__display"></span></li>');return t},r.prototype.update=function(t){if(this.clear(),t.length!==0){for(var e=[],n=this.$selection.find(".select2-selection__rendered").attr("id")+"-choice-",i=0;i<t.length;i++){var o=t[i],a=this.selectionContainer(),h=this.display(o,a),p=n+s.generateChars(4)+"-";o.id?p+=o.id:p+=s.generateChars(4),a.find(".select2-selection__choice__display").append(h).attr("id",p);var f=o.title||o.text;f&&a.attr("title",f);var y=this.options.get("translations").get("removeItem"),E=a.find(".select2-selection__choice__remove");E.attr("title",y()),E.attr("aria-label",y()),E.attr("aria-describedby",p),s.StoreData(a[0],"data",o),e.push(a)}var _=this.$selection.find(".select2-selection__rendered");_.append(e)}},r}),g.define("select2/selection/placeholder",[],function(){function l(u,s,r){this.placeholder=this.normalizePlaceholder(r.get("placeholder")),u.call(this,s,r)}return l.prototype.normalizePlaceholder=function(u,s){return typeof s=="string"&&(s={id:"",text:s}),s},l.prototype.createPlaceholder=function(u,s){var r=this.selectionContainer();r.html(this.display(s)),r[0].classList.add("select2-selection__placeholder"),r[0].classList.remove("select2-selection__choice");var t=s.title||s.text||r.text();return this.$selection.find(".select2-selection__rendered").attr("title",t),r},l.prototype.update=function(u,s){var r=s.length==1&&s[0].id!=this.placeholder.id,t=s.length>1;if(t||r)return u.call(this,s);this.clear();var e=this.createPlaceholder(this.placeholder);this.$selection.find(".select2-selection__rendered").append(e)},l}
1),g.define("select2/selection/allowClear",["jquery","../keys","../utils"],function(l,u,s){function r(){}return r.prototype.bind=function(t,e,n){var i=this;t.call(this,e,n),this.placeholder==null&&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(o){i._handleClear(o)}),e.on("keypress",function(o){i._handleKeyboardClear(o,e)})},r.prototype._handleClear=function(t,e){if(!this.isDisabled()){var n=this.$selection.find(".select2-selection__clear");if(n.length!==0){e.stopPropagation();var i=s.GetData(n[0],"data"),o=this.$element.val();this.$element.val(this.placeholder.id);var a={data:i};if(this.trigger("clear",a),a.prevented){this.$element.val(o);return}for(var h=0;h<i.length;h++)if(a={data:i[h]},this.trigger("unselect",a),a.prevented){this.$element.val(o);return}this.$element.trigger("input").trigger("change"),this.trigger("toggle",{})}}},r.prototype._handleKeyboardClear=function(t,e,n){n.isOpen()||(e.which==u.DELETE||e.which==u.BACKSPACE)&&this._handleClear(e)},r.prototype.update=function(t,e){if(t.call(this,e),this.$selection.find(".select2-selection__clear").remove(),this.$selection[0].classList.remove("select2-selection--clearable"),!(this.$selection.find(".select2-selection__placeholder").length>0||e.length===0)){var n=this.$selection.find(".select2-selection__rendered").attr("id"),i=this.options.get("translations").get("removeAllItems"),o=l('<button type="button" class="select2-selection__clear" tabindex="-1"><span aria-hidden="true">×</span></button>');o.attr("title",i()),o.attr("aria-label",i()),o.attr("aria-describedby",n),s.StoreData(o[0],"data",e),this.$selection.prepend(o),this.$selection[0].classList.add("select2-selection--clearable")}},r}),g.define("select2/selection/search",["jquery","../utils","../keys"],function(l,u,s){function r(t,e,n){t.call(this,e,n)}return r.prototype.render=function(t){var e=this.options.get("translations").get("search"),n=l('<span class="select2-search select2-search--inline"><textarea class="select2-search__field" type="search" tabindex="-1" autocorrect="off" autocapitalize="none" spellcheck="false" role="searchbox" aria-autocomplete="list" ></textarea></span>');this.$searchContainer=n,this.$search=n.find("textarea"),this.$search.prop("autocomplete",this.options.get("autocomplete")),this.$search.attr("aria-label",e());var i=t.call(this);return this._transferTabIndex(),i.append(this.$searchContainer),i},r.prototype.bind=function(t,e,n){var i=this,o=e.id+"-results",a=e.id+"-container";t.call(this,e,n),i.$search.attr("aria-describedby",a),e.on("open",function(){i.$search.attr("aria-controls",o),i.$search.trigger("focus")}),e.on("close",function(){i.$search.val(""),i.resizeSearch(),i.$search.removeAttr("aria-controls"),i.$search.removeAttr("aria-activedescendant"),i.$search.trigger("focus")}),e.on("enable",function(){i.$search.prop("disabled",!1),i._transferTabIndex()}),e.on("disable",function(){i.$search.prop("disabled",!0)}),e.on("focus",function(f){i.$search.trigger("focus")}),e.on("results:focus",function(f){f.data._resultId?i.$search.attr("aria-activedescendant",f.data._resultId):i.$search.removeAttr("aria-activedescendant")}),this.$selection.on("focusin",".select2-search--inline",function(f){i.trigger("focus",f)}),this.$selection.on("focusout",".select2-search--inline",function(f){i._handleBlur(f)}),this.$selection.on("keydown",".select2-search--inline",function(f){f.stopPropagation(),i.trigger("keypress",f),i._keyUpPrevented=f.isDefaultPrevented();var y=f.which;if(y===s.BACKSPACE&&i.$search.val()===""){var E=i.$selection.find(".select2-selection__choice").last();if(E.length>0){var _=u.GetData(E[0],"data");i.searchRemoveChoice(_),f.preventDefault()}}}),this.$selection.on("click",".select2-search--inline",function(f){i.$search.val()&&f.stopPropagation()});var h=document.documentMode,p=h&&h<=11;this.$selection.on("input.searchcheck",".select2-search--inline",function(f){if(p){i.$selection.off("input.search input.searchcheck");return}i.$selection.off("keyup.search")}),this.$selection.on("keyup.search input.search",".select2-search--inline",function(f){if(p&&f.type==="input"){i.$selection.off("input.search input.searchcheck");return}var y=f.which;y==s.SHIFT||y==s.CTRL||y==s.ALT||y!=s.TAB&&i.handleSearch(f)})},r.prototype._transferTabIndex=function(t){this.$search.attr("tabindex",this.$selection.attr("tabindex")),this.$selection.attr("tabindex","-1")},r.prototype.createPlaceholder=function(t,e){this.$search.attr("placeholder",e.text)},r.prototype.update=function(t,e){var n=this.$search[0]==document.activeElement;this.$search.attr("placeholder",""),t.call(this,e),this.resizeSearch(),n&&this.$search.trigger("focus")},r.prototype.handleSearch=function(){if(this.resizeSearch(),!this._keyUpPrevented){var t=this.$search.val();this.trigger("query",{term:t})}this._keyUpPrevented=!1},r.prototype.searchRemoveChoice=function(t,e){this.trigger("unselect",{data:e}),this.$search.val(e.text),this.handleSearch()},r.prototype.resizeSearch=function(){this.$search.css("width","25px");var t="100%";if(this.$search.attr("placeholder")===""){var e=this.$search.val().length+1;t=e*.75+"em"}this.$search.css("width",t)},r}),g.define("select2/selection/selectionCss",["../utils"],function(l){function u(){}return u.prototype.render=function(s){var r=s.call(this),t=this.options.get("selectionCssClass")||"";return t.indexOf(":all:")!==-1&&(t=t.replace(":all:",""),l.copyNonInternalCssClasse
vendor: 4,922 bytes, line 1
1s(r[0],this.$element[0])),r.addClass(t),r},u}),g.define("select2/selection/eventRelay",["jquery"],function(l){function u(){}return u.prototype.bind=function(s,r,t){var e=this,n=["open","opening","close","closing","select","selecting","unselect","unselecting","clear","clearing"],i=["opening","closing","selecting","unselecting","clearing"];s.call(this,r,t),r.on("*",function(o,a){if(n.indexOf(o)!==-1){a=a||{};var h=l.Event("select2:"+o,{params:a});e.$element.trigger(h),i.indexOf(o)!==-1&&(a.prevented=h.isDefaultPrevented())}})},u}),g.define("select2/translation",["jquery","require"],function(l,u){function s(r){this.dict=r||{}}return s.prototype.all=function(){return this.dict},s.prototype.get=function(r){return this.dict[r]},s.prototype.extend=function(r){this.dict=l.extend({},r.all(),this.dict)},s._cache={},s.loadPath=function(r){if(!(r in s._cache)){var t=u(r);s._cache[r]=t}return new s(s._cache[r])},s}),g.define("select2/diacritics",[],function(){var l={"â¶":"A",A:"A",Ã:"A",Ã:"A",Ã:"A",Ầ:"A",Ấ:"A",Ẫ:"A",Ẩ:"A",Ã:"A",Ä:"A",Ä:"A",Ằ:"A",Ắ:"A",Ẵ:"A",Ẳ:"A",Ȧ:"A",Ç :"A",Ã:"A",Ç:"A",Ả:"A",Ã
:"A",Ǻ:"A",Ç:"A",È:"A",È:"A",Ạ:"A",Ậ:"A",Ặ:"A",á¸:"A",Ä:"A","Ⱥ":"A","Ɐ":"A","ê²":"AA",Ã:"AE",Ǽ:"AE",Ç¢:"AE","ê´":"AO","ê¶":"AU","ê¸":"AV","êº":"AV","ê¼":"AY","â·":"B",ï¼¢:"B",á¸:"B",á¸:"B",á¸:"B","É":"B",Æ:"B",Æ:"B","â¸":"C",ï¼£:"C",Ä:"C",Ä:"C",Ä:"C",Ä:"C",Ã:"C",á¸:"C",Æ:"C","È»":"C","ê¾":"C","â¹":"D",D:"D",á¸:"D",Ä:"D",á¸:"D",á¸:"D",á¸:"D",á¸:"D",Ä:"D",Æ:"D",Æ:"D",Æ:"D","ê¹":"D",DZ:"DZ",Ç:"DZ",Dz:"Dz",Ç
:"Dz","âº":"E",ï¼¥:"E",Ã:"E",Ã:"E",Ã:"E",á»:"E",Ế:"E",á»:"E",á»:"E",Ẽ:"E",Ä:"E",á¸:"E",á¸:"E",Ä:"E",Ä:"E",Ã:"E",Ẻ:"E",Ä:"E",È:"E",È:"E",Ẹ:"E",á»:"E",Ȩ:"E",á¸:"E",Ä:"E",á¸:"E",á¸:"E",Æ:"E",Æ:"E","â»":"F",F:"F",á¸:"F",Æ:"F","ê»":"F","â¼":"G",ï¼§:"G",Ç´:"G",Ä:"G",Ḡ:"G",Ä:"G",Ä :"G",Ǧ:"G",Ä¢:"G",Ǥ:"G",Æ:"G","ê ":"G","ê½":"G","ê¾":"G","â½":"H",H:"H",Ĥ:"H",Ḣ:"H",Ḧ:"H",È:"H",Ḥ:"H",Ḩ:"H",Ḫ:"H",Ħ:"H","â±§":"H","â±µ":"H","ê":"H","â¾":"I",I:"I",Ã:"I",Ã:"I",Ã:"I",Ĩ:"I",Ī:"I",Ĭ:"I",İ:"I",Ã:"I",Ḯ:"I",á»:"I",Ç:"I",È:"I",È:"I",á»:"I",Ä®:"I",Ḭ:"I",Æ:"I","â¿":"J",J:"J",Ä´:"J","É":"J","â":"K",K:"K",Ḱ:"K",Ǩ:"K",Ḳ:"K",Ķ:"K",Ḵ:"K",Æ:"K","Ⱪ":"K","ê":"K","ê":"K","ê":"K","ê¢":"K","â":"L",L:"L",Ä¿:"L",Ĺ:"L",Ľ:"L",Ḷ:"L",Ḹ:"L",Ä»:"L",Ḽ:"L",Ḻ:"L",Å:"L","Ƚ":"L","â±¢":"L","â± ":"L","ê":"L","ê":"L","ê":"L",Ç:"LJ",Ç:"Lj","â":"M",ï¼:"M",Ḿ:"M",á¹:"M",á¹:"M","â±®":"M",Æ:"M","â":"N",ï¼®:"N",Ǹ:"N",Å:"N",Ã:"N",á¹:"N",Å:"N",á¹:"N",Å
:"N",á¹:"N",á¹:"N","È ":"N",Æ:"N","ê":"N","ê¤":"N",Ç:"NJ",Ç:"Nj","â":"O",O:"O",Ã:"O",Ã:"O",Ã:"O",á»:"O",á»:"O",á»:"O",á»:"O",Ã:"O",á¹:"O",Ȭ:"O",á¹:"O",Å:"O",á¹:"O",á¹:"O",Å:"O",È®:"O",Ȱ:"O",Ã:"O",Ȫ:"O",á»:"O",Å:"O",Ç:"O",È:"O",È:"O",Æ :"O",á»:"O",á»:"O",á» :"O",á»:"O",Ợ:"O",á»:"O",á»:"O",Ǫ:"O",Ǭ:"O",Ã:"O",Ǿ:"O",Æ:"O",Æ:"O","ê":"O","ê":"O",Å:"OE",Æ¢:"OI","ê":"OO",È¢:"OU","â
":"P",ï¼°:"P",á¹:"P",á¹:"P",Ƥ:"P","â±£":"P","ê":"P","ê":"P","ê":"P","â":"Q",ï¼±:"Q","ê":"Q","ê":"Q","É":"Q","â":"R",ï¼²:"R",Å:"R",á¹:"R",Å:"R",È:"R",È:"R",á¹:"R",á¹:"R",Å:"R",á¹:"R","É":"R","Ɽ":"R","ê":"R","ê¦":"R","ê":"R","â":"S",ï¼³:"S","áº":"S",Å:"S",Ṥ:"S",Å:"S",á¹ :"S",Å :"S",Ṧ:"S",á¹¢:"S",Ṩ:"S",È:"S",Å:"S","â±¾":"S","ê¨":"S","ê":"S","â":"T",ï¼´:"T",Ṫ:"T",Ť:"T",Ṭ:"T",È:"T",Å¢:"T",á¹°:"T",á¹®:"T",Ŧ:"T",Ƭ:"T",Æ®:"T","Ⱦ":"T","ê":"T","ê¨":"TZ","â":"U",ï¼µ:"U",Ã:"U",Ã:"U",Ã:"U",Ũ:"U",Ṹ:"U",Ū:"U",Ṻ:"U",Ŭ:"U",Ã:"U",Ç:"U",Ç:"U",Ç:"U",Ç:"U",Ủ:"U",Å®:"U",Ű:"U",Ç:"U",È:"U",È:"U",Ư:"U",Ừ:"U",Ứ:"U",á»®:"U",Ử:"U",á»°:"U",Ụ:"U",á¹²:"U",Ų:"U",á¹¶:"U",á¹´:"U","É":"U","â":"V",ï¼¶:"V",á¹¼:"V",á¹¾:"V",Ʋ:"V","ê":"V","É
":"V","ê ":"VY","â":"W",ï¼·:"W",áº:"W",áº:"W",Å´:"W",áº:"W",áº:"W",áº:"W","â±²":"W","â":"X",X:"X",áº:"X",áº:"X","â":"Y",ï¼¹:"Y",Ỳ:"Y",Ã:"Y",Ŷ:"Y",Ỹ:"Y",Ȳ:"Y",áº:"Y",Ÿ:"Y",á»¶:"Y",á»´:"Y",Ƴ:"Y","É":"Y","Ỿ":"Y","â":"Z",Z:"Z",Ź:"Z",áº:"Z",Å»:"Z",Ž:"Z",áº:"Z",áº:"Z",Ƶ:"Z",Ȥ:"Z","Ɀ":"Z","Ⱬ":"Z","ê¢":"Z","â":"a",ï½:"a",áº:"a",à :"a",á:"a",â:"a",ầ:"a",ấ:"a",ẫ:"a",ẩ:"a",ã:"a",Ä:"a",Ä:"a",ằ:"a",ắ:"a",ẵ:"a",ẳ:"a",ȧ:"a",Ç¡:"a",ä:"a",Ç:"a",ả:"a",Ã¥:"a",Ç»:"a",Ç:"a",È:"a",È:"a",ạ:"a",áº:"a",ặ:"a",á¸:"a",Ä
:"a","â±¥":"a",É:"a","ê³":"aa",æ:"ae",ǽ:"ae",Ç£:"ae","êµ":"ao","ê·":"au","ê¹":"av","ê»":"av","ê½":"ay","â":"b",ï½:"b",á¸:"b",á¸
:"b",á¸:"b",Æ:"b",Æ:"b",É:"b","â":"c",ï½:"c",Ä:"c",Ä:"c",Ä:"c",Ä:"c",ç:"c",á¸:"c",Æ:"c","ȼ":"c","ê¿":"c","â":"c","â":"d",ï½:"d",á¸:"d",Ä:"d",á¸:"d",á¸:"d",á¸:"d",á¸:"d",Ä:"d",Æ:"d",É:"d",É:"d","êº":"d",dz:"dz",Ç:"dz","â":"e",ï½
:"e",è:"e",é:"e",ê:"e",á»:"e",á
1º¿:"e",á»
:"e",á»:"e",ẽ:"e",Ä:"e",á¸:"e",á¸:"e",Ä:"e",Ä:"e",ë:"e",ẻ:"e",Ä:"e",È
:"e",È:"e",ẹ:"e",á»:"e",È©:"e",á¸:"e",Ä:"e",á¸:"e",á¸:"e","É":"e",É:"e",Ç:"e","â":"f",ï½:"f",á¸:"f",Æ:"f","ê¼":"f","â":"g",ï½:"g",ǵ:"g",Ä:"g",ḡ:"g",Ä:"g",Ä¡:"g",ǧ:"g",Ä£:"g",Ç¥:"g",É :"g","ê¡":"g","áµ¹":"g","ê¿":"g","â":"h",ï½:"h",Ä¥:"h",ḣ:"h",ḧ:"h",È:"h",ḥ:"h",ḩ:"h",ḫ:"h",áº:"h",ħ:"h","ⱨ":"h","â±¶":"h",É¥:"h",Æ:"hv","â":"i",ï½:"i",ì:"i",Ã:"i",î:"i",Ä©:"i",Ä«:"i",Ä:"i",ï:"i",ḯ:"i",á»:"i",Ç:"i",È:"i",È:"i",á»:"i",į:"i",á¸:"i",ɨ:"i",ı:"i","â":"j",ï½:"j",ĵ:"j",ǰ:"j","É":"j","â":"k",ï½:"k",ḱ:"k",Ç©:"k",ḳ:"k",Ä·:"k",ḵ:"k",Æ:"k","ⱪ":"k","ê":"k","ê":"k","ê
":"k","ê£":"k","â":"l",ï½:"l",Å:"l",ĺ:"l",ľ:"l",ḷ:"l",ḹ:"l",ļ:"l",ḽ:"l",ḻ:"l",Å¿:"l",Å:"l",Æ:"l",É«:"l","ⱡ":"l","ê":"l","ê":"l","ê":"l",Ç:"lj","â":"m",ï½:"m",ḿ:"m",á¹:"m",á¹:"m",ɱ:"m",ɯ:"m","â":"n",ï½:"n",ǹ:"n",Å:"n",ñ:"n",á¹
:"n",Å:"n",á¹:"n",Å:"n",á¹:"n",á¹:"n",Æ:"n",ɲ:"n",Å:"n","ê":"n","ê¥":"n",Ç:"nj","â":"o",ï½:"o",ò:"o",ó:"o",ô:"o",á»:"o",á»:"o",á»:"o",á»:"o",õ:"o",á¹:"o",È:"o",á¹:"o",Å:"o",á¹:"o",á¹:"o",Å:"o",ȯ:"o",ȱ:"o",ö:"o",È«:"o",á»:"o",Å:"o",Ç:"o",È:"o",È:"o",Æ¡:"o",á»:"o",á»:"o",ỡ:"o",á»:"o",ợ:"o",á»:"o",á»:"o",Ç«:"o",Ç:"o",ø:"o",Ç¿:"o",É:"o","ê":"o","ê":"o",ɵ:"o",Å:"oe",Æ£:"oi",È£:"ou","ê":"oo","â":"p",ï½:"p",á¹:"p",á¹:"p",Æ¥:"p","áµ½":"p","ê":"p","ê":"p","ê":"p","â ":"q",ï½:"q","É":"q","ê":"q","ê":"q","â¡":"r",ï½:"r",Å:"r",á¹:"r",Å:"r",È:"r",È:"r",á¹:"r",á¹:"r",Å:"r",á¹:"r","É":"r",ɽ:"r","ê":"r","ê§":"r","ê":"r","â¢":"s",ï½:"s",Ã:"s",Å:"s",á¹¥:"s",Å:"s",ṡ:"s",Å¡:"s",á¹§:"s",á¹£:"s",ṩ:"s",È:"s",Å:"s","È¿":"s","ê©":"s","ê
":"s",áº:"s","â£":"t",ï½:"t",ṫ:"t",áº:"t",Å¥:"t",á¹:"t",È:"t",Å£:"t",á¹±:"t",ṯ:"t",ŧ:"t",Æ:"t",Ê:"t","ⱦ":"t","ê":"t","ê©":"tz","â¤":"u",ï½:"u",ù:"u",ú:"u",û:"u",Å©:"u",á¹¹:"u",Å«:"u",á¹»:"u",Å:"u",ü:"u",Ç:"u",Ç:"u",Ç:"u",Ç:"u",á»§:"u",ů:"u",ű:"u",Ç:"u",È:"u",È:"u",ư:"u",ừ:"u",ứ:"u",ữ:"u",á»:"u",á»±:"u",ụ:"u",á¹³:"u",ų:"u",á¹·:"u",á¹µ:"u",Ê:"u","â¥":"v",ï½:"v",á¹½:"v",ṿ:"v",Ê:"v","ê":"v",Ê:"v","ê¡":"vy","â¦":"w",ï½:"w",áº:"w",áº:"w",ŵ:"w",áº:"w",áº
:"w",áº:"w",áº:"w","â±³":"w","â§":"x",ï½:"x",áº:"x",áº:"x","â¨":"y",ï½:"y",ỳ:"y",ý:"y",Å·:"y",ỹ:"y",ȳ:"y",áº:"y",ÿ:"y",á»·:"y",áº:"y",ỵ:"y",Æ´:"y","É":"y","ỿ":"y","â©":"z",ï½:"z",ź:"z",áº:"z",ż:"z",ž:"z",áº:"z",áº:"z",ƶ:"z",È¥:"z","É":"z","ⱬ":"z","ê£":"z",Î:"Î",Î:"Î",Î:"Î",Î:"Î",Ϊ:"Î",Î:"Î",Î:"Î¥",Ϋ:"Î¥",Î:"Ω",ά:"α",Î:"ε",ή:"η",ί:"ι",Ï:"ι",Î:"ι",Ï:"ο",Ï:"Ï
",Ï:"Ï
",ΰ:"Ï
",Ï:"Ï",Ï:"Ï","â":"'"};return l}),g.define("select2/data/base",["../utils"],function(l){function u(s,r){u.__super__.constructor.call(this)}return l.Extend(u,l.Observable),u.prototype.current=function(s){throw new Error("The `current` method must be defined in child classes.")},u.prototype.query=function(s,r){throw new Error("The `query` method must be defined in child classes.")},u.prototype.bind=function(s,r){},u.prototype.destroy=function(){},u.prototype.generateResultId=function(s,r){var t=s.id+"-result-";return t+=l.generateChars(4),r.id!=null?t+="-"+r.id.toString():t+="-"+l.generateChars(4),t},u}),g.define("select2/data/select",["./base","../utils","jquery"],function(l,u,s){function r(t,e){this.$element=t,this.options=e,r.__super__.constructor.call(this)}return u.Extend(r,l),r.prototype.current=function(t){var e=this,n=Array.prototype.map.call(this.$element[0].querySelectorAll(":checked"),function(i){return e.item(s(i))});t(n)},r.prototype.select=function(t){var e=this;if(t.selected=!0,t.element!=null&&t.element.tagName.toLowerCase()==="option"){t.element.selected=!0,this.$element.trigger("input").trigger("change");return}if(this.$element.prop("multiple"))this.current(function(i){var o=[];t=[t],t.push.apply(t,i);for(var a=0;a<t.length;a++){var h=t[a].id;o.indexOf(h)===-1&&o.push(h)}e.$element.val(o),e.$element.trigger("input").trigger("change")});else{var n=t.id;this.$element.val(n),this.$element.trigger("input").trigger("change")}},r.prototype.unselect=function(t){var e=this;if(this.$element.prop("multiple")){if(t.selected=!1,t.element!=null&&t.element.tagName.toLowerCase()==="option"){t.element.selected=!1,this.$element.trigger("input").trigger("change");return}this.current(function(n){for(var i=[],o=0;o<n.length;o++){var a=n[o].id;a!==t.id&&i.indexOf(a)===-1&&i.push(a)}e.$element.val(i),e.$element.trigger("input").trigger("change")})}},r.prototype.bind=function(t,e){var n=this;this.container=t,t.on("select",function(i){n.select(i.data)}),t.on("unselect",function(i){n.unselect(i.data)})},r.prototype.destroy=function(){this.$element.find("*").each(function(){u.RemoveData(this)})},r.prototype.query=function(t,e){var n=[],i=this,o=this.$element.children();o.each(function(){if(!(this.tagName.toLowerCase()!=="option"&&this.tagName.toLowerCase()!=="optgroup")){var a=s(this),h=i.item(a),p=i.matches(t,h);p!==null&&n.push(p)}}),e({results:n})},r.prototype.addOptions=function(t){this.$element.append(t)},r.prototype.option=function(t){var e;t.children?(e=document.createElement("optgroup"),e.label=t.text):(e=document.createElement("option"),e.textContent!==void 0?e.textContent=t.text:e.innerText=t.text),t.id!==void 0&&(e.value=t.id),t.disabled&&(e.disabled=!0),t.selected&&(e.selected=!0),t.title&&(e.title=t.title);var n=this._normalizeItem(t);return n.element=e,u.StoreData(e,"data",n),s(e)},r.prototype.item=function(t){var e={};if(e=u.GetData(t[0],"data"),e!=null)return e;var n=t[0];if(n.tagName.toLowerCase()==="option")e={id:t.val(),text:t.text(),disabled:t.prop("disabled"),selected:t.prop("selected"),title:t.prop("title")};else if(n.tagName.toLowerCase()==="optgroup"){e={text:t.prop("label"),children:[],title:t.prop("title")};for(var i=t.children("option"),o=[],a=0;a<i.length;a++){var h=s(i[a]),p=this.item(h);o.push(p)}e.children=o}return e=this._normalizeItem(e),e.element=t[0],u.StoreData(t[0],"data",e),e},r.prototype._normalizeItem=function(t){t!==Object(t)&&(t={id:t,text:t}),t=s.extend({},{text:""},t);var e={selected:!1,disabled:!1};return t.id!=null&&(t.id=t.id.toString()),t.text!=null&&(t.text=t.text.toString()),t._resultId==null&&t.id&&this.container!=null&&(t._resultId=this.generateResultId(this.container,t)),s.extend({},e,t)},r.prototype.matches=function(t,e){var n=this.options.get("matcher");return n(t,e)},r}),g.define("select2/data/array",["./select","../utils","jquery"],function(l,u,s){function r(t,e){this._dataToConvert=e.get("data")||[],r.__super__.constructor.call(this,t,e)}return u.Extend(r,l),r.prototype.bind=function(t,e){r.__super__.bind.call(this,t,e),this.addOptions(this.convertToOptions(this._dataToConvert))},r.prototype.select=function(t){var e=this.$element.find("option").filter(function(n,i){return i.value==t.id.toString()});e.length===0&&(e=this.option(t),this.addOptions(e)),r.__super__.select.call(this,t)},r.prototype.convertToOptions=function(t){var e=this,n=this.$element.find("option"),i=n.map(function(){return e.item(s(this)).id}).get(),o=[];function a(P){return function(){return s(this).val()==P.id}}for(var h=0;h<t.length;h++){var p=this._normalizeItem(t[h]);if(i.indexOf(p.id)>=0){var f=n.filter(a(p)),y=this.item(f),E=s.extend(!0,{},p,y),_=this.option(E);f.replaceWith(_);continue}var S=this.option(p);if(p.children){var B=this.convertToOptions(p.children);S.append(B)}o.push(S)}return o},r}),g.define("select2/data/ajax",["./array","../utils","jquery"],function(l,u,s){function r(t,e){this.ajaxOptions=this._applyDefaults(e.get("ajax")),this.ajaxOptions.processResults!=null&&(this.processResults=this.ajaxOptions.processResults),r.__super__.constructor.call(this,t,e)}return u.Extend(r,l),r.prototype._applyDefaults=function(t){var e={data:function(n){return s.extend({},n,{q:n.term})},transport:function(n,i,o){var a=s.ajax(n);return a.then(i),a.fail(o),a}};return s.extend({},e,t,!0)},r.prototype.processResults=function(t){return t},r.prototype.query=function(t,e){var n=this;this._request!=null&&(typeof this._request.abort=="function"&&this._request.abort(),this._request=null);var i=s.extend({type:"GET"},this.ajaxOptions);typeof i.url=="function"&&(i.url=i.url.call(this.$element,t)),typeof i.data=="function"&&(i.data=i.data.call(this.$element,t));function o(){var a=i.transport(i,function(h){var p=n.processResults(h,t);n.options.get("debug")&&window.console&&console.error&&(!p||!p.results||!Array.isArray(p.results))&&console.error("Select2: The AJAX results did not return an array in the `results` key of the response."),e(p)},function(){"status"in a&&(a.status===0||a.status==="0")||n.trigger("results:message",{message:"errorLoading"})});n._request=a}this.ajaxOptions.delay&&t.term!=null?(this._queryTimeout&&window.clearTimeout(this._queryTimeout),this._queryTimeout=window.setTimeout(o,this.ajaxOptions.delay)):o()},r}),g.define("select2/data/tags",["jquery"],function(l){function u(s,r,t){var e=t.get("tags"),n=t.get("createTag");n!==void 0&&(this.createTag=n);var i=t.get("insertTag");if(i!==void 0&&(this.insertTag=i),s.call(this,r,t),Array.isArray(e))for(var o=0;o<e.length;
1o++){var a=e[o],h=this._normalizeItem(a),p=this.option(h);this.$element.append(p)}}return u.prototype.query=function(s,r,t){var e=this;if(this._removeOldTags(),r.term==null||r.page!=null){s.call(this,r,t);return}function n(i,o){for(var a=i.results,h=0;h<a.length;h++){var p=a[h],f=p.children!=null&&!n({results:p.children},!0),y=(p.text||"").toUpperCase(),E=(r.term||"").toUpperCase(),_=y===E;if(_||f){if(o)return!1;i.data=a,t(i);return}}if(o)return!0;var S=e.createTag(r);if(S!=null){var B=e.option(S);B.attr("data-select2-tag","true"),e.addOptions([B]),e.insertTag(a,S)}i.results=a,t(i)}s.call(this,r,n)},u.prototype.createTag=function(s,r){if(r.term==null)return null;var t=r.term.trim();return t===""?null:{id:t,text:t}},u.prototype.insertTag=function(s,r,t){r.unshift(t)},u.prototype._removeOldTags=function(s){var r=this.$element.find("option[data-select2-tag]");r.each(function(){this.selected||l(this).remove()})},u}),g.define("select2/data/tokenizer",["jquery"],function(l){function u(s,r,t){var e=t.get("tokenizer");e!==void 0&&(this.tokenizer=e),s.call(this,r,t)}return u.prototype.bind=function(s,r,t){s.call(this,r,t),this.$search=r.dropdown.$search||r.selection.$search||t.find(".select2-search__field")},u.prototype.query=function(s,r,t){var e=this;function n(a){var h=e._normalizeItem(a),p=e.$element.find("option").filter(function(){return l(this).val()===h.id});if(!p.length){var f=e.option(h);f.attr("data-select2-tag",!0),e._removeOldTags(),e.addOptions([f])}i(h)}function i(a){e.trigger("select",{data:a})}r.term=r.term||"";var o=this.tokenizer(r,this.options,n);o.term!==r.term&&(this.$search.length&&(this.$search.val(o.term),this.$search.trigger("focus")),r.term=o.term),s.call(this,r,t)},u.prototype.tokenizer=function(s,r,t,e){for(var n=t.get("tokenSeparators")||[],i=r.term,o=0,a=this.createTag||function(E){return{id:E.term,text:E.term}};o<i.length;){var h=i[o];if(n.indexOf(h)===-1){o++;continue}var p=i.substr(0,o),f=l.extend({},r,{term:p}),y=a(f);if(y==null){o++;continue}e(y),i=i.substr(o+1)||"",o=0}return{term:i}},u}),g.define("select2/data/minimumInputLength",[],function(){function l(u,s,r){this.minimumInputLength=r.get("minimumInputLength"),u.call(this,s,r)}return l.prototype.query=function(u,s,r){if(s.term=s.term||"",s.term.length<this.minimumInputLength){this.trigger("results:message",{message:"inputTooShort",args:{minimum:this.minimumInputLength,input:s.term,params:s}});return}u.call(this,s,r)},l}),g.define("select2/data/maximumInputLength",[],function(){function l(u,s,r){this.maximumInputLength=r.get("maximumInputLength"),u.call(this,s,r)}return l.prototype.query=function(u,s,r){if(s.term=s.term||"",this.maximumInputLength>0&&s.term.length>this.maximumInputLength){this.trigger("results:message",{message:"inputTooLong",args:{maximum:this.maximumInputLength,input:s.term,params:s}});return}u.call(this,s,r)},l}),g.define("select2/data/maximumSelectionLength",[],function(){function l(u,s,r){this.maximumSelectionLength=r.get("maximumSelectionLength"),u.call(this,s,r)}return l.prototype.bind=function(u,s,r){var t=this;u.call(this,s,r),s.on("select",function(){t._checkIfMaximumSelected()})},l.prototype.query=function(u,s,r){var t=this;this._checkIfMaximumSelected(function(){u.call(t,s,r)})},l.prototype._checkIfMaximumSelected=function(u,s){var r=this;this.current(function(t){var e=t!=null?t.length:0;if(r.maximumSelectionLength>0&&e>=r.maximumSelectionLength){r.trigger("results:message",{message:"maximumSelected",args:{maximum:r.maximumSelectionLength}});return}s&&s()})},l}),g.define("select2/dropdown",["jquery","./utils"],function(l,u){function s(r,t){this.$element=r,this.options=t,s.__super__.constructor.call(this)}return u.Extend(s,u.Observable),s.prototype.render=function(){var r=l('<span class="select2-dropdown"><span class="select2-results"></span></span>');return r.attr("dir",this.options.get("dir")),this.$dropdown=r,r},s.prototype.bind=function(){},s.prototype.position=function(r,t){},s.prototype.destroy=function(){this.$dropdown.remove()},s}),g.define("select2/dropdown/search",["jquery"],function(l){function u(){}return u.prototype.render=function(s){var r=s.call(this),t=this.options.get("translations").get("search"),e=l('<span class="select2-search select2-search--dropdown"><input class="select2-search__field" type="search" tabindex="-1" autocorrect="off" autocapitalize="none" spellcheck="false" role="searchbox" aria-autocomplete="list" /></span>');return this.$searchContainer=e,this.$search=e.find("input"),this.$search.prop("autocomplete",this.options.get("autocomplete")),this.$search.attr("aria-label",t()),r.prepend(e),r},u.prototype.bind=function(s,r,t){var e=this,n=r.id+"-results";s.call(this,r,t),this.$search.on("keydown",function(i){e.trigger("keypress",i),e._keyUpPrevented=i.isDefaultPrevented()}),this.$search.on("input",function(i){l(this).off("keyup")}),this.$search.on("keyup input",function(i){e.handleSearch(i)}),r.on("open",function(){e.$search.attr("tabindex",0),e.$search.attr("aria-controls",n),e.$search.trigger("focus"),window.setTimeout(function(){e.$search.trigger("focus")},0)}),r.on("close",function(){e.$search.attr("tabindex",-1),e.$search.removeAttr("aria-controls"),e.$search.removeAttr("aria-activedescendant"),e.$search.val(""),e.$search.trigger("blur")}),r.on("focus",function(){r.isOpen()||e.$search.trigger("focus")}),r.on("results:all",function(i){if(i.query.term==null||i.query.term===""){var o=e.showSearch(i);o?e.$searchContainer[0].classList.remove("select2-search--hide"):e.$searchContainer[0].classList.add("select2-search--hide")}}),r.on("results:focus",function(i){i.data._resultId?e.$search.attr("aria-activedescendant",i.data._resultId):e.$search.removeAttr("aria-activedescendant")})},u.prototype.handleSearch=function(s){if(!this._keyUpPrevented){var r=this.$search.val();this.trigger("query",{term:r})}this._keyUpPrevented=!1},u.prototype.showSearch=function(s,r){return!0},u}),g.define("select2/dropdown/hidePlaceholder",[],function(){function l(u,s,r,t){this.placeholder=this.normalizePlaceholder(r.get("placeholder")),u.call(this,s,r,t)}return l.prototype.append=function(u,s){s.results=this.removePlaceholder(s.results),u.call(this,s)},l.prototype.normalizePlaceholder=function(u,s){return typeof s=="string"&&(s={id:"",text:s}),s},l.prototype.removePlaceholder=function(u,s){for(var r=s.slice(0),t=s.length-1;t>=0;t--){var e=s[t];this.placeholder.id===e.id&&r.splice(t,1)}return r},l}),g.define("select2/dropdown/infiniteScroll",["jquery"],function(l){function u(s,r,t,e){this.lastParams={},s.call(this,r,t,e),this.$loadingMore=this.createLoadingMore(),this.loading=!1}return u.prototype.append=function(s,r){this.$loadingMore.remove(),this.loading=!1,s.call(this,r),this.showLoadingMore(r)&&(this.$results.append(this.$loadingMore),this.loadMoreIfNeeded())},u.prototype.bind=function(s,r,t){var e=this;s.call(this,r,t),r.on("query",function(n){e.lastParams=n,e.loading=!0}),r.on("query:append",function(n){e.lastParams=n,e.loading=!0}),this.$results.on("scroll",this.loadMoreIfNeeded.bind(this))},u.prototype.loadMoreIfNeeded=function(){var s=l.contains(document.documentElement,this.$loadingMore[0]);if(!(this.loading||!s)){var r=this.$results.offset().top+this.$results.outerHeight(!1),t=this.$loadingMore.offset().top+this.$loadingMore.outerHeight(!1);r+50>=t&&this.loadMore()}},u.prototype.loadMore=function(){this.loading=!0;var s=l.extend({},{page:1},this.lastParams);s.page++,this.trigger("query:append",s)},u.prototype.showLoadingMore=function(s,r){return r.pagination&&r.pagination.more},u.prototype.createLoadingMore=function(){var s=l('<li class="select2-results__option select2-results__option--load-more"role="option" aria-disabled="true"></li>'),r=this.options.get("translations").get("loadingMore");return s.html(r(this.lastParams)),s},u}),g.define("select2/dropdown/attachBody",["jquery","../utils"],function(l,u){function s(r,t,e){this.$dropdownParent=l(e.get("dropdownParent")||document.body),r.call(this,t,e)}return s.prototype.bind=function(r,t,e){var n=this;r.call(this,t,e),t.on("open",function(){n._showDropdown(),n._attachPositioningHandler(t),n._bindContainerResultHandlers(t)}),t.on("close",function(){n._hideDropdown(),n._detachPositioningHandler(t)}),this.$dropdownContainer.on("mousedown",function(i){i.stopPropagation()})},s.prototype.destroy=function(r){r.call(this),this.$dropdownContainer.remove()},s.prototype.position=function(r,t,e){t.attr("class",e.attr("class")),t[0].classList.remove("select2"),t[0].classList.add("select2-container--open"),t.css({position:"absolute",top:-999999}),this.$container=e},s.prototype.render=function(r){var t=l("<span></span>"),e=r.call(this);return t.append(e),this.$dropdownContainer=t,t},s.prototype._hideDropdown=function(r){this.$dropdownContainer.detach()},s.prototype._bindContainerResultHandlers=function(r,t){if(!this._containerResultsHandlersBound){var e=this;t.on("results:all",function(){e._positionDropdown(),e._resizeDropdown()}),t.on("results:append",function(){e._positionDropdown(),e._resizeDropdown()}),t.on("results:message",function(){e._positionDropdown(),e._resizeDropdown()}),t.on("select",function(){e._positionDropdown(),e._resizeDropdown()}),t.on("unselect",function(){e._positionDropdown(),e._resizeDropdown()}),this._containerResultsHandlersBound=!0}},s.prototype._attachPositioningHandler=function(r,t){var e=this,n="scroll.
1select2."+t.id,i="resize.select2."+t.id,o="orientationchange.select2."+t.id,a=this.$container.parents().filter(u.hasScroll);a.each(function(){u.StoreData(this,"select2-scroll-position",{x:l(this).scrollLeft(),y:l(this).scrollTop()})}),a.on(n,function(h){var p=u.GetData(this,"select2-scroll-position");l(this).scrollTop(p.y)}),l(window).on(n+" "+i+" "+o,function(h){e._positionDropdown(),e._resizeDropdown()})},s.prototype._detachPositioningHandler=function(r,t){var e="scroll.select2."+t.id,n="resize.select2."+t.id,i="orientationchange.select2."+t.id,o=this.$container.parents().filter(u.hasScroll);o.off(e),l(window).off(e+" "+n+" "+i)},s.prototype._positionDropdown=function(){var r=l(window),t=this.$dropdown[0].classList.contains("select2-dropdown--above"),e=this.$dropdown[0].classList.contains("select2-dropdown--below"),n=null,i=this.$container.offset();i.bottom=i.top+this.$container.outerHeight(!1);var o={height:this.$container.outerHeight(!1)};o.top=i.top,o.bottom=i.top+o.height;var a={height:this.$dropdown.outerHeight(!1)},h={top:r.scrollTop(),bottom:r.scrollTop()+r.height()},p=h.top<i.top-a.height,f=h.bottom>i.bottom+a.height,y={left:i.left,top:o.bottom},E=this.$dropdownParent;E.css("position")==="static"&&(E=E.offsetParent());var _={top:0,left:0};(l.contains(document.body,E[0])||E[0].isConnected)&&(_=E.offset()),y.top-=_.top,y.left-=_.left,!t&&!e&&(n="below"),!f&&p&&!t?n="above":!p&&f&&t&&(n="below"),(n=="above"||t&&n!=="below")&&(y.top=o.top-_.top-a.height),n!=null&&(this.$dropdown[0].classList.remove("select2-dropdown--below"),this.$dropdown[0].classList.remove("select2-dropdown--above"),this.$dropdown[0].classList.add("select2-dropdown--"+n),this.$container[0].classList.remove("select2-container--below"),this.$container[0].classList.remove("select2-container--above"),this.$container[0].classList.add("select2-container--"+n)),this.$dropdownContainer.css(y)},s.prototype._resizeDropdown=function(){var r={width:this.$container.outerWidth(!1)+"px"};this.options.get("dropdownAutoWidth")&&(r.minWidth=r.width,r.position="relative",r.width="auto"),this.$dropdown.css(r)},s.prototype._showDropdown=function(r){this.$dropdownContainer.appendTo(this.$dropdownParent),this._positionDropdown(),this._resizeDropdown()},s}),g.define("select2/dropdown/minimumResultsForSearch",[],function(){function l(s){for(var r=0,t=0;t<s.length;t++){var e=s[t];e.children?r+=l(e.children):r++}return r}function u(s,r,t,e){this.minimumResultsForSearch=t.get("minimumResultsForSearch"),this.minimumResultsForSearch<0&&(this.minimumResultsForSearch=1/0),s.call(this,r,t,e)}return u.prototype.showSearch=function(s,r){return l(r.data.results)<this.minimumResultsForSearch?!1:s.call(this,r)},u}),g.define("select2/dropdown/selectOnClose",["../utils"],function(l){function u(){}return u.prototype.bind=function(s,r,t){var e=this;s.call(this,r,t),r.on("close",function(n){e._handleSelectOnClose(n)})},u.prototype._handleSelectOnClose=function(s,r){if(r&&r.originalSelect2Event!=null){var t=r.originalSelect2Event;if(t._type==="select"||t._type==="unselect")return}var e=this.getHighlightedResults();if(!(e.length<1)){var n=l.GetData(e[0],"data");n.element!=null&&n.element.selected||n.element==null&&n.selected||this.trigger("select",{data:n})}},u}),g.define("select2/dropdown/closeOnSelect",[],function(){function l(){}return l.prototype.bind=function(u,s,r){var t=this;u.call(this,s,r),s.on("select",function(e){t._selectTriggered(e)}),s.on("unselect",function(e){t._selectTriggered(e)})},l.prototype._selectTriggered=function(u,s){var r=s.originalEvent;r&&(r.ctrlKey||r.metaKey)||this.trigger("close",{originalEvent:r,originalSelect2Event:s})},l}),g.define("select2/dropdown/dropdownCss",["../utils"],function(l){function u(){}return u.prototype.render=function(s){var r=s.call(this),t=this.options.get("dropdownCssClass")||"";return t.indexOf(":all:")!==-1&&(t=t.replace(":all:",""),l.copyNonInternalCssClasses(r[0],this.$element[0])),r.addClass(t),r},u}),g.define("select2/dropdown/tagsSearchHighlight",["../utils"],function(l){function u(){}return u.prototype.highlightFirstItem=function(s){var r=this.$results.find(".select2-results__option--selectable:not(.select2-results__option--selected)");if(r.length>0){var t=r.first(),e=l.GetData(t[0],"data"),n=e.element;if(n&&n.getAttribute&&n.getAttribute("data-select2-tag")==="true"){t.trigger("mouseenter");return}}s.call(this)},u}),g.define("select2/i18n/en",[],function(){return{errorLoading:function(){return"The results could not be loaded."},inputTooLong:function(l){var u=l.input.length-l.maximum,s="Please delete "+u+" character";return u!=1&&(s+="s"),s},inputTooShort:function(l){var u=l.minimum-l.input.length,s="Please enter "+u+" or more characters";return s},loadingMore:function(){return"Loading more resultsâ¦"},maximumSelected:function(l){var u="You can only select "+l.maximum+" item";return l.maximum!=1&&(u+="s"),u},noResults:function(){return"No results found"},searching:function(){return"Searchingâ¦"},removeAllItems:function(){return"Remove all items"},removeItem:function(){return"Remove item"},search:function(){return"Search"}}}),g.define("select2/defaults",["jquery","./results","./selection/single","./selection/multiple","./selection/placeholder","./selection/allowClear","./selection/search","./selection/selectionCss","./selection/eventRelay","./utils","./translation","./diacritics","./data/select","./data/array","./data/ajax","./data/tags","./data/tokenizer","./data/minimumInputLength","./data/maximumInputLength","./data/maximumSelectionLength","./dropdown","./dropdown/search","./dropdown/hidePlaceholder","./dropdown/infiniteScroll","./dropdown/attachBody","./dropdown/minimumResultsForSearch","./dropdown/selectOnClose","./dropdown/closeOnSelect","./dropdown/dropdownCss","./dropdown/tagsSearchHighlight","./i18n/en"],function(l,u,s,r,t,e,n,i,o,a,h,p,f,
1y,E,_,S,B,P,G,z,N,W,V,c,m,A,O,C,x,R){function L(){this.reset()}L.prototype.apply=function(d){if(d=l.extend(!0,{},this.defaults,d),d.dataAdapter==null&&(d.ajax!=null?d.dataAdapter=E:d.data!=null?d.dataAdapter=y:d.dataAdapter=f,d.minimumInputLength>0&&(d.dataAdapter=a.Decorate(d.dataAdapter,B)),d.maximumInputLength>0&&(d.dataAdapter=a.Decorate(d.dataAdapter,P)),d.maximumSelectionLength>0&&(d.dataAdapter=a.Decorate(d.dataAdapter,G)),d.tags&&(d.dataAdapter=a.Decorate(d.dataAdapter,_)),(d.tokenSeparators!=null||d.tokenizer!=null)&&(d.dataAdapter=a.Decorate(d.dataAdapter,S))),d.resultsAdapter==null&&(d.resultsAdapter=u,d.ajax!=null&&(d.resultsAdapter=a.Decorate(d.resultsAdapter,V)),d.placeholder!=null&&(d.resultsAdapter=a.Decorate(d.resultsAdapter,W)),d.selectOnClose&&(d.resultsAdapter=a.Decorate(d.resultsAdapter,A)),d.tags&&(d.resultsAdapter=a.Decorate(d.resultsAdapter,x))),d.dropdownAdapter==null){if(d.multiple)d.dropdownAdapter=z;else{var v=a.Decorate(z,N);d.dropdownAdapter=v}d.minimumResultsForSearch!==0&&(d.dropdownAdapter=a.Decorate(d.dropdownAdapter,m)),d.closeOnSelect&&(d.dropdownAdapter=a.Decorate(d.dropdownAdapter,O)),d.dropdownCssClass!=null&&(d.dropdownAdapter=a.Decorate(d.dropdownAdapter,C)),d.dropdownAdapter=a.Decorate(d.dropdownAdapter,c)}d.selectionAdapter==null&&(d.multiple?d.selectionAdapter=r:d.selectionAdapter=s,d.placeholder!=null&&(d.selectionAdapter=a.Decorate(d.selectionAdapter,t)),d.allowClear&&(d.selectionAdapter=a.Decorate(d.selectionAdapter,e)),d.multiple&&(d.selectionAdapter=a.Decorate(d.selectionAdapter,n)),d.selectionCssClass!=null&&(d.selectionAdapter=a.Decorate(d.selectionAdapter,i)),d.selectionAdapter=a.Decorate(d.selectionAdapter,o)),d.language=this._resolveLanguage(d.language),d.language.push("en");for(var w=[],b=0;b<d.language.length;b++){var F=d.language[b];w.indexOf(F)===-1&&w.push(F)}return d.language=w,d.translations=this._processTranslations(d.language,d.debug),d},L.prototype.reset=function(){function d(w){function b(F){return p[F]||F}
1return w.replace(/[^\u0000-\u007E]/g,b)}function v(w,b){if(w.term==null||w.term.trim()==="")return b;if(b.children&&b.children.length>0){for(var F=l.extend(!0,{},b),D=b.children.length-1;D>=0;D--){var M=b.children[D],H=v(w,M);H==null&&F.children.splice(D,1)}return F.children.length>0?F:v(w,F)}var X=d(b.text).toUpperCase(),Q=d(w.term).toUpperCase();return X.indexOf(Q)>-1?b:null}this.defaults={amdLanguageBase:"./i18n/",autocomplete:"off",closeOnSelect:!0,debug:!1,dropdownAutoWidth:!1,escapeMarkup:a.escapeMarkup,language:{},matcher:v,minimumInputLength:0,maximumInputLength:0,maximumSelectionLength:0,minimumResultsForSearch:0,selectOnClose:!1,scrollAfterSelect:!1,sorter:function(w){return w},templateResult:function(w){return w.text},templateSelection:function(w){return w.text},theme:"default",width:"resolve"}},L.prototype.applyFromElement=function(d,v){var w=d.language,b=this.defaults.language,F=v.prop("lang"),D=v.closest("[lang]").prop("lang"),M=Array.prototype.concat.call(this._resolveLanguage(F),this._resolveLanguage(w),this._resolveLanguage(b),this._resolveLanguage(D));return d.language=M,d},L.prototype._resolveLanguage=function(d){if(!d)return[];if(l.isEmptyObject(d))return[];if(l.isPlainObject(d))return[d];var v;Array.isArray(d)?v=d:v=[d];for(var w=[],b=0;b<v.length;b++)if(w.push(v[b]),typeof v[b]=="string"&&v[b].indexOf("-")>0){var F=v[b].split("-"),D=F[0];w.push(D)}return w},L.prototype._processTranslations=function(d,v){for(var w=new h,b=0;b<d.length;b++){var F=new h,D=d[b];
1if(typeof D=="string")try{F=h.loadPath(D)}catch{try{D=this.defaults.amdLanguageBase+D,F=h.loadPath(D)}catch{v&&window.console&&console.warn&&console.warn('Select2: The language file for "'+D+'" could not be automatically loaded. A fallback will be used instead.')}}else l.isPlainObject(D)?F=new h(D):F=D;w.extend(F)}return w},L.prototype.set=function(d,v){var w=l.camelCase(d),b={};b[w]=v;var F=a._convertData(b);l.extend(!0,this.defaults,F)};var T=new L;return T}),g.define("select2/options",["jquery","./defaults","./utils"],function(l,u,s){function r(t,e){this.options=t,e!=null&&this.fromElement(e),e!=null&&(this.options=u.applyFromElement(this.options,e)),this.options=u.apply(this.options)}return r.prototype.fromElement=function(t){var e=["select2"];this.options.multiple==null&&(this.options.multiple=t.prop("multiple")),this.options.disabled==null&&(this.options.disabled=t.prop("disabled")),this.options.autocomplete==null&&t.prop("autocomplete")&&(this.options.autocomplete=t.prop("autocomplete")),this.options.dir==null&&(t.prop("dir")?this.options.dir=t.prop("dir"):t.closest("[dir]").prop("dir")?this.options.dir=t.closest("[dir]").prop("dir"):this.options.dir="ltr"),t.prop("disabled",this.options.disabled),t.prop("multiple",this.options.multiple),s.GetData(t[0],"select2Tags")&&(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.'),s.StoreData(t[0],"data",s.GetData(t[0],"select2Tags")),s.StoreData(t[0],"tags",!0)),s.GetData(t[0],"ajaxUrl")&&(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."),t.attr("ajax--url",s.GetData(t[0],"ajaxUrl")),s.StoreData(t[0],"ajax-Url",s.GetData(t[0],"ajaxUrl")));var n={};function i(S,B){return B.toUpperCase()}for(var o=0;o<t[0].attributes.length;o++){var a=t[0].attributes[o].name,h="data-";if(a.substr(0,h.length)==h){var p=a.substring(h.length),f=s.GetData(t[0],p),y=p.replace(/-([a-z])/g,i);n[y]=f}}l.fn.jquery&&l.fn.jquery.substr(0,2)=="1."&&t[0].dataset&&(n=l.extend(!0,{},t[0].dataset,n));var E=l.extend(!0,{},s.GetData(t[0]),n);E=s._convertData(E);for(var _ in E)e.indexOf(_)>-1||(l.isPlainObject(this.options[_])?l.extend(this.options[_],E[_]):this.options[_]=E[_]);return this},r.prototype.get=function(t){return this.options[t]},r.prototype.set=function(t,e){this.options[t]=e},r}),g.define("select2/core",["jquery","./options","./utils","./keys"],function(l,u,s,r){var t=function(e,n){s.GetData(e[0],"select2")!=null&&s.GetData(e[0],"select2").destroy(),this.$element=e,this.id=this._generateId(e),n=n||{},this.options=new u(n,e),t.__super__.constructor.call(this);var i=e.attr("tabindex")||0;s.StoreData(e[0],"old-tabindex",i),e.attr("tabindex","-1");var o=this.options.get("dataAdapter");this.dataAdapter=new o(e,this.options);var a=this.render();this._placeContainer(a);var h=this.options.get("selectionAdapter");this.selection=new h(e,this.options),this.$selection=this.selection.render(),this.selection.position(this.$selection,a);var p=this.options.get("dropdownAdapter");this.dropdown=new p(e,this.options),this.$dropdown=this.dropdown.render(),this.dropdown.position(this.$dropdown,a);var f=this.options.get("resultsAdapter");this.results=new f(e,this.options,this.dataAdapter),this.$results=this.results.render(),this.results.position(this.$results,this.$dropdown);var y=this;this._bindAdapters(),this._registerDomEvents(),this._registerDataEvents(),this._registerSelectionEvents(),this._registerDropdownEvents(),this._registerResultsEvents(),this._registerEvents(),this.dataAdapter.current(function(E){y.trigger("selection:update",{data:E})}),e[0].classList.add("select2-hidden-accessible"),e.attr("aria-hidden","true"),this._syncAttributes(),s.StoreData(e[0],"select2",this),e.data("select2",this)};return s.Extend(t,s.Observable),t.prototype._generateId=function(e){var n="";return e.attr("id")!=null?n=e.attr("id"):e.attr("name")!=null?n=e.attr("name")+"-"+s.generateChars(2):n=s.generateChars(4),n=n.replace(/(:|\.|\[|\]|,)/g,""),n="select2-"+n,n},t.prototype._placeContainer=function(e){e.insertAfter(this.$element);var n=this._resolveWidth(this.$element,this.options.get("width"));n!=null&&e.css("width",n)},t.prototype._resolveWidth=function(e,n){var i=/^width:(([-+]?([0-9]*\.)?[0-9]+)(px|em|ex|%|in|cm|mm|pt|pc))/i;if(n=="resolve"){var o=this._resolveWidth(e,"style");return o??this._resolveWidth(e,"element")}if(n=="element"){var a=e.outerWidth(!1);return a<=0?"auto":a+"px"}if(n=="style"){var h=e.attr("style");if(typeof h!="string")return null;for(var p=h.split(";"),f=0,y=p.length;f<y;f=f+1){var E=p[f].replace(/\s/g,""),_=E.match(i);if(_!==null&&_.length>=1)return _[1]}return null}if(n=="computedstyle"){var S=window.getComputedStyle(e[0]);return S.width}return n},t.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)},t.prototype._registerDomEvents=function(){var e=this;this.$element.on("change.select2",function(){e.dataAdapter.current(function(n){e.trigger("selection:update",{data:n})})}),this.$element.on("focus.select2",function(n){e.trigger("focus",n)}),this._syncA=s.bind(this._syncAttributes,this),this._syncS=s.bind(this._syncSubtree,this),this._observer=new window.MutationObserver(function(n){e._syncA(),e._syncS(n)}),this._observer.observe(this.$element[0],{attributes:!0,childList:!0,subtree:!1})},t.prototype._registerDataEvents=function(){var e=this;this.dataAdapter.on("*",function(n,i){e.trigger(n,i)})},t.prototype._registerSelectionEvents=function(){var e=this,n=["toggle","focus"];this.selection.on("toggle",function(){e.toggleDropdown()}),this.selection.on("focus",function(i){e.focus(i)}),this.selection.on("*",function(i,o){n.indexOf(i)===-1&&e.trigger(i,o)})},t.prototype._registerDropdownEvents=function(){var e=this;this.dropdown.on("*",function(n,i){e.trigger(n,i)})},t.prototype._registerResultsEvents=function(){var e=this;this.results.on("*",function(n,i){e.trigger(n,i)})},t.prototype._registerEvents=function(){var e=this;this.on("open",function(){e.$container[0].classList.add("select2-container--open")}),this.on("close",function(){e.$container[0].classList.remove("select2-container--open")}),this.on("enable",function(){e.$container[0].classList.remove("select2-container--disabled")}),this.on("disable",function(){e.$container[0].classList.add("select2-container--disabled")}),this.on("blur",function(){e.$container[0].classList.remove("select2-container--focus")}),this.on("query",function(n){e.isOpen()||e.trigger("open",{}),this.dataAdapter.query(n,function(i){e.trigger("results:all",{data:i,query:n})})}),this.on("query:append",function(n){this.dataAdapter.query(n,function(i){e.trigger("results:append",{data:i,query:n})})}),this.on("keypress",function(n){var i=n.which;e.isOpen()?i===r.ESC||i===r.UP&&n.altKey?(e.close(n),n.preventDefault()):i===r.ENTER||i===r.TAB?(e.trigger("results:select",{}),n.preventDefault()):i===r.SPACE&&n.ctrlKey?(e.trigger("results:toggle",{}),n.preventDefault()):i===r.UP?(e.trigger("results:previous",{}),n.preventDefault()):i===r.DOWN&&(e.trigger("results:next",{}),n.preventDefault()):(i===r.ENTER||i===r.SPACE||i===r.DOWN&&n.altKey)&&(e.open(),n.preventDefault())})},t.prototype._syncAttributes=function(){this.options.set("disabled",this.$element.prop("disabled")),this.isDisabled()?(this.isOpen()&&this.close(),this.trigger("disable",{})):this.trigger("enable",{})},t.prototype._isChangeMutation=function(e){var n=this;if(e.addedNodes&&e.addedNodes.length>0)for(var i=0;i<e.addedNodes.length;i++){var o=e.addedNodes[i];if(o.selected)return!0}else{if(e.removedNodes&&e.removedNodes.length>0)return!0;
1if(Array.isArray(e))return e.some(function(a){return n._isChangeMutation(a)})}return!1},t.prototype._syncSubtree=function(e){var n=this._isChangeMutation(e),i=this;n&&this.dataAdapter.current(function(o){i.trigger("selection:update",{data:o})})},t.prototype.trigger=function(e,n){var i=t.__super__.trigger,o={open:"opening",close:"closing",select:"selecting",unselect:"unselecting",clear:"clearing"};if(n===void 0&&(n={}),e in o){var a=o[e],h={prevented:!1,name:e,args:n};if(i.call(this,a,h),h.prevented){n.prevented=!0;return}}i.call(this,e,n)},t.prototype.toggleDropdown=function(){this.isDisabled()||(this.isOpen()?this.close():this.open())},t.prototype.open=function(){this.isOpen()||this.isDisabled()||this.trigger("query",{})},t.prototype.close=function(e){this.isOpen()&&this.trigger("close",{originalEvent:e})},t.prototype.isEnabled=function(){return!this.isDisabled()},t.prototype.isDisabled=function(){return this.options.get("disabled")},t.prototype.isOpen=function(){return this.$container[0].classList.contains("select2-container--open")},t.prototype.hasFocus=function(){return this.$container[0].classList.contains("select2-container--focus")},t.prototype.focus=function(e){this.hasFocus()||(this.$container[0].classList.add("select2-container--focus"),this.trigger("focus",{}))},t.prototype.enable=function(e){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.'),(e==null||e.length===0)&&(e=[!0]);var n=!e[0];this.$element.prop("disabled",n)},t.prototype.data=function(){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 e=[];return this.dataAdapter.current(function(n){e=n}),e},t.prototype.val=function(e){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.'),e==null||e.length===0)return this.$element.val();var n=e[0];Array.isArray(n)&&(n=n.map(function(i){return i.toString()})),this.$element.val(n).trigger("input").trigger("change")},t.prototype.destroy=function(){s.RemoveData(this.$container[0]),this.$container.remove(),this._observer.disconnect(),this._observer=null,this._syncA=null,this._syncS=null,this.$element.off(".select2"),this.$element.attr("tabindex",s.GetData(this.$element[0],"old-tabindex")),this.$element[0].classList.remove("select2-hidden-accessible"),this.$element.attr("aria-hidden","false"),s.RemoveData(this.$element[0]),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},t.prototype.render=function(){var e=l('<span class="select2 select2-container"><span class="selection"></span><span class="dropdown-wrapper" aria-hidden="true"></span></span>');return e.attr("dir",this.options.get("dir")),this.$container=e,this.$container[0].classList.add("select2-container--"+this.options.get("theme")),s.StoreData(e[0],"element",this.$element),e},t}),g.define("jquery-mousewheel",["jquery"],function(l){return l}),g.define("jquery.select2",["jquery","jquery-mousewheel","./select2/core","./select2/defaults","./select2/utils"],function(l,u,s,r,t){if(l.fn.select2==null){var e=["open","close","destroy"];l.fn.select2=function(n){if(n=n||{},typeof n=="object")return this.each(function(){var a=l.extend(!0,{},n);new s(l(this),a)}),this;if(typeof n=="string"){var i,o=Array.prototype.slice.call(arguments,1);return this.each(function(){var a=t.GetData(this,"select2");a==null&&window.console&&console.error&&console.error("The select2('"+n+"') method was called on an element that is not using Select2."),i=a[n].apply(a,o)}),e.indexOf(n)>-1?this:i}else throw new Error("Invalid arguments for Select2: "+n)}}return l.fn.select2.defaults==null&&(l.fn.select2.defaults=r),s}),{define:g.define,require:g.require}})(),q=j.require("jquery.select2");return I.fn.select2.amd=j,q})})(Z)),Z.exports}var J=te();const re=U(J),ie=ee({__proto__:null,default:re},[J]);export{ie as s};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.