/*! * SelectWoo 1.0.10 * https://github.com/woocommerce/selectWoo * * Released under the MIT license * https://github.com/woocommerce/selectWoo/blob/master/LICENSE.md */ !function(n){"function"==typeof define&&define.amd?define(["jquery"],n):"object"==typeof module&&module.exports?module.exports=function(e,t){return t===undefined&&(t="undefined"!=typeof window?require("jquery"):require("jquery")(e)),n(t),t}:n(jQuery)}(function(t){var e,n,p,s,r,h,f,g,m,y,v,i,o,w,a,a=((u=t&&t.fn&&t.fn.select2&&t.fn.select2.amd?t.fn.select2.amd:u)&&u.requirejs||(u?n=u:u={},g={},m={},y={},v={},i=Object.prototype.hasOwnProperty,o=[].slice,w=/\.js$/,h=function(e,t){var n,i,o=c(e),s=o[0],t=t[1];return e=o[1],s&&(n=x(s=l(s,t))),s?e=n&&n.normalize?n.normalize(e,(i=t,function(e){return l(e,i)})):l(e,t):(s=(o=c(e=l(e,t)))[0],e=o[1],s&&(n=x(s))),{f:s?s+"!"+e:e,n:e,pr:s,p:n}},f={require:function(e){return b(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:(t=e,function(){return y&&y.config&&y.config[t]||{}})};var t}},s=function(e,t,n,i){var o,s,r,a,l,c=[],u=typeof n,d=A(i=i||e);if("undefined"==u||"function"==u){for(t=!t.length&&n.length?["require","exports","module"]:t,a=0;a":">",'"':""","'":"'","/":"/"};return"string"!=typeof e?e:String(e).replace(/[&<>"'\/\\]/g,function(e){return t[e]})},e.entityDecode=function(e){var t=document.createElement("textarea");return t.innerHTML=e,t.value},e.appendMany=function(e,t){var n;"1.7"===s.fn.jquery.substr(0,3)&&(n=s(),s.map(t,function(e){n=n.add(e)}),t=n),e.append(t)},e.isTouchscreen=function(){return"undefined"==typeof e._isTouchscreenCache&&(e._isTouchscreenCache="ontouchstart"in document.documentElement),e._isTouchscreenCache},e}),u.define("select2/results",["jquery","./utils"],function(d,e){function i(e,t,n){this.$element=e,this.data=n,this.options=t,i.__super__.constructor.call(this)}return e.Extend(i,e.Observable),i.prototype.render=function(){var e=d('');return this.options.get("multiple")&&e.attr("aria-multiselectable","true"),this.$results=e},i.prototype.clear=function(){this.$results.empty()},i.prototype.displayMessage=function(e){var t=this.options.get("escapeMarkup");this.clear(),this.hideLoading();var n=d(''),i=this.options.get("translations").get(e.message);n.append(t(i(e.args))),n[0].className+=" select2-results__message",this.$results.append(n)},i.prototype.hideMessages=function(){this.$results.find(".select2-results__message").remove()},i.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",{"class":"select2-results__options select2-results__options--nested",role:"listbox"});a.append(l),s.attr("role","list"),s.append(r),s.append(a)}else this.template(e,t);return d.data(t,"data",e),t},i.prototype.bind=function(t,e){var o=this,n=t.id+"-results";this.$results.attr("id",n),t.on("results:all",function(e){o.clear(),o.append(e.data),t.isOpen()&&(o.setClasses(),o.highlightFirstItem())}),t.on("results:append",function(e){o.append(e.data),t.isOpen()&&o.setClasses()}),t.on("query",function(e){o.hideMessages(),o.showLoading(e)}),t.on("select",function(){t.isOpen()&&(o.setClasses(),o.highlightFirstItem())}),t.on("unselect",function(){t.isOpen()&&(o.setClasses(),o.highlightFirstItem())}),t.on("open",function(){o.$results.attr("aria-expanded","true"),o.$results.attr("aria-hidden","false"),o.setClasses(),o.ensureHighlightVisible();var e=o.$results.parents(".select2-container").find("input.select2-search__field")[0];void 0!==e&&e.focus()}),t.on("close",function(){o.$results.attr("aria-expanded","false"),o.$results.attr("aria-hidden","true"),o.$results.removeAttr("aria-activedescendant")}),t.on("results:toggle",function(){var e=o.getHighlightedResults();0!==e.length&&e.trigger("mouseup")}),t.on("results:select",function(){var e,t=o.getHighlightedResults();0!==t.length&&(e=t.data("data"),"true"==t.attr("data-selected")?o.trigger("close",{}):o.trigger("select",{data:e}))}),t.on("results:previous",function(){var e,t=o.getHighlightedResults(),n=o.$results.find("[data-selected]"),i=n.index(t);0!==i&&(e=i-1,0===t.length&&(e=0),(i=n.eq(e)).trigger("mouseenter"),t=o.$results.offset().top,n=i.offset().top,i=o.$results.scrollTop()+(n-t),0===e?o.$results.scrollTop(0):n-t<0&&o.$results.scrollTop(i))}),t.on("results:next",function(){var e,t=o.getHighlightedResults(),n=o.$results.find("[data-selected]"),i=n.index(t)+1;i>=n.length||((e=n.eq(i)).trigger("mouseenter"),t=o.$results.offset().top+o.$results.outerHeight(!1),n=e.offset().top+e.outerHeight(!1),e=o.$results.scrollTop()+n-t,0===i?o.$results.scrollTop(0):tthis.$results.outerHeight()||i<0)&&this.$results.scrollTop(n))},i.prototype.template=function(e,t){var n=this.options.get("templateResult"),i=this.options.get("escapeMarkup"),n=n(e,t);null==n?t.style.display="none":"string"==typeof n?t.innerHTML=i(n):d(t).append(n)},i}),u.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}}),u.define("select2/selection/base",["jquery","../utils","../keys"],function(i,e,o){function n(e,t){this.$element=e,this.options=t,n.__super__.constructor.call(this)}return e.Extend(n,e.Observable),n.prototype.render=function(){var e=i('');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")),e.attr("title",this.$element.attr("title")),e.attr("tabindex",this._tabindex),this.$selection=e},n.prototype.bind=function(e,t){var n=this,i=(e.id,e.id+"-results");this.options.get("minimumResultsForSearch"),Infinity;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),e.which===o.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",i),n._attachCloseHandler(e)}),e.on("close",function(){n.$selection.attr("aria-expanded","false"),n.$selection.removeAttr("aria-activedescendant"),n.$selection.removeAttr("aria-owns"),window.setTimeout(function(){n.$selection.trigger("focus")},1),n._detachCloseHandler(e)}),e.on("enable",function(){n.$selection.attr("tabindex",n._tabindex)}),e.on("disable",function(){n.$selection.attr("tabindex","-1")})},n.prototype._handleBlur=function(e){var t=this;window.setTimeout(function(){document.activeElement==t.$selection[0]||i.contains(t.$selection[0],document.activeElement)||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),n=t.closest(".select2");i(".select2.select2-container--open").each(function(){var e=i(this);this!=n[0]&&(e.data("element").select2("close"),setTimeout(function(){e.find("*:focus").trigger("blur"),t.trigger("focus")},1))})})},n.prototype._detachCloseHandler=function(e){i(document.body).off("mousedown.select2."+e.id)},n.prototype.position=function(e,t){t.find(".selection").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}),u.define("select2/selection/single",["jquery","./base","../utils","../keys"],function(e,t,i,n){function s(){s.__super__.constructor.apply(this,arguments)}return i.Extend(s,t),s.prototype.render=function(){var e=s.__super__.render.call(this);return e.addClass("select2-selection--single"),e.html(''),e},s.prototype.bind=function(t,e){var n=this;s.__super__.bind.apply(this,arguments);var i=t.id+"-container";this.$selection.find(".select2-selection__rendered").attr("id",i).attr("role","textbox").attr("aria-readonly","true");var o=this.options.get("label");"string"==typeof o?this.$selection.attr("aria-label",o):this.$selection.attr("aria-labelledby",i),this.$selection.attr("role","combobox"),this.$selection.on("mousedown",function(e){1===e.which&&n.trigger("toggle",{originalEvent:e})}),this.$selection.on("focus",function(e){}),this.$selection.on("keydown",function(e){!t.isOpen()&&48<=e.which&&e.which<=90&&t.open()}),this.$selection.on("blur",function(e){}),t.on("focus",function(e){t.isOpen()||n.$selection.trigger("focus")}),t.on("selection:update",function(e){n.update(e.data)})},s.prototype.clear=function(){this.$selection.find(".select2-selection__rendered").empty()},s.prototype.display=function(e,t){var n=this.options.get("templateSelection");return this.options.get("escapeMarkup")(n(e,t))},s.prototype.selectionContainer=function(){return e("")},s.prototype.update=function(e){var t,n;0!==e.length?(t=e[0],n=this.$selection.find(".select2-selection__rendered"),e=i.entityDecode(this.display(t,n)),n.empty().text(e),n.prop("title",t.title||t.text)):this.clear()},s}),u.define("select2/selection/multiple",["jquery","./base","../utils"],function(i,e,l){function o(e,t){o.__super__.constructor.apply(this,arguments)}return l.Extend(o,e),o.prototype.render=function(){var e=o.__super__.render.call(this);return e.addClass("select2-selection--multiple"),e.html('
    '),e},o.prototype.bind=function(t,e){var n=this;o.__super__.bind.apply(this,arguments),this.$selection.on("click",function(e){n.trigger("toggle",{originalEvent:e})}),this.$selection.on("click",".select2-selection__choice__remove",function(e){var t;n.options.get("disabled")||(t=i(this).parent().data("data"),n.trigger("unselect",{originalEvent:e,data:t}))}),this.$selection.on("keydown",function(e){!t.isOpen()&&48<=e.which&&e.which<=90&&t.open()}),t.on("focus",function(){n.focusOnSearch()})},o.prototype.clear=function(){this.$selection.find(".select2-selection__rendered").empty()},o.prototype.display=function(e,t){var n=this.options.get("templateSelection");return this.options.get("escapeMarkup")(n(e,t))},o.prototype.selectionContainer=function(){return i('
  • ')},o.prototype.focusOnSearch=function(){var e=this;"undefined"!=typeof e.$search&&setTimeout(function(){e._keyUpPrevented=!0,e.$search.trigger("focus")},1)},o.prototype.update=function(e){if(this.clear(),0!==e.length){for(var t=[],n=0;n×')).data("data",t),this.$selection.find(".select2-selection__rendered").prepend(e))},e}),u.define("select2/selection/search",["jquery","../utils","../keys"],function(n,e,r){function t(e,t,n){e.call(this,t,n)}return t.prototype.render=function(e){var t=n('');this.$searchContainer=t,this.$search=t.find("input");e=e.call(this);return this._transferTabIndex(),e},t.prototype.bind=function(e,n,t){var i=this,o=n.id+"-results";e.call(this,n,t),n.on("open",function(){i.$search.attr("aria-owns",o),i.$search.trigger("focus")}),n.on("close",function(){i.$search.val(""),i.$search.removeAttr("aria-activedescendant"),i.$search.removeAttr("aria-owns"),i.$search.trigger("focus")}),n.on("enable",function(){i.$search.prop("disabled",!1),i._transferTabIndex()}),n.on("disable",function(){i.$search.prop("disabled",!0)}),n.on("focus",function(e){i.$search.trigger("focus")}),n.on("results:focus",function(e){i.$search.attr("aria-activedescendant",e.data._resultId)}),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){var t;e.stopPropagation(),i.trigger("keypress",e),i._keyUpPrevented=e.isDefaultPrevented(),e.which===r.BACKSPACE&&""===i.$search.val()?0<(t=i.$searchContainer.prev(".select2-selection__choice")).length&&(t=t.data("data"),i.searchRemoveChoice(t),e.preventDefault()):e.which===r.ENTER&&(n.open(),e.preventDefault())});var e=document.documentMode,s=e&&e<=11;this.$selection.on("input.searchcheck",".select2-search--inline",function(e){s?i.$selection.off("input.search input.searchcheck"):i.$selection.off("keyup.search")}),this.$selection.on("keyup.search input.search",".select2-search--inline",function(e){var t;s&&"input"===e.type?i.$selection.off("input.search input.searchcheck"):(t=e.which)!=r.SHIFT&&t!=r.CTRL&&t!=r.ALT&&t!=r.TAB&&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(),n&&this.$search.trigger("focus")},t.prototype.handleSearch=function(){var e;this.resizeSearch(),this._keyUpPrevented||(e=this.$search.val(),this.trigger("query",{term:e})),this._keyUpPrevented=!1},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="";e=""!==this.$search.attr("placeholder")?this.$selection.find(".select2-selection__rendered").innerWidth():.75*(this.$search.val().length+1)+"em",this.$search.css("width",e)},t}),u.define("select2/selection/eventRelay",["jquery"],function(r){function e(){}return e.prototype.bind=function(e,t,n){var i=this,o=["open","opening","close","closing","select","selecting","unselect","unselecting"],s=["opening","closing","selecting","unselecting"];e.call(this,t,n),t.on("*",function(e,t){var n;-1!==r.inArray(e,o)&&(n=r.Event("select2:"+e,{params:t=t||{}}),i.$element.trigger(n),-1!==r.inArray(e,s)&&(t.prevented=n.isDefaultPrevented()))})},e}),u.define("select2/translation",["jquery","require"],function(t,n){function i(e){this.dict=e||{}}return i.prototype.all=function(){return this.dict},i.prototype.get=function(e){return this.dict[e]},i.prototype.extend=function(e){this.dict=t.extend({},e.all(),this.dict)},i._cache={},i.loadPath=function(e){var t;return e in i._cache||(t=n(e),i._cache[e]=t),new i(i._cache[e])},i}),u.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","隃?:"AA","脝":"AE","羌":"AE","洽":"AE","隃?:"AO","隃?:"AU","隃?:"AV","隃?:"AV","隃?:"AY","鈷?:"B","锛?:"B","岣?:"B","岣?:"B","岣?:"B","蓛":"B","苽":"B","苼":"B","鈷?:"C","锛?:"C","膯":"C","膱":"C","膴":"C","膶":"C","脟":"C","岣?:"C","茋":"C","然":"C","隃?:"C","鈷?:"D","锛?:"D","岣?:"D","膸":"D","岣?:"D","岣?:"D","岣?:"D","岣?:"D","膼":"D","茓":"D","茒":"D","茐":"D","隄?:"D","潜":"DZ","莿":"DZ","遣":"Dz","菂":"Dz","鈷?:"E","锛?:"E","脠":"E","脡":"E","脢":"E","峄€":"E","岷?:"E","峄?:"E","峄?:"E","岷?:"E","膾":"E","岣?:"E","岣?:"E","臄":"E","臇":"E","脣":"E","岷?:"E","臍":"E","葎":"E","葐":"E","岷?:"E","峄?:"E","权":"E","岣?:"E","臉":"E","岣?:"E","岣?:"E","茞":"E","茙":"E","鈷?:"F","锛?:"F","岣?:"F","茟":"F","隄?:"F","鈷?:"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","鈷?:"I","锛?:"I","脤":"I","脥":"I","脦":"I","抹":"I","莫":"I","默":"I","陌":"I","脧":"I","岣?:"I","峄?:"I","菑":"I","葓":"I","葕":"I","峄?:"I","漠":"I","岣?:"I","茥":"I","鈷?:"J","锛?:"J","拇":"J","蓤":"J","鈸€":"K","锛?:"K","岣?:"K","迁":"K","岣?:"K","亩":"K","岣?:"K","茦":"K","獗?:"K","隄€":"K","隄?:"K","隄?:"K","隇?:"K","鈸?:"L","锛?:"L","目":"L","墓":"L","慕":"L","岣?:"L","岣?:"L","幕":"L","岣?:"L","岣?:"L","艁":"L","冉":"L","獗?:"L","獗?:"L","隄?:"L","隄?:"L","隇€":"L","菄":"LJ","菆":"Lj","鈸?:"M","锛?:"M","岣?:"M","峁€":"M","峁?:"M","獗?:"M","茰":"M","鈸?:"N","锛?:"N","歉":"N","艃":"N","脩":"N","峁?:"N","艊":"N","峁?:"N","艆":"N","峁?:"N","峁?:"N","葼":"N","茲":"N","隇?:"N","隇?:"N","菉":"NJ","菋":"Nj","鈸?:"O","锛?:"O","脪":"O","脫":"O","脭":"O","峄?:"O","峄?:"O","峄?:"O","峄?:"O","脮":"O","峁?:"O","痊":"O","峁?:"O","艑":"O","峁?:"O","峁?:"O","艓":"O","犬":"O","劝":"O","脰":"O","泉":"O","峄?:"O","艕":"O","菓":"O","葘":"O","葞":"O","茽":"O","峄?:"O","峄?:"O","峄?:"O","峄?:"O","峄?:"O","峄?:"O","峄?:"O","仟":"O","乾":"O","脴":"O","蔷":"O","茊":"O","茻":"O","隄?:"O","隄?:"O","脾":"OI","隄?:"OO","娶":"OU","鈸?:"P","锛?:"P","峁?:"P","峁?:"P","皮":"P","獗?:"P","隄?:"P","隄?:"P","隄?:"P","鈸?:"Q","锛?:"Q","隄?:"Q","隄?:"Q","蓨":"Q","鈸?:"R","锛?:"R","艛":"R","峁?:"R","艠":"R","葠":"R","葤":"R","峁?:"R","峁?:"R","艝":"R","峁?:"R","蓪":"R","獗?:"R","隄?:"R","隇?:"R","隇?:"R","鈸?:"S","锛?:"S","岷?:"S","艢":"S","峁?:"S","艤":"S","峁?:"S","艩":"S","峁?:"S","峁?:"S","峁?:"S","葮":"S","艦":"S","獗?:"S","隇?:"S","隇?:"S","鈸?:"T","锛?:"T","峁?:"T","扭":"T","峁?:"T","葰":"T","泞":"T","峁?:"T","峁?:"T","纽":"T","片":"T","飘":"T","染":"T","隇?:"T","隃?:"TZ","鈸?:"U","锛?:"U","脵":"U","脷":"U","脹":"U","浓":"U","峁?:"U","弄":"U","峁?:"U","努":"U","脺":"U","菦":"U","菞":"U","菚":"U","菣":"U","峄?:"U","女":"U","虐":"U","菗":"U","葦":"U","葨":"U","漂":"U","峄?:"U","峄?:"U","峄?:"U","峄?:"U","峄?:"U","峄?:"U","峁?:"U","挪":"U","峁?:"U","峁?:"U","蓜":"U","鈸?:"V","锛?:"V","峁?:"V","峁?:"V","撇":"V","隄?:"V","蓞":"V","隄?:"VY","鈸?:"W","锛?:"W","岷€":"W","岷?:"W","糯":"W","岷?:"W","岷?:"W","岷?:"W","獗?:"W","鈸?:"X","锛?:"X","岷?:"X","岷?:"X","鈸?:"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","鈸?:"a","锝?:"a","岷?:"a","脿":"a","谩":"a","芒":"a","岷?:"a","岷?:"a","岷?:"a","岷?:"a","茫":"a","膩":"a","膬":"a","岷?:"a","岷?:"a","岷?:"a","岷?:"a","颧":"a","恰":"a","盲":"a","菬":"a","岷?:"a","氓":"a","腔":"a","菐":"a","葋":"a","葍":"a","岷?:"a","岷?:"a","岷?:"a","岣?:"a","膮":"a","獗?:"a","蓯":"a","隃?:"aa","忙":"ae","墙":"ae","牵":"ae","隃?:"ao","隃?:"au","隃?:"av","隃?:"av","隃?:"ay","鈸?:"b","锝?:"b","岣?:"b","岣?:"b","岣?:"b","苺":"b","苾":"b","蓳":"b","鈸?:"c","锝?:"c","膰":"c","膲":"c","膵":"c","膷":"c","莽":"c","岣?:"c","茍":"c","燃":"c","隃?:"c","鈫?:"c","鈸?:"d","锝?:"d","岣?:"d","膹":"d","岣?:"d","岣?:"d","岣?:"d","岣?:"d","膽":"d","茖":"d","蓶":"d","蓷":"d","隄?:"d","浅":"dz","菃":"dz","鈸?:"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","鈸?:"g","锝?:"g","堑":"g","臐":"g","岣?:"g","臒":"g","摹":"g","千":"g","模":"g","钎":"g","蔂":"g","隇?:"g","岬?:"g","隄?:"g","鈸?:"h","锝?:"h","磨":"h","岣?:"h","岣?:"h","葻":"h","岣?:"h","岣?:"h","岣?:"h","岷?:"h","魔":"h","獗?:"h","獗?:"h","丧":"h","茣":"hv","鈸?:"i","锝?:"i","矛":"i","铆":"i","卯":"i","末":"i","墨":"i","沫":"i","茂":"i","岣?:"i","峄?:"i","菒":"i","葔":"i","葖":"i","峄?:"i","寞":"i","岣?:"i","扫":"i","谋":"i","鈸?:"j","锝?:"j","牡":"j","前":"j","蓧":"j","鈸?:"k","锝?:"k","岣?:"k","签":"k","岣?:"k","姆":"k","岣?:"k","茩":"k","獗?:"k","隄?:"k","隄?:"k","隄?:"k","隇?:"k","鈸?:"l","锝?:"l","艀":"l","暮":"l","木":"l","岣?:"l","岣?:"l","募":"l","岣?:"l","岣?:"l","趴":"l","艂":"l","茪":"l","色":"l","獗?:"l","隄?:"l","隇?:"l","隄?:"l","菈":"lj","鈸?:"m","锝?:"m","岣?:"m","峁?:"m","峁?:"m","杀":"m","莎":"m","鈸?:"n","锝?:"n","枪":"n","艅":"n","帽":"n","峁?:"n","艌":"n","峁?:"n","艈":"n","峁?:"n","峁?:"n","茷":"n","刹":"n","艍":"n","隇?:"n","隇?:"n","菍":"nj","鈸?:"o","锝?:"o","貌":"o","贸":"o","么":"o","峄?:"o","峄?:"o","峄?:"o","峄?:"o","玫":"o","峁?:"o","拳":"o","峁?:"o","艒":"o","峁?:"o","峁?:"o","艔":"o","券":"o","缺":"o","枚":"o","全":"o","峄?:"o","艖":"o","菕":"o","葝":"o","葟":"o","啤":"o","峄?:"o","峄?:"o","峄?:"o","峄?:"o","峄?:"o","峄?:"o","峄?:"o","谦":"o","黔":"o","酶":"o","强":"o","蓴":"o","隄?:"o","隄?:"o","傻":"o","疲":"oi","龋":"ou","隄?:"oo","鈸?:"p","锝?:"p","峁?:"p","峁?:"p","匹":"p","岬?:"p","隄?:"p","隄?:"p","隄?:"p","鈸?:"q","锝?:"q","蓩":"q","隄?:"q","隄?:"q","鈸?:"r","锝?:"r","艜":"r","峁?:"r","艡":"r","葢":"r","葥":"r","峁?:"r","峁?:"r","艞":"r","峁?:"r","蓫":"r","山":"r","隄?:"r","隇?:"r","隇?:"r","鈸?:"s","锝?:"s","脽":"s","艣":"s","峁?:"s","艥":"s","峁?:"s","拧":"s","峁?:"s","峁?:"s","峁?:"s","葯":"s","艧":"s","瓤":"s","隇?:"s","隇?:"s","岷?:"s","鈸?:"t","锝?:"t","峁?:"t","岷?:"t","钮":"t","峁?:"t","葲":"t","牛":"t","峁?:"t","峁?:"t","脓":"t","骗":"t","蕡":"t","獗?:"t","隇?:"t","隃?:"tz","鈸?:"u","锝?:"u","霉":"u","煤":"u","没":"u","农":"u","峁?:"u","奴":"u","峁?:"u","怒":"u","眉":"u","菧":"u","菢":"u","菛":"u","菤":"u","峄?:"u","暖":"u","疟":"u","菙":"u","葧":"u","葪":"u","瓢":"u","峄?:"u","峄?:"u","峄?:"u","峄?:"u","峄?:"u","峄?:"u","峁?:"u","懦":"u","峁?:"u","峁?:"u","蕢":"u","鈸?:"v","锝?:"v","峁?:"v","峁?:"v","蕥":"v","隄?:"v","蕦":"v","隄?:"vy","鈸?:"w","锝?:"w","岷?:"w","岷?:"w","诺":"w","岷?:"w","岷?:"w","岷?:"w","岷?:"w","獗?:"w","鈸?:"x","锝?:"x","岷?:"x","岷?:"x","鈸?:"y","锝?:"y","峄?:"y","媒":"y","欧":"y","峄?:"y","瘸":"y","岷?:"y","每":"y","峄?:"y","岷?:"y","峄?:"y","拼":"y","蓮":"y","峄?:"y","鈸?:"z","锝?:"z","藕":"z","岷?:"z","偶":"z","啪":"z","岷?:"z","岷?:"z","贫":"z","去":"z","蓘":"z","獗?:"z","隄?:"z","螁":"螒","螆":"螘","螇":"螚","螉":"螜","为":"螜","螌":"螣","螏":"违","潍":"违","螐":"惟","维":"伪","苇":"蔚","萎":"畏","委":"喂","蠆":"喂","螑":"喂","蠈":"慰","蠉":"蠀","蠇":"蠀","伟":"蠀","蠅":"蠅","蟼":"蟽"}}),u.define("select2/data/base",["../utils"],function(i){function n(e,t){n.__super__.constructor.call(this)}return i.Extend(n,i.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="";return n+=null!=e?e.id:i.generateChars(4),n+="-result-",n+=i.generateChars(4),null!=t.id?n+="-"+t.id.toString():n+="-"+i.generateChars(4),n},n}),u.define("select2/data/select",["./base","../utils","jquery"],function(e,t,r){function n(e,t){this.$element=e,this.options=t,n.__super__.constructor.call(this)}return t.Extend(n,e),n.prototype.current=function(e){var t=[],n=this;this.$element.find(":selected").each(function(){var e=r(this),e=n.item(e);t.push(e)}),e(t)},n.prototype.select=function(o){var e,s=this;if(o.selected=!0,r(o.element).is("option"))return o.element.selected=!0,void this.$element.trigger("change");this.$element.prop("multiple")?this.current(function(e){var t=[];(o=[o]).push.apply(o,e);for(var n=0;nthis.maximumInputLength?this.trigger("results:message",{message:"inputTooLong",args:{maximum:this.maximumInputLength,input:t.term,params:t}}):e.call(this,t,n)},e}),u.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(t,n,i){var o=this;this.current(function(e){e=null!=e?e.length:0;0=o.maximumSelectionLength?o.trigger("results:message",{message:"maximumSelected",args:{maximum:o.maximumSelectionLength}}):t.call(o,n,i)})},e}),u.define("select2/dropdown",["jquery","./utils"],function(t,e){function n(e,t){this.$element=e,this.options=t,n.__super__.constructor.call(this)}return e.Extend(n,e.Observable),n.prototype.render=function(){var e=t('');return e.attr("dir",this.options.get("dir")),this.$dropdown=e},n.prototype.bind=function(){},n.prototype.position=function(e,t){},n.prototype.destroy=function(){this.$dropdown.remove()},n}),u.define("select2/dropdown/search",["jquery","../utils"],function(s,e){function t(){}return t.prototype.render=function(e){var t=e.call(this),e=s('');return this.$searchContainer=e,this.$search=e.find("input"),t.prepend(e),t},t.prototype.bind=function(e,t,n){var i=this,o=t.id+"-results";e.call(this,t,n),this.$search.on("keydown",function(e){i.trigger("keypress",e),i._keyUpPrevented=e.isDefaultPrevented()}),this.$search.on("input",function(e){s(this).off("keyup")}),this.$search.on("keyup input",function(e){i.handleSearch(e)}),t.on("open",function(){i.$search.attr("tabindex",0),i.$search.attr("aria-owns",o),i.$search.trigger("focus"),window.setTimeout(function(){i.$search.trigger("focus")},0)}),t.on("close",function(){i.$search.attr("tabindex",-1),i.$search.removeAttr("aria-activedescendant"),i.$search.removeAttr("aria-owns"),i.$search.val("")}),t.on("focus",function(){t.isOpen()||i.$search.trigger("focus")}),t.on("results:all",function(e){null!=e.query.term&&""!==e.query.term||(i.showSearch(e)?i.$searchContainer.removeClass("select2-search--hide"):i.$searchContainer.addClass("select2-search--hide"))}),t.on("results:focus",function(e){i.$search.attr("aria-activedescendant",e.data._resultId)})},t.prototype.handleSearch=function(e){var t;this._keyUpPrevented||(t=this.$search.val(),this.trigger("query",{term:t})),this._keyUpPrevented=!1},t.prototype.showSearch=function(e,t){return!0},t}),u.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 t="string"==typeof t?{id:"",text:t}:t},e.prototype.removePlaceholder=function(e,t){for(var n=t.slice(0),i=t.length-1;0<=i;i--){var o=t[i];this.placeholder.id===o.id&&n.splice(i,1)}return n},e}),u.define("select2/dropdown/infiniteScroll",["jquery"],function(o){function e(e,t,n,i){this.lastParams={},e.call(this,t,n,i),this.$loadingMore=this.createLoadingMore(),this.loading=!1}return e.prototype.append=function(e,t){this.$loadingMore.remove(),this.loading=!1,e.call(this,t),this.showLoadingMore(t)&&this.$results.append(this.$loadingMore)},e.prototype.bind=function(e,t,n){var i=this;e.call(this,t,n),t.on("query",function(e){i.lastParams=e,i.loading=!0}),t.on("query:append",function(e){i.lastParams=e,i.loading=!0}),this.$results.on("scroll",function(){var e=o.contains(document.documentElement,i.$loadingMore[0]);!i.loading&&e&&(e=i.$results.offset().top+i.$results.outerHeight(!1),i.$loadingMore.offset().top+i.$loadingMore.outerHeight(!1)<=e+50&&i.loadMore())})},e.prototype.loadMore=function(){this.loading=!0;var e=o.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=o('
  • '),t=this.options.get("translations").get("loadingMore");return e.html(t(this.lastParams)),e},e}),u.define("select2/dropdown/attachBody",["jquery","../utils"],function(c,r){function e(e,t,n){this.$dropdownParent=n.get("dropdownParent")||c(document.body),e.call(this,t,n)}return e.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()})},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=c(""),e=e.call(this);return t.append(e),this.$dropdownContainer=t},e.prototype._hideDropdown=function(e){this.$dropdownContainer.detach()},e.prototype._attachPositioningHandler=function(e,t){var n=this,i="scroll.select2."+t.id,o="resize.select2."+t.id,s="orientationchange.select2."+t.id,t=this.$container.parents().filter(r.hasScroll);t.each(function(){c(this).data("select2-scroll-position",{x:c(this).scrollLeft(),y:c(this).scrollTop()})}),t.on(i,function(e){var t=c(this).data("select2-scroll-position");c(this).scrollTop(t.y)}),c(window).on(i+" "+o+" "+s,function(e){n._positionDropdown(),n._resizeDropdown()})},e.prototype._detachPositioningHandler=function(e,t){var n="scroll.select2."+t.id,i="resize.select2."+t.id,t="orientationchange.select2."+t.id;this.$container.parents().filter(r.hasScroll).off(n),c(window).off(n+" "+i+" "+t)},e.prototype._positionDropdown=function(){var e=c(window),t=this.$dropdown.hasClass("select2-dropdown--above"),n=this.$dropdown.hasClass("select2-dropdown--below"),i=null,o=this.$container.offset();o.bottom=o.top+this.$container.outerHeight(!1);var s={height:this.$container.outerHeight(!1)};s.top=o.top,s.bottom=o.top+s.height;var r=this.$dropdown.outerHeight(!1),a=e.scrollTop(),l=e.scrollTop()+e.height(),e=ao.bottom+r,l={left:o.left,top:s.bottom},o=this.$dropdownParent,o=(o="static"===o.css("position")?o.offsetParent():o).offset();l.left-=o.left,t||n||(i="below"),a||!e||t?!e&&a&&t&&(i="below"):i="above",("above"==i||t&&"below"!==i)&&(l.top=s.top-r),null!=i&&(this.$dropdown.removeClass("select2-dropdown--below select2-dropdown--above").addClass("select2-dropdown--"+i),this.$container.removeClass("select2-container--below select2-container--above").addClass("select2-container--"+i)),this.$dropdownContainer.css(l)},e.prototype._resizeDropdown=function(){var e={width:this.$container.outerWidth(!1)+"px"};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()},e}),u.define("select2/dropdown/minimumResultsForSearch",[],function(){function e(e,t,n,i){this.minimumResultsForSearch=n.get("minimumResultsForSearch"),this.minimumResultsForSearch<0&&(this.minimumResultsForSearch=Infinity),e.call(this,t,n,i)}return e.prototype.showSearch=function(e,t){return!(function o(e){for(var t=0,n=0;n');return e.attr("dir",this.options.get("dir")),this.$container=e,this.$container.addClass("select2-container--"+this.options.get("theme")),e.data("element",this.$element),e},a}),u.define("select2/compat/utils",["jquery"],function(r){return{syncCssClasses:function(e,t,n){var i,o=[],s=e.attr("class")||0==e.attr("class")?e.attr("class").toString().trim():"";s&&r((s=""+s).split(/\s+/)).each(function(){0===this.indexOf("select2-")&&o.push(this)}),(s=t.attr("class")||0==t.attr("class")?t.attr("class").toString().trim():"")&&r((s=""+s).split(/\s+/)).each(function(){0!==this.indexOf("select2-")&&null!=(i=n(this))&&o.push(i)}),e.attr("class",o.join(" "))}}}),u.define("select2/compat/containerCss",["jquery","./utils"],function(e,s){function r(e){return null}function t(){}return t.prototype.render=function(e){var t=e.call(this),n=this.options.get("containerCssClass")||"";"function"==typeof n&&(n=n(this.$element));var i,o=this.options.get("adaptContainerCssClass");o=o||r,-1!==n.indexOf(":all:")&&(n=n.replace(":all:",""),i=o,o=function(e){var t=i(e);return null!=t?t+" "+e:e});e=this.options.get("containerCss")||{};return"function"==typeof e&&(e=e(this.$element)),s.syncCssClasses(t,this.$element,o),t.css(e),t.addClass(n),t},t}),u.define("select2/compat/dropdownCss",["jquery","./utils"],function(e,s){function r(e){return null}function t(){}return t.prototype.render=function(e){var t=e.call(this),n=this.options.get("dropdownCssClass")||"";"function"==typeof n&&(n=n(this.$element));var i,o=this.options.get("adaptDropdownCssClass");o=o||r,-1!==n.indexOf(":all:")&&(n=n.replace(":all:",""),i=o,o=function(e){var t=i(e);return null!=t?t+" "+e:e});e=this.options.get("dropdownCss")||{};return"function"==typeof e&&(e=e(this.$element)),s.syncCssClasses(t,this.$element,o),t.css(e),t.addClass(n),t},t}),u.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(e,t){var n=this;this._isInitialized?e.call(this,t):this.initSelection.call(null,this.$element,function(e){n._isInitialized=!0,Array.isArray(e)||(e=[e]),t(e)})},t}),u.define("select2/compat/inputData",["jquery"],function(r){function e(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 `