| Server IP : 54.36.91.62 / Your IP : 216.73.217.112 Web Server : Apache System : Linux webm013.cluster127.gra.hosting.ovh.net 5.15.206-ovh-vps-grsec-zfs-classid #1 SMP Fri May 15 02:41:25 UTC 2026 x86_64 User : coopiak ( 151928) PHP Version : 8.3.23 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/coopiak/amisdesseniors-fr/nice/components/com_comprofiler/js/jquery/ |
Upload File : |
(function(n){if(typeof define==="function"&&define.amd){define(["jquery"],n)}else if(typeof module==="object"&&module.exports){module.exports=function(e,t){if(t===undefined){if(typeof window!=="undefined"){t=require("jquery")}else{t=require("jquery")(e)}}n(t);return t}}else{n(jQuery)}})(function(n){var e=function(){if(n&&n.fn&&n.fn.select2&&n.fn.select2.amd){var t=n.fn.select2.amd}var t;(function(){if(!t||!t.requirejs){if(!t){t={}}else{i=t}var e,i,u;(function(h){var s,o,f,g,v={},m={},y={},_={},n=Object.prototype.hasOwnProperty,r=[].slice,$=/\.js$/;function b(e,t){return n.call(e,t)}function a(e,t){var n,r,i,s,o,a,l,c,u,d,p,h,f=t&&t.split("/"),g=y.map,v=g&&g["*"]||{};if(e){e=e.split("/");o=e.length-1;if(y.nodeIdCompat&&$.test(e[o])){e[o]=e[o].replace($,"")}if(e[0].charAt(0)==="."&&f){h=f.slice(0,f.length-1);e=h.concat(e)}for(u=0;u<e.length;u++){p=e[u];if(p==="."){e.splice(u,1);u-=1}else if(p===".."){if(u===0||u===1&&e[2]===".."||e[u-1]===".."){continue}else if(u>0){e.splice(u-1,2);u-=2}}}e=e.join("/")}if((f||v)&&g){n=e.split("/");for(u=n.length;u>0;u-=1){r=n.slice(0,u).join("/");if(f){for(d=f.length;d>0;d-=1){i=g[f.slice(0,d).join("/")];if(i){i=i[r];if(i){s=i;a=u;break}}}}if(s){break}if(!l&&v&&v[r]){l=v[r];c=u}}if(!s&&l){s=l;a=c}if(s){n.splice(0,a,s);e=n.join("/")}}return e}function w(t,n){return function(){var e=r.call(arguments,0);if(typeof e[0]!=="string"&&e.length===1){e.push(null)}return o.apply(h,e.concat([t,n]))}}function l(t){return function(e){return a(e,t)}}function A(t){return function(e){v[t]=e}}function x(e){if(b(m,e)){var t=m[e];delete m[e];_[e]=true;s.apply(h,t)}if(!b(v,e)&&!b(_,e)){throw new Error("No "+e)}return v[e]}function c(e){var t,n=e?e.indexOf("!"):-1;if(n>-1){t=e.substring(0,n);e=e.substring(n+1,e.length)}return[t,e]}function C(e){return e?c(e):[]}f=function(e,t){var n,r=c(e),i=r[0],s=t[1];e=r[1];if(i){i=a(i,s);n=x(i)}if(i){if(n&&n.normalize){e=n.normalize(e,l(s))}else{e=a(e,s)}}else{e=a(e,s);r=c(e);i=r[0];e=r[1];if(i){n=x(i)}}return{f:i?i+"!"+e:e,n:e,pr:i,p:n}};function t(e){return function(){return y&&y.config&&y.config[e]||{}}}g={require:function(e){return w(e)},exports:function(e){var t=v[e];if(typeof t!=="undefined"){return t}else{return v[e]={}}},module:function(e){return{id:e,uri:"",exports:v[e],config:t(e)}}};s=function(e,t,n,r){var i,s,o,a,l,c,u=[],d=typeof n,p;r=r||e;c=C(r);if(d==="undefined"||d==="function"){t=!t.length&&n.length?["require","exports","module"]:t;for(l=0;l<t.length;l+=1){a=f(t[l],c);s=a.f;if(s==="require"){u[l]=g.require(e)}else if(s==="exports"){u[l]=g.exports(e);p=true}else if(s==="module"){i=u[l]=g.module(e)}else if(b(v,s)||b(m,s)||b(_,s)){u[l]=x(s)}else if(a.p){a.p.load(a.n,w(r,true),A(s),{});u[l]=v[s]}else{throw new Error(e+" missing "+s)}}o=n?n.apply(v[e],u):undefined;if(e){if(i&&i.exports!==h&&i.exports!==v[e]){v[e]=i.exports}else if(o!==h||!p){v[e]=o}}}else if(e){v[e]=n}};e=i=o=function(e,t,n,r,i){if(typeof e==="string"){if(g[e]){return g[e](t)}return x(f(e,C(t)).f)}else if(!e.splice){y=e;if(y.deps){o(y.deps,y.callback)}if(!t){return}if(t.splice){e=t;t=n;n=null}else{e=h}}t=t||function(){};if(typeof n==="function"){n=r;r=i}if(r){s(h,e,t,n)}else{setTimeout(function(){s(h,e,t,n)},4)}return o};o.config=function(e){return o(e)};e._defined=v;u=function(e,t,n){if(typeof e!=="string"){throw new Error("See almond README: incorrect module build, no module name")}if(!t.splice){n=t;t=[]}if(!b(v,e)&&!b(m,e)){m[e]=[e,t,n]}};u.amd={jQuery:true}})();t.requirejs=e;t.require=i;t.define=u}})();t.define("almond",function(){});t.define("jquery",[],function(){var e=n||$;if(e==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.")}return e});t.define("select2/utils",["jquery"],function(s){var e={};e.Extend=function(e,t){var n={}.hasOwnProperty;function r(){this.constructor=e}for(var i in t){if(n.call(t,i)){e[i]=t[i]}}r.prototype=t.prototype;e.prototype=new r;e.__super__=t.prototype;return e};function d(e){var t=e.prototype;var n=[];for(var r in t){var i=t[r];if(typeof i!=="function"){continue}if(r==="constructor"){continue}n.push(r)}return n}e.Decorate=function(r,i){var e=d(i);var t=d(r);function s(){var e=Array.prototype.unshift;var t=i.prototype.constructor.length;var n=r.prototype.constructor;if(t>0){e.call(arguments,r.prototype.constructor);n=i.prototype.constructor}n.apply(this,arguments)}i.displayName=r.displayName;function n(){this.constructor=s}s.prototype=new n;for(var o=0;o<t.length;o++){var a=t[o];s.prototype[a]=r.prototype[a]}var l=function(e){var t=function(){};if(e in s.prototype){t=s.prototype[e]}var n=i.prototype[e];return function(){var e=Array.prototype.unshift;e.call(arguments,t);return n.apply(this,arguments)}};for(var c=0;c<e.length;c++){var u=e[c];s.prototype[u]=l(u)}return s};var t=function(){this.listeners={}};t.prototype.on=function(e,t){this.listeners=this.listeners||{};if(e in this.listeners){this.listeners[e].push(t)}else{this.listeners[e]=[t]}};t.prototype.trigger=function(e){var t=Array.prototype.slice;var n=t.call(arguments,1);this.listeners=this.listeners||{};if(n==null){n=[]}if(n.length===0){n.push({})}n[0]._type=e;if(e in this.listeners){this.invoke(this.listeners[e],t.call(arguments,1))}if("*"in this.listeners){this.invoke(this.listeners["*"],arguments)}};t.prototype.invoke=function(e,t){for(var n=0,r=e.length;n<r;n++){e[n].apply(this,t)}};e.Observable=t;e.generateChars=function(e){var t="";for(var n=0;n<e;n++){var r=Math.floor(Math.random()*36);t+=r.toString(36)}return t};e.bind=function(e,t){return function(){e.apply(t,arguments)}};e._convertData=function(e){for(var t in e){var n=t.split("-");var r=e;if(n.length===1){continue}for(var i=0;i<n.length;i++){var s=n[i];s=s.substring(0,1).toLowerCase()+s.substring(1);if(!(s in r)){r[s]={}}if(i==n.length-1){r[s]=e[t]}r=r[s]}delete e[t]}return e};e.hasScroll=function(e,t){var n=s(t);var r=t.style.overflowX;var i=t.style.overflowY;if(r===i&&(i==="hidden"||i==="visible")){return false}if(r==="scroll"||i==="scroll"){return true}return n.innerHeight()<t.scrollHeight||n.innerWidth()<t.scrollWidth};e.escapeMarkup=function(e){var t={"\\":"\","&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};if(typeof e!=="string"){return e}return String(e).replace(/[&<>"'\/\\]/g,function(e){return t[e]})};e.appendMany=function(e,t){if(s.fn.jquery.substr(0,3)==="1.7"){var n=s();s.map(t,function(e){n=n.add(e)});t=n}e.append(t)};return e});t.define("select2/results",["jquery","./utils"],function(f,e){function r(e,t,n){this.$element=e;this.data=n;this.options=t;r.__super__.constructor.call(this)}e.Extend(r,e.Observable);r.prototype.render=function(){var e=f('<ul class="select2-results__options" role="listbox"></ul>');if(this.options.get("multiple")){e.attr("aria-multiselectable","true")}this.$results=e;return e};r.prototype.clear=function(){this.$results.empty()};r.prototype.displayMessage=function(e){var t=this.options.get("escapeMarkup");this.clear();this.hideLoading();var n=f('<li role="alert" aria-live="assertive"'+' class="select2-results__option"></li>');var r=this.options.get("translations").get(e.message);n.append(t(r(e.args)));n[0].className+=" select2-results__message";this.$results.append(n)};r.prototype.hideMessages=function(){this.$results.find(".select2-results__message").remove()};r.prototype.append=function(e){this.hideLoading();var t=[];if(e.results==null||e.results.length===0){if(this.$results.children().length===0){this.trigger("results:message",{message:"noResults"})}return}e.results=this.sort(e.results);for(var n=0;n<e.results.length;n++){var r=e.results[n];var i=this.option(r);t.push(i)}this.$results.append(t)};r.prototype.position=function(e,t){var n=t.find(".select2-results");n.append(e)};r.prototype.sort=function(e){var t=this.options.get("sorter");return t(e)};r.prototype.highlightFirstItem=function(){var e=this.$results.find(".select2-results__option[aria-selected]");var t=e.filter("[aria-selected=true]");if(t.length>0){t.first().trigger("mouseenter")}else{e.first().trigger("mouseenter")}this.ensureHighlightVisible()};r.prototype.setClasses=function(){var n=this;this.data.current(function(e){var r=f.map(e,function(e){return e.id.toString()});var t=n.$results.find(".select2-results__option[aria-selected]");t.each(function(){var e=f(this);var t=f.data(this,"data");var n=""+t.id;if(t.element!=null&&t.element.selected||t.element==null&&f.inArray(n,r)>-1){e.attr("aria-selected","true")}else{e.attr("aria-selected","false")}})})};r.prototype.showLoading=function(e){this.hideLoading();var t=this.options.get("translations").get("searching");var n={disabled:true,loading:true,text:t(e)};var r=this.option(n);r.className+=" loading-results";this.$results.prepend(r)};r.prototype.hideLoading=function(){this.$results.find(".loading-results").remove()};r.prototype.option=function(e){var t=document.createElement("li");t.className="select2-results__option";var n={role:"option","aria-selected":"false"};var r=window.Element.prototype.matches||window.Element.prototype.msMatchesSelector||window.Element.prototype.webkitMatchesSelector;if(e.element!=null&&r.call(e.element,":disabled")||e.element==null&&e.disabled){delete n["aria-selected"];n["aria-disabled"]="true"}if(e.id==null){delete n["aria-selected"]}if(e._resultId!=null){t.id=e._resultId}if(e.title){t.title=e.title}if(e.children){n.role="group";n["aria-label"]=e.text;delete n["aria-selected"]}for(var i in n){var s=n[i];t.setAttribute(i,s)}if(e.children){var o=f(t);var a=document.createElement("strong");a.className="select2-results__group";var l=f(a);this.template(e,a);var c=[];for(var u=0;u<e.children.length;u++){var d=e.children[u];var p=this.option(d);c.push(p)}var h=f("<ul></ul>",{class:"select2-results__options select2-results__options--nested"});h.append(c);o.append(a);o.append(h)}else{this.template(e,t)}f.data(t,"data",e);return t};r.prototype.bind=function(t,e){var l=this;var n=t.id+"-results";this.$results.attr("id",n);t.on("results:all",function(e){l.clear();l.append(e.data);if(t.isOpen()){l.setClasses();l.highlightFirstItem()}});t.on("results:append",function(e){l.append(e.data);if(t.isOpen()){l.setClasses()}});t.on("query",function(e){l.hideMessages();l.showLoading(e)});t.on("select",function(){if(!t.isOpen()){return}l.setClasses();if(l.options.get("scrollAfterSelect")){l.highlightFirstItem()}});t.on("unselect",function(){if(!t.isOpen()){return}l.setClasses();if(l.options.get("scrollAfterSelect")){l.highlightFirstItem()}});t.on("open",function(){l.$results.attr("aria-expanded","true");l.$results.attr("aria-hidden","false");l.setClasses();l.ensureHighlightVisible()});t.on("close",function(){l.$results.attr("aria-expanded","false");l.$results.attr("aria-hidden","true");l.$results.removeAttr("aria-activedescendant")});t.on("results:toggle",function(){var e=l.getHighlightedResults();if(e.length===0){return}e.trigger("mouseup")});t.on("results:select",function(){var e=l.getHighlightedResults();if(e.length===0){return}var t=e.data("data");if(e.attr("aria-selected")=="true"){l.trigger("close",{})}else{l.trigger("select",{data:t})}});t.on("results:previous",function(){var e=l.getHighlightedResults();var t=l.$results.find("[aria-selected]");var n=t.index(e);if(n<=0){return}var r=n-1;if(e.length===0){r=0}var i=t.eq(r);i.trigger("mouseenter");var s=l.$results.offset().top;var o=i.offset().top;var a=l.$results.scrollTop()+(o-s);if(r===0){l.$results.scrollTop(0)}else if(o-s<0){l.$results.scrollTop(a)}});t.on("results:next",function(){var e=l.getHighlightedResults();var t=l.$results.find("[aria-selected]");var n=t.index(e);var r=n+1;if(r>=t.length){return}var i=t.eq(r);i.trigger("mouseenter");var s=l.$results.offset().top+l.$results.outerHeight(false);var o=i.offset().top+i.outerHeight(false);var a=l.$results.scrollTop()+o-s;if(r===0){l.$results.scrollTop(0)}else if(o>s){l.$results.scrollTop(a)}});t.on("results:focus",function(e){e.element.addClass("select2-results__option--highlighted")});t.on("results:message",function(e){l.displayMessage(e)});if(f.fn.mousewheel){this.$results.on("mousewheel",function(e){var t=l.$results.scrollTop();var n=l.$results.get(0).scrollHeight-t+e.deltaY;var r=e.deltaY>0&&t-e.deltaY<=0;var i=e.deltaY<0&&n<=l.$results.height();if(r){l.$results.scrollTop(0);e.preventDefault();e.stopPropagation()}else if(i){l.$results.scrollTop(l.$results.get(0).scrollHeight-l.$results.height());e.preventDefault();e.stopPropagation()}})}this.$results.on("mouseup",".select2-results__option[aria-selected]",function(e){var t=f(this);var n=t.data("data");if(t.attr("aria-selected")==="true"){if(l.options.get("multiple")){l.trigger("unselect",{originalEvent:e,data:n})}else{l.trigger("close",{})}return}l.trigger("select",{originalEvent:e,data:n})});this.$results.on("mouseenter",".select2-results__option[aria-selected]",function(e){var t=f(this).data("data");l.getHighlightedResults().removeClass("select2-results__option--highlighted");l.trigger("results:focus",{data:t,element:f(this)})})};r.prototype.getHighlightedResults=function(){var e=this.$results.find(".select2-results__option--highlighted");return e};r.prototype.destroy=function(){this.$results.remove()};r.prototype.ensureHighlightVisible=function(){var e=this.getHighlightedResults();if(e.length===0){return}var t=this.$results.find("[aria-selected]");var n=t.index(e);var r=this.$results.offset().top;var i=e.offset().top;var s=this.$results.scrollTop()+(i-r);var o=i-r;s-=e.outerHeight(false)*2;if(n<=2){this.$results.scrollTop(0)}else if(o>this.$results.outerHeight()||o<0){this.$results.scrollTop(s)}};r.prototype.template=function(e,t){var n=this.options.get("templateResult");var r=this.options.get("escapeMarkup");var i=n(e,t);if(i==null){t.style.display="none"}else if(typeof i==="string"){t.innerHTML=r(i)}else{f(t).append(i)}};return r});t.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});t.define("select2/selection/base",["jquery","../utils","../keys"],function(i,e,s){function n(e,t){this.$element=e;this.options=t;n.__super__.constructor.call(this)}e.Extend(n,e.Observable);n.prototype.render=function(){var e=i('<span class="select2-selection" role="combobox" '+' aria-haspopup="true" aria-expanded="false">'+"</span>");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")}e.attr("title",this.$element.attr("title"));e.attr("tabindex",this._tabindex);e.attr("aria-disabled","false");this.$selection=e;return e};n.prototype.bind=function(e,t){var n=this;var r=e.id+"-results";this.container=e;this.$selection.on("focus",function(e){n.trigger("focus",e)});this.$selection.on("blur",function(e){n._handleBlur(e)});this.$selection.on("keydown",function(e){n.trigger("keypress",e);if(e.which===s.SPACE){e.preventDefault()}});e.on("results:focus",function(e){n.$selection.attr("aria-activedescendant",e.data._resultId)});e.on("selection:update",function(e){n.update(e.data)});e.on("open",function(){n.$selection.attr("aria-expanded","true");n.$selection.attr("aria-owns",r);n._attachCloseHandler(e)});e.on("close",function(){n.$selection.attr("aria-expanded","false");n.$selection.removeAttr("aria-activedescendant");n.$selection.removeAttr("aria-owns");n.$selection.trigger("focus");n._detachCloseHandler(e)});e.on("enable",function(){n.$selection.attr("tabindex",n._tabindex);n.$selection.attr("aria-disabled","false")});e.on("disable",function(){n.$selection.attr("tabindex","-1");n.$selection.attr("aria-disabled","true")})};n.prototype._handleBlur=function(e){var t=this;window.setTimeout(function(){if(document.activeElement==t.$selection[0]||i.contains(t.$selection[0],document.activeElement)){return}t.trigger("blur",e)},1)};n.prototype._attachCloseHandler=function(e){i(document.body).on("mousedown.select2."+e.id,function(e){var t=i(e.target);var n=t.closest(".select2");var r=i(".select2.select2-container--open");r.each(function(){if(this==n[0]){return}var e=i(this).data("element");e.select2("close")})})};n.prototype._detachCloseHandler=function(e){i(document.body).off("mousedown.select2."+e.id)};n.prototype.position=function(e,t){var n=t.find(".selection");n.append(e)};n.prototype.destroy=function(){this._detachCloseHandler(this.container)};n.prototype.update=function(e){throw new Error("The `update` method must be defined in child classes.")};n.prototype.isEnabled=function(){return!this.isDisabled()};n.prototype.isDisabled=function(){return this.options.get("disabled")};return n});t.define("select2/selection/single",["jquery","./base","../utils","../keys"],function(e,t,n,r){function i(){i.__super__.constructor.apply(this,arguments)}n.Extend(i,t);i.prototype.render=function(){var e=i.__super__.render.call(this);e.addClass("select2-selection--single");e.html('<span class="select2-selection__rendered"></span>'+'<span class="select2-selection__arrow" role="presentation">'+'<b role="presentation"></b>'+"</span>");return e};i.prototype.bind=function(t,e){var n=this;i.__super__.bind.apply(this,arguments);var r=t.id+"-container";this.$selection.find(".select2-selection__rendered").attr("id",r).attr("role","textbox").attr("aria-readonly","true");this.$selection.attr("aria-labelledby",r);this.$selection.on("mousedown",function(e){if(e.which!==1){return}n.trigger("toggle",{originalEvent:e})});this.$selection.on("focus",function(e){});this.$selection.on("blur",function(e){});t.on("focus",function(e){if(!t.isOpen()){n.$selection.trigger("focus")}})};i.prototype.clear=function(){var e=this.$selection.find(".select2-selection__rendered");e.empty();e.removeAttr("title")};i.prototype.display=function(e,t){var n=this.options.get("templateSelection");var r=this.options.get("escapeMarkup");return r(n(e,t))};i.prototype.selectionContainer=function(){return e("<span></span>")};i.prototype.update=function(e){if(e.length===0){this.clear();return}var t=e[0];var n=this.$selection.find(".select2-selection__rendered");var r=this.display(t,n);n.empty().append(r);var i=t.title||t.text;if(i){n.attr("title",i)}else{n.removeAttr("title")}};return i});t.define("select2/selection/multiple",["jquery","./base","../utils"],function(s,e,l){function n(e,t){n.__super__.constructor.apply(this,arguments)}l.Extend(n,e);n.prototype.render=function(){var e=n.__super__.render.call(this);e.addClass("select2-selection--multiple");e.html('<ul class="select2-selection__rendered"></ul>');return e};n.prototype.bind=function(e,t){var i=this;n.__super__.bind.apply(this,arguments);this.$selection.on("click",function(e){i.trigger("toggle",{originalEvent:e})});this.$selection.on("click",".select2-selection__choice__remove",function(e){if(i.isDisabled()){return}var t=s(this);var n=t.parent();var r=n.data("data");i.trigger("unselect",{originalEvent:e,data:r})})};n.prototype.clear=function(){var e=this.$selection.find(".select2-selection__rendered");e.empty();e.removeAttr("title")};n.prototype.display=function(e,t){var n=this.options.get("templateSelection");var r=this.options.get("escapeMarkup");return r(n(e,t))};n.prototype.selectionContainer=function(){var e=s('<li class="select2-selection__choice">'+'<span class="select2-selection__choice__remove" role="presentation">'+"×"+"</span>"+"</li>");return e};n.prototype.update=function(e){this.clear();if(e.length===0){return}var t=[];for(var n=0;n<e.length;n++){var r=e[n];var i=this.selectionContainer();var s=this.display(r,i);i.append(s);var o=r.title||r.text;if(o){i.attr("title",o)}i.data("data",r);t.push(i)}var a=this.$selection.find(".select2-selection__rendered");l.appendMany(a,t)};return n});t.define("select2/selection/placeholder",["../utils"],function(e){function t(e,t,n){this.placeholder=this.normalizePlaceholder(n.get("placeholder"));e.call(this,t,n)}t.prototype.normalizePlaceholder=function(e,t){if(typeof t==="string"){t={id:"",text:t}}return t};t.prototype.createPlaceholder=function(e,t){var n=this.selectionContainer();n.html(this.display(t));n.addClass("select2-selection__placeholder").removeClass("select2-selection__choice");return n};t.prototype.update=function(e,t){var n=t.length==1&&t[0].id!=this.placeholder.id;var r=t.length>1;if(r||n){return e.call(this,t)}this.clear();var i=this.createPlaceholder(this.placeholder);this.$selection.find(".select2-selection__rendered").append(i)};return t});t.define("select2/selection/allowClear",["jquery","../keys"],function(i,r){function e(){}e.prototype.bind=function(e,t,n){var r=this;e.call(this,t,n);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(e){r._handleClear(e)});t.on("keypress",function(e){r._handleKeyboardClear(e,t)})};e.prototype._handleClear=function(e,t){if(this.isDisabled()){return}var n=this.$selection.find(".select2-selection__clear");if(n.length===0){return}t.stopPropagation();var r=n.data("data");var i=this.$element.val();this.$element.val(this.placeholder.id);var s={data:r};this.trigger("clear",s);if(s.prevented){this.$element.val(i);return}for(var o=0;o<r.length;o++){s={data:r[o]};this.trigger("unselect",s);if(s.prevented){this.$element.val(i);return}}this.$element.trigger("input").trigger("change");this.trigger("toggle",{})};e.prototype._handleKeyboardClear=function(e,t,n){if(n.isOpen()){return}if(t.which==r.DELETE||t.which==r.BACKSPACE){this._handleClear(t)}};e.prototype.update=function(e,t){e.call(this,t);if(this.$selection.find(".select2-selection__placeholder").length>0||t.length===0){return}var n=this.options.get("translations").get("removeAllItems");var r=i('<span class="select2-selection__clear" title="'+n()+'">'+"×"+"</span>");r.data("data",t);this.$selection.find(".select2-selection__rendered").prepend(r)};return e});t.define("select2/selection/search",["jquery","../utils","../keys"],function(r,e,a){function t(e,t,n){e.call(this,t,n)}t.prototype.render=function(e){var t=r('<li class="select2-search select2-search--inline">'+'<input class="select2-search__field" type="search" tabindex="-1"'+' autocomplete="off" autocorrect="off" autocapitalize="none"'+' spellcheck="false" role="searchbox" aria-autocomplete="list" />'+"</li>");this.$searchContainer=t;this.$search=t.find("input");var n=e.call(this);this._transferTabIndex();return n};t.prototype.bind=function(e,t,n){var i=this;var r=t.id+"-results";e.call(this,t,n);t.on("open",function(){i.$search.attr("aria-controls",r);i.$search.trigger("focus")});t.on("close",function(){i.$search.val("");i.$search.removeAttr("aria-controls");i.$search.removeAttr("aria-activedescendant");i.$search.trigger("focus")});t.on("enable",function(){i.$search.prop("disabled",false);i._transferTabIndex()});t.on("disable",function(){i.$search.prop("disabled",true)});t.on("focus",function(e){i.$search.trigger("focus")});t.on("results:focus",function(e){if(e.data._resultId){i.$search.attr("aria-activedescendant",e.data._resultId)}else{i.$search.removeAttr("aria-activedescendant")}});this.$selection.on("focusin",".select2-search--inline",function(e){i.trigger("focus",e)});this.$selection.on("focusout",".select2-search--inline",function(e){i._handleBlur(e)});this.$selection.on("keydown",".select2-search--inline",function(e){e.stopPropagation();i.trigger("keypress",e);i._keyUpPrevented=e.isDefaultPrevented();var t=e.which;if(t===a.BACKSPACE&&i.$search.val()===""){var n=i.$searchContainer.prev(".select2-selection__choice");if(n.length>0){var r=n.data("data");i.searchRemoveChoice(r);e.preventDefault()}}});this.$selection.on("click",".select2-search--inline",function(e){if(i.$search.val()){e.stopPropagation()}});var s=document.documentMode;var o=s&&s<=11;this.$selection.on("input.searchcheck",".select2-search--inline",function(e){if(o){i.$selection.off("input.search input.searchcheck");return}i.$selection.off("keyup.search")});this.$selection.on("keyup.search input.search",".select2-search--inline",function(e){if(o&&e.type==="input"){i.$selection.off("input.search input.searchcheck");return}var t=e.which;if(t==a.SHIFT||t==a.CTRL||t==a.ALT){return}if(t==a.TAB){return}i.handleSearch(e)})};t.prototype._transferTabIndex=function(e){this.$search.attr("tabindex",this.$selection.attr("tabindex"));this.$selection.attr("tabindex","-1")};t.prototype.createPlaceholder=function(e,t){this.$search.attr("placeholder",t.text)};t.prototype.update=function(e,t){var n=this.$search[0]==document.activeElement;this.$search.attr("placeholder","");e.call(this,t);this.$selection.find(".select2-selection__rendered").append(this.$searchContainer);this.resizeSearch();if(n){this.$search.trigger("focus")}};t.prototype.handleSearch=function(){this.resizeSearch();if(!this._keyUpPrevented){var e=this.$search.val();this.trigger("query",{term:e})}this._keyUpPrevented=false};t.prototype.searchRemoveChoice=function(e,t){this.trigger("unselect",{data:t});this.$search.val(t.text);this.handleSearch()};t.prototype.resizeSearch=function(){this.$search.css("width","25px");var e="";if(this.$search.attr("placeholder")!==""){e=this.$selection.find(".select2-selection__rendered").width()}else{var t=this.$search.val().length+1;e=t*.75+"em"}this.$search.css("width",e)};return t});t.define("select2/selection/eventRelay",["jquery"],function(o){function e(){}e.prototype.bind=function(e,t,n){var r=this;var i=["open","opening","close","closing","select","selecting","unselect","unselecting","clear","clearing"];var s=["opening","closing","selecting","unselecting","clearing"];e.call(this,t,n);t.on("*",function(e,t){if(o.inArray(e,i)===-1){return}t=t||{};var n=o.Event("select2:"+e,{params:t});r.$element.trigger(n);if(o.inArray(e,s)===-1){return}t.prevented=n.isDefaultPrevented()})};return e});t.define("select2/translation",["jquery","require"],function(t,n){function r(e){this.dict=e||{}}r.prototype.all=function(){return this.dict};r.prototype.get=function(e){return this.dict[e]};r.prototype.extend=function(e){this.dict=t.extend({},e.all(),this.dict)};r._cache={};r.loadPath=function(e){if(!(e in r._cache)){var t=n(e);r._cache[e]=t}return new r(r._cache[e])};return r});t.define("select2/diacritics",[],function(){var e={"Ⓐ":"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","Ɓ":"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","Ꝺ":"D","DZ":"DZ","DŽ":"DZ","Dz":"Dz","Dž":"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","Ǝ":"E","Ⓕ":"F","F":"F","Ḟ":"F","Ƒ":"F","Ꝼ":"F","Ⓖ":"G","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","Lj":"Lj","Ⓜ":"M","M":"M","Ḿ":"M","Ṁ":"M","Ṃ":"M","Ɱ":"M","Ɯ":"M","Ⓝ":"N","N":"N","Ǹ":"N","Ń":"N","Ñ":"N","Ṅ":"N","Ň":"N","Ṇ":"N","Ņ":"N","Ṋ":"N","Ṉ":"N","Ƞ":"N","Ɲ":"N","Ꞑ":"N","Ꞥ":"N","NJ":"NJ","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","Ꝕ":"P","Ⓠ":"Q","Q":"Q","Ꝗ":"Q","Ꝙ":"Q","Ɋ":"Q","Ⓡ":"R","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","Ʉ":"U","Ⓥ":"V","V":"V","Ṽ":"V","Ṿ":"V","Ʋ":"V","Ꝟ":"V","Ʌ":"V","Ꝡ":"VY","Ⓦ":"W","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","Ỿ":"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","ɐ":"a","ꜳ":"aa","æ":"ae","ǽ":"ae","ǣ":"ae","ꜵ":"ao","ꜷ":"au","ꜹ":"av","ꜻ":"av","ꜽ":"ay","ⓑ":"b","b":"b","ḃ":"b","ḅ":"b","ḇ":"b","ƀ":"b","ƃ":"b","ɓ":"b","ⓒ":"c","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","ꝺ":"d","dz":"dz","dž":"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","ɛ":"e","ǝ":"e","ⓕ":"f","f":"f","ḟ":"f","ƒ":"f","ꝼ":"f","ⓖ":"g","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","ɥ":"h","ƕ":"hv","ⓘ":"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","ɉ":"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","ꝇ":"l","lj":"lj","ⓜ":"m","m":"m","ḿ":"m","ṁ":"m","ṃ":"m","ɱ":"m","ɯ":"m","ⓝ":"n","n":"n","ǹ":"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","ȣ":"ou","ꝏ":"oo","ⓟ":"p","p":"p","ṕ":"p","ṗ":"p","ƥ":"p","ᵽ":"p","ꝑ":"p","ꝓ":"p","ꝕ":"p","ⓠ":"q","q":"q","ɋ":"q","ꝗ":"q","ꝙ":"q","ⓡ":"r","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","ẛ":"s","ⓣ":"t","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","ʉ":"u","ⓥ":"v","v":"v","ṽ":"v","ṿ":"v","ʋ":"v","ꝟ":"v","ʌ":"v","ꝡ":"vy","ⓦ":"w","w":"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","ɏ":"y","ỿ":"y","ⓩ":"z","z":"z","ź":"z","ẑ":"z","ż":"z","ž":"z","ẓ":"z","ẕ":"z","ƶ":"z","ȥ":"z","ɀ":"z","ⱬ":"z","ꝣ":"z","Ά":"Α","Έ":"Ε","Ή":"Η","Ί":"Ι","Ϊ":"Ι","Ό":"Ο","Ύ":"Υ","Ϋ":"Υ","Ώ":"Ω","ά":"α","έ":"ε","ή":"η","ί":"ι","ϊ":"ι","ΐ":"ι","ό":"ο","ύ":"υ","ϋ":"υ","ΰ":"υ","ώ":"ω","ς":"σ","’":"'"};return e});t.define("select2/data/base",["../utils"],function(r){function n(e,t){n.__super__.constructor.call(this)}r.Extend(n,r.Observable);n.prototype.current=function(e){throw new Error("The `current` method must be defined in child classes.")};n.prototype.query=function(e,t){throw new Error("The `query` method must be defined in child classes.")};n.prototype.bind=function(e,t){};n.prototype.destroy=function(){};n.prototype.generateResultId=function(e,t){var n=e.id+"-result-";n+=r.generateChars(4);if(t.id!=null){n+="-"+t.id.toString()}else{n+="-"+r.generateChars(4)}return n};return n});t.define("select2/data/select",["./base","../utils","jquery"],function(e,t,a){function n(e,t){this.$element=e;this.options=t;n.__super__.constructor.call(this)}t.Extend(n,e);n.prototype.current=function(e){var n=[];var r=this;this.$element.find(":selected").each(function(){var e=a(this);var t=r.item(e);n.push(t)});e(n)};n.prototype.select=function(i){var s=this;i.selected=true;if(a(i.element).is("option")){i.element.selected=true;this.$element.trigger("input").trigger("change");return}if(this.$element.prop("multiple")){this.current(function(e){var t=[];i=[i];i.push.apply(i,e);for(var n=0;n<i.length;n++){var r=i[n].id;if(a.inArray(r,t)===-1){t.push(r)}}s.$element.val(t);s.$element.trigger("input").trigger("change")})}else{var e=i.id;this.$element.val(e);this.$element.trigger("input").trigger("change")}};n.prototype.unselect=function(i){var s=this;if(!this.$element.prop("multiple")){return}i.selected=false;if(a(i.element).is("option")){i.element.selected=false;this.$element.trigger("input").trigger("change");return}this.current(function(e){var t=[];for(var n=0;n<e.length;n++){var r=e[n].id;if(r!==i.id&&a.inArray(r,t)===-1){t.push(r)}}s.$element.val(t);s.$element.trigger("input").trigger("change")})};n.prototype.bind=function(e,t){var n=this;this.container=e;e.on("select",function(e){n.select(e.data)});e.on("unselect",function(e){n.unselect(e.data)})};n.prototype.destroy=function(){this.$element.find("*").each(function(){a.removeData(this,"data")})};n.prototype.query=function(r,e){var i=[];var s=this;var t=this.$element.children();t.each(function(){var e=a(this);if(!e.is("option")&&!e.is("optgroup")){return}var t=s.item(e);var n=s.matches(r,t);if(n!==null){i.push(n)}});e({results:i})};n.prototype.addOptions=function(e){t.appendMany(this.$element,e)};n.prototype.option=function(e){var t;if(e.children){t=document.createElement("optgroup");t.label=e.text}else{t=document.createElement("option");if(t.textContent!==undefined){t.textContent=e.text}else{t.innerText=e.text}}if(e.id!==undefined){t.value=e.id}if(e.disabled){t.disabled=true}if(e.selected){t.selected=true}if(e.title){t.title=e.title}var n=a(t);var r=this._normalizeItem(e);r.element=t;a.data(t,"data",r);return n};n.prototype.item=function(e){var t={};t=a.data(e[0],"data");if(t!=null){return t}if(e.is("option")){t={id:e.val(),text:e.text(),disabled:e.prop("disabled"),selected:e.prop("selected"),title:e.prop("title")}}else if(e.is("optgroup")){t={text:e.prop("label"),children:[],title:e.prop("title")};var n=e.children("option");var r=[];for(var i=0;i<n.length;i++){var s=a(n[i]);var o=this.item(s);r.push(o)}t.children=r}t=this._normalizeItem(t);t.element=e[0];a.data(e[0],"data",t);return t};n.prototype._normalizeItem=function(e){if(e!==Object(e)){e={id:e,text:e}}e=a.extend({},{text:""},e);var t={selected:false,disabled:false};if(e.id!=null){e.id=e.id.toString()}if(e.text!=null){e.text=e.text.toString()}if(e._resultId==null&&e.id&&this.container!=null){e._resultId=this.generateResultId(this.container,e)}return a.extend({},t,e)};n.prototype.matches=function(e,t){var n=this.options.get("matcher");return n(e,t)};return n});t.define("select2/data/array",["./select","../utils","jquery"],function(e,f,g){function r(e,t){this._dataToConvert=t.get("data")||[];r.__super__.constructor.call(this,e,t)}f.Extend(r,e);r.prototype.bind=function(e,t){r.__super__.bind.call(this,e,t);this.addOptions(this.convertToOptions(this._dataToConvert))};r.prototype.select=function(n){var e=this.$element.find("option").filter(function(e,t){return t.value==n.id.toString()});if(e.length===0){e=this.option(n);this.addOptions(e)}r.__super__.select.call(this,n)};r.prototype.convertToOptions=function(e){var t=this;var n=this.$element.find("option");var r=n.map(function(){return t.item(g(this)).id}).get();var i=[];function s(e){return function(){return g(this).val()==e.id}}for(var o=0;o<e.length;o++){var a=this._normalizeItem(e[o]);if(g.inArray(a.id,r)>=0){var l=n.filter(s(a));var c=this.item(l);var u=g.extend(true,{},a,c);var d=this.option(u);l.replaceWith(d);continue}var p=this.option(a);if(a.children){var h=this.convertToOptions(a.children);f.appendMany(p,h)}i.push(p)}return i};return r});t.define("select2/data/ajax",["./array","../utils","jquery"],function(e,t,o){function n(e,t){this.ajaxOptions=this._applyDefaults(t.get("ajax"));if(this.ajaxOptions.processResults!=null){this.processResults=this.ajaxOptions.processResults}n.__super__.constructor.call(this,e,t)}t.Extend(n,e);n.prototype._applyDefaults=function(e){var t={data:function(e){return o.extend({},e,{q:e.term})},transport:function(e,t,n){var r=o.ajax(e);r.then(t);r.fail(n);return r}};return o.extend({},t,e,true)};n.prototype.processResults=function(e){return e};n.prototype.query=function(n,r){var e=[];var i=this;if(this._request!=null){if(o.isFunction(this._request.abort)){this._request.abort()}this._request=null}var t=o.extend({type:"GET"},this.ajaxOptions);if(typeof t.url==="function"){t.url=t.url.call(this.$element,n)}if(typeof t.data==="function"){t.data=t.data.call(this.$element,n)}function s(){var e=t.transport(t,function(e){var t=i.processResults(e,n);if(i.options.get("debug")&&window.console&&console.error){if(!t||!t.results||!o.isArray(t.results)){console.error("Select2: The AJAX results did not return an array in the "+"`results` key of the response.")}}r(t)},function(){if("status"in e&&(e.status===0||e.status==="0")){return}i.trigger("results:message",{message:"errorLoading"})});i._request=e}if(this.ajaxOptions.delay&&n.term!=null){if(this._queryTimeout){window.clearTimeout(this._queryTimeout)}this._queryTimeout=window.setTimeout(s,this.ajaxOptions.delay)}else{s()}};return n});t.define("select2/data/tags",["jquery"],function(u){function e(e,t,n){var r=n.get("tags");var i=n.get("createTag");if(i!==undefined){this.createTag=i}var s=n.get("insertTag");if(s!==undefined){this.insertTag=s}e.call(this,t,n);if(u.isArray(r)){for(var o=0;o<r.length;o++){var a=r[o];var l=this._normalizeItem(a);var c=this.option(l);this.$element.append(c)}}}e.prototype.query=function(e,d,p){var h=this;this._removeOldTags();if(d.term==null||d.page!=null){e.call(this,d,p);return}function f(e,t){var n=e.results;for(var r=0;r<n.length;r++){var i=n[r];var s=i.children!=null&&!f({results:i.children},true);var o=(i.text||"").toUpperCase();var a=(d.term||"").toUpperCase();var l=o===a;if(l||s){if(t){return false}e.data=n;p(e);return}}if(t){return true}var c=h.createTag(d);if(c!=null){var u=h.option(c);u.attr("data-select2-tag",true);h.addOptions([u]);h.insertTag(n,c)}e.results=n;p(e)}e.call(this,d,f)};e.prototype.createTag=function(e,t){var n=u.trim(t.term);if(n===""){return null}return{id:n,text:n}};e.prototype.insertTag=function(e,t,n){t.unshift(n)};e.prototype._removeOldTags=function(e){var t=this.$element.find("option[data-select2-tag]");t.each(function(){if(this.selected){return}u(this).remove()})};return e});t.define("select2/data/tokenizer",["jquery"],function(p){function e(e,t,n){var r=n.get("tokenizer");if(r!==undefined){this.tokenizer=r}e.call(this,t,n)}e.prototype.bind=function(e,t,n){e.call(this,t,n);this.$search=t.dropdown.$search||t.selection.$search||n.find(".select2-search__field")};e.prototype.query=function(e,t,n){var i=this;function r(e){var t=i._normalizeItem(e);var n=i.$element.find("option").filter(function(){return p(this).val()===t.id});if(!n.length){var r=i.option(t);r.attr("data-select2-tag",true);i._removeOldTags();i.addOptions([r])}s(t)}function s(e){i.trigger("select",{data:e})}t.term=t.term||"";var o=this.tokenizer(t,this.options,r);if(o.term!==t.term){if(this.$search.length){this.$search.val(o.term);this.$search.trigger("focus")}t.term=o.term}e.call(this,t,n)};e.prototype.tokenizer=function(e,t,n,r){var i=n.get("tokenSeparators")||[];var s=t.term;var o=0;var a=this.createTag||function(e){return{id:e.term,text:e.term}};while(o<s.length){var l=s[o];if(p.inArray(l,i)===-1){o++;continue}var c=s.substr(0,o);var u=p.extend({},t,{term:c});var d=a(u);if(d==null){o++;continue}r(d);s=s.substr(o+1)||"";o=0}return{term:s}};return e});t.define("select2/data/minimumInputLength",[],function(){function e(e,t,n){this.minimumInputLength=n.get("minimumInputLength");e.call(this,t,n)}e.prototype.query=function(e,t,n){t.term=t.term||"";if(t.term.length<this.minimumInputLength){this.trigger("results:message",{message:"inputTooShort",args:{minimum:this.minimumInputLength,input:t.term,params:t}});return}e.call(this,t,n)};return e});t.define("select2/data/maximumInputLength",[],function(){function e(e,t,n){this.maximumInputLength=n.get("maximumInputLength");e.call(this,t,n)}e.prototype.query=function(e,t,n){t.term=t.term||"";if(this.maximumInputLength>0&&t.term.length>this.maximumInputLength){this.trigger("results:message",{message:"inputTooLong",args:{maximum:this.maximumInputLength,input:t.term,params:t}});return}e.call(this,t,n)};return e});t.define("select2/data/maximumSelectionLength",[],function(){function e(e,t,n){this.maximumSelectionLength=n.get("maximumSelectionLength");e.call(this,t,n)}e.prototype.bind=function(e,t,n){var r=this;e.call(this,t,n);t.on("select",function(){r._checkIfMaximumSelected()})};e.prototype.query=function(e,t,n){var r=this;this._checkIfMaximumSelected(function(){e.call(r,t,n)})};e.prototype._checkIfMaximumSelected=function(e,n){var r=this;this.current(function(e){var t=e!=null?e.length:0;if(r.maximumSelectionLength>0&&t>=r.maximumSelectionLength){r.trigger("results:message",{message:"maximumSelected",args:{maximum:r.maximumSelectionLength}});return}if(n){n()}})};return e});t.define("select2/dropdown",["jquery","./utils"],function(t,e){function n(e,t){this.$element=e;this.options=t;n.__super__.constructor.call(this)}e.Extend(n,e.Observable);n.prototype.render=function(){var e=t('<span class="select2-dropdown">'+'<span class="select2-results"></span>'+"</span>");e.attr("dir",this.options.get("dir"));this.$dropdown=e;return e};n.prototype.bind=function(){};n.prototype.position=function(e,t){};n.prototype.destroy=function(){this.$dropdown.remove()};return n});t.define("select2/dropdown/search",["jquery"],function(s){function e(){}e.prototype.render=function(e){var t=e.call(this);var n=s('<span class="select2-search select2-search--dropdown">'+'<input class="select2-search__field" type="search" tabindex="-1"'+' autocomplete="off" autocorrect="off" autocapitalize="none"'+' spellcheck="false" role="searchbox" aria-autocomplete="list" />'+"</span>");this.$searchContainer=n;this.$search=n.find("input");t.prepend(n);return t};e.prototype.bind=function(e,t,n){var r=this;var i=t.id+"-results";e.call(this,t,n);this.$search.on("keydown",function(e){r.trigger("keypress",e);r._keyUpPrevented=e.isDefaultPrevented()});this.$search.on("input",function(e){s(this).off("keyup")});this.$search.on("keyup input",function(e){r.handleSearch(e)});t.on("open",function(){r.$search.attr("tabindex",0);r.$search.attr("aria-controls",i);r.$search.trigger("focus");window.setTimeout(function(){r.$search.trigger("focus")},0)});t.on("close",function(){r.$search.attr("tabindex",-1);r.$search.removeAttr("aria-controls");r.$search.removeAttr("aria-activedescendant");r.$search.val("");r.$search.trigger("blur")});t.on("focus",function(){if(!t.isOpen()){r.$search.trigger("focus")}});t.on("results:all",function(e){if(e.query.term==null||e.query.term===""){var t=r.showSearch(e);if(t){r.$searchContainer.removeClass("select2-search--hide")}else{r.$searchContainer.addClass("select2-search--hide")}}});t.on("results:focus",function(e){if(e.data._resultId){r.$search.attr("aria-activedescendant",e.data._resultId)}else{r.$search.removeAttr("aria-activedescendant")}})};e.prototype.handleSearch=function(e){if(!this._keyUpPrevented){var t=this.$search.val();this.trigger("query",{term:t})}this._keyUpPrevented=false};e.prototype.showSearch=function(e,t){return true};return e});t.define("select2/dropdown/hidePlaceholder",[],function(){function e(e,t,n,r){this.placeholder=this.normalizePlaceholder(n.get("placeholder"));e.call(this,t,n,r)}e.prototype.append=function(e,t){t.results=this.removePlaceholder(t.results);e.call(this,t)};e.prototype.normalizePlaceholder=function(e,t){if(typeof t==="string"){t={id:"",text:t}}return t};e.prototype.removePlaceholder=function(e,t){var n=t.slice(0);for(var r=t.length-1;r>=0;r--){var i=t[r];if(this.placeholder.id===i.id){n.splice(r,1)}}return n};return e});t.define("select2/dropdown/infiniteScroll",["jquery"],function(r){function e(e,t,n,r){this.lastParams={};e.call(this,t,n,r);this.$loadingMore=this.createLoadingMore();this.loading=false}e.prototype.append=function(e,t){this.$loadingMore.remove();this.loading=false;e.call(this,t);if(this.showLoadingMore(t)){this.$results.append(this.$loadingMore);this.loadMoreIfNeeded()}};e.prototype.bind=function(e,t,n){var r=this;e.call(this,t,n);t.on("query",function(e){r.lastParams=e;r.loading=true});t.on("query:append",function(e){r.lastParams=e;r.loading=true});this.$results.on("scroll",this.loadMoreIfNeeded.bind(this))};e.prototype.loadMoreIfNeeded=function(){var e=r.contains(document.documentElement,this.$loadingMore[0]);if(this.loading||!e){return}var t=this.$results.offset().top+this.$results.outerHeight(false);var n=this.$loadingMore.offset().top+this.$loadingMore.outerHeight(false);if(t+50>=n){this.loadMore()}};e.prototype.loadMore=function(){this.loading=true;var e=r.extend({},{page:1},this.lastParams);e.page++;this.trigger("query:append",e)};e.prototype.showLoadingMore=function(e,t){return t.pagination&&t.pagination.more};e.prototype.createLoadingMore=function(){var e=r("<li "+'class="select2-results__option select2-results__option--load-more"'+'role="option" aria-disabled="true"></li>');var t=this.options.get("translations").get("loadingMore");e.html(t(this.lastParams));return e};return e});t.define("select2/dropdown/attachBody",["jquery","../utils"],function(h,a){function e(e,t,n){this.$dropdownParent=h(n.get("dropdownParent")||document.body);e.call(this,t,n)}e.prototype.bind=function(e,t,n){var r=this;e.call(this,t,n);t.on("open",function(){r._showDropdown();r._attachPositioningHandler(t);r._bindContainerResultHandlers(t)});t.on("close",function(){r._hideDropdown();r._detachPositioningHandler(t)});this.$dropdownContainer.on("mousedown",function(e){e.stopPropagation()})};e.prototype.destroy=function(e){e.call(this);this.$dropdownContainer.remove()};e.prototype.position=function(e,t,n){t.attr("class",n.attr("class"));t.removeClass("select2");t.addClass("select2-container--open");t.css({position:"absolute",top:-999999});this.$container=n};e.prototype.render=function(e){var t=h("<span></span>");var n=e.call(this);t.append(n);this.$dropdownContainer=t;return t};e.prototype._hideDropdown=function(e){this.$dropdownContainer.detach()};e.prototype._bindContainerResultHandlers=function(e,t){if(this._containerResultsHandlersBound){return}var n=this;t.on("results:all",function(){n._positionDropdown();n._resizeDropdown()});t.on("results:append",function(){n._positionDropdown();n._resizeDropdown()});t.on("results:message",function(){n._positionDropdown();n._resizeDropdown()});t.on("select",function(){n._positionDropdown();n._resizeDropdown()});t.on("unselect",function(){n._positionDropdown();n._resizeDropdown()});this._containerResultsHandlersBound=true};e.prototype._attachPositioningHandler=function(e,t){var n=this;var r="scroll.select2."+t.id;var i="resize.select2."+t.id;var s="orientationchange.select2."+t.id;var o=this.$container.parents().filter(a.hasScroll);o.each(function(){h(this).data("select2-scroll-position",{x:h(this).scrollLeft(),y:h(this).scrollTop()})});o.on(r,function(e){var t=h(this).data("select2-scroll-position");h(this).scrollTop(t.y)});h(window).on(r+" "+i+" "+s,function(e){n._positionDropdown();n._resizeDropdown()})};e.prototype._detachPositioningHandler=function(e,t){var n="scroll.select2."+t.id;var r="resize.select2."+t.id;var i="orientationchange.select2."+t.id;var s=this.$container.parents().filter(a.hasScroll);s.off(n);h(window).off(n+" "+r+" "+i)};e.prototype._positionDropdown=function(){var e=h(window);var t=this.$dropdown.hasClass("select2-dropdown--above");var n=this.$dropdown.hasClass("select2-dropdown--below");var r=null;var i=this.$container.offset();i.bottom=i.top+this.$container.outerHeight(false);var s={height:this.$container.outerHeight(false)};s.top=i.top;s.bottom=i.top+s.height;var o={height:this.$dropdown.outerHeight(false)};var a={top:e.scrollTop(),bottom:e.scrollTop()+e.height()};var l=a.top<i.top-o.height;var c=a.bottom>i.bottom+o.height;var u={left:i.left,top:s.bottom};var d=this.$dropdownParent;if(d.css("position")==="static"){d=d.offsetParent()}var p={top:0,left:0};if(h.contains(document.body,d[0])||d[0].isConnected){p=d.offset()}u.top-=p.top;u.left-=p.left;if(!t&&!n){r="below"}if(!c&&l&&!t){r="above"}else if(!l&&c&&t){r="below"}if(r=="above"||t&&r!=="below"){u.top=s.top-p.top-o.height}if(r!=null){this.$dropdown.removeClass("select2-dropdown--below select2-dropdown--above").addClass("select2-dropdown--"+r);this.$container.removeClass("select2-container--below select2-container--above").addClass("select2-container--"+r)}this.$dropdownContainer.css(u)};e.prototype._resizeDropdown=function(){var e={width:this.$container.outerWidth(false)+"px"};if(this.options.get("dropdownAutoWidth")){e.minWidth=e.width;e.position="relative";e.width="auto"}this.$dropdown.css(e)};e.prototype._showDropdown=function(e){this.$dropdownContainer.appendTo(this.$dropdownParent);this._positionDropdown();this._resizeDropdown()};return e});t.define("select2/dropdown/minimumResultsForSearch",[],function(){function i(e){var t=0;for(var n=0;n<e.length;n++){var r=e[n];if(r.children){t+=i(r.children)}else{t++}}return t}function e(e,t,n,r){this.minimumResultsForSearch=n.get("minimumResultsForSearch");if(this.minimumResultsForSearch<0){this.minimumResultsForSearch=Infinity}e.call(this,t,n,r)}e.prototype.showSearch=function(e,t){if(i(t.data.results)<this.minimumResultsForSearch){return false}return e.call(this,t)};return e});t.define("select2/dropdown/selectOnClose",[],function(){function e(){}e.prototype.bind=function(e,t,n){var r=this;e.call(this,t,n);t.on("close",function(e){r._handleSelectOnClose(e)})};e.prototype._handleSelectOnClose=function(e,t){if(t&&t.originalSelect2Event!=null){var n=t.originalSelect2Event;if(n._type==="select"||n._type==="unselect"){return}}var r=this.getHighlightedResults();if(r.length<1){return}var i=r.data("data");if(i.element!=null&&i.element.selected||i.element==null&&i.selected){return}this.trigger("select",{data:i})};return e});t.define("select2/dropdown/closeOnSelect",[],function(){function e(){}e.prototype.bind=function(e,t,n){var r=this;e.call(this,t,n);t.on("select",function(e){r._selectTriggered(e)});t.on("unselect",function(e){r._selectTriggered(e)})};e.prototype._selectTriggered=function(e,t){var n=t.originalEvent;if(n&&(n.ctrlKey||n.metaKey)){return}this.trigger("close",{originalEvent:n,originalSelect2Event:t})};return e});t.define("select2/i18n/en",[],function(){return{errorLoading:function(){return"The results could not be loaded."},inputTooLong:function(e){var t=e.input.length-e.maximum;var n="Please delete "+t+" character";if(t!=1){n+="s"}return n},inputTooShort:function(e){var t=e.minimum-e.input.length;var n="Please enter "+t+" or more characters";return n},loadingMore:function(){return"Loading more results…"},maximumSelected:function(e){var t="You can only select "+e.maximum+" item";if(e.maximum!=1){t+="s"}return t},noResults:function(){return"No results found"},searching:function(){return"Searching…"},removeAllItems:function(){return"Remove all items"}}});t.define("select2/defaults",["jquery","require","./results","./selection/single","./selection/multiple","./selection/placeholder","./selection/allowClear","./selection/search","./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","./i18n/en"],function(u,c,d,p,h,f,g,v,m,y,o,n,_,$,b,w,A,x,C,E,S,O,D,T,q,L,j,I,e){function t(){this.reset()}t.prototype.apply=function(e){e=u.extend(true,{},this.defaults,e);if(e.dataAdapter==null){if(e.ajax!=null){e.dataAdapter=b}else if(e.data!=null){e.dataAdapter=$}else{e.dataAdapter=_}if(e.minimumInputLength>0){e.dataAdapter=y.Decorate(e.dataAdapter,x)}if(e.maximumInputLength>0){e.dataAdapter=y.Decorate(e.dataAdapter,C)}if(e.maximumSelectionLength>0){e.dataAdapter=y.Decorate(e.dataAdapter,E)}if(e.tags){e.dataAdapter=y.Decorate(e.dataAdapter,w)}if(e.tokenSeparators!=null||e.tokenizer!=null){e.dataAdapter=y.Decorate(e.dataAdapter,A)}if(e.query!=null){var t=c(e.amdBase+"compat/query");e.dataAdapter=y.Decorate(e.dataAdapter,t)}if(e.initSelection!=null){var n=c(e.amdBase+"compat/initSelection");e.dataAdapter=y.Decorate(e.dataAdapter,n)}}if(e.resultsAdapter==null){e.resultsAdapter=d;if(e.ajax!=null){e.resultsAdapter=y.Decorate(e.resultsAdapter,T)}if(e.placeholder!=null){e.resultsAdapter=y.Decorate(e.resultsAdapter,D)}if(e.selectOnClose){e.resultsAdapter=y.Decorate(e.resultsAdapter,j)}}if(e.dropdownAdapter==null){if(e.multiple){e.dropdownAdapter=S}else{var r=y.Decorate(S,O);e.dropdownAdapter=r}if(e.minimumResultsForSearch!==0){e.dropdownAdapter=y.Decorate(e.dropdownAdapter,L)}if(e.closeOnSelect){e.dropdownAdapter=y.Decorate(e.dropdownAdapter,I)}if(e.dropdownCssClass!=null||e.dropdownCss!=null||e.adaptDropdownCssClass!=null){var i=c(e.amdBase+"compat/dropdownCss");e.dropdownAdapter=y.Decorate(e.dropdownAdapter,i)}e.dropdownAdapter=y.Decorate(e.dropdownAdapter,q)}if(e.selectionAdapter==null){if(e.multiple){e.selectionAdapter=h}else{e.selectionAdapter=p}if(e.placeholder!=null){e.selectionAdapter=y.Decorate(e.selectionAdapter,f)}if(e.allowClear){e.selectionAdapter=y.Decorate(e.selectionAdapter,g)}if(e.multiple){e.selectionAdapter=y.Decorate(e.selectionAdapter,v)}if(e.containerCssClass!=null||e.containerCss!=null||e.adaptContainerCssClass!=null){var s=c(e.amdBase+"compat/containerCss");e.selectionAdapter=y.Decorate(e.selectionAdapter,s)}e.selectionAdapter=y.Decorate(e.selectionAdapter,m)}e.language=this._resolveLanguage(e.language);e.language.push("en");var o=[];for(var a=0;a<e.language.length;a++){var l=e.language[a];if(o.indexOf(l)===-1){o.push(l)}}e.language=o;e.translations=this._processTranslations(e.language,e.debug);return e};t.prototype.reset=function(){function l(e){function t(e){return n[e]||e}return e.replace(/[^\u0000-\u007E]/g,t)}function c(e,t){if(u.trim(e.term)===""){return t}if(t.children&&t.children.length>0){var n=u.extend(true,{},t);for(var r=t.children.length-1;r>=0;r--){var i=t.children[r];var s=c(e,i);if(s==null){n.children.splice(r,1)}}if(n.children.length>0){return n}return c(e,n)}var o=l(t.text).toUpperCase();var a=l(e.term).toUpperCase();if(o.indexOf(a)>-1){return t}return null}this.defaults={amdBase:"./",amdLanguageBase:"./i18n/",closeOnSelect:true,debug:false,dropdownAutoWidth:false,escapeMarkup:y.escapeMarkup,language:{},matcher:c,minimumInputLength:0,maximumInputLength:0,maximumSelectionLength:0,minimumResultsForSearch:0,selectOnClose:false,scrollAfterSelect:false,sorter:function(e){return e},templateResult:function(e){return e.text},templateSelection:function(e){return e.text},theme:"default",width:"resolve"}};t.prototype.applyFromElement=function(e,t){var n=e.language;var r=this.defaults.language;var i=t.prop("lang");var s=t.closest("[lang]").prop("lang");var o=Array.prototype.concat.call(this._resolveLanguage(i),this._resolveLanguage(n),this._resolveLanguage(r),this._resolveLanguage(s));e.language=o;return e};t.prototype._resolveLanguage=function(e){if(!e){return[]}if(u.isEmptyObject(e)){return[]}if(u.isPlainObject(e)){return[e]}var t;if(!u.isArray(e)){t=[e]}else{t=e}var n=[];for(var r=0;r<t.length;r++){n.push(t[r]);if(typeof t[r]==="string"&&t[r].indexOf("-")>0){var i=t[r].split("-");var s=i[0];n.push(s)}}return n};t.prototype._processTranslations=function(e,t){var n=new o;for(var r=0;r<e.length;r++){var i=new o;var s=e[r];if(typeof s==="string"){try{i=o.loadPath(s)}catch(e){try{s=this.defaults.amdLanguageBase+s;i=o.loadPath(s)}catch(e){if(t&&window.console&&console.warn){console.warn('Select2: The language file for "'+s+'" could '+"not be automatically loaded. A fallback will be used instead.")}}}}else if(u.isPlainObject(s)){i=new o(s)}else{i=s}n.extend(i)}return n};t.prototype.set=function(e,t){var n=u.camelCase(e);var r={};r[n]=t;var i=y._convertData(r);u.extend(true,this.defaults,i)};var r=new t;return r});t.define("select2/options",["require","jquery","./defaults","./utils"],function(r,p,i,h){function e(e,t){this.options=e;if(t!=null){this.fromElement(t)}if(t!=null){this.options=i.applyFromElement(this.options,t)}this.options=i.apply(this.options);if(t&&t.is("input")){var n=r(this.get("amdBase")+"compat/inputData");this.options.dataAdapter=h.Decorate(this.options.dataAdapter,n)}}e.prototype.fromElement=function(e){var t=["select2"];if(this.options.multiple==null){this.options.multiple=e.prop("multiple")}if(this.options.disabled==null){this.options.disabled=e.prop("disabled")}if(this.options.dir==null){if(e.prop("dir")){this.options.dir=e.prop("dir")}else if(e.closest("[dir]").prop("dir")){this.options.dir=e.closest("[dir]").prop("dir")}else{this.options.dir="ltr"}}e.prop("disabled",this.options.disabled);e.prop("multiple",this.options.multiple);if(e.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.")}e.data("data",e.data("select2Tags"));e.data("tags",true)}if(e.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.")}e.attr("ajax--url",e.data("ajaxUrl"));e.data("ajax--url",e.data("ajaxUrl"))}var n={};function r(e,t){return t.toUpperCase()}for(var i=0;i<e[0].attributes.length;i++){var s=e[0].attributes[i].name;var o="data-";if(s.substr(0,o.length)==o){var a=s.substring(o.length);var l=e.data(a);var c=a.replace(/-([a-z])/g,r);n[c]=l}}if(p.fn.jquery&&p.fn.jquery.substr(0,2)=="1."&&e[0].dataset){n=p.extend(true,{},e[0].dataset,n)}var u=p.extend(true,{},e.data(),n);u=h._convertData(u);for(var d in u){if(p.inArray(d,t)>-1){continue}if(p.isPlainObject(this.options[d])){p.extend(this.options[d],u[d])}else{this.options[d]=u[d]}}return this};e.prototype.get=function(e){return this.options[e]};e.prototype.set=function(e,t){this.options[e]=t};return e});t.define("select2/core",["jquery","./options","./utils","./keys"],function(o,c,n,r){var u=function(e,t){if(e.data("select2")!=null){e.data("select2").destroy()}this.$element=e;this.id=this._generateId(e);t=t||{};this.options=new c(t,e);u.__super__.constructor.call(this);var n=e.attr("tabindex")||0;e.data("old-tabindex",n);e.attr("tabindex","-1");var r=this.options.get("dataAdapter");this.dataAdapter=new r(e,this.options);var i=this.render();this._placeContainer(i);var s=this.options.get("selectionAdapter");this.selection=new s(e,this.options);this.$selection=this.selection.render();this.selection.position(this.$selection,i);var o=this.options.get("dropdownAdapter");this.dropdown=new o(e,this.options);this.$dropdown=this.dropdown.render();this.dropdown.position(this.$dropdown,i);var a=this.options.get("resultsAdapter");this.results=new a(e,this.options,this.dataAdapter);this.$results=this.results.render();this.results.position(this.$results,this.$dropdown);var l=this;this._bindAdapters();this._registerDomEvents();this._registerDataEvents();this._registerSelectionEvents();this._registerDropdownEvents();this._registerResultsEvents();this._registerEvents();this.dataAdapter.current(function(e){l.trigger("selection:update",{data:e})});e.addClass("select2-hidden-accessible");e.attr("aria-hidden","true");this._syncAttributes();e.data("select2",this)};n.Extend(u,n.Observable);u.prototype._generateId=function(e){var t="";if(e.attr("id")!=null){t=e.attr("id")}else if(e.attr("name")!=null){t=e.attr("name")+"-"+n.generateChars(2)}else{t=n.generateChars(4)}t=t.replace(/(:|\.|\[|\]|,)/g,"");t="select2-"+t;return t};u.prototype._placeContainer=function(e){e.insertAfter(this.$element);var t=this._resolveWidth(this.$element,this.options.get("width"));if(t!=null){e.css("width",t)}};u.prototype._resolveWidth=function(e,t){var n=/^width:(([-+]?([0-9]*\.)?[0-9]+)(px|em|ex|%|in|cm|mm|pt|pc))/i;if(t=="resolve"){var r=this._resolveWidth(e,"style");if(r!=null){return r}return this._resolveWidth(e,"element")}if(t=="element"){var i=e.outerWidth(false);if(i<=0){return"auto"}return i+"px"}if(t=="style"){var s=e.attr("style");if(typeof s!=="string"){return null}var o=s.split(";");for(var a=0,l=o.length;a<l;a=a+1){var c=o[a].replace(/\s/g,"");var u=c.match(n);if(u!==null&&u.length>=1){return u[1]}}return null}if(t=="computedstyle"){var d=window.getComputedStyle(e[0]);return d.width}return t};u.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)};u.prototype._registerDomEvents=function(){var t=this;this.$element.on("change.select2",function(){t.dataAdapter.current(function(e){t.trigger("selection:update",{data:e})})});this.$element.on("focus.select2",function(e){t.trigger("focus",e)});this._syncA=n.bind(this._syncAttributes,this);this._syncS=n.bind(this._syncSubtree,this);if(this.$element[0].attachEvent){this.$element[0].attachEvent("onpropertychange",this._syncA)}var e=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver;if(e!=null){this._observer=new e(function(e){t._syncA();t._syncS(null,e)});this._observer.observe(this.$element[0],{attributes:true,childList:true,subtree:false})}else if(this.$element[0].addEventListener){this.$element[0].addEventListener("DOMAttrModified",t._syncA,false);this.$element[0].addEventListener("DOMNodeInserted",t._syncS,false);this.$element[0].addEventListener("DOMNodeRemoved",t._syncS,false)}};u.prototype._registerDataEvents=function(){var n=this;this.dataAdapter.on("*",function(e,t){n.trigger(e,t)})};u.prototype._registerSelectionEvents=function(){var n=this;var r=["toggle","focus"];this.selection.on("toggle",function(){n.toggleDropdown()});this.selection.on("focus",function(e){n.focus(e)});this.selection.on("*",function(e,t){if(o.inArray(e,r)!==-1){return}n.trigger(e,t)})};u.prototype._registerDropdownEvents=function(){var n=this;this.dropdown.on("*",function(e,t){n.trigger(e,t)})};u.prototype._registerResultsEvents=function(){var n=this;this.results.on("*",function(e,t){n.trigger(e,t)})};u.prototype._registerEvents=function(){var n=this;this.on("open",function(){n.$container.addClass("select2-container--open")});this.on("close",function(){n.$container.removeClass("select2-container--open")});this.on("enable",function(){n.$container.removeClass("select2-container--disabled")});this.on("disable",function(){n.$container.addClass("select2-container--disabled")});this.on("blur",function(){n.$container.removeClass("select2-container--focus")});this.on("query",function(t){if(!n.isOpen()){n.trigger("open",{})}this.dataAdapter.query(t,function(e){n.trigger("results:all",{data:e,query:t})})});this.on("query:append",function(t){this.dataAdapter.query(t,function(e){n.trigger("results:append",{data:e,query:t})})});this.on("keypress",function(e){var t=e.which;if(n.isOpen()){if(t===r.ESC||t===r.TAB||t===r.UP&&e.altKey){n.close(e);e.preventDefault()}else if(t===r.ENTER){n.trigger("results:select",{});e.preventDefault()}else if(t===r.SPACE&&e.ctrlKey){n.trigger("results:toggle",{});e.preventDefault()}else if(t===r.UP){n.trigger("results:previous",{});e.preventDefault()}else if(t===r.DOWN){n.trigger("results:next",{});e.preventDefault()}}else{if(t===r.ENTER||t===r.SPACE||t===r.DOWN&&e.altKey){n.open();e.preventDefault()}}})};u.prototype._syncAttributes=function(){this.options.set("disabled",this.$element.prop("disabled"));if(this.isDisabled()){if(this.isOpen()){this.close()}this.trigger("disable",{})}else{this.trigger("enable",{})}};u.prototype._isChangeMutation=function(e,t){var n=false;var r=this;if(e&&e.target&&(e.target.nodeName!=="OPTION"&&e.target.nodeName!=="OPTGROUP")){return}if(!t){n=true}else if(t.addedNodes&&t.addedNodes.length>0){for(var i=0;i<t.addedNodes.length;i++){var s=t.addedNodes[i];if(s.selected){n=true}}}else if(t.removedNodes&&t.removedNodes.length>0){n=true}else if(o.isArray(t)){o.each(t,function(e,t){if(r._isChangeMutation(e,t)){n=true;return false}})}return n};u.prototype._syncSubtree=function(e,t){var n=this._isChangeMutation(e,t);var r=this;if(n){this.dataAdapter.current(function(e){r.trigger("selection:update",{data:e})})}};u.prototype.trigger=function(e,t){var n=u.__super__.trigger;var r={open:"opening",close:"closing",select:"selecting",unselect:"unselecting",clear:"clearing"};if(t===undefined){t={}}if(e in r){var i=r[e];var s={prevented:false,name:e,args:t};n.call(this,i,s);if(s.prevented){t.prevented=true;return}}n.call(this,e,t)};u.prototype.toggleDropdown=function(){if(this.isDisabled()){return}if(this.isOpen()){this.close()}else{this.open()}};u.prototype.open=function(){if(this.isOpen()){return}if(this.isDisabled()){return}this.trigger("query",{})};u.prototype.close=function(e){if(!this.isOpen()){return}this.trigger("close",{originalEvent:e})};u.prototype.isEnabled=function(){return!this.isDisabled()};u.prototype.isDisabled=function(){return this.options.get("disabled")};u.prototype.isOpen=function(){return this.$container.hasClass("select2-container--open")};u.prototype.hasFocus=function(){return this.$container.hasClass("select2-container--focus")};u.prototype.focus=function(e){if(this.hasFocus()){return}this.$container.addClass("select2-container--focus");this.trigger("focus",{})};u.prototype.enable=function(e){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(e==null||e.length===0){e=[true]}var t=!e[0];this.$element.prop("disabled",t)};u.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 t=[];this.dataAdapter.current(function(e){t=e});return t};u.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.")}if(e==null||e.length===0){return this.$element.val()}var t=e[0];if(o.isArray(t)){t=o.map(t,function(e){return e.toString()})}this.$element.val(t).trigger("input").trigger("change")};u.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};u.prototype.render=function(){var e=o('<span class="select2 select2-container">'+'<span class="selection"></span>'+'<span class="dropdown-wrapper" aria-hidden="true"></span>'+"</span>");e.attr("dir",this.options.get("dir"));this.$container=e;this.$container.addClass("select2-container--"+this.options.get("theme"));e.data("element",this.$element);return e};return u});t.define("jquery-mousewheel",["jquery"],function(e){return e});t.define("jquery.select2",["jquery","jquery-mousewheel","./select2/core","./select2/defaults"],function(i,e,s,t){if(i.fn.select2==null){var o=["open","close","destroy"];i.fn.select2=function(n){n=n||{};if(typeof n==="object"){this.each(function(){var e=i.extend(true,{},n);var t=new s(i(this),e)});return this}else if(typeof n==="string"){var t;var r=Array.prototype.slice.call(arguments,1);this.each(function(){var e=i(this).data("select2");if(e==null&&window.console&&console.error){console.error("The select2('"+n+"') method was called on an "+"element that is not using Select2.")}t=e[n].apply(e,r)});if(i.inArray(n,o)>-1){return this}return t}else{throw new Error("Invalid arguments for Select2: "+n)}}}if(i.fn.select2.defaults==null){i.fn.select2.defaults=t}return s});return{define:t.define,require:t.require}}();var t=e.require("jquery.select2");n.fn.select2.amd=e;return t});