File: /home/www/web115/wordpress/wp-content/themes/neve/assets/js/build/all/customizer-controls.js
!function(){"use strict";var t,n;t=jQuery,wp.tiCustomizeButton={init:function(){t("#customize-theme-controls").on("click",".menu-shortcut",function(e){wp.customize.section("menu_locations").focus(),e.preventDefault()}),t("#customize-theme-controls").on("click",".neve-control-focus",function(e){wp.customize.control(t(this).data("control-to-focus")).focus(),e.preventDefault()})}},t(document).ready(function(){wp.tiCustomizeButton.init()}),n=jQuery,wp.neveHeadingAccordion={init:function(){this.handleToggle()},handleToggle:function(){n(".customize-control-customizer-heading.accordion .neve-customizer-heading").on("click",function(){var e=n(this).closest(".accordion");return n(e).toggleClass("expanded"),!1})}},n(document).ready(function(){wp.neveHeadingAccordion.init()});var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function r(e,t){return e(t={exports:{}},t.exports),t.exports}function o(e){try{return!!e()}catch(e){return!0}}function i(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}function c(e){return j.call(e).slice(8,-1)}function u(e){if(null==e)throw TypeError("Can't call method on "+e);return e}function a(e){return C(u(e))}function s(e){return"object"==typeof e?null!==e:"function"==typeof e}function l(e,t){if(!s(e))return e;var n,r;if(t&&"function"==typeof(n=e.toString)&&!s(r=n.call(e)))return r;if("function"==typeof(n=e.valueOf)&&!s(r=n.call(e)))return r;if(!t&&"function"==typeof(n=e.toString)&&!s(r=n.call(e)))return r;throw TypeError("Can't convert object to primitive value")}function f(e,t){return O.call(e,t)}function p(e){return z?E.createElement(e):{}}function d(e){if(!s(e))throw TypeError(String(e)+" is not an object");return e}function v(t,n){try{T(y,t,n)}catch(e){y[t]=n}return n}var h=function(e){return e&&e.Math==Math&&e},y=h("object"==typeof globalThis&&globalThis)||h("object"==typeof window&&window)||h("object"==typeof self&&self)||h("object"==typeof e&&e)||function(){return this}()||Function("return this")(),g=!o(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}),m={}.propertyIsEnumerable,w=Object.getOwnPropertyDescriptor,b={f:w&&!m.call({1:2},1)?function(e){e=w(this,e);return!!e&&e.enumerable}:m},j={}.toString,x="".split,C=o(function(){return!Object("z").propertyIsEnumerable(0)})?function(e){return"String"==c(e)?x.call(e,""):Object(e)}:Object,O={}.hasOwnProperty,E=y.document,z=s(E)&&s(E.createElement),S=!g&&!o(function(){return 7!=Object.defineProperty(p("div"),"a",{get:function(){return 7}}).a}),Q=Object.getOwnPropertyDescriptor,_={f:g?Q:function(e,t){if(e=a(e),t=l(t,!0),S)try{return Q(e,t)}catch(e){}if(f(e,t))return i(!b.f.call(e,t),e[t])}},k=Object.defineProperty,I={f:g?k:function(e,t,n){if(d(e),t=l(t,!0),d(n),S)try{return k(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},T=g?function(e,t,n){return I.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e},A="__core-js_shared__",P=y[A]||v(A,{}),R=Function.toString;"function"!=typeof P.inspectSource&&(P.inspectSource=function(e){return R.call(e)});function N(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++J+K).toString(36)}var D,M,U,B,F,L,q,V,W=P.inspectSource,$=y.WeakMap,H="function"==typeof $&&/native code/.test(W($)),h=r(function(e){(e.exports=function(e,t){return P[e]||(P[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.9.1",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),J=0,K=Math.random(),G=h("keys"),e=function(e){return G[e]||(G[e]=N(e))},Y={},m=y.WeakMap;q=H?(D=P.state||(P.state=new m),M=D.get,U=D.has,B=D.set,F=function(e,t){return t.facade=e,B.call(D,e,t),t},L=function(e){return M.call(D,e)||{}},function(e){return U.call(D,e)}):(V=e("state"),Y[V]=!0,F=function(e,t){return t.facade=e,T(e,V,t),t},L=function(e){return f(e,V)?e[V]:{}},function(e){return f(e,V)});function X(e){return"function"==typeof e?e:void 0}function Z(e){return isNaN(e=+e)?0:(0<e?se:ae)(e)}function ee(e){return 0<e?le(Z(e),9007199254740991):0}function te(e,t){var n,r=a(e),o=0,i=[];for(n in r)!f(Y,n)&&f(r,n)&&i.push(n);for(;t.length>o;)f(r,n=t[o++])&&(~de(i,n)||i.push(n));return i}function ne(r,o,e){if(!function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function")}(r),void 0===o)return r;switch(e){case 0:return function(){return r.call(o)};case 1:return function(e){return r.call(o,e)};case 2:return function(e,t){return r.call(o,e,t)};case 3:return function(e,t,n){return r.call(o,e,t,n)}}return function(){return r.apply(o,arguments)}}function re(e){return Object(u(e))}var oe,ie={set:F,get:L,has:q,enforce:function(e){return q(e)?L(e):F(e,{})},getterFor:function(n){return function(e){var t;if(!s(e)||(t=L(e)).type!==n)throw TypeError("Incompatible receiver, "+n+" required");return t}}},ce=r(function(e){var t=ie.get,u=ie.enforce,a=String(String).split("String");(e.exports=function(e,t,n,r){var o=!!r&&!!r.unsafe,i=!!r&&!!r.enumerable,c=!!r&&!!r.noTargetGet;"function"==typeof n&&("string"!=typeof t||f(n,"name")||T(n,"name",t),(r=u(n)).source||(r.source=a.join("string"==typeof t?t:""))),e!==y?(o?!c&&e[t]&&(i=!0):delete e[t],i?e[t]=n:T(e,t,n)):i?e[t]=n:v(t,n)})(Function.prototype,"toString",function(){return"function"==typeof this&&t(this).source||W(this)})}),ue=y,A=function(e,t){return arguments.length<2?X(ue[e])||X(y[e]):ue[e]&&ue[e][t]||y[e]&&y[e][t]},ae=Math.ceil,se=Math.floor,le=Math.min,fe=Math.max,pe=Math.min,$=function(u){return function(e,t,n){var r,o=a(e),i=ee(o.length),c=function(e,t){e=Z(e);return e<0?fe(e+t,0):pe(e,t)}(n,i);if(u&&t!=t){for(;c<i;)if((r=o[c++])!=r)return!0}else for(;c<i;c++)if((u||c in o)&&o[c]===t)return u||c||0;return!u&&-1}},de={includes:$(!0),indexOf:$(!1)}.indexOf,ve=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],he=ve.concat("length","prototype"),ye={f:Object.getOwnPropertyNames||function(e){return te(e,he)}},ge={f:Object.getOwnPropertySymbols},me=A("Reflect","ownKeys")||function(e){var t=ye.f(d(e)),n=ge.f;return n?t.concat(n(e)):t},we=/#|\.prototype\./,H=function(e,t){e=je[be(e)];return e==Ce||e!=xe&&("function"==typeof t?o(t):!!t)},be=H.normalize=function(e){return String(e).replace(we,".").toLowerCase()},je=H.data={},xe=H.NATIVE="N",Ce=H.POLYFILL="P",Oe=H,Ee=_.f,m=function(e,t){var n,r,o,i=e.target,c=e.global,u=e.stat,a=c?y:u?y[i]||v(i,{}):(y[i]||{}).prototype;if(a)for(n in t){if(r=t[n],o=e.noTargetGet?(o=Ee(a,n))&&o.value:a[n],!Oe(c?n:i+(u?".":"#")+n,e.forced)&&void 0!==o){if(typeof r==typeof o)continue;!function(e,t){for(var n=me(t),r=I.f,o=_.f,i=0;i<n.length;i++){var c=n[i];f(e,c)||r(e,c,o(t,c))}}(r,o)}(e.sham||o&&o.sham)&&T(r,"sham",!0),ce(a,n,r,e)}},ze=Array.isArray||function(e){return"Array"==c(e)},Se="process"==c(y.process),$=A("navigator","userAgent")||"",H=y.process,H=H&&H.versions,H=H&&H.v8;H?Re=(oe=H.split("."))[0]+oe[1]:$&&(!(oe=$.match(/Edge\/(\d+)/))||74<=oe[1])&&(oe=$.match(/Chrome\/(\d+)/))&&(Re=oe[1]);function Qe(e){return f(Ne,e)&&(Pe||"string"==typeof Ne[e])||(Pe&&f(De,e)?Ne[e]=De[e]:Ne[e]=Me("Symbol."+e)),Ne[e]}function _e(e,t){var n;return new(void 0===(n=ze(e)&&("function"==typeof(n=e.constructor)&&(n===Array||ze(n.prototype))||s(n)&&null===(n=n[Ue]))?void 0:n)?Array:n)(0===t?0:t)}function ke(){}function Ie(e){return"<script>"+e+"</"+We+">"}var Te,Ae=Re&&+Re,Pe=!!Object.getOwnPropertySymbols&&!o(function(){return!Symbol.sham&&(Se?38===Ae:37<Ae&&Ae<41)}),Re=Pe&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Ne=h("wks"),De=y.Symbol,Me=Re?De:De&&De.withoutSetter||N,Ue=Qe("species"),Be=[].push,h=function(p){var d=1==p,v=2==p,h=3==p,y=4==p,g=6==p,m=7==p,w=5==p||g;return function(e,t,n,r){for(var o,i,c=re(e),u=C(c),a=ne(t,n,3),s=ee(u.length),l=0,r=r||_e,f=d?r(e,s):v||m?r(e,0):void 0;l<s;l++)if((w||l in u)&&(i=a(o=u[l],l,c),p))if(d)f[l]=i;else if(i)switch(p){case 3:return!0;case 5:return o;case 6:return l;case 2:Be.call(f,o)}else switch(p){case 4:return!1;case 7:Be.call(f,o)}return g?-1:h||y?y:f}},Re={forEach:h(0),map:h(1),filter:h(2),some:h(3),every:h(4),find:h(5),findIndex:h(6),filterOut:h(7)},Fe=Object.keys||function(e){return te(e,ve)},Le=g?Object.defineProperties:function(e,t){d(e);for(var n,r=Fe(t),o=r.length,i=0;i<o;)I.f(e,n=r[i++],t[n]);return e},qe=A("document","documentElement"),Ve="prototype",We="script",$e=e("IE_PROTO"),He=function(){try{Te=document.domain&&new ActiveXObject("htmlfile")}catch(e){}var e;He=Te?function(e){e.write(Ie("")),e.close();var t=e.parentWindow.Object;return e=null,t}(Te):((e=p("iframe")).style.display="none",qe.appendChild(e),e.src=String("javascript:"),(e=e.contentWindow.document).open(),e.write(Ie("document.F=Object")),e.close(),e.F);for(var t=ve.length;t--;)delete He[Ve][ve[t]];return He()};Y[$e]=!0;var h=Object.create||function(e,t){var n;return null!==e?(ke[Ve]=d(e),n=new ke,ke[Ve]=null,n[$e]=e):n=He(),void 0===t?n:Le(n,t)},Je=Qe("unscopables"),Ke=Array.prototype;null==Ke[Je]&&I.f(Ke,Je,{configurable:!0,value:h(null)});var Ge,Ye=Re.find,g="find",Xe=!0;g in[]&&Array(1)[g](function(){Xe=!1}),m({target:"Array",proto:!0,forced:Xe},{find:function(e){return Ye(this,e,1<arguments.length?arguments[1]:void 0)}}),Ge=g,Ke[Je][Ge]=!0;var Ze,et,tt=Qe("species"),A=function(t){return 51<=Ae||!o(function(){var e=[];return(e.constructor={})[tt]=function(){return{foo:1}},1!==e[t](Boolean).foo})},nt=Re.filter;m({target:"Array",proto:!0,forced:!A("filter")},{filter:function(e){return nt(this,e,1<arguments.length?arguments[1]:void 0)}}),Ze=jQuery,wp.neveOrderControl={init:function(){this.setupSorting(),this.handleHide()},setupSorting:function(){var e=this;Ze(".ti-order-sortable").each(function(){Ze(this).sortable({revert:!0,axis:"y",containment:"parent",update:function(){e.updateOrder(this)}})})},updateOrder:function(e){var t=[],n=Ze(e).find("li.enabled");Ze(n).each(function(){t.push(Ze(this).data("id"))}),t=t.filter(function(e){return void 0!==e}),Ze(e).next().val(JSON.stringify(t)),Ze(e).next().trigger("change")},handleHide:function(){var e=this;Ze(".toggle-display").on("click touchstart",function(){Ze(this).parent().toggleClass("enabled"),e.updateOrder(Ze(this).closest(".ti-order-sortable"))})}},Ze(document).ready(function(){wp.neveOrderControl.init()}),et=jQuery,(e=wp.customize).controlConstructor["select-multiple"]=e.Control.extend({ready:function(){var t=this;et("select",t.container).change(function(){var e=et(this).val();null===e?t.setting.set(""):t.setting.set(e)})}}),m({target:"Object",stat:!0,forced:o(function(){Fe(1)})},{keys:function(e){return Fe(re(e))}}),wp.customize.controlConstructor["range-value"]=wp.customize.Control.extend({ready:function(){jQuery.fn.exists=function(){return 0<this.length};var e=this,t=jQuery("#customize-theme-controls");function r(e,t,n){switch(n){case"slider":var r=e.val(),o=jQuery(t).attr("type");t.val(r="text"===o&&0<=r?"+"+r:r);break;case"input":e.val(t.val())}}function i(e){var t=e.find(".range-collector"),e=function(e){var t,n,r,o={},i=e.find('.range-slider__range[data-query="desktop"]'),c=e.find('.range-slider__range[data-query="tablet"]'),e=e.find('.range-slider__range[data-query="mobile"]');e.exists()&&"undefined"!==(r=e.val())&&""!==r&&(o.mobile=r);c.exists()&&"undefined"!==(n=c.val())&&""!==n&&(o.tablet=n);i.exists()&&"undefined"!==(t=i.val())&&""!==t&&(o.desktop=t);return o}(e);1<Object.keys(e).length?t.val(JSON.stringify(e)):t.val(e.desktop),t.trigger("change")}t.on("input",".range-slider__range",function(){var e=jQuery(this),t=jQuery(this).next(),n=jQuery(this).parent().parent();r(e,t,"slider"),i(n)}),t.on("keyup change input",".range-slider-value",function(){var e=jQuery(this).parent().parent();r(jQuery(this).prev(),jQuery(this),"input"),i(e)}),t.on("blur",".range-slider-value",function(){var e=jQuery(this).prev(),t=parseInt(e.attr("min")),n=parseInt(e.attr("max")),r=jQuery(this),e=parseInt(jQuery(this).val());return e<t?(r.val(t),!1):n<e?(r.val(n),!1):void 0}),t.on("click",".range-reset-slider",function(e){e.preventDefault();var t=jQuery(this).prev(),n=t.prev(),r=jQuery(this).parent().parent(),o=n.data("default"),e=jQuery(t).attr("type");t.val(o="text"===e?"+0":o),n.val(o),i(r)}),t="postMessage"===e.setting.transport?"mousemove change":"change",this.container.on(t,".range-collector",function(){e.setting.set(jQuery(this).val())})}}),wp.customize.controlConstructor["responsive-number"]=wp.customize.Control.extend({ready:function(){var e=this;this.container.on("change keyup paste input","input.responsive-number--input, select.responsive-number--select",function(){e.updateValue()}),this.container.on("click touchstart",".reset-number-input",function(){e.resetValues()})},resetValues:function(){this.container.find(".responsive-number--input").each(function(){jQuery(this).val(jQuery(this).data("default"))}),this.container.find(".responsive-number--select").each(function(){jQuery(this).find("option").removeAttr("selected"),jQuery(this).find("option[value="+jQuery(this).data("default")+"]").attr("selected","selected")}),this.updateValue()},updateValue:function(){var r={suffix:{}};this.container.find(".control-wrap").each(function(){var e=jQuery(this).find("input").val(),t=jQuery(this).find("select").val(),n=jQuery(this).find("input").data("query");r[n]=e,void 0!==t&&(r.suffix[n]=t)}),jQuery(this).find(".responsive-number-collector").val(JSON.stringify(r)),this.setting.set(JSON.stringify(r))}}),jQuery(document).ready(function(c){c.responsiveSwitchers={init:function(){this.manageSwitchers(),this.manageWPDevices()},manageSwitchers:function(){jQuery(".customize-control .responsive-switchers button").on("click",function(e){var t=c(this),n=c(".responsive-switchers"),r=c(e.currentTarget).data("device"),o=c(".customize-control .has-media-queries"),i=c(".wp-full-overlay"),e=c(".wp-full-overlay-footer .devices");n.find("button").removeClass("active"),n.find("button.preview-"+r).addClass("active"),o.find(".control-wrap").removeClass("active"),o.find(".control-wrap."+r).addClass("active"),i.removeClass("preview-desktop preview-tablet preview-mobile").addClass("preview-"+r),e.find("button").removeClass("active").attr("aria-pressed","false"),e.find("button.preview-"+r).addClass("active").attr("aria-pressed","true"),t.hasClass("preview-desktop")&&n.toggleClass("responsive-switchers-open")})},manageWPDevices:function(){jQuery("#customize-footer-actions .devices button").on("click",function(e){e.preventDefault();var t=jQuery(this).data("device"),e=jQuery(".responsive-switchers");"desktop"!==t?e.addClass("responsive-switchers-open"):e.removeClass("responsive-switchers-open"),e.find("button").removeClass("active"),e.find("button.preview-"+t).addClass("active");e=jQuery(".range-slider.has-media-queries");e.find(".desktop-range").removeClass("active"),e.find(".tablet-range").removeClass("active"),e.find(".mobile-range").removeClass("active"),e.find("."+t+"-range").addClass("active"),e.find(".control-wrap").removeClass("active"),e.find(".control-wrap."+t).addClass("active")})}},c.responsiveSwitchers.init()});function rt(e,t){return RegExp(e,t)}var h={UNSUPPORTED_Y:o(function(){var e=rt("a","y");return e.lastIndex=2,null!=e.exec("abcd")}),BROKEN_CARET:o(function(){var e=rt("^r","gy");return e.lastIndex=2,null!=e.exec("str")})},ot=RegExp.prototype.exec,it=String.prototype.replace,g=ot,ct=(Re=/a/,e=/b*/g,ot.call(Re,"a"),ot.call(e,"a"),0!==Re.lastIndex||0!==e.lastIndex),ut=h.UNSUPPORTED_Y||h.BROKEN_CARET,at=void 0!==/()??/.exec("")[1],st=g=ct||at||ut?function(e){var t,n,r,o,i=this,c=ut&&i.sticky,u=function(){var e=d(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}.call(i),a=i.source,s=0,l=e;return c&&(-1===(u=u.replace("y","")).indexOf("g")&&(u+="g"),l=String(e).slice(i.lastIndex),0<i.lastIndex&&(!i.multiline||i.multiline&&"\n"!==e[i.lastIndex-1])&&(a="(?: "+a+")",l=" "+l,s++),n=new RegExp("^(?:"+a+")",u)),at&&(n=new RegExp("^"+a+"$(?!\\s)",u)),ct&&(t=i.lastIndex),r=ot.call(c?n:i,l),c?r?(r.input=r.input.slice(s),r[0]=r[0].slice(s),r.index=i.lastIndex,i.lastIndex+=r[0].length):i.lastIndex=0:ct&&r&&(i.lastIndex=i.global?r.index+r[0].length:t),at&&r&&1<r.length&&it.call(r[0],n,function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(r[o]=void 0)}),r}:g;m({target:"RegExp",proto:!0,forced:/./.exec!==st},{exec:st});var lt,ft,pt,dt,vt,ht,yt,gt,mt,wt=Qe("species"),bt=!o(function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}),jt="$0"==="a".replace(/./,"$0"),g=Qe("replace"),xt=!!/./[g]&&""===/./[g]("a","$0"),Ct=!o(function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};e="ab".split(e);return 2!==e.length||"a"!==e[0]||"b"!==e[1]}),Ot=Object.is||function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t};ft=1,pt=function(r,o,i){return[function(e){var t=u(this),n=null==e?void 0:e[r];return void 0!==n?n.call(e,t):new RegExp(e)[r](String(t))},function(e){var t=i(o,e,this);if(t.done)return t.value;var n=d(e),t=String(this),e=n.lastIndex;Ot(e,0)||(n.lastIndex=0);t=function(e,t){var n=e.exec;if("function"==typeof n){n=n.call(e,t);if("object"!=typeof n)throw TypeError("RegExp exec method returned something other than an Object or null");return n}if("RegExp"!==c(e))throw TypeError("RegExp#exec called on incompatible receiver");return st.call(e,t)}(n,t);return Ot(n.lastIndex,e)||(n.lastIndex=e),null===t?-1:t.index}]},yt=Qe(lt="search"),gt=!o(function(){var e={};return e[yt]=function(){return 7},7!=""[lt](e)}),mt=gt&&!o(function(){var e=!1,t=/a/;return"split"===lt&&((t={constructor:{}}).constructor[wt]=function(){return t},t.flags="",t[yt]=/./[yt]),t.exec=function(){return e=!0,null},t[yt](""),!e}),gt&&mt&&("replace"!==lt||bt&&jt&&!xt)&&("split"!==lt||Ct)||(vt=/./[yt],pt=(mt=pt(yt,""[lt],function(e,t,n,r,o){return t.exec===st?gt&&!o?{done:!0,value:vt.call(t,n,r)}:{done:!0,value:e.call(n,t,r)}:{done:!1}},{REPLACE_KEEPS_$0:jt,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:xt}))[0],ht=mt[1],ce(String.prototype,lt,pt),ce(RegExp.prototype,yt,2==ft?function(e,t){return ht.call(e,this,t)}:function(e){return ht.call(e,this)})),dt&&T(RegExp.prototype[yt],"sham",!0);function Et(e,t,n){(t=l(t))in e?I.f(e,t,i(0,n)):e[t]=n}var zt=Qe("isConcatSpreadable"),St=9007199254740991,Qt="Maximum allowed index exceeded",g=51<=Ae||!o(function(){var e=[];return e[zt]=!1,e.concat()[0]!==e}),A=A("concat");m({target:"Array",proto:!0,forced:!g||!A},{concat:function(e){for(var t,n,r,o=re(this),i=_e(o,0),c=0,u=-1,a=arguments.length;u<a;u++)if(function(e){if(!s(e))return!1;var t=e[zt];return void 0!==t?!!t:ze(e)}(r=-1===u?o:arguments[u])){if(n=ee(r.length),St<c+n)throw TypeError(Qt);for(t=0;t<n;t++,c++)t in r&&Et(i,c,r[t])}else{if(St<=c)throw TypeError(Qt);Et(i,c++,r)}return i.length=c,i}}),wp.customize.controlConstructor["interface-tabs"]=wp.customize.Control.extend({ready:function(){wp.customize.previewer.bind("tab-previewer-edit",function(e){jQuery(e.selector).trigger("click")}),wp.customize.previewer.bind("focus-control",function(e){setTimeout(function(){void 0!==wp.customize.control(e)&&wp.customize.control(e).focus()},100)}),wp.customize.previewer.bind("focus-section",function(e){setTimeout(function(){wp.customize.section(e).focus()},100)}),wp.customize.previewer.bind("ready",function(){for(var e=window.location.search.substr(1).split("&"),t={},n=0;n<e.length;n++){var r=e[n].split("=");t[decodeURIComponent(r[0])]=decodeURIComponent(r[1])}void 0!==t["autofocus[control]"]&&""!==t["autofocus[control]"]&&jQuery('li[id^="customize-control-sidebars_widgets"]').on("DOMNodeInserted",function(){jQuery(".neve-customizer-tab > label."+t["autofocus[control]"]).trigger("click")})});var e=this;wp.customize.bind("ready",function(){e.init(),e.handleClick()})},init:function(){var e=this,t=e.section();e.hideAllControls(t);var n,r,o=e.params.controls.general?"general":e.params.controls.layout?"layout":e.params.controls.style?"style":Object.keys(e.params.controls)[0],i=e.params.controls[o],c=[];for(n in i)i.hasOwnProperty(n)&&(!1===jQuery.isEmptyObject(i[n])&&void 0!==wp.customize.control(n)&&(r=wp.customize.control(n).setting._value,c=c.concat(i[n][r])),c.push(n));e.showControls(c,t)},hideAllControls:function(e){var t,n=wp.customize.section(e).controls(),r=this.id;for(t in n){var o,i=n[t].id;"widgets"===i?(o=wp.customize.section(e).container,jQuery(o).children('li[class*="widget"]').css("display","none")):i!==r&&(i=wp.customize.control(i).selector,jQuery(i).hide())}},handleClick:function(){var i=this,c=i.section(),e=i.container;jQuery(e).find(".neve-customizer-tab").on("click",function(){jQuery(this).parent().find(".neve-customizer-tab").removeClass("active"),jQuery(this).addClass("active"),i.hideAllControls(c);var e,t,n=jQuery(this).data("tab"),r=i.params.controls[n],o=[];for(e in r)!1===jQuery.isEmptyObject(r[e])&&void 0!==wp.customize.control(e)&&(t=wp.customize.control(e).setting._value,o=o.concat(r[e][t])),o.push(e);i.showControls(o,c)})},showControls:function(e,t){for(var n in e){var r,n=e[n];"widgets"===n||-1!==n.indexOf("sidebars_widgets")?(r=wp.customize.section(t).container,jQuery(r).children('li[class*="widget"]').css("display","list-item")):void 0!==wp.customize.control(n)&&(r=wp.customize.control(n).selector,jQuery(r).show()),void 0!==wp.customize.control(n)&&(!0===wp.customize.control(n).active()?jQuery(wp.customize.control(n).selector).show():jQuery(wp.customize.control(n).selector).hide())}}}),wp.customize.sectionConstructor.typography_extra_section=wp.customize.Section.extend({attachEvents:function(){return null},isContextuallyActive:function(){return!0}}),wp.customize.bind("ready",function(){var e,t=document.getElementById("acordion-section-neve_hfg_header_upsell_section");"undefined"==typeof upsellConfig||t||(e='<div class="nv-upsell"><div class="nv-upsell-content">'+upsellConfig.text+'</div><a rel="external noreferrer noopener" target="_blank" href="'+upsellConfig.button_url+'" class="button button-primary">'+upsellConfig.button_text+'<span class="components-visually-hidden">'+upsellConfig.screen_reader+"</span></a></div>",(t=document.createElement("li")).innerHTML=e,document.getElementById("sub-accordion-panel-hfg_header").appendChild(t))}),wp.customize.sectionConstructor.nv_simple_upsell_section=wp.customize.Section.extend({attachEvents:function(){},isContextuallyActive:function(){return!0}})}();