kollapsminoriteten/wp-content/themes/blocksy/static/bundle/sync.min.js

96 lines
355 KiB
JavaScript
Raw Normal View History

2025-08-27 08:44:30 +02:00
var blocksyCustomizerSync;!function(){var e={5297:function(e,t,o){var r={"./bottom-row/sync.js":7807,"./copyright/sync.js":755,"./menu/sync.js":6037,"./middle-row/sync.js":73,"./socials/sync.js":3345,"./sync.js":7679,"./top-row/sync.js":141,"./widget-area-1/sync.js":8720,"./widget-area-2/sync.js":5191,"./widget-area-3/sync.js":3704,"./widget-area-4/sync.js":9871,"./widget-area-5/sync.js":2581,"./widget-area-6/sync.js":6621};function n(e){var t=a(e);return o(t)}function a(e){if(!o.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}n.keys=function(){return Object.keys(r)},n.resolve=a,e.exports=n,n.id=5297},9674:function(e,t,o){var r={"./bottom-row/sync.js":7726,"./button/sync.js":5496,"./cart/sync.js":1845,"./logo/sync.js":3914,"./menu-secondary/sync.js":8126,"./menu/sync.js":9172,"./middle-row/sync.js":1561,"./mobile-menu/sync.js":8650,"./offcanvas-logo/sync.js":4473,"./offcanvas/sync.js":4688,"./search/sync.js":6351,"./socials/sync.js":7997,"./sync.js":7162,"./text/sync.js":9743,"./top-row/sync.js":4445,"./trigger/sync.js":6817};function n(e){var t=a(e);return o(t)}function a(e){if(!o.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}n.keys=function(){return Object.keys(r)},n.resolve=a,e.exports=n,n.id=9674},7807:function(e,t,o){"use strict";o.r(t);var r=o(73),n=o(9526),a=o.n(n);a().on("ct:footer:sync:collect-variable-descriptors",(function(e){e["bottom-row"]=r.handleRowVariables})),a().on("ct:footer:sync:item:bottom-row",(function(e){return(0,r.handleRowOptions)({selector:'.ct-footer [data-row="bottom"]',changeDescriptor:e})}))},755:function(e,t,o){"use strict";o.r(t);var r=o(1270),n=o(9526),a=o.n(n),i=o(5813);function l(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,r)}return o}function c(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?l(Object(o),!0).forEach((function(t){s(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):l(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}function s(e,t,o){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var o=e[Symbol.toPrimitive];if(void 0!==o){var r=o.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}a().on("ct:footer:sync:collect-variable-descriptors",(function(e){e.copyright=function(e){let{itemId:t}=e;return c(c({},(0,r.typographyOption)({id:"copyrightFont",selector:(0,i.assembleSelector)((0,i.getRootSelectorFor)({itemId:t,panelType:"footer"}))})),{},{copyrightColor:[{selector:(0,i.assembleSelector)((0,i.getRootSelectorFor)({itemId:t,panelType:"footer"})),variable:"theme-text-color",type:"color:default",responsive:!0},{selector:(0,i.assembleSelector)((0,i.getRootSelectorFor)({itemId:t,panelType:"footer"})),variable:"theme-link-initial-color",type:"color:link_initial",responsive:!0},{selector:(0,i.assembleSelector)((0,i.getRootSelectorFor)({itemId:t,panelType:"footer"})),variable:"theme-link-hover-color",type:"color:link_hover",responsive:!0}],footerCopyrightAlignment:{selector:(0,i.assembleSelector)((0,i.mutateSelector)({selector:(0,i.getRootSelectorFor)({itemId:t,panelType:"footer"}),operation:"replace-last",to_add:'[data-column="copyright"]'})),variable:"horizontal-alignment",responsive:!0,unit:""},footerCopyrightVerticalAlignment:{selector:(0,i.assembleSelector)((0,i.mutateSelector)({selector:(0,i.getRootSelectorFor)({itemId:t,panelType:"footer"}),operation:"replace-last",to_add:'[data-column="copyright"]'})),variable:"vertical-alignment",responsive:!0,unit:""},copyrightMargin:{selector:(0,i.ass
/**
* @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
*/
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"}(d),
/**
* @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
*/
Object.defineProperty(p,"__esModule",{value:!0});const f=n(),m=d;p.iterateOverAst=function*e(t){switch(yield t,t.type){case m.nodeType.stylesheet:for(const o of t.rules)yield*e(o);return;case m.nodeType.ruleset:return yield*e(t.rulelist);case m.nodeType.rulelist:for(const o of t.rules)yield*e(o);return;case m.nodeType.declaration:return void(void 0!==t.value&&(yield*e(t.value)));case m.nodeType.atRule:return void(t.rulelist&&(yield*e(t.rulelist)));case m.nodeType.expression:case m.nodeType.comment:case m.nodeType.discarded:return;default:const o=t;console.error(`Got a node of unknown type: ${f.inspect(o)}`)}};var b={};
/**
* @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
*/Object.defineProperty(b,"__esModule",{value:!0});const y=d;b.NodeFactory=class{stylesheet(e,t){return{type:y.nodeType.stylesheet,rules:e,range:t}}atRule(e,t,o=void 0,r,n,a){return{type:y.nodeType.atRule,name:e,parameters:t,rulelist:o,nameRange:r,parametersRange:n,range:a}}comment(e,t){return{type:y.nodeType.comment,value:e,range:t}}rulelist(e,t){return{type:y.nodeType.rulelist,rules:e,range:t}}ruleset(e,t,o,r){return{type:y.nodeType.ruleset,selector:e,rulelist:t,selectorRange:o,range:r}}declaration(e,t,o,r){return{type:y.nodeType.declaration,name:e,value:t,nameRange:o,range:r}}expression(e,t){return{type:y.nodeType.expression,text:e,range:t}}discarded(e,t){return{type:y.nodeType.discarded,text:e,range:t}}};var v={};
/**
* @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
*/Object.defineProperty(v,"__esModule",{value:!0});v.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 h={},g={};!function(e){var t;
/**
* @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
*/
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 o{constructor(e,t,o){this.type=e,this.start=t,this.end=o,this.previous=null,this.next=null}is(e){return(this.type&e)===e}}o.type=t,e.Token=o;const r={"(":o.type.openParenthesis,")":o.type.closeParenthesis,":":o.type.colon,"@":o.type.at,"{":o.type.openBrace,"}":o.type.closeBrace,";":o.type.semicolon,"-":o.type.hyphen,_:o.type.underscore};e.boundaryTokenTypes=r}(g);var _={};
/**
* @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
*/Object.defineProperty(_,"__esModule",{value:!0});const S=d,w=g;_.Tokenizer=class{constructor(e){this.cursorToken_=new w.Token(w.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:o,end:r}=this.getRange(e,t);return this.cssText.substring(o,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=S.matcher.whitespace.test(e)?this.tokenizeWhitespace(this.offset):S.matcher.stringBoundary.test(e)?this.tokenizeString(this.offset):"/"===e&&"*"===this.cssText[this.offset+1]?this.tokenizeComment(this.offset):S.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 o=!1;const r=e;let n;for(;n=this.cssText[++e];)if(o)o=!1;else{if(n===t){++e;break}"\\"===n&&(o=!0)}return new w.Token(w.Token.type.string,r,e)}tokenizeWord(e){const t=e;let o;for(;(o=this.cssText[e])&&!S.matcher.boundary.test(o);)e++;return new w.Token(w.Token.type.word,t,e)}tokenizeWhitespace(e){const t=e;S.matcher.whitespaceGreedy.lastIndex=e;const o=S.matcher.whitespaceGreedy.exec(this.cssText);return null!=o&&o.index===e&&(e=S.matcher.whitespaceGreedy.lastIndex),new w.Token(w.Token.type.whitespace,t,e)}tokenizeComment(e){const t=e;S.matcher.commentGreedy.lastIndex=e;return e=null==S.matcher.commentGreedy.exec(this.cssText)?this.cssText.length:S.matcher.commentGreedy.lastIndex,new w.Token(w.Token.type.comment,t,e)}tokenizeBoundary(e){const t=w.boundaryTokenTypes[this.cssText[e]]||w.Token.type.boundary;return new w.Token(t,e,e+1)}},
/**
* @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
*/
Object.defineProperty(h,"__esModule",{value:!0});const x=b,k=g,O=_;h.Parser=class{constructor(e=new x.NodeFactory){this.nodeFactory=e}parse(e){return this.parseStylesheet(new O.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 o=this.parseRule(e);o&&t.push(o)}return t}parseRule(e){const t=e.currentToken;return null===t?null:t.is(k.Token.type.whitespace)?(e.advance(),null):t.is(k.Token.type.comment)?this.parseComment(e):t.is(k.Token.type.word)?this.parseDeclarationOrRuleset(e):t.is(k.Token.type.propertyBoundary)?this.parseUnknown(e):t.is(k.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 o;if(null===t)return null;for(;e.currentToken&&e.currentToken.is(k.Token.type.boundary);)o=e.advance();return this.nodeFactory.discarded(e.slice(t,o),e.getRange(t,o))}parseAtRule(e){let t,o,r,n,a;if(!e.currentToken)return null;const i=e.currentToken.start;for(;e.currentToken;)if(e.currentToken.is(k.Token.type.whitespace))e.advance();else if(!t&&e.currentToken.is(k.Token.type.at)){e.advance();const r=e.currentToken;let n;for(;e.currentToken&&e.currentToken.is(k.Token.type.word);)n=e.advance();o=e.getRange(r,n),t=e.cssText.slice(o.start,o.end)}else{if(e.currentToken.is(k.Token.type.openBrace)){r=this.parseRulelist(e);break}if(e.currentToken.is(k.Token.type.propertyBoundary)){e.advance();break}null==n?n=e.advance():a=e.advance()}if(void 0===t||void 0===o)return null;let l,c="";n&&(l=e.trimRange(e.getRange(n,a)),c=e.cssText.slice(l.start,l.end));const s=e.currentToken?e.currentToken.previous.end:e.cssText.length;return this.nodeFactory.atRule(t,c,r,o,l,{start:i,end:s})}parseRulelist(e){const t=[],o=e.currentToken.start;let r;for(e.advance();e.currentToken;){if(e.currentToken.is(k.Token.type.closeBrace)){r=e.currentToken,e.advance();break}{const o=this.parseRule(e);o&&t.push(o)}}const n=r?r.end:e.cssText.length;return this.nodeFactory.rulelist(t,{start:o,end:n})}parseDeclarationOrRuleset(e){let t=null,o=null,r=null;for(;e.currentToken;)if(e.currentToken.is(k.Token.type.whitespace))e.advance();else if(e.currentToken.is(k.Token.type.openParenthesis))for(;e.currentToken&&!e.currentToken.is(k.Token.type.closeParenthesis);)e.advance();else{if(e.currentToken.is(k.Token.type.openBrace)||e.currentToken.is(k.Token.type.propertyBoundary))break;e.currentToken.is(k.Token.type.colon)&&(r=e.currentToken),null===t?(t=e.advance(),o=t):o=e.advance()}if(null===e.currentToken)return null;if(e.currentToken.is(k.Token.type.propertyBoundary)){const n=e.getRange(t,r?r.previous:o),a=e.cssText.slice(n.start,n.end);let i;if(r&&r.next){const t=e.getRange(r.next,o),n=e.trimRange(t),a=e.cssText.slice(n.start,n.end);i=this.nodeFactory.expression(a,n)}e.currentToken.is(k.Token.type.semicolon)&&e.advance();const l=e.trimRange(e.getRange(t,e.currentToken&&e.currentToken.previous||o));return this.nodeFactory.declaration(a,i,n,l)}if(r&&r===o){const r=this.parseRulelist(e);e.currentToken.is(k.Token.type.semicolon)&&e.advance();const n=e.getRange(t,o.previous),a=e.cssText.slice(n.start,n.end),i=e.trimRange(e.getRange(t,e.currentToken&&e.currentToken.previous||o));return this.nodeFactory.declaration(a,r,n,i)}{const r=e.getRange(t,o),n=e.cssText.slice(r.start,r.end),a=this.parseRulelist(e),i=t.start;let l;return l=e.currentToken?e.currentToken.previous?e.currentToken.previous.end:t.end:e.cssText.length,this.nodeFactory.ruleset(n,a,r,{start:i,end:l})}}};var F={};
/**
* @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
*/Object.defineProperty(F,"__esModule",{value:!0});const I=d,P=v;class j extends P.NodeVisitor{stringify(e){return this.visit(e)||""}[I.nodeType.stylesheet](e){let t="";for(let o=0;o<e.rules.length;++o)t+=this.visit(e.rules[o]);return t}[I.nodeType.atRule](e){return`@${e.name}`+(e.parameters?` ${e.parameters}`:"")+(e.rulelist?`${this.visit(e.rulelist)}`:";")}[I.nodeType.rulelist](e){let t="{";for(let o=0;o<e.rules.length;++o)t+=this.visit(e.rules[o]);return t+"}"}[I.nodeType.comment](e){return`${e.value}`}[I.nodeType.ruleset](e){return`${e.selector}${this.visit(e.rulelist)}`}[I.nodeType.declaration](e){return null!=e.value?`${e.name}:${this.visit(e.value)};`:`${e.name};`}[I.nodeType.expression](e){return`${e.text}`}[I.nodeType.discarded](e){return""}}F.Stringifier=j,
/**
* @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
*/
Object.defineProperty(u,"__esModule",{value:!0});var T=p;u.iterateOverAst=T.iterateOverAst;var R=d;u.nodeType=R.nodeType;var $=b;u.NodeFactory=$.NodeFactory;var A=v;u.NodeVisitor=A.NodeVisitor;var C=h,E=u.Parser=C.Parser,D=F,V=u.Stringifier=D.Stringifier,B=g;u.Token=B.Token;var q=_;u.Tokenizer=q.Tokenizer;var z={},L=function(){z={}},M=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(),"")}},W=function(e){return e},H=function(e){return e&&"[object Function]"==={}.toString.call(e)},N=function(e){var t=e.variableDescriptor,o=e.value;return{type:"declaration",name:t.variableName,value:{type:"expression",text:o}}},U=function(e,t){return e.selector&&e.selector.desktop?e.selector[t]:e.selector||":root"},K=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=(e=i({variableDescriptorsWithValue:[],ast:{},device:"desktop"},e)).ast,o=e.variableDescriptorsWithValue.flatMap((function(e){return e.variableDescriptor.dropSelectors||[]}));if(o.length>0&&Array.isArray(t.rules)){var r=new Set(t.rules.map((function(e){return e.selector})));t=i(i({},t),{},{rules:t.rules.filter((function(e){var t=r.has(e.selector),n="string"==typeof e.selector&&o.some((function(t){return e.selector.includes(t)}));return!(t&&n)}))})}if(0===e.variableDescriptorsWithValue.length)return t;var n,a,s=(n=e.variableDescriptorsWithValue,a=function(t){var o=t.variableDescriptor;return U(o,e.device)},n.reduce((function(e,t,o){var r;return(e[r=a(t,o,n)]||(e[r]=[])).push(t),e}),{})),u=[],p={};if(p=i(i({},t),{},{rules:t.rules.map((function(e){if(!e.selector||!s[e.selector])return e;u.push(e.selector);var t=s[e.selector],o=[],r=t.filter((function(e){return!e.value.includes("CT_CSS_SKIP_RULE")})).reduce((function(e,t){return i(i({},e),{},l({},t.variableDescriptor.variableName,t))}),{}),n=t.filter((function(e){return e.value.includes("CT_CSS_SKIP_RULE")})).reduce((function(e,t){return i(i({},e),{},l({},t.variableDescriptor.variableName,t))}),{}),a=e.rulelist.rules.filter((function(e){var t=e.type,o=e.name;return"declaration"!==t||!n[o]})).map((function(e){return"declaration"===e.type&&r[e.name]?(o.push(e.name),i(i({},e),{},{value:i(i({},e.value),{},{text:r[e.name].value})})):e}));return o.length!==Object.values(r).length&&(a=[].concat(c(a),c(Object.values(r).filter((function(e){var t=e.variableDescriptor;return!o.includes(t.variableName)})).map((function(e){return N(e)}))))),i(i({},e),{},{rulelist:i(i({},e.rulelist),{},{rules:a})})}))}),u.length!==Object.keys(s).length){var d=Object.values(s).filter((function(t){return!u.includes(U(t[0].variableDescriptor,e.device))&&!!t.find((function(e){return!e.value.includes("CT_CSS_SKIP_RULE")}))}));p=i(i({},p),{},{rules:[].concat(c(p.rules),c(d.map((function(t){return{type:"ruleset",selector:U(t[0].variableDescriptor,e.device),rulelist:{type:"rulelist",rules:t.filter((function(e){return!e.value.includes("CT_CSS_SKIP_RULE")})).map(N)}}}))))})}return p},G=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=(e=i({variableDescriptor:{},value:{},device:"desktop"},e)).value;(e.variableDescriptor.type||"").indexOf("color")>-1&&"CT_CSS_SKIP_RULE"!==e.value&&(t=e.value["color"===e.variableDescriptor.type?"default":e.variableDescriptor.type.split(":")[1]].color),"border"===(e.variableDescriptor.type||"")&&(t=e.value&&"none"!==e.value.style?"".concat(e.value.width,"px ").concat(e.value.style," ").concat(e.value.color.color):"none",e.variableDescriptor.skip_none&&"none"===t&&(t="CT_CSS_SKIP_RULE")),"spacing"===(e.variableDescriptor.type||"")&&(t=function(e,t,o){if("CT_CSS_SKIP_RULE"===e)return"CT_CSS_SKIP_RULE";e.values||(e={values:[M(e.top),M(e.right),M(e.bottom),M(e.left)],custom:"",state:e.linked?1:2});var r=t.transformSpacingValue||W;if(3===e.state)return e.custom.trim()?r(e.custom.trim(),[e.custom.trim()],o):"CT_CSS_SKIP_RULE";var n=0;Object.keys(t).includes("emptyValue")&&(n=t.emptyValue);var a=e.values.map((function(t){return""===t.value||"auto"===t.value?i(i({},t),{},{value:1===e.stat