PageSourceSearch

https://www.studiopress.com/wp-content/mu-plugins/wpengine-forms/js/main.js?ver=1615991328

js studiopress.com collected 2026-09-24 06:54:47 UTC 81,022 bytes, 2 lines download raw bytes

1/*! For license information please see main.js.LICENSE.txt */
2(()=>{var e={808:(e,exports,t)=>{var n,i;!function(r){if(void 0===(i="function"==typeof(n=r)?n.call(exports,t,exports,e):n)||(e.exports=i),!0,e.exports=r(),!!0){var o=window.Cookies,s=window.Cookies=r();s.noConflict=function(){return window.Cookies=o,s}}}((function(){function e(){for(var e=0,t={};e<arguments.length;e++){var n=arguments[e];for(var i in n)t[i]=n[i]}return t}function t(e){return e.replace(/(%[0-9A-Z]{2})+/g,decodeURIComponent)}return function n(i){function r(){}function o(t,n,o){if("undefined"!=typeof document){"number"==typeof(o=e({path:"/"},r.defaults,o)).expires&&(o.expires=new Date(1*new Date+864e5*o.expires)),o.expires=o.expires?o.expires.toUTCString():"";try{var s=JSON.stringify(n);/^[\{\[]/.test(s)&&(n=s)}catch(e){}n=i.write?i.write(n,t):encodeURIComponent(String(n)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),t=encodeURIComponent(String(t)).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent).replace(/[\(\)]/g,escape);var a="";for(var l in o)o[l]&&(a+="; "+l,!0!==o[l]&&(a+="="+o[l].split(";")[0]));return document.cookie=t+"="+n+a}}function s(e,n){if("undefined"!=typeof document){for(var r={},o=document.cookie?document.cookie.split("; "):[],s=0;s<o.length;s++){var a=o[s].split("="),l=a.slice(1).join("=");n||'"'!==l.charAt(0)||(l=l.slice(1,-1));try{var c=t(a[0]);if(l=(i.read||i)(l,c)||t(l),n)try{l=JSON.parse(l)}catch(e){}if(r[c]=l,e===c)break}catch(e){}}return e?r[e]:r}}return r.set=o,r.get=function(e){return s(e,!1)},r.getJSON=function(e){return s(e,!0)},r.remove=function(t,n){o(t,"",e(n,{expires:-1}))},r.defaults={},r.withConverter=n,r}((function(){}))}))},686:(e,exports,t)=>{var n,i,r;i=[t(609)],void 0===(r="function"==typeof(n=function(jQuery){var e=function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;var t,require,n;return e&&e.requirejs||(e?require=e:e={},function(e){var i,r,o,s,a={},l={},c={},u={},d=Object.prototype.hasOwnProperty,p=[].slice,h=/\.js$/;function f(e,t){return d.call(e,t)}function m(e,t){var n,i,r,o,s,a,l,u,d,p,f,m=t&&t.split("/"),g=c.map,v=g&&g["*"]||{};if(e){for(s=(e=e.split("/")).length-1,c.nodeIdCompat&&h.test(e[s])&&(e[s]=e[s].replace(h,"")),"."===e[0].charAt(0)&&m&&(e=m.slice(0,m.length-1).concat(e)),d=0;d<e.length;d++)if("."===(f=e[d]))e.splice(d,1),d-=1;else if(".."===f){if(0===d||1===d&&".."===e[2]||".."===e[d-1])continue;d>0&&(e.splice(d-1,2),d-=2)}e=e.join("/")}if((m||v)&&g){for(d=(n=e.split("/")).length;d>0;d-=1){if(i=n.slice(0,d).join("/"),m)for(p=m.length;p>0;p-=1)if((r=g[m.slice(0,p).join("/")])&&(r=r[i])){o=r,a=d;break}if(o)break;!l&&v&&v[i]&&(l=v[i],u=d)}!o&&l&&(o=l,a=u),o&&(n.splice(0,a,o),e=n.join("/"))}return e}function g(t,n){return function(){var i=p.call(arguments,0);return"string"!=typeof i[0]&&1===i.length&&i.push(null),r.apply(e,i.concat([t,n]))}}function v(e){return function(t){return m(t,e)}}function y(e){return function(t){a[e]=t}}function w(t){if(f(l,t)){var n=l[t];delete l[t],u[t]=!0,i.apply(e,n)}if(!f(a,t)&&!f(u,t))throw new Error("No "+t);return a[t]}function _(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 b(e){return e?_(e):[]}function A(e){return function(){return c&&c.config&&c.config[e]||{}}}o=function(e,t){var n,i=_(e),r=i[0],o=t[1];return e=i[1],r&&(n=w(r=m(r,o))),r?e=n&&n.normalize?n.normalize(e,v(o)):m(e,o):(r=(i=_(e=m(e,o)))[0],e=i[1],r&&(n=w(r))),{f:r?r+"!"+e:e,n:e,pr:r,p:n}},s={require:function(e){return g(e)},exports:function(e){var t=a[e];return void 0!==t?t:a[e]={}},module:function(e){return{id:e,uri:"",exports:a[e],config:A(e)}}},i=function(t,n,i,r){var c,d,p,h,m,v,_,A=[],x=typeof i;if(v=b(r=r||t),"undefined"===x||"function"===x){for(n=!n.length&&i.length?["require","exports","module"]:n,m=0;m<n.length;m+=1)if("require"===(d=(h=o(n[m],v)).f))A[m]=s.require(t);else if("exports"===d)A[m]=s.exports(t),_=!0;else if("module"===d)c=A[m]=s.module(t);else if(f(a,d)||f(l,d)||f(u,d))A[m]=w(d);else{if(!h.p)throw new Error(t+" missing "+d);h.p.load(h.n,g(r,!0),y(d),{}),A[m]=a[d]}p=i?i.apply(a[t],A):void 0,t&&(c&&c.exports!==e&&c.exports!==a[t]?a[t]=c.exports:p===e&&_||(a[t]=p))}else t&&(a[t]=i)},t=require=r=function(t,n,a,l,u){if("string"==typeof t)return s[t]?s[t](n):w(o(t,b(n)).f);if(!t.splice){if((c=t).deps&&r(c.deps,c.callback),!n)return;
2n.splice?(t=n,n=a,a=null):t=e}return n=n||function(){},"function"==typeof a&&(a=l,l=u),l?i(e,t,n,a):setTimeout((function(){i(e,t,n,a)}),4),r},r.config=function(e){return r(e)},t._defined=a,(n=function(e,t,n){if("string"!=typeof e)throw new Error("See almond README: incorrect module build, no module name");t.splice||(n=t,t=[]),f(a,e)||f(l,e)||(l[e]=[e,t,n])}).amd={jQuery:!0}}(),e.requirejs=t,e.require=require,e.define=n),e.define("almond",(function(){})),e.define("jquery",[],(function(){var e=jQuery||$;return null==e&&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."),e})),e.define("select2/utils",["jquery"],(function($){var e={};function t(e){var t=e.prototype,n=[];for(var i in t)"function"==typeof t[i]&&"constructor"!==i&&n.push(i);return n}e.Extend=function(e,t){var n={}.hasOwnProperty;function i(){this.constructor=e}for(var r in t)n.call(t,r)&&(e[r]=t[r]);return i.prototype=t.prototype,e.prototype=new i,e.__super__=t.prototype,e},e.Decorate=function(e,n){var i=t(n),r=t(e);function o(){var t=Array.prototype.unshift,i=n.prototype.constructor.length,r=e.prototype.constructor;i>0&&(t.call(arguments,e.prototype.constructor),r=n.prototype.constructor),r.apply(this,arguments)}function s(){this.constructor=o}n.displayName=e.displayName,o.prototype=new s;for(var a=0;a<r.length;a++){var l=r[a];o.prototype[l]=e.prototype[l]}for(var c=function(e){var t=function(){};e in o.prototype&&(t=o.prototype[e]);var i=n.prototype[e];return function(){return Array.prototype.unshift.call(arguments,t),i.apply(this,arguments)}},u=0;u<i.length;u++){var d=i[u];o.prototype[d]=c(d)}return o};var n=function(){this.listeners={}};return n.prototype.on=function(e,t){this.listeners=this.listeners||{},e in this.listeners?this.listeners[e].push(t):this.listeners[e]=[t]},n.prototype.trigger=function(e){var t=Array.prototype.slice,n=t.call(arguments,1);this.listeners=this.listeners||{},null==n&&(n=[]),0===n.length&&n.push({}),n[0]._type=e,e in this.listeners&&this.invoke(this.listeners[e],t.call(arguments,1)),"*"in this.listeners&&this.invoke(this.listeners["*"],arguments)},n.prototype.invoke=function(e,t){for(var n=0,i=e.length;n<i;n++)e[n].apply(this,t)},e.Observable=n,e.generateChars=function(e){for(var t="",n=0;n<e;n++)t+=Math.floor(36*Math.random()).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("-"),i=e;if(1!==n.length){for(var r=0;r<n.length;r++){var o=n[r];(o=o.substring(0,1).toLowerCase()+o.substring(1))in i||(i[o]={}),r==n.length-1&&(i[o]=e[t]),i=i[o]}delete e[t]}}return e},e.hasScroll=function(e,t){var n=$(t),i=t.style.overflowX,r=t.style.overflowY;return(i!==r||"hidden"!==r&&"visible"!==r)&&("scroll"===i||"scroll"===r||n.innerHeight()<t.scrollHeight||n.innerWidth()<t.scrollWidth)},e.escapeMarkup=function(e){var t={"\\":"&#92;","&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#47;"};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){if("1.7"===$.fn.jquery.substr(0,3)){var n=$();$.map(t,(function(e){n=n.add(e)})),t=n}e.append(t)},e.isTouchscreen=function(){return void 0===e._isTouchscreenCache&&(e._isTouchscreenCache="ontouchstart"in document.documentElement),e._isTouchscreenCache},e})),e.define("select2/results",["jquery","./utils"],(function($,e){function t(e,n,i){this.$element=e,this.data=i,this.options=n,t.__super__.constructor.call(this)}return e.Extend(t,e.Observable),t.prototype.render=function(){var e=$
2('<ul class="select2-results__options" role="listbox" tabindex="-1"></ul>');return this.options.get("multiple")&&e.attr("aria-multiselectable","true"),this.$results=e,e},t.prototype.clear=function(){this.$results.empty()},t.prototype.displayMessage=function(e){var t=this.options.get("escapeMarkup");this.clear(),this.hideLoading();var n=$('<li role="alert" aria-live="assertive" class="select2-results__option"></li>'),i=this.options.get("translations").get(e.message);n.append(t(i(e.args))),n[0].className+=" select2-results__message",this.$results.append(n)},t.prototype.hideMessages=function(){this.$results.find(".select2-results__message").remove()},t.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<e.results.length;n++){var i=e.results[n],r=this.option(i);t.push(r)}this.$results.append(t)}else 0===this.$results.children().length&&this.trigger("results:message",{message:"noResults"})},t.prototype.position=function(e,t){t.find(".select2-results").append(e)},t.prototype.sort=function(e){return this.options.get("sorter")(e)},t.prototype.highlightFirstItem=function(){var e=this.$results.find(".select2-results__option[data-selected]"),t=e.filter("[data-selected=true]");t.length>0?t.first().trigger("mouseenter"):e.first().trigger("mouseenter"),this.ensureHighlightVisible()},t.prototype.setClasses=function(){var e=this;this.data.current((function(t){var n=$.map(t,(function(e){return e.id.toString()}));e.$results.find(".select2-results__option[data-selected]").each((function(){var e=$
2(this),t=$.data(this,"data"),i=""+t.id;null!=t.element&&t.element.selected||null==t.element&&$.inArray(i,n)>-1?e.attr("data-selected","true"):e.attr("data-selected","false")}))}))},t.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)},t.prototype.hideLoading=function(){this.$results.find(".loading-results").remove()},t.prototype.option=function(e){var t=document.createElement("li");t.className="select2-results__option";var n={role:"option","data-selected":"false",tabindex:-1};for(var i in e.disabled&&(delete n["data-selected"],n["aria-disabled"]="true"),null==e.id&&delete n["data-selected"],null!=e._resultId&&(t.id=e._resultId),e.title&&(t.title=e.title),e.children&&(n["aria-label"]=e.text,delete n["data-selected"]),n){var r=n[i];t.setAttribute(i,r)}if(e.children){var o=$(t),s=document.createElement("strong");s.className="select2-results__group";var a=$(s);this.template(e,s),a.attr("role","presentation");for(var l=[],c=0;c<e.children.length;c++){var u=e.children[c],d=this.option(u);l.push(d)}var p=$("<ul></ul>",{class:"select2-results__options select2-results__options--nested",role:"listbox"});p.append(l),o.attr("role","list"),o.append(s),o.append(p)}else this.template(e,t);return $.data(t,"data",e),t},t.prototype.bind=function(e,t){var n=this,i=e.id+"-results";this.$results.attr("id",i),e.on("results:all",(function(t){n.clear(),n.append(t.data),e.isOpen()&&(n.setClasses(),n.highlightFirstItem())})),e.on("results:append",(function(t){n.append(t.data),e.isOpen()&&n.setClasses()})),e.on("query",(function(e){n.hideMessages(),n.showLoading(e)})),e.on("select",(function(){e.isOpen()&&(n.setClasses(),n.highlightFirstItem())})),e.on("unselect",(function(){e.isOpen()&&(n.setClasses(),n.highlightFirstItem())})),e.on("open",(function(){n.$results.attr("aria-expanded","true"),n.$results.attr("aria-hidden","false"),n.setClasses(),n.ensureHighlightVisible()})),e.on("close",(function(){n.$results.attr("aria-expanded","false"),n.$results.attr("aria-hidden","true"),n.$results.removeAttr("aria-activedescendant")})),e.on("results:toggle",(function(){var e=n.getHighlightedResults();0!==e.length&&e.trigger("mouseup")})),e.on("results:select",(function(){var e=n.getHighlightedResults();if(0!==e.length){var t=e.data("data");"true"==e.attr("data-selected")?n.trigger("close",{}):n.trigger("select",{data:t})}})),e.on("results:previous",(function(){var e=n.getHighlightedResults(),t=n.$results.find("[data-selected]"),i=t.index(e);if(0!==i){var r=i-1;0===e.length&&(r=0);var o=t.eq(r);o.trigger("mouseenter");var s=n.$results.offset().top,a=o.offset().top,l=n.$results.scrollTop()+(a-s);0===r?n.$results.scrollTop(0):a-s<0&&n.$results.scrollTop(l)}})),e.on("results:next",(function(){var e=n.getHighlightedResults(),t=n.$results.find("[data-selected]"),i=t.index(e)+1;if(!(i>=t.length)){var r=t.eq(i);r.trigger("mouseenter");var o=n.$results.offset().top+n.$results.outerHeight(!1),s=r.offset().top+r.outerHeight(!1),a=n.$results.scrollTop()+s-o;0===i?n.$results.scrollTop(0):s>o&&n.$results.scrollTop(a)}})),e.on("results:focus",(function(e){e.element.addClass("select2-results__option--highlighted").attr("aria-selected","true"),n.$results.attr("aria-activedescendant",e.element.attr("id"))})),e.on("results:message",(function(e){n.displayMessage(e)})),$.fn.mousewheel&&this.$results.on("mousewheel",(function(e){var t=n.$results.scrollTop(),i=n.$results.get(0).scrollHeight-t+e.deltaY,r=e.deltaY>0&&t-e.deltaY<=0,o=e.deltaY<0&&i<=n.$results.height();r?(n.$results.scrollTop(0),e.preventDefault(),e.stopPropagation()):o&&(n.$results.scrollTop(n.$results.get(0).scrollHeight-n.$results.height()),e.preventDefault(),e.stopPropagation())})),this.$results.on("mouseup",".select2-results__option[data-selected]",(function(e){var t=$(this),i=t.data("data");"true"!==t.attr("data-selected")?n.trigger("select",{originalEvent:e,data:i}):n.options.get("multiple")?n.trigger("unselect",{originalEvent:e,data:i}):n.trigger("close",{})})),this.$results.on("mouseenter",".select2-results__option[data-selected]",(function(e){var t=$(this).data("data");n.getHighlightedResults().removeClass("select2-results__option--highlighted").attr("aria-selected","false"),n.trigger("results:focus",{data:t,element:$(this)})}))},t.prototype.getHighlightedResults=function(){return this.$results.find(".select2-results__option--highlighted")},t.prototype.destroy=function(){this.$results.remove()},t.prototype.ensureHighlightVisible=function(){var e=this.getHighlightedResults();if(0!==e.length){var t=this.$results.find("[data-selected]").index(e),n=this.$results.offset().top,i=e.offset().top,r=this.$results.scrollTop()+(i-n),o=i-n;r-=2*e.outerHeight(!1),t<=2?this.$results.scrollTop(0):(o>this.$results.outerHeight()||o<0)&&this.$results.scrollTop(r)}},t.prototype.template=function(e,t){var n=this.options.get("templateResult"),i=this.options.get("escapeMarkup"),r=n(e,t);null==r?t.style.display="none":"string"==typeof r?t.innerHTML=i(r):$(t).append(r)},t})),e.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}})),e.define("select2/selection/base",["jquery","../utils","../keys"],(function($,e,t){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=$
2('<span class="select2-selection"  aria-haspopup="true" aria-expanded="false"></span>');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,e},n.prototype.bind=function(e,n){var i=this,r=(e.id,e.id+"-results");this.options.get("minimumResultsForSearch"),this.container=e,this.$selection.on("focus",(function(e){i.trigger("focus",e)})),this.$selection.on("blur",(function(e){i._handleBlur(e)})),this.$selection.on("keydown",(function(e){i.trigger("keypress",e),e.which===t.SPACE&&e.preventDefault()})),e.on("results:focus",(function(e){i.$selection.attr("aria-activedescendant",e.data._resultId)})),e.on("selection:update",(function(e){i.update(e.data)})),e.on("open",(function(){i.$selection.attr("aria-expanded","true"),i.$selection.attr("aria-owns",r),i._attachCloseHandler(e)})),e.on("close",(function(){i.$selection.attr("aria-expanded","false"),i.$selection.removeAttr("aria-activedescendant"),i.$selection.removeAttr("aria-owns"),window.setTimeout((function(){i.$selection.focus()}),1),i._detachCloseHandler(e)})),e.on("enable",(function(){i.$selection.attr("tabindex",i._tabindex)})),e.on("disable",(function(){i.$selection.attr("tabindex","-1")}))},n.prototype._handleBlur=function(e){var t=this;window.setTimeout((function(){document.activeElement==t.$selection[0]||$.contains(t.$selection[0],document.activeElement)||t.trigger("blur",e)}),1)},n.prototype._attachCloseHandler=function(e){$(document.body).on("mousedown.select2."+e.id,(function(e){var t=$(e.target),n=t.closest(".select2");
2$(".select2.select2-container--open").each((function(){var e=$(this);this!=n[0]&&(e.data("element").select2("close"),setTimeout((function(){e.find("*:focus").blur(),t.focus()}),1))}))}))},n.prototype._detachCloseHandler=function(e){$(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})),e.define("select2/selection/single",["jquery","./base","../utils","../keys"],(function($,e,t,n){function i(){i.__super__.constructor.apply(this,arguments)}return t.Extend(i,e),i.prototype.render=function(){var e=i.__super__.render.call(this);return 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>'),e},i.prototype.bind=function(e,t){var n=this;i.__super__.bind.apply(this,arguments);var r=e.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.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(t){!e.isOpen()&&t.which>=48&&t.which<=90&&e.open()})),this.$selection.on("blur",(function(e){})),e.on("focus",(function(t){e.isOpen()||n.$selection.focus()})),e.on("selection:update",(function(e){n.update(e.data)}))},i.prototype.clear=function(){this.$selection.find(".select2-selection__rendered").empty()},i.prototype.display=function(e,t){var n=this.options.get("templateSelection");return this.options.get("escapeMarkup")(n(e,t))},i.prototype.selectionContainer=function(){return $("<span></span>")},i.prototype.update=function(e){if(0!==e.length){var n=e[0],i=this.$selection.find(".select2-selection__rendered"),r=t.entityDecode(this.display(n,i));i.empty().text(r),i.prop("title",n.title||n.text)}else this.clear()},i})),e.define("select2/selection/multiple",["jquery","./base","../utils"],(function($,e,t){function n(e,t){n.__super__.constructor.apply(this,arguments)}return t.Extend(n,e),n.prototype.render=function(){var e=n.__super__.render.call(this);return e.addClass("select2-selection--multiple"),e.html('<ul class="select2-selection__rendered" aria-live="polite" aria-relevant="additions removals" aria-atomic="true"></ul>'),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.options.get("disabled")){var t=$(this).parent().data("data");i.trigger("unselect",{originalEvent:e,data:t})}})),this.$selection.on("keydown",(function(t){!e.isOpen()&&t.which>=48&&t.which<=90&&e.open()})),e.on("focus",(function(){i.focusOnSearch()}))},n.prototype.clear=function(){this.$selection.find(".select2-selection__rendered").empty()},n.prototype.display=function(e,t){var n=this.options.get("templateSelection");return this.options.get("escapeMarkup")(n(e,t))},n.prototype.selectionContainer=function(){return $('<li class="select2-selection__choice"><span class="select2-selection__choice__remove" role="presentation" aria-hidden="true">&times;</span></li>')},n.prototype.focusOnSearch=function(){var e=this;void 0!==e.$search&&setTimeout((function(){e._keyUpPrevented=!0,e.$search.focus()}),1)},n.prototype.update=function(e){if(this.clear(),0!==e.length){for(var n=[],i=0;i<e.length;i++){var r=e[i],o=this.selectionContainer(),s=o.html(),a=this.display(r,o);"string"==typeof a&&(a=t.entityDecode(a.trim())),o.text(a),o.prepend(s),o.prop("title",r.title||r.text),o.data("data",r),n.push(o)}var l=this.$selection.find(".select2-selection__rendered");t.appendMany(l,n)}},n})),e.define("select2/selection/placeholder",["../utils"],(function(e){function t(e,t,n){this.placeholder=this.normalizePlaceholder(n.get("placeholder")),e.call(this,t,n)}return t.prototype.normalizePlaceholder=function(e,t){return"string"==typeof t&&(t={id:"",text:t}),t},t.prototype.createPlaceholder=function(t,n){var i=this.selectionContainer();return i.text(e.entityDecode(this.display(n))),i.addClass("select2-selection__placeholder").removeClass("select2-selection__choice"),i},t.prototype.update=function(e,t){var n=1==t.length&&t[0].id!=this.placeholder.id;if(t.length>1||n)return e.call(this,t);this.clear();var i=this.createPlaceholder(this.placeholder);this.$selection.find(".select2-selection__rendered").append(i)},t}
2)),e.define("select2/selection/allowClear",["jquery","../keys"],(function($,e){function t(){}return t.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)}))},t.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"),r=0;r<i.length;r++){var o={data:i[r]};if(this.trigger("unselect",o),o.prevented)return}this.$element.val(this.placeholder.id).trigger("change"),this.trigger("toggle",{})}}},t.prototype._handleKeyboardClear=function(t,n,i){i.isOpen()||n.which!=e.DELETE&&n.which!=e.BACKSPACE||this._handleClear(n)},t.prototype.update=function(e,t){if(e.call(this,t),!(this.$selection.find(".select2-selection__placeholder").length>0||0===t.length)){var n=$('<span class="select2-selection__clear">&times;</span>');n.data("data",t),this.$selection.find(".select2-selection__rendered").prepend(n)}},t})),e.define("select2/selection/search",["jquery","../utils","../keys"],(function($,e,t){function n(e,t,n){e.call(this,t,n)}return n.prototype.render=function(e){var t=$('<li class="select2-search select2-search--inline"><input class="select2-search__field" type="text" tabindex="-1" autocomplete="off" autocorrect="off" autocapitalize="none" spellcheck="false" role="textbox" aria-autocomplete="list" /></li>');this.$searchContainer=t,this.$search=t.find("input");var n=e.call(this);return this._transferTabIndex(),n},n.prototype.bind=function(e,n,i){var r=this,o=n.id+"-results";e.call(this,n,i),n.on("open",(function(){r.$search.attr("aria-owns",o),r.$search.trigger("focus")})),n.on("close",(function(){r.$search.val(""),r.$search.removeAttr("aria-activedescendant"),r.$search.removeAttr("aria-owns"),r.$search.trigger("focus")})),n.on("enable",(function(){r.$search.prop("disabled",!1),r._transferTabIndex()})),n.on("disable",(function(){r.$search.prop("disabled",!0)})),n.on("focus",(function(e){r.$search.trigger("focus")})),n.on("results:focus",(function(e){r.$search.attr("aria-activedescendant",e.data._resultId)})),this.$selection.on("focusin",".select2-search--inline",(function(e){r.trigger("focus",e)})),this.$selection.on("focusout",".select2-search--inline",(function(e){r._handleBlur(e)})),this.$selection.on("keydown",".select2-search--inline",(function(e){if(e.stopPropagation(),r.trigger("keypress",e),r._keyUpPrevented=e.isDefaultPrevented(),e.which===t.BACKSPACE&&""===r.$search.val()){var i=r.$searchContainer.prev(".select2-selection__choice");if(i.length>0){var o=i.data("data");r.searchRemoveChoice(o),e.preventDefault()}}else e.which===t.ENTER&&(n.open(),e.preventDefault())}));var s=document.documentMode,a=s&&s<=11;this.$selection.on("input.searchcheck",".select2-search--inline",(function(e){a?r.$selection.off("input.search input.searchcheck"):r.$selection.off("keyup.search")})),this.$selection.on("keyup.search input.search",".select2-search--inline",(function(e){if(a&&"input"===e.type)r.$selection.off("input.search input.searchcheck");else{var n=e.which;n!=t.SHIFT&&n!=t.CTRL&&n!=t.ALT&&n!=t.TAB&&r.handleSearch(e)}}))},n.prototype._transferTabIndex=function(e){this.$search.attr("tabindex",this.$selection.attr("tabindex")),this.$selection.attr("tabindex","-1")},n.prototype.createPlaceholder=function(e,t){this.$search.attr("placeholder",t.text)},n.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.focus()},n.prototype.handleSearch=function(){if(this.resizeSearch(),!this._keyUpPrevented){var e=this.$search.val();this.trigger("query",{term:e})}this._keyUpPrevented=!1},n.prototype.searchRemoveChoice=function(e,t){this.trigger("unselect",{data:t}),this.$search.val(t.text),this.handleSearch()},n.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)},n})),e.define("select2/selection/eventRelay",["jquery"],(function($){function e(){}return e.prototype.bind=function(e,t,n){var i=this,r=["open","opening","close","closing","select","selecting","unselect","unselecting"],o=["opening","closing","selecting","unselecting"];e.call(this,t,n),t.on("*",(function(e,t){if(-1!==$.inArray(e,r)){t=t||{};var n=$.Event("select2:"+e,{params:t});i.$element.trigger(n),-1!==$.inArray(e,o)&&(t.prevented=n.isDefaultPrevented())}}))},e})),e.define("select2/translation",["jquery","require"],(function($,require){function e(e){this.dict=e||{}}return e.prototype.all=function(){return this.dict},e.prototype.get=function(e){return this.dict[e]},e.prototype.extend=function(e){this.dict=$.extend({},e.all(),this.dict)},e._cache={},e.loadPath=function(t){if(!(t in e._cache)){var n=require(t);e._cache[t]=n}return new e(e._cache[t])},e})),e.define("select2/diacritics",[],(function(){return{"Ⓐ":"A",A:"A",À:"A",Á:"A",Â:"A",Ầ:"A",á
2º¤:"A",Ẫ:"A",Ẩ:"A",Ã:"A",Ā:"A",Ă:"A",Ằ:"A",Ắ:"A",Ẵ:"A",Ẳ:"A",Ȧ:"A",Ç :"A",Ä:"A",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Æ¢:"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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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",Ά:"Α",Έ:"Ε",Ή:"Η",Ί:"Ι",Ϊ:"Ι",Ό:"Ο",Ύ:"Υ",Ϋ:"Υ",Ώ:"Ω",ά:"α",έ:"ε",ή:"η",ί:"ι",ϊ:"ι",ΐ:"ι",ό:"ο",ύ:"υ",ϋ:"υ",ΰ:"υ",ω:"ω",ς:"σ"}})),e.define("select2/data/base",["../utils"],(function(e){function t(e,n){t.__super__.constructor.call(this)}return e.Extend(t,e.Observable),t.prototype.current=function(e){throw new Error("The `current` method must be defined in child classes.")},t.prototype.query=function(e,t){throw new Error("The `query` method must be defined in child classes.")},t.prototype.bind=function(e,t){},t.prototype.destroy=function(){},t.prototype.generateResultId=function(t,n){var i="";return i+=null!=t?t.id:e.generateChars(4),i+="-result-",i+=e.generateChars(4),null!=n.id?i+="-"+n.id.toString():i+="-"+e.generateChars(4),i},t})),e.define("select2/data/select",["./base","../utils","jquery"],(function(e,t,$){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;
2this.$element.find(":selected").each((function(){var e=$(this),i=n.item(e);t.push(i)})),e(t)},n.prototype.select=function(e){var t=this;if(e.selected=!0,$(e.element).is("option"))return e.element.selected=!0,void this.$element.trigger("change");if(this.$element.prop("multiple"))this.current((function(n){var i=[];(e=[e]).push.apply(e,n);for(var r=0;r<e.length;r++){var o=e[r].id;-1===$.inArray(o,i)&&i.push(o)}t.$element.val(i),t.$element.trigger("change")}));else{var n=e.id;this.$element.val(n),this.$element.trigger("change")}},n.prototype.unselect=function(e){var t=this;if(this.$element.prop("multiple")){if(e.selected=!1,$(e.element).is("option"))return e.element.selected=!1,void this.$element.trigger("change");this.current((function(n){for(var i=[],r=0;r<n.length;r++){var o=n[r].id;o!==e.id&&-1===$.inArray(o,i)&&i.push(o)}t.$element.val(i),t.$element.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(){$.removeData(this,"data")}))},n.prototype.query=function(e,t){var n=[],i=this;this.$element.children().each((function(){var t=$(this);if(t.is("option")||t.is("optgroup")){var r=i.item(t),o=i.matches(e,r);null!==o&&n.push(o)}})),t({results:n})},n.prototype.addOptions=function(e){t.appendMany(this.$element,e)},n.prototype.option=function(e){var t;e.children?(t=document.createElement("optgroup")).label=e.text:void 0!==(t=document.createElement("option")).textContent?t.textContent=e.text:t.innerText=e.text,void 0!==e.id&&(t.value=e.id),e.disabled&&(t.disabled=!0),e.selected&&(t.selected=!0),e.title&&(t.title=e.title);var n=$(t),i=this._normalizeItem(e);return i.element=t,$.data(t,"data",i),n},n.prototype.item=function(e){var t={};if(null!=(t=$.data(e[0],"data")))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")};for(var n=e.children("option"),i=[],r=0;r<n.length;r++){var o=$(n[r]),s=this.item(o);i.push(s)}t.children=i}return(t=this._normalizeItem(t)).element=e[0],$.data(e[0],"data",t),t},n.prototype._normalizeItem=function(e){$.isPlainObject(e)||(e={id:e,text:e});var t={selected:!1,disabled:!1};return null!=(e=$.extend({},{text:""},e)).id&&(e.id=e.id.toString()),null!=e.text&&(e.text=e.text.toString()),null==e._resultId&&e.id&&(e._resultId=this.generateResultId(this.container,e)),$.extend({},t,e)},n.prototype.matches=function(e,t){return this.options.get("matcher")(e,t)},n})),e.define("select2/data/array",["./select","../utils","jquery"],(function(e,t,$){function n(e,t){var i=t.get("data")||[];n.__super__.constructor.call(this,e,t),this.addOptions(this.convertToOptions(i))}return t.Extend(n,e),n.prototype.select=function(e){var t=this.$element.find("option").filter((function(t,n){return n.value==e.id.toString()}));0===t.length&&(t=this.option(e),this.addOptions(t)),n.__super__.select.call(this,e)},n.prototype.convertToOptions=function(e){var n=this,i=this.$element.find("option"),r=i.map((function(){return n.item($(this)).id})).get(),o=[];function s(e){return function(){return $(this).val()==e.id}}for(var a=0;a<e.length;a++){var l=this._normalizeItem(e[a]);if($.inArray(l.id,r)>=0){var c=i.filter(s(l)),u=this.item(c),d=$.extend(!0,{},l,u),p=this.option(d);c.replaceWith(p)}else{var h=this.option(l);if(l.children){var f=this.convertToOptions(l.children);t.appendMany(h,f)}o.push(h)}}return o},n})),e.define("select2/data/ajax",["./array","../utils","jquery"],(function(e,t,$){function n(e,t){this.ajaxOptions=this._applyDefaults(t.get("ajax")),null!=this.ajaxOptions.processResults&&(this.processResults=this.ajaxOptions.processResults),n.__super__.constructor.call(this,e,t)}return t.Extend(n,e),n.prototype._applyDefaults=function(e){var t={data:function(e){return $.extend({},e,{q:e.term})},transport:function(e,t,n){var i=$.ajax(e);return i.then(t),i.fail(n),i}};return $.extend({},t,e,!0)},n.prototype.processResults=function(e){return e},n.prototype.query=function(e,t){var n=this;null!=this._request&&($.isFunction(this._request.abort)&&this._request.abort(),this._request=null);var i=$.extend({type:"GET"},this.ajaxOptions);function r(){var r=i.transport(i,(function(i){var r=n.processResults(i,e);n.options.get("debug")&&window.console&&console.error&&(r&&r.results&&$.isArray(r.results)||console.error("Select2: The AJAX results did not return an array in the `results` key of the response.")),t(r),n.c
2ontainer.focusOnActiveElement()}),(function(){r.status&&"0"===r.status||n.trigger("results:message",{message:"errorLoading"})}));n._request=r}"function"==typeof i.url&&(i.url=i.url.call(this.$element,e)),"function"==typeof i.data&&(i.data=i.data.call(this.$element,e)),this.ajaxOptions.delay&&null!=e.term?(this._queryTimeout&&window.clearTimeout(this._queryTimeout),this._queryTimeout=window.setTimeout(r,this.ajaxOptions.delay)):r()},n})),e.define("select2/data/tags",["jquery"],(function($){function e(e,t,n){var i=n.get("tags"),r=n.get("createTag");void 0!==r&&(this.createTag=r);var o=n.get("insertTag");if(void 0!==o&&(this.insertTag=o),e.call(this,t,n),$.isArray(i))for(var s=0;s<i.length;s++){var a=i[s],l=this._normalizeItem(a),c=this.option(l);this.$element.append(c)}}return e.prototype.query=function(e,t,n){var i=this;function r(e,o){for(var s=e.results,a=0;a<s.length;a++){var l=s[a],c=null!=l.children&&!r({results:l.children},!0);if((l.text||"").toUpperCase()===(t.term||"").toUpperCase()||c)return!o&&(e.data=s,void n(e))}if(o)return!0;var u=i.createTag(t);if(null!=u){var d=i.option(u);d.attr("data-select2-tag",!0),i.addOptions([d]),i.insertTag(s,u)}e.results=s,n(e)}this._removeOldTags(),null!=t.term&&null==t.page?e.call(this,t,r):e.call(this,t,n)},e.prototype.createTag=function(e,t){var n=$.trim(t.term);return""===n?null:{id:n,text:n}},e.prototype.insertTag=function(e,t,n){t.unshift(n)},e.prototype._removeOldTags=function(e){this._lastTag,this.$element.find("option[data-select2-tag]").each((function(){this.selected||$(this).remove()}))},e})),e.define("select2/data/tokenizer",["jquery"],(function($){function e(e,t,n){var i=n.get("tokenizer");void 0!==i&&(this.tokenizer=i),e.call(this,t,n)}return 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);if(!i.$element.find("option").filter((function(){return $(this).val()===t.id})).length){var n=i.option(t);n.attr("data-select2-tag",!0),i._removeOldTags(),i.addOptions([n])}o(t)}function o(e){i.trigger("select",{data:e})}t.term=t.term||"";var s=this.tokenizer(t,this.options,r);s.term!==t.term&&(this.$search.length&&(this.$search.val(s.term),this.$search.focus()),t.term=s.term),e.call(this,t,n)},e.prototype.tokenizer=function(e,t,n,i){for(var r=n.get("tokenSeparators")||[],o=t.term,s=0,a=this.createTag||function(e){return{id:e.term,text:e.term}};s<o.length;){var l=o[s];if(-1!==$.inArray(l,r)){var c=o.substr(0,s),u=a($.extend({},t,{term:c}));null!=u?(i(u),o=o.substr(s+1)||"",s=0):s++}else s++}return{term:o}},e})),e.define("select2/data/minimumInputLength",[],(function(){function e(e,t,n){this.minimumInputLength=n.get("minimumInputLength"),e.call(this,t,n)}return e.prototype.query=function(e,t,n){t.term=t.term||"",t.term.length<this.minimumInputLength?this.trigger("results:message",{message:"inputTooShort",args:{minimum:this.minimumInputLength,input:t.term,params:t}}):e.call(this,t,n)},e})),e.define("select2/data/maximumInputLength",[],(function(){function e(e,t,n){this.maximumInputLength=n.get("maximumInputLength"),e.call(this,t,n)}return e.prototype.query=function(e,t,n){t.term=t.term||"",this.maximumInputLength>0&&t.term.length>this.maximumInputLength?this.trigger("results:message",{message:"inputTooLong",args:{maximum:this.maximumInputLength,input:t.term,params:t}}):e.call(this,t,n)},e})),e.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(r){var o=null!=r?r.length:0;i.maximumSelectionLength>0&&o>=i.maximumSelectionLength?i.trigger("results:message",{message:"maximumSelected",args:{maximum:i.maximumSelectionLength}}):e.call(i,t,n)}))},e})),e.define("select2/dropdown",["jquery","./utils"],(function($,e){function t(e,n){this.$element=e,this.options=n,t.__super__.constructor.call(this)}return e.Extend(t,e.Observable),t.prototype.render=function(){var e=$
2('<span class="select2-dropdown"><span class="select2-results"></span></span>');return e.attr("dir",this.options.get("dir")),this.$dropdown=e,e},t.prototype.bind=function(){},t.prototype.position=function(e,t){},t.prototype.destroy=function(){this.$dropdown.remove()},t})),e.define("select2/dropdown/search",["jquery","../utils"],(function($,e){function t(){}return t.prototype.render=function(e){var t=e.call(this),n=$('<span class="select2-search select2-search--dropdown"><input class="select2-search__field" type="text" tabindex="-1" autocomplete="off" autocorrect="off" autocapitalize="none" spellcheck="false" role="combobox" aria-autocomplete="list" aria-expanded="true" /></span>');return this.$searchContainer=n,this.$search=n.find("input"),t.prepend(n),t},t.prototype.bind=function(e,t,n){var i=this,r=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){$(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",r),i.$search.focus(),window.setTimeout((function(){i.$search.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.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){if(!this._keyUpPrevented){var t=this.$search.val();this.trigger("query",{term:t})}this._keyUpPrevented=!1},t.prototype.showSearch=function(e,t){return!0},t})),e.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 r=t[i];this.placeholder.id===r.id&&n.splice(i,1)}return n},e})),e.define("select2/dropdown/infiniteScroll",["jquery"],(function($){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=$.contains(document.documentElement,i.$loadingMore[0]);!i.loading&&e&&i.$results.offset().top+i.$results.outerHeight(!1)+50>=i.$loadingMore.offset().top+i.$loadingMore.outerHeight(!1)&&i.loadMore()}))},e.prototype.loadMore=function(){this.loading=!0;var e=$.extend({},{page:1},this.lastParams);e.page++,this.trigger("query:append",e)},e.prototype.showLoadingMore=function(e,t){return t.pagination&&t.pagination.more}
2,e.prototype.createLoadingMore=function(){var e=$('<li class="select2-results__option select2-results__option--load-more"role="option" aria-disabled="true"></li>'),t=this.options.get("translations").get("loadingMore");return e.html(t(this.lastParams)),e},e})),e.define("select2/dropdown/attachBody",["jquery","../utils"],(function($,e){function t(e,t,n){this.$dropdownParent=n.get("dropdownParent")||$(document.body),e.call(this,t,n)}return t.prototype.bind=function(e,t,n){var i=this,r=!1;e.call(this,t,n),t.on("open",(function(){i._showDropdown(),i._attachPositioningHandler(t),r||(r=!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()}))},t.prototype.destroy=function(e){e.call(this),this.$dropdownContainer.remove()},t.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},t.prototype.render=function(e){var t=$("<span></span>"),n=e.call(this);return t.append(n),this.$dropdownContainer=t,t},t.prototype._hideDropdown=function(e){this.$dropdownContainer.detach()},t.prototype._attachPositioningHandler=function(t,n){var i=this,r="scroll.select2."+n.id,o="resize.select2."+n.id,s="orientationchange.select2."+n.id,a=this.$container.parents().filter(e.hasScroll);a.each((function(){$(this).data("select2-scroll-position",{x:$(this).scrollLeft(),y:$(this).scrollTop()})})),a.on(r,(function(e){var t=$(this).data("select2-scroll-position");$(this).scrollTop(t.y)})),$(window).on(r+" "+o+" "+s,(function(e){i._positionDropdown(),i._resizeDropdown()}))},t.prototype._detachPositioningHandler=function(t,n){var i="scroll.select2."+n.id,r="resize.select2."+n.id,o="orientationchange.select2."+n.id;this.$container.parents().filter(e.hasScroll).off(i),$(window).off(i+" "+r+" "+o)}
2,t.prototype._positionDropdown=function(){var e=$(window),t=this.$dropdown.hasClass("select2-dropdown--above"),n=this.$dropdown.hasClass("select2-dropdown--below"),i=null,r=this.$container.offset();r.bottom=r.top+this.$container.outerHeight(!1);var o={height:this.$container.outerHeight(!1)};o.top=r.top,o.bottom=r.top+o.height;var s={height:this.$dropdown.outerHeight(!1)},a={top:e.scrollTop(),bottom:e.scrollTop()+e.height()},l=a.top<r.top-s.height,c=a.bottom>r.bottom+s.height,u={left:r.left,top:o.bottom},d=this.$dropdownParent;"static"===d.css("position")&&(d=d.offsetParent());var p=d.offset();u.top-=p.top,u.left-=p.left,t||n||(i="below"),c||!l||t?!l&&c&&t&&(i="below"):i="above",("above"==i||t&&"below"!==i)&&(u.top=o.top-p.top-s.height),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(u)},t.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)},t.prototype._showDropdown=function(e){this.$dropdownContainer.appendTo(this.$dropdownParent),this._positionDropdown(),this._resizeDropdown()},t})),e.define("select2/dropdown/minimumResultsForSearch",[],(function(){function e(t){for(var n=0,i=0;i<t.length;i++){var r=t[i];r.children?n+=e(r.children):n++}return n}function t(e,t,n,i){this.minimumResultsForSearch=n.get("minimumResultsForSearch"),this.minimumResultsForSearch<0&&(this.minimumResultsForSearch=1/0),e.call(this,t,n,i)}return t.prototype.showSearch=function(t,n){return!(e(n.data.results)<this.minimumResultsForSearch)&&t.call(this,n)},t})),e.define("select2/dropdown/selectOnClose",[],(function(){function e(){}return e.prototype.bind=function(e,t,n){var i=this;e.call(this,t,n),t.on("close",(function(e){i._handleSelectOnClose(e)}))},e.prototype._handleSelectOnClose=function(e,t){if(t&&null!=t.originalSelect2Event){var n=t.originalSelect2Event;if("select"===n._type||"unselect"===n._type)return}var i=this.getHighlightedResults();if(!(i.length<1)){var r=i.data("data");null!=r.element&&r.element.selected||null==r.element&&r.selected||this.trigger("select",{data:r})}},e})),e.define("select2/dropdown/closeOnSelect",[],(function(){function e(){}return e.prototype.bind=function(e,t,n){var i=this;e.call(this,t,n),t.on("select",(function(e){i._selectTriggered(e)})),t.on("unselect",(function(e){i._selectTriggered(e)}))},e.prototype._selectTriggered=function(e,t){var n=t.originalEvent;n&&n.ctrlKey||this.trigger("close",{originalEvent:n,originalSelect2Event:t})},e})),e.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,n="Please delete "+t+" character";return 1!=t&&(n+="s"),n},inputTooShort:function(e){return"Please enter "+(e.minimum-e.input.length)+" or more characters"},loadingMore:function(){return"Loading more results…"},maximumSelected:function(e){var t="You can only select "+e.maximum+" item";return 1!=e.maximum&&(t+="s"),t},noResults:function(){return"No results found"},searching:function(){return"Searching…"}}})),e.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($,require,e,t,n,i,r,o,s,a,l,c,u,d,p,h,f,m,g,v,y,w,_,b,A,x,C,E,S){function O(){this.reset()}return O.prototype.apply=function(c){if(null==(c=$.extend(!0,{},this.defaults,c)).dataAdapter){if(null!=c.ajax?c.dataAdapter=p:null!=c.data?c.dataAdapter=d:c.dataAdapter=u,c.minimumInputLength>0&&(c.dataAdapter=a.Decorate(c.dataAdapter,m)),c.maximumInputLength>0&&(c.dataAdapter=a.Decorate(c.dataAdapter,g)),c.maximumSelectionLength>0&&(c.dataAdapter=a.Decorate(c.dataAdapter,v)),c.tags&&(c.dataAdapter=a.Decorate(c.dataAdapter,h)),null==c.tokenSeparators&&null==c.tokenizer||(c.dataAdapter=a.Decorate(c.dataAdapter,f)),null!=c.query){var S=require(c.amdBase+"compat/query");c.dataAdapter=a.Decorate(c.dataAdapter,S)}if(null!=c.initSelection){var O=require(c.amdBase+"compat/initSelection");c.dataAdapter=a.Decorate(c.dataAdapter,O)}}if(null==c.resultsAdapter&&(c.resultsAdapter=e,null!=c.ajax&&(c.resultsAdapter=a.Decorate(c.resultsAdapter,b)),null!=c.placeholder&&(c.resultsAdapter=a.Decorate(c.resultsAdapter,_)),c.selectOnClose&&(c.resultsAdapter=a.Decorate(c.resultsAdapter,C))),null==c.dropdownAdapter){if(c.multiple)c.dropdownAdapter=y;else{var T=a.Decorate(y,w);c.dropdownAdapter=T}if(0!==c.minimumResultsForSearch&&(c.dropdownAdapter=a.Decorate(c.dropdownAdapter,x)),c.closeOnSelect&&(c.dropdownAdapter=a.Decorate(c.dropdownAdapter,E)),null!=c.dropdownCssClass||null!=c.dropdownCss||null!=c.adaptDropdownCssClass){var L=require(c.amdBase+"compat/dropdownCss");c.dropdownAdapter=a.Decorate(c.dropdownAdapter,L)}c.dropdownAdapter=a.Decorate(c.dropdownAdapter,A)}if(null==c.selectionAdapter){if(c.multiple?c.selectionAdapter=n:c.selectionAdapter=t,null!=c.placeholder&&(c.selectionAdapter=a.Decorate(c.selectionAdapter,i)),c.allowClear&&(c.selectionAdapter=a.Decorate(c.selectionAdapter,r)),c.multiple&&(c.selectionAdapter=a.Decorate(c.selectionAdapter,o)),null!=c.containerCssClass||null!=c.containerCss||null!=c.adaptContainerCssClass){var D=require(c.amdBase+"compat/containerCss");c.selectionAdapter=a.Decorate(c.selectionAdapter,D)}
2c.selectionAdapter=a.Decorate(c.selectionAdapter,s)}if("string"==typeof c.language)if(c.language.indexOf("-")>0){var k=c.language.split("-")[0];c.language=[c.language,k]}else c.language=[c.language];if($.isArray(c.language)){var q=new l;c.language.push("en");for(var I=c.language,j=0;j<I.length;j++){var P=I[j],R={};try{R=l.loadPath(P)}catch(e){try{P=this.defaults.amdLanguageBase+P,R=l.loadPath(P)}catch(e){c.debug&&window.console&&console.warn&&console.warn('Select2: The language file for "'+P+'" could not be automatically loaded. A fallback will be used instead.');continue}}q.extend(R)}c.translations=q}else{var M=l.loadPath(this.defaults.amdLanguageBase+"en"),U=new l(c.language);U.extend(M),c.translations=U}return c},O.prototype.reset=function(){function e(e){function t(e){return c[e]||e}return e.replace(/[^\u0000-\u007E]/g,t)}function t(n,i){if(""===$.trim(n.term))return i;if(i.children&&i.children.length>0){for(var r=$.extend(!0,{},i),o=i.children.length-1;o>=0;o--)null==t(n,i.children[o])&&r.children.splice(o,1);return r.children.length>0?r:t(n,r)}var s=e(i.text).toUpperCase(),a=e(n.term).toUpperCase();return s.indexOf(a)>-1?i:null}this.defaults={amdBase:"./",amdLanguageBase:"./i18n/",closeOnSelect:!0,debug:!1,dropdownAutoWidth:!1,escapeMarkup:a.escapeMarkup,language:S,matcher:t,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"}},O.prototype.set=function(e,t){var n={};n[$.camelCase(e)]=t;var i=a._convertData(n);$.extend(this.defaults,i)},new O})),e.define("select2/options",["require","jquery","./defaults","./utils"],(function(require,$,e,t){function n(n,i){if(this.options=n,null!=i&&this.fromElement(i),this.options=e.apply(this.options),i&&i.is("input")){var r=require(this.get("amdBase")+"compat/inputData");this.options.dataAdapter=t.Decorate(this.options.dataAdapter,r)}}return n.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&&(e.prop("dir")?this.options.dir=e.prop("dir"):e.closest("[dir]").prop("dir")?this.options.dir=e.closest("[dir]").prop("dir"):this.options.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 i={};i=$.fn.jquery&&"1."==$.fn.jquery.substr(0,2)&&e[0].dataset?$.extend(!0,{},e[0].dataset,e.data()):e.data();var r=$.extend(!0,{},i);for(var o in r=t._convertData(r))$.inArray(o,n)>-1||($.isPlainObject(this.options[o])?$.extend(this.options[o],r[o]):this.options[o]=r[o]);return this},n.prototype.get=function(e){return this.options[e]},n.prototype.set=function(e,t){this.options[e]=t},n})),e.define("select2/core",["jquery","./options","./utils","./keys"],(function($,e,t,n){var i=function(t,n){null!=t.data("select2")&&t.data("select2").destroy(),this.$element=t,this.id=this._generateId(t),n=n||{},this.options=new e(n,t),i.__super__.constructor.call(this);var r=t.attr("tabindex")||0;t.data("old-tabindex",r),t.attr("tabindex","-1");var o=this.options.get("dataAdapter");this.dataAdapter=new o(t,this.options);var s=this.render();this._placeContainer(s);var a=this.options.get("selectionAdapter");this.selection=new a(t,this.options),this.$selection=this.selection.render(),this.selection.position(this.$selection,s);var l=this.options.get("dropdownAdapter");this.dropdown=new l(t,this.options),this.$dropdown=this.dropdown.render(),this.dropdown.position(this.$dropdown,s);var c=this.options.get("resultsAdapter");this.results=new c(t,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})})),t.addClass("select2-hidden-accessible"),t.attr("aria-hidden","true"),this._syncAttributes(),t.data("select2",this)};return t.Extend(i,t.Observable),i.prototype._generateId=function(e){return"select2-"+(null!=e.attr("id")?e.attr("id"):null!=e.attr("name")?e.attr("name")+"-"+t.generateChars(2):t.generateChars(4)).replace(/(:|\.|\[|\]|,)/g,"")},i.prototype._placeContainer=function(e){e.insertAfter(this.$element);var t=this._resolveWidth(this.$element,this.options.get("width"));null!=t&&e.css("width",t)},i.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 r=e.outerWidth(!1);return r<=0?"auto":r+"px"}if("style"==t){var o=e.attr("style");if("string"!=typeof o)return null;for(var s=o.split(";"),a=0,l=s.length;a<l;a+=1){var c=s[a].replace(/\s/g,"").match(n);if(null!==c&&c.length>=1)return c[1]}return null}return t},i.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)},i.prototype._registerDomEvents=function(){var e=this;this.$element.on("change.select2",(function(){e.dataAdapter.current((function(t){e.trigger("selection:update",{data:t})}))})),this.$element.on("focus.select2",(function(t){e.trigger("focus",t)})),this._syncA=t.bind(this._syncAttributes,this),this._syncS=t.bind(this._syncSubtree,this),this.$element[0].attachEvent&&this.$element[0].attachEvent("onpropertychange",this._syncA);var n=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver;null!=n?(this._observer=new n((function(t){$.each(t,e._syncA),$.each(t,e._syncS)})),this._observer.observe(this.$element[0],{attributes:!0,childList:!0,subtree:!1})):this.$element[0].addEventListener&&(this.$element[0].addEventListener("DOMAttrModified",e._syncA,!1),this.$element[0].addEventListener("DOMNodeInserted",e._syncS,!1),this.$element[0].addEventListener("DOMNodeRemoved",e._syncS,!1))},i.prototype._registerDataEvents=function(){var e=this;this.dataAdapter.on("*",(function(t,n){e.trigger(t,n)}
2))},i.prototype._registerSelectionEvents=function(){var e=this,t=["toggle","focus"];this.selection.on("toggle",(function(){e.toggleDropdown()})),this.selection.on("focus",(function(t){e.focus(t)})),this.selection.on("*",(function(n,i){-1===$.inArray(n,t)&&e.trigger(n,i)}))},i.prototype._registerDropdownEvents=function(){var e=this;this.dropdown.on("*",(function(t,n){e.trigger(t,n)}))},i.prototype._registerResultsEvents=function(){var e=this;this.results.on("*",(function(t,n){e.trigger(t,n)}))},i.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("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("open",(function(){setTimeout((function(){e.focusOnActiveElement()}),1)})),$(document).on("keydown",(function(t){var i=t.which;if(e.isOpen()){i===n.ESC||i===n.UP&&t.altKey?(e.close(),t.preventDefault()):i===n.ENTER||i===n.TAB?(e.trigger("results:select",{}),t.preventDefault()):i===n.SPACE&&t.ctrlKey?(e.trigger("results:toggle",{}),t.preventDefault()):i===n.UP?(e.trigger("results:previous",{}),t.preventDefault()):i===n.DOWN&&(e.trigger("results:next",{}),t.preventDefault());var r=e.$dropdown.find(".select2-search__field");r.length||(r=e.$container.find(".select2-search__field")),i===n.DOWN||i===n.UP?e.focusOnActiveElement():(r.focus(),setTimeout((function(){e.focusOnActiveElement()}),1e3))}else e.hasFocus()&&(i!==n.ENTER&&i!==n.SPACE&&i!==n.DOWN||(e.open(),t.preventDefault()))}))},i.prototype.focusOnActiveElement=function(){this.isOpen()&&!t.isTouchscreen()&&this.$results.find("li.select2-results__option--highlighted").focus()},i.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",{})},i.prototype._syncSubtree=function(e,t){var n=!1,i=this;if(!e||!e.target||"OPTION"===e.target.nodeName||"OPTGROUP"===e.target.nodeName){if(t)if(t.addedNodes&&t.addedNodes.length>0)for(var r=0;r<t.addedNodes.length;r++)t.addedNodes[r].selected&&(n=!0);else t.removedNodes&&t.removedNodes.length>0&&(n=!0);else n=!0;n&&this.dataAdapter.current((function(e){i.trigger("selection:update",{data:e})}))}},i.prototype.trigger=function(e,t){var n=i.__super__.trigger,r={open:"opening",close:"closing",select:"selecting",unselect:"unselecting"};if(void 0===t&&(t={}),e in r){var o=r[e],s={prevented:!1,name:e,args:t};if(n.call(this,o,s),s.prevented)return void(t.prevented=!0)}n.call(this,e,t)},i.prototype.toggleDropdown=function(){this.options.get("disabled")||(this.isOpen()?this.close():this.open())},i.prototype.open=function(){this.isOpen()||this.trigger("query",{})},i.prototype.close=function(){this.isOpen()&&this.trigger("close",{})},i.prototype.isOpen=function(){return this.$container.hasClass("select2-container--open")},i.prototype.hasFocus=function(){return this.$container.hasClass("select2-container--focus")},i.prototype.focus=function(e){this.hasFocus()||(this.$container.addClass("select2-container--focus"),this.trigger("focus",{}))},i.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)},i.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},i.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.'),null==e||0===e.length)return this.$element.val();var t=e[0];$.isArray(t)&&(t=$.map(t,(function(e){return e.toString()}))),this.$element.val(t).trigger("change")},i.prototype.destroy=function(){this.$container.remove(),this.$element[0].detachEvent&&this.$element[0].detachEvent("onpropertychange",this._syncA),null!=this._observer?(this._observer.disconnect(),this._observer=null):this.$element[0].removeEventListener&&(this.$element[0].removeEventListener("DOMAttrModified",this._syncA,!1),this.$element[0].removeEventListener("DOMNodeInserted",this._syncS,!1),this.$element[0].removeEventListener("DOMNodeRemoved",this._syncS,!1)),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}
2,i.prototype.render=function(){var e=$('<span class="select2 select2-container"><span class="selection"></span><span class="dropdown-wrapper" aria-hidden="true"></span></span>');return e.attr("dir",this.options.get("dir")),this.$container=e,this.$container.addClass("select2-container--"+this.options.get("theme")),e.data("element",this.$element),e},i})),e.define("jquery-mousewheel",["jquery"],(function($){return $})),e.define("jquery.select2",["jquery","jquery-mousewheel","./select2/core","./select2/defaults"],(function($,e,t,n){if(null==$.fn.selectWoo){var i=["open","close","destroy"];$.fn.selectWoo=function(e){if("object"==typeof(e=e||{}))return this.each((function(){var n=$.extend(!0,{},e);new t($(this),n)})),this;if("string"==typeof e){var n,r=Array.prototype.slice.call(arguments,1);return this.each((function(){var t=$(this).data("select2");null==t&&window.console&&console.error&&console.error("The select2('"+e+"') method was called on an element that is not using Select2."),n=t[e].apply(t,r)})),$.inArray(e,i)>-1?this:n}throw new Error("Invalid arguments for Select2: "+e)}}return null!=$.fn.select2&&null!=$.fn.select2.defaults&&($.fn.selectWoo.defaults=$.fn.select2.defaults),null==$.fn.selectWoo.defaults&&($.fn.selectWoo.defaults=n),$.fn.select2=$.fn.select2||$.fn.selectWoo,t})),{define:e.define,require:e.require}}(),t=e.require("jquery.select2");return jQuery.fn.select2.amd=e,jQuery.fn.selectWoo.amd=e,t})?n.apply(exports,i):n)||(e.exports=r)},609:e=>{"use strict";e.exports=jQuery}},t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={exports:{}};return e[i](r,r.exports,n),r.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(exports,e)=>{for(var t in e)n.o(e,t)&&!n.o(exports,t)&&Object.defineProperty(exports,t,{enumerable:!0,get:e[t]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";var e=n(609),t=n.n(e),i=n(808),r=n.n(i);function o(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}const s=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.form=t,this.utmz={},this.loaded={utmz:!1}}var t,n,i;return t=e,(n=[{key:"add",value:function(){r().get("__utmzz")?this.loaded.utmz=!0:document.addEventListener("utmz_loaded",this.utmzLoaded.bind(this));var e=r().get("wpe_utmb");if(e){var t=document.createElement("input");t.type="hidden",t.name="ga_utmb",t.value=e,this.form.appendChild(t)}this.getUTMParameters()}},{key:"utmzLoaded",value:function(){this.loaded.utmz=!0,this.getUTMParameters()}},{key:"getUTMParameters",value:function(){var e=this;if(!Object.values(this.loaded).includes(!1)){var t={utmcsr:"ga_last_click_source",utmcmd:"ga_last_click_medium",utmccn:"ga_last_click_campaign",utmcct:"ga_last_click_content",utmctr:"ga_last_click_keyword",utmgclid:"ga_click_id"},n=r().get("__utmzz");n&&n.split("|").forEach((function(n){var i=n.indexOf("="),r=t[n.substr(0,i)],o=n.substr(i+1);r&&(e.utmz[r]=o)})),void 0!==r().get("_ga")&&(this.utmz.ga_client_id=r().get("_ga").substring(6)),this.addUTMParameters()}}},{key:"addUTMParameters",value:function(){for(var e in this.utmz){var t=document.createElement("input");t.type="hidden",t.name=e,t.value=this.utmz[e],this.form.appendChild(t)}}}])&&o(t.prototype,n),i&&o(t,i),e}();n(686);function a(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return l(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return l(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0,r=function(){};return{s:r,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,a=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return s=e.done,e},e:function(e){a=!0,o=e}
2,f:function(){try{s||null==n.return||n.return()}finally{if(a)throw o}}}}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function c(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}const u=function(){function e(t){if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),t&&window.wpeFormData&&window.wpeFormData.ajaxurl){if(window.wpeOptIn&&window.wpeOptIn.isConsentRequired()&&!window.wpeOptIn.hasContactConsent()){var n=t.querySelectorAll(".wpe-field")[t.querySelectorAll(".wpe-field").length-1],i=wp.template("gdpr-form-field");n.insertAdjacentHTML("afterend",i({}))}this.startTime=Date.now(),this.defaultMessages=window.wpeFormDefaultMessages||{error:"%s is invalid.",required:"Field required.",select:"Great choice."},this.ajaxURL=window.wpeFormData.ajaxurl,this.nonce=window.wpeFormData.nonce,this.formID=t.getAttribute("data-id"),this.errorMessage=t.getAttribute("data-error"),this.successMessage=t.getAttribute("data-success"),this.successRedirect=t.getAttribute("data-redirect"),this.successRedirectMethod=t.getAttribute("data-redirect-method"),this.successRedirectIncludeFields=t.getAttribute("data-redirect-fields"),this.dataLayerFields=t.getAttribute("data-datalayer-fields"),this.gaEventLabel=t.getAttribute("data-ga-event-label"),this.dom={},this.dom.form=t,this.dom.honeypot=t.querySelector(".poohbear"),this.dom.submitButton=t.querySelector(".js-submit"),this.dom.fieldContainers=t.querySelectorAll(".wpe-field"),this.dom.fields=this.getFields(),this.dom.selectMenus=t.querySelectorAll("select:not([multiple])"),this.dom.buttons=t.querySelectorAll(".button"),this.dom.formSubmitRow=t.querySelector(".wpe-form__submit-row"),this.dom.message=t.querySelector(".wpe-form__message"),this.dom.optinField=t.querySelector("input#eu_opt_in"),this.createSelectBoxes(),new s(this.dom.form).add(),this.dom.form.addEventListener("submit",this.formSubmit.bind(this));var r,o=a(this.dom.fields);try{for(o.s();!(r=o.n()).done;){var l=r.value;l.addEventListener("change",this.fieldChangeHandler.bind(this)),l.addEventListener("blur",this.fieldChangeHandler.bind(this))}}catch(e){o.e(e)}finally{o.f()}this.progressiveProfile(),this.reattachListeners()}}var n,i,r;return n=e,(i=[{key:"getFields",value:function(){return this.dom.form.querySelectorAll("input, textarea, select")}},{key:"getFieldValues",value:function(){var e,t={},n=a(this.dom.fields);try{for(n.s();!(e=n.n()).done;){var i=e.value;t[i.name]=i.value}}catch(e){n.e(e)}finally{n.f()}return t}},{key:"createSelectBoxes",value:function(){var e=this.dom.selectMenus;t()(e).selectWoo({minimumResultsForSearch:1/0,width:"style"}),t()(e).on("select2:select",this.fieldChangeHandler.bind(this))}},{key:"fieldChangeHandler",value:function(e){this.validateField(e.target)}},{key:"formSubmit",value:function(e){var t=this;e.preventDefault(),this.formValidationPromise().then((function(){t.showLoading();var e=new FormData(t.dom.form);t.submitDatalayer(e),t.submitGAEvent(),t.submitAction(e),t.setConsent()})).catch((function(){t.showResults(!1)}))}},{key:"formValidationPromise",value:function(){var e=this;return new Promise((function(t,n){3e3>Date.now()-e.startTime&&n(),e.dom.honeypot&&!e.dom.honeypot.value||n();var i,r=a(e.getFields());try{for(r.s();!(i=r.n()).done;){var o=i.value;e.validateField(o)||n()}}catch(e){r.e(e)}finally{r.f()}var s=0,l=setInterval((function(){50<++s&&n(),parseInt(e.dom.form.dataset.recaptchaLoaded,10)&&(clearInterval(l),t())}),100)}))}},{key:"validateField",value:function(e){var n=e.closest(".wpe-field");if(!n)return!0;if(n.classList.contains("wpe-field--hidden"))return!0;var i=n.getAttribute("data-validated-message"),r=n.getAttribute("data-error-message"),o=n.getAttribute("data-validation-label"),s=!1,a="";if(e instanceof HTMLInputElement&&"checkbox"===e.type&&n.classList.contains("wpe-field--required")){var l=!!t()('input:checkbox[data-required="true"][name="'.concat(e.name,'"]')).length;
2s=!!t()('input:checkbox[data-required="true"][name="'.concat(e.name,'"]:checked')).length,a=!l||s?i:r||this.defaultMessages.error.replace("%s",o)}else if(e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement)e.required&&0===e.value.length?a=this.defaultMessages.required:e.required&&!e.validity.valid?a=r||this.defaultMessages.error.replace("%s",o):(s=!0,a=i);else{if(!(e instanceof HTMLSelectElement))return s=!0,!0;a=(s=e.checkValidity())?i:r}n.classList.add("wpe-field--validated"),s?(n.classList.remove("wpe-field--invalid"),e.removeAttribute("aria-invalid")):(n.classList.add("wpe-field--invalid"),e.setAttribute("aria-invalid",!0));var c=e.closest(".wpe-field__fieldset"),u=n.querySelector(".wpe-field__validation");if(u)u.innerText=a;else{var d=document.createElement("SPAN");d.classList.add("wpe-field__validation"),d.innerText=a,c?c.appendChild(d):n.appendChild(d)}return s}},{key:"validateEmail",value:function(e){return/[\w\d!#$%&'*+/=?^`{|}~-]+(?:\.[\w!#$%&'*+/=?^`{|}~-]+)*@(?:\w(?:[\w-]*[\w])?\.)+\w(?:[\w-]*[\w])?/gi.test(e)}},{key:"getEmailAddress",value:function(){var e=this,t="";return Object.keys(this.getFieldValues()).forEach((function(n){!t&&e.validateEmail(e.getFieldValues()[n])&&(t=e.getFieldValues()[n])})),t}},{key:"submitAction",value:function(e){var n=this;t().post({url:this.ajaxURL,processData:!1,contentType:!1,data:e,success:function(e){n.showResults(e.success)}})}},{key:"submitDatalayer",value:function(e){try{window.dataLayer=window.dataLayer||[];var t={event:"wpe-form-submit","wpe-form":this.formID},n=JSON.parse(this.dataLayerFields)||[];e.forEach((function(e){-1!==n.indexOf(e.name)&&(t[e.name]=e.value)})),window.dataLayer.push(t)}catch(e){}}},{key:"submitGAEvent",value:function(){"function"==typeof window.ga&&window.ga("send",{hitType:"event",eventCategory:"conversion",eventAction:"submit",eventLabel:this.dom.form.dataset.gaEventLabel})}},{key:"showLoading",value:function(){this.dom.submitButton.classList.add("wpe-form__submit--active");var e,t=a(this.dom.buttons);try{for(t.s();!(e=t.n()).done;)e.value.setAttribute("disabled",!0)}catch(e){t.e(e)}finally{t.f()}var n=document.createElement("I");n.classList.add("fa","fa-circle-o-notch","fa-spin","fa-fw","wpe-form__submitting"),this.dom.spinnerIcon=n,this.dom.submitButton.appendChild(n)}},{key:"showResults",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=this.dom,n=t.message,i=t.spinnerIcon;n.classList.remove("wpe-form__message--visible"),e?(n.classList.remove("wpe-form__message--invalid"),this.successRedirect?this.redirect():(n.innerText=this.successMessage,n.classList.add("wpe-form__message--visible"))):(n.innerText=this.errorMessage,n.classList.add("wpe-form__message--invalid","wpe-form__message--visible")),this.dom.submitButton.classList.remove("wpe-form__submit--active"),i&&i.parentNode&&i.parentNode.removeChild(i);var r,o=a(this.dom.buttons);try{for(o.s();!(r=o.n()).done;){var s=r.value;s.removeAttribute("disabled")}}catch(e){o.e(e)}finally{o.f()}window.wpe.hooks.doAction("wpe.forms.submit.after",e,this.dom)}},{key:"setConsent",value:function(){if(window.wpeOptIn&&window.wpeOptIn.isConsentRequired()){var e=this.dom.optinField?this.dom.optinField.value:"";window.wpeOptIn.setContactConsent("website",window.location.href,this.getEmailAddress(),e)}}},{key:"redirect",value:function(){if("post"===this.successRedirectMethod){var e=document.createElement("form");e.setAttribute("method","POST"),e.setAttribute("action",this.successRedirect);var t=this.getFieldValues();for(var n in t)if(t.hasOwnProperty(n)){var i=document.createElement("input");i.setAttribute("type","hidden"),i.setAttribute("name",n),i.setAttribute("value",t[n]),e.appendChild(i)}document.body.appendChild(e),e.submit()}else window.location=this.successRedirect}},{key:"progressiveProfile",value:function(){var e=this,n=t()('*[data-smartfield="1"]'),i=this.getCookie("hubspotutk");if(isNaN(this.formID)&&0!==n.length&&i){var r={action:"progressive_profile",hubspotutk:i,form_id:this.formID};t().post(this.ajaxURL,r,(function(e){var n=t()(".wpe-field");if(e){n.remove();var i=t()(".wpe-form__submit-row");t()(e).insertBefore(i)}})).done((function(){e.reattachListeners()}))}}},{key:"getCookie",value:function(e){for(var t=e+"=",n=decodeURIComponent(document.cookie).split(";"),i=0;i<n.length;i++){for(var r=n[i];" "===r.charAt(0);)r=r.substring(1);if(0===r.indexOf(t))return r.substring(t.length,r.length)}return""}},{key:"reattachListeners",value:function(){this.dom.fields=this.getFields();var e,t=a(this.dom.fields);try{for(t.s();!(e=t.n()).done;){var n=e.value;n.addEventListener("change",this.fieldChangeHandler.bind(this)),n.addEventListener("blur",this.fieldChangeHandler.bind(this))}}catch(e){t.e(e)}finally{t.f()}this.dom.selectMenus=document.querySelectorAll("select:not([multiple])"),this.createSelectBoxes()}}
2])&&c(n.prototype,i),r&&c(n,r),e}();document.addEventListener("DOMContentLoaded",(function(){var e=document.querySelectorAll(".js-wpe-form");Array.prototype.forEach.call(e,(function(e){new u(e)}))}))})()})();

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.