{"version":3,"names":[],"mappings":"","sources":["select2.full.min.js"],"sourcesContent":["!function(e){\"function\"==typeof define&&define.amd?define([\"jquery\"],e):e(\"object\"==typeof exports?require(\"jquery\"):jQuery)}(function(e){var t=function(){if(e&&e.fn&&e.fn.select2&&e.fn.select2.amd)var t=e.fn.select2.amd;var n;return function(){var e,n,i;t&&t.requirejs||(t?n=t:t={},function(t){function o(e,t){return w.call(e,t)}function r(e,t){var n,i,o,r,s,a,l,c,u,d,p,h=t&&t.split(\"/\"),f=v.map,g=f&&f[\"*\"]||{};if(e&&\".\"===e.charAt(0))if(t){for(h=h.slice(0,h.length-1),s=(e=e.split(\"/\")).length-1,v.nodeIdCompat&&$.test(e[s])&&(e[s]=e[s].replace($,\"\")),e=h.concat(e),u=0;u0&&(e.splice(u-1,2),u-=2)}e=e.join(\"/\")}else 0===e.indexOf(\"./\")&&(e=e.substring(2));if((h||g)&&f){for(u=(n=e.split(\"/\")).length;u>0;u-=1){if(i=n.slice(0,u).join(\"/\"),h)for(d=h.length;d>0;d-=1)if((o=f[h.slice(0,d).join(\"/\")])&&(o=o[i])){r=o,a=u;break}if(r)break;!l&&g&&g[i]&&(l=g[i],c=u)}!r&&l&&(r=l,a=c),r&&(n.splice(0,a,r),e=n.join(\"/\"))}return e}function s(e,n){return function(){return p.apply(t,_.call(arguments,0).concat([e,n]))}}function a(e){return function(t){g[e]=t}}function l(e){if(o(m,e)){var n=m[e];delete m[e],y[e]=!0,d.apply(t,n)}if(!o(g,e)&&!o(y,e))throw new Error(\"No \"+e);return g[e]}function c(e){var t,n=e?e.indexOf(\"!\"):-1;return n>-1&&(t=e.substring(0,n),e=e.substring(n+1,e.length)),[t,e]}function u(e){return function(){return v&&v.config&&v.config[e]||{}}}var d,p,h,f,g={},m={},v={},y={},w=Object.prototype.hasOwnProperty,_=[].slice,$=/\\.js$/;h=function(e,t){var n,i=c(e),o=i[0];return e=i[1],o&&(n=l(o=r(o,t))),o?e=n&&n.normalize?n.normalize(e,function(e){return function(t){return r(t,e)}}(t)):r(e,t):(o=(i=c(e=r(e,t)))[0],e=i[1],o&&(n=l(o))),{f:o?o+\"!\"+e:e,n:e,pr:o,p:n}},f={require:function(e){return s(e)},exports:function(e){var t=g[e];return void 0!==t?t:g[e]={}},module:function(e){return{id:e,uri:\"\",exports:g[e],config:u(e)}}},d=function(e,n,i,r){var c,u,d,p,v,w,_=[],$=typeof i;if(r=r||e,\"undefined\"===$||\"function\"===$){for(n=!n.length&&i.length?[\"require\",\"exports\",\"module\"]:n,v=0;v0&&(t.call(arguments,e.prototype.constructor),o=n.prototype.constructor),o.apply(this,arguments)}var o=t(n),r=t(e);n.displayName=e.displayName,i.prototype=new function(){this.constructor=i};for(var s=0;sn;n++)e[n].apply(this,t)},n.Observable=i,n.generateChars=function(e){for(var t=\"\",n=0;e>n;n++){t+=Math.floor(36*Math.random()).toString(36)}return t},n.bind=function(e,t){return function(){e.apply(t,arguments)}},n._convertData=function(e){for(var t in e){var n=t.split(\"-\"),i=e;if(1!==n.length){for(var o=0;o\":\">\",'\"':\""\",\"'\":\"'\",\"/\":\"/\"};return\"string\"!=typeof e?e:String(e).replace(/[&<>\"'\\/\\\\]/g,function(e){return t[e]})},n.appendMany=function(t,n){if(\"1.7\"===e.fn.jquery.substr(0,3)){var i=e();e.map(n,function(e){i=i.add(e)}),n=i}t.append(n)},n}),t.define(\"select2/results\",[\"jquery\",\"./utils\"],function(e,t){function n(e,t,i){this.$element=e,this.data=i,this.options=t,n.__super__.constructor.call(this)}return t.Extend(n,t.Observable),n.prototype.render=function(){var t=e('
    ');return this.options.get(\"multiple\")&&t.attr(\"aria-multiselectable\",\"true\"),this.$results=t,t},n.prototype.clear=function(){this.$results.empty()},n.prototype.displayMessage=function(t){var n=this.options.get(\"escapeMarkup\");this.clear(),this.hideLoading();var i=e('
  • '),o=this.options.get(\"translations\").get(t.message);i.append(n(o(t.args))),this.$results.append(i)},n.prototype.append=function(e){this.hideLoading();var t=[];if(null!=e.results&&0!==e.results.length){e.results=this.sort(e.results);for(var n=0;n-1?t.attr(\"aria-selected\",\"true\"):t.attr(\"aria-selected\",\"false\")});var r=o.filter(\"[aria-selected=true]\");r.length>0?r.first().trigger(\"mouseenter\"):o.first().trigger(\"mouseenter\")})},n.prototype.showLoading=function(e){this.hideLoading();var t={disabled:!0,loading:!0,text:this.options.get(\"translations\").get(\"searching\")(e)},n=this.option(t);n.className+=\" loading-results\",this.$results.prepend(n)},n.prototype.hideLoading=function(){this.$results.find(\".loading-results\").remove()},n.prototype.option=function(t){var n=document.createElement(\"li\");n.className=\"select2-results__option\";var i={role:\"treeitem\",\"aria-selected\":\"false\"};for(var o in t.disabled&&(delete i[\"aria-selected\"],i[\"aria-disabled\"]=\"true\"),null==t.id&&delete i[\"aria-selected\"],null!=t._resultId&&(n.id=t._resultId),t.title&&(n.title=t.title),t.children&&(i.role=\"group\",i[\"aria-label\"]=t.text,delete i[\"aria-selected\"]),i){var r=i[o];n.setAttribute(o,r)}if(t.children){var s=e(n),a=document.createElement(\"strong\");a.className=\"select2-results__group\",e(a),this.template(t,a);for(var l=[],c=0;c\",{class:\"select2-results__options select2-results__options--nested\"});p.append(l),s.append(a),s.append(p)}else this.template(t,n);return e.data(n,\"data\",t),n},n.prototype.bind=function(t){var n=this,i=t.id+\"-results\";this.$results.attr(\"id\",i),t.on(\"results:all\",function(e){n.clear(),n.append(e.data),t.isOpen()&&n.setClasses()}),t.on(\"results:append\",function(e){n.append(e.data),t.isOpen()&&n.setClasses()}),t.on(\"query\",function(e){n.showLoading(e)}),t.on(\"select\",function(){t.isOpen()&&n.setClasses()}),t.on(\"unselect\",function(){t.isOpen()&&n.setClasses()}),t.on(\"open\",function(){n.$results.attr(\"aria-expanded\",\"true\"),n.$results.attr(\"aria-hidden\",\"false\"),n.setClasses(),n.ensureHighlightVisible()}),t.on(\"close\",function(){n.$results.attr(\"aria-expanded\",\"false\"),n.$results.attr(\"aria-hidden\",\"true\"),n.$results.removeAttr(\"aria-activedescendant\")}),t.on(\"results:toggle\",function(){var e=n.getHighlightedResults();0!==e.length&&e.trigger(\"mouseup\")}),t.on(\"results:select\",function(){var e=n.getHighlightedResults();if(0!==e.length){var t=e.data(\"data\");\"true\"==e.attr(\"aria-selected\")?n.trigger(\"close\"):n.trigger(\"select\",{data:t})}}),t.on(\"results:previous\",function(){var e=n.getHighlightedResults(),t=n.$results.find(\"[aria-selected]\"),i=t.index(e);if(0!==i){var o=i-1;0===e.length&&(o=0);var r=t.eq(o);r.trigger(\"mouseenter\");var s=n.$results.offset().top,a=r.offset().top,l=n.$results.scrollTop()+(a-s);0===o?n.$results.scrollTop(0):0>a-s&&n.$results.scrollTop(l)}}),t.on(\"results:next\",function(){var e=n.getHighlightedResults(),t=n.$results.find(\"[aria-selected]\"),i=t.index(e)+1;if(!(i>=t.length)){var o=t.eq(i);o.trigger(\"mouseenter\");var r=n.$results.offset().top+n.$results.outerHeight(!1),s=o.offset().top+o.outerHeight(!1),a=n.$results.scrollTop()+s-r;0===i?n.$results.scrollTop(0):s>r&&n.$results.scrollTop(a)}}),t.on(\"results:focus\",function(e){e.element.addClass(\"select2-results__option--highlighted\")}),t.on(\"results:message\",function(e){n.displayMessage(e)}),e.fn.mousewheel&&this.$results.on(\"mousewheel\",function(e){var t=n.$results.scrollTop(),i=n.$results.get(0).scrollHeight-n.$results.scrollTop()+e.deltaY,o=e.deltaY>0&&t-e.deltaY<=0,r=e.deltaY<0&&i<=n.$results.height();o?(n.$results.scrollTop(0),e.preventDefault(),e.stopPropagation()):r&&(n.$results.scrollTop(n.$results.get(0).scrollHeight-n.$results.height()),e.preventDefault(),e.stopPropagation())}),this.$results.on(\"mouseup\",\".select2-results__option[aria-selected]\",function(t){var i=e(this),o=i.data(\"data\");return\"true\"===i.attr(\"aria-selected\")?void(n.options.get(\"multiple\")?n.trigger(\"unselect\",{originalEvent:t,data:o}):n.trigger(\"close\")):void n.trigger(\"select\",{originalEvent:t,data:o})}),this.$results.on(\"mouseenter\",\".select2-results__option[aria-selected]\",function(){var t=e(this).data(\"data\");n.getHighlightedResults().removeClass(\"select2-results__option--highlighted\"),n.trigger(\"results:focus\",{data:t,element:e(this)})})},n.prototype.getHighlightedResults=function(){return this.$results.find(\".select2-results__option--highlighted\")},n.prototype.destroy=function(){this.$results.remove()},n.prototype.ensureHighlightVisible=function(){var e=this.getHighlightedResults();if(0!==e.length){var t=this.$results.find(\"[aria-selected]\").index(e),n=this.$results.offset().top,i=e.offset().top,o=this.$results.scrollTop()+(i-n),r=i-n;o-=2*e.outerHeight(!1),2>=t?this.$results.scrollTop(0):(r>this.$results.outerHeight()||0>r)&&this.$results.scrollTop(o)}},n.prototype.template=function(t,n){var i=this.options.get(\"templateResult\"),o=this.options.get(\"escapeMarkup\"),r=i(t);null==r?n.style.display=\"none\":\"string\"==typeof r?n.innerHTML=o(r):e(n).append(r)},n}),t.define(\"select2/keys\",[],function(){return{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}}),t.define(\"select2/selection/base\",[\"jquery\",\"../utils\",\"../keys\"],function(e,t,n){function i(e,t){this.$element=e,this.options=t,i.__super__.constructor.call(this)}return t.Extend(i,t.Observable),i.prototype.render=function(){var t=e('');return this._tabindex=0,null!=this.$element.data(\"old-tabindex\")?this._tabindex=this.$element.data(\"old-tabindex\"):null!=this.$element.attr(\"tabindex\")&&(this._tabindex=this.$element.attr(\"tabindex\")),t.attr(\"title\",this.$element.attr(\"title\")),t.attr(\"tabindex\",this._tabindex),this.$selection=t,t},i.prototype.bind=function(e){var t=this,i=(e.id,e.id+\"-results\");this.container=e,this.$selection.on(\"focus\",function(e){t.trigger(\"focus\",e)}),this.$selection.on(\"blur\",function(e){t.trigger(\"blur\",e)}),this.$selection.on(\"keydown\",function(e){t.trigger(\"keypress\",e),e.which===n.SPACE&&e.preventDefault()}),e.on(\"results:focus\",function(e){t.$selection.attr(\"aria-activedescendant\",e.data._resultId)}),e.on(\"selection:update\",function(e){t.update(e.data)}),e.on(\"open\",function(){t.$selection.attr(\"aria-expanded\",\"true\"),t.$selection.attr(\"aria-owns\",i),t._attachCloseHandler(e)}),e.on(\"close\",function(){t.$selection.attr(\"aria-expanded\",\"false\"),t.$selection.removeAttr(\"aria-activedescendant\"),t.$selection.removeAttr(\"aria-owns\"),t.$selection.focus(),t._detachCloseHandler(e)}),e.on(\"enable\",function(){t.$selection.attr(\"tabindex\",t._tabindex)}),e.on(\"disable\",function(){t.$selection.attr(\"tabindex\",\"-1\")})},i.prototype._attachCloseHandler=function(t){e(document.body).on(\"mousedown.select2.\"+t.id,function(t){var n=e(t.target).closest(\".select2\");e(\".select2.select2-container--open\").each(function(){var t=e(this);this!=n[0]&&t.data(\"element\").select2(\"close\")})})},i.prototype._detachCloseHandler=function(t){e(document.body).off(\"mousedown.select2.\"+t.id)},i.prototype.position=function(e,t){t.find(\".selection\").append(e)},i.prototype.destroy=function(){this._detachCloseHandler(this.container)},i.prototype.update=function(){throw new Error(\"The `update` method must be defined in child classes.\")},i}),t.define(\"select2/selection/single\",[\"jquery\",\"./base\",\"../utils\",\"../keys\"],function(e,t,n){function i(){i.__super__.constructor.apply(this,arguments)}return n.Extend(i,t),i.prototype.render=function(){var e=i.__super__.render.call(this);return e.addClass(\"select2-selection--single\"),e.html(''),e},i.prototype.bind=function(e){var t=this;i.__super__.bind.apply(this,arguments);var n=e.id+\"-container\";this.$selection.find(\".select2-selection__rendered\").attr(\"id\",n),this.$selection.attr(\"aria-labelledby\",n),this.$selection.on(\"mousedown\",function(e){1===e.which&&t.trigger(\"toggle\",{originalEvent:e})}),this.$selection.on(\"focus\",function(){}),this.$selection.on(\"blur\",function(){}),e.on(\"selection:update\",function(e){t.update(e.data)})},i.prototype.clear=function(){this.$selection.find(\".select2-selection__rendered\").empty()},i.prototype.display=function(e){var t=this.options.get(\"templateSelection\");return this.options.get(\"escapeMarkup\")(t(e))},i.prototype.selectionContainer=function(){return e(\"\")},i.prototype.update=function(e){if(0!==e.length){var t=e[0],n=this.display(t),i=this.$selection.find(\".select2-selection__rendered\");i.empty().append(n),i.prop(\"title\",t.title||t.text)}else this.clear()},i}),t.define(\"select2/selection/multiple\",[\"jquery\",\"./base\",\"../utils\"],function(e,t,n){function i(){i.__super__.constructor.apply(this,arguments)}return n.Extend(i,t),i.prototype.render=function(){var e=i.__super__.render.call(this);return e.addClass(\"select2-selection--multiple\"),e.html('
      '),e},i.prototype.bind=function(){var t=this;i.__super__.bind.apply(this,arguments),this.$selection.on(\"click\",function(e){t.trigger(\"toggle\",{originalEvent:e})}),this.$selection.on(\"click\",\".select2-selection__choice__remove\",function(n){var i=e(this).parent().data(\"data\");t.trigger(\"unselect\",{originalEvent:n,data:i})})},i.prototype.clear=function(){this.$selection.find(\".select2-selection__rendered\").empty()},i.prototype.display=function(e){var t=this.options.get(\"templateSelection\");return this.options.get(\"escapeMarkup\")(t(e))},i.prototype.selectionContainer=function(){return e('
    • ×
    • ')},i.prototype.update=function(e){if(this.clear(),0!==e.length){for(var t=[],i=0;i1||n)return e.call(this,t);this.clear();var i=this.createPlaceholder(this.placeholder);this.$selection.find(\".select2-selection__rendered\").append(i)},e}),t.define(\"select2/selection/allowClear\",[\"jquery\",\"../keys\"],function(e,t){function n(){}return n.prototype.bind=function(e,t,n){var i=this;e.call(this,t,n),null==this.placeholder&&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){i._handleClear(e)}),t.on(\"keypress\",function(e){i._handleKeyboardClear(e,t)})},n.prototype._handleClear=function(e,t){if(!this.options.get(\"disabled\")){var n=this.$selection.find(\".select2-selection__clear\");if(0!==n.length){t.stopPropagation();for(var i=n.data(\"data\"),o=0;o0||0===n.length)){var i=e('×');i.data(\"data\",n),this.$selection.find(\".select2-selection__rendered\").prepend(i)}},n}),t.define(\"select2/selection/search\",[\"jquery\",\"../utils\",\"../keys\"],function(e,t,n){function i(e,t,n){e.call(this,t,n)}return i.prototype.render=function(t){var n=e('');return this.$searchContainer=n,this.$search=n.find(\"input\"),t.call(this)},i.prototype.bind=function(e,t,i){var o=this;e.call(this,t,i),t.on(\"open\",function(){o.$search.attr(\"tabindex\",0),o.$search.focus()}),t.on(\"close\",function(){o.$search.attr(\"tabindex\",-1),o.$search.val(\"\"),o.$search.focus()}),t.on(\"enable\",function(){o.$search.prop(\"disabled\",!1)}),t.on(\"disable\",function(){o.$search.prop(\"disabled\",!0)}),this.$selection.on(\"focusin\",\".select2-search--inline\",function(e){o.trigger(\"focus\",e)}),this.$selection.on(\"focusout\",\".select2-search--inline\",function(e){o.trigger(\"blur\",e)}),this.$selection.on(\"keydown\",\".select2-search--inline\",function(e){if(e.stopPropagation(),o.trigger(\"keypress\",e),o._keyUpPrevented=e.isDefaultPrevented(),e.which===n.BACKSPACE&&\"\"===o.$search.val()){var t=o.$searchContainer.prev(\".select2-selection__choice\");if(t.length>0){var i=t.data(\"data\");o.searchRemoveChoice(i),e.preventDefault()}}}),this.$selection.on(\"input\",\".select2-search--inline\",function(){o.$selection.off(\"keyup.search\")}),this.$selection.on(\"keyup.search input\",\".select2-search--inline\",function(e){o.handleSearch(e)})},i.prototype.createPlaceholder=function(e,t){this.$search.attr(\"placeholder\",t.text)},i.prototype.update=function(e,t){this.$search.attr(\"placeholder\",\"\"),e.call(this,t),this.$selection.find(\".select2-selection__rendered\").append(this.$searchContainer),this.resizeSearch()},i.prototype.handleSearch=function(){if(this.resizeSearch(),!this._keyUpPrevented){var e=this.$search.val();this.trigger(\"query\",{term:e})}this._keyUpPrevented=!1},i.prototype.searchRemoveChoice=function(e,t){this.trigger(\"unselect\",{data:t}),this.trigger(\"open\"),this.$search.val(t.text+\" \")},i.prototype.resizeSearch=function(){this.$search.css(\"width\",\"25px\");var e=\"\";\"\"!==this.$search.attr(\"placeholder\")?e=this.$selection.find(\".select2-selection__rendered\").innerWidth():e=.75*(this.$search.val().length+1)+\"em\";this.$search.css(\"width\",e)},i}),t.define(\"select2/selection/eventRelay\",[\"jquery\"],function(e){function t(){}return t.prototype.bind=function(t,n,i){var o=this,r=[\"open\",\"opening\",\"close\",\"closing\",\"select\",\"selecting\",\"unselect\",\"unselecting\"],s=[\"opening\",\"closing\",\"selecting\",\"unselecting\"];t.call(this,n,i),n.on(\"*\",function(t,n){if(-1!==e.inArray(t,r)){n=n||{};var i=e.Event(\"select2:\"+t,{params:n});o.$element.trigger(i),-1!==e.inArray(t,s)&&(n.prevented=i.isDefaultPrevented())}})},t}),t.define(\"select2/translation\",[\"jquery\",\"require\"],function(e,t){function n(e){this.dict=e||{}}return n.prototype.all=function(){return this.dict},n.prototype.get=function(e){return this.dict[e]},n.prototype.extend=function(t){this.dict=e.extend({},t.all(),this.dict)},n._cache={},n.loadPath=function(e){if(!(e in n._cache)){var i=t(e);n._cache[e]=i}return new n(n._cache[e])},n}),t.define(\"select2/diacritics\",[],function(){return{\"Ⓐ\":\"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\",\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ί\":\"Ι\",\"Ϊ\":\"Ι\",\"Ό\":\"Ο\",\"Ύ\":\"Υ\",\"Ϋ\":\"Υ\",\"Ώ\":\"Ω\",\"ά\":\"α\",\"έ\":\"ε\",\"ή\":\"η\",\"ί\":\"ι\",\"ϊ\":\"ι\",\"ΐ\":\"ι\",\"ό\":\"ο\",\"ύ\":\"υ\",\"ϋ\":\"υ\",\"ΰ\":\"υ\",\"ω\":\"ω\",\"ς\":\"σ\"}}),t.define(\"select2/data/base\",[\"../utils\"],function(e){function t(){t.__super__.constructor.call(this)}return e.Extend(t,e.Observable),t.prototype.current=function(){throw new Error(\"The `current` method must be defined in child classes.\")},t.prototype.query=function(){throw new Error(\"The `query` method must be defined in child classes.\")},t.prototype.bind=function(){},t.prototype.destroy=function(){},t.prototype.generateResultId=function(t,n){var i=t.id+\"-result-\";return(i+=e.generateChars(4))+(null!=n.id?\"-\"+n.id.toString():\"-\"+e.generateChars(4))},t}),t.define(\"select2/data/select\",[\"./base\",\"../utils\",\"jquery\"],function(e,t,n){function i(e,t){this.$element=e,this.options=t,i.__super__.constructor.call(this)}return t.Extend(i,e),i.prototype.current=function(e){var t=[],i=this;this.$element.find(\":selected\").each(function(){var e=n(this),o=i.item(e);t.push(o)}),e(t)},i.prototype.select=function(e){var t=this;if(e.selected=!0,n(e.element).is(\"option\"))return e.element.selected=!0,void this.$element.trigger(\"change\");if(this.$element.prop(\"multiple\"))this.current(function(i){var o=[];(e=[e]).push.apply(e,i);for(var r=0;r=0){var u=r.filter(i(c)),d=this.item(u),p=(n.extend(!0,{},d,c),this.option(d));u.replaceWith(p)}else{var h=this.option(c);if(c.children){var f=this.convertToOptions(c.children);t.appendMany(h,f)}a.push(h)}}return a},i}),t.define(\"select2/data/ajax\",[\"./array\",\"../utils\",\"jquery\"],function(e,t,n){function i(t,n){this.ajaxOptions=this._applyDefaults(n.get(\"ajax\")),null!=this.ajaxOptions.processResults&&(this.processResults=this.ajaxOptions.processResults),e.__super__.constructor.call(this,t,n)}return t.Extend(i,e),i.prototype._applyDefaults=function(e){var t={data:function(e){return{q:e.term}},transport:function(e,t,i){var o=n.ajax(e);return o.then(t),o.fail(i),o}};return n.extend({},t,e,!0)},i.prototype.processResults=function(e){return e},i.prototype.query=function(e,t){function i(){var i=r.transport(r,function(i){var r=o.processResults(i,e);o.options.get(\"debug\")&&window.console&&console.error&&(r&&r.results&&n.isArray(r.results)||console.error(\"Select2: The AJAX results did not return an array in the `results` key of the response.\")),t(r)},function(){});o._request=i}var o=this;null!=this._request&&(n.isFunction(this._request.abort)&&this._request.abort(),this._request=null);var r=n.extend({type:\"GET\"},this.ajaxOptions);\"function\"==typeof r.url&&(r.url=r.url(e)),\"function\"==typeof r.data&&(r.data=r.data(e)),this.ajaxOptions.delay&&\"\"!==e.term?(this._queryTimeout&&window.clearTimeout(this._queryTimeout),this._queryTimeout=window.setTimeout(i,this.ajaxOptions.delay)):i()},i}),t.define(\"select2/data/tags\",[\"jquery\"],function(e){function t(t,n,i){var o=i.get(\"tags\"),r=i.get(\"createTag\");if(void 0!==r&&(this.createTag=r),t.call(this,n,i),e.isArray(o))for(var s=0;s0&&t.term.length>this.maximumInputLength?void this.trigger(\"results:message\",{message:\"inputTooLong\",args:{maximum:this.maximumInputLength,input:t.term,params:t}}):void e.call(this,t,n)},e}),t.define(\"select2/data/maximumSelectionLength\",[],function(){function e(e,t,n){this.maximumSelectionLength=n.get(\"maximumSelectionLength\"),e.call(this,t,n)}return e.prototype.query=function(e,t,n){var i=this;this.current(function(o){var r=null!=o?o.length:0;return i.maximumSelectionLength>0&&r>=i.maximumSelectionLength?void i.trigger(\"results:message\",{message:\"maximumSelected\",args:{maximum:i.maximumSelectionLength}}):void e.call(i,t,n)})},e}),t.define(\"select2/dropdown\",[\"jquery\",\"./utils\"],function(e,t){function n(e,t){this.$element=e,this.options=t,n.__super__.constructor.call(this)}return t.Extend(n,t.Observable),n.prototype.render=function(){var t=e('');return t.attr(\"dir\",this.options.get(\"dir\")),this.$dropdown=t,t},n.prototype.position=function(){},n.prototype.destroy=function(){this.$dropdown.remove()},n}),t.define(\"select2/dropdown/search\",[\"jquery\",\"../utils\"],function(e){function t(){}return t.prototype.render=function(t){var n=t.call(this),i=e('');return this.$searchContainer=i,this.$search=i.find(\"input\"),n.prepend(i),n},t.prototype.bind=function(t,n,i){var o=this;t.call(this,n,i),this.$search.on(\"keydown\",function(e){o.trigger(\"keypress\",e),o._keyUpPrevented=e.isDefaultPrevented()}),this.$search.on(\"input\",function(){e(this).off(\"keyup\")}),this.$search.on(\"keyup input\",function(e){o.handleSearch(e)}),n.on(\"open\",function(){o.$search.attr(\"tabindex\",0),o.$search.focus(),window.setTimeout(function(){o.$search.focus()},0)}),n.on(\"close\",function(){o.$search.attr(\"tabindex\",-1),o.$search.val(\"\")}),n.on(\"results:all\",function(e){null!=e.query.term&&\"\"!==e.query.term||(o.showSearch(e)?o.$searchContainer.removeClass(\"select2-search--hide\"):o.$searchContainer.addClass(\"select2-search--hide\"))})},t.prototype.handleSearch=function(){if(!this._keyUpPrevented){var e=this.$search.val();this.trigger(\"query\",{term:e})}this._keyUpPrevented=!1},t.prototype.showSearch=function(){return!0},t}),t.define(\"select2/dropdown/hidePlaceholder\",[],function(){function e(e,t,n,i){this.placeholder=this.normalizePlaceholder(n.get(\"placeholder\")),e.call(this,t,n,i)}return e.prototype.append=function(e,t){t.results=this.removePlaceholder(t.results),e.call(this,t)},e.prototype.normalizePlaceholder=function(e,t){return\"string\"==typeof t&&(t={id:\"\",text:t}),t},e.prototype.removePlaceholder=function(e,t){for(var n=t.slice(0),i=t.length-1;i>=0;i--){var o=t[i];this.placeholder.id===o.id&&n.splice(i,1)}return n},e}),t.define(\"select2/dropdown/infiniteScroll\",[\"jquery\"],function(e){function t(e,t,n,i){this.lastParams={},e.call(this,t,n,i),this.$loadingMore=this.createLoadingMore(),this.loading=!1}return t.prototype.append=function(e,t){this.$loadingMore.remove(),this.loading=!1,e.call(this,t),this.showLoadingMore(t)&&this.$results.append(this.$loadingMore)},t.prototype.bind=function(t,n,i){var o=this;t.call(this,n,i),n.on(\"query\",function(e){o.lastParams=e,o.loading=!0}),n.on(\"query:append\",function(e){o.lastParams=e,o.loading=!0}),this.$results.on(\"scroll\",function(){var t=e.contains(document.documentElement,o.$loadingMore[0]);!o.loading&&t&&(o.$results.offset().top+o.$results.outerHeight(!1)+50>=o.$loadingMore.offset().top+o.$loadingMore.outerHeight(!1)&&o.loadMore())})},t.prototype.loadMore=function(){this.loading=!0;var t=e.extend({},{page:1},this.lastParams);t.page++,this.trigger(\"query:append\",t)},t.prototype.showLoadingMore=function(e,t){return t.pagination&&t.pagination.more},t.prototype.createLoadingMore=function(){var t=e('
    • '),n=this.options.get(\"translations\").get(\"loadingMore\");return t.html(n(this.lastParams)),t},t}),t.define(\"select2/dropdown/attachBody\",[\"jquery\",\"../utils\"],function(e,t){function n(e,t,n){this.$dropdownParent=n.get(\"dropdownParent\")||document.body,e.call(this,t,n)}return n.prototype.bind=function(e,t,n){var i=this,o=!1;e.call(this,t,n),t.on(\"open\",function(){i._showDropdown(),i._attachPositioningHandler(t),o||(o=!0,t.on(\"results:all\",function(){i._positionDropdown(),i._resizeDropdown()}),t.on(\"results:append\",function(){i._positionDropdown(),i._resizeDropdown()}))}),t.on(\"close\",function(){i._hideDropdown(),i._detachPositioningHandler(t)}),this.$dropdownContainer.on(\"mousedown\",function(e){e.stopPropagation()})},n.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},n.prototype.render=function(t){var n=e(\"\"),i=t.call(this);return n.append(i),this.$dropdownContainer=n,n},n.prototype._hideDropdown=function(){this.$dropdownContainer.detach()},n.prototype._attachPositioningHandler=function(n){var i=this,o=\"scroll.select2.\"+n.id,r=\"resize.select2.\"+n.id,s=\"orientationchange.select2.\"+n.id,a=this.$container.parents().filter(t.hasScroll);a.each(function(){e(this).data(\"select2-scroll-position\",{x:e(this).scrollLeft(),y:e(this).scrollTop()})}),a.on(o,function(){var t=e(this).data(\"select2-scroll-position\");e(this).scrollTop(t.y)}),e(window).on(o+\" \"+r+\" \"+s,function(){i._positionDropdown(),i._resizeDropdown()})},n.prototype._detachPositioningHandler=function(n){var i=\"scroll.select2.\"+n.id,o=\"resize.select2.\"+n.id,r=\"orientationchange.select2.\"+n.id;this.$container.parents().filter(t.hasScroll).off(i),e(window).off(i+\" \"+o+\" \"+r)},n.prototype._positionDropdown=function(){var t=e(window),n=this.$dropdown.hasClass(\"select2-dropdown--above\"),i=this.$dropdown.hasClass(\"select2-dropdown--below\"),o=null,r=(this.$container.position(),this.$container.offset());r.bottom=r.top+this.$container.outerHeight(!1);var s={height:this.$container.outerHeight(!1)};s.top=r.top,s.bottom=r.top+s.height;var a=this.$dropdown.outerHeight(!1),l=t.scrollTop(),c=t.scrollTop()+t.height(),u=lr.bottom+a,p={left:r.left,top:s.bottom};n||i||(o=\"below\"),d||!u||n?!u&&d&&n&&(o=\"below\"):o=\"above\",(\"above\"==o||n&&\"below\"!==o)&&(p.top=s.top-a),null!=o&&(this.$dropdown.removeClass(\"select2-dropdown--below select2-dropdown--above\").addClass(\"select2-dropdown--\"+o),this.$container.removeClass(\"select2-container--below select2-container--above\").addClass(\"select2-container--\"+o)),this.$dropdownContainer.css(p)},n.prototype._resizeDropdown=function(){this.$dropdownContainer.width();var e={width:this.$container.outerWidth(!1)+\"px\"};this.options.get(\"dropdownAutoWidth\")&&(e.minWidth=e.width,e.width=\"auto\"),this.$dropdown.css(e)},n.prototype._showDropdown=function(){this.$dropdownContainer.appendTo(this.$dropdownParent),this._positionDropdown(),this._resizeDropdown()},n}),t.define(\"select2/dropdown/minimumResultsForSearch\",[],function(){function e(e,t,n,i){this.minimumResultsForSearch=n.get(\"minimumResultsForSearch\"),this.minimumResultsForSearch<0&&(this.minimumResultsForSearch=1/0),e.call(this,t,n,i)}return e.prototype.showSearch=function(e,t){return!(function e(t){for(var n=0,i=0;i0&&(d.dataAdapter=c.Decorate(d.dataAdapter,v)),d.maximumInputLength>0&&(d.dataAdapter=c.Decorate(d.dataAdapter,y)),d.maximumSelectionLength>0&&(d.dataAdapter=c.Decorate(d.dataAdapter,w)),d.tags&&(d.dataAdapter=c.Decorate(d.dataAdapter,g)),(null!=d.tokenSeparators||null!=d.tokenizer)&&(d.dataAdapter=c.Decorate(d.dataAdapter,m)),null!=d.query){var E=t(d.amdBase+\"compat/query\");d.dataAdapter=c.Decorate(d.dataAdapter,E)}if(null!=d.initSelection){var D=t(d.amdBase+\"compat/initSelection\");d.dataAdapter=c.Decorate(d.dataAdapter,D)}}if(null==d.resultsAdapter&&(d.resultsAdapter=n,null!=d.ajax&&(d.resultsAdapter=c.Decorate(d.resultsAdapter,x)),null!=d.placeholder&&(d.resultsAdapter=c.Decorate(d.resultsAdapter,b)),d.selectOnClose&&(d.resultsAdapter=c.Decorate(d.resultsAdapter,S))),null==d.dropdownAdapter){if(d.multiple)d.dropdownAdapter=_;else{var q=c.Decorate(_,$);d.dropdownAdapter=q}if(0!==d.minimumResultsForSearch&&(d.dropdownAdapter=c.Decorate(d.dropdownAdapter,C)),d.closeOnSelect&&(d.dropdownAdapter=c.Decorate(d.dropdownAdapter,O)),null!=d.dropdownCssClass||null!=d.dropdownCss||null!=d.adaptDropdownCssClass){var T=t(d.amdBase+\"compat/dropdownCss\");d.dropdownAdapter=c.Decorate(d.dropdownAdapter,T)}d.dropdownAdapter=c.Decorate(d.dropdownAdapter,A)}if(null==d.selectionAdapter){if(d.selectionAdapter=d.multiple?o:i,null!=d.placeholder&&(d.selectionAdapter=c.Decorate(d.selectionAdapter,r)),d.allowClear&&(d.selectionAdapter=c.Decorate(d.selectionAdapter,s)),d.multiple&&(d.selectionAdapter=c.Decorate(d.selectionAdapter,a)),null!=d.containerCssClass||null!=d.containerCss||null!=d.adaptContainerCssClass){var j=t(d.amdBase+\"compat/containerCss\");d.selectionAdapter=c.Decorate(d.selectionAdapter,j)}d.selectionAdapter=c.Decorate(d.selectionAdapter,l)}if(\"string\"==typeof d.language)if(d.language.indexOf(\"-\")>0){var k=d.language.split(\"-\")[0];d.language=[d.language,k]}else d.language=[d.language];if(e.isArray(d.language)){var L=new u;d.language.push(\"en\");for(var P=d.language,M=0;M0){for(var r=e.extend(!0,{},o),s=o.children.length-1;s>=0;s--)null==n(i,o.children[s])&&r.children.splice(s,1);return r.children.length>0?r:n(i,r)}var a=t(o.text).toUpperCase(),l=t(i.term).toUpperCase();return a.indexOf(l)>-1?o:null},minimumInputLength:0,maximumInputLength:0,maximumSelectionLength:0,minimumResultsForSearch:0,selectOnClose:!1,sorter:function(e){return e},templateResult:function(e){return e.text},templateSelection:function(e){return e.text},theme:\"default\",width:\"resolve\"}},D.prototype.set=function(t,n){var i={};i[e.camelCase(t)]=n;var o=c._convertData(i);e.extend(this.defaults,o)},new D}),t.define(\"select2/options\",[\"require\",\"jquery\",\"./defaults\",\"./utils\"],function(e,t,n,i){function o(t,o){if(this.options=t,null!=o&&this.fromElement(o),this.options=n.apply(this.options),o&&o.is(\"input\")){var r=e(this.get(\"amdBase\")+\"compat/inputData\");this.options.dataAdapter=i.Decorate(this.options.dataAdapter,r)}}return o.prototype.fromElement=function(e){var n=[\"select2\"];null==this.options.multiple&&(this.options.multiple=e.prop(\"multiple\")),null==this.options.disabled&&(this.options.disabled=e.prop(\"disabled\")),null==this.options.language&&(e.prop(\"lang\")?this.options.language=e.prop(\"lang\").toLowerCase():e.closest(\"[lang]\").prop(\"lang\")&&(this.options.language=e.closest(\"[lang]\").prop(\"lang\"))),null==this.options.dir&&(this.options.dir=e.prop(\"dir\")?e.prop(\"dir\"):e.closest(\"[dir]\").prop(\"dir\")?e.closest(\"[dir]\").prop(\"dir\"):\"ltr\"),e.prop(\"disabled\",this.options.disabled),e.prop(\"multiple\",this.options.multiple),e.data(\"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.'),e.data(\"data\",e.data(\"select2Tags\")),e.data(\"tags\",!0)),e.data(\"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.\"),e.attr(\"ajax--url\",e.data(\"ajaxUrl\")),e.data(\"ajax--url\",e.data(\"ajaxUrl\")));var o;o=t.fn.jquery&&\"1.\"==t.fn.jquery.substr(0,2)&&e[0].dataset?t.extend(!0,{},e[0].dataset,e.data()):e.data();var r=t.extend(!0,{},o);for(var s in r=i._convertData(r))t.inArray(s,n)>-1||(t.isPlainObject(this.options[s])?t.extend(this.options[s],r[s]):this.options[s]=r[s]);return this},o.prototype.get=function(e){return this.options[e]},o.prototype.set=function(e,t){this.options[e]=t},o}),t.define(\"select2/core\",[\"jquery\",\"./options\",\"./utils\",\"./keys\"],function(e,t,n,i){var o=function(e,n){null!=e.data(\"select2\")&&e.data(\"select2\").destroy(),this.$element=e,this.id=this._generateId(e),n=n||{},this.options=new t(n,e),o.__super__.constructor.call(this);var i=e.attr(\"tabindex\")||0;e.data(\"old-tabindex\",i),e.attr(\"tabindex\",\"-1\");var r=this.options.get(\"dataAdapter\");this.dataAdapter=new r(e,this.options);var s=this.render();this._placeContainer(s);var a=this.options.get(\"selectionAdapter\");this.selection=new a(e,this.options),this.$selection=this.selection.render(),this.selection.position(this.$selection,s);var l=this.options.get(\"dropdownAdapter\");this.dropdown=new l(e,this.options),this.$dropdown=this.dropdown.render(),this.dropdown.position(this.$dropdown,s);var c=this.options.get(\"resultsAdapter\");this.results=new c(e,this.options,this.dataAdapter),this.$results=this.results.render(),this.results.position(this.$results,this.$dropdown);var u=this;this._bindAdapters(),this._registerDomEvents(),this._registerDataEvents(),this._registerSelectionEvents(),this._registerDropdownEvents(),this._registerResultsEvents(),this._registerEvents(),this.dataAdapter.current(function(e){u.trigger(\"selection:update\",{data:e})}),e.addClass(\"select2-hidden-accessible\"),e.attr(\"aria-hidden\",\"true\"),this._syncAttributes(),e.data(\"select2\",this)};return n.Extend(o,n.Observable),o.prototype._generateId=function(e){return\"select2-\"+(null!=e.attr(\"id\")?e.attr(\"id\"):null!=e.attr(\"name\")?e.attr(\"name\")+\"-\"+n.generateChars(2):n.generateChars(4))},o.prototype._placeContainer=function(e){e.insertAfter(this.$element);var t=this._resolveWidth(this.$element,this.options.get(\"width\"));null!=t&&e.css(\"width\",t)},o.prototype._resolveWidth=function(e,t){var n=/^width:(([-+]?([0-9]*\\.)?[0-9]+)(px|em|ex|%|in|cm|mm|pt|pc))/i;if(\"resolve\"==t){var i=this._resolveWidth(e,\"style\");return null!=i?i:this._resolveWidth(e,\"element\")}if(\"element\"==t){var o=e.outerWidth(!1);return 0>=o?\"auto\":o+\"px\"}if(\"style\"==t){var r=e.attr(\"style\");if(\"string\"!=typeof r)return null;for(var s=r.split(\";\"),a=0,l=s.length;l>a;a+=1){var c=s[a].replace(/\\s/g,\"\").match(n);if(null!==c&&c.length>=1)return c[1]}return null}return t},o.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)},o.prototype._registerDomEvents=function(){var t=this;this.$element.on(\"change.select2\",function(){t.dataAdapter.current(function(e){t.trigger(\"selection:update\",{data:e})})}),this._sync=n.bind(this._syncAttributes,this),this.$element[0].attachEvent&&this.$element[0].attachEvent(\"onpropertychange\",this._sync);var i=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver;null!=i?(this._observer=new i(function(n){e.each(n,t._sync)}),this._observer.observe(this.$element[0],{attributes:!0,subtree:!1})):this.$element[0].addEventListener&&this.$element[0].addEventListener(\"DOMAttrModified\",t._sync,!1)},o.prototype._registerDataEvents=function(){var e=this;this.dataAdapter.on(\"*\",function(t,n){e.trigger(t,n)})},o.prototype._registerSelectionEvents=function(){var t=this,n=[\"toggle\"];this.selection.on(\"toggle\",function(){t.toggleDropdown()}),this.selection.on(\"*\",function(i,o){-1===e.inArray(i,n)&&t.trigger(i,o)})},o.prototype._registerDropdownEvents=function(){var e=this;this.dropdown.on(\"*\",function(t,n){e.trigger(t,n)})},o.prototype._registerResultsEvents=function(){var e=this;this.results.on(\"*\",function(t,n){e.trigger(t,n)})},o.prototype._registerEvents=function(){var e=this;this.on(\"open\",function(){e.$container.addClass(\"select2-container--open\")}),this.on(\"close\",function(){e.$container.removeClass(\"select2-container--open\")}),this.on(\"enable\",function(){e.$container.removeClass(\"select2-container--disabled\")}),this.on(\"disable\",function(){e.$container.addClass(\"select2-container--disabled\")}),this.on(\"focus\",function(){e.$container.addClass(\"select2-container--focus\")}),this.on(\"blur\",function(){e.$container.removeClass(\"select2-container--focus\")}),this.on(\"query\",function(t){e.isOpen()||e.trigger(\"open\"),this.dataAdapter.query(t,function(n){e.trigger(\"results:all\",{data:n,query:t})})}),this.on(\"query:append\",function(t){this.dataAdapter.query(t,function(n){e.trigger(\"results:append\",{data:n,query:t})})}),this.on(\"keypress\",function(t){var n=t.which;e.isOpen()?n===i.ENTER?(e.trigger(\"results:select\"),t.preventDefault()):n===i.SPACE&&t.ctrlKey?(e.trigger(\"results:toggle\"),t.preventDefault()):n===i.UP?(e.trigger(\"results:previous\"),t.preventDefault()):n===i.DOWN?(e.trigger(\"results:next\"),t.preventDefault()):(n===i.ESC||n===i.TAB)&&(e.close(),t.preventDefault()):(n===i.ENTER||n===i.SPACE||(n===i.DOWN||n===i.UP)&&t.altKey)&&(e.open(),t.preventDefault())})},o.prototype._syncAttributes=function(){this.options.set(\"disabled\",this.$element.prop(\"disabled\")),this.options.get(\"disabled\")?(this.isOpen()&&this.close(),this.trigger(\"disable\")):this.trigger(\"enable\")},o.prototype.trigger=function(e,t){var n=o.__super__.trigger,i={open:\"opening\",close:\"closing\",select:\"selecting\",unselect:\"unselecting\"};if(e in i){var r=i[e],s={prevented:!1,name:e,args:t};if(n.call(this,r,s),s.prevented)return void(t.prevented=!0)}n.call(this,e,t)},o.prototype.toggleDropdown=function(){this.options.get(\"disabled\")||(this.isOpen()?this.close():this.open())},o.prototype.open=function(){this.isOpen()||(this.trigger(\"query\",{}),this.trigger(\"open\"))},o.prototype.close=function(){this.isOpen()&&this.trigger(\"close\")},o.prototype.isOpen=function(){return this.$container.hasClass(\"select2-container--open\")},o.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.'),(null==e||0===e.length)&&(e=[!0]);var t=!e[0];this.$element.prop(\"disabled\",t)},o.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(t){e=t}),e},o.prototype.val=function(t){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.'),null==t||0===t.length)return this.$element.val();var n=t[0];e.isArray(n)&&(n=e.map(n,function(e){return e.toString()})),this.$element.val(n).trigger(\"change\")},o.prototype.destroy=function(){this.$container.remove(),this.$element[0].detachEvent&&this.$element[0].detachEvent(\"onpropertychange\",this._sync),null!=this._observer?(this._observer.disconnect(),this._observer=null):this.$element[0].removeEventListener&&this.$element[0].removeEventListener(\"DOMAttrModified\",this._sync,!1),this._sync=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},o.prototype.render=function(){var t=e('');return t.attr(\"dir\",this.options.get(\"dir\")),this.$container=t,this.$container.addClass(\"select2-container--\"+this.options.get(\"theme\")),t.data(\"element\",this.$element),t},o}),t.define(\"select2/compat/utils\",[\"jquery\"],function(e){return{syncCssClasses:function(t,n,i){var o,r,s=[];(o=e.trim(t.attr(\"class\")))&&e((o=\"\"+o).split(/\\s+/)).each(function(){0===this.indexOf(\"select2-\")&&s.push(this)}),(o=e.trim(n.attr(\"class\")))&&e((o=\"\"+o).split(/\\s+/)).each(function(){0!==this.indexOf(\"select2-\")&&null!=(r=i(this))&&s.push(r)}),t.attr(\"class\",s.join(\" \"))}}}),t.define(\"select2/compat/containerCss\",[\"jquery\",\"./utils\"],function(e,t){function n(){return null}function i(){}return i.prototype.render=function(i){var o=i.call(this),r=this.options.get(\"containerCssClass\")||\"\";e.isFunction(r)&&(r=r(this.$element));var s=this.options.get(\"adaptContainerCssClass\");if(s=s||n,-1!==r.indexOf(\":all:\")){r=r.replace(\":all\",\"\");var a=s;s=function(e){var t=a(e);return null!=t?t+\" \"+e:e}}var l=this.options.get(\"containerCss\")||{};return e.isFunction(l)&&(l=l(this.$element)),t.syncCssClasses(o,this.$element,s),o.css(l),o.addClass(r),o},i}),t.define(\"select2/compat/dropdownCss\",[\"jquery\",\"./utils\"],function(e,t){function n(){return null}function i(){}return i.prototype.render=function(i){var o=i.call(this),r=this.options.get(\"dropdownCssClass\")||\"\";e.isFunction(r)&&(r=r(this.$element));var s=this.options.get(\"adaptDropdownCssClass\");if(s=s||n,-1!==r.indexOf(\":all:\")){r=r.replace(\":all\",\"\");var a=s;s=function(e){var t=a(e);return null!=t?t+\" \"+e:e}}var l=this.options.get(\"dropdownCss\")||{};return e.isFunction(l)&&(l=l(this.$element)),t.syncCssClasses(o,this.$element,s),o.css(l),o.addClass(r),o},i}),t.define(\"select2/compat/initSelection\",[\"jquery\"],function(e){function t(e,t,n){n.get(\"debug\")&&window.console&&console.warn&&console.warn(\"Select2: The `initSelection` option has been deprecated in favor of a custom data adapter that overrides the `current` method. This method is now called multiple times instead of a single time when the instance is initialized. Support will be removed for the `initSelection` option in future versions of Select2\"),this.initSelection=n.get(\"initSelection\"),this._isInitialized=!1,e.call(this,t,n)}return t.prototype.current=function(t,n){var i=this;return this._isInitialized?void t.call(this,n):void this.initSelection.call(null,this.$element,function(t){i._isInitialized=!0,e.isArray(t)||(t=[t]),n(t)})},t}),t.define(\"select2/compat/inputData\",[\"jquery\"],function(e){function t(e,t,n){this._currentData=[],this._valueSeparator=n.get(\"valueSeparator\")||\",\",\"hidden\"===t.prop(\"type\")&&n.get(\"debug\")&&console&&console.warn&&console.warn(\"Select2: Using a hidden input with Select2 is no longer supported and may stop working in the future. It is recommended to use a `