kollapsminoriteten/wp-content/themes/blocksy/static/bundle/customizer-controls.js

145 lines
742 KiB
JavaScript
Raw Permalink Normal View History

2025-12-12 13:14:39 +01:00
var blocksyOptions;!function(){var e={2:function(e,t,n){var r=n(2199),o=n(4664),i=n(5950);e.exports=function(e){return r(e,i,o)}},41:function(e,t,n){"use strict";var r=n(655),o=n(8068),i=n(9675),a=n(5795);e.exports=function(e,t,n){if(!e||"object"!=typeof e&&"function"!=typeof e)throw new i("`obj` must be an object or a function`");if("string"!=typeof t&&"symbol"!=typeof t)throw new i("`property` must be a string or a symbol`");if(arguments.length>3&&"boolean"!=typeof arguments[3]&&null!==arguments[3])throw new i("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!=typeof arguments[4]&&null!==arguments[4])throw new i("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!=typeof arguments[5]&&null!==arguments[5])throw new i("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!=typeof arguments[6])throw new i("`loose`, if provided, must be a boolean");var c=arguments.length>3?arguments[3]:null,s=arguments.length>4?arguments[4]:null,l=arguments.length>5?arguments[5]:null,u=arguments.length>6&&arguments[6],p=!!a&&a(e,t);if(r)r(e,t,{configurable:null===l&&p?p.configurable:!l,enumerable:null===c&&p?p.enumerable:!c,value:n,writable:null===s&&p?p.writable:!s});else{if(!u&&(c||s||l))throw new o("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");e[t]=n}}},45:function(e,t,n){"use strict";n.d(t,{A:function(){return o}});var r=n(8587);function o(e,t){if(null==e)return{};var n,o,i=(0,r.A)(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)n=a[o],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}},76:function(e){"use strict";e.exports=Function.prototype.call},79:function(e,t,n){var r=n(3702),o=n(80),i=n(4739),a=n(8655),c=n(1175);function s(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}s.prototype.clear=r,s.prototype.delete=o,s.prototype.get=i,s.prototype.has=a,s.prototype.set=c,e.exports=s},80:function(e,t,n){var r=n(6025),o=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=r(t,e);return!(n<0)&&(n==t.length-1?t.pop():o.call(t,n,1),--this.size,!0)}},104:function(e,t,n){var r=n(3661);function o(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(o.Cache||r),n}o.Cache=r,e.exports=o},153:function(e,t){"use strict";function n(e){return function(e){if(Array.isArray(e))return r(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return r(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}t.f=function(e){return wp.customize.bind("change",function(t){if(e[t.id]){var r,o=e[t.id];(r=o)&&"[object Function]"==={}.toString.call(r)&&(o=o(t())),Array.isArray(o)||(o=[o]),o.map(function(e){return r=e,o=t(),n(r.selector?document.querySelectorAll(r.selector):[document.documentElement]).map(function(e){var t=(r.type||"").indexOf("color")>-1?o["color"===r.type?"default":r.type.split(":")[1]].color:r.extractValue?r.extractValue(o):o;t&&t.indexOf("CT_CSS_SKIP_RULE")>-1?e.style.removeProperty("--".concat(r.variable)):e.style.setProperty("--".concat(r.variable),"".concat(t||"").concat(r.unit||""))});var r,o})}})}},179:function(e,t,n){var r=n(4932),o=n(9999),i=n
/*!
Copyright (c) 2018 Jed Watson.
Licensed under the MIT License (MIT), see
http://jedwatson.github.io/classnames
*/!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var i=typeof n;if("string"===i||"number"===i)e.push(n);else if(Array.isArray(n)){if(n.length){var a=o.apply(null,n);a&&e.push(a)}}else if("object"===i){if(n.toString!==Object.prototype.toString&&!n.toString.toString().includes("[native code]")){e.push(n.toString());continue}for(var c in n)r.call(n,c)&&n[c]&&e.push(c)}}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()},2523:function(e){e.exports=function(e,t,n,r){for(var o=e.length,i=n+(r?1:-1);r?i--:++i<o;)if(t(e[i],i,e))return i;return-1}},2552:function(e,t,n){var r=n(1873),o=n(659),i=n(9350),a=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":a&&a in Object(e)?o(e):i(e)}},2584:function(e,t,n){"use strict";n.d(t,{P:function(){return a},v:function(){return c}});var r=n(8113),o=n.n(r);n(1669);let i=null;const a=function(){return!!i&&i.split(":")[1]},c=function(){return i=null};wp.customize&&wp.customize.bind("ready",function(){wp.customize.previewer.bind("ct-initiate-deep-link",function(e){const[t,n]=e.split(":"),r=Object.values(wp.customize.section._value).find(function(e){return e.expanded()});if(!r||r.id!==t)return i=e,void wp.customize.section(t).expand();o().trigger("ct-deep-link-start",e)}),wp.customize.previewer.bind("ct-trigger-autosave",function(){wp.customize.requestChangesetUpdate({},{autosave:!0}).done(function(){wp.customize.previewer.send("ct-trigger-autosave-done")})})})},2651:function(e,t,n){var r=n(4218);e.exports=function(e,t){var n=e.__data__;return r(t)?n["string"==typeof t?"string":"hash"]:n.map}},2678:function(e,t,n){"use strict";n.r(t);var r=n(4705),o=n(1230),i=n(5367),a=n(2485),c=n.n(a),s=n(7976),l=n(4754);function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach(function(t){(0,r.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}const d=function(e,t,n){return Math.max(e,Math.min(t,n))};t.default=function(e){let{value:t,option:n,onChange:r}=e;const[a,u]=(0,o.useState)(!1);return(0,o.createElement)("div",{className:c()("ct-option-border")},(0,o.createElement)("div",{className:c()("ct-value-changer",{active:a})},"none"!==t.style&&!t.inherit&&(0,o.createElement)("input",{type:"number",value:t.width,onChange:function(e){let{target:{value:n}}=e;return r(p(p({},t),{},{width:d(1,5,parseInt(n,10)||1)}))}}),(0,o.createElement)("span",{className:"ct-current-value","data-style":t.inherit?"none":t.style,onClick:function(){return u(!a)}},t.inherit?(0,l.__)("Inherit","blocksy"):"none"===t.style?(0,l.__)("none","blocksy"):null),(0,o.createElement)(i.default,{className:"ct-units-list",disabled:!a,onOutsideClick:function(){a&&u(!1)}},["solid","dashed","dotted","none"].map(function(e){return(0,o.createElement)("span",{key:e,onClick:function(){r(p(p({},t),{},{style:e},Object.keys(n.value).indexOf("inherit")>-1?{inherit:!1}:{})),u(!1)},"data-style":e},"none"===e?(0,l.__)("None","blocksy"):null)}))),"none"!==t.style&&!t.inherit&&(0,o.createElement)(o.Fragment,null,(0,o.createElement)(s.default,{onChange:function(e){return r(p(p({},t),{},{color:e.default}))},option:{pickers:[{id:"default",title:(0,l.__)("Initial","blocksy")}]},value:{default:t.color}}),n.secondColor&&(0,o.createElement)(s.default,{onChange:function(e){return r(p(p({},t),{},{secondColor:e.default}))},option:{pickers:[{id:"default",title:(0,l.__)("Hover","blocksy")}]},value:{default:t.secondColor||n.value.secondColor}})))}},2682:function(e,t,n){"use strict";var r=n(9600),o=Object.prototype.toString,i=Object.pro
/** @license React v16.13.1
* react-is.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,o=n?Symbol.for("react.portal"):60106,i=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,c=n?Symbol.for("react.profiler"):60114,s=n?Symbol.for("react.provider"):60109,l=n?Symbol.for("react.context"):60110,u=n?Symbol.for("react.async_mode"):60111,p=n?Symbol.for("react.concurrent_mode"):60111,d=n?Symbol.for("react.forward_ref"):60112,f=n?Symbol.for("react.suspense"):60113,m=n?Symbol.for("react.suspense_list"):60120,h=n?Symbol.for("react.memo"):60115,g=n?Symbol.for("react.lazy"):60116,v=n?Symbol.for("react.block"):60121,y=n?Symbol.for("react.fundamental"):60117,b=n?Symbol.for("react.responder"):60118,w=n?Symbol.for("react.scope"):60119;function _(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case u:case p:case i:case c:case a:case f:return e;default:switch(e=e&&e.$$typeof){case l:case d:case g:case h:case s:return e;default:return t}}case o:return t}}}function O(e){return _(e)===p}t.AsyncMode=u,t.ConcurrentMode=p,t.ContextConsumer=l,t.ContextProvider=s,t.Element=r,t.ForwardRef=d,t.Fragment=i,t.Lazy=g,t.Memo=h,t.Portal=o,t.Profiler=c,t.StrictMode=a,t.Suspense=f,t.isAsyncMode=function(e){return O(e)||_(e)===u},t.isConcurrentMode=O,t.isContextConsumer=function(e){return _(e)===l},t.isContextProvider=function(e){return _(e)===s},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return _(e)===d},t.isFragment=function(e){return _(e)===i},t.isLazy=function(e){return _(e)===g},t.isMemo=function(e){return _(e)===h},t.isPortal=function(e){return _(e)===o},t.isProfiler=function(e){return _(e)===c},t.isStrictMode=function(e){return _(e)===a},t.isSuspense=function(e){return _(e)===f},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===p||e===c||e===a||e===f||e===m||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===h||e.$$typeof===s||e.$$typeof===l||e.$$typeof===d||e.$$typeof===y||e.$$typeof===b||e.$$typeof===w||e.$$typeof===v)},t.typeOf=_},2804:function(e,t,n){var r=n(6110)(n(9325),"Promise");e.exports=r},2865:function(e,t,n){var r=n(9570),o=n(4192)(r);e.exports=o},2903:function(e,t,n){var r=n(3805),o=n(5527),i=n(181),a=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return i(e);var t=o(e),n=[];for(var c in e)("constructor"!=c||!t&&a.call(e,c))&&n.push(c);return n}},2949:function(e,t,n){var r=n(2651);e.exports=function(e,t){var n=r(this,e),o=n.size;return n.set(e,t),this.size+=n.size==o?0:1,this}},3007:function(e){e.exports=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}},3040:function(e,t,n){var r=n(1549),o=n(79),i=n(8223);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(i||o),string:new r}}},3093:function(e,t,n){"use strict";var r=n(4459);e.exports=function(e){return r(e)||0===e?e:e<0?-1:1}},3120:function(e,t,n){var r=n(4528),o=n(5891);e.exports=function e(t,n,i,a,c){var s=-1,l=t.length;for(i||(i=o),c||(c=[]);++s<l;){var u=t[s];n>0&&i(u)?n>1?e(u,n-1,i,a,c):r(c,u):a||(c[c.length]=u)}return c}},3126:function(e,t,n){"use strict";var r=n(6743),o=n(9675),i=n(76),a=n(3144);e.exports=function(e){if(e.length<1||"function"!=typeof e[0])throw new o("a function is required");return a(r,i,e)}},3138:function(e,t,n){var r=n(1331);e.exports=function(e){return r(e)?void 0:e}},3144:function(e,t,n){"use strict";var r=n(6743),o=n(1002),i=n(76),a=n(7119);e.exports=a||r.call(i,o)},3201:function(e){var t=/\w*$/;e.exports=function(e){var n=new e.constructor(e.source,t.exec(e));return n.lastIndex=e.lastIndex,n}},3222:function(e,t,n){"use strict";n.d(t,{Y:function(){return l}});var r=n(4705),o=n(1230),i=n(1247),a=n(9853),c=n.n(a);function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}const l=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e=function(e)
2025-08-27 08:44:30 +02:00
/**!
* Sortable 1.11.0
* @author RubaXa <trash@rubaxa.org>
* @author owenm <owen23355@gmail.com>
* @license MIT
2025-12-12 13:14:39 +01:00
*/var s,l;s=void 0,l=function(){function e(e){if("undefined"!=typeof window&&window.navigator)return!!navigator.userAgent.match(e)}const t=e(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),n=e(/Edge/i),o=e(/firefox/i),a=e(/safari/i)&&!e(/chrome/i)&&!e(/android/i),s=e(/iP(ad|od|hone)/i),l=e(/chrome/i)&&e(/android/i),u={capture:!1,passive:!1};function p(e,n,r){e.addEventListener(n,r,!t&&u)}function d(e,n,r){e.removeEventListener(n,r,!t&&u)}function f(e,t){if(t){if(">"===t[0]&&(t=t.substring(1)),e)try{if(e.matches)return e.matches(t);if(e.msMatchesSelector)return e.msMatchesSelector(t);if(e.webkitMatchesSelector)return e.webkitMatchesSelector(t)}catch(e){return!1}return!1}}function m(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function h(e,t,n,r){if(e){n=n||document;do{if(null!=t&&(">"===t[0]?e.parentNode===n&&f(e,t):f(e,t))||r&&e===n)return e;if(e===n)break}while(e=m(e))}return null}const g=/\s+/g;function v(e,t,n){if(e&&t)if(e.classList)e.classList[n?"add":"remove"](t);else{let r=(" "+e.className+" ").replace(g," ").replace(" "+t+" "," ");e.className=(r+(n?" "+t:"")).replace(g," ")}}function y(e,t,n){let r=e&&e.style;if(r){if(void 0===n)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(e,""):e.currentStyle&&(n=e.currentStyle),void 0===t?n:n[t];t in r||-1!==t.indexOf("webkit")||(t="-webkit-"+t),r[t]=n+("string"==typeof n?"":"px")}}function b(e,t){let n="";if("string"==typeof e)n=e;else do{let t=y(e,"transform");t&&"none"!==t&&(n=t+" "+n)}while(!t&&(e=e.parentNode));const r=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return r&&new r(n)}function w(e,t,n){if(e){let r=e.getElementsByTagName(t),o=0,i=r.length;if(n)for(;o<i;o++)n(r[o],o);return r}return[]}function _(){let e=document.scrollingElement;return e||document.documentElement}function O(e,n,r,o,i){if(!e.getBoundingClientRect&&e!==window)return;let a,c,s,l,u,p,d;if(e!==window&&e!==_()?(a=e.getBoundingClientRect(),c=a.top,s=a.left,l=a.bottom,u=a.right,p=a.height,d=a.width):(c=0,s=0,l=window.innerHeight,u=window.innerWidth,p=window.innerHeight,d=window.innerWidth),(n||r)&&e!==window&&(i=i||e.parentNode,!t))do{if(i&&i.getBoundingClientRect&&("none"!==y(i,"transform")||r&&"static"!==y(i,"position"))){let e=i.getBoundingClientRect();c-=e.top+parseInt(y(i,"border-top-width")),s-=e.left+parseInt(y(i,"border-left-width")),l=c+a.height,u=s+a.width;break}}while(i=i.parentNode);if(o&&e!==window){let t=b(i||e),n=t&&t.a,r=t&&t.d;t&&(c/=r,s/=n,d/=n,p/=r,l=c+p,u=s+d)}return{top:c,left:s,bottom:l,right:u,width:d,height:p}}function E(e,t,n){let r=P(e,!0),o=O(e)[t];for(;r;){let e,t=O(r)[n];if(e="top"===n||"left"===n?o>=t:o<=t,!e)return r;if(r===_())break;r=P(r,!1)}return!1}function C(e,t,n){let r=0,o=0,i=e.children;for(;o<i.length;){if("none"!==i[o].style.display&&i[o]!==Te.ghost&&i[o]!==Te.dragged&&h(i[o],n.draggable,e,!1)){if(r===t)return i[o];r++}o++}return null}function x(e,t){let n=e.lastElementChild;for(;n&&(n===Te.ghost||"none"===y(n,"display")||t&&!f(n,t));)n=n.previousElementSibling;return n||null}function S(e,t){let n=0;if(!e||!e.parentNode)return-1;for(;e=e.previousElementSibling;)"TEMPLATE"===e.nodeName.toUpperCase()||e.matches(".ct-pointer")||e===Te.clone||t&&!f(e,t)||n++;return n}function k(e){let t=0,n=0,r=_();if(e)do{let r=b(e),o=r.a,i=r.d;t+=e.scrollLeft*o,n+=e.scrollTop*i}while(e!==r&&(e=e.parentNode));return[t,n]}function P(e,t){if(!e||!e.getBoundingClientRect)return _();let n=e,r=!1;do{if(n.clientWidth<n.scrollWidth||n.clientHeight<n.scrollHeight){let e=y(n);if(n.clientWidth<n.scrollWidth&&("auto"==e.overflowX||"scroll"==e.overflowX)||n.clientHeight<n.scrollHeight&&("auto"==e.overflowY||"scroll"==e.overflowY)){if(!n.getBoundingClientRect||n===document.body)return _();if(r||t)return n;r=!0}}}while(n=n.parentNode);return _()}function j(e,t){return Math.round(e.top)===Math.round(t.top)&&Math.round(e.left)===Math.round(t.left)&&Math.round(e.height)===Math.round(t.height)&&Math.round(e.width)===Math.round(t.width)}let D;function A(e,t){return functio
2025-08-27 08:44:30 +02:00
/**!
* Sortable
* @author RubaXa <trash@rubaxa.org>
* @author owenm <owen23355@gmail.com>
* @license MIT
2026-03-31 11:30:59 +02:00
*/let U=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{evt:o}=n,a=(0,r.A)(n,i);F.pluginEvent.bind(Te)(e,t,c({dragEl:W,parentEl:G,ghostEl:$,rootEl:q,nextEl:K,lastDownEl:X,cloneEl:J,cloneHidden:Y,dragStarted:ue,putSortable:re,activeSortable:Te.active,originalEvent:o,oldIndex:Q,oldDraggableIndex:ee,newIndex:Z,newDraggableIndex:te,hideGhostForTarget:De,unhideGhostForTarget:Ae,cloneNowHidden(){Y=!0},cloneNowShown(){Y=!1},dispatchSortableEvent(e){H({sortable:t,name:e,originalEvent:o})}},a))};function H(e){V(c({putSortable:re,cloneEl:J,targetEl:W,rootEl:q,oldIndex:Q,oldDraggableIndex:ee,newIndex:Z,newDraggableIndex:te},e))}let W,G,$,q,K,X,J,Y,Q,Z,ee,te,ne,re,oe,ie,ae,ce,se,le,ue,pe,de,fe,me,he=!1,ge=!1,ve=[],ye=!1,be=!1,we=[],_e=!1,Oe=[];const Ee="undefined"!=typeof document,Ce=s,xe=n||t?"cssFloat":"float",Se=Ee&&!l&&!s&&"draggable"in document.createElement("div"),ke=function(){if(!Ee)return;if(t)return!1;let e=document.createElement("x");return e.style.cssText="pointer-events:auto","auto"===e.style.pointerEvents}(),Pe=function(e,t){let n=y(e),r=parseInt(n.width)-parseInt(n.paddingLeft)-parseInt(n.paddingRight)-parseInt(n.borderLeftWidth)-parseInt(n.borderRightWidth),o=C(e,0,t),i=C(e,1,t),a=o&&y(o),c=i&&y(i),s=a&&parseInt(a.marginLeft)+parseInt(a.marginRight)+O(o).width,l=c&&parseInt(c.marginLeft)+parseInt(c.marginRight)+O(i).width;if("flex"===n.display)return"column"===n.flexDirection||"column-reverse"===n.flexDirection?"vertical":"horizontal";if("grid"===n.display)return n.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(o&&a.float&&"none"!==a.float){let e="left"===a.float?"left":"right";return!i||"both"!==c.clear&&c.clear!==e?"horizontal":"vertical"}return o&&("block"===a.display||"flex"===a.display||"table"===a.display||"grid"===a.display||s>=r&&"none"===n[xe]||i&&"none"===n[xe]&&s+l>r)?"vertical":"horizontal"},je=function(e){function t(e,n){return function(r,o,i,a){let c=r.options.group.name&&o.options.group.name&&r.options.group.name===o.options.group.name;if(null==e&&(n||c))return!0;if(null==e||!1===e)return!1;if(n&&"clone"===e)return e;if("function"==typeof e)return t(e(r,o,i,a),n)(r,o,i,a);{let t=(n?r:o).options.group.name;return!0===e||"string"==typeof e&&e===t||e.join&&e.indexOf(t)>-1}}}let n={},r=e.group;r&&"object"==typeof r||(r={name:r}),n.name=r.name,n.checkPull=t(r.pull,!0),n.checkPut=t(r.put),n.revertClone=r.revertClone,e.group=n},De=function(){!ke&&$&&y($,"display","none")},Ae=function(){!ke&&$&&y($,"display","")};Ee&&document.addEventListener("click",function(e){if(ge)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),ge=!1,!1},!0);let Ie=function(e){if(W){let t=function(e,t){let n;return ve.some(function(r){if(x(r))return;let o=O(r),i=r[M].options.emptyInsertThreshold,a=e>=o.left-i&&e<=o.right+i,c=t>=o.top-i&&t<=o.bottom+i;return i&&a&&c?n=r:void 0}),n}((e=e.touches?e.touches[0]:e).clientX,e.clientY);if(t){let n={};for(let t in e)e.hasOwnProperty(t)&&(n[t]=e[t]);n.target=n.rootEl=t,n.preventDefault=void 0,n.stopPropagation=void 0,t[M]._onDragOver(n)}}},Ne=function(e){W&&W.parentNode[M]._isOutsideThisEl(e.target)};function Te(e,t){if(!e||!e.nodeType||1!==e.nodeType)throw`Sortable: \`el\` must be an HTMLElement, not ${{}.toString.call(e)}`;this.el=e,this.options=t=Object.assign({},t),e[M]=this;let n={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(e.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return Pe(e,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(e,t){e.setData("Text",t.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:
2025-12-12 13:14:39 +01:00
/**
* @license React
2025-08-27 08:44:30 +02:00
* react-is.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
2025-12-12 13:14:39 +01:00
*/function v(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case i:case c:case a:case d:case f:return e;default:switch(e=e&&e.$$typeof){case u:case l:case p:case h:case m:case s:return e;default:return t}}case o:return t}}}n=Symbol.for("react.module.reference")},5606:function(e){var t,n,r=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function a(e){if(t===setTimeout)return setTimeout(e,0);if((t===o||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:o}catch(e){t=o}try{n="function"==typeof clearTimeout?clearTimeout:i}catch(e){n=i}}();var c,s=[],l=!1,u=-1;function p(){l&&c&&(l=!1,c.length?s=c.concat(s):u=-1,s.length&&d())}function d(){if(!l){var e=a(p);l=!0;for(var t=s.length;t;){for(c=s,s=[];++u<t;)c&&c[u].run();u=-1,t=s.length}c=null,l=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===i||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{return n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}(e)}}function f(e,t){this.fun=e,this.array=t}function m(){}r.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];s.push(new f(e,t)),1!==s.length||l||a(d)},f.prototype.run=function(){this.fun.apply(null,this.array)},r.title="browser",r.browser=!0,r.env={},r.argv=[],r.version="",r.versions={},r.on=m,r.addListener=m,r.once=m,r.off=m,r.removeListener=m,r.removeAllListeners=m,r.emit=m,r.prependListener=m,r.prependOnceListener=m,r.listeners=function(e){return[]},r.binding=function(e){throw new Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(e){throw new Error("process.chdir is not supported")},r.umask=function(){return 0}},5617:function(e,t){"use strict";t.S=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return e&&Object.keys(e).indexOf("desktop")>-1?t?e:e.desktop:t?{desktop:e,tablet:e,mobile:e}:e}},5634:function(e,t,n){"use strict";n.d(t,{j:function(){return o}});var r=n(328);const o=function(e){let{id:t,option:n,values:o,renderingConfig:i}=e,a=-1===Object.keys(n).indexOf("label")?(c=t,(c=null==c?"":String(c)).charAt(0).toUpperCase()+c.slice(1)).replace(/\_|\-/g," "):n.label;var c;return a!==a.toString()&&(a=Object.keys(a).reduce(function(e,t){return e||((0,r.JW)((0,r.D1)(a[t]),o)?t:e)},null)||Object.keys(a)[0]),""===a&&(a=!0),i&&!i.label&&(a=!1),a}},5680:function(e,t,n){"use strict";var r=n(5767);e.exports=function(e){return!!r(e)}},5700:function(e,t,n){"use strict";n.d(t,{T5:function(){return i},au:function(){return a},p8:function(){return o}});var r=n(4754);const o=function(){return"~"},i=function(e){return e.split("~")[0]},a=function(e){const t={"content-block":(0,r.__)("Content Block","blocksy"),contacts:(0,r.__)("Contacts","blocksy"),divider:(0,r.__)("Divider","blocksy"),"language-switcher":(0,r.__)("Languages","blocksy"),"menu-tertiary":(0,r.__)("Menu 3","blocksy"),"mobile-menu-secondary":(0,r.__)("Mobile Menu 2","blocksy"),"search-input":(0,r.__)("Search Box","blocksy"),"widget-area-1":(0,r.__)("Widget Area","blocksy"),"menu-secondary":(0,r.__)("Footer Menu 2","blocksy"),account:(0,r.__)("Account","blocksy"),"color-mode-switcher":(0,r.__)("Color Switch","blocksy"),"wish-list":(0,r.__)("Wishlist","blocksy"),compare:(0,r.__)("Compare","blocksy"),logo:(0,r.__)("Logo","blocksy")};return t[e]?t[e]:e}},5749:function(e,t,n){var r=n(1042);e.exports=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=r&&void 0===t?"__lodash_hash_undefined__":t,this}},5767:function(e,t,n){"use strict";var r=n(2682),o=n(9209),i=n(487),a=n(6556),c=n(5795),s=n(3628),l=a("Object.prototype.toString"),u=n(9092)(),p="undefined"==typeof globalThis?n.g:globalThis,d=o(),f=a("String.prototype.slice"),m=a("Array.prototype.indexOf",!0)||function(e,t){for(var n=0;n<e.le
2025-08-27 08:44:30 +02:00
/*!
* Determine if an object is a Buffer
*
* @author Feross Aboukhadijeh <https://feross.org>
* @license MIT
*/
2026-03-31 11:30:59 +02:00
e.exports=function(e){return null!=e&&(t(e)||function(e){return"function"==typeof e.readFloatLE&&"function"==typeof e.slice&&t(e.slice(0,0))}(e)||!!e._isBuffer)}},7217:function(e,t,n){var r=n(79),o=n(1420),i=n(938),a=n(3605),c=n(9817),s=n(945);function l(e){var t=this.__data__=new r(e);this.size=t.size}l.prototype.clear=o,l.prototype.delete=i,l.prototype.get=a,l.prototype.has=c,l.prototype.set=s,e.exports=l},7236:function(e){e.exports=function(e,t,n){return function(r){if(e[0]===e[1]||t[0]===t[1])return t[0];var o=(t[1]-t[0])/(e[1]-e[0]),i=t[0]+o*(r-e[0]);return n?Math.min(t[1],Math.max(t[0],i)):i}}},7241:function(e,t,n){var r=n(695),o=n(2903),i=n(4894);e.exports=function(e){return i(e)?r(e,!0):o(e)}},7244:function(e,t,n){"use strict";var r=n(9092)(),o=n(8075)("Object.prototype.toString"),i=function(e){return!(r&&e&&"object"==typeof e&&Symbol.toStringTag in e)&&"[object Arguments]"===o(e)},a=function(e){return!!i(e)||null!==e&&"object"==typeof e&&"number"==typeof e.length&&e.length>=0&&"[object Array]"!==o(e)&&"[object Function]"===o(e.callee)},c=function(){return i(arguments)}();i.isLegacyArguments=a,e.exports=c?i:a},7260:function(e,t,n){"use strict";n.r(t),n.d(t,{DragDropContext:function(){return F},default:function(){return H},fetchCurrentFooter:function(){return V}});var r=n(4705),o=n(45),i=n(1230),a=n(4754),c=n(2485),s=n.n(c),l=n(8168),u=n(4297),p=n(2373),d=n(5700),f=n(3528);const m=["items","draggableId","hasPointers","className","tagName","direction","group","options","propsForItem","panelType","displayWrapper"];function h(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function g(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?h(Object(n),!0).forEach(function(t){(0,r.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}const v=function(e){let{item:t,index:n,panelType:r,onRemove:o,renderItem:a,onClick:c,className:l}=e;const u=ct_customizer_localizations.header_builder_data[r].find(function(e){let{id:n}=e;return n===(0,d.T5)(t)}),{builderValue:p}=(0,i.useContext)(F);if(a)return a({item:t,itemData:u,index:n});const f=Object.keys(p.items).filter(function(e){return e.indexOf((0,d.p8)())>-1}),m=[(0,d.T5)(t),...f.filter(function(e){return(0,d.T5)(e)===(0,d.T5)(t)})],h=(0,d.au)((0,d.T5)(t));return(0,i.createElement)("div",{"data-id":t,className:s()("ct-builder-item",l,{"ct-builder-item-not-registered":!u}),onClick:c},(0,i.createElement)("span",{className:"ct-builder-item-label"},u&&u.config?m.length>1?`${u.config.name} ${m.indexOf(t)+1}`:u.config.name:h),(0,i.createElement)("button",{className:"ct-btn-remove",onClick:function(e){e.preventDefault(),e.stopPropagation(),o()}},(0,i.createElement)("svg",{width:"7px",height:"7px",viewBox:"0 0 10 10",fill:"currentColor"},(0,i.createElement)("path",{d:"M10,1.4L6.4,5L10,8.6L8.6,10L5,6.4L1.4,10L0,8.6L3.6,5L0,1.4L1.4,0L5,3.6L8.6,0L10,1.4z"}))))};var y=function(e){let{items:t,draggableId:n,hasPointers:r=!0,className:a,tagName:c="div",direction:h="horizontal",group:y="header_sortables",options:b={},propsForItem:w=function(e){return{}},panelType:_="footer",displayWrapper:O=!0}=e,E=(0,o.A)(e,m);const{isDragging:C,setIsDragging:x,onChange:S,setList:k}=(0,i.useContext)(F),{panelsHelpers:P}=(0,i.useContext)(p.G),[j,D]=(0,i.useState)(!1),A=(0,i.createElement)(i.Fragment,null,(0,i.createElement)(f.A,{username:ct_customizer_localizations.username,isShowing:j,setIsShowing:D}),t.map(function(e,r){return(0,i.createElement)(v,(0,l.A)({key:e,index:r,panelType:_,item:e,className:P.isOpenFor(`builder_panel_${e}`)?"ct-customizing":"",onClick:function(t){t.stopPropagation(),t.preventDefault();ct_customizer_localizations.header_builder_data.footer.find(function(t){let{id:n}=t;return n===(0,d.T5)(e)})?P.open(`builder_panel_${e}`):D(!0)},onRemove
2025-08-27 08:44:30 +02:00
/** @license React v17.0.2
* react-is.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
2026-03-31 11:30:59 +02:00
*/if("function"==typeof Symbol&&Symbol.for){var b=Symbol.for;n=b("react.element"),r=b("react.portal"),o=b("react.fragment"),i=b("react.strict_mode"),a=b("react.profiler"),c=b("react.provider"),s=b("react.context"),l=b("react.forward_ref"),u=b("react.suspense"),p=b("react.suspense_list"),d=b("react.memo"),f=b("react.lazy"),m=b("react.block"),h=b("react.server.block"),g=b("react.fundamental"),v=b("react.debug_trace_mode"),y=b("react.legacy_hidden")}function w(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case o:case a:case i:case u:case p:return e;default:switch(e=e&&e.$$typeof){case s:case l:case f:case d:case c:return e;default:return t}}case r:return t}}}t.isContextConsumer=function(e){return w(e)===s}},9016:function(e,t,n){"use strict";n.r(t);var r=n(1230);const o=function(e){let{option:{text:t="",attr:n={}}}=e;return(0,r.createElement)(r.Fragment,null)};o.renderingConfig={design:"none"},o.MetaWrapper=function(){return null},t.default=o},9032:function(e,t,n){"use strict";var r=n(7244),o=n(8184),i=n(5767),a=n(5680);function c(e){return e.call.bind(e)}var s="undefined"!=typeof BigInt,l="undefined"!=typeof Symbol,u=c(Object.prototype.toString),p=c(Number.prototype.valueOf),d=c(String.prototype.valueOf),f=c(Boolean.prototype.valueOf);if(s)var m=c(BigInt.prototype.valueOf);if(l)var h=c(Symbol.prototype.valueOf);function g(e,t){if("object"!=typeof e)return!1;try{return t(e),!0}catch(e){return!1}}function v(e){return"[object Map]"===u(e)}function y(e){return"[object Set]"===u(e)}function b(e){return"[object WeakMap]"===u(e)}function w(e){return"[object WeakSet]"===u(e)}function _(e){return"[object ArrayBuffer]"===u(e)}function O(e){return"undefined"!=typeof ArrayBuffer&&(_.working?_(e):e instanceof ArrayBuffer)}function E(e){return"[object DataView]"===u(e)}function C(e){return"undefined"!=typeof DataView&&(E.working?E(e):e instanceof DataView)}t.isArgumentsObject=r,t.isGeneratorFunction=o,t.isTypedArray=a,t.isPromise=function(e){return"undefined"!=typeof Promise&&e instanceof Promise||null!==e&&"object"==typeof e&&"function"==typeof e.then&&"function"==typeof e.catch},t.isArrayBufferView=function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):a(e)||C(e)},t.isUint8Array=function(e){return"Uint8Array"===i(e)},t.isUint8ClampedArray=function(e){return"Uint8ClampedArray"===i(e)},t.isUint16Array=function(e){return"Uint16Array"===i(e)},t.isUint32Array=function(e){return"Uint32Array"===i(e)},t.isInt8Array=function(e){return"Int8Array"===i(e)},t.isInt16Array=function(e){return"Int16Array"===i(e)},t.isInt32Array=function(e){return"Int32Array"===i(e)},t.isFloat32Array=function(e){return"Float32Array"===i(e)},t.isFloat64Array=function(e){return"Float64Array"===i(e)},t.isBigInt64Array=function(e){return"BigInt64Array"===i(e)},t.isBigUint64Array=function(e){return"BigUint64Array"===i(e)},v.working="undefined"!=typeof Map&&v(new Map),t.isMap=function(e){return"undefined"!=typeof Map&&(v.working?v(e):e instanceof Map)},y.working="undefined"!=typeof Set&&y(new Set),t.isSet=function(e){return"undefined"!=typeof Set&&(y.working?y(e):e instanceof Set)},b.working="undefined"!=typeof WeakMap&&b(new WeakMap),t.isWeakMap=function(e){return"undefined"!=typeof WeakMap&&(b.working?b(e):e instanceof WeakMap)},w.working="undefined"!=typeof WeakSet&&w(new WeakSet),t.isWeakSet=function(e){return w(e)},_.working="undefined"!=typeof ArrayBuffer&&_(new ArrayBuffer),t.isArrayBuffer=O,E.working="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView&&E(new DataView(new ArrayBuffer(1),0,1)),t.isDataView=C;var x="undefined"!=typeof SharedArrayBuffer?SharedArrayBuffer:void 0;function S(e){return"[object SharedArrayBuffer]"===u(e)}function k(e){return void 0!==x&&(void 0===S.working&&(S.working=S(new x)),S.working?S(e):e instanceof x)}function P(e){return g(e,p)}function j(e){return g(e,d)}function D(e){return g(e,f)}function A(e){return s&&g(e,m)}function I(e){return l&&g(e,h)}t.isSharedArrayBuffer=k,t.isAsyncFunction=function(e){return"[object AsyncFunction]"===u(e)},t.isMapIter
2025-08-27 08:44:30 +02:00
/**
* @license
* Copyright (c) 2016 The Polymer Project Authors. All rights reserved.
* This code may only be used under the BSD style license found at
* http://polymer.github.io/LICENSE.txt The complete set of authors may be found
* at http://polymer.github.io/AUTHORS.txt The complete set of contributors may
* be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by
* Google as part of the polymer project is also subject to an additional IP
* rights grant found at http://polymer.github.io/PATENTS.txt
*/
2025-12-12 13:14:39 +01:00
Object.defineProperty(e,"__esModule",{value:!0});var t;e.matcher={whitespace:/\s/,whitespaceGreedy:/(\s+)/g,commentGreedy:/(\*\/)/g,boundary:/[\(\)\{\}'"@;:\s]/,stringBoundary:/['"]/},(t=e.nodeType||(e.nodeType={})).stylesheet="stylesheet",t.comment="comment",t.atRule="atRule",t.ruleset="ruleset",t.expression="expression",t.declaration="declaration",t.rulelist="rulelist",t.discarded="discarded"}(Pn),
2025-08-27 08:44:30 +02:00
/**
* @license
* Copyright (c) 2016 The Polymer Project Authors. All rights reserved.
* This code may only be used under the BSD style license found at
* http://polymer.github.io/LICENSE.txt The complete set of authors may be found
* at http://polymer.github.io/AUTHORS.txt The complete set of contributors may
* be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by
* Google as part of the polymer project is also subject to an additional IP
* rights grant found at http://polymer.github.io/PATENTS.txt
*/
2025-12-12 13:14:39 +01:00
Object.defineProperty(kn,"__esModule",{value:!0});const jn=wn(),Dn=Pn;kn.iterateOverAst=function*e(t){switch(yield t,t.type){case Dn.nodeType.stylesheet:for(const n of t.rules)yield*e(n);return;case Dn.nodeType.ruleset:return yield*e(t.rulelist);case Dn.nodeType.rulelist:for(const n of t.rules)yield*e(n);return;case Dn.nodeType.declaration:return void(void 0!==t.value&&(yield*e(t.value)));case Dn.nodeType.atRule:return void(t.rulelist&&(yield*e(t.rulelist)));case Dn.nodeType.expression:case Dn.nodeType.comment:case Dn.nodeType.discarded:return;default:const n=t;console.error(`Got a node of unknown type: ${jn.inspect(n)}`)}};var An={};
2025-08-27 08:44:30 +02:00
/**
* @license
* Copyright (c) 2016 The Polymer Project Authors. All rights reserved.
* This code may only be used under the BSD style license found at
* http://polymer.github.io/LICENSE.txt The complete set of authors may be found
* at http://polymer.github.io/AUTHORS.txt The complete set of contributors may
* be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by
* Google as part of the polymer project is also subject to an additional IP
* rights grant found at http://polymer.github.io/PATENTS.txt
2025-12-12 13:14:39 +01:00
*/Object.defineProperty(An,"__esModule",{value:!0});const In=Pn;An.NodeFactory=class{stylesheet(e,t){return{type:In.nodeType.stylesheet,rules:e,range:t}}atRule(e,t,n=void 0,r,o,i){return{type:In.nodeType.atRule,name:e,parameters:t,rulelist:n,nameRange:r,parametersRange:o,range:i}}comment(e,t){return{type:In.nodeType.comment,value:e,range:t}}rulelist(e,t){return{type:In.nodeType.rulelist,rules:e,range:t}}ruleset(e,t,n,r){return{type:In.nodeType.ruleset,selector:e,rulelist:t,selectorRange:n,range:r}}declaration(e,t,n,r){return{type:In.nodeType.declaration,name:e,value:t,nameRange:n,range:r}}expression(e,t){return{type:In.nodeType.expression,text:e,range:t}}discarded(e,t){return{type:In.nodeType.discarded,text:e,range:t}}};var Nn={};
2025-08-27 08:44:30 +02:00
/**
* @license
* Copyright (c) 2016 The Polymer Project Authors. All rights reserved.
* This code may only be used under the BSD style license found at
* http://polymer.github.io/LICENSE.txt The complete set of authors may be found
* at http://polymer.github.io/AUTHORS.txt The complete set of contributors may
* be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by
* Google as part of the polymer project is also subject to an additional IP
* rights grant found at http://polymer.github.io/PATENTS.txt
2025-12-12 13:14:39 +01:00
*/Object.defineProperty(Nn,"__esModule",{value:!0});Nn.NodeVisitor=class{constructor(){this.path_=[]}get path(){return this.path_}visit(e){let t;return this[e.type]&&(this.path_.push(e),t=this[e.type](e),this.path_.pop()),t}};var Tn={},Rn={};!function(e){var t;
2025-08-27 08:44:30 +02:00
/**
* @license
* Copyright (c) 2016 The Polymer Project Authors. All rights reserved.
* This code may only be used under the BSD style license found at
* http://polymer.github.io/LICENSE.txt The complete set of authors may be found
* at http://polymer.github.io/AUTHORS.txt The complete set of contributors may
* be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by
* Google as part of the polymer project is also subject to an additional IP
* rights grant found at http://polymer.github.io/PATENTS.txt
*/
2025-12-12 13:14:39 +01:00
Object.defineProperty(e,"__esModule",{value:!0}),function(e){e[e.none=0]="none",e[e.whitespace=Math.pow(2,0)]="whitespace",e[e.string=Math.pow(2,1)]="string",e[e.comment=Math.pow(2,2)]="comment",e[e.word=Math.pow(2,3)]="word",e[e.boundary=Math.pow(2,4)]="boundary",e[e.propertyBoundary=Math.pow(2,5)]="propertyBoundary",e[e.openParenthesis=Math.pow(2,6)|e.boundary]="openParenthesis",e[e.closeParenthesis=Math.pow(2,7)|e.boundary]="closeParenthesis",e[e.at=Math.pow(2,8)|e.boundary]="at",e[e.openBrace=Math.pow(2,9)|e.boundary]="openBrace",e[e.closeBrace=Math.pow(2,10)|e.propertyBoundary|e.boundary]="closeBrace",e[e.semicolon=Math.pow(2,11)|e.propertyBoundary|e.boundary]="semicolon",e[e.colon=Math.pow(2,12)|e.boundary|e.word]="colon",e[e.hyphen=Math.pow(2,13)]="hyphen",e[e.underscore=Math.pow(2,14)]="underscore"}(t=e.TokenType||(e.TokenType={}));class n{constructor(e,t,n){this.type=e,this.start=t,this.end=n,this.previous=null,this.next=null}is(e){return(this.type&e)===e}}n.type=t,e.Token=n;const r={"(":n.type.openParenthesis,")":n.type.closeParenthesis,":":n.type.colon,"@":n.type.at,"{":n.type.openBrace,"}":n.type.closeBrace,";":n.type.semicolon,"-":n.type.hyphen,_:n.type.underscore};e.boundaryTokenTypes=r}(Rn);var Mn={};
2025-08-27 08:44:30 +02:00
/**
* @license
* Copyright (c) 2016 The Polymer Project Authors. All rights reserved.
* This code may only be used under the BSD style license found at
* http://polymer.github.io/LICENSE.txt The complete set of authors may be found
* at http://polymer.github.io/AUTHORS.txt The complete set of contributors may
* be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by
* Google as part of the polymer project is also subject to an additional IP
* rights grant found at http://polymer.github.io/PATENTS.txt
2025-12-12 13:14:39 +01:00
*/Object.defineProperty(Mn,"__esModule",{value:!0});const Ln=Pn,Bn=Rn;Mn.Tokenizer=class{constructor(e){this.cursorToken_=new Bn.Token(Bn.Token.type.none,0,0),this.currentToken_=null,this.cssText=e}get offset(){return this.cursorToken_.end}get currentToken(){return null==this.currentToken_&&(this.currentToken_=this.getNextToken_()),this.currentToken_}advance(){let e;return null!=this.currentToken_?(e=this.currentToken_,this.currentToken_=null):e=this.getNextToken_(),e}slice(e,t=void 0){const{start:n,end:r}=this.getRange(e,t);return this.cssText.substring(n,r)}getRange(e,t=void 0){return{start:e.start,end:(t||e).end}}trimRange({start:e,end:t}){for(;e<=t&&/\s/.test(this.cssText.charAt(e));)e++;for(;e<=t&&t>0&&/\s/.test(this.cssText.charAt(t-1));)t--;return{start:e,end:t}}flush(){const e=[];for(;this.currentToken;)e.push(this.advance());return e}getNextToken_(){const e=this.cssText[this.offset];let t;return this.currentToken_=null,this.offset>=this.cssText.length?null:(t=Ln.matcher.whitespace.test(e)?this.tokenizeWhitespace(this.offset):Ln.matcher.stringBoundary.test(e)?this.tokenizeString(this.offset):"/"===e&&"*"===this.cssText[this.offset+1]?this.tokenizeComment(this.offset):Ln.matcher.boundary.test(e)?this.tokenizeBoundary(this.offset):this.tokenizeWord(this.offset),t.previous=this.cursorToken_,this.cursorToken_.next=t,this.cursorToken_=t,t)}tokenizeString(e){const t=this.cssText[e];let n=!1;const r=e;let o;for(;o=this.cssText[++e];)if(n)n=!1;else{if(o===t){++e;break}"\\"===o&&(n=!0)}return new Bn.Token(Bn.Token.type.string,r,e)}tokenizeWord(e){const t=e;let n;for(;(n=this.cssText[e])&&!Ln.matcher.boundary.test(n);)e++;return new Bn.Token(Bn.Token.type.word,t,e)}tokenizeWhitespace(e){const t=e;Ln.matcher.whitespaceGreedy.lastIndex=e;const n=Ln.matcher.whitespaceGreedy.exec(this.cssText);return null!=n&&n.index===e&&(e=Ln.matcher.whitespaceGreedy.lastIndex),new Bn.Token(Bn.Token.type.whitespace,t,e)}tokenizeComment(e){const t=e;Ln.matcher.commentGreedy.lastIndex=e;return e=null==Ln.matcher.commentGreedy.exec(this.cssText)?this.cssText.length:Ln.matcher.commentGreedy.lastIndex,new Bn.Token(Bn.Token.type.comment,t,e)}tokenizeBoundary(e){const t=Bn.boundaryTokenTypes[this.cssText[e]]||Bn.Token.type.boundary;return new Bn.Token(t,e,e+1)}},
2025-08-27 08:44:30 +02:00
/**
* @license
* Copyright (c) 2016 The Polymer Project Authors. All rights reserved.
* This code may only be used under the BSD style license found at
* http://polymer.github.io/LICENSE.txt The complete set of authors may be found
* at http://polymer.github.io/AUTHORS.txt The complete set of contributors may
* be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by
* Google as part of the polymer project is also subject to an additional IP
* rights grant found at http://polymer.github.io/PATENTS.txt
*/
2025-12-12 13:14:39 +01:00
Object.defineProperty(Tn,"__esModule",{value:!0});const zn=An,Fn=Rn,Vn=Mn;Tn.Parser=class{constructor(e=new zn.NodeFactory){this.nodeFactory=e}parse(e){return this.parseStylesheet(new Vn.Tokenizer(e))}parseStylesheet(e){return this.nodeFactory.stylesheet(this.parseRules(e),{start:0,end:e.cssText.length})}parseRules(e){const t=[];for(;e.currentToken;){const n=this.parseRule(e);n&&t.push(n)}return t}parseRule(e){const t=e.currentToken;return null===t?null:t.is(Fn.Token.type.whitespace)?(e.advance(),null):t.is(Fn.Token.type.comment)?this.parseComment(e):t.is(Fn.Token.type.word)?this.parseDeclarationOrRuleset(e):t.is(Fn.Token.type.propertyBoundary)?this.parseUnknown(e):t.is(Fn.Token.type.at)?this.parseAtRule(e):this.parseUnknown(e)}parseComment(e){const t=e.advance();return null===t?null:this.nodeFactory.comment(e.slice(t),{start:t.start,end:t.end})}parseUnknown(e){const t=e.advance();let n;if(null===t)return null;for(;e.currentToken&&e.currentToken.is(Fn.Token.type.boundary);)n=e.advance();return this.nodeFactory.discarded(e.slice(t,n),e.getRange(t,n))}parseAtRule(e){let t,n,r,o,i;if(!e.currentToken)return null;const a=e.currentToken.start;for(;e.currentToken;)if(e.currentToken.is(Fn.Token.type.whitespace))e.advance();else if(!t&&e.currentToken.is(Fn.Token.type.at)){e.advance();const r=e.currentToken;let o;for(;e.currentToken&&e.currentToken.is(Fn.Token.type.word);)o=e.advance();n=e.getRange(r,o),t=e.cssText.slice(n.start,n.end)}else{if(e.currentToken.is(Fn.Token.type.openBrace)){r=this.parseRulelist(e);break}if(e.currentToken.is(Fn.Token.type.propertyBoundary)){e.advance();break}null==o?o=e.advance():i=e.advance()}if(void 0===t||void 0===n)return null;let c,s="";o&&(c=e.trimRange(e.getRange(o,i)),s=e.cssText.slice(c.start,c.end));const l=e.currentToken?e.currentToken.previous.end:e.cssText.length;return this.nodeFactory.atRule(t,s,r,n,c,{start:a,end:l})}parseRulelist(e){const t=[],n=e.currentToken.start;let r;for(e.advance();e.currentToken;){if(e.currentToken.is(Fn.Token.type.closeBrace)){r=e.currentToken,e.advance();break}{const n=this.parseRule(e);n&&t.push(n)}}const o=r?r.end:e.cssText.length;return this.nodeFactory.rulelist(t,{start:n,end:o})}parseDeclarationOrRuleset(e){let t=null,n=null,r=null;for(;e.currentToken;)if(e.currentToken.is(Fn.Token.type.whitespace))e.advance();else if(e.currentToken.is(Fn.Token.type.openParenthesis))for(;e.currentToken&&!e.currentToken.is(Fn.Token.type.closeParenthesis);)e.advance();else{if(e.currentToken.is(Fn.Token.type.openBrace)||e.currentToken.is(Fn.Token.type.propertyBoundary))break;e.currentToken.is(Fn.Token.type.colon)&&(r=e.currentToken),null===t?(t=e.advance(),n=t):n=e.advance()}if(null===e.currentToken)return null;if(e.currentToken.is(Fn.Token.type.propertyBoundary)){const o=e.getRange(t,r?r.previous:n),i=e.cssText.slice(o.start,o.end);let a;if(r&&r.next){const t=e.getRange(r.next,n),o=e.trimRange(t),i=e.cssText.slice(o.start,o.end);a=this.nodeFactory.expression(i,o)}e.currentToken.is(Fn.Token.type.semicolon)&&e.advance();const c=e.trimRange(e.getRange(t,e.currentToken&&e.currentToken.previous||n));return this.nodeFactory.declaration(i,a,o,c)}if(r&&r===n){const r=this.parseRulelist(e);e.currentToken.is(Fn.Token.type.semicolon)&&e.advance();const o=e.getRange(t,n.previous),i=e.cssText.slice(o.start,o.end),a=e.trimRange(e.getRange(t,e.currentToken&&e.currentToken.previous||n));return this.nodeFactory.declaration(i,r,o,a)}{const r=e.getRange(t,n),o=e.cssText.slice(r.start,r.end),i=this.parseRulelist(e),a=t.start;let c;return c=e.currentToken?e.currentToken.previous?e.currentToken.previous.end:t.end:e.cssText.length,this.nodeFactory.ruleset(o,i,r,{start:a,end:c})}}};var Un={};
2025-08-27 08:44:30 +02:00
/**
* @license
* Copyright (c) 2016 The Polymer Project Authors. All rights reserved.
* This code may only be used under the BSD style license found at
* http://polymer.github.io/LICENSE.txt The complete set of authors may be found
* at http://polymer.github.io/AUTHORS.txt The complete set of contributors may
* be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by
* Google as part of the polymer project is also subject to an additional IP
* rights grant found at http://polymer.github.io/PATENTS.txt
2025-12-12 13:14:39 +01:00
*/Object.defineProperty(Un,"__esModule",{value:!0});const Hn=Pn,Wn=Nn;class Gn extends Wn.NodeVisitor{stringify(e){return this.visit(e)||""}[Hn.nodeType.stylesheet](e){let t="";for(let n=0;n<e.rules.length;++n)t+=this.visit(e.rules[n]);return t}[Hn.nodeType.atRule](e){return`@${e.name}`+(e.parameters?` ${e.parameters}`:"")+(e.rulelist?`${this.visit(e.rulelist)}`:";")}[Hn.nodeType.rulelist](e){let t="{";for(let n=0;n<e.rules.length;++n)t+=this.visit(e.rules[n]);return t+"}"}[Hn.nodeType.comment](e){return`${e.value}`}[Hn.nodeType.ruleset](e){return`${e.selector}${this.visit(e.rulelist)}`}[Hn.nodeType.declaration](e){return null!=e.value?`${e.name}:${this.visit(e.value)};`:`${e.name};`}[Hn.nodeType.expression](e){return`${e.text}`}[Hn.nodeType.discarded](e){return""}}Un.Stringifier=Gn,
2025-08-27 08:44:30 +02:00
/**
* @license
* Copyright (c) 2016 The Polymer Project Authors. All rights reserved.
* This code may only be used under the BSD style license found at
* http://polymer.github.io/LICENSE.txt The complete set of authors may be found
* at http://polymer.github.io/AUTHORS.txt The complete set of contributors may
* be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by
* Google as part of the polymer project is also subject to an additional IP
* rights grant found at http://polymer.github.io/PATENTS.txt
*/
2025-12-12 13:14:39 +01:00
Object.defineProperty(Sn,"__esModule",{value:!0});var $n=kn;Sn.iterateOverAst=$n.iterateOverAst;var qn=Pn;Sn.nodeType=qn.nodeType;var Kn=An;Sn.NodeFactory=Kn.NodeFactory;var Xn=Nn;Sn.NodeVisitor=Xn.NodeVisitor;var Jn=Tn,Yn=Sn.Parser=Jn.Parser,Qn=Un,Zn=Sn.Stringifier=Qn.Stringifier,er=Rn;Sn.Token=er.Token;var tr=Mn;Sn.Tokenizer=tr.Tokenizer;var nr,rr={},or=function(){rr={}},ir=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(e=On({cacheId:"default",initialStyleTagsDescriptor:[],initialStyleTags:[]},e),rr[e.cacheId])return rr[e.cacheId];var t=new Yn,n=Cn(e.initialStyleTags),r=document.querySelector("#ct-main-styles-inline-css");return r&&n.push(r),rr[e.cacheId]=[].concat(Cn(e.initialStyleTagsDescriptor),Cn(n.map(function(e){return{style:e}}))).map(function(e){var n={readStyles:e.readStyles?e.readStyles:function(){if(!e.style)throw new Error("No style tag is provided. Please provide a style tag or a readStyles function.");return e.style.innerText},persistStyles:e.persistStyles?e.persistStyles:function(t){if(!e.style)throw new Error("No style tag is provided. Please provide a style tag or a persistStyles function.");e.style.innerText=t}};return On(On({},n),{},{ast:t.parse(n.readStyles().replace(new RegExp("\n","g"),""))})}),rr[e.cacheId]},ar=function(e,t){rr[e]=t;var n=new Zn;rr[e].map(function(e){var t=e.ast.rules.reduce(function(e,t){return"atRule"===t.type&&"media"===t.name?On(On({},e),{},{media:[].concat(Cn(e.media),[t])}):On(On({},e),{},{nonMedia:[].concat(Cn(e.nonMedia),[t])})},{nonMedia:[],media:[]}),r=n.stringify(On(On({},e.ast),{},{rules:[].concat(Cn(t.nonMedia),Cn(t.media))}));e.persistStyles(r)})},cr=function(e){if("auto"===e||""===e)return{value:e,unit:""};var t=parseFloat(e);return isNaN(t)?{value:"",unit:""}:{value:t,unit:e.toString().replace(t.toString(),"")}},sr=function(e){return e},lr=function(e){return e&&"[object Function]"==={}.toString.call(e)},ur=function(e){var t=e.variableDescriptor,n=e.value;return{type:"declaration",name:t.variableName,value:{type:"expression",text:n}}},pr=function(e,t){return e.selector&&e.selector.desktop?e.selector[t]:e.selector||":root"},dr=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=(e=On({variableDescriptorsWithValue:[],ast:{},device:"desktop"},e)).ast,n=e.variableDescriptorsWithValue.flatMap(function(e){return e.variableDescriptor.dropSelectors||[]});if(n.length>0&&Array.isArray(t.rules)){var r=new Set(t.rules.map(function(e){return e.selector}));t=On(On({},t),{},{rules:t.rules.filter(function(e){var t=r.has(e.selector),o="string"==typeof e.selector&&n.some(function(t){return e.selector.includes(t)});return!(t&&o)})})}if(0===e.variableDescriptorsWithValue.length)return t;var o,i,a=(o=e.variableDescriptorsWithValue,i=function(t){var n=t.variableDescriptor;return pr(n,e.device)},o.reduce(function(e,t,n){var r;return(e[r=i(t,n,o)]||(e[r]=[])).push(t),e},{})),c=[],s={};if(s=On(On({},t),{},{rules:t.rules.map(function(e){if(!e.selector||!a[e.selector])return e;c.push(e.selector);var t=a[e.selector],n=[],r=t.filter(function(e){return!e.value.includes("CT_CSS_SKIP_RULE")}).reduce(function(e,t){return On(On({},e),{},En({},t.variableDescriptor.variableName,t))},{}),o=t.filter(function(e){return e.value.includes("CT_CSS_SKIP_RULE")}).reduce(function(e,t){return On(On({},e),{},En({},t.variableDescriptor.variableName,t))},{}),i=e.rulelist.rules.filter(function(e){var t=e.type,n=e.name;return"declaration"!==t||!o[n]}).map(function(e){return"declaration"===e.type&&r[e.name]?(n.push(e.name),On(On({},e),{},{value:On(On({},e.value),{},{text:r[e.name].value})})):e});return n.length!==Object.values(r).length&&(i=[].concat(Cn(i),Cn(Object.values(r).filter(function(e){var t=e.variableDescriptor;return!n.includes(t.variableName)}).map(function(e){return ur(e)})))),On(On({},e),{},{rulelist:On(On({},e.rulelist),{},{rules:i})})})}),c.length!==Object.keys(a).length){var l=Object.values(a).filter(function(t){return!c.includes(pr(t[0].variableDescriptor,e.device))&&!!t.find(function(e){return!e.value.includes("CT_CSS_SKIP_RULE")})});s=On(On(