/* Select2 4.1.0-rc.0 | https://github.com/select2/select2/blob/master/LICENSE.md */ var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.arrayIteratorImpl=function(a){var c=0;return function(){return c":">",'"':""","'":"'","/":"/"};return"string"!=typeof a?a:String(a).replace(/[&<>"'\/\\]/g,function(a){return b[a]})};c.__cache={};var r=0;return c.GetUniqueElementId=function(a){var b=a.getAttribute("data-select2-id");return null!=b||(b=a.id?"select2-data-"+a.id:"select2-data-"+(++r).toString()+"-"+c.generateChars(4),a.setAttribute("data-select2-id",b)),b},c.StoreData=function(a,b,d){a=c.GetUniqueElementId(a); c.__cache[a]||(c.__cache[a]={});c.__cache[a][b]=d},c.GetData=function(b,d){var h=c.GetUniqueElementId(b);return d?c.__cache[h]&&null!=c.__cache[h][d]?c.__cache[h][d]:a(b).data(d):c.__cache[h]},c.RemoveData=function(a){var b=c.GetUniqueElementId(a);null!=c.__cache[b]&&delete c.__cache[b];a.removeAttribute("data-select2-id")},c.copyNonInternalCssClasses=function(a,b){var d=(d=a.getAttribute("class").trim().split(/\s+/)).filter(function(a){return 0===a.indexOf("select2-")});b=(b=b.getAttribute("class").trim().split(/\s+/)).filter(function(a){return 0!== a.indexOf("select2-")});b=d.concat(b);a.setAttribute("class",b.join(" "))},c}),q.define("select2/results",["jquery","./utils"],function(a,b){function d(a,b,c){this.$element=a;this.data=c;this.options=b;d.__super__.constructor.call(this)}return b.Extend(d,b.Observable),d.prototype.render=function(){var b=a('');return this.options.get("multiple")&&b.attr("aria-multiselectable","true"),this.$results=b},d.prototype.clear=function(){this.$results.empty()}, d.prototype.displayMessage=function(b){var d=this.options.get("escapeMarkup");this.clear();this.hideLoading();var c=a(''),e=this.options.get("translations").get(b.message);c.append(d(e(b.args)));c[0].className+=" select2-results__message";this.$results.append(c)},d.prototype.hideMessages=function(){this.$results.find(".select2-results__message").remove()},d.prototype.append=function(a){this.hideLoading();var b=[];if(null!= a.results&&0!==a.results.length){a.results=this.sort(a.results);for(var d=0;d",{class:"select2-results__options select2-results__options--nested", role:"none"});e.append(g);f.append(h);f.append(e)}else this.template(d,c);return b.StoreData(c,"data",d),c},d.prototype.bind=function(d,c){var h=this;this.$results.attr("id",d.id+"-results");d.on("results:all",function(a){h.clear();h.append(a.data);d.isOpen()&&(h.setClasses(),h.highlightFirstItem())});d.on("results:append",function(a){h.append(a.data);d.isOpen()&&h.setClasses()});d.on("query",function(a){h.hideMessages();h.showLoading(a)});d.on("select",function(){d.isOpen()&&(h.setClasses(),h.options.get("scrollAfterSelect")&& h.highlightFirstItem())});d.on("unselect",function(){d.isOpen()&&(h.setClasses(),h.options.get("scrollAfterSelect")&&h.highlightFirstItem())});d.on("open",function(){h.$results.attr("aria-expanded","true");h.$results.attr("aria-hidden","false");h.setClasses();h.ensureHighlightVisible()});d.on("close",function(){h.$results.attr("aria-expanded","false");h.$results.attr("aria-hidden","true");h.$results.removeAttr("aria-activedescendant")});d.on("results:toggle",function(){var a=h.getHighlightedResults(); 0!==a.length&&a.trigger("mouseup")});d.on("results:select",function(){var a,d=h.getHighlightedResults();0!==d.length&&(a=b.GetData(d[0],"data"),d.hasClass("select2-results__option--selected")?h.trigger("close",{}):h.trigger("select",{data:a}))});d.on("results:previous",function(){var a,b=h.getHighlightedResults(),d=h.$results.find(".select2-results__option--selectable"),c=d.index(b);0>=c||(a=c-1,0===b.length&&(a=0),(c=d.eq(a)).trigger("mouseenter"),b=h.$results.offset().top,d=c.offset().top,c=h.$results.scrollTop()+ (d-b),0===a?h.$results.scrollTop(0):0>d-b&&h.$results.scrollTop(c))});d.on("results:next",function(){var a,b=h.getHighlightedResults(),d=h.$results.find(".select2-results__option--selectable"),c=d.index(b)+1;c>=d.length||((a=d.eq(c)).trigger("mouseenter"),b=h.$results.offset().top+h.$results.outerHeight(!1),d=a.offset().top+a.outerHeight(!1),a=h.$results.scrollTop()+d-b,0===c?h.$results.scrollTop(0):b=b-a.deltaY;d=0>a.deltaY&&d<=h.$results.height();b?(h.$results.scrollTop(0),a.preventDefault(),a.stopPropagation()):d&&(h.$results.scrollTop(h.$results.get(0).scrollHeight-h.$results.height()),a.preventDefault(),a.stopPropagation())});this.$results.on("mouseup", ".select2-results__option--selectable",function(d){var c=a(this),e=b.GetData(this,"data");c.hasClass("select2-results__option--selected")?h.options.get("multiple")?h.trigger("unselect",{originalEvent:d,data:e}):h.trigger("close",{}):h.trigger("select",{originalEvent:d,data:e})});this.$results.on("mouseenter",".select2-results__option--selectable",function(d){d=b.GetData(this,"data");h.getHighlightedResults().removeClass("select2-results__option--highlighted").attr("aria-selected","false");h.trigger("results:focus", {data:d,element:a(this)})})},d.prototype.getHighlightedResults=function(){return this.$results.find(".select2-results__option--highlighted")},d.prototype.destroy=function(){this.$results.remove()},d.prototype.ensureHighlightVisible=function(){var a,b,d,c,e=this.getHighlightedResults();0!==e.length&&(a=this.$results.find(".select2-results__option--selectable").index(e),c=this.$results.offset().top,b=e.offset().top,d=this.$results.scrollTop()+(b-c),c=b-c,d-=2*e.outerHeight(!1),2>=a?this.$results.scrollTop(0): (c>this.$results.outerHeight()||0>c)&&this.$results.scrollTop(d))},d.prototype.template=function(b,d){var c=this.options.get("templateResult"),e=this.options.get("escapeMarkup");b=c(b,d);null==b?d.style.display="none":"string"==typeof b?d.innerHTML=e(b):a(d).append(b)},d}),q.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}}),q.define("select2/selection/base", ["jquery","../utils","../keys"],function(a,b,d){function c(a,b){this.$element=a;this.options=b;c.__super__.constructor.call(this)}return b.Extend(c,b.Observable),c.prototype.render=function(){var d=a('');return this._tabindex=0,null!=b.GetData(this.$element[0],"old-tabindex")?this._tabindex=b.GetData(this.$element[0],"old-tabindex"):null!=this.$element.attr("tabindex")&&(this._tabindex=this.$element.attr("tabindex")), d.attr("title",this.$element.attr("title")),d.attr("tabindex",this._tabindex),d.attr("aria-disabled","false"),this.$selection=d},c.prototype.bind=function(a,b){var c=this,h=a.id+"-results";this.container=a;this.$selection.on("focus",function(a){c.trigger("focus",a)});this.$selection.on("blur",function(a){c._handleBlur(a)});this.$selection.on("keydown",function(a){c.trigger("keypress",a);a.which===d.SPACE&&a.preventDefault()});a.on("results:focus",function(a){c.$selection.attr("aria-activedescendant", a.data._resultId)});a.on("selection:update",function(a){c.update(a.data)});a.on("open",function(){c.$selection.attr("aria-expanded","true");c.$selection.attr("aria-owns",h);c._attachCloseHandler(a)});a.on("close",function(){c.$selection.attr("aria-expanded","false");c.$selection.removeAttr("aria-activedescendant");c.$selection.removeAttr("aria-owns");c.$selection.trigger("focus");c._detachCloseHandler(a)});a.on("enable",function(){c.$selection.attr("tabindex",c._tabindex);c.$selection.attr("aria-disabled", "false")});a.on("disable",function(){c.$selection.attr("tabindex","-1");c.$selection.attr("aria-disabled","true")})},c.prototype._handleBlur=function(b){var d=this;window.setTimeout(function(){document.activeElement==d.$selection[0]||a.contains(d.$selection[0],document.activeElement)||d.trigger("blur",b)},1)},c.prototype._attachCloseHandler=function(d){a(document.body).on("mousedown.select2."+d.id,function(d){var c=a(d.target).closest(".select2");a(".select2.select2-container--open").each(function(){this!= c[0]&&b.GetData(this,"element").select2("close")})})},c.prototype._detachCloseHandler=function(b){a(document.body).off("mousedown.select2."+b.id)},c.prototype.position=function(a,b){b.find(".selection").append(a)},c.prototype.destroy=function(){this._detachCloseHandler(this.container)},c.prototype.update=function(a){throw Error("The `update` method must be defined in child classes.");},c.prototype.isEnabled=function(){return!this.isDisabled()},c.prototype.isDisabled=function(){return this.options.get("disabled")}, c}),q.define("select2/selection/single",["jquery","./base","../utils","../keys"],function(a,b,d,c){function e(){e.__super__.constructor.apply(this,arguments)}return d.Extend(e,b),e.prototype.render=function(){var a=e.__super__.render.call(this);return a[0].classList.add("select2-selection--single"),a.html(''),a},e.prototype.bind=function(a,b){var d=this;e.__super__.bind.apply(this, arguments);var c=a.id+"-container";this.$selection.find(".select2-selection__rendered").attr("id",c).attr("role","textbox").attr("aria-readonly","true");this.$selection.attr("aria-labelledby",c);this.$selection.attr("aria-controls",c);this.$selection.on("mousedown",function(a){1===a.which&&d.trigger("toggle",{originalEvent:a})});this.$selection.on("focus",function(a){});this.$selection.on("blur",function(a){});a.on("focus",function(b){a.isOpen()||d.$selection.trigger("focus")})},e.prototype.clear= function(){var a=this.$selection.find(".select2-selection__rendered");a.empty();a.removeAttr("title")},e.prototype.display=function(a,b){var d=this.options.get("templateSelection");return this.options.get("escapeMarkup")(d(a,b))},e.prototype.selectionContainer=function(){return a("")},e.prototype.update=function(a){var b,d;0!==a.length?(d=a[0],b=this.$selection.find(".select2-selection__rendered"),a=this.display(d,b),b.empty().append(a),(d=d.title||d.text)?b.attr("title",d):b.removeAttr("title")): this.clear()},e}),q.define("select2/selection/multiple",["jquery","./base","../utils"],function(a,b,d){function c(a,b){c.__super__.constructor.apply(this,arguments)}return d.Extend(c,b),c.prototype.render=function(){var a=c.__super__.render.call(this);return a[0].classList.add("select2-selection--multiple"),a.html('
    '),a},c.prototype.bind=function(b,e){var h=this;c.__super__.bind.apply(this,arguments);var f=b.id+"-container";this.$selection.find(".select2-selection__rendered").attr("id", f);this.$selection.on("click",function(a){h.trigger("toggle",{originalEvent:a})});this.$selection.on("click",".select2-selection__choice__remove",function(b){var c;h.isDisabled()||(c=a(this).parent(),c=d.GetData(c[0],"data"),h.trigger("unselect",{originalEvent:b,data:c}))});this.$selection.on("keydown",".select2-selection__choice__remove",function(a){h.isDisabled()||a.stopPropagation()})},c.prototype.clear=function(){var a=this.$selection.find(".select2-selection__rendered");a.empty();a.removeAttr("title")}, c.prototype.display=function(a,b){var d=this.options.get("templateSelection");return this.options.get("escapeMarkup")(d(a,b))},c.prototype.selectionContainer=function(){return a('
  • ')},c.prototype.update=function(a){if(this.clear(),0!==a.length){for(var b=[],c=this.$selection.find(".select2-selection__rendered").attr("id")+ "-choice-",e=0;e')).attr("title",h()),b.attr("aria-label",h()),b.attr("aria-describedby",e),d.StoreData(b[0],"data",c),this.$selection.prepend(b), this.$selection[0].classList.add("select2-selection--clearable"))},c}),q.define("select2/selection/search",["jquery","../utils","../keys"],function(a,b,d){function c(a,b,d){a.call(this,b,d)}return c.prototype.render=function(b){var d=this.options.get("translations").get("search"),c=a(''); this.$searchContainer=c;this.$search=c.find("textarea");this.$search.prop("autocomplete",this.options.get("autocomplete"));this.$search.attr("aria-label",d());b=b.call(this);return this._transferTabIndex(),b.append(this.$searchContainer),b},c.prototype.bind=function(a,c,e){var h=this,f=c.id+"-results",g=c.id+"-container";a.call(this,c,e);h.$search.attr("aria-describedby",g);c.on("open",function(){h.$search.attr("aria-controls",f);h.$search.trigger("focus")});c.on("close",function(){h.$search.val(""); h.resizeSearch();h.$search.removeAttr("aria-controls");h.$search.removeAttr("aria-activedescendant");h.$search.trigger("focus")});c.on("enable",function(){h.$search.prop("disabled",!1);h._transferTabIndex()});c.on("disable",function(){h.$search.prop("disabled",!0)});c.on("focus",function(a){h.$search.trigger("focus")});c.on("results:focus",function(a){a.data._resultId?h.$search.attr("aria-activedescendant",a.data._resultId):h.$search.removeAttr("aria-activedescendant")});this.$selection.on("focusin", ".select2-search--inline",function(a){h.trigger("focus",a)});this.$selection.on("focusout",".select2-search--inline",function(a){h._handleBlur(a)});this.$selection.on("keydown",".select2-search--inline",function(a){var c;a.stopPropagation();h.trigger("keypress",a);h._keyUpPrevented=a.isDefaultPrevented();a.which!==d.BACKSPACE||""!==h.$search.val()||0<(c=h.$selection.find(".select2-selection__choice").last()).length&&(c=b.GetData(c[0],"data"),h.searchRemoveChoice(c),a.preventDefault())});this.$selection.on("click", ".select2-search--inline",function(a){h.$search.val()&&a.stopPropagation()});var r=(c=document.documentMode)&&11>=c;this.$selection.on("input.searchcheck",".select2-search--inline",function(a){r?h.$selection.off("input.search input.searchcheck"):h.$selection.off("keyup.search")});this.$selection.on("keyup.search input.search",".select2-search--inline",function(a){var b;r&&"input"===a.type?h.$selection.off("input.search input.searchcheck"):(b=a.which)!=d.SHIFT&&b!=d.CTRL&&b!=d.ALT&&b!=d.TAB&&h.handleSearch(a)})}, c.prototype._transferTabIndex=function(a){this.$search.attr("tabindex",this.$selection.attr("tabindex"));this.$selection.attr("tabindex","-1")},c.prototype.createPlaceholder=function(a,b){this.$search.attr("placeholder",b.text)},c.prototype.update=function(a,b){var d=this.$search[0]==document.activeElement;this.$search.attr("placeholder","");a.call(this,b);this.resizeSearch();d&&this.$search.trigger("focus")},c.prototype.handleSearch=function(){var a;this.resizeSearch();this._keyUpPrevented||(a=this.$search.val(), this.trigger("query",{term:a}));this._keyUpPrevented=!1},c.prototype.searchRemoveChoice=function(a,b){this.trigger("unselect",{data:b});this.$search.val(b.text);this.handleSearch()},c.prototype.resizeSearch=function(){this.$search.css("width","25px");var a="100%";""===this.$search.attr("placeholder")&&(a=.75*(this.$search.val().length+1)+"em");this.$search.css("width",a)},c}),q.define("select2/selection/selectionCss",["../utils"],function(a){function b(){}return b.prototype.render=function(b){var d= b.call(this);b=this.options.get("selectionCssClass")||"";return-1!==b.indexOf(":all:")&&(b=b.replace(":all:",""),a.copyNonInternalCssClasses(d[0],this.$element[0])),d.addClass(b),d},b}),q.define("select2/selection/eventRelay",["jquery"],function(a){function b(){}return b.prototype.bind=function(b,d,c){var e=this,f="open opening close closing select selecting unselect unselecting clear clearing".split(" "),g=["opening","closing","selecting","unselecting","clearing"];b.call(this,d,c);d.on("*",function(b, d){var c;-1!==f.indexOf(b)&&(d=d||{},c=a.Event("select2:"+b,{params:d}),e.$element.trigger(c),-1!==g.indexOf(b)&&(d.prevented=c.isDefaultPrevented()))})},b}),q.define("select2/translation",["jquery","require"],function(a,b){function d(a){this.dict=a||{}}return d.prototype.all=function(){return this.dict},d.prototype.get=function(a){return this.dict[a]},d.prototype.extend=function(b){this.dict=a.extend({},b.all(),this.dict)},d._cache={},d.loadPath=function(a){var c;return a in d._cache||(c=b(a),d._cache[a]= c),new d(d._cache[a])},d}),q.define("select2/diacritics",[],function(){return{"\u24b6":"A","\uff21":"A","\u00c0":"A","\u00c1":"A","\u00c2":"A","\u1ea6":"A","\u1ea4":"A","\u1eaa":"A","\u1ea8":"A","\u00c3":"A","\u0100":"A","\u0102":"A","\u1eb0":"A","\u1eae":"A","\u1eb4":"A","\u1eb2":"A","\u0226":"A","\u01e0":"A","\u00c4":"A","\u01de":"A","\u1ea2":"A","\u00c5":"A","\u01fa":"A","\u01cd":"A","\u0200":"A","\u0202":"A","\u1ea0":"A","\u1eac":"A","\u1eb6":"A","\u1e00":"A","\u0104":"A","\u023a":"A","\u2c6f":"A", "\ua732":"AA","\u00c6":"AE","\u01fc":"AE","\u01e2":"AE","\ua734":"AO","\ua736":"AU","\ua738":"AV","\ua73a":"AV","\ua73c":"AY","\u24b7":"B","\uff22":"B","\u1e02":"B","\u1e04":"B","\u1e06":"B","\u0243":"B","\u0182":"B","\u0181":"B","\u24b8":"C","\uff23":"C","\u0106":"C","\u0108":"C","\u010a":"C","\u010c":"C","\u00c7":"C","\u1e08":"C","\u0187":"C","\u023b":"C","\ua73e":"C","\u24b9":"D","\uff24":"D","\u1e0a":"D","\u010e":"D","\u1e0c":"D","\u1e10":"D","\u1e12":"D","\u1e0e":"D","\u0110":"D","\u018b":"D", "\u018a":"D","\u0189":"D","\ua779":"D","\u01f1":"DZ","\u01c4":"DZ","\u01f2":"Dz","\u01c5":"Dz","\u24ba":"E","\uff25":"E","\u00c8":"E","\u00c9":"E","\u00ca":"E","\u1ec0":"E","\u1ebe":"E","\u1ec4":"E","\u1ec2":"E","\u1ebc":"E","\u0112":"E","\u1e14":"E","\u1e16":"E","\u0114":"E","\u0116":"E","\u00cb":"E","\u1eba":"E","\u011a":"E","\u0204":"E","\u0206":"E","\u1eb8":"E","\u1ec6":"E","\u0228":"E","\u1e1c":"E","\u0118":"E","\u1e18":"E","\u1e1a":"E","\u0190":"E","\u018e":"E","\u24bb":"F","\uff26":"F","\u1e1e":"F", "\u0191":"F","\ua77b":"F","\u24bc":"G","\uff27":"G","\u01f4":"G","\u011c":"G","\u1e20":"G","\u011e":"G","\u0120":"G","\u01e6":"G","\u0122":"G","\u01e4":"G","\u0193":"G","\ua7a0":"G","\ua77d":"G","\ua77e":"G","\u24bd":"H","\uff28":"H","\u0124":"H","\u1e22":"H","\u1e26":"H","\u021e":"H","\u1e24":"H","\u1e28":"H","\u1e2a":"H","\u0126":"H","\u2c67":"H","\u2c75":"H","\ua78d":"H","\u24be":"I","\uff29":"I","\u00cc":"I","\u00cd":"I","\u00ce":"I","\u0128":"I","\u012a":"I","\u012c":"I","\u0130":"I","\u00cf":"I", "\u1e2e":"I","\u1ec8":"I","\u01cf":"I","\u0208":"I","\u020a":"I","\u1eca":"I","\u012e":"I","\u1e2c":"I","\u0197":"I","\u24bf":"J","\uff2a":"J","\u0134":"J","\u0248":"J","\u24c0":"K","\uff2b":"K","\u1e30":"K","\u01e8":"K","\u1e32":"K","\u0136":"K","\u1e34":"K","\u0198":"K","\u2c69":"K","\ua740":"K","\ua742":"K","\ua744":"K","\ua7a2":"K","\u24c1":"L","\uff2c":"L","\u013f":"L","\u0139":"L","\u013d":"L","\u1e36":"L","\u1e38":"L","\u013b":"L","\u1e3c":"L","\u1e3a":"L","\u0141":"L","\u023d":"L","\u2c62":"L", "\u2c60":"L","\ua748":"L","\ua746":"L","\ua780":"L","\u01c7":"LJ","\u01c8":"Lj","\u24c2":"M","\uff2d":"M","\u1e3e":"M","\u1e40":"M","\u1e42":"M","\u2c6e":"M","\u019c":"M","\u24c3":"N","\uff2e":"N","\u01f8":"N","\u0143":"N","\u00d1":"N","\u1e44":"N","\u0147":"N","\u1e46":"N","\u0145":"N","\u1e4a":"N","\u1e48":"N","\u0220":"N","\u019d":"N","\ua790":"N","\ua7a4":"N","\u01ca":"NJ","\u01cb":"Nj","\u24c4":"O","\uff2f":"O","\u00d2":"O","\u00d3":"O","\u00d4":"O","\u1ed2":"O","\u1ed0":"O","\u1ed6":"O","\u1ed4":"O", "\u00d5":"O","\u1e4c":"O","\u022c":"O","\u1e4e":"O","\u014c":"O","\u1e50":"O","\u1e52":"O","\u014e":"O","\u022e":"O","\u0230":"O","\u00d6":"O","\u022a":"O","\u1ece":"O","\u0150":"O","\u01d1":"O","\u020c":"O","\u020e":"O","\u01a0":"O","\u1edc":"O","\u1eda":"O","\u1ee0":"O","\u1ede":"O","\u1ee2":"O","\u1ecc":"O","\u1ed8":"O","\u01ea":"O","\u01ec":"O","\u00d8":"O","\u01fe":"O","\u0186":"O","\u019f":"O","\ua74a":"O","\ua74c":"O","\u0152":"OE","\u01a2":"OI","\ua74e":"OO","\u0222":"OU","\u24c5":"P","\uff30":"P", "\u1e54":"P","\u1e56":"P","\u01a4":"P","\u2c63":"P","\ua750":"P","\ua752":"P","\ua754":"P","\u24c6":"Q","\uff31":"Q","\ua756":"Q","\ua758":"Q","\u024a":"Q","\u24c7":"R","\uff32":"R","\u0154":"R","\u1e58":"R","\u0158":"R","\u0210":"R","\u0212":"R","\u1e5a":"R","\u1e5c":"R","\u0156":"R","\u1e5e":"R","\u024c":"R","\u2c64":"R","\ua75a":"R","\ua7a6":"R","\ua782":"R","\u24c8":"S","\uff33":"S","\u1e9e":"S","\u015a":"S","\u1e64":"S","\u015c":"S","\u1e60":"S","\u0160":"S","\u1e66":"S","\u1e62":"S","\u1e68":"S", "\u0218":"S","\u015e":"S","\u2c7e":"S","\ua7a8":"S","\ua784":"S","\u24c9":"T","\uff34":"T","\u1e6a":"T","\u0164":"T","\u1e6c":"T","\u021a":"T","\u0162":"T","\u1e70":"T","\u1e6e":"T","\u0166":"T","\u01ac":"T","\u01ae":"T","\u023e":"T","\ua786":"T","\ua728":"TZ","\u24ca":"U","\uff35":"U","\u00d9":"U","\u00da":"U","\u00db":"U","\u0168":"U","\u1e78":"U","\u016a":"U","\u1e7a":"U","\u016c":"U","\u00dc":"U","\u01db":"U","\u01d7":"U","\u01d5":"U","\u01d9":"U","\u1ee6":"U","\u016e":"U","\u0170":"U","\u01d3":"U", "\u0214":"U","\u0216":"U","\u01af":"U","\u1eea":"U","\u1ee8":"U","\u1eee":"U","\u1eec":"U","\u1ef0":"U","\u1ee4":"U","\u1e72":"U","\u0172":"U","\u1e76":"U","\u1e74":"U","\u0244":"U","\u24cb":"V","\uff36":"V","\u1e7c":"V","\u1e7e":"V","\u01b2":"V","\ua75e":"V","\u0245":"V","\ua760":"VY","\u24cc":"W","\uff37":"W","\u1e80":"W","\u1e82":"W","\u0174":"W","\u1e86":"W","\u1e84":"W","\u1e88":"W","\u2c72":"W","\u24cd":"X","\uff38":"X","\u1e8a":"X","\u1e8c":"X","\u24ce":"Y","\uff39":"Y","\u1ef2":"Y","\u00dd":"Y", "\u0176":"Y","\u1ef8":"Y","\u0232":"Y","\u1e8e":"Y","\u0178":"Y","\u1ef6":"Y","\u1ef4":"Y","\u01b3":"Y","\u024e":"Y","\u1efe":"Y","\u24cf":"Z","\uff3a":"Z","\u0179":"Z","\u1e90":"Z","\u017b":"Z","\u017d":"Z","\u1e92":"Z","\u1e94":"Z","\u01b5":"Z","\u0224":"Z","\u2c7f":"Z","\u2c6b":"Z","\ua762":"Z","\u24d0":"a","\uff41":"a","\u1e9a":"a","\u00e0":"a","\u00e1":"a","\u00e2":"a","\u1ea7":"a","\u1ea5":"a","\u1eab":"a","\u1ea9":"a","\u00e3":"a","\u0101":"a","\u0103":"a","\u1eb1":"a","\u1eaf":"a","\u1eb5":"a", "\u1eb3":"a","\u0227":"a","\u01e1":"a","\u00e4":"a","\u01df":"a","\u1ea3":"a","\u00e5":"a","\u01fb":"a","\u01ce":"a","\u0201":"a","\u0203":"a","\u1ea1":"a","\u1ead":"a","\u1eb7":"a","\u1e01":"a","\u0105":"a","\u2c65":"a","\u0250":"a","\ua733":"aa","\u00e6":"ae","\u01fd":"ae","\u01e3":"ae","\ua735":"ao","\ua737":"au","\ua739":"av","\ua73b":"av","\ua73d":"ay","\u24d1":"b","\uff42":"b","\u1e03":"b","\u1e05":"b","\u1e07":"b","\u0180":"b","\u0183":"b","\u0253":"b","\u24d2":"c","\uff43":"c","\u0107":"c", "\u0109":"c","\u010b":"c","\u010d":"c","\u00e7":"c","\u1e09":"c","\u0188":"c","\u023c":"c","\ua73f":"c","\u2184":"c","\u24d3":"d","\uff44":"d","\u1e0b":"d","\u010f":"d","\u1e0d":"d","\u1e11":"d","\u1e13":"d","\u1e0f":"d","\u0111":"d","\u018c":"d","\u0256":"d","\u0257":"d","\ua77a":"d","\u01f3":"dz","\u01c6":"dz","\u24d4":"e","\uff45":"e","\u00e8":"e","\u00e9":"e","\u00ea":"e","\u1ec1":"e","\u1ebf":"e","\u1ec5":"e","\u1ec3":"e","\u1ebd":"e","\u0113":"e","\u1e15":"e","\u1e17":"e","\u0115":"e","\u0117":"e", "\u00eb":"e","\u1ebb":"e","\u011b":"e","\u0205":"e","\u0207":"e","\u1eb9":"e","\u1ec7":"e","\u0229":"e","\u1e1d":"e","\u0119":"e","\u1e19":"e","\u1e1b":"e","\u0247":"e","\u025b":"e","\u01dd":"e","\u24d5":"f","\uff46":"f","\u1e1f":"f","\u0192":"f","\ua77c":"f","\u24d6":"g","\uff47":"g","\u01f5":"g","\u011d":"g","\u1e21":"g","\u011f":"g","\u0121":"g","\u01e7":"g","\u0123":"g","\u01e5":"g","\u0260":"g","\ua7a1":"g","\u1d79":"g","\ua77f":"g","\u24d7":"h","\uff48":"h","\u0125":"h","\u1e23":"h","\u1e27":"h", "\u021f":"h","\u1e25":"h","\u1e29":"h","\u1e2b":"h","\u1e96":"h","\u0127":"h","\u2c68":"h","\u2c76":"h","\u0265":"h","\u0195":"hv","\u24d8":"i","\uff49":"i","\u00ec":"i","\u00ed":"i","\u00ee":"i","\u0129":"i","\u012b":"i","\u012d":"i","\u00ef":"i","\u1e2f":"i","\u1ec9":"i","\u01d0":"i","\u0209":"i","\u020b":"i","\u1ecb":"i","\u012f":"i","\u1e2d":"i","\u0268":"i","\u0131":"i","\u24d9":"j","\uff4a":"j","\u0135":"j","\u01f0":"j","\u0249":"j","\u24da":"k","\uff4b":"k","\u1e31":"k","\u01e9":"k","\u1e33":"k", "\u0137":"k","\u1e35":"k","\u0199":"k","\u2c6a":"k","\ua741":"k","\ua743":"k","\ua745":"k","\ua7a3":"k","\u24db":"l","\uff4c":"l","\u0140":"l","\u013a":"l","\u013e":"l","\u1e37":"l","\u1e39":"l","\u013c":"l","\u1e3d":"l","\u1e3b":"l","\u017f":"l","\u0142":"l","\u019a":"l","\u026b":"l","\u2c61":"l","\ua749":"l","\ua781":"l","\ua747":"l","\u01c9":"lj","\u24dc":"m","\uff4d":"m","\u1e3f":"m","\u1e41":"m","\u1e43":"m","\u0271":"m","\u026f":"m","\u24dd":"n","\uff4e":"n","\u01f9":"n","\u0144":"n","\u00f1":"n", "\u1e45":"n","\u0148":"n","\u1e47":"n","\u0146":"n","\u1e4b":"n","\u1e49":"n","\u019e":"n","\u0272":"n","\u0149":"n","\ua791":"n","\ua7a5":"n","\u01cc":"nj","\u24de":"o","\uff4f":"o","\u00f2":"o","\u00f3":"o","\u00f4":"o","\u1ed3":"o","\u1ed1":"o","\u1ed7":"o","\u1ed5":"o","\u00f5":"o","\u1e4d":"o","\u022d":"o","\u1e4f":"o","\u014d":"o","\u1e51":"o","\u1e53":"o","\u014f":"o","\u022f":"o","\u0231":"o","\u00f6":"o","\u022b":"o","\u1ecf":"o","\u0151":"o","\u01d2":"o","\u020d":"o","\u020f":"o","\u01a1":"o", "\u1edd":"o","\u1edb":"o","\u1ee1":"o","\u1edf":"o","\u1ee3":"o","\u1ecd":"o","\u1ed9":"o","\u01eb":"o","\u01ed":"o","\u00f8":"o","\u01ff":"o","\u0254":"o","\ua74b":"o","\ua74d":"o","\u0275":"o","\u0153":"oe","\u01a3":"oi","\u0223":"ou","\ua74f":"oo","\u24df":"p","\uff50":"p","\u1e55":"p","\u1e57":"p","\u01a5":"p","\u1d7d":"p","\ua751":"p","\ua753":"p","\ua755":"p","\u24e0":"q","\uff51":"q","\u024b":"q","\ua757":"q","\ua759":"q","\u24e1":"r","\uff52":"r","\u0155":"r","\u1e59":"r","\u0159":"r","\u0211":"r", "\u0213":"r","\u1e5b":"r","\u1e5d":"r","\u0157":"r","\u1e5f":"r","\u024d":"r","\u027d":"r","\ua75b":"r","\ua7a7":"r","\ua783":"r","\u24e2":"s","\uff53":"s","\u00df":"s","\u015b":"s","\u1e65":"s","\u015d":"s","\u1e61":"s","\u0161":"s","\u1e67":"s","\u1e63":"s","\u1e69":"s","\u0219":"s","\u015f":"s","\u023f":"s","\ua7a9":"s","\ua785":"s","\u1e9b":"s","\u24e3":"t","\uff54":"t","\u1e6b":"t","\u1e97":"t","\u0165":"t","\u1e6d":"t","\u021b":"t","\u0163":"t","\u1e71":"t","\u1e6f":"t","\u0167":"t","\u01ad":"t", "\u0288":"t","\u2c66":"t","\ua787":"t","\ua729":"tz","\u24e4":"u","\uff55":"u","\u00f9":"u","\u00fa":"u","\u00fb":"u","\u0169":"u","\u1e79":"u","\u016b":"u","\u1e7b":"u","\u016d":"u","\u00fc":"u","\u01dc":"u","\u01d8":"u","\u01d6":"u","\u01da":"u","\u1ee7":"u","\u016f":"u","\u0171":"u","\u01d4":"u","\u0215":"u","\u0217":"u","\u01b0":"u","\u1eeb":"u","\u1ee9":"u","\u1eef":"u","\u1eed":"u","\u1ef1":"u","\u1ee5":"u","\u1e73":"u","\u0173":"u","\u1e77":"u","\u1e75":"u","\u0289":"u","\u24e5":"v","\uff56":"v", "\u1e7d":"v","\u1e7f":"v","\u028b":"v","\ua75f":"v","\u028c":"v","\ua761":"vy","\u24e6":"w","\uff57":"w","\u1e81":"w","\u1e83":"w","\u0175":"w","\u1e87":"w","\u1e85":"w","\u1e98":"w","\u1e89":"w","\u2c73":"w","\u24e7":"x","\uff58":"x","\u1e8b":"x","\u1e8d":"x","\u24e8":"y","\uff59":"y","\u1ef3":"y","\u00fd":"y","\u0177":"y","\u1ef9":"y","\u0233":"y","\u1e8f":"y","\u00ff":"y","\u1ef7":"y","\u1e99":"y","\u1ef5":"y","\u01b4":"y","\u024f":"y","\u1eff":"y","\u24e9":"z","\uff5a":"z","\u017a":"z","\u1e91":"z", "\u017c":"z","\u017e":"z","\u1e93":"z","\u1e95":"z","\u01b6":"z","\u0225":"z","\u0240":"z","\u2c6c":"z","\ua763":"z","\u0386":"\u0391","\u0388":"\u0395","\u0389":"\u0397","\u038a":"\u0399","\u03aa":"\u0399","\u038c":"\u039f","\u038e":"\u03a5","\u03ab":"\u03a5","\u038f":"\u03a9","\u03ac":"\u03b1","\u03ad":"\u03b5","\u03ae":"\u03b7","\u03af":"\u03b9","\u03ca":"\u03b9","\u0390":"\u03b9","\u03cc":"\u03bf","\u03cd":"\u03c5","\u03cb":"\u03c5","\u03b0":"\u03c5","\u03ce":"\u03c9","\u03c2":"\u03c3","\u2019":"'"}}), q.define("select2/data/base",["../utils"],function(a){function b(a,d){b.__super__.constructor.call(this)}return a.Extend(b,a.Observable),b.prototype.current=function(a){throw Error("The `current` method must be defined in child classes.");},b.prototype.query=function(a,b){throw Error("The `query` method must be defined in child classes.");},b.prototype.bind=function(a,b){},b.prototype.destroy=function(){},b.prototype.generateResultId=function(b,d){b=b.id+"-result-";return b+=a.generateChars(4),null!= d.id?b+="-"+d.id.toString():b+="-"+a.generateChars(4),b},b}),q.define("select2/data/select",["./base","../utils","jquery"],function(a,b,d){function c(a,b){this.$element=a;this.options=b;c.__super__.constructor.call(this)}return b.Extend(c,a),c.prototype.current=function(a){var b=this;a(Array.prototype.map.call(this.$element[0].querySelectorAll(":checked"),function(a){return b.item(d(a))}))},c.prototype.select=function(a){var b,d=this;if(a.selected=!0,null!=a.element&&"option"===a.element.tagName.toLowerCase())return a.element.selected= !0,void this.$element.trigger("input").trigger("change");this.$element.prop("multiple")?this.current(function(b){var c=[];(a=[a]).push.apply(a,b);for(b=0;bthis.maximumInputLength?this.trigger("results:message",{message:"inputTooLong",args:{maximum:this.maximumInputLength,input:b.term,params:b}}):a.call(this,b,d)},a}),q.define("select2/data/maximumSelectionLength",[],function(){function a(a,b,d){this.maximumSelectionLength=d.get("maximumSelectionLength");a.call(this,b,d)}return a.prototype.bind= function(a,b,d){var c=this;a.call(this,b,d);b.on("select",function(){c._checkIfMaximumSelected()})},a.prototype.query=function(a,b,d){var c=this;this._checkIfMaximumSelected(function(){a.call(c,b,d)})},a.prototype._checkIfMaximumSelected=function(a,b){var d=this;this.current(function(a){a=null!=a?a.length:0;0=d.maximumSelectionLength?d.trigger("results:message",{message:"maximumSelected",args:{maximum:d.maximumSelectionLength}}):b&&b()})},a}),q.define("select2/dropdown", ["jquery","./utils"],function(a,b){function d(a,b){this.$element=a;this.options=b;d.__super__.constructor.call(this)}return b.Extend(d,b.Observable),d.prototype.render=function(){var b=a('');return b.attr("dir",this.options.get("dir")),this.$dropdown=b},d.prototype.bind=function(){},d.prototype.position=function(a,b){},d.prototype.destroy=function(){this.$dropdown.remove()},d}),q.define("select2/dropdown/search",["jquery"], function(a){function b(){}return b.prototype.render=function(b){var d=b.call(this),c=this.options.get("translations").get("search");b=a('');return this.$searchContainer=b,this.$search=b.find("input"),this.$search.prop("autocomplete",this.options.get("autocomplete")),this.$search.attr("aria-label", c()),d.prepend(b),d},b.prototype.bind=function(b,d,c){var e=this,f=d.id+"-results";b.call(this,d,c);this.$search.on("keydown",function(a){e.trigger("keypress",a);e._keyUpPrevented=a.isDefaultPrevented()});this.$search.on("input",function(b){a(this).off("keyup")});this.$search.on("keyup input",function(a){e.handleSearch(a)});d.on("open",function(){e.$search.attr("tabindex",0);e.$search.attr("aria-controls",f);e.$search.trigger("focus");window.setTimeout(function(){e.$search.trigger("focus")},0)}); d.on("close",function(){e.$search.attr("tabindex",-1);e.$search.removeAttr("aria-controls");e.$search.removeAttr("aria-activedescendant");e.$search.val("");e.$search.trigger("blur")});d.on("focus",function(){d.isOpen()||e.$search.trigger("focus")});d.on("results:all",function(a){null!=a.query.term&&""!==a.query.term||(e.showSearch(a)?e.$searchContainer[0].classList.remove("select2-search--hide"):e.$searchContainer[0].classList.add("select2-search--hide"))});d.on("results:focus",function(a){a.data._resultId? e.$search.attr("aria-activedescendant",a.data._resultId):e.$search.removeAttr("aria-activedescendant")})},b.prototype.handleSearch=function(a){var b;this._keyUpPrevented||(b=this.$search.val(),this.trigger("query",{term:b}));this._keyUpPrevented=!1},b.prototype.showSearch=function(a,b){return!0},b}),q.define("select2/dropdown/hidePlaceholder",[],function(){function a(a,b,d,c){this.placeholder=this.normalizePlaceholder(d.get("placeholder"));a.call(this,b,d,c)}return a.prototype.append=function(a,b){b.results= this.removePlaceholder(b.results);a.call(this,b)},a.prototype.normalizePlaceholder=function(a,b){return"string"==typeof b&&(b={id:"",text:b}),b},a.prototype.removePlaceholder=function(a,b){a=b.slice(0);for(var d=b.length-1;0<=d;d--)this.placeholder.id===b[d].id&&a.splice(d,1);return a},a}),q.define("select2/dropdown/infiniteScroll",["jquery"],function(a){function b(a,b,d,c){this.lastParams={};a.call(this,b,d,c);this.$loadingMore=this.createLoadingMore();this.loading=!1}return b.prototype.append=function(a, b){this.$loadingMore.remove();this.loading=!1;a.call(this,b);this.showLoadingMore(b)&&(this.$results.append(this.$loadingMore),this.loadMoreIfNeeded())},b.prototype.bind=function(a,b,d){var c=this;a.call(this,b,d);b.on("query",function(a){c.lastParams=a;c.loading=!0});b.on("query:append",function(a){c.lastParams=a;c.loading=!0});this.$results.on("scroll",this.loadMoreIfNeeded.bind(this))},b.prototype.loadMoreIfNeeded=function(){var b=a.contains(document.documentElement,this.$loadingMore[0]);!this.loading&& b&&(b=this.$results.offset().top+this.$results.outerHeight(!1),this.$loadingMore.offset().top+this.$loadingMore.outerHeight(!1)<=b+50&&this.loadMore())},b.prototype.loadMore=function(){this.loading=!0;var b=a.extend({},{page:1},this.lastParams);b.page++;this.trigger("query:append",b)},b.prototype.showLoadingMore=function(a,b){return b.pagination&&b.pagination.more},b.prototype.createLoadingMore=function(){var b=a('
  • '), d=this.options.get("translations").get("loadingMore");return b.html(d(this.lastParams)),b},b}),q.define("select2/dropdown/attachBody",["jquery","../utils"],function(a,b){function d(b,d,c){this.$dropdownParent=a(c.get("dropdownParent")||document.body);b.call(this,d,c)}return d.prototype.bind=function(a,b,d){var c=this;a.call(this,b,d);b.on("open",function(){c._showDropdown();c._attachPositioningHandler(b);c._bindContainerResultHandlers(b)});b.on("close",function(){c._hideDropdown();c._detachPositioningHandler(b)}); this.$dropdownContainer.on("mousedown",function(a){a.stopPropagation()})},d.prototype.destroy=function(a){a.call(this);this.$dropdownContainer.remove()},d.prototype.position=function(a,b,d){b.attr("class",d.attr("class"));b[0].classList.remove("select2");b[0].classList.add("select2-container--open");b.css({position:"absolute",top:-999999});this.$container=d},d.prototype.render=function(b){var d=a("");b=b.call(this);return d.append(b),this.$dropdownContainer=d},d.prototype._hideDropdown= function(a){this.$dropdownContainer.detach()},d.prototype._bindContainerResultHandlers=function(a,b){var d;this._containerResultsHandlersBound||(d=this,b.on("results:all",function(){d._positionDropdown();d._resizeDropdown()}),b.on("results:append",function(){d._positionDropdown();d._resizeDropdown()}),b.on("results:message",function(){d._positionDropdown();d._resizeDropdown()}),b.on("select",function(){d._positionDropdown();d._resizeDropdown()}),b.on("unselect",function(){d._positionDropdown();d._resizeDropdown()}), this._containerResultsHandlersBound=!0)},d.prototype._attachPositioningHandler=function(d,c){var e=this;d="scroll.select2."+c.id;var f="resize.select2."+c.id,g="orientationchange.select2."+c.id;c=this.$container.parents().filter(b.hasScroll);c.each(function(){b.StoreData(this,"select2-scroll-position",{x:a(this).scrollLeft(),y:a(this).scrollTop()})});c.on(d,function(d){d=b.GetData(this,"select2-scroll-position");a(this).scrollTop(d.y)});a(window).on(d+" "+f+" "+g,function(a){e._positionDropdown(); e._resizeDropdown()})},d.prototype._detachPositioningHandler=function(d,c){d="scroll.select2."+c.id;var e="resize.select2."+c.id;c="orientationchange.select2."+c.id;this.$container.parents().filter(b.hasScroll).off(d);a(window).off(d+" "+e+" "+c)},d.prototype._positionDropdown=function(){var b=a(window),d=this.$dropdown[0].classList.contains("select2-dropdown--above"),c=this.$dropdown[0].classList.contains("select2-dropdown--below"),e=null,f=this.$container.offset();f.bottom=f.top+this.$container.outerHeight(!1); var g=this.$container.outerHeight(!1);var l=f.top;g=f.top+g;var k=this.$dropdown.outerHeight(!1),m=b.scrollTop(),n=b.scrollTop()+b.height(),p=mf.bottom+k;m={left:f.left,top:g};n=this.$dropdownParent;"static"===n.css("position")&&(n=n.offsetParent());f={top:0,left:0};(a.contains(document.body,n[0])||n[0].isConnected)&&(f=n.offset());m.top-=f.top;m.left-=f.left;d||c||(e="below");b||!p||d?!p&&b&&d&&(e="below"):e="above";("above"==e||d&&"below"!==e)&&(m.top=l-f.top-k);null!=e&&(this.$dropdown[0].classList.remove("select2-dropdown--below"), this.$dropdown[0].classList.remove("select2-dropdown--above"),this.$dropdown[0].classList.add("select2-dropdown--"+e),this.$container[0].classList.remove("select2-container--below"),this.$container[0].classList.remove("select2-container--above"),this.$container[0].classList.add("select2-container--"+e));this.$dropdownContainer.css(m)},d.prototype._resizeDropdown=function(){var a={width:this.$container.outerWidth(!1)+"px"};this.options.get("dropdownAutoWidth")&&(a.minWidth=a.width,a.position="relative", a.width="auto");this.$dropdown.css(a)},d.prototype._showDropdown=function(a){this.$dropdownContainer.appendTo(this.$dropdownParent);this._positionDropdown();this._resizeDropdown()},d}),q.define("select2/dropdown/minimumResultsForSearch",[],function(){function a(a,b,d,c){this.minimumResultsForSearch=d.get("minimumResultsForSearch");0>this.minimumResultsForSearch&&(this.minimumResultsForSearch=1/0);a.call(this,b,d,c)}return a.prototype.showSearch=function(a,b){return!(function h(a){for(var b=0,d=0;d< a.length;d++){var c=a[d];c.children?b+=h(c.children):b++}return b}(b.data.results)b.length||null!=(b=a.GetData(b[0],"data")).element&&b.element.selected||null==b.element&&b.selected||this.trigger("select",{data:b})},b}),q.define("select2/dropdown/closeOnSelect",[],function(){function a(){}return a.prototype.bind=function(a,b,d){var c=this;a.call(this,b,d);b.on("select",function(a){c._selectTriggered(a)});b.on("unselect",function(a){c._selectTriggered(a)})},a.prototype._selectTriggered=function(a,b){(a=b.originalEvent)&&(a.ctrlKey||a.metaKey)||this.trigger("close",{originalEvent:a, originalSelect2Event:b})},a}),q.define("select2/dropdown/dropdownCss",["../utils"],function(a){function b(){}return b.prototype.render=function(b){var d=b.call(this);b=this.options.get("dropdownCssClass")||"";return-1!==b.indexOf(":all:")&&(b=b.replace(":all:",""),a.copyNonInternalCssClasses(d[0],this.$element[0])),d.addClass(b),d},b}),q.define("select2/dropdown/tagsSearchHighlight",["../utils"],function(a){function b(){}return b.prototype.highlightFirstItem=function(b){var d=this.$results.find(".select2-results__option--selectable:not(.select2-results__option--selected)"); if(0=d?"auto":d+"px"; if("style"!=b)return"computedstyle"!=b?b:window.getComputedStyle(a[0]).width;a=a.attr("style");if("string"!=typeof a)return null;a=a.split(";");b=0;for(var c=a.length;b');return b.attr("dir",this.options.get("dir")),this.$container=b,this.$container[0].classList.add("select2-container--"+this.options.get("theme")),d.StoreData(b[0],"element",this.$element),b},e}),q.define("select2/dropdown/attachContainer",[],function(){function a(a,b,d){a.call(this,b,d)}return a.prototype.position=function(a, b,d){d.find(".dropdown-wrapper").append(b);b[0].classList.add("select2-dropdown--below");d[0].classList.add("select2-container--below")},a}),q.define("select2/dropdown/stopPropagation",[],function(){function a(){}return a.prototype.bind=function(a,b,d){a.call(this,b,d);this.$dropdown.on("blur change click dblclick focus focusin focusout input keydown keyup keypress mousedown mouseenter mouseleave mousemove mouseover mouseup search touchend touchstart",function(a){a.stopPropagation()})},a}),q.define("select2/selection/stopPropagation", [],function(){function a(){}return a.prototype.bind=function(a,b,d){a.call(this,b,d);this.$selection.on("blur change click dblclick focus focusin focusout input keydown keyup keypress mousedown mouseenter mouseleave mousemove mouseover mouseup search touchend touchstart",function(a){a.stopPropagation()})},a}),z=function(a){function b(b){var g,h=b||window.event,l=k.call(arguments,1),m,p=0,t=0,u=0,w=0,q=0;if(b=a.event.fix(h),b.type="mousewheel","detail"in h&&(t=-1*h.detail),"wheelDelta"in h&&(t=h.wheelDelta), "wheelDeltaY"in h&&(t=h.wheelDeltaY),"wheelDeltaX"in h&&(p=-1*h.wheelDeltaX),"axis"in h&&h.axis===h.HORIZONTAL_AXIS&&(p=-1*t,t=0),m=0===t?p:t,"deltaY"in h&&(m=t=-1*h.deltaY),"deltaX"in h&&(p=h.deltaX,0===t&&(m=-1*p)),0!==t||0!==p)return 1===h.deltaMode?(m*=g=a.data(this,"mousewheel-line-height"),t*=g,p*=g):2===h.deltaMode&&(m*=g=a.data(this,"mousewheel-page-height"),t*=g,p*=g),u=Math.max(Math.abs(t),Math.abs(p)),(!f||u{{text}}\n ',props:{classes:[],link:"",text:""}});new CloudLibraryVue({el:"#tdb-modal",router:window.tdbVue.router})}window.tdbVueManager&&"undefined"!==typeof window.tdbVueManager.router&&new CloudLibraryVue({el:"#tdb-modal-website-manager",router:window.tdbVueManager.router}); (function(){function a(a,d,c,g,f,l,k){var b=jQuery(".tdb-"+a+"-templates");b.length&&"undefined"===typeof b.data("tdb-templates")&&("undefined"!==typeof l&&l.call(),tdbGetMobileTemplates(a,d,b),l="","undefined"!==typeof tdcState&&(l=tdcState.isMobileComposer()?"1":""),l={action:"tdb_get_"+a+"_templates",mobile_templates:l,_nonce:window.tdb_globals.wpRestNonce},"cpt_tax"===a?l.data_id=d:l[a+"_id"]=d,jQuery.ajax({type:"POST",url:td_ajax_url,data:l,success:function(e,l,m){b.html("");e=jQuery.parseJSON(e); l='
    Cloud Templates
    '+("undefined"!==typeof g&&!0===g?'
    Global
    ':"")+'
    Mobile Template
    ';var n=m="",p=!1;_.isArray(e)&&e.length?(_.each(e, function(b,e,l){l="";"true"===b.is_current.toString()&&(l=" tdb-current",p=!0);var k="";e="";switch(a){case "single":k=b.template_title+" - Set template for this post";break;case "category":k=b.template_title+" - Set template for this category";break;case "author":k=b.template_title+" - Set template for this author";break;case "tag":k=b.template_title+" - Set template for this tag";break;case "search":""!==b.cpt?(k=b.template_title+" - Set this template for the "+b.cpt.label+" custom post type",e= ' data-cpt="'+b.cpt.name+'"'):k=b.template_title+" - Set this template for post search results";break;case "woo_product":k=b.template_title+" - Set template for this product";break;case "woo_archive":k=b.template_title+" - Set template for this product archive";break;case "cpt":k=b.template_title+" - Set template for this custom post type";break;case "cpt_tax":""!==b.cpt?(k=b.template_title+" - Set this template for the "+b.cpt.label+" custom post type archive",e=' data-cpt="'+b.cpt.name+'"'):k=b.template_title+ " - Set template for this taxonomy"}l='
    '+b.template_id+'
    "+b.template_title+'
    Rename
    Duplicate
    Delete
    '; "undefined"!==typeof g&&!0===g&&(k="","undefined"!==typeof f&&""!==f&&(k='data-global-action="'+f+'"'),l+='
    Global
    '); l+='
    '+(""===b.mobile_template_title?"-":'Yes')+'
    ';n+=l+"
    "}),"undefined"!==typeof g&&!0===g&&(m+='
    Global Template
    '),b.append(m+l+n)):(b.append(l),b.append('
    No cloud templates. Please import one or more templates from Cloud Library.
    '));b.data("tdb-templates",!0);"undefined"!==typeof k&&k.call()},error:function(a,b,d){}}))}function c(a,d,c){var b=jQuery(window);b.resize(function(){var e=b.width();a.offset().left+d.width()>e?d.hasClass(c)||d.addClass(c): d.hasClass(c)&&d.removeClass(c)});b.resize()}jQuery(document).ready(function(){jQuery("#wp-admin-bar-tdb_template_builder_disabled a").click(function(a){a.preventDefault();alert("Please select tagDiv Builder Template from the theme panel or set a default template. The current page/post uses a template that is not editable.")});jQuery("#wp-admin-bar-new-tdb_templates").hide()});jQuery("body").on("click","#wp-admin-bar-tdb_template_load, .tdb-load-mobile-template",function(a){a.preventDefault();var b= jQuery(this),c=b.attr("class");a="";var g=!1;b.hasClass("tdb-load-mobile-template")&&(g=!0);"undefined"!==typeof c&&(0===c.indexOf("singleid-")?(a={wp_type:"single",templateType:"Single"},b=c.split(" ")[0].replace("singleid-",""),g?a.assign_mobile_to_template=b:a.assign_to_post=b):0===c.indexOf("categoryid-")?(a={wp_type:"category",templateType:"Category"},b=c.split(" ")[0].replace("categoryid-",""),g?a.assign_mobile_to_template=b:a.assign_to_category=b):0===c.indexOf("404")?(a={wp_type:"404",templateType:"404"}, b=btoa(window.location.href),g?a.assign_mobile_to_template=b:a.assign_to_404=b):0===c.indexOf("date")?(a={wp_type:"date",templateType:"Date"},b=btoa(window.location.href),g?a.assign_mobile_to_template=b:a.assign_to_archive=b):0===c.indexOf("search")?(a={wp_type:"search",templateType:"Search"},b=btoa(window.location.href),g?a.assign_mobile_to_template=b:a.assign_to_search=b):0===c.indexOf("attachment")?(a={wp_type:"attachment",templateType:"Attachment"},b=btoa(window.location.href),g?a.assign_mobile_to_template= b:a.assign_to_attachment=b):0===c.indexOf("authorid")?(a={wp_type:"author",templateType:"Author"},b=c.split(" ")[0].replace("authorid-",""),g?a.assign_mobile_to_template=b:a.assign_to_author=b):0===c.indexOf("tagid")?(a={wp_type:"tag",templateType:"Tag"},b=c.split(" ")[0].replace("tagid-",""),g?a.assign_mobile_to_template=b:a.assign_to_tag=b):0===c.indexOf("pageid")?(a={wp_type:"page",templateType:"Pages"},b=c.split(" ")[0].replace("pageid-",""),g&&(a.assign_mobile_to_template=b)):0===c.indexOf("woo_productid-")? (a={wp_type:"woo_product",templateType:"Woo Product"},b=c.split(" ")[0].replace("woo_productid-",""),g?a.assign_mobile_to_template=b:a.assign_to_woo_product=b):0===c.indexOf("woo_archive")?(a={wp_type:"woo_archive",templateType:"Woo Archive"},b=btoa(window.location.href),g?a.assign_mobile_to_template=b:a.assign_to_search=b):0===c.indexOf("woo_search_archive")?(a={wp_type:"woo_search_archive",templateType:"Woo Search"},b=btoa(window.location.href),g?a.assign_mobile_to_template=b:a.assign_to_search= b):0===c.indexOf("woo_shop_base")?(a={wp_type:"woo_shop_base",templateType:"Woo Shop Base"},b=btoa(window.location.href),g?a.assign_mobile_to_template=b:a.assign_to_search=b):0===c.indexOf("cpt_tax")?(a={wp_type:"cpt_tax",templateType:"Custom Taxonomy"},b=c.split(" ")[0].replace("templateid-",""),g?a.assign_mobile_to_template=b:a.assign_to_cpt_tax=b):0===c.indexOf("cpt")&&(a={wp_type:"cpt",templateType:"Custom Post Type"},b=c.split(" ")[0].replace("cptid-",""),g?a.assign_mobile_to_template=b:a.assign_to_cpt= b),""!==a&&(a.hide_mobile_selector="hide",window.tdbVue.router.push({name:"loadRoute",params:a})))}).on("click",".tdb-create-mobile-template",function(a){var b=jQuery(this),c=b.data("template-id"),g=b.data("type");tdConfirm.modal({caption:"Create Mobile "+("page"===g?"Page":"Template"),objectContext:window,callbackYes:function(){var a=jQuery("#tdb-new-template-name"),d=jQuery("#tdb-copy-content");jQuery.ajax({type:"POST",url:td_ajax_url,data:{action:"tdb_create_mobile_template",template_id:c,template_title:a.val(), template_type:g,copyContent:d.is(":checked")?"1":"0",_nonce:window.tdb_globals.wpRestNonce},success:function(a,d,e){a=jQuery.parseJSON(a);"undefined"!==typeof a.mobile_template_id&&(tdConfirm.close(),d=b.closest(".tdb-template-el"),d.length&&(e=d.find(".tdb-template-el-mobile:first"),d.find(".tdb-template-el-mobile-btns:first").data("mobile-template-id",a.mobile_template_id),e.html('Yes')),tdbGetMobileTemplates(g,c))},error:function(a,b,d){}})},htmlInfoContent:"Enter the mobile "+ ("page"===g?"page":"template")+' name:
    ',textYes:"Create",textNo:"Cancel"})}).on("click", "#wp-admin-bar-tdb_template_single > a, #wp-admin-bar-tdb_template_category > a, #wp-admin-bar-tdb_template_404 > a, #wp-admin-bar-tdb_template_date > a, #wp-admin-bar-tdb_template_search > a, #wp-admin-bar-tdb_template_attachment > a, #wp-admin-bar-tdb_template_author > a, #wp-admin-bar-tdb_template_tag > a, #wp-admin-bar-tdb_template_woo_product > a, #wp-admin-bar-tdb_template_woo_archive > a, #wp-admin-bar-tdb_template_woo_shop_base > a, #wp-admin-bar-tdb_template_woo_search_archive > a, #wp-admin-bar-tdb_template_cpt > a, #wp-admin-bar-tdb_template_cpt_tax > a", function(b){b.preventDefault();var d=jQuery(this),e=d.parent(),g=e.attr("class"),f="",l="",k="",m="";switch(e.attr("id")){case "wp-admin-bar-tdb_template_single":f="single";l="tdb_assign_single_template_to_post";k="tdb_assign_single_template_global";m=g.replace(f+"id-","");break;case "wp-admin-bar-tdb_template_category":f="category";l="tdb_assign_cat_template_to_cat";k="tdb_assign_cat_template_global";m=g.replace(f+"id-","");break;case "wp-admin-bar-tdb_template_404":f="404";l="tdb_assign_404_template_global"; k="";m=g.replace("templateid-","");break;case "wp-admin-bar-tdb_template_date":f="date";l="tdb_assign_date_template_global";k="";m=g.replace("templateid-","");break;case "wp-admin-bar-tdb_template_search":f="search";l="tdb_assign_search_template_global";k="";m=g.replace("templateid-","");break;case "wp-admin-bar-tdb_template_attachment":f="attachment";l="tdb_assign_attachment_template_global";k="";m=g.replace("templateid-","");break;case "wp-admin-bar-tdb_template_author":f="author";l="tdb_assign_author_template_to_author"; k="tdb_assign_author_template_global";m=g.replace(f+"id-","");break;case "wp-admin-bar-tdb_template_tag":f="tag";l="tdb_assign_tag_template_to_tag";k="tdb_assign_tag_template_global";m=g.replace(f+"id-","");break;case "wp-admin-bar-tdb_template_woo_product":f="woo_product";l="tdb_assign_woo_product_template_to_product";k="tdb_assign_woo_product_template_global";m=g.replace(f+"id-","");break;case "wp-admin-bar-tdb_template_woo_archive":f="woo_archive";l="tdb_assign_woo_archive_template_to_tax";k="tdb_assign_woo_archive_template_global"; m=g.replace(f+"id-","");break;case "wp-admin-bar-tdb_template_woo_search_archive":f="woo_search_archive";l="tdb_assign_woo_search_archive_template_global";k="";m=g.replace("templateid-","");break;case "wp-admin-bar-tdb_template_woo_shop_base":f="woo_shop_base";l="tdb_assign_woo_shop_base_template_global";k="";m=g.replace("templateid-","");break;case "wp-admin-bar-tdb_template_cpt":f="cpt";l="tdb_assign_cpt_template_to_cpt";k="tdb_assign_cpt_template_global";m=g.replace(f+"id-","");break;case "wp-admin-bar-tdb_template_cpt_tax":f= "cpt_tax",l="tdb_assign_cpt_tax_template_to_tax",k="tdb_assign_cpt_tax_template_global",m=g.replace("templateid-","")}var n=jQuery(".tdb-"+f+"-templates");n.length?b.currentTarget===this&&jQuery(b.target).parent().attr("id")==="wp-admin-bar-tdb_template_"+f&&(n.toggle(),d.toggleClass("tdb-templates-open"),d.toggleClass("tdb-templates-close")):(d.addClass("tdb-templates-loading"),n=jQuery('
    '),n.insertAfter(d),n.show());a(f,m,l, ""===k?!1:!0,k,void 0,function(){d.removeClass("tdb-templates-loading");d.addClass("tdb-templates-open");c(d,n,"tdb-templates-align-right")})}).on("click","#wp-admin-bar-tdc_page_mobile_template > a",function(a){a.preventDefault();var b=jQuery(this);a=b.parent().attr("class").replace("pageid-","");var e=jQuery("#tdb-mobile-templates");e.length?(e.toggle(),b.toggleClass("tdb-templates-open"),b.toggleClass("tdb-templates-close")):(b.addClass("tdb-templates-loading"),b.addClass("tdb-templates-open"), tdbGetMobileTemplates("page",a,b,void 0,function(){b.removeClass("tdb-templates-loading");jQuery("#tdb-mobile-templates").show();c(b,jQuery("#tdb-mobile-templates"),"tdb-mobile-templates-align-right")}))}).on("click","#wp-admin-bar-tdc_create_mobile_page",function(a){var b=jQuery(this).attr("class").split(" ")[0].replace("pageid-","");tdConfirm.modal({caption:"Create Mobile Page",objectContext:window,callbackYes:function(){var a=jQuery("#tdb-new-template-name"),d=jQuery("#tdb-copy-content");jQuery.ajax({type:"POST", url:td_ajax_url,data:{action:"tdb_create_mobile_template",template_id:b,template_title:a.val(),template_type:"page",copyContent:d.is(":checked")?"1":"0",_nonce:window.tdb_globals.wpRestNonce},success:function(d,c,e){"undefined"!==typeof jQuery.parseJSON(d).mobile_template_id&&(tdConfirm.close(),d=jQuery("#wp-admin-bar-tdc_page_mobile_template"),d.length&&d.find("a:first").html('Mobile page'+a.val()),tdbGetMobileTemplates("page",b))},error:function(a,b,d){}})}, htmlInfoContent:'Enter the mobile page name:
    ',textYes:"Create",textNo:"Cancel"})}).on("click", ".tdb-single-template-global label, .tdb-category-template-global label, .tdb-author-template-global label, .tdb-tag-template-global label, .tdb-woo_product-template-global label, .tdb-woo_archive-template-global label, .tdb-cpt-template-global label, .tdb-cpt_tax-template-global label ",function(a){a.preventDefault();var b=jQuery(this);a=b.closest(".tdb-template-el-global");var c=a.data("type"),g=a.data("global-action"),f=b.parent().data(c+"-id"),l=b.parent().data("template-id"),k=jQuery(".tdb-templates"); b={action:g,template_id:l,_nonce:window.tdb_globals.wpRestNonce};switch(c){case "single":b.single_id=f;break;case "category":b.category_id=f;break;case "tag":b.tag_id=f;break;case "author":b.author_id=f;break;case "woo_product":b.woo_product_id=f;break;case "woo_archive":b.woo_term_id=f;break;case "cpt":b.cpt_id=f;b.option="single_tpl";break;case "cpt_tax":void 0!==a.data("cpt")?(b.action="tdb_assign_cpt_template_global",b.cpt=f,b.option="archive_tpl"):b.cpt_tax_id=f}jQuery.ajax({type:"POST",url:td_ajax_url, data:b,success:function(a,b,d){a=jQuery.parseJSON(a);"undefined"!==typeof a.reload&&window.location.reload();"undefined"!==typeof a.global_template_id&&(k.find(".tdb-"+c+'-template-global > input[type="checkbox"]').removeAttr("checked"),k.find(".tdb-"+c+'-template-global[data-template-id="'+l+'"] > input[type="checkbox"]').attr("checked",!0))},error:function(a,b,d){}});return!1}).on("click",".tdb-template-el-title",function(a){a.preventDefault();if(a.target===a.currentTarget){a=jQuery(this);var b= a.data("action"),c=a.data("type"),g=a.data(c+"-id"),f=a.data("template-id");b={action:b,template_id:f,_nonce:window.tdb_globals.wpRestNonce};"cpt"===c?b.cpt=a.data("cpt-id"):"cpt_tax"===c&&(b.cpt_tax=a.data("cpt_tax-id"));switch(c){case "single":b.single_id=g;break;case "category":b.category_id=g;break;case "author":b.author_id=g;break;case "tag":b.tag_id=g;break;case "woo_product":b.woo_product_id=g;break;case "woo_archive":b.woo_term_id=g;break;case "cpt":b.cpt_id=g;break;case "cpt_tax":void 0!== a.data("cpt")?(b.action="tdb_assign_cpt_template_global",b.cpt=g,b.option="archive_tpl"):b.cpt_tax_id=g;break;case "search":void 0!==a.data("cpt")&&(b.action="tdb_assign_cpt_template_global",b.cpt=g,b.option="search_tpl")}jQuery.ajax({type:"POST",url:td_ajax_url,data:b,success:function(a,b,d){"undefined"===typeof jQuery.parseJSON(a).reload&&"cpt"!==c&&"cpt_tax"!==c&&"search"!==c||window.location.reload()},error:function(a,b,d){}});return!1}}).on("change",".tdb-template-el-title-input",function(a){a.preventDefault(); a=jQuery(this);var b=a.closest(".tdb-templates"),c=a.closest(".tdb-template-el"),g=c.find(".tdb-template-el-title:first");b.data("type");b=c.data("template-id");g.html();jQuery.ajax({type:"POST",url:td_ajax_url,data:{action:"tdb_change_template_name",template_id:b,template_title:a.val(),_nonce:window.tdb_globals.wpRestNonce},success:function(a,b,c){a=jQuery.parseJSON(a);"undefined"!==typeof a.template_id&&(g.html(a.template_title),g.removeData("title"))},error:function(a,b,c){}})}).on("click",".tdb-template-el-edit", function(a){a.preventDefault();var b=jQuery(this);a=b.closest(".tdb-templates");var c=b.closest(".tdb-template-el");b=c.find(".tdb-template-el-title:first");a.data("type");c.data("template-id");c=b.html();"undefined"===typeof b.data("title")&&(a.find(".tdb-template-el-title").each(function(a,b){a=jQuery(b);b=a.data("title");"undefined"!==typeof b&&(a.html(b),a.removeData("title"))}),b.data("title",b.html()),b.html(''),b.find("input").focus().select())}).on("click", ".tdb-template-el-duplicate",function(b){b.preventDefault();b=jQuery(this);var c=b.closest(".tdb-templates"),e=b.closest(".tdb-template-el"),g=e.find(".tdb-template-el-title:first"),f=c.data("type");b=e.data("template-id");var l=g.html(),k=g.data(f+"-id"),m=g.data("action"),n="";0<="single category tag author woo_product woo_archive".split(" ").indexOf(f)&&(e=e.find(".tdb-template-el-global:first"),e.length&&(n=e.data("global-action")));tdbApi.run({wpNonce:window.tdb_globals.wpRestNonce,cloudEndPoint:"td-cloud-library/new_template", post:{postId:b,templateType:f,templateName:l,duplicateTemplate:!0},done:function(b){c.removeData("tdb-templates");a(f,0<="single category tag author woo_product woo_archive cpt".split(" ").indexOf(f)?k:"",m,""===n?!1:!0,n)},error:function(a){console.log("td-cloud-library/new_template ( duplicate template ) - ERROR",a)}});jQuery(".tdb-template-el-title-input").trigger("change")}).on("keyup",".tdb-template-el-title-input",function(a){27===a.keyCode&&jQuery(this).trigger("change")}).on("click",".tdb-template-el-delete", function(a){a=jQuery(this);a.closest(".tdb-templates");var b=a.closest(".tdb-template-el");a=b.data("template-id");jQuery.ajax({type:"POST",url:td_ajax_url,data:{action:"tdb_delete_template",template_id:a,_nonce:window.tdb_globals.wpRestNonce},success:function(a,c,d){a=jQuery.parseJSON(a);"undefined"!==typeof a.reload&&window.location.reload();"undefined"!==typeof a.template_id&&b.remove()},error:function(a,b,c){}});jQuery(".tdb-template-el-title-input").trigger("change")}).on("click",function(a){a= jQuery(a.target);a.closest("#wp-admin-bar-tdb_template_single").length||a.closest("#wp-admin-bar-tdb_template_category").length||a.closest("#wp-admin-bar-tdb_template_404").length||a.closest("#wp-admin-bar-tdb_template_date").length||a.closest("#wp-admin-bar-tdb_template_search").length||a.closest("#wp-admin-bar-tdb_template_attachment").length||a.closest("#wp-admin-bar-tdb_template_author").length||a.closest("#wp-admin-bar-tdb_template_tag").length||a.closest("#wp-admin-bar-tdb_template_woo_product").length|| a.closest("#wp-admin-bar-tdb_template_woo_archive").length||a.closest("#wp-admin-bar-tdb_template_woo_search_archive").length||a.closest("#wp-admin-bar-tdb_template_woo_shop_base").length||a.closest("#wp-admin-bar-tdb_template_cpt").length||a.closest("#wp-admin-bar-tdb_template_cpt_tax").length||a.closest("#wp-admin-bar-tdc_page_mobile_template").length||(a=jQuery(".tdb-templates"),a.length&&(a.hide(),a.prev("a").removeClass("tdb-templates-open").addClass("tdb-templates-close"),jQuery(".tdb-template-el-title-input").trigger("change")), a=jQuery("#tdb-mobile-templates"),a.length&&(a.hide(),a.prev("a").removeClass("tdb-templates-open").addClass("tdb-templates-close")))}).on("click","#tdb-mobile-templates .tdb-template-el-mobile-list-el",function(a){var b=jQuery(this),c=jQuery("#tdb-mobile-templates");a=b.data("template-id");var g=b.data("mobile-template-id"),f=c.closest(".tdb-template-el-mobile-btns"),l=b.closest(".tdb-template-el-mobile-wrap"),k=b.closest("#wp-admin-bar-tdc_page_mobile_template");jQuery.ajax({type:"POST",url:td_ajax_url, data:{action:"tdb_set_mobile_template",template_id:a,mobile_template_id:g,_nonce:window.tdb_globals.wpRestNonce},success:function(a,d,e){a=jQuery.parseJSON(a);_.isObject(a)&&!_.isUndefined(a.result)&&1===a.result&&(f.data("mobile-template-id",g),c.find(".tdb-template-el-mobile-list-el").removeClass("tdb-current"),c.find('.tdb-template-el-mobile-list-el[data-mobile-template-id="'+g+'"]').addClass("tdb-current"),l.length&&(a=l.find(".tdb-template-el-mobile:first"),""===g?a.html("-"):a.html('Yes')), k.length&&(k.find("a:first").html('Mobile page'+b.find(".tdb-template-el-mobile-list-title:first").html()),"No mobile page"===b.find(".tdb-template-el-mobile-list-title:first").html()&&k.find("a:first").html('Mobile page')))}})}).on("click","#tdb-mobile-templates .tdb-template-el-mobile-list-edit",function(a){a.stopPropagation()}).on("click","#tdb-mobile-templates .tdb-template-el-mobile-list-delete", function(a){a.stopPropagation();a=jQuery(this);var b=a.data("type"),c=a.closest(".tdb-template-el-mobile-list-el"),g=c.data("template-id");a=c.data("mobile-template-id");var f=c.hasClass("tdb-current"),l=jQuery("#tdb-mobile-templates").closest(".tdb-template-el");jQuery.ajax({type:"POST",url:td_ajax_url,data:{action:"tdb_delete_template",template_id:a,_nonce:window.tdb_globals.wpRestNonce},success:function(a,d,e){"undefined"!==typeof jQuery.parseJSON(a).template_id&&tdbGetMobileTemplates(b,g,void 0, function(){jQuery("#tdb-mobile-templates").addClass("loading")},function(){jQuery("#tdb-mobile-templates").removeClass("loading");if(f)if("page"===b){var a=jQuery("#wp-admin-bar-tdc_page_mobile_template");a.length&&a.find("a:first").html('Mobile pageNo mobile page')}else c.remove(),l.length&&l.find(".tdb-template-el-mobile:first").html("-")})},error:function(a,b,c){}})}).on("mouseenter",".tdb-template-el-mobile-btns",function(a){a=jQuery(this);var b=a.data("mobile-template-id"), c=a.data("template-id"),g=jQuery("#tdb-mobile-templates");g.find(".tdb-template-el-mobile-list-inner").is(":empty")||(g.appendTo(a).show(),g.find(".tdb-template-el-mobile-list-el").removeClass("tdb-current"),g.find(".tdb-template-el-mobile-list-el").data("template-id",c),g.find('.tdb-template-el-mobile-list-el[data-mobile-template-id="'+b+'"]').addClass("tdb-current"))}).on("mouseleave",".tdb-template-el-mobile-btns",function(a){a=jQuery(".tdb-templates");var b=jQuery("#tdb-mobile-templates");b.hide(); b.insertBefore(a);b.find(".tdb-template-el-mobile-list-el").removeClass("tdb-current")});jQuery(".tdb-templates");window.tdbGetMobileTemplates=function(a,c,e,g,f,l,k){var b=jQuery("#tdb-mobile-templates",l);b.length||(b=jQuery(''), b.hide());"undefined"!==typeof e&&b.insertAfter(e);e={action:"tdb_get_"+a+"_mobile_templates",_nonce:window.tdb_globals.wpRestNonce};e[a+"_id"]=c;"undefined"!==typeof g&&g.call();jQuery.ajax({type:"POST",url:td_ajax_url,data:e,success:function(d,e,g){var l="";g=jQuery.parseJSON(d);d='
  • Load mobile page from Cloud Library
  • Create blank mobile page
  • ';if(_.isArray(g)&&g.length){var m=!1,n="template";e="";"page"===a&&(n="page",e=d);_.each(g,function(b,d,e){d="";_.isUndefined(b.is_current)||(d="tdb-current",m=!0);l+='
    '+b.template_title+'
    '});""!==l&&(g="",m||(g="tdb-current",m=!0),l=e+'
    No mobile '+n+"
    "+l);""!==l&&(b.html('
    '+l+'
    Documentation »'), e=b.parent(".tdb-template-el-mobile-btns"),!_.isUndefined(k)&&e.length&&(b.find(".tdb-template-el-mobile-list-el").removeClass("tdb-current"),b.find(".tdb-template-el-mobile-list-el").data("template-id",c),b.find('.tdb-template-el-mobile-list-el[data-mobile-template-id="'+k+'"]').addClass("tdb-current")),b.is(":visible")&&e.length?b.show():b.hide())}""===l&&("page"===a?b.html(d+'
    No mobile page, please import or create a new mobile page.
    Documentation »
    '): b.html(""));"undefined"!==typeof f&&f.call()}})}})(); jQuery(window).on("load",function(){var a=!1;window.parent===window.top&&"undefined"!==typeof window.name&&"tdc-live-iframe"===window.name&&"undefined"!==typeof window.parent.tdcSidebar&&(a=!0);if(window.self===window.top||a)jQuery(".tdb_single_reading_progress").each(function(){var c=jQuery(this),b=c.data("td-block-uid");c=c.data("bar-position");var d=new tdReadingProgressBar.item;d.blockUid=b;d.barPosition=c;tdReadingProgressBar.addItem(d);a&&tdReadingProgressBar.createFixedBar(d,0,30)}),a||tdReadingProgressBar.calculateBarsFill()}); var tdbMenu={}; (function(){tdbMenu={ui_events:"mouseover click keydown wheel touchmove touchstart".split(" "),items:[],item:function(){this.blockUid="";this._outsideClickArea=this._mainMenu=this._itemsWithSubmenu=null;this._outsideClickExcludedAreas="";this._openMenuClass="tdb-hover";this._openMenuBodyClass="tdb-open-menu";this.isMegaMenuParentPos=this.isMegaMenuFull=this.inComposer=!1;this.megaMenuLoadType="";this._is_initialized=!1},init:function(){tdbMenu.items=[]},_initialize_item:function(a){if(!0!==a._is_initialized){tdbMenu._setHover(a); var c=0 ul");f.show();f.each(function(){jQuery(this).css("left","");l=jQuery(this).offset();k=l.left;0>k?jQuery(this).offset({left:0}):(m=jQuery(window).width()-(k+jQuery(this).outerWidth()),0>m&&jQuery(this).offset({left:jQuery(window).width()-jQuery(this).outerWidth()}))});n||(d.find(".tdb-mega-menu-inactive").removeClass("tdb-mega-menu-inactive"),n=!0);f.hide()}var d= a.jqueryObj,e,g,f,l,k,m,n=!1;setTimeout(function(){jQuery(window).resize(function(){e=d.offset();g=e.left;b();c&&setInterval(function(){e=d.offset();e.left!==g&&(b(),g=e.left)},1E3)});jQuery(window).resize()},60)},pageMegaMenuHeight:function(a,c){function b(){g.show();g.each(function(){var a=jQuery(this),b=a.find("> li"),c=e.offset().top+e.outerHeight();b=b.outerHeight();var g=d.scrollTop(),n=d.height();c+b>n+g?a.css({height:n+g-c,"overflow-y":"auto"}):a.css({height:"auto","overflow-y":"visible"})}); g.hide()}var d=jQuery(window),e=a.jqueryObj,g=e.find(".tdb-menu .tdb-mega-menu-page > ul");setTimeout(function(){d.on("resize scroll",function(){b();c&&setInterval(function(){b()},1E3)});d.resize().scroll()},1500)},_getSubmenuPosition:function(a){var c=jQuery(window).width();a=a.children(".sub-menu").first();if(0c&&(a.parent().parent().hasClass("tdb-menu")?a.css("left","-"+(b-c)+"px"):a.addClass("reversed").css("left","-"+(a.width()+0)+"px"))}},_getMouseAngleDirection:function(a, c,b,d){return Math.atan2(b-a,d-c)/Math.PI*180},_setHover:function(a){var c=a.jqueryObj.find(".tdb-menu");c.supersubs({minWidth:10,maxWidth:20,extraWidth:1,applyMin:!0});var b=c.find(".menu-item-has-children > a, .tdb-mega-menu > a");b.parent().find(".sub-menu").first().css("display","none");if(tdDetect.isTouchDevice)jQuery(document).on("touchstart","body",function(c){var d=b.parent(),e=jQuery("body");e.hasClass(a._openMenuBodyClass)&&!d.is(c.target)&&0===d.has(c.target).length&&(d.removeClass(a._openMenuClass), d.children(".sub-menu").hide(),e.removeClass(a._openMenuBodyClass))}),b.on("touchstart",function(c){c.preventDefault();c.stopPropagation();var d=jQuery(this);c=d.parent();var e=jQuery("body");c.hasClass(a._openMenuClass)?null!==d.attr("href")&&"#"!==d.attr("href")?window.location.href=d.attr("href"):((c.parent().hasClass("tdb-menu")||c.parent().hasClass("top-header-menu"))&&e.removeClass(a._openMenuBodyClass),c.removeClass(a._openMenuClass),c.find(".sub-menu").hide(),c.find("li").removeClass(a._openMenuClass)): (c.parent().hasClass("tdb-menu")||c.parent().hasClass("top-header-menu")?(b.parent().removeClass(a._openMenuClass),b.parent().children(".sub-menu").hide()):(d=c.siblings(),d.removeClass(a._openMenuClass),d.find(".sub-menu").hide(),d.find("li").removeClass(a._openMenuClass)),c.addClass(a._openMenuClass),c.children(".sub-menu").show(),tdbMenu._getSubmenuPosition(c),e.addClass(a._openMenuBodyClass))});else{var d={},e,g=!0;c.on("mouseleave",function(){b.parent().removeClass(a._openMenuClass);b.parent().children(".sub-menu").hide(); d={}});c.find(".menu-item").hover(function(){var c=jQuery(this),l="",k,m;if(c.hasClass("menu-item-has-children")||c.hasClass("tdb-mega-menu"))if(c.parent().hasClass("tdb-menu"))if(jQuery.isEmptyObject(d))c.addClass(a._openMenuClass),c.children(".sub-menu").show(),d=c;else{if(c[0]!==d[0]){var n=m=k=0;var p=null;!0===g&&(g=!1,e=setTimeout(function(){b.parent().removeClass(a._openMenuClass);b.parent().children(".sub-menu").hide();c.addClass(a._openMenuClass);c.children(".sub-menu").show();d=c},400)); c.on("mousemove",function(f){5<=k?(k=0,p=tdbMenu._getMouseAngleDirection(m,n,f.pageX,f.pageY),m=f.pageX,n=f.pageY):(k++,0===m&&0===n&&(m=f.pageX,n=f.pageY));null!==p&&(85p)&&(b.parent().removeClass(a._openMenuClass),b.parent().children(".sub-menu").hide(),c.addClass(a._openMenuClass),c.children(".sub-menu").show(),c.off("mousemove"),clearTimeout(e),g=!0,d=c)})}}else l=c.siblings(),l.removeClass(a._openMenuClass),l.find(".sub-menu").hide(),l.find("li").removeClass(a._openMenuClass),c.addClass(a._openMenuClass), c.children(".sub-menu").show(),tdbMenu._getSubmenuPosition(c);else c.parent().hasClass("tdb-menu")?jQuery.isEmptyObject(d)||(n=m=k=0,p=null,!0===g&&(g=!1,e=setTimeout(function(){b.parent().removeClass(a._openMenuClass);b.parent().children(".sub-menu").hide();d={}},400)),c.on("mousemove",function(f){5<=k?(k=0,p=tdbMenu._getMouseAngleDirection(m,n,f.pageX,f.pageY),m=f.pageX,n=f.pageY):(k++,0===m&&0===n&&(m=f.pageX,n=f.pageY));null!==p&&(85p)&&(b.parent().removeClass(a._openMenuClass),b.parent().children(".sub-menu").hide(), c.off("mousemove"),clearTimeout(e),g=!0,d={})})):(d=c.parent(),l=c.siblings(),l.removeClass(a._openMenuClass),l.find(".sub-menu").hide(),l.find("li").removeClass(a._openMenuClass))},function(){var a=jQuery(this);!1===g&&(clearTimeout(e),g=!0);a.off("mousemove")})}},unsetHover:function(a){null!==a._itemsWithSubmenu&&a._itemsWithSubmenu.off();null!==a._outsideClickArea&&a._outsideClickArea.off()}}})();var tdbMenuItemPullDown={}; (function(){tdbMenuItemPullDown={init:function(){setTimeout(function(){jQuery(".tdb-menu-items-pulldown").each(function(a,c){var b=jQuery(c),d=b.parent().attr("id");c=jQuery("."+d);var e="";"none"!==c.css("max-width")&&(e=c.css("max-width"));if(c.hasClass("tdb-menu-items-in-more")){var g=b.find(".tdb-menu:first"),f=g.parents(".tdb-menu-items-pulldown:first"),l=[];a=new tdPullDown.item;if(void 0!==c.css("display")&&"inline-block"===c.css("display")){var k=c.closest(".vc_column_container");f=k;var m= "";m=0!==k.find(".tdc-elements").length?".tdc-elements":".wpb_wrapper";k.find(m+" > .td_block_wrap").each(function(){var a=.9*k.outerWidth(!0),b=jQuery(this).outerWidth(!0);if(jQuery(this).data("td-block-uid")!==d)if(ba._last_request_results_count-1?(a.jqueryObj.find(".tdb-search-form").fadeTo(100,1),a.jqueryObj.find(".tdb-head-search-form-input").removeClass("tdb-head-search-nofocus")):(tdbSearch.remove_input_focus(a),a.jqueryObj.find(".td_module_wrap").eq(a._current_selection_index).addClass("tdb-aj-cur-element"))}, do_ajax_call:function(a){var c=a.jqueryObj.find(".tdb-head-search-form-input").val();""===c?tdbSearch.set_input_focus(a):tdLocalCache.exist("tdb-"+c)?tdbSearch.process_ajax_response(tdLocalCache.get("tdb-"+c),a):jQuery.ajax({type:"POST",url:td_ajax_url,data:{action:"td_ajax_search",module:"tdb_module_search",atts:a.blockAtts,td_string:c,limit:a._resultsLimit},success:function(b,d,e){tdLocalCache.set("tdb-"+c,b);tdbSearch.process_ajax_response(b,a)},error:function(a,c,e){window.console.log(e)}})}, process_ajax_response:function(a,c){var b=c.jqueryObj.find(".tdb-head-search-form-input").val(),d=c.jqueryObj.find(".tdb-aj-search");""===b?d.empty():(a=jQuery.parseJSON(a),a.td_search_query===b&&(c._current_selection_index=0,c._last_request_results_count=a.td_total_in_list,c._first_down_up=!0,d.html(a.td_data),"undefined"!==typeof window.tdAnimationStack&&!0===window.tdAnimationStack.activated&&(window.tdAnimationStack.check_for_new_items(".tdb-aj-search .td-animation-stack",window.tdAnimationStack.SORTED_METHOD.sort_left_to_right, !0,!1),window.tdAnimationStack.compute_items(!1))))},hideAllItems:function(){tdbSearch.items.forEach(function(a){tdbSearch.hide_search_box(a)})}}})();jQuery().ready(function(){tdbSearch.init();setTimeout(function(){jQuery(window).resize()},500)});var tdbLocationFinder={};jQuery().ready(function(){tdbLocationFinder.init()}); (function(){tdbLocationFinder={items:[],item:function(){this.blockObj=this.uid="";this.APIService="google";this.mapMarker=this.map=void 0;this.defLong=this.defLat=0;this.defZoom=3;this.defAddress="";this.bingSearchManager=this.bingAutosuggestManager=this.errorContainer=void 0;this._is_initialized=this._in_composer=!1},init:function(){tdbLocationFinder.items=[];this._is_running=!1},_initialize_item:function(a){!0!==a._is_initialized&&(a.errorContainer=a.blockObj.find(".tdb-s-notif"),tdbLocationFinder.initMap(a), a._in_composer||tdbLocationFinder.currentLocation(a),a._is_initialized=!0)},addItem:function(a){if("undefined"===typeof a.uid)throw"item.uid is not defined";tdbLocationFinder.items.push(a);tdbLocationFinder._initialize_item(a)},initMap:function(a){var c=document.querySelector("."+a.uid+" .tdb-lf-map"),b={lat:a.defLat,lng:a.defLong};switch(a.APIService){case "google":a.map=new google.maps.Map(c,{center:b,zoom:a.defZoom});a.mapMarker=new google.maps.Marker({position:b,map:a.map});tdbLocationFinder._locationSearchGoogle(a); a._in_composer||""===a.defAddress||tdbLocationFinder.displayLocationByAddress(a,a.defAddress);break;case "bing":a.map=new Microsoft.Maps.Map(c,{center:new Microsoft.Maps.Location(a.defLat,a.defLong),zoom:a.defZoom,showLocateMeButton:!1}),Microsoft.Maps.loadModule(["Microsoft.Maps.AutoSuggest","Microsoft.Maps.Search"],function(){a.bingAutosuggestManager=new Microsoft.Maps.AutosuggestManager({map:a.map});a.bingSearchManager=new Microsoft.Maps.Search.SearchManager(a.map);tdbLocationFinder._locationSearchBing(a); a._in_composer||""===a.defAddress||tdbLocationFinder.displayLocationByAddress(a,a.defAddress)})}},displayLocationByAddress:function(a,c){switch(a.APIService){case "google":(new google.maps.Geocoder).geocode({address:c},function(b,c){"OK"===c&&(b=b[0].geometry.location,tdbLocationFinder.updateMap(a,b.lat(),b.lng(),15))});break;case "bing":a.bingSearchManager.geocode({where:c,callback:function(b){b&&b.results&&0