!function(v){var g=wp.customize;AstTypography={init:function(){AstTypography._initFonts()},_initFonts:function(){v(".customize-control-ast-font-family select").each(function(e){var t,c;void 0!==astra.customizer&&(t=astra.customizer.settings.google_fonts,c=v(this).data("name"),v(this).html(t),v("select[data-name='"+c+"'] option[value='inherit']").text(v(this).data("inherit")),c=v(this).data("value"),v(this).val(c))}),v(".customize-control-ast-font-family select").each(AstTypography._initFont),v(".customize-control-ast-font-family select, .customize-control-ast-font-variant select").selectWoo(),v(".customize-control-ast-font-variant select").on("select2:unselecting",function(e){var t=v(this).data("customize-setting-link");(e.params.args.data.id||"")&&(v(this).find('option[value="'+e.params.args.data.id+'"]').removeAttr("selected"),null===v(this).val()&&g(t).set(""))})},_initFont:function(){var e=v(this),t=e.data("customize-setting-link"),c=e.data("connected-control"),e=e.data("connected-variant");void 0!==c&&(g(t).bind(AstTypography._fontSelectChange),AstTypography._setFontWeightOptions.apply(g(t),[!0])),void 0!==e&&(g(t).bind(AstTypography._fontSelectChange),AstTypography._setFontVarianttOptions.apply(g(t),[!0]))},_fontSelectChange:function(){var e=g.control(this.id).container.find("select").data("connected-variant");AstTypography._setFontWeightOptions.apply(this,[!1]),void 0!==e&&AstTypography._setFontVarianttOptions.apply(this,[!1])},_cleanGoogleFonts:function(e){if(!e.includes(","))return e;var t=e.split(","),c=new RegExp("'","gi"),c=t[0].replace(c,"");return e=void 0!==AstFontFamilies.google[c]?c:e},_getWeightObject:function(e){var t=["400","600"];return"inherit"==e?t=["100","200","300","400","500","600","700","800","900"]:void 0!==AstFontFamilies.system[e]?t=AstFontFamilies.system[e].weights:void 0!==AstFontFamilies.google[e]?(t=AstFontFamilies.google[e][0],t=Object.keys(t).map(function(e){return t[e]})):void 0!==AstFontFamilies.custom[e]&&(t=AstFontFamilies.custom[e].weights),t},_setFontWeightOptions:function(e){var t=0,c=g.control(this.id).container.find("select"),s=this(),a="",l=c.data("connected-control"),r=g.control(l).container.find("select"),c=r.data("inherit"),o=e?r.val():"400",i=["400","600"],n="",h=astraTypo;"inherit"==s&&(o=e?r.val():"inherit");s=AstTypography._cleanGoogleFonts(s),i=AstTypography._getWeightObject(s);for(i=v.merge(["inherit"],i),h.inherit=c;t"+h[i[t]]+"");r.html(n),e||(g(l).set(""),g(l).set(o))},_setFontVarianttOptions:function(e){var t=0,c=g.control(this.id).container.find("select"),s=this(),a="",l=c.data("connected-variant"),r=g.control(l).container.find("select"),o=g.control(l).container.find(".ast-font-variant-hidden-value"),i="",n="",h=r.data("inherit"),v=astraTypo,p=o.val().split(",");"Google"==(c.find('option[value="'+c.val()+'"]').closest("optgroup").attr("label")||"")?r.parent().removeClass("ast-hide"):r.parent().addClass("ast-hide");var s=AstTypography._cleanGoogleFonts(s),m=AstTypography._getWeightObject(s);v.inherit=h;for(t=0;t"+v[m[t]]+""}r.html(n),e||g(l).set("")},setOption:function(e,t,c){v("[data-name='"+e+"']").val(t),(c?v("[data-name='"+e+"']").select2():v("[data-name='"+e+"']")).trigger("change")}}}(jQuery),function(c){"function"==typeof define&&define.amd?define(["jquery"],c):"object"==typeof module&&module.exports?module.exports=function(e,t){return void 0===t&&(t="undefined"!=typeof window?require("jquery"):require("jquery")(e)),c(t),t}:c(jQuery)}(function(t){var e,c,s,p,l,r,m,d,g,u,w,z,a,o,f,s=((h=t&&t.fn&&t.fn.select2&&t.fn.select2.amd?t.fn.select2.amd:h)&&h.requirejs||(h?c=h:h={},g={},u={},w={},z={},a=Object.prototype.hasOwnProperty,o=[].slice,f=/\.js$/,m=function(e,t){var c,s,a=n(e),l=a[0],t=t[1];return e=a[1],l&&(c=x(l=i(l,t))),l?e=c&&c.normalize?c.normalize(e,(s=t,function(e){return i(e,s)})):i(e,t):(l=(a=n(e=i(e,t)))[0],e=a[1],l&&(c=x(l))),{f:l?l+"!"+e:e,n:e,pr:l,p:c}},d={require:function(e){return M(e)},exports:function(e){var t=g[e];return void 0!==t?t:g[e]={}},module:function(e){return{id:e,uri:"",exports:g[e],config:(t=e,function(){return w&&w.config&&w.config[t]||{}})};var t}},l=function(e,t,c,s){var a,l,r,o,i,n=[],h=typeof c,v=y(s=s||e);if("undefined"==h||"function"==h){for(t=!t.length&&c.length?["require","exports","module"]:t,o=0;o":">",'"':""","'":"'","/":"/"};return"string"!=typeof e?e:String(e).replace(/[&<>"'\/\\]/g,function(e){return t[e]})},e.entityDecode=function(e){var t=document.createElement("textarea");return t.innerHTML=e,t.value},e.appendMany=function(e,t){var c;"1.7"===l.fn.jquery.substr(0,3)&&(c=l(),l.map(t,function(e){c=c.add(e)}),t=c),e.append(t)},e.isTouchscreen=function(){return void 0===e._isTouchscreenCache&&(e._isTouchscreenCache="ontouchstart"in document.documentElement),e._isTouchscreenCache},e}),h.define("select2/results",["jquery","./utils"],function(v,e){function s(e,t,c){this.$element=e,this.data=c,this.options=t,s.__super__.constructor.call(this)}return e.Extend(s,e.Observable),s.prototype.render=function(){var e=v('
    ');return this.options.get("multiple")&&e.attr("aria-multiselectable","true"),this.$results=e},s.prototype.clear=function(){this.$results.empty()},s.prototype.displayMessage=function(e){var t=this.options.get("escapeMarkup");this.clear(),this.hideLoading();var c=v(''),s=this.options.get("translations").get(e.message);c.append(t(s(e.args))),c[0].className+=" select2-results__message",this.$results.append(c)},s.prototype.hideMessages=function(){this.$results.find(".select2-results__message").remove()},s.prototype.append=function(e){this.hideLoading();var t=[];if(null!=e.results&&0!==e.results.length){e.results=this.sort(e.results);for(var c=0;c",{class:"select2-results__options select2-results__options--nested",role:"listbox"});o.append(i),l.attr("role","list"),l.append(r),l.append(o)}else this.template(e,t);return v.data(t,"data",e),t},s.prototype.bind=function(t,e){var a=this,c=t.id+"-results";this.$results.attr("id",c),t.on("results:all",function(e){a.clear(),a.append(e.data),t.isOpen()&&(a.setClasses(),a.highlightFirstItem())}),t.on("results:append",function(e){a.append(e.data),t.isOpen()&&a.setClasses()}),t.on("query",function(e){a.hideMessages(),a.showLoading(e)}),t.on("select",function(){t.isOpen()&&(a.setClasses(),a.highlightFirstItem())}),t.on("unselect",function(){t.isOpen()&&(a.setClasses(),a.highlightFirstItem())}),t.on("open",function(){a.$results.attr("aria-expanded","true"),a.$results.attr("aria-hidden","false"),a.setClasses(),a.ensureHighlightVisible()}),t.on("close",function(){a.$results.attr("aria-expanded","false"),a.$results.attr("aria-hidden","true"),a.$results.removeAttr("aria-activedescendant")}),t.on("results:toggle",function(){var e=a.getHighlightedResults();0!==e.length&&e.trigger("mouseup")}),t.on("results:select",function(){var e,t=a.getHighlightedResults();0!==t.length&&(e=t.data("data"),"true"==t.attr("data-selected")?a.trigger("close",{}):a.trigger("select",{data:e}))}),t.on("results:previous",function(){var e,t=a.getHighlightedResults(),c=a.$results.find("[data-selected]"),s=c.index(t);0!==s&&(e=s-1,0===t.length&&(e=0),(s=c.eq(e)).trigger("mouseenter"),t=a.$results.offset().top,c=s.offset().top,s=a.$results.scrollTop()+(c-t),0===e?a.$results.scrollTop(0):c-t<0&&a.$results.scrollTop(s))}),t.on("results:next",function(){var e,t=a.getHighlightedResults(),c=a.$results.find("[data-selected]"),s=c.index(t)+1;s>=c.length||((e=c.eq(s)).trigger("mouseenter"),t=a.$results.offset().top+a.$results.outerHeight(!1),c=e.offset().top+e.outerHeight(!1),e=a.$results.scrollTop()+c-t,0===s?a.$results.scrollTop(0):tthis.$results.outerHeight()||s<0)&&this.$results.scrollTop(c))},s.prototype.template=function(e,t){var c=this.options.get("templateResult"),s=this.options.get("escapeMarkup"),e=c(e,t);null==e?t.style.display="none":"string"==typeof e?t.innerHTML=s(e):v(t).append(e)},s}),h.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}}),h.define("select2/selection/base",["jquery","../utils","../keys"],function(s,e,a){function c(e,t){this.$element=e,this.options=t,c.__super__.constructor.call(this)}return e.Extend(c,e.Observable),c.prototype.render=function(){var e=s('');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},c.prototype.bind=function(e,t){var c=this,s=e.id+"-results";this.container=e,this.$selection.on("focus",function(e){c.trigger("focus",e)}),this.$selection.on("blur",function(e){c._handleBlur(e)}),this.$selection.on("keydown",function(e){c.trigger("keypress",e),e.which===a.SPACE&&e.preventDefault()}),e.on("results:focus",function(e){c.$selection.attr("aria-activedescendant",e.data._resultId)}),e.on("selection:update",function(e){c.update(e.data)}),e.on("open",function(){c.$selection.attr("aria-expanded","true"),c.$selection.attr("aria-owns",s),c._attachCloseHandler(e)}),e.on("close",function(){c.$selection.attr("aria-expanded","false"),c.$selection.removeAttr("aria-activedescendant"),c.$selection.removeAttr("aria-owns"),window.setTimeout(function(){c.$selection.focus()},1),c._detachCloseHandler(e)}),e.on("enable",function(){c.$selection.attr("tabindex",c._tabindex)}),e.on("disable",function(){c.$selection.attr("tabindex","-1")})},c.prototype._handleBlur=function(e){var t=this;window.setTimeout(function(){document.activeElement==t.$selection[0]||s.contains(t.$selection[0],document.activeElement)||t.trigger("blur",e)},1)},c.prototype._attachCloseHandler=function(e){s(document.body).on("mousedown.select2."+e.id,function(e){var t=s(e.target),c=t.closest(".select2");s(".select2.select2-container--open").each(function(){var e=s(this);this!=c[0]&&(e.data("element").select2("close"),setTimeout(function(){e.find("*:focus").blur(),t.focus()},1))})})},c.prototype._detachCloseHandler=function(e){s(document.body).off("mousedown.select2."+e.id)},c.prototype.position=function(e,t){t.find(".selection").append(e)},c.prototype.destroy=function(){this._detachCloseHandler(this.container)},c.prototype.update=function(e){throw new Error("The `update` method must be defined in child classes.")},c}),h.define("select2/selection/single",["jquery","./base","../utils","../keys"],function(e,t,s,c){function a(){a.__super__.constructor.apply(this,arguments)}return s.Extend(a,t),a.prototype.render=function(){var e=a.__super__.render.call(this);return e.addClass("select2-selection--single"),e.html(''),e},a.prototype.bind=function(t,e){var c=this;a.__super__.bind.apply(this,arguments);var s=t.id+"-container";this.$selection.find(".select2-selection__rendered").attr("id",s).attr("role","textbox").attr("aria-readonly","true"),this.$selection.attr("aria-labelledby",s),this.$selection.attr("role","combobox"),this.$selection.on("mousedown",function(e){1===e.which&&c.trigger("toggle",{originalEvent:e})}),this.$selection.on("focus",function(e){}),this.$selection.on("keydown",function(e){!t.isOpen()&&48<=e.which&&e.which<=90&&t.open()}),this.$selection.on("blur",function(e){}),t.on("focus",function(e){t.isOpen()||c.$selection.focus()}),t.on("selection:update",function(e){c.update(e.data)})},a.prototype.clear=function(){this.$selection.find(".select2-selection__rendered").empty()},a.prototype.display=function(e,t){var c=this.options.get("templateSelection");return this.options.get("escapeMarkup")(c(e,t))},a.prototype.selectionContainer=function(){return e("")},a.prototype.update=function(e){var t,c;0!==e.length?(t=e[0],c=this.$selection.find(".select2-selection__rendered"),e=s.entityDecode(this.display(t,c)),c.empty().text(e),c.prop("title",t.title||t.text)):this.clear()},a}),h.define("select2/selection/multiple",["jquery","./base","../utils"],function(s,e,o){function a(e,t){a.__super__.constructor.apply(this,arguments)}return o.Extend(a,e),a.prototype.render=function(){var e=a.__super__.render.call(this);return e.addClass("select2-selection--multiple"),e.html('
      '),e},a.prototype.bind=function(t,e){var c=this;a.__super__.bind.apply(this,arguments),this.$selection.on("click",function(e){c.trigger("toggle",{originalEvent:e})}),this.$selection.on("click",".select2-selection__choice__remove",function(e){var t;c.options.get("disabled")||(t=s(this).parent().data("data"),c.trigger("unselect",{originalEvent:e,data:t}))}),this.$selection.on("keydown",function(e){!t.isOpen()&&48<=e.which&&e.which<=90&&t.open()}),t.on("focus",function(){c.focusOnSearch()})},a.prototype.clear=function(){this.$selection.find(".select2-selection__rendered").empty()},a.prototype.display=function(e,t){var c=this.options.get("templateSelection");return this.options.get("escapeMarkup")(c(e,t))},a.prototype.selectionContainer=function(){return s('
    • ')},a.prototype.focusOnSearch=function(){var e=this;void 0!==e.$search&&setTimeout(function(){e._keyUpPrevented=!0,e.$search.focus()},1)},a.prototype.update=function(e){if(this.clear(),0!==e.length){for(var t=[],c=0;c