@everymatrix/general-footer-template 1.54.8 → 1.54.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/custom-content-section.cjs.entry.js +3 -1
- package/dist/esm/custom-content-section.entry.js +3 -1
- package/dist/general-footer-template/general-footer-template.esm.js +1 -1
- package/dist/general-footer-template/{p-0fde5467.entry.js → p-672590ed.entry.js} +1 -1
- package/package.json +1 -1
|
@@ -7629,6 +7629,8 @@ class Parser$1 {
|
|
|
7629
7629
|
if (prev && prev.type === 'rule' && !prev.raws.ownSemicolon) {
|
|
7630
7630
|
prev.raws.ownSemicolon = this.spaces;
|
|
7631
7631
|
this.spaces = '';
|
|
7632
|
+
prev.source.end = this.getPosition(token[2]);
|
|
7633
|
+
prev.source.end.offset += prev.raws.ownSemicolon.length;
|
|
7632
7634
|
}
|
|
7633
7635
|
}
|
|
7634
7636
|
}
|
|
@@ -8639,7 +8641,7 @@ let Root$1 = root;
|
|
|
8639
8641
|
|
|
8640
8642
|
class Processor$1 {
|
|
8641
8643
|
constructor(plugins = []) {
|
|
8642
|
-
this.version = '8.5.
|
|
8644
|
+
this.version = '8.5.2';
|
|
8643
8645
|
this.plugins = this.normalize(plugins);
|
|
8644
8646
|
}
|
|
8645
8647
|
|
|
@@ -7625,6 +7625,8 @@ class Parser$1 {
|
|
|
7625
7625
|
if (prev && prev.type === 'rule' && !prev.raws.ownSemicolon) {
|
|
7626
7626
|
prev.raws.ownSemicolon = this.spaces;
|
|
7627
7627
|
this.spaces = '';
|
|
7628
|
+
prev.source.end = this.getPosition(token[2]);
|
|
7629
|
+
prev.source.end.offset += prev.raws.ownSemicolon.length;
|
|
7628
7630
|
}
|
|
7629
7631
|
}
|
|
7630
7632
|
}
|
|
@@ -8635,7 +8637,7 @@ let Root$1 = root;
|
|
|
8635
8637
|
|
|
8636
8638
|
class Processor$1 {
|
|
8637
8639
|
constructor(plugins = []) {
|
|
8638
|
-
this.version = '8.5.
|
|
8640
|
+
this.version = '8.5.2';
|
|
8639
8641
|
this.plugins = this.normalize(plugins);
|
|
8640
8642
|
}
|
|
8641
8643
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as e,b as t}from"./p-20fa1d8c.js";export{s as setNonce}from"./p-20fa1d8c.js";import{g as n}from"./p-e1255160.js";(()=>{const t=import.meta.url,n={};return""!==t&&(n.resourcesUrl=new URL(".",t).href),e(n)})().then((async e=>(await n(),t([["p-
|
|
1
|
+
import{p as e,b as t}from"./p-20fa1d8c.js";export{s as setNonce}from"./p-20fa1d8c.js";import{g as n}from"./p-e1255160.js";(()=>{const t=import.meta.url,n={};return""!==t&&(n.resourcesUrl=new URL(".",t).href),e(n)})().then((async e=>(await n(),t([["p-672590ed",[[2,"custom-content-section",{customContent:[1,"custom-content"],repeaterContent:[8,"repeater-content"],navigateViaEvent:[516,"navigate-via-event"],postMessageEvent:[513,"post-message-event"]}]]],["p-51599838",[[2,"custom-clock",{clockFormat:[513,"clock-format"],timeZone:[513,"time-zone"],translationUrl:[513,"translation-url"],language:[513],timeString:[32]},null,{translationUrl:["handleNewTranslations"]}]]],["p-13c6683d",[[1,"general-footer-template",{language:[513],sections:[513],endpoint:[513],env:[513],userRoles:[513,"user-roles"],userid:[513],session:[513],baseUrl:[513,"base-url"],navigateViaEvent:[513,"navigate-via-event"],postMessageEvent:[513,"post-message-event"],clientStyling:[513,"client-styling"],clientStylingUrl:[513,"client-styling-url"],translationUrl:[513,"translation-url"],clockFormat:[513,"clock-format"],timeZone:[513,"time-zone"],hasErrors:[32],stylingAppends:[32]}]]],["p-92659708",[[0,"link-section-list",{repeaterContent:[8,"repeater-content"],baseUrl:[513,"base-url"],language:[513],navigateViaEvent:[4,"navigate-via-event"],postMessageEvent:[513,"post-message-event"]}]]],["p-93330bf9",[[2,"image-list",{repeaterContent:[8,"repeater-content"],navigateViaEvent:[4,"navigate-via-event"],postMessageEvent:[513,"post-message-event"]}]]]],e))));
|
|
@@ -5,4 +5,4 @@ import{r as t,h as e}from"./p-20fa1d8c.js";import{c as i,g as r}from"./p-cb65c22
|
|
|
5
5
|
* Copyright (c) 2014-2017, Jon Schlinkert.
|
|
6
6
|
* Released under the MIT License.
|
|
7
7
|
*/
|
|
8
|
-
function Zt(t){return"[object Object]"===Object.prototype.toString.call(t)}const Qt=r(Object.freeze({__proto__:null,isPlainObject:function(t){var e,i;return!1!==Zt(t)&&(void 0===(e=t.constructor)||!1!==Zt(i=e.prototype)&&!1!==i.hasOwnProperty("isPrototypeOf"))}}));var Jt=function(t){return function(t){return!!t&&"object"==typeof t}(t)&&!function(t){var e=Object.prototype.toString.call(t);return"[object RegExp]"===e||"[object Date]"===e||function(t){return t.$$typeof===Yt}(t)}(t)},Yt="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function Xt(t,e){return!1!==e.clone&&e.isMergeableObject(t)?ie(Array.isArray(t)?[]:{},t,e):t}function Kt(t,e,i){return t.concat(e).map((function(t){return Xt(t,i)}))}function te(t){return Object.keys(t).concat(function(t){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter((function(e){return Object.propertyIsEnumerable.call(t,e)})):[]}(t))}function ee(t,e){try{return e in t}catch(t){return!1}}function ie(t,e,i){(i=i||{}).arrayMerge=i.arrayMerge||Kt,i.isMergeableObject=i.isMergeableObject||Jt,i.cloneUnlessOtherwiseSpecified=Xt;var r=Array.isArray(e);return r===Array.isArray(t)?r?i.arrayMerge(t,e,i):function(t,e,i){var r={};return i.isMergeableObject(t)&&te(t).forEach((function(e){r[e]=Xt(t[e],i)})),te(e).forEach((function(s){(function(t,e){return ee(t,e)&&!(Object.hasOwnProperty.call(t,e)&&Object.propertyIsEnumerable.call(t,e))})(t,s)||(r[s]=ee(t,s)&&i.isMergeableObject(e[s])?function(t,e){if(!e.customMerge)return ie;var i=e.customMerge(t);return"function"==typeof i?i:ie}(s,i)(t[s],e[s],i):Xt(e[s],i))})),r}(t,e,i):Xt(e,i)}ie.all=function(t,e){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce((function(t,i){return ie(t,i,e)}),{})};var re,se=ie,ne={exports:{}};re=ne,function(t,e){re.exports?re.exports=e():t.parseSrcset=e()}(i,(function(){return function(t){function e(t){return" "===t||"\t"===t||"\n"===t||"\f"===t||"\r"===t}function i(e){var i,r=e.exec(t.substring(m));if(r)return m+=(i=r[0]).length,i}for(var r,s,n,o,h,a=t.length,l=/^[ \t\n\r\u000c]+/,c=/^[, \t\n\r\u000c]+/,u=/^[^ \t\n\r\u000c]+/,f=/[,]+$/,d=/^\d+$/,p=/^-?(?:[0-9]+|[0-9]*\.[0-9]+)(?:[eE][+-]?[0-9]+)?$/,m=0,g=[];;){if(i(c),m>=a)return g;r=i(u),s=[],","===r.slice(-1)?(r=r.replace(f,""),w()):b()}function b(){for(i(l),n="",o="in descriptor";;){if(h=t.charAt(m),"in descriptor"===o)if(e(h))n&&(s.push(n),n="",o="after descriptor");else{if(","===h)return m+=1,n&&s.push(n),void w();if("("===h)n+=h,o="in parens";else{if(""===h)return n&&s.push(n),void w();n+=h}}else if("in parens"===o)if(")"===h)n+=h,o="in descriptor";else{if(""===h)return s.push(n),void w();n+=h}else if("after descriptor"===o)if(e(h));else{if(""===h)return void w();o="in descriptor",m-=1}m+=1}}function w(){var e,i,n,o,h,a,l,c,u,f=!1,m={};for(o=0;o<s.length;o++)a=(h=s[o])[h.length-1],l=h.substring(0,h.length-1),c=parseInt(l,10),u=parseFloat(l),d.test(l)&&"w"===a?((e||i)&&(f=!0),0===c?f=!0:e=c):p.test(l)&&"x"===a?((e||i||n)&&(f=!0),u<0?f=!0:i=u):d.test(l)&&"h"===a?((n||i)&&(f=!0),0===c?f=!0:n=c):f=!0;f?console&&console.log&&console.log("Invalid srcset descriptor found in '"+t+"' at '"+h+"'."):(m.url=r,e&&(m.w=e),i&&(m.d=i),n&&(m.h=n),g.push(m))}}}));var oe={exports:{}},he=String,ae=function(){return{isColorSupported:!1,reset:he,bold:he,dim:he,italic:he,underline:he,inverse:he,hidden:he,strikethrough:he,black:he,red:he,green:he,yellow:he,blue:he,magenta:he,cyan:he,white:he,gray:he,bgBlack:he,bgRed:he,bgGreen:he,bgYellow:he,bgBlue:he,bgMagenta:he,bgCyan:he,bgWhite:he,blackBright:he,redBright:he,greenBright:he,yellowBright:he,blueBright:he,magentaBright:he,cyanBright:he,whiteBright:he,bgBlackBright:he,bgRedBright:he,bgGreenBright:he,bgYellowBright:he,bgBlueBright:he,bgMagentaBright:he,bgCyanBright:he,bgWhiteBright:he}};oe.exports=ae(),oe.exports.createColors=ae;const le=r(Object.freeze({__proto__:null,default:{}}));let ce=oe.exports,ue=le;class fe extends Error{constructor(t,e,i,r,s,n){super(t),this.name="CssSyntaxError",this.reason=t,s&&(this.file=s),r&&(this.source=r),n&&(this.plugin=n),void 0!==e&&void 0!==i&&("number"==typeof e?(this.line=e,this.column=i):(this.line=e.line,this.column=e.column,this.endLine=i.line,this.endColumn=i.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,fe)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",void 0!==this.line&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(t){if(!this.source)return"";let e=this.source;null==t&&(t=ce.isColorSupported);let i=t=>t,r=t=>t,s=t=>t;if(t){let{bold:t,gray:e,red:n}=ce.createColors(!0);r=e=>t(n(e)),i=t=>e(t),ue&&(s=t=>ue(t))}let n=e.split(/\r?\n/),o=Math.max(this.line-3,0),h=Math.min(this.line+2,n.length),a=String(h).length;return n.slice(o,h).map(((t,e)=>{let n=o+1+e,h=" "+(" "+n).slice(-a)+" | ";if(n===this.line){if(t.length>160){let e=20,n=Math.max(0,this.column-e),o=Math.max(this.column+e,this.endColumn+e),a=t.slice(n,o),l=i(h.replace(/\d/g," "))+t.slice(0,Math.min(this.column-1,e-1)).replace(/[^\t]/g," ");return r(">")+i(h)+s(a)+"\n "+l+r("^")}let e=i(h.replace(/\d/g," "))+t.slice(0,this.column-1).replace(/[^\t]/g," ");return r(">")+i(h)+s(t)+"\n "+e+r("^")}return" "+i(h)+s(t)})).join("\n")}toString(){let t=this.showSourceCode();return t&&(t="\n\n"+t+"\n"),this.name+": "+this.message+t}}var de=fe;fe.default=fe;const pe={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};class me{constructor(t){this.builder=t}atrule(t,e){let i="@"+t.name,r=t.params?this.rawValue(t,"params"):"";void 0!==t.raws.afterName?i+=t.raws.afterName:r&&(i+=" "),t.nodes?this.block(t,i+r):this.builder(i+r+((t.raws.between||"")+(e?";":"")),t)}beforeAfter(t,e){let i;i=this.raw(t,null,"decl"===t.type?"beforeDecl":"comment"===t.type?"beforeComment":"before"===e?"beforeRule":"beforeClose");let r=t.parent,s=0;for(;r&&"root"!==r.type;)s+=1,r=r.parent;if(i.includes("\n")){let e=this.raw(t,null,"indent");if(e.length)for(let t=0;t<s;t++)i+=e}return i}block(t,e){let i,r=this.raw(t,"between","beforeOpen");this.builder(e+r+"{",t,"start"),t.nodes&&t.nodes.length?(this.body(t),i=this.raw(t,"after")):i=this.raw(t,"after","emptyBody"),i&&this.builder(i),this.builder("}",t,"end")}body(t){let e=t.nodes.length-1;for(;e>0&&"comment"===t.nodes[e].type;)e-=1;let i=this.raw(t,"semicolon");for(let r=0;r<t.nodes.length;r++){let s=t.nodes[r],n=this.raw(s,"before");n&&this.builder(n),this.stringify(s,e!==r||i)}}comment(t){let e=this.raw(t,"left","commentLeft"),i=this.raw(t,"right","commentRight");this.builder("/*"+e+t.text+i+"*/",t)}decl(t,e){let i=this.raw(t,"between","colon"),r=t.prop+i+this.rawValue(t,"value");t.important&&(r+=t.raws.important||" !important"),e&&(r+=";"),this.builder(r,t)}document(t){this.body(t)}raw(t,e,i){let r;if(i||(i=e),e&&(r=t.raws[e],void 0!==r))return r;let s=t.parent;if("before"===i){if(!s||"root"===s.type&&s.first===t)return"";if(s&&"document"===s.type)return""}if(!s)return pe[i];let n=t.root();if(n.rawCache||(n.rawCache={}),void 0!==n.rawCache[i])return n.rawCache[i];if("before"===i||"after"===i)return this.beforeAfter(t,i);{let s="raw"+((o=i)[0].toUpperCase()+o.slice(1));this[s]?r=this[s](n,t):n.walk((t=>{if(r=t.raws[e],void 0!==r)return!1}))}var o;return void 0===r&&(r=pe[i]),n.rawCache[i]=r,r}rawBeforeClose(t){let e;return t.walk((t=>{if(t.nodes&&t.nodes.length>0&&void 0!==t.raws.after)return e=t.raws.after,e.includes("\n")&&(e=e.replace(/[^\n]+$/,"")),!1})),e&&(e=e.replace(/\S/g,"")),e}rawBeforeComment(t,e){let i;return t.walkComments((t=>{if(void 0!==t.raws.before)return i=t.raws.before,i.includes("\n")&&(i=i.replace(/[^\n]+$/,"")),!1})),void 0===i?i=this.raw(e,null,"beforeDecl"):i&&(i=i.replace(/\S/g,"")),i}rawBeforeDecl(t,e){let i;return t.walkDecls((t=>{if(void 0!==t.raws.before)return i=t.raws.before,i.includes("\n")&&(i=i.replace(/[^\n]+$/,"")),!1})),void 0===i?i=this.raw(e,null,"beforeRule"):i&&(i=i.replace(/\S/g,"")),i}rawBeforeOpen(t){let e;return t.walk((t=>{if("decl"!==t.type&&(e=t.raws.between,void 0!==e))return!1})),e}rawBeforeRule(t){let e;return t.walk((i=>{if(i.nodes&&(i.parent!==t||t.first!==i)&&void 0!==i.raws.before)return e=i.raws.before,e.includes("\n")&&(e=e.replace(/[^\n]+$/,"")),!1})),e&&(e=e.replace(/\S/g,"")),e}rawColon(t){let e;return t.walkDecls((t=>{if(void 0!==t.raws.between)return e=t.raws.between.replace(/[^\s:]/g,""),!1})),e}rawEmptyBody(t){let e;return t.walk((t=>{if(t.nodes&&0===t.nodes.length&&(e=t.raws.after,void 0!==e))return!1})),e}rawIndent(t){if(t.raws.indent)return t.raws.indent;let e;return t.walk((i=>{let r=i.parent;if(r&&r!==t&&r.parent&&r.parent===t&&void 0!==i.raws.before){let t=i.raws.before.split("\n");return e=t[t.length-1],e=e.replace(/\S/g,""),!1}})),e}rawSemicolon(t){let e;return t.walk((t=>{if(t.nodes&&t.nodes.length&&"decl"===t.last.type&&(e=t.raws.semicolon,void 0!==e))return!1})),e}rawValue(t,e){let i=t[e],r=t.raws[e];return r&&r.value===i?r.raw:i}root(t){this.body(t),t.raws.after&&this.builder(t.raws.after)}rule(t){this.block(t,this.rawValue(t,"selector")),t.raws.ownSemicolon&&this.builder(t.raws.ownSemicolon,t,"end")}stringify(t,e){if(!this[t.type])throw new Error("Unknown AST node type "+t.type+". Maybe you need to change PostCSS stringifier.");this[t.type](t,e)}}var ge=me;me.default=me;let be=ge;function we(t,e){new be(e).stringify(t)}var ve=we;we.default=we;var ye={};ye.isClean=Symbol("isClean"),ye.my=Symbol("my");let ke=de,Ee=ge,Se=ve,{isClean:Ae,my:xe}=ye;function qe(t,e){let i=new t.constructor;for(let r in t){if(!Object.prototype.hasOwnProperty.call(t,r))continue;if("proxyCache"===r)continue;let s=t[r],n=typeof s;"parent"===r&&"object"===n?e&&(i[r]=e):"source"===r?i[r]=s:Array.isArray(s)?i[r]=s.map((t=>qe(t,i))):("object"===n&&null!==s&&(s=qe(s)),i[r]=s)}return i}function Ce(t,e){if(e&&void 0!==e.offset)return e.offset;let i=1,r=1,s=0;for(let n=0;n<t.length;n++){if(r===e.line&&i===e.column){s=n;break}"\n"===t[n]?(i=1,r+=1):i+=1}return s}class Te{constructor(t={}){this.raws={},this[Ae]=!1,this[xe]=!0;for(let e in t)if("nodes"===e){this.nodes=[];for(let i of t[e])this.append("function"==typeof i.clone?i.clone():i)}else this[e]=t[e]}addToError(t){if(t.postcssNode=this,t.stack&&this.source&&/\n\s{4}at /.test(t.stack)){let e=this.source;t.stack=t.stack.replace(/\n\s{4}at /,`$&${e.input.from}:${e.start.line}:${e.start.column}$&`)}return t}after(t){return this.parent.insertAfter(this,t),this}assign(t={}){for(let e in t)this[e]=t[e];return this}before(t){return this.parent.insertBefore(this,t),this}cleanRaws(t){delete this.raws.before,delete this.raws.after,t||delete this.raws.between}clone(t={}){let e=qe(this);for(let i in t)e[i]=t[i];return e}cloneAfter(t={}){let e=this.clone(t);return this.parent.insertAfter(this,e),e}cloneBefore(t={}){let e=this.clone(t);return this.parent.insertBefore(this,e),e}error(t,e={}){if(this.source){let{end:i,start:r}=this.rangeBy(e);return this.source.input.error(t,{column:r.column,line:r.line},{column:i.column,line:i.line},e)}return new ke(t)}getProxyProcessor(){return{get:(t,e)=>"proxyOf"===e?t:"root"===e?()=>t.root().toProxy():t[e],set:(t,e,i)=>(t[e]===i||(t[e]=i,"prop"!==e&&"value"!==e&&"name"!==e&&"params"!==e&&"important"!==e&&"text"!==e||t.markDirty()),!0)}}markClean(){this[Ae]=!0}markDirty(){if(this[Ae]){this[Ae]=!1;let t=this;for(;t=t.parent;)t[Ae]=!1}}next(){if(!this.parent)return;let t=this.parent.index(this);return this.parent.nodes[t+1]}positionBy(t){let e=this.source.start;if(t.index)e=this.positionInside(t.index);else if(t.word){let i="document"in this.source.input?this.source.input.document:this.source.input.css,r=i.slice(Ce(i,this.source.start),Ce(i,this.source.end)).indexOf(t.word);-1!==r&&(e=this.positionInside(r))}return e}positionInside(t){let e=this.source.start.column,i=this.source.start.line,r="document"in this.source.input?this.source.input.document:this.source.input.css,s=Ce(r,this.source.start),n=s+t;for(let t=s;t<n;t++)"\n"===r[t]?(e=1,i+=1):e+=1;return{column:e,line:i}}prev(){if(!this.parent)return;let t=this.parent.index(this);return this.parent.nodes[t-1]}rangeBy(t){let e={column:this.source.start.column,line:this.source.start.line},i=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:e.column+1,line:e.line};if(t.word){let r="document"in this.source.input?this.source.input.document:this.source.input.css,s=r.slice(Ce(r,this.source.start),Ce(r,this.source.end)).indexOf(t.word);-1!==s&&(e=this.positionInside(s),i=this.positionInside(s+t.word.length))}else t.start?e={column:t.start.column,line:t.start.line}:t.index&&(e=this.positionInside(t.index)),t.end?i={column:t.end.column,line:t.end.line}:"number"==typeof t.endIndex?i=this.positionInside(t.endIndex):t.index&&(i=this.positionInside(t.index+1));return(i.line<e.line||i.line===e.line&&i.column<=e.column)&&(i={column:e.column+1,line:e.line}),{end:i,start:e}}raw(t,e){return(new Ee).raw(this,t,e)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...t){if(this.parent){let e=this,i=!1;for(let r of t)r===this?i=!0:i?(this.parent.insertAfter(e,r),e=r):this.parent.insertBefore(e,r);i||this.remove()}return this}root(){let t=this;for(;t.parent&&"document"!==t.parent.type;)t=t.parent;return t}toJSON(t,e){let i={},r=null==e;e=e||new Map;let s=0;for(let t in this){if(!Object.prototype.hasOwnProperty.call(this,t))continue;if("parent"===t||"proxyCache"===t)continue;let r=this[t];if(Array.isArray(r))i[t]=r.map((t=>"object"==typeof t&&t.toJSON?t.toJSON(null,e):t));else if("object"==typeof r&&r.toJSON)i[t]=r.toJSON(null,e);else if("source"===t){let n=e.get(r.input);null==n&&(n=s,e.set(r.input,s),s++),i[t]={end:r.end,inputId:n,start:r.start}}else i[t]=r}return r&&(i.inputs=[...e.keys()].map((t=>t.toJSON()))),i}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(t=Se){t.stringify&&(t=t.stringify);let e="";return t(this,(t=>{e+=t})),e}warn(t,e,i){let r={node:this};for(let t in i)r[t]=i[t];return t.warn(e,r)}get proxyOf(){return this}}var Be=Te;Te.default=Te;let De=Be;class Oe extends De{constructor(t){super(t),this.type="comment"}}var Re=Oe;Oe.default=Oe;let je=Be;class Me extends je{constructor(t){t&&void 0!==t.value&&"string"!=typeof t.value&&(t={...t,value:String(t.value)}),super(t),this.type="decl"}get variable(){return this.prop.startsWith("--")||"$"===this.prop[0]}}var Ie=Me;Me.default=Me;let Le,Ne,Ue,Pe,_e=Re,$e=Ie,Fe=Be,{isClean:Ve,my:He}=ye;function Ge(t){return t.map((t=>(t.nodes&&(t.nodes=Ge(t.nodes)),delete t.source,t)))}function ze(t){if(t[Ve]=!1,t.proxyOf.nodes)for(let e of t.proxyOf.nodes)ze(e)}class We extends Fe{append(...t){for(let e of t){let t=this.normalize(e,this.last);for(let e of t)this.proxyOf.nodes.push(e)}return this.markDirty(),this}cleanRaws(t){if(super.cleanRaws(t),this.nodes)for(let e of this.nodes)e.cleanRaws(t)}each(t){if(!this.proxyOf.nodes)return;let e,i,r=this.getIterator();for(;this.indexes[r]<this.proxyOf.nodes.length&&(e=this.indexes[r],i=t(this.proxyOf.nodes[e],e),!1!==i);)this.indexes[r]+=1;return delete this.indexes[r],i}every(t){return this.nodes.every(t)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let t=this.lastEach;return this.indexes[t]=0,t}getProxyProcessor(){return{get:(t,e)=>"proxyOf"===e?t:t[e]?"each"===e||"string"==typeof e&&e.startsWith("walk")?(...i)=>t[e](...i.map((t=>"function"==typeof t?(e,i)=>t(e.toProxy(),i):t))):"every"===e||"some"===e?i=>t[e](((t,...e)=>i(t.toProxy(),...e))):"root"===e?()=>t.root().toProxy():"nodes"===e?t.nodes.map((t=>t.toProxy())):"first"===e||"last"===e?t[e].toProxy():t[e]:t[e],set:(t,e,i)=>(t[e]===i||(t[e]=i,"name"!==e&&"params"!==e&&"selector"!==e||t.markDirty()),!0)}}index(t){return"number"==typeof t?t:(t.proxyOf&&(t=t.proxyOf),this.proxyOf.nodes.indexOf(t))}insertAfter(t,e){let i,r=this.index(t),s=this.normalize(e,this.proxyOf.nodes[r]).reverse();r=this.index(t);for(let t of s)this.proxyOf.nodes.splice(r+1,0,t);for(let t in this.indexes)i=this.indexes[t],r<i&&(this.indexes[t]=i+s.length);return this.markDirty(),this}insertBefore(t,e){let i,r=this.index(t),s=this.normalize(e,this.proxyOf.nodes[r],0===r&&"prepend").reverse();r=this.index(t);for(let t of s)this.proxyOf.nodes.splice(r,0,t);for(let t in this.indexes)i=this.indexes[t],r<=i&&(this.indexes[t]=i+s.length);return this.markDirty(),this}normalize(t,e){if("string"==typeof t)t=Ge(Ne(t).nodes);else if(void 0===t)t=[];else if(Array.isArray(t)){t=t.slice(0);for(let e of t)e.parent&&e.parent.removeChild(e,"ignore")}else if("root"===t.type&&"document"!==this.type){t=t.nodes.slice(0);for(let e of t)e.parent&&e.parent.removeChild(e,"ignore")}else if(t.type)t=[t];else if(t.prop){if(void 0===t.value)throw new Error("Value field is missed in node creation");"string"!=typeof t.value&&(t.value=String(t.value)),t=[new $e(t)]}else if(t.selector||t.selectors)t=[new Pe(t)];else if(t.name)t=[new Le(t)];else{if(!t.text)throw new Error("Unknown node type in node creation");t=[new _e(t)]}return t.map((t=>(t[He]||We.rebuild(t),(t=t.proxyOf).parent&&t.parent.removeChild(t),t[Ve]&&ze(t),t.raws||(t.raws={}),void 0===t.raws.before&&e&&void 0!==e.raws.before&&(t.raws.before=e.raws.before.replace(/\S/g,"")),t.parent=this.proxyOf,t)))}prepend(...t){t=t.reverse();for(let e of t){let t=this.normalize(e,this.first,"prepend").reverse();for(let e of t)this.proxyOf.nodes.unshift(e);for(let e in this.indexes)this.indexes[e]=this.indexes[e]+t.length}return this.markDirty(),this}push(t){return t.parent=this,this.proxyOf.nodes.push(t),this}removeAll(){for(let t of this.proxyOf.nodes)t.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(t){let e;t=this.index(t),this.proxyOf.nodes[t].parent=void 0,this.proxyOf.nodes.splice(t,1);for(let i in this.indexes)e=this.indexes[i],e>=t&&(this.indexes[i]=e-1);return this.markDirty(),this}replaceValues(t,e,i){return i||(i=e,e={}),this.walkDecls((r=>{e.props&&!e.props.includes(r.prop)||e.fast&&!r.value.includes(e.fast)||(r.value=r.value.replace(t,i))})),this.markDirty(),this}some(t){return this.nodes.some(t)}walk(t){return this.each(((e,i)=>{let r;try{r=t(e,i)}catch(t){throw e.addToError(t)}return!1!==r&&e.walk&&(r=e.walk(t)),r}))}walkAtRules(t,e){return e?t instanceof RegExp?this.walk(((i,r)=>{if("atrule"===i.type&&t.test(i.name))return e(i,r)})):this.walk(((i,r)=>{if("atrule"===i.type&&i.name===t)return e(i,r)})):(e=t,this.walk(((t,i)=>{if("atrule"===t.type)return e(t,i)})))}walkComments(t){return this.walk(((e,i)=>{if("comment"===e.type)return t(e,i)}))}walkDecls(t,e){return e?t instanceof RegExp?this.walk(((i,r)=>{if("decl"===i.type&&t.test(i.prop))return e(i,r)})):this.walk(((i,r)=>{if("decl"===i.type&&i.prop===t)return e(i,r)})):(e=t,this.walk(((t,i)=>{if("decl"===t.type)return e(t,i)})))}walkRules(t,e){return e?t instanceof RegExp?this.walk(((i,r)=>{if("rule"===i.type&&t.test(i.selector))return e(i,r)})):this.walk(((i,r)=>{if("rule"===i.type&&i.selector===t)return e(i,r)})):(e=t,this.walk(((t,i)=>{if("rule"===t.type)return e(t,i)})))}get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}}We.registerParse=t=>{Ne=t},We.registerRule=t=>{Pe=t},We.registerAtRule=t=>{Le=t},We.registerRoot=t=>{Ue=t};var Ze=We;We.default=We,We.rebuild=t=>{"atrule"===t.type?Object.setPrototypeOf(t,Le.prototype):"rule"===t.type?Object.setPrototypeOf(t,Pe.prototype):"decl"===t.type?Object.setPrototypeOf(t,$e.prototype):"comment"===t.type?Object.setPrototypeOf(t,_e.prototype):"root"===t.type&&Object.setPrototypeOf(t,Ue.prototype),t[He]=!0,t.nodes&&t.nodes.forEach((t=>{We.rebuild(t)}))};let Qe=Ze;class Je extends Qe{constructor(t){super(t),this.type="atrule"}append(...t){return this.proxyOf.nodes||(this.nodes=[]),super.append(...t)}prepend(...t){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...t)}}var Ye=Je;Je.default=Je,Qe.registerAtRule(Je);let Xe,Ke,ti=Ze;class ei extends ti{constructor(t){super({type:"document",...t}),this.nodes||(this.nodes=[])}toResult(t={}){return new Xe(new Ke,this,t).stringify()}}ei.registerLazyResult=t=>{Xe=t},ei.registerProcessor=t=>{Ke=t};var ii=ei;ei.default=ei;const ri=r(Object.freeze({__proto__:null,nanoid:(t=21)=>{let e="",i=0|t;for(;i--;)e+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64*Math.random()|0];return e},customAlphabet:(t,e=21)=>(i=e)=>{let r="",s=0|i;for(;s--;)r+=t[Math.random()*t.length|0];return r}}));let{existsSync:si,readFileSync:ni}=le,{dirname:oi,join:hi}=le,{SourceMapConsumer:ai,SourceMapGenerator:li}=le;class ci{constructor(t,e){if(!1===e.map)return;this.loadAnnotation(t),this.inline=this.startWith(this.annotation,"data:");let i=this.loadMap(e.from,e.map?e.map.prev:void 0);!this.mapFile&&e.from&&(this.mapFile=e.from),this.mapFile&&(this.root=oi(this.mapFile)),i&&(this.text=i)}consumer(){return this.consumerCache||(this.consumerCache=new ai(this.text)),this.consumerCache}decodeInline(t){let e=t.match(/^data:application\/json;charset=utf-?8,/)||t.match(/^data:application\/json,/);if(e)return decodeURIComponent(t.substr(e[0].length));let i=t.match(/^data:application\/json;charset=utf-?8;base64,/)||t.match(/^data:application\/json;base64,/);if(i)return r=t.substr(i[0].length),Buffer?Buffer.from(r,"base64").toString():window.atob(r);var r;let s=t.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+s)}getAnnotationURL(t){return t.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(t){return"object"==typeof t&&("string"==typeof t.mappings||"string"==typeof t._mappings||Array.isArray(t.sections))}loadAnnotation(t){let e=t.match(/\/\*\s*# sourceMappingURL=/g);if(!e)return;let i=t.lastIndexOf(e.pop()),r=t.indexOf("*/",i);i>-1&&r>-1&&(this.annotation=this.getAnnotationURL(t.substring(i,r)))}loadFile(t){if(this.root=oi(t),si(t))return this.mapFile=t,ni(t,"utf-8").toString().trim()}loadMap(t,e){if(!1===e)return!1;if(e){if("string"==typeof e)return e;if("function"!=typeof e){if(e instanceof ai)return li.fromSourceMap(e).toString();if(e instanceof li)return e.toString();if(this.isMap(e))return JSON.stringify(e);throw new Error("Unsupported previous source map format: "+e.toString())}{let i=e(t);if(i){let t=this.loadFile(i);if(!t)throw new Error("Unable to load previous source map: "+i.toString());return t}}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let e=this.annotation;return t&&(e=hi(oi(t),e)),this.loadFile(e)}}}startWith(t,e){return!!t&&t.substr(0,e.length)===e}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}}var ui=ci;ci.default=ci;let{nanoid:fi}=ri,{isAbsolute:di,resolve:pi}=le,{SourceMapConsumer:mi,SourceMapGenerator:gi}=le,{fileURLToPath:bi,pathToFileURL:wi}=le,vi=de,yi=ui,ki=le,Ei=Symbol("fromOffsetCache"),Si=Boolean(mi&&gi),Ai=Boolean(pi&&di);class xi{constructor(t,e={}){if(null==t||"object"==typeof t&&!t.toString)throw new Error(`PostCSS received ${t} instead of CSS string`);if(this.css=t.toString(),"\ufeff"===this.css[0]||""===this.css[0]?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,this.document=this.css,e.document&&(this.document=e.document.toString()),e.from&&(this.file=!Ai||/^\w+:\/\//.test(e.from)||di(e.from)?e.from:pi(e.from)),Ai&&Si){let t=new yi(this.css,e);if(t.text){this.map=t;let e=t.consumer().file;!this.file&&e&&(this.file=this.mapResolve(e))}}this.file||(this.id="<input css "+fi(6)+">"),this.map&&(this.map.file=this.from)}error(t,e,i,r={}){let s,n,o;if(e&&"object"==typeof e){let t=e,r=i;if("number"==typeof t.offset){let r=this.fromOffset(t.offset);e=r.line,i=r.col}else e=t.line,i=t.column;if("number"==typeof r.offset){let t=this.fromOffset(r.offset);n=t.line,s=t.col}else n=r.line,s=r.column}else if(!i){let t=this.fromOffset(e);e=t.line,i=t.col}let h=this.origin(e,i,n,s);return o=h?new vi(t,void 0===h.endLine?h.line:{column:h.column,line:h.line},void 0===h.endLine?h.column:{column:h.endColumn,line:h.endLine},h.source,h.file,r.plugin):new vi(t,void 0===n?e:{column:i,line:e},void 0===n?i:{column:s,line:n},this.css,this.file,r.plugin),o.input={column:i,endColumn:s,endLine:n,line:e,source:this.css},this.file&&(wi&&(o.input.url=wi(this.file).toString()),o.input.file=this.file),o}fromOffset(t){let e,i;if(this[Ei])i=this[Ei];else{let t=this.css.split("\n");i=new Array(t.length);let e=0;for(let r=0,s=t.length;r<s;r++)i[r]=e,e+=t[r].length+1;this[Ei]=i}e=i[i.length-1];let r=0;if(t>=e)r=i.length-1;else{let e,s=i.length-2;for(;r<s;)if(e=r+(s-r>>1),t<i[e])s=e-1;else{if(!(t>=i[e+1])){r=e;break}r=e+1}}return{col:t-i[r]+1,line:r+1}}mapResolve(t){return/^\w+:\/\//.test(t)?t:pi(this.map.consumer().sourceRoot||this.map.root||".",t)}origin(t,e,i,r){if(!this.map)return!1;let s,n,o=this.map.consumer(),h=o.originalPositionFor({column:e,line:t});if(!h.source)return!1;"number"==typeof i&&(s=o.originalPositionFor({column:r,line:i})),n=di(h.source)?wi(h.source):new URL(h.source,this.map.consumer().sourceRoot||wi(this.map.mapFile));let a={column:h.column,endColumn:s&&s.column,endLine:s&&s.line,line:h.line,url:n.toString()};if("file:"===n.protocol){if(!bi)throw new Error("file: protocol is not available in this PostCSS build");a.file=bi(n)}let l=o.sourceContentFor(h.source);return l&&(a.source=l),a}toJSON(){let t={};for(let e of["hasBOM","css","file","id"])null!=this[e]&&(t[e]=this[e]);return this.map&&(t.map={...this.map},t.map.consumerCache&&(t.map.consumerCache=void 0)),t}get from(){return this.file||this.id}}var qi=xi;xi.default=xi,ki&&ki.registerInput&&ki.registerInput(xi);let Ci,Ti,Bi=Ze;class Di extends Bi{constructor(t){super(t),this.type="root",this.nodes||(this.nodes=[])}normalize(t,e,i){let r=super.normalize(t);if(e)if("prepend"===i)this.nodes.length>1?e.raws.before=this.nodes[1].raws.before:delete e.raws.before;else if(this.first!==e)for(let t of r)t.raws.before=e.raws.before;return r}removeChild(t,e){let i=this.index(t);return!e&&0===i&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[i].raws.before),super.removeChild(t)}toResult(t={}){return new Ci(new Ti,this,t).stringify()}}Di.registerLazyResult=t=>{Ci=t},Di.registerProcessor=t=>{Ti=t};var Oi=Di;Di.default=Di,Bi.registerRoot(Di);let Ri={comma:t=>Ri.split(t,[","],!0),space:t=>Ri.split(t,[" ","\n","\t"]),split(t,e,i){let r=[],s="",n=!1,o=0,h=!1,a="",l=!1;for(let i of t)l?l=!1:"\\"===i?l=!0:h?i===a&&(h=!1):'"'===i||"'"===i?(h=!0,a=i):"("===i?o+=1:")"===i?o>0&&(o-=1):0===o&&e.includes(i)&&(n=!0),n?(""!==s&&r.push(s.trim()),s="",n=!1):s+=i;return(i||""!==s)&&r.push(s.trim()),r}};var ji=Ri;Ri.default=Ri;let Mi=Ze,Ii=ji;class Li extends Mi{constructor(t){super(t),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return Ii.comma(this.selector)}set selectors(t){let e=this.selector?this.selector.match(/,\s*/):null,i=e?e[0]:","+this.raw("between","beforeOpen");this.selector=t.join(i)}}var Ni=Li;Li.default=Li,Mi.registerRule(Li);let Ui=Ye,Pi=Re,_i=Ie,$i=qi,Fi=ui,Vi=Oi,Hi=Ni;function Gi(t,e){if(Array.isArray(t))return t.map((t=>Gi(t)));let{inputs:i,...r}=t;if(i){e=[];for(let t of i){let i={...t,__proto__:$i.prototype};i.map&&(i.map={...i.map,__proto__:Fi.prototype}),e.push(i)}}if(r.nodes&&(r.nodes=t.nodes.map((t=>Gi(t,e)))),r.source){let{inputId:t,...i}=r.source;r.source=i,null!=t&&(r.source.input=e[t])}if("root"===r.type)return new Vi(r);if("decl"===r.type)return new _i(r);if("rule"===r.type)return new Hi(r);if("comment"===r.type)return new Pi(r);if("atrule"===r.type)return new Ui(r);throw new Error("Unknown node type: "+t.type)}var zi=Gi;Gi.default=Gi;let{dirname:Wi,relative:Zi,resolve:Qi,sep:Ji}=le,{SourceMapConsumer:Yi,SourceMapGenerator:Xi}=le,{pathToFileURL:Ki}=le,tr=qi,er=Boolean(Yi&&Xi),ir=Boolean(Wi&&Qi&&Zi&&Ji);var rr=class{constructor(t,e,i,r){this.stringify=t,this.mapOpts=i.map||{},this.root=e,this.opts=i,this.css=r,this.originalCSS=r,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let t;t=this.isInline()?"data:application/json;base64,"+this.toBase64(this.map.toString()):"string"==typeof this.mapOpts.annotation?this.mapOpts.annotation:"function"==typeof this.mapOpts.annotation?this.mapOpts.annotation(this.opts.to,this.root):this.outputFile()+".map";let e="\n";this.css.includes("\r\n")&&(e="\r\n"),this.css+=e+"/*# sourceMappingURL="+t+" */"}applyPrevMaps(){for(let t of this.previous()){let e,i=this.toUrl(this.path(t.file)),r=t.root||Wi(t.file);!1===this.mapOpts.sourcesContent?(e=new Yi(t.text),e.sourcesContent&&(e.sourcesContent=null)):e=t.consumer(),this.map.applySourceMap(e,i,this.toUrl(this.path(r)))}}clearAnnotation(){if(!1!==this.mapOpts.annotation)if(this.root){let t;for(let e=this.root.nodes.length-1;e>=0;e--)t=this.root.nodes[e],"comment"===t.type&&t.text.startsWith("# sourceMappingURL=")&&this.root.removeChild(e)}else this.css&&(this.css=this.css.replace(/\n*\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),ir&&er&&this.isMap())return this.generateMap();{let t="";return this.stringify(this.root,(e=>{t+=e})),[t]}}generateMap(){if(this.root)this.generateString();else if(1===this.previous().length){let t=this.previous()[0].consumer();t.file=this.outputFile(),this.map=Xi.fromSourceMap(t,{ignoreInvalidMapping:!0})}else this.map=new Xi({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]}generateString(){this.css="",this.map=new Xi({file:this.outputFile(),ignoreInvalidMapping:!0});let t,e,i=1,r=1,s="<no source>",n={generated:{column:0,line:0},original:{column:0,line:0},source:""};this.stringify(this.root,((o,h,a)=>{if(this.css+=o,h&&"end"!==a&&(n.generated.line=i,n.generated.column=r-1,h.source&&h.source.start?(n.source=this.sourcePath(h),n.original.line=h.source.start.line,n.original.column=h.source.start.column-1,this.map.addMapping(n)):(n.source=s,n.original.line=1,n.original.column=0,this.map.addMapping(n))),e=o.match(/\n/g),e?(i+=e.length,t=o.lastIndexOf("\n"),r=o.length-t):r+=o.length,h&&"start"!==a){let t=h.parent||{raws:{}};("decl"===h.type||"atrule"===h.type&&!h.nodes)&&h===t.last&&!t.raws.semicolon||(h.source&&h.source.end?(n.source=this.sourcePath(h),n.original.line=h.source.end.line,n.original.column=h.source.end.column-1,n.generated.line=i,n.generated.column=r-2,this.map.addMapping(n)):(n.source=s,n.original.line=1,n.original.column=0,n.generated.line=i,n.generated.column=r-1,this.map.addMapping(n)))}}))}isAnnotation(){return!!this.isInline()||(void 0!==this.mapOpts.annotation?this.mapOpts.annotation:!this.previous().length||this.previous().some((t=>t.annotation)))}isInline(){if(void 0!==this.mapOpts.inline)return this.mapOpts.inline;let t=this.mapOpts.annotation;return(void 0===t||!0===t)&&(!this.previous().length||this.previous().some((t=>t.inline)))}isMap(){return void 0!==this.opts.map?!!this.opts.map:this.previous().length>0}isSourcesContent(){return void 0!==this.mapOpts.sourcesContent?this.mapOpts.sourcesContent:!this.previous().length||this.previous().some((t=>t.withContent()))}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(t){if(this.mapOpts.absolute)return t;if(60===t.charCodeAt(0))return t;if(/^\w+:\/\//.test(t))return t;let e=this.memoizedPaths.get(t);if(e)return e;let i=this.opts.to?Wi(this.opts.to):".";"string"==typeof this.mapOpts.annotation&&(i=Wi(Qi(i,this.mapOpts.annotation)));let r=Zi(i,t);return this.memoizedPaths.set(t,r),r}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk((t=>{if(t.source&&t.source.input.map){let e=t.source.input.map;this.previousMaps.includes(e)||this.previousMaps.push(e)}}));else{let t=new tr(this.originalCSS,this.opts);t.map&&this.previousMaps.push(t.map)}return this.previousMaps}setSourcesContent(){let t={};if(this.root)this.root.walk((e=>{if(e.source){let i=e.source.input.from;if(i&&!t[i]){t[i]=!0;let r=this.usesFileUrls?this.toFileUrl(i):this.toUrl(this.path(i));this.map.setSourceContent(r,e.source.input.css)}}}));else if(this.css){let t=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(t,this.css)}}sourcePath(t){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(t.source.input.from):this.toUrl(this.path(t.source.input.from))}toBase64(t){return Buffer?Buffer.from(t).toString("base64"):window.btoa(unescape(encodeURIComponent(t)))}toFileUrl(t){let e=this.memoizedFileURLs.get(t);if(e)return e;if(Ki){let e=Ki(t).toString();return this.memoizedFileURLs.set(t,e),e}throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(t){let e=this.memoizedURLs.get(t);if(e)return e;"\\"===Ji&&(t=t.replace(/\\/g,"/"));let i=encodeURI(t).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(t,i),i}};const sr="'".charCodeAt(0),nr='"'.charCodeAt(0),or="\\".charCodeAt(0),hr="/".charCodeAt(0),ar="\n".charCodeAt(0),lr=" ".charCodeAt(0),cr="\f".charCodeAt(0),ur="\t".charCodeAt(0),fr="\r".charCodeAt(0),dr="[".charCodeAt(0),pr="]".charCodeAt(0),mr="(".charCodeAt(0),gr=")".charCodeAt(0),br="{".charCodeAt(0),wr="}".charCodeAt(0),vr=";".charCodeAt(0),yr="*".charCodeAt(0),kr=":".charCodeAt(0),Er="@".charCodeAt(0),Sr=/[\t\n\f\r "#'()/;[\\\]{}]/g,Ar=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,xr=/.[\r\n"'(/\\]/,qr=/[\da-f]/i;let Cr=Ye,Tr=Re,Br=Ie,Dr=Oi,Or=Ni;const Rr={empty:!0,space:!0};let jr=Ze,Mr=qi,Ir=class{constructor(t){this.input=t,this.root=new Dr,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:t,start:{column:1,line:1,offset:0}}}atrule(t){let e,i,r,s=new Cr;s.name=t[1].slice(1),""===s.name&&this.unnamedAtrule(s,t),this.init(s,t[2]);let n=!1,o=!1,h=[],a=[];for(;!this.tokenizer.endOfFile();){if(e=(t=this.tokenizer.nextToken())[0],"("===e||"["===e?a.push("("===e?")":"]"):"{"===e&&a.length>0?a.push("}"):e===a[a.length-1]&&a.pop(),0===a.length){if(";"===e){s.source.end=this.getPosition(t[2]),s.source.end.offset++,this.semicolon=!0;break}if("{"===e){o=!0;break}if("}"===e){if(h.length>0){for(r=h.length-1,i=h[r];i&&"space"===i[0];)i=h[--r];i&&(s.source.end=this.getPosition(i[3]||i[2]),s.source.end.offset++)}this.end(t);break}h.push(t)}else h.push(t);if(this.tokenizer.endOfFile()){n=!0;break}}s.raws.between=this.spacesAndCommentsFromEnd(h),h.length?(s.raws.afterName=this.spacesAndCommentsFromStart(h),this.raw(s,"params",h),n&&(s.source.end=this.getPosition((t=h[h.length-1])[3]||t[2]),s.source.end.offset++,this.spaces=s.raws.between,s.raws.between="")):(s.raws.afterName="",s.params=""),o&&(s.nodes=[],this.current=s)}checkMissedSemicolon(t){let e=this.colon(t);if(!1===e)return;let i,r=0;for(let s=e-1;s>=0&&(i=t[s],"space"===i[0]||(r+=1,2!==r));s--);throw this.input.error("Missed semicolon","word"===i[0]?i[3]+1:i[2])}colon(t){let e,i,r,s=0;for(let[n,o]of t.entries()){if(i=o,r=i[0],"("===r&&(s+=1),")"===r&&(s-=1),0===s&&":"===r){if(e){if("word"===e[0]&&"progid"===e[1])continue;return n}this.doubleColon(i)}e=i}return!1}comment(t){let e=new Tr;this.init(e,t[2]),e.source.end=this.getPosition(t[3]||t[2]),e.source.end.offset++;let i=t[1].slice(2,-2);if(/^\s*$/.test(i))e.text="",e.raws.left=i,e.raws.right="";else{let t=i.match(/^(\s*)([^]*\S)(\s*)$/);e.text=t[2],e.raws.left=t[1],e.raws.right=t[3]}}createTokenizer(){this.tokenizer=function(t,e={}){let i,r,s,n,o,h,a,l,c,u,f=t.css.valueOf(),d=e.ignoreErrors,p=f.length,m=0,g=[],b=[];function w(e){throw t.error("Unclosed "+e,m)}return{back:function(t){b.push(t)},endOfFile:function(){return 0===b.length&&m>=p},nextToken:function(t){if(b.length)return b.pop();if(m>=p)return;let e=!!t&&t.ignoreUnclosed;switch(i=f.charCodeAt(m),i){case ar:case lr:case ur:case fr:case cr:n=m;do{n+=1,i=f.charCodeAt(n)}while(i===lr||i===ar||i===ur||i===fr||i===cr);h=["space",f.slice(m,n)],m=n-1;break;case dr:case pr:case br:case wr:case kr:case vr:case gr:{let t=String.fromCharCode(i);h=[t,t,m];break}case mr:if(u=g.length?g.pop()[1]:"",c=f.charCodeAt(m+1),"url"===u&&c!==sr&&c!==nr&&c!==lr&&c!==ar&&c!==ur&&c!==cr&&c!==fr){n=m;do{if(a=!1,n=f.indexOf(")",n+1),-1===n){if(d||e){n=m;break}w("bracket")}for(l=n;f.charCodeAt(l-1)===or;)l-=1,a=!a}while(a);h=["brackets",f.slice(m,n+1),m,n],m=n}else n=f.indexOf(")",m+1),r=f.slice(m,n+1),-1===n||xr.test(r)?h=["(","(",m]:(h=["brackets",r,m,n],m=n);break;case sr:case nr:o=i===sr?"'":'"',n=m;do{if(a=!1,n=f.indexOf(o,n+1),-1===n){if(d||e){n=m+1;break}w("string")}for(l=n;f.charCodeAt(l-1)===or;)l-=1,a=!a}while(a);h=["string",f.slice(m,n+1),m,n],m=n;break;case Er:Sr.lastIndex=m+1,Sr.test(f),n=0===Sr.lastIndex?f.length-1:Sr.lastIndex-2,h=["at-word",f.slice(m,n+1),m,n],m=n;break;case or:for(n=m,s=!0;f.charCodeAt(n+1)===or;)n+=1,s=!s;if(i=f.charCodeAt(n+1),s&&i!==hr&&i!==lr&&i!==ar&&i!==ur&&i!==fr&&i!==cr&&(n+=1,qr.test(f.charAt(n)))){for(;qr.test(f.charAt(n+1));)n+=1;f.charCodeAt(n+1)===lr&&(n+=1)}h=["word",f.slice(m,n+1),m,n],m=n;break;default:i===hr&&f.charCodeAt(m+1)===yr?(n=f.indexOf("*/",m+2)+1,0===n&&(d||e?n=f.length:w("comment")),h=["comment",f.slice(m,n+1),m,n],m=n):(Ar.lastIndex=m+1,Ar.test(f),n=0===Ar.lastIndex?f.length-1:Ar.lastIndex-2,h=["word",f.slice(m,n+1),m,n],g.push(h),m=n)}return m++,h},position:function(){return m}}}(this.input)}decl(t,e){let i=new Br;this.init(i,t[0][2]);let r,s=t[t.length-1];for(";"===s[0]&&(this.semicolon=!0,t.pop()),i.source.end=this.getPosition(s[3]||s[2]||function(t){for(let e=t.length-1;e>=0;e--){let i=t[e],r=i[3]||i[2];if(r)return r}}(t)),i.source.end.offset++;"word"!==t[0][0];)1===t.length&&this.unknownWord(t),i.raws.before+=t.shift()[1];for(i.source.start=this.getPosition(t[0][2]),i.prop="";t.length;){let e=t[0][0];if(":"===e||"space"===e||"comment"===e)break;i.prop+=t.shift()[1]}for(i.raws.between="";t.length;){if(r=t.shift(),":"===r[0]){i.raws.between+=r[1];break}"word"===r[0]&&/\w/.test(r[1])&&this.unknownWord([r]),i.raws.between+=r[1]}"_"!==i.prop[0]&&"*"!==i.prop[0]||(i.raws.before+=i.prop[0],i.prop=i.prop.slice(1));let n,o=[];for(;t.length&&(n=t[0][0],"space"===n||"comment"===n);)o.push(t.shift());this.precheckMissedSemicolon(t);for(let e=t.length-1;e>=0;e--){if(r=t[e],"!important"===r[1].toLowerCase()){i.important=!0;let r=this.stringFrom(t,e);r=this.spacesFromEnd(t)+r," !important"!==r&&(i.raws.important=r);break}if("important"===r[1].toLowerCase()){let r=t.slice(0),s="";for(let t=e;t>0;t--){let e=r[t][0];if(s.trim().startsWith("!")&&"space"!==e)break;s=r.pop()[1]+s}s.trim().startsWith("!")&&(i.important=!0,i.raws.important=s,t=r)}if("space"!==r[0]&&"comment"!==r[0])break}t.some((t=>"space"!==t[0]&&"comment"!==t[0]))&&(i.raws.between+=o.map((t=>t[1])).join(""),o=[]),this.raw(i,"value",o.concat(t),e),i.value.includes(":")&&!e&&this.checkMissedSemicolon(t)}doubleColon(t){throw this.input.error("Double colon",{offset:t[2]},{offset:t[2]+t[1].length})}emptyRule(t){let e=new Or;this.init(e,t[2]),e.selector="",e.raws.between="",this.current=e}end(t){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(t[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(t)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(t){if(this.spaces+=t[1],this.current.nodes){let t=this.current.nodes[this.current.nodes.length-1];t&&"rule"===t.type&&!t.raws.ownSemicolon&&(t.raws.ownSemicolon=this.spaces,this.spaces="")}}getPosition(t){let e=this.input.fromOffset(t);return{column:e.col,line:e.line,offset:t}}init(t,e){this.current.push(t),t.source={input:this.input,start:this.getPosition(e)},t.raws.before=this.spaces,this.spaces="","comment"!==t.type&&(this.semicolon=!1)}other(t){let e=!1,i=null,r=!1,s=null,n=[],o=t[1].startsWith("--"),h=[],a=t;for(;a;){if(i=a[0],h.push(a),"("===i||"["===i)s||(s=a),n.push("("===i?")":"]");else if(o&&r&&"{"===i)s||(s=a),n.push("}");else if(0===n.length){if(";"===i){if(r)return void this.decl(h,o);break}if("{"===i)return void this.rule(h);if("}"===i){this.tokenizer.back(h.pop()),e=!0;break}":"===i&&(r=!0)}else i===n[n.length-1]&&(n.pop(),0===n.length&&(s=null));a=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(e=!0),n.length>0&&this.unclosedBracket(s),e&&r){if(!o)for(;h.length&&(a=h[h.length-1][0],"space"===a||"comment"===a);)this.tokenizer.back(h.pop());this.decl(h,o)}else this.unknownWord(h)}parse(){let t;for(;!this.tokenizer.endOfFile();)switch(t=this.tokenizer.nextToken(),t[0]){case"space":this.spaces+=t[1];break;case";":this.freeSemicolon(t);break;case"}":this.end(t);break;case"comment":this.comment(t);break;case"at-word":this.atrule(t);break;case"{":this.emptyRule(t);break;default:this.other(t)}this.endFile()}precheckMissedSemicolon(){}raw(t,e,i,r){let s,n,o,h,a=i.length,l="",c=!0;for(let t=0;t<a;t+=1)s=i[t],n=s[0],"space"!==n||t!==a-1||r?"comment"===n?(h=i[t-1]?i[t-1][0]:"empty",o=i[t+1]?i[t+1][0]:"empty",Rr[h]||Rr[o]||","===l.slice(-1)?c=!1:l+=s[1]):l+=s[1]:c=!1;if(!c){let r=i.reduce(((t,e)=>t+e[1]),"");t.raws[e]={raw:r,value:l}}t[e]=l}rule(t){t.pop();let e=new Or;this.init(e,t[0][2]),e.raws.between=this.spacesAndCommentsFromEnd(t),this.raw(e,"selector",t),this.current=e}spacesAndCommentsFromEnd(t){let e,i="";for(;t.length&&(e=t[t.length-1][0],"space"===e||"comment"===e);)i=t.pop()[1]+i;return i}spacesAndCommentsFromStart(t){let e,i="";for(;t.length&&(e=t[0][0],"space"===e||"comment"===e);)i+=t.shift()[1];return i}spacesFromEnd(t){let e,i="";for(;t.length&&(e=t[t.length-1][0],"space"===e);)i=t.pop()[1]+i;return i}stringFrom(t,e){let i="";for(let r=e;r<t.length;r++)i+=t[r][1];return t.splice(e,t.length-e),i}unclosedBlock(){let t=this.current.source.start;throw this.input.error("Unclosed block",t.line,t.column)}unclosedBracket(t){throw this.input.error("Unclosed bracket",{offset:t[2]},{offset:t[2]+1})}unexpectedClose(t){throw this.input.error("Unexpected }",{offset:t[2]},{offset:t[2]+1})}unknownWord(t){throw this.input.error("Unknown word",{offset:t[0][2]},{offset:t[0][2]+t[0][1].length})}unnamedAtrule(t,e){throw this.input.error("At-rule without name",{offset:e[2]},{offset:e[2]+e[1].length})}};function Lr(t,e){let i=new Mr(t,e),r=new Ir(i);try{r.parse()}catch(t){throw t}return r.root}var Nr=Lr;Lr.default=Lr,jr.registerParse(Lr);class Ur{constructor(t,e={}){if(this.type="warning",this.text=t,e.node&&e.node.source){let t=e.node.rangeBy(e);this.line=t.start.line,this.column=t.start.column,this.endLine=t.end.line,this.endColumn=t.end.column}for(let t in e)this[t]=e[t]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}}var Pr=Ur;Ur.default=Ur;let _r=Pr;class $r{constructor(t,e,i){this.processor=t,this.messages=[],this.root=e,this.opts=i,this.css=void 0,this.map=void 0}toString(){return this.css}warn(t,e={}){e.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(e.plugin=this.lastPlugin.postcssPlugin);let i=new _r(t,e);return this.messages.push(i),i}warnings(){return this.messages.filter((t=>"warning"===t.type))}get content(){return this.css}}var Fr=$r;$r.default=$r;let Vr=Ze,Hr=ii,Gr=rr,zr=Nr,Wr=Fr,Zr=Oi,Qr=ve,{isClean:Jr,my:Yr}=ye;const Xr={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},Kr={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},ts={Once:!0,postcssPlugin:!0,prepare:!0},es=0;function is(t){return"object"==typeof t&&"function"==typeof t.then}function rs(t){let e=!1,i=Xr[t.type];return"decl"===t.type?e=t.prop.toLowerCase():"atrule"===t.type&&(e=t.name.toLowerCase()),e&&t.append?[i,i+"-"+e,es,i+"Exit",i+"Exit-"+e]:e?[i,i+"-"+e,i+"Exit",i+"Exit-"+e]:t.append?[i,es,i+"Exit"]:[i,i+"Exit"]}function ss(t){let e;return e="document"===t.type?["Document",es,"DocumentExit"]:"root"===t.type?["Root",es,"RootExit"]:rs(t),{eventIndex:0,events:e,iterator:0,node:t,visitorIndex:0,visitors:[]}}function ns(t){return t[Jr]=!1,t.nodes&&t.nodes.forEach((t=>ns(t))),t}let os={};class hs{constructor(t,e,i){let r;if(this.stringified=!1,this.processed=!1,"object"!=typeof e||null===e||"root"!==e.type&&"document"!==e.type)if(e instanceof hs||e instanceof Wr)r=ns(e.root),e.map&&(void 0===i.map&&(i.map={}),i.map.inline||(i.map.inline=!1),i.map.prev=e.map);else{let t=zr;i.syntax&&(t=i.syntax.parse),i.parser&&(t=i.parser),t.parse&&(t=t.parse);try{r=t(e,i)}catch(t){this.processed=!0,this.error=t}r&&!r[Yr]&&Vr.rebuild(r)}else r=ns(e);this.result=new Wr(t,r,i),this.helpers={...os,postcss:os,result:this.result},this.plugins=this.processor.plugins.map((t=>"object"==typeof t&&t.prepare?{...t,...t.prepare(this.result)}:t))}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(t){return this.async().catch(t)}finally(t){return this.async().then(t,t)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(t,e){let i=this.result.lastPlugin;try{e&&e.addToError(t),this.error=t,"CssSyntaxError"!==t.name||t.plugin||(t.plugin=i.postcssPlugin,t.setMessage())}catch(t){console&&console.error&&console.error(t)}return t}prepareVisitors(){this.listeners={};let t=(t,e,i)=>{this.listeners[e]||(this.listeners[e]=[]),this.listeners[e].push([t,i])};for(let e of this.plugins)if("object"==typeof e)for(let i in e){if(!Kr[i]&&/^[A-Z]/.test(i))throw new Error(`Unknown event ${i} in ${e.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!ts[i])if("object"==typeof e[i])for(let r in e[i])t(e,"*"===r?i:i+"-"+r.toLowerCase(),e[i][r]);else"function"==typeof e[i]&&t(e,i,e[i])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let t=0;t<this.plugins.length;t++){let e=this.runOnRoot(this.plugins[t]);if(is(e))try{await e}catch(t){throw this.handleError(t)}}if(this.prepareVisitors(),this.hasListener){let t=this.result.root;for(;!t[Jr];){t[Jr]=!0;let e=[ss(t)];for(;e.length>0;){let t=this.visitTick(e);if(is(t))try{await t}catch(t){throw this.handleError(t,e[e.length-1].node)}}}if(this.listeners.OnceExit)for(let[e,i]of this.listeners.OnceExit){this.result.lastPlugin=e;try{if("document"===t.type){let e=t.nodes.map((t=>i(t,this.helpers)));await Promise.all(e)}else await i(t,this.helpers)}catch(t){throw this.handleError(t)}}}return this.processed=!0,this.stringify()}runOnRoot(t){this.result.lastPlugin=t;try{if("object"==typeof t&&t.Once){if("document"===this.result.root.type){let e=this.result.root.nodes.map((e=>t.Once(e,this.helpers)));return is(e[0])?Promise.all(e):e}return t.Once(this.result.root,this.helpers)}if("function"==typeof t)return t(this.result.root,this.result)}catch(t){throw this.handleError(t)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let t=this.result.opts,e=Qr;t.syntax&&(e=t.syntax.stringify),t.stringifier&&(e=t.stringifier),e.stringify&&(e=e.stringify);let i=new Gr(e,this.result.root,this.result.opts).generate();return this.result.css=i[0],this.result.map=i[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let t of this.plugins)if(is(this.runOnRoot(t)))throw this.getAsyncError();if(this.prepareVisitors(),this.hasListener){let t=this.result.root;for(;!t[Jr];)t[Jr]=!0,this.walkSync(t);if(this.listeners.OnceExit)if("document"===t.type)for(let e of t.nodes)this.visitSync(this.listeners.OnceExit,e);else this.visitSync(this.listeners.OnceExit,t)}return this.result}then(t,e){return this.async().then(t,e)}toString(){return this.css}visitSync(t,e){for(let[i,r]of t){let t;this.result.lastPlugin=i;try{t=r(e,this.helpers)}catch(t){throw this.handleError(t,e.proxyOf)}if("root"!==e.type&&"document"!==e.type&&!e.parent)return!0;if(is(t))throw this.getAsyncError()}}visitTick(t){let e=t[t.length-1],{node:i,visitors:r}=e;if("root"!==i.type&&"document"!==i.type&&!i.parent)return void t.pop();if(r.length>0&&e.visitorIndex<r.length){let[t,s]=r[e.visitorIndex];e.visitorIndex+=1,e.visitorIndex===r.length&&(e.visitors=[],e.visitorIndex=0),this.result.lastPlugin=t;try{return s(i.toProxy(),this.helpers)}catch(t){throw this.handleError(t,i)}}if(0!==e.iterator){let r,s=e.iterator;for(;r=i.nodes[i.indexes[s]];)if(i.indexes[s]+=1,!r[Jr])return r[Jr]=!0,void t.push(ss(r));e.iterator=0,delete i.indexes[s]}let s=e.events;for(;e.eventIndex<s.length;){let t=s[e.eventIndex];if(e.eventIndex+=1,t===es)return void(i.nodes&&i.nodes.length&&(i[Jr]=!0,e.iterator=i.getIterator()));if(this.listeners[t])return void(e.visitors=this.listeners[t])}t.pop()}walkSync(t){t[Jr]=!0;let e=rs(t);for(let i of e)if(i===es)t.nodes&&t.each((t=>{t[Jr]||this.walkSync(t)}));else{let e=this.listeners[i];if(e&&this.visitSync(e,t.toProxy()))return}}warnings(){return this.sync().warnings()}get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}}hs.registerPostcss=t=>{os=t};var as=hs;hs.default=hs,Zr.registerLazyResult(hs),Hr.registerLazyResult(hs);let ls=rr,cs=Nr;const us=Fr;let fs=ve;class ds{constructor(t,e,i){let r;e=e.toString(),this.stringified=!1,this._processor=t,this._css=e,this._opts=i,this._map=void 0;let s=fs;this.result=new us(this._processor,r,this._opts),this.result.css=e;let n=this;Object.defineProperty(this.result,"root",{get:()=>n.root});let o=new ls(s,r,this._opts,e);if(o.isMap()){let[t,e]=o.generate();t&&(this.result.css=t),e&&(this.result.map=e)}else o.clearAnnotation(),this.result.css=o.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(t){return this.async().catch(t)}finally(t){return this.async().then(t,t)}sync(){if(this.error)throw this.error;return this.result}then(t,e){return this.async().then(t,e)}toString(){return this._css}warnings(){return[]}get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let t,e=cs;try{t=e(this._css,this._opts)}catch(t){this.error=t}if(this.error)throw this.error;return this._root=t,t}get[Symbol.toStringTag](){return"NoWorkResult"}}var ps=ds;ds.default=ds;let ms=ii,gs=as,bs=ps,ws=Oi;class vs{constructor(t=[]){this.version="8.5.1",this.plugins=this.normalize(t)}normalize(t){let e=[];for(let i of t)if(!0===i.postcss?i=i():i.postcss&&(i=i.postcss),"object"==typeof i&&Array.isArray(i.plugins))e=e.concat(i.plugins);else if("object"==typeof i&&i.postcssPlugin)e.push(i);else if("function"==typeof i)e.push(i);else if("object"!=typeof i||!i.parse&&!i.stringify)throw new Error(i+" is not a PostCSS plugin");return e}process(t,e={}){return this.plugins.length||e.parser||e.stringifier||e.syntax?new gs(this,t,e):new bs(this,t,e)}use(t){return this.plugins=this.plugins.concat(this.normalize([t])),this}}var ys=vs;vs.default=vs,ws.registerProcessor(vs),ms.registerProcessor(vs);let ks=Ye,Es=Re,Ss=Ze,As=de,xs=Ie,qs=ii,Cs=zi,Ts=qi,Bs=as,Ds=ji,Os=Be,Rs=Nr,js=ys,Ms=Fr,Is=Oi,Ls=Ni,Ns=ve,Us=Pr;function Ps(...t){return 1===t.length&&Array.isArray(t[0])&&(t=t[0]),new js(t)}Ps.plugin=function(t,e){let i,r=!1;function s(...i){console&&console.warn&&!r&&(r=!0,console.warn(t+": postcss.plugin was deprecated. Migration guide:\nhttps://evilmartians.com/chronicles/postcss-8-plugin-migration"),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(t+": 里面 postcss.plugin 被弃用. 迁移指南:\nhttps://www.w3ctech.com/topic/2226"));let s=e(...i);return s.postcssPlugin=t,s.postcssVersion=(new js).version,s}return Object.defineProperty(s,"postcss",{get:()=>(i||(i=s()),i)}),s.process=function(t,e,i){return Ps([s(i)]).process(t,e)},s},Ps.stringify=Ns,Ps.parse=Rs,Ps.fromJSON=Cs,Ps.list=Ds,Ps.comment=t=>new Es(t),Ps.atRule=t=>new ks(t),Ps.decl=t=>new xs(t),Ps.rule=t=>new Ls(t),Ps.root=t=>new Is(t),Ps.document=t=>new qs(t),Ps.CssSyntaxError=As,Ps.Declaration=xs,Ps.Container=Ss,Ps.Processor=js,Ps.Document=qs,Ps.Comment=Es,Ps.Warning=Us,Ps.AtRule=ks,Ps.Result=Ms,Ps.Input=Ts,Ps.Rule=Ls,Ps.Root=Is,Ps.Node=Os,Bs.registerPostcss(Ps);var _s=Ps;Ps.default=Ps;const $s=Wt,Fs=t=>{if("string"!=typeof t)throw new TypeError("Expected a string");return t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")},{isPlainObject:Vs}=Qt,Hs=se,Gs=ne.exports,{parse:zs}=_s,Ws=["img","audio","video","picture","svg","object","map","iframe","embed"],Zs=["script","style"];function Qs(t,e){t&&Object.keys(t).forEach((function(i){e(t[i],i)}))}function Js(t,e){return{}.hasOwnProperty.call(t,e)}function Ys(t,e){const i=[];return Qs(t,(function(t){e(t)&&i.push(t)})),i}var Xs=tn;const Ks=/^[^\0\t\n\f\r /<=>]+$/;function tn(t,e){if(null==t)return"";"number"==typeof t&&(t=t.toString());let i="",r="";function s(t,e){const r=this;this.tag=t,this.attribs=e||{},this.tagPosition=i.length,this.text="",this.mediaChildren=[],this.updateParentNodeText=function(){m.length&&(m[m.length-1].text+=r.text)},this.updateParentNodeMediaChildren=function(){m.length&&Ws.includes(this.tag)&&m[m.length-1].mediaChildren.push(this.tag)}}(e=Object.assign({},tn.defaults,e)).parser=Object.assign({},en,e.parser);const n=function(t){return!1===e.allowedTags||(e.allowedTags||[]).indexOf(t)>-1};Zs.forEach((function(t){n(t)&&!e.allowVulnerableTags&&console.warn(`\n\n⚠️ Your \`allowedTags\` option includes, \`${t}\`, which is inherently\nvulnerable to XSS attacks. Please remove it from \`allowedTags\`.\nOr, to disable this warning, add the \`allowVulnerableTags\` option\nand ensure you are accounting for this risk.\n\n`)}));const o=e.nonTextTags||["script","style","textarea","option"];let h,a;e.allowedAttributes&&(h={},a={},Qs(e.allowedAttributes,(function(t,e){h[e]=[];const i=[];t.forEach((function(t){"string"==typeof t&&t.indexOf("*")>=0?i.push(Fs(t).replace(/\\\*/g,".*")):h[e].push(t)})),i.length&&(a[e]=new RegExp("^("+i.join("|")+")$"))})));const l={},c={},u={};Qs(e.allowedClasses,(function(t,e){if(h&&(Js(h,e)||(h[e]=[]),h[e].push("class")),l[e]=t,Array.isArray(t)){const i=[];l[e]=[],u[e]=[],t.forEach((function(t){"string"==typeof t&&t.indexOf("*")>=0?i.push(Fs(t).replace(/\\\*/g,".*")):t instanceof RegExp?u[e].push(t):l[e].push(t)})),i.length&&(c[e]=new RegExp("^("+i.join("|")+")$"))}}));const f={};let d,p,m,g,b,w,v;Qs(e.transformTags,(function(t,e){let i;"function"==typeof t?i=t:"string"==typeof t&&(i=tn.simpleTransform(t)),"*"===e?d=i:f[e]=i}));let y=!1;E();const k=new $s.Parser({onopentag:function(t,k){if(e.enforceHtmlBoundary&&"html"===t&&E(),w)return void v++;const q=new s(t,k);m.push(q);let C=!1;const T=!!q.text;let B;if(Js(f,t)&&(B=f[t](t,k),q.attribs=k=B.attribs,void 0!==B.text&&(q.innerText=B.text),t!==B.tagName&&(q.name=t=B.tagName,b[p]=B.tagName)),d&&(B=d(t,k),q.attribs=k=B.attribs,t!==B.tagName&&(q.name=t=B.tagName,b[p]=B.tagName)),(!n(t)||"recursiveEscape"===e.disallowedTagsMode&&!function(t){for(const e in t)if(Js(t,e))return!1;return!0}(g)||null!=e.nestingLimit&&p>=e.nestingLimit)&&(C=!0,g[p]=!0,"discard"!==e.disallowedTagsMode&&"completelyDiscard"!==e.disallowedTagsMode||-1!==o.indexOf(t)&&(w=!0,v=1),g[p]=!0),p++,C){if("discard"===e.disallowedTagsMode||"completelyDiscard"===e.disallowedTagsMode){if(q.innerText&&!T){const r=S(q.innerText);i+=e.textFilter?e.textFilter(r,t):S(q.innerText),y=!0}return}r=i,i=""}i+="<"+t,"script"===t&&(e.allowedScriptHostnames||e.allowedScriptDomains)&&(q.innerText=""),(!h||Js(h,t)||h["*"])&&Qs(k,(function(r,s){if(!Ks.test(s))return void delete q.attribs[s];if(""===r&&!e.allowedEmptyAttributes.includes(s)&&(e.nonBooleanAttributes.includes(s)||e.nonBooleanAttributes.includes("*")))return void delete q.attribs[s];let n=!1;if(!h||Js(h,t)&&-1!==h[t].indexOf(s)||h["*"]&&-1!==h["*"].indexOf(s)||Js(a,t)&&a[t].test(s)||a["*"]&&a["*"].test(s))n=!0;else if(h&&h[t])for(const e of h[t])if(Vs(e)&&e.name&&e.name===s){n=!0;let t="";if(!0===e.multiple){const i=r.split(" ");for(const r of i)-1!==e.values.indexOf(r)&&(""===t?t=r:t+=" "+r)}else e.values.indexOf(r)>=0&&(t=r);r=t}if(n){if(-1!==e.allowedSchemesAppliedToAttributes.indexOf(s)&&A(t,r))return void delete q.attribs[s];if("script"===t&&"src"===s){let t=!0;try{const i=x(r);if(e.allowedScriptHostnames||e.allowedScriptDomains){const r=(e.allowedScriptHostnames||[]).find((function(t){return t===i.url.hostname})),s=(e.allowedScriptDomains||[]).find((function(t){return i.url.hostname===t||i.url.hostname.endsWith(`.${t}`)}));t=r||s}}catch(e){t=!1}if(!t)return void delete q.attribs[s]}if("iframe"===t&&"src"===s){let t=!0;try{const i=x(r);if(i.isRelativeUrl)t=Js(e,"allowIframeRelativeUrls")?e.allowIframeRelativeUrls:!e.allowedIframeHostnames&&!e.allowedIframeDomains;else if(e.allowedIframeHostnames||e.allowedIframeDomains){const r=(e.allowedIframeHostnames||[]).find((function(t){return t===i.url.hostname})),s=(e.allowedIframeDomains||[]).find((function(t){return i.url.hostname===t||i.url.hostname.endsWith(`.${t}`)}));t=r||s}}catch(e){t=!1}if(!t)return void delete q.attribs[s]}if("srcset"===s)try{let t=Gs(r);if(t.forEach((function(t){A("srcset",t.url)&&(t.evil=!0)})),t=Ys(t,(function(t){return!t.evil})),!t.length)return void delete q.attribs[s];r=Ys(t,(function(t){return!t.evil})).map((function(t){if(!t.url)throw new Error("URL missing");return t.url+(t.w?` ${t.w}w`:"")+(t.h?` ${t.h}h`:"")+(t.d?` ${t.d}x`:"")})).join(", "),q.attribs[s]=r}catch(t){return void delete q.attribs[s]}if("class"===s){const e=l[t],i=l["*"],n=[c[t],c["*"]].concat(u[t],u["*"]).filter((function(t){return t}));if(!(o=r,f=e&&i?Hs(e,i):e||i,d=n,r=f?(o=o.split(/\s+/)).filter((function(t){return-1!==f.indexOf(t)||d.some((function(e){return e.test(t)}))})).join(" "):o).length)return void delete q.attribs[s]}if("style"===s)if(e.parseStyleAttributes)try{if(r=function(t){return t.nodes[0].nodes.reduce((function(t,e){return t.push(`${e.prop}:${e.value}${e.important?" !important":""}`),t}),[]).join(";")}(function(t,e){if(!e)return t;const i=t.nodes[0];let r;return r=e[i.selector]&&e["*"]?Hs(e[i.selector],e["*"]):e[i.selector]||e["*"],r&&(t.nodes[0].nodes=i.nodes.reduce(function(t){return function(e,i){return Js(t,i.prop)&&t[i.prop].some((function(t){return t.test(i.value)}))&&e.push(i),e}}(r),[])),t}(zs(t+" {"+r+"}",{map:!1}),e.allowedStyles)),0===r.length)return void delete q.attribs[s]}catch(e){return"undefined"!=typeof window&&console.warn('Failed to parse "'+t+" {"+r+"}\", If you're running this in a browser, we recommend to disable style parsing: options.parseStyleAttributes: false, since this only works in a node environment due to a postcss dependency, More info: https://github.com/apostrophecms/sanitize-html/issues/547"),void delete q.attribs[s]}else if(e.allowedStyles)throw new Error("allowedStyles option cannot be used together with parseStyleAttributes: false.");i+=" "+s,r&&r.length?i+='="'+S(r,!0)+'"':e.allowedEmptyAttributes.includes(s)&&(i+='=""')}else delete q.attribs[s];var o,f,d})),-1!==e.selfClosing.indexOf(t)?i+=" />":(i+=">",!q.innerText||T||e.textFilter||(i+=S(q.innerText),y=!0)),C&&(i=r+S(i),r="")},ontext:function(t){if(w)return;const r=m[m.length-1];let s;if(r&&(s=r.tag,t=void 0!==r.innerText?r.innerText:t),"completelyDiscard"!==e.disallowedTagsMode||n(s))if("discard"!==e.disallowedTagsMode&&"completelyDiscard"!==e.disallowedTagsMode||"script"!==s&&"style"!==s){const r=S(t,!1);e.textFilter&&!y?i+=e.textFilter(r,s):y||(i+=r)}else i+=t;else t="";m.length&&(m[m.length-1].text+=t)},onclosetag:function(t,s){if(w){if(v--,v)return;w=!1}const o=m.pop();if(!o)return;if(o.tag!==t)return void m.push(o);w=!!e.enforceHtmlBoundary&&"html"===t,p--;const h=g[p];if(h){if(delete g[p],"discard"===e.disallowedTagsMode||"completelyDiscard"===e.disallowedTagsMode)return void o.updateParentNodeText();r=i,i=""}b[p]&&(t=b[p],delete b[p]),e.exclusiveFilter&&e.exclusiveFilter(o)?i=i.substr(0,o.tagPosition):(o.updateParentNodeMediaChildren(),o.updateParentNodeText(),-1!==e.selfClosing.indexOf(t)||s&&!n(t)&&["escape","recursiveEscape"].indexOf(e.disallowedTagsMode)>=0?h&&(i=r,r=""):(i+="</"+t+">",h&&(i=r+S(i),r=""),y=!1))}},e.parser);return k.write(t),k.end(),i;function E(){i="",p=0,m=[],g={},b={},w=!1,v=0}function S(t,i){return"string"!=typeof t&&(t+=""),e.parser.decodeEntities&&(t=t.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">"),i&&(t=t.replace(/"/g,"""))),t=t.replace(/&(?![a-zA-Z0-9#]{1,20};)/g,"&").replace(/</g,"<").replace(/>/g,">"),i&&(t=t.replace(/"/g,""")),t}function A(t,i){for(i=i.replace(/[\x00-\x20]+/g,"");;){const t=i.indexOf("\x3c!--");if(-1===t)break;const e=i.indexOf("--\x3e",t+4);if(-1===e)break;i=i.substring(0,t)+i.substring(e+3)}const r=i.match(/^([a-zA-Z][a-zA-Z0-9.\-+]*):/);if(!r)return!!i.match(/^[/\\]{2}/)&&!e.allowProtocolRelative;const s=r[1].toLowerCase();return Js(e.allowedSchemesByTag,t)?-1===e.allowedSchemesByTag[t].indexOf(s):!e.allowedSchemes||-1===e.allowedSchemes.indexOf(s)}function x(t){if((t=t.replace(/^(\w+:)?\s*[\\/]\s*[\\/]/,"$1//")).startsWith("relative:"))throw new Error("relative: exploit attempt");let e="relative://relative-site";for(let t=0;t<100;t++)e+=`/${t}`;const i=new URL(t,e);return{isRelativeUrl:i&&"relative-site"===i.hostname&&"relative:"===i.protocol,url:i}}}const en={decodeEntities:!0};tn.defaults={allowedTags:["address","article","aside","footer","header","h1","h2","h3","h4","h5","h6","hgroup","main","nav","section","blockquote","dd","div","dl","dt","figcaption","figure","hr","li","main","ol","p","pre","ul","a","abbr","b","bdi","bdo","br","cite","code","data","dfn","em","i","kbd","mark","q","rb","rp","rt","rtc","ruby","s","samp","small","span","strong","sub","sup","time","u","var","wbr","caption","col","colgroup","table","tbody","td","tfoot","th","thead","tr"],nonBooleanAttributes:["abbr","accept","accept-charset","accesskey","action","allow","alt","as","autocapitalize","autocomplete","blocking","charset","cite","class","color","cols","colspan","content","contenteditable","coords","crossorigin","data","datetime","decoding","dir","dirname","download","draggable","enctype","enterkeyhint","fetchpriority","for","form","formaction","formenctype","formmethod","formtarget","headers","height","hidden","high","href","hreflang","http-equiv","id","imagesizes","imagesrcset","inputmode","integrity","is","itemid","itemprop","itemref","itemtype","kind","label","lang","list","loading","low","max","maxlength","media","method","min","minlength","name","nonce","optimum","pattern","ping","placeholder","popover","popovertarget","popovertargetaction","poster","preload","referrerpolicy","rel","rows","rowspan","sandbox","scope","shape","size","sizes","slot","span","spellcheck","src","srcdoc","srclang","srcset","start","step","style","tabindex","target","title","translate","type","usemap","value","width","wrap","onauxclick","onafterprint","onbeforematch","onbeforeprint","onbeforeunload","onbeforetoggle","onblur","oncancel","oncanplay","oncanplaythrough","onchange","onclick","onclose","oncontextlost","oncontextmenu","oncontextrestored","oncopy","oncuechange","oncut","ondblclick","ondrag","ondragend","ondragenter","ondragleave","ondragover","ondragstart","ondrop","ondurationchange","onemptied","onended","onerror","onfocus","onformdata","onhashchange","oninput","oninvalid","onkeydown","onkeypress","onkeyup","onlanguagechange","onload","onloadeddata","onloadedmetadata","onloadstart","onmessage","onmessageerror","onmousedown","onmouseenter","onmouseleave","onmousemove","onmouseout","onmouseover","onmouseup","onoffline","ononline","onpagehide","onpageshow","onpaste","onpause","onplay","onplaying","onpopstate","onprogress","onratechange","onreset","onresize","onrejectionhandled","onscroll","onscrollend","onsecuritypolicyviolation","onseeked","onseeking","onselect","onslotchange","onstalled","onstorage","onsubmit","onsuspend","ontimeupdate","ontoggle","onunhandledrejection","onunload","onvolumechange","onwaiting","onwheel"],disallowedTagsMode:"discard",allowedAttributes:{a:["href","name","target"],img:["src","srcset","alt","title","width","height","loading"]},allowedEmptyAttributes:["alt"],selfClosing:["img","br","hr","area","base","basefont","input","link","meta"],allowedSchemes:["http","https","ftp","mailto","tel"],allowedSchemesByTag:{},allowedSchemesAppliedToAttributes:["href","src","cite"],allowProtocolRelative:!0,enforceHtmlBoundary:!1,parseStyleAttributes:!0},tn.simpleTransform=function(t,e,i){return i=void 0===i||i,e=e||{},function(r,s){let n;if(i)for(n in e)s[n]=e[n];else s=e;return{tagName:t,attribs:s}}};const rn=Xs,sn=class{constructor(e){t(this,e),this.navigateViaEvent=!1,this.postMessageEvent=""}render(){const t=rn(this.customContent,{allowedTags:rn.defaults.allowedTags.concat(["img"]),allowedAttributes:{img:["src","srcset","alt","title","width","height","loading"]}});return e("div",{key:"894fdc79eb310d5a7cfde48445afd3d1d464359e",class:"CustomContentSectionContainer"},e("div",{key:"cfecce550a4e9b6b692ff12de96262e1413f8f2b",class:"CustomContentSectionWrapper"},e("div",{key:"1e76edcbb408a184848bda0c86a99d2467e3e081",class:"CustomContentSectionContent",innerHTML:t}),this.repeaterContent?e("image-list",{style:{width:"100%"},repeaterContent:this.repeaterContent?this.repeaterContent:null,"navigate-via-event":this.navigateViaEvent,"post-message-event":this.postMessageEvent}):""))}};sn.style=".sc-custom-content-section-h{display:block}*.sc-custom-content-section{margin:0}.CustomContentSectionWrapper.sc-custom-content-section{box-sizing:border-box;height:100%;align-items:center}";export{sn as custom_content_section}
|
|
8
|
+
function Zt(t){return"[object Object]"===Object.prototype.toString.call(t)}const Qt=r(Object.freeze({__proto__:null,isPlainObject:function(t){var e,i;return!1!==Zt(t)&&(void 0===(e=t.constructor)||!1!==Zt(i=e.prototype)&&!1!==i.hasOwnProperty("isPrototypeOf"))}}));var Jt=function(t){return function(t){return!!t&&"object"==typeof t}(t)&&!function(t){var e=Object.prototype.toString.call(t);return"[object RegExp]"===e||"[object Date]"===e||function(t){return t.$$typeof===Yt}(t)}(t)},Yt="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function Xt(t,e){return!1!==e.clone&&e.isMergeableObject(t)?ie(Array.isArray(t)?[]:{},t,e):t}function Kt(t,e,i){return t.concat(e).map((function(t){return Xt(t,i)}))}function te(t){return Object.keys(t).concat(function(t){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter((function(e){return Object.propertyIsEnumerable.call(t,e)})):[]}(t))}function ee(t,e){try{return e in t}catch(t){return!1}}function ie(t,e,i){(i=i||{}).arrayMerge=i.arrayMerge||Kt,i.isMergeableObject=i.isMergeableObject||Jt,i.cloneUnlessOtherwiseSpecified=Xt;var r=Array.isArray(e);return r===Array.isArray(t)?r?i.arrayMerge(t,e,i):function(t,e,i){var r={};return i.isMergeableObject(t)&&te(t).forEach((function(e){r[e]=Xt(t[e],i)})),te(e).forEach((function(s){(function(t,e){return ee(t,e)&&!(Object.hasOwnProperty.call(t,e)&&Object.propertyIsEnumerable.call(t,e))})(t,s)||(r[s]=ee(t,s)&&i.isMergeableObject(e[s])?function(t,e){if(!e.customMerge)return ie;var i=e.customMerge(t);return"function"==typeof i?i:ie}(s,i)(t[s],e[s],i):Xt(e[s],i))})),r}(t,e,i):Xt(e,i)}ie.all=function(t,e){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce((function(t,i){return ie(t,i,e)}),{})};var re,se=ie,ne={exports:{}};re=ne,function(t,e){re.exports?re.exports=e():t.parseSrcset=e()}(i,(function(){return function(t){function e(t){return" "===t||"\t"===t||"\n"===t||"\f"===t||"\r"===t}function i(e){var i,r=e.exec(t.substring(m));if(r)return m+=(i=r[0]).length,i}for(var r,s,n,o,h,a=t.length,l=/^[ \t\n\r\u000c]+/,c=/^[, \t\n\r\u000c]+/,u=/^[^ \t\n\r\u000c]+/,f=/[,]+$/,d=/^\d+$/,p=/^-?(?:[0-9]+|[0-9]*\.[0-9]+)(?:[eE][+-]?[0-9]+)?$/,m=0,g=[];;){if(i(c),m>=a)return g;r=i(u),s=[],","===r.slice(-1)?(r=r.replace(f,""),w()):b()}function b(){for(i(l),n="",o="in descriptor";;){if(h=t.charAt(m),"in descriptor"===o)if(e(h))n&&(s.push(n),n="",o="after descriptor");else{if(","===h)return m+=1,n&&s.push(n),void w();if("("===h)n+=h,o="in parens";else{if(""===h)return n&&s.push(n),void w();n+=h}}else if("in parens"===o)if(")"===h)n+=h,o="in descriptor";else{if(""===h)return s.push(n),void w();n+=h}else if("after descriptor"===o)if(e(h));else{if(""===h)return void w();o="in descriptor",m-=1}m+=1}}function w(){var e,i,n,o,h,a,l,c,u,f=!1,m={};for(o=0;o<s.length;o++)a=(h=s[o])[h.length-1],l=h.substring(0,h.length-1),c=parseInt(l,10),u=parseFloat(l),d.test(l)&&"w"===a?((e||i)&&(f=!0),0===c?f=!0:e=c):p.test(l)&&"x"===a?((e||i||n)&&(f=!0),u<0?f=!0:i=u):d.test(l)&&"h"===a?((n||i)&&(f=!0),0===c?f=!0:n=c):f=!0;f?console&&console.log&&console.log("Invalid srcset descriptor found in '"+t+"' at '"+h+"'."):(m.url=r,e&&(m.w=e),i&&(m.d=i),n&&(m.h=n),g.push(m))}}}));var oe={exports:{}},he=String,ae=function(){return{isColorSupported:!1,reset:he,bold:he,dim:he,italic:he,underline:he,inverse:he,hidden:he,strikethrough:he,black:he,red:he,green:he,yellow:he,blue:he,magenta:he,cyan:he,white:he,gray:he,bgBlack:he,bgRed:he,bgGreen:he,bgYellow:he,bgBlue:he,bgMagenta:he,bgCyan:he,bgWhite:he,blackBright:he,redBright:he,greenBright:he,yellowBright:he,blueBright:he,magentaBright:he,cyanBright:he,whiteBright:he,bgBlackBright:he,bgRedBright:he,bgGreenBright:he,bgYellowBright:he,bgBlueBright:he,bgMagentaBright:he,bgCyanBright:he,bgWhiteBright:he}};oe.exports=ae(),oe.exports.createColors=ae;const le=r(Object.freeze({__proto__:null,default:{}}));let ce=oe.exports,ue=le;class fe extends Error{constructor(t,e,i,r,s,n){super(t),this.name="CssSyntaxError",this.reason=t,s&&(this.file=s),r&&(this.source=r),n&&(this.plugin=n),void 0!==e&&void 0!==i&&("number"==typeof e?(this.line=e,this.column=i):(this.line=e.line,this.column=e.column,this.endLine=i.line,this.endColumn=i.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,fe)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",void 0!==this.line&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(t){if(!this.source)return"";let e=this.source;null==t&&(t=ce.isColorSupported);let i=t=>t,r=t=>t,s=t=>t;if(t){let{bold:t,gray:e,red:n}=ce.createColors(!0);r=e=>t(n(e)),i=t=>e(t),ue&&(s=t=>ue(t))}let n=e.split(/\r?\n/),o=Math.max(this.line-3,0),h=Math.min(this.line+2,n.length),a=String(h).length;return n.slice(o,h).map(((t,e)=>{let n=o+1+e,h=" "+(" "+n).slice(-a)+" | ";if(n===this.line){if(t.length>160){let e=20,n=Math.max(0,this.column-e),o=Math.max(this.column+e,this.endColumn+e),a=t.slice(n,o),l=i(h.replace(/\d/g," "))+t.slice(0,Math.min(this.column-1,e-1)).replace(/[^\t]/g," ");return r(">")+i(h)+s(a)+"\n "+l+r("^")}let e=i(h.replace(/\d/g," "))+t.slice(0,this.column-1).replace(/[^\t]/g," ");return r(">")+i(h)+s(t)+"\n "+e+r("^")}return" "+i(h)+s(t)})).join("\n")}toString(){let t=this.showSourceCode();return t&&(t="\n\n"+t+"\n"),this.name+": "+this.message+t}}var de=fe;fe.default=fe;const pe={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};class me{constructor(t){this.builder=t}atrule(t,e){let i="@"+t.name,r=t.params?this.rawValue(t,"params"):"";void 0!==t.raws.afterName?i+=t.raws.afterName:r&&(i+=" "),t.nodes?this.block(t,i+r):this.builder(i+r+((t.raws.between||"")+(e?";":"")),t)}beforeAfter(t,e){let i;i=this.raw(t,null,"decl"===t.type?"beforeDecl":"comment"===t.type?"beforeComment":"before"===e?"beforeRule":"beforeClose");let r=t.parent,s=0;for(;r&&"root"!==r.type;)s+=1,r=r.parent;if(i.includes("\n")){let e=this.raw(t,null,"indent");if(e.length)for(let t=0;t<s;t++)i+=e}return i}block(t,e){let i,r=this.raw(t,"between","beforeOpen");this.builder(e+r+"{",t,"start"),t.nodes&&t.nodes.length?(this.body(t),i=this.raw(t,"after")):i=this.raw(t,"after","emptyBody"),i&&this.builder(i),this.builder("}",t,"end")}body(t){let e=t.nodes.length-1;for(;e>0&&"comment"===t.nodes[e].type;)e-=1;let i=this.raw(t,"semicolon");for(let r=0;r<t.nodes.length;r++){let s=t.nodes[r],n=this.raw(s,"before");n&&this.builder(n),this.stringify(s,e!==r||i)}}comment(t){let e=this.raw(t,"left","commentLeft"),i=this.raw(t,"right","commentRight");this.builder("/*"+e+t.text+i+"*/",t)}decl(t,e){let i=this.raw(t,"between","colon"),r=t.prop+i+this.rawValue(t,"value");t.important&&(r+=t.raws.important||" !important"),e&&(r+=";"),this.builder(r,t)}document(t){this.body(t)}raw(t,e,i){let r;if(i||(i=e),e&&(r=t.raws[e],void 0!==r))return r;let s=t.parent;if("before"===i){if(!s||"root"===s.type&&s.first===t)return"";if(s&&"document"===s.type)return""}if(!s)return pe[i];let n=t.root();if(n.rawCache||(n.rawCache={}),void 0!==n.rawCache[i])return n.rawCache[i];if("before"===i||"after"===i)return this.beforeAfter(t,i);{let s="raw"+((o=i)[0].toUpperCase()+o.slice(1));this[s]?r=this[s](n,t):n.walk((t=>{if(r=t.raws[e],void 0!==r)return!1}))}var o;return void 0===r&&(r=pe[i]),n.rawCache[i]=r,r}rawBeforeClose(t){let e;return t.walk((t=>{if(t.nodes&&t.nodes.length>0&&void 0!==t.raws.after)return e=t.raws.after,e.includes("\n")&&(e=e.replace(/[^\n]+$/,"")),!1})),e&&(e=e.replace(/\S/g,"")),e}rawBeforeComment(t,e){let i;return t.walkComments((t=>{if(void 0!==t.raws.before)return i=t.raws.before,i.includes("\n")&&(i=i.replace(/[^\n]+$/,"")),!1})),void 0===i?i=this.raw(e,null,"beforeDecl"):i&&(i=i.replace(/\S/g,"")),i}rawBeforeDecl(t,e){let i;return t.walkDecls((t=>{if(void 0!==t.raws.before)return i=t.raws.before,i.includes("\n")&&(i=i.replace(/[^\n]+$/,"")),!1})),void 0===i?i=this.raw(e,null,"beforeRule"):i&&(i=i.replace(/\S/g,"")),i}rawBeforeOpen(t){let e;return t.walk((t=>{if("decl"!==t.type&&(e=t.raws.between,void 0!==e))return!1})),e}rawBeforeRule(t){let e;return t.walk((i=>{if(i.nodes&&(i.parent!==t||t.first!==i)&&void 0!==i.raws.before)return e=i.raws.before,e.includes("\n")&&(e=e.replace(/[^\n]+$/,"")),!1})),e&&(e=e.replace(/\S/g,"")),e}rawColon(t){let e;return t.walkDecls((t=>{if(void 0!==t.raws.between)return e=t.raws.between.replace(/[^\s:]/g,""),!1})),e}rawEmptyBody(t){let e;return t.walk((t=>{if(t.nodes&&0===t.nodes.length&&(e=t.raws.after,void 0!==e))return!1})),e}rawIndent(t){if(t.raws.indent)return t.raws.indent;let e;return t.walk((i=>{let r=i.parent;if(r&&r!==t&&r.parent&&r.parent===t&&void 0!==i.raws.before){let t=i.raws.before.split("\n");return e=t[t.length-1],e=e.replace(/\S/g,""),!1}})),e}rawSemicolon(t){let e;return t.walk((t=>{if(t.nodes&&t.nodes.length&&"decl"===t.last.type&&(e=t.raws.semicolon,void 0!==e))return!1})),e}rawValue(t,e){let i=t[e],r=t.raws[e];return r&&r.value===i?r.raw:i}root(t){this.body(t),t.raws.after&&this.builder(t.raws.after)}rule(t){this.block(t,this.rawValue(t,"selector")),t.raws.ownSemicolon&&this.builder(t.raws.ownSemicolon,t,"end")}stringify(t,e){if(!this[t.type])throw new Error("Unknown AST node type "+t.type+". Maybe you need to change PostCSS stringifier.");this[t.type](t,e)}}var ge=me;me.default=me;let be=ge;function we(t,e){new be(e).stringify(t)}var ve=we;we.default=we;var ye={};ye.isClean=Symbol("isClean"),ye.my=Symbol("my");let ke=de,Ee=ge,Se=ve,{isClean:Ae,my:xe}=ye;function qe(t,e){let i=new t.constructor;for(let r in t){if(!Object.prototype.hasOwnProperty.call(t,r))continue;if("proxyCache"===r)continue;let s=t[r],n=typeof s;"parent"===r&&"object"===n?e&&(i[r]=e):"source"===r?i[r]=s:Array.isArray(s)?i[r]=s.map((t=>qe(t,i))):("object"===n&&null!==s&&(s=qe(s)),i[r]=s)}return i}function Ce(t,e){if(e&&void 0!==e.offset)return e.offset;let i=1,r=1,s=0;for(let n=0;n<t.length;n++){if(r===e.line&&i===e.column){s=n;break}"\n"===t[n]?(i=1,r+=1):i+=1}return s}class Te{constructor(t={}){this.raws={},this[Ae]=!1,this[xe]=!0;for(let e in t)if("nodes"===e){this.nodes=[];for(let i of t[e])this.append("function"==typeof i.clone?i.clone():i)}else this[e]=t[e]}addToError(t){if(t.postcssNode=this,t.stack&&this.source&&/\n\s{4}at /.test(t.stack)){let e=this.source;t.stack=t.stack.replace(/\n\s{4}at /,`$&${e.input.from}:${e.start.line}:${e.start.column}$&`)}return t}after(t){return this.parent.insertAfter(this,t),this}assign(t={}){for(let e in t)this[e]=t[e];return this}before(t){return this.parent.insertBefore(this,t),this}cleanRaws(t){delete this.raws.before,delete this.raws.after,t||delete this.raws.between}clone(t={}){let e=qe(this);for(let i in t)e[i]=t[i];return e}cloneAfter(t={}){let e=this.clone(t);return this.parent.insertAfter(this,e),e}cloneBefore(t={}){let e=this.clone(t);return this.parent.insertBefore(this,e),e}error(t,e={}){if(this.source){let{end:i,start:r}=this.rangeBy(e);return this.source.input.error(t,{column:r.column,line:r.line},{column:i.column,line:i.line},e)}return new ke(t)}getProxyProcessor(){return{get:(t,e)=>"proxyOf"===e?t:"root"===e?()=>t.root().toProxy():t[e],set:(t,e,i)=>(t[e]===i||(t[e]=i,"prop"!==e&&"value"!==e&&"name"!==e&&"params"!==e&&"important"!==e&&"text"!==e||t.markDirty()),!0)}}markClean(){this[Ae]=!0}markDirty(){if(this[Ae]){this[Ae]=!1;let t=this;for(;t=t.parent;)t[Ae]=!1}}next(){if(!this.parent)return;let t=this.parent.index(this);return this.parent.nodes[t+1]}positionBy(t){let e=this.source.start;if(t.index)e=this.positionInside(t.index);else if(t.word){let i="document"in this.source.input?this.source.input.document:this.source.input.css,r=i.slice(Ce(i,this.source.start),Ce(i,this.source.end)).indexOf(t.word);-1!==r&&(e=this.positionInside(r))}return e}positionInside(t){let e=this.source.start.column,i=this.source.start.line,r="document"in this.source.input?this.source.input.document:this.source.input.css,s=Ce(r,this.source.start),n=s+t;for(let t=s;t<n;t++)"\n"===r[t]?(e=1,i+=1):e+=1;return{column:e,line:i}}prev(){if(!this.parent)return;let t=this.parent.index(this);return this.parent.nodes[t-1]}rangeBy(t){let e={column:this.source.start.column,line:this.source.start.line},i=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:e.column+1,line:e.line};if(t.word){let r="document"in this.source.input?this.source.input.document:this.source.input.css,s=r.slice(Ce(r,this.source.start),Ce(r,this.source.end)).indexOf(t.word);-1!==s&&(e=this.positionInside(s),i=this.positionInside(s+t.word.length))}else t.start?e={column:t.start.column,line:t.start.line}:t.index&&(e=this.positionInside(t.index)),t.end?i={column:t.end.column,line:t.end.line}:"number"==typeof t.endIndex?i=this.positionInside(t.endIndex):t.index&&(i=this.positionInside(t.index+1));return(i.line<e.line||i.line===e.line&&i.column<=e.column)&&(i={column:e.column+1,line:e.line}),{end:i,start:e}}raw(t,e){return(new Ee).raw(this,t,e)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...t){if(this.parent){let e=this,i=!1;for(let r of t)r===this?i=!0:i?(this.parent.insertAfter(e,r),e=r):this.parent.insertBefore(e,r);i||this.remove()}return this}root(){let t=this;for(;t.parent&&"document"!==t.parent.type;)t=t.parent;return t}toJSON(t,e){let i={},r=null==e;e=e||new Map;let s=0;for(let t in this){if(!Object.prototype.hasOwnProperty.call(this,t))continue;if("parent"===t||"proxyCache"===t)continue;let r=this[t];if(Array.isArray(r))i[t]=r.map((t=>"object"==typeof t&&t.toJSON?t.toJSON(null,e):t));else if("object"==typeof r&&r.toJSON)i[t]=r.toJSON(null,e);else if("source"===t){let n=e.get(r.input);null==n&&(n=s,e.set(r.input,s),s++),i[t]={end:r.end,inputId:n,start:r.start}}else i[t]=r}return r&&(i.inputs=[...e.keys()].map((t=>t.toJSON()))),i}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(t=Se){t.stringify&&(t=t.stringify);let e="";return t(this,(t=>{e+=t})),e}warn(t,e,i){let r={node:this};for(let t in i)r[t]=i[t];return t.warn(e,r)}get proxyOf(){return this}}var Be=Te;Te.default=Te;let De=Be;class Oe extends De{constructor(t){super(t),this.type="comment"}}var Re=Oe;Oe.default=Oe;let je=Be;class Me extends je{constructor(t){t&&void 0!==t.value&&"string"!=typeof t.value&&(t={...t,value:String(t.value)}),super(t),this.type="decl"}get variable(){return this.prop.startsWith("--")||"$"===this.prop[0]}}var Ie=Me;Me.default=Me;let Le,Ne,Ue,Pe,_e=Re,$e=Ie,Fe=Be,{isClean:Ve,my:He}=ye;function Ge(t){return t.map((t=>(t.nodes&&(t.nodes=Ge(t.nodes)),delete t.source,t)))}function ze(t){if(t[Ve]=!1,t.proxyOf.nodes)for(let e of t.proxyOf.nodes)ze(e)}class We extends Fe{append(...t){for(let e of t){let t=this.normalize(e,this.last);for(let e of t)this.proxyOf.nodes.push(e)}return this.markDirty(),this}cleanRaws(t){if(super.cleanRaws(t),this.nodes)for(let e of this.nodes)e.cleanRaws(t)}each(t){if(!this.proxyOf.nodes)return;let e,i,r=this.getIterator();for(;this.indexes[r]<this.proxyOf.nodes.length&&(e=this.indexes[r],i=t(this.proxyOf.nodes[e],e),!1!==i);)this.indexes[r]+=1;return delete this.indexes[r],i}every(t){return this.nodes.every(t)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let t=this.lastEach;return this.indexes[t]=0,t}getProxyProcessor(){return{get:(t,e)=>"proxyOf"===e?t:t[e]?"each"===e||"string"==typeof e&&e.startsWith("walk")?(...i)=>t[e](...i.map((t=>"function"==typeof t?(e,i)=>t(e.toProxy(),i):t))):"every"===e||"some"===e?i=>t[e](((t,...e)=>i(t.toProxy(),...e))):"root"===e?()=>t.root().toProxy():"nodes"===e?t.nodes.map((t=>t.toProxy())):"first"===e||"last"===e?t[e].toProxy():t[e]:t[e],set:(t,e,i)=>(t[e]===i||(t[e]=i,"name"!==e&&"params"!==e&&"selector"!==e||t.markDirty()),!0)}}index(t){return"number"==typeof t?t:(t.proxyOf&&(t=t.proxyOf),this.proxyOf.nodes.indexOf(t))}insertAfter(t,e){let i,r=this.index(t),s=this.normalize(e,this.proxyOf.nodes[r]).reverse();r=this.index(t);for(let t of s)this.proxyOf.nodes.splice(r+1,0,t);for(let t in this.indexes)i=this.indexes[t],r<i&&(this.indexes[t]=i+s.length);return this.markDirty(),this}insertBefore(t,e){let i,r=this.index(t),s=this.normalize(e,this.proxyOf.nodes[r],0===r&&"prepend").reverse();r=this.index(t);for(let t of s)this.proxyOf.nodes.splice(r,0,t);for(let t in this.indexes)i=this.indexes[t],r<=i&&(this.indexes[t]=i+s.length);return this.markDirty(),this}normalize(t,e){if("string"==typeof t)t=Ge(Ne(t).nodes);else if(void 0===t)t=[];else if(Array.isArray(t)){t=t.slice(0);for(let e of t)e.parent&&e.parent.removeChild(e,"ignore")}else if("root"===t.type&&"document"!==this.type){t=t.nodes.slice(0);for(let e of t)e.parent&&e.parent.removeChild(e,"ignore")}else if(t.type)t=[t];else if(t.prop){if(void 0===t.value)throw new Error("Value field is missed in node creation");"string"!=typeof t.value&&(t.value=String(t.value)),t=[new $e(t)]}else if(t.selector||t.selectors)t=[new Pe(t)];else if(t.name)t=[new Le(t)];else{if(!t.text)throw new Error("Unknown node type in node creation");t=[new _e(t)]}return t.map((t=>(t[He]||We.rebuild(t),(t=t.proxyOf).parent&&t.parent.removeChild(t),t[Ve]&&ze(t),t.raws||(t.raws={}),void 0===t.raws.before&&e&&void 0!==e.raws.before&&(t.raws.before=e.raws.before.replace(/\S/g,"")),t.parent=this.proxyOf,t)))}prepend(...t){t=t.reverse();for(let e of t){let t=this.normalize(e,this.first,"prepend").reverse();for(let e of t)this.proxyOf.nodes.unshift(e);for(let e in this.indexes)this.indexes[e]=this.indexes[e]+t.length}return this.markDirty(),this}push(t){return t.parent=this,this.proxyOf.nodes.push(t),this}removeAll(){for(let t of this.proxyOf.nodes)t.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(t){let e;t=this.index(t),this.proxyOf.nodes[t].parent=void 0,this.proxyOf.nodes.splice(t,1);for(let i in this.indexes)e=this.indexes[i],e>=t&&(this.indexes[i]=e-1);return this.markDirty(),this}replaceValues(t,e,i){return i||(i=e,e={}),this.walkDecls((r=>{e.props&&!e.props.includes(r.prop)||e.fast&&!r.value.includes(e.fast)||(r.value=r.value.replace(t,i))})),this.markDirty(),this}some(t){return this.nodes.some(t)}walk(t){return this.each(((e,i)=>{let r;try{r=t(e,i)}catch(t){throw e.addToError(t)}return!1!==r&&e.walk&&(r=e.walk(t)),r}))}walkAtRules(t,e){return e?t instanceof RegExp?this.walk(((i,r)=>{if("atrule"===i.type&&t.test(i.name))return e(i,r)})):this.walk(((i,r)=>{if("atrule"===i.type&&i.name===t)return e(i,r)})):(e=t,this.walk(((t,i)=>{if("atrule"===t.type)return e(t,i)})))}walkComments(t){return this.walk(((e,i)=>{if("comment"===e.type)return t(e,i)}))}walkDecls(t,e){return e?t instanceof RegExp?this.walk(((i,r)=>{if("decl"===i.type&&t.test(i.prop))return e(i,r)})):this.walk(((i,r)=>{if("decl"===i.type&&i.prop===t)return e(i,r)})):(e=t,this.walk(((t,i)=>{if("decl"===t.type)return e(t,i)})))}walkRules(t,e){return e?t instanceof RegExp?this.walk(((i,r)=>{if("rule"===i.type&&t.test(i.selector))return e(i,r)})):this.walk(((i,r)=>{if("rule"===i.type&&i.selector===t)return e(i,r)})):(e=t,this.walk(((t,i)=>{if("rule"===t.type)return e(t,i)})))}get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}}We.registerParse=t=>{Ne=t},We.registerRule=t=>{Pe=t},We.registerAtRule=t=>{Le=t},We.registerRoot=t=>{Ue=t};var Ze=We;We.default=We,We.rebuild=t=>{"atrule"===t.type?Object.setPrototypeOf(t,Le.prototype):"rule"===t.type?Object.setPrototypeOf(t,Pe.prototype):"decl"===t.type?Object.setPrototypeOf(t,$e.prototype):"comment"===t.type?Object.setPrototypeOf(t,_e.prototype):"root"===t.type&&Object.setPrototypeOf(t,Ue.prototype),t[He]=!0,t.nodes&&t.nodes.forEach((t=>{We.rebuild(t)}))};let Qe=Ze;class Je extends Qe{constructor(t){super(t),this.type="atrule"}append(...t){return this.proxyOf.nodes||(this.nodes=[]),super.append(...t)}prepend(...t){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...t)}}var Ye=Je;Je.default=Je,Qe.registerAtRule(Je);let Xe,Ke,ti=Ze;class ei extends ti{constructor(t){super({type:"document",...t}),this.nodes||(this.nodes=[])}toResult(t={}){return new Xe(new Ke,this,t).stringify()}}ei.registerLazyResult=t=>{Xe=t},ei.registerProcessor=t=>{Ke=t};var ii=ei;ei.default=ei;const ri=r(Object.freeze({__proto__:null,nanoid:(t=21)=>{let e="",i=0|t;for(;i--;)e+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64*Math.random()|0];return e},customAlphabet:(t,e=21)=>(i=e)=>{let r="",s=0|i;for(;s--;)r+=t[Math.random()*t.length|0];return r}}));let{existsSync:si,readFileSync:ni}=le,{dirname:oi,join:hi}=le,{SourceMapConsumer:ai,SourceMapGenerator:li}=le;class ci{constructor(t,e){if(!1===e.map)return;this.loadAnnotation(t),this.inline=this.startWith(this.annotation,"data:");let i=this.loadMap(e.from,e.map?e.map.prev:void 0);!this.mapFile&&e.from&&(this.mapFile=e.from),this.mapFile&&(this.root=oi(this.mapFile)),i&&(this.text=i)}consumer(){return this.consumerCache||(this.consumerCache=new ai(this.text)),this.consumerCache}decodeInline(t){let e=t.match(/^data:application\/json;charset=utf-?8,/)||t.match(/^data:application\/json,/);if(e)return decodeURIComponent(t.substr(e[0].length));let i=t.match(/^data:application\/json;charset=utf-?8;base64,/)||t.match(/^data:application\/json;base64,/);if(i)return r=t.substr(i[0].length),Buffer?Buffer.from(r,"base64").toString():window.atob(r);var r;let s=t.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+s)}getAnnotationURL(t){return t.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(t){return"object"==typeof t&&("string"==typeof t.mappings||"string"==typeof t._mappings||Array.isArray(t.sections))}loadAnnotation(t){let e=t.match(/\/\*\s*# sourceMappingURL=/g);if(!e)return;let i=t.lastIndexOf(e.pop()),r=t.indexOf("*/",i);i>-1&&r>-1&&(this.annotation=this.getAnnotationURL(t.substring(i,r)))}loadFile(t){if(this.root=oi(t),si(t))return this.mapFile=t,ni(t,"utf-8").toString().trim()}loadMap(t,e){if(!1===e)return!1;if(e){if("string"==typeof e)return e;if("function"!=typeof e){if(e instanceof ai)return li.fromSourceMap(e).toString();if(e instanceof li)return e.toString();if(this.isMap(e))return JSON.stringify(e);throw new Error("Unsupported previous source map format: "+e.toString())}{let i=e(t);if(i){let t=this.loadFile(i);if(!t)throw new Error("Unable to load previous source map: "+i.toString());return t}}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let e=this.annotation;return t&&(e=hi(oi(t),e)),this.loadFile(e)}}}startWith(t,e){return!!t&&t.substr(0,e.length)===e}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}}var ui=ci;ci.default=ci;let{nanoid:fi}=ri,{isAbsolute:di,resolve:pi}=le,{SourceMapConsumer:mi,SourceMapGenerator:gi}=le,{fileURLToPath:bi,pathToFileURL:wi}=le,vi=de,yi=ui,ki=le,Ei=Symbol("fromOffsetCache"),Si=Boolean(mi&&gi),Ai=Boolean(pi&&di);class xi{constructor(t,e={}){if(null==t||"object"==typeof t&&!t.toString)throw new Error(`PostCSS received ${t} instead of CSS string`);if(this.css=t.toString(),"\ufeff"===this.css[0]||""===this.css[0]?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,this.document=this.css,e.document&&(this.document=e.document.toString()),e.from&&(this.file=!Ai||/^\w+:\/\//.test(e.from)||di(e.from)?e.from:pi(e.from)),Ai&&Si){let t=new yi(this.css,e);if(t.text){this.map=t;let e=t.consumer().file;!this.file&&e&&(this.file=this.mapResolve(e))}}this.file||(this.id="<input css "+fi(6)+">"),this.map&&(this.map.file=this.from)}error(t,e,i,r={}){let s,n,o;if(e&&"object"==typeof e){let t=e,r=i;if("number"==typeof t.offset){let r=this.fromOffset(t.offset);e=r.line,i=r.col}else e=t.line,i=t.column;if("number"==typeof r.offset){let t=this.fromOffset(r.offset);n=t.line,s=t.col}else n=r.line,s=r.column}else if(!i){let t=this.fromOffset(e);e=t.line,i=t.col}let h=this.origin(e,i,n,s);return o=h?new vi(t,void 0===h.endLine?h.line:{column:h.column,line:h.line},void 0===h.endLine?h.column:{column:h.endColumn,line:h.endLine},h.source,h.file,r.plugin):new vi(t,void 0===n?e:{column:i,line:e},void 0===n?i:{column:s,line:n},this.css,this.file,r.plugin),o.input={column:i,endColumn:s,endLine:n,line:e,source:this.css},this.file&&(wi&&(o.input.url=wi(this.file).toString()),o.input.file=this.file),o}fromOffset(t){let e,i;if(this[Ei])i=this[Ei];else{let t=this.css.split("\n");i=new Array(t.length);let e=0;for(let r=0,s=t.length;r<s;r++)i[r]=e,e+=t[r].length+1;this[Ei]=i}e=i[i.length-1];let r=0;if(t>=e)r=i.length-1;else{let e,s=i.length-2;for(;r<s;)if(e=r+(s-r>>1),t<i[e])s=e-1;else{if(!(t>=i[e+1])){r=e;break}r=e+1}}return{col:t-i[r]+1,line:r+1}}mapResolve(t){return/^\w+:\/\//.test(t)?t:pi(this.map.consumer().sourceRoot||this.map.root||".",t)}origin(t,e,i,r){if(!this.map)return!1;let s,n,o=this.map.consumer(),h=o.originalPositionFor({column:e,line:t});if(!h.source)return!1;"number"==typeof i&&(s=o.originalPositionFor({column:r,line:i})),n=di(h.source)?wi(h.source):new URL(h.source,this.map.consumer().sourceRoot||wi(this.map.mapFile));let a={column:h.column,endColumn:s&&s.column,endLine:s&&s.line,line:h.line,url:n.toString()};if("file:"===n.protocol){if(!bi)throw new Error("file: protocol is not available in this PostCSS build");a.file=bi(n)}let l=o.sourceContentFor(h.source);return l&&(a.source=l),a}toJSON(){let t={};for(let e of["hasBOM","css","file","id"])null!=this[e]&&(t[e]=this[e]);return this.map&&(t.map={...this.map},t.map.consumerCache&&(t.map.consumerCache=void 0)),t}get from(){return this.file||this.id}}var qi=xi;xi.default=xi,ki&&ki.registerInput&&ki.registerInput(xi);let Ci,Ti,Bi=Ze;class Di extends Bi{constructor(t){super(t),this.type="root",this.nodes||(this.nodes=[])}normalize(t,e,i){let r=super.normalize(t);if(e)if("prepend"===i)this.nodes.length>1?e.raws.before=this.nodes[1].raws.before:delete e.raws.before;else if(this.first!==e)for(let t of r)t.raws.before=e.raws.before;return r}removeChild(t,e){let i=this.index(t);return!e&&0===i&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[i].raws.before),super.removeChild(t)}toResult(t={}){return new Ci(new Ti,this,t).stringify()}}Di.registerLazyResult=t=>{Ci=t},Di.registerProcessor=t=>{Ti=t};var Oi=Di;Di.default=Di,Bi.registerRoot(Di);let Ri={comma:t=>Ri.split(t,[","],!0),space:t=>Ri.split(t,[" ","\n","\t"]),split(t,e,i){let r=[],s="",n=!1,o=0,h=!1,a="",l=!1;for(let i of t)l?l=!1:"\\"===i?l=!0:h?i===a&&(h=!1):'"'===i||"'"===i?(h=!0,a=i):"("===i?o+=1:")"===i?o>0&&(o-=1):0===o&&e.includes(i)&&(n=!0),n?(""!==s&&r.push(s.trim()),s="",n=!1):s+=i;return(i||""!==s)&&r.push(s.trim()),r}};var ji=Ri;Ri.default=Ri;let Mi=Ze,Ii=ji;class Li extends Mi{constructor(t){super(t),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return Ii.comma(this.selector)}set selectors(t){let e=this.selector?this.selector.match(/,\s*/):null,i=e?e[0]:","+this.raw("between","beforeOpen");this.selector=t.join(i)}}var Ni=Li;Li.default=Li,Mi.registerRule(Li);let Ui=Ye,Pi=Re,_i=Ie,$i=qi,Fi=ui,Vi=Oi,Hi=Ni;function Gi(t,e){if(Array.isArray(t))return t.map((t=>Gi(t)));let{inputs:i,...r}=t;if(i){e=[];for(let t of i){let i={...t,__proto__:$i.prototype};i.map&&(i.map={...i.map,__proto__:Fi.prototype}),e.push(i)}}if(r.nodes&&(r.nodes=t.nodes.map((t=>Gi(t,e)))),r.source){let{inputId:t,...i}=r.source;r.source=i,null!=t&&(r.source.input=e[t])}if("root"===r.type)return new Vi(r);if("decl"===r.type)return new _i(r);if("rule"===r.type)return new Hi(r);if("comment"===r.type)return new Pi(r);if("atrule"===r.type)return new Ui(r);throw new Error("Unknown node type: "+t.type)}var zi=Gi;Gi.default=Gi;let{dirname:Wi,relative:Zi,resolve:Qi,sep:Ji}=le,{SourceMapConsumer:Yi,SourceMapGenerator:Xi}=le,{pathToFileURL:Ki}=le,tr=qi,er=Boolean(Yi&&Xi),ir=Boolean(Wi&&Qi&&Zi&&Ji);var rr=class{constructor(t,e,i,r){this.stringify=t,this.mapOpts=i.map||{},this.root=e,this.opts=i,this.css=r,this.originalCSS=r,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let t;t=this.isInline()?"data:application/json;base64,"+this.toBase64(this.map.toString()):"string"==typeof this.mapOpts.annotation?this.mapOpts.annotation:"function"==typeof this.mapOpts.annotation?this.mapOpts.annotation(this.opts.to,this.root):this.outputFile()+".map";let e="\n";this.css.includes("\r\n")&&(e="\r\n"),this.css+=e+"/*# sourceMappingURL="+t+" */"}applyPrevMaps(){for(let t of this.previous()){let e,i=this.toUrl(this.path(t.file)),r=t.root||Wi(t.file);!1===this.mapOpts.sourcesContent?(e=new Yi(t.text),e.sourcesContent&&(e.sourcesContent=null)):e=t.consumer(),this.map.applySourceMap(e,i,this.toUrl(this.path(r)))}}clearAnnotation(){if(!1!==this.mapOpts.annotation)if(this.root){let t;for(let e=this.root.nodes.length-1;e>=0;e--)t=this.root.nodes[e],"comment"===t.type&&t.text.startsWith("# sourceMappingURL=")&&this.root.removeChild(e)}else this.css&&(this.css=this.css.replace(/\n*\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),ir&&er&&this.isMap())return this.generateMap();{let t="";return this.stringify(this.root,(e=>{t+=e})),[t]}}generateMap(){if(this.root)this.generateString();else if(1===this.previous().length){let t=this.previous()[0].consumer();t.file=this.outputFile(),this.map=Xi.fromSourceMap(t,{ignoreInvalidMapping:!0})}else this.map=new Xi({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]}generateString(){this.css="",this.map=new Xi({file:this.outputFile(),ignoreInvalidMapping:!0});let t,e,i=1,r=1,s="<no source>",n={generated:{column:0,line:0},original:{column:0,line:0},source:""};this.stringify(this.root,((o,h,a)=>{if(this.css+=o,h&&"end"!==a&&(n.generated.line=i,n.generated.column=r-1,h.source&&h.source.start?(n.source=this.sourcePath(h),n.original.line=h.source.start.line,n.original.column=h.source.start.column-1,this.map.addMapping(n)):(n.source=s,n.original.line=1,n.original.column=0,this.map.addMapping(n))),e=o.match(/\n/g),e?(i+=e.length,t=o.lastIndexOf("\n"),r=o.length-t):r+=o.length,h&&"start"!==a){let t=h.parent||{raws:{}};("decl"===h.type||"atrule"===h.type&&!h.nodes)&&h===t.last&&!t.raws.semicolon||(h.source&&h.source.end?(n.source=this.sourcePath(h),n.original.line=h.source.end.line,n.original.column=h.source.end.column-1,n.generated.line=i,n.generated.column=r-2,this.map.addMapping(n)):(n.source=s,n.original.line=1,n.original.column=0,n.generated.line=i,n.generated.column=r-1,this.map.addMapping(n)))}}))}isAnnotation(){return!!this.isInline()||(void 0!==this.mapOpts.annotation?this.mapOpts.annotation:!this.previous().length||this.previous().some((t=>t.annotation)))}isInline(){if(void 0!==this.mapOpts.inline)return this.mapOpts.inline;let t=this.mapOpts.annotation;return(void 0===t||!0===t)&&(!this.previous().length||this.previous().some((t=>t.inline)))}isMap(){return void 0!==this.opts.map?!!this.opts.map:this.previous().length>0}isSourcesContent(){return void 0!==this.mapOpts.sourcesContent?this.mapOpts.sourcesContent:!this.previous().length||this.previous().some((t=>t.withContent()))}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(t){if(this.mapOpts.absolute)return t;if(60===t.charCodeAt(0))return t;if(/^\w+:\/\//.test(t))return t;let e=this.memoizedPaths.get(t);if(e)return e;let i=this.opts.to?Wi(this.opts.to):".";"string"==typeof this.mapOpts.annotation&&(i=Wi(Qi(i,this.mapOpts.annotation)));let r=Zi(i,t);return this.memoizedPaths.set(t,r),r}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk((t=>{if(t.source&&t.source.input.map){let e=t.source.input.map;this.previousMaps.includes(e)||this.previousMaps.push(e)}}));else{let t=new tr(this.originalCSS,this.opts);t.map&&this.previousMaps.push(t.map)}return this.previousMaps}setSourcesContent(){let t={};if(this.root)this.root.walk((e=>{if(e.source){let i=e.source.input.from;if(i&&!t[i]){t[i]=!0;let r=this.usesFileUrls?this.toFileUrl(i):this.toUrl(this.path(i));this.map.setSourceContent(r,e.source.input.css)}}}));else if(this.css){let t=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(t,this.css)}}sourcePath(t){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(t.source.input.from):this.toUrl(this.path(t.source.input.from))}toBase64(t){return Buffer?Buffer.from(t).toString("base64"):window.btoa(unescape(encodeURIComponent(t)))}toFileUrl(t){let e=this.memoizedFileURLs.get(t);if(e)return e;if(Ki){let e=Ki(t).toString();return this.memoizedFileURLs.set(t,e),e}throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(t){let e=this.memoizedURLs.get(t);if(e)return e;"\\"===Ji&&(t=t.replace(/\\/g,"/"));let i=encodeURI(t).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(t,i),i}};const sr="'".charCodeAt(0),nr='"'.charCodeAt(0),or="\\".charCodeAt(0),hr="/".charCodeAt(0),ar="\n".charCodeAt(0),lr=" ".charCodeAt(0),cr="\f".charCodeAt(0),ur="\t".charCodeAt(0),fr="\r".charCodeAt(0),dr="[".charCodeAt(0),pr="]".charCodeAt(0),mr="(".charCodeAt(0),gr=")".charCodeAt(0),br="{".charCodeAt(0),wr="}".charCodeAt(0),vr=";".charCodeAt(0),yr="*".charCodeAt(0),kr=":".charCodeAt(0),Er="@".charCodeAt(0),Sr=/[\t\n\f\r "#'()/;[\\\]{}]/g,Ar=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,xr=/.[\r\n"'(/\\]/,qr=/[\da-f]/i;let Cr=Ye,Tr=Re,Br=Ie,Dr=Oi,Or=Ni;const Rr={empty:!0,space:!0};let jr=Ze,Mr=qi,Ir=class{constructor(t){this.input=t,this.root=new Dr,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:t,start:{column:1,line:1,offset:0}}}atrule(t){let e,i,r,s=new Cr;s.name=t[1].slice(1),""===s.name&&this.unnamedAtrule(s,t),this.init(s,t[2]);let n=!1,o=!1,h=[],a=[];for(;!this.tokenizer.endOfFile();){if(e=(t=this.tokenizer.nextToken())[0],"("===e||"["===e?a.push("("===e?")":"]"):"{"===e&&a.length>0?a.push("}"):e===a[a.length-1]&&a.pop(),0===a.length){if(";"===e){s.source.end=this.getPosition(t[2]),s.source.end.offset++,this.semicolon=!0;break}if("{"===e){o=!0;break}if("}"===e){if(h.length>0){for(r=h.length-1,i=h[r];i&&"space"===i[0];)i=h[--r];i&&(s.source.end=this.getPosition(i[3]||i[2]),s.source.end.offset++)}this.end(t);break}h.push(t)}else h.push(t);if(this.tokenizer.endOfFile()){n=!0;break}}s.raws.between=this.spacesAndCommentsFromEnd(h),h.length?(s.raws.afterName=this.spacesAndCommentsFromStart(h),this.raw(s,"params",h),n&&(s.source.end=this.getPosition((t=h[h.length-1])[3]||t[2]),s.source.end.offset++,this.spaces=s.raws.between,s.raws.between="")):(s.raws.afterName="",s.params=""),o&&(s.nodes=[],this.current=s)}checkMissedSemicolon(t){let e=this.colon(t);if(!1===e)return;let i,r=0;for(let s=e-1;s>=0&&(i=t[s],"space"===i[0]||(r+=1,2!==r));s--);throw this.input.error("Missed semicolon","word"===i[0]?i[3]+1:i[2])}colon(t){let e,i,r,s=0;for(let[n,o]of t.entries()){if(i=o,r=i[0],"("===r&&(s+=1),")"===r&&(s-=1),0===s&&":"===r){if(e){if("word"===e[0]&&"progid"===e[1])continue;return n}this.doubleColon(i)}e=i}return!1}comment(t){let e=new Tr;this.init(e,t[2]),e.source.end=this.getPosition(t[3]||t[2]),e.source.end.offset++;let i=t[1].slice(2,-2);if(/^\s*$/.test(i))e.text="",e.raws.left=i,e.raws.right="";else{let t=i.match(/^(\s*)([^]*\S)(\s*)$/);e.text=t[2],e.raws.left=t[1],e.raws.right=t[3]}}createTokenizer(){this.tokenizer=function(t,e={}){let i,r,s,n,o,h,a,l,c,u,f=t.css.valueOf(),d=e.ignoreErrors,p=f.length,m=0,g=[],b=[];function w(e){throw t.error("Unclosed "+e,m)}return{back:function(t){b.push(t)},endOfFile:function(){return 0===b.length&&m>=p},nextToken:function(t){if(b.length)return b.pop();if(m>=p)return;let e=!!t&&t.ignoreUnclosed;switch(i=f.charCodeAt(m),i){case ar:case lr:case ur:case fr:case cr:n=m;do{n+=1,i=f.charCodeAt(n)}while(i===lr||i===ar||i===ur||i===fr||i===cr);h=["space",f.slice(m,n)],m=n-1;break;case dr:case pr:case br:case wr:case kr:case vr:case gr:{let t=String.fromCharCode(i);h=[t,t,m];break}case mr:if(u=g.length?g.pop()[1]:"",c=f.charCodeAt(m+1),"url"===u&&c!==sr&&c!==nr&&c!==lr&&c!==ar&&c!==ur&&c!==cr&&c!==fr){n=m;do{if(a=!1,n=f.indexOf(")",n+1),-1===n){if(d||e){n=m;break}w("bracket")}for(l=n;f.charCodeAt(l-1)===or;)l-=1,a=!a}while(a);h=["brackets",f.slice(m,n+1),m,n],m=n}else n=f.indexOf(")",m+1),r=f.slice(m,n+1),-1===n||xr.test(r)?h=["(","(",m]:(h=["brackets",r,m,n],m=n);break;case sr:case nr:o=i===sr?"'":'"',n=m;do{if(a=!1,n=f.indexOf(o,n+1),-1===n){if(d||e){n=m+1;break}w("string")}for(l=n;f.charCodeAt(l-1)===or;)l-=1,a=!a}while(a);h=["string",f.slice(m,n+1),m,n],m=n;break;case Er:Sr.lastIndex=m+1,Sr.test(f),n=0===Sr.lastIndex?f.length-1:Sr.lastIndex-2,h=["at-word",f.slice(m,n+1),m,n],m=n;break;case or:for(n=m,s=!0;f.charCodeAt(n+1)===or;)n+=1,s=!s;if(i=f.charCodeAt(n+1),s&&i!==hr&&i!==lr&&i!==ar&&i!==ur&&i!==fr&&i!==cr&&(n+=1,qr.test(f.charAt(n)))){for(;qr.test(f.charAt(n+1));)n+=1;f.charCodeAt(n+1)===lr&&(n+=1)}h=["word",f.slice(m,n+1),m,n],m=n;break;default:i===hr&&f.charCodeAt(m+1)===yr?(n=f.indexOf("*/",m+2)+1,0===n&&(d||e?n=f.length:w("comment")),h=["comment",f.slice(m,n+1),m,n],m=n):(Ar.lastIndex=m+1,Ar.test(f),n=0===Ar.lastIndex?f.length-1:Ar.lastIndex-2,h=["word",f.slice(m,n+1),m,n],g.push(h),m=n)}return m++,h},position:function(){return m}}}(this.input)}decl(t,e){let i=new Br;this.init(i,t[0][2]);let r,s=t[t.length-1];for(";"===s[0]&&(this.semicolon=!0,t.pop()),i.source.end=this.getPosition(s[3]||s[2]||function(t){for(let e=t.length-1;e>=0;e--){let i=t[e],r=i[3]||i[2];if(r)return r}}(t)),i.source.end.offset++;"word"!==t[0][0];)1===t.length&&this.unknownWord(t),i.raws.before+=t.shift()[1];for(i.source.start=this.getPosition(t[0][2]),i.prop="";t.length;){let e=t[0][0];if(":"===e||"space"===e||"comment"===e)break;i.prop+=t.shift()[1]}for(i.raws.between="";t.length;){if(r=t.shift(),":"===r[0]){i.raws.between+=r[1];break}"word"===r[0]&&/\w/.test(r[1])&&this.unknownWord([r]),i.raws.between+=r[1]}"_"!==i.prop[0]&&"*"!==i.prop[0]||(i.raws.before+=i.prop[0],i.prop=i.prop.slice(1));let n,o=[];for(;t.length&&(n=t[0][0],"space"===n||"comment"===n);)o.push(t.shift());this.precheckMissedSemicolon(t);for(let e=t.length-1;e>=0;e--){if(r=t[e],"!important"===r[1].toLowerCase()){i.important=!0;let r=this.stringFrom(t,e);r=this.spacesFromEnd(t)+r," !important"!==r&&(i.raws.important=r);break}if("important"===r[1].toLowerCase()){let r=t.slice(0),s="";for(let t=e;t>0;t--){let e=r[t][0];if(s.trim().startsWith("!")&&"space"!==e)break;s=r.pop()[1]+s}s.trim().startsWith("!")&&(i.important=!0,i.raws.important=s,t=r)}if("space"!==r[0]&&"comment"!==r[0])break}t.some((t=>"space"!==t[0]&&"comment"!==t[0]))&&(i.raws.between+=o.map((t=>t[1])).join(""),o=[]),this.raw(i,"value",o.concat(t),e),i.value.includes(":")&&!e&&this.checkMissedSemicolon(t)}doubleColon(t){throw this.input.error("Double colon",{offset:t[2]},{offset:t[2]+t[1].length})}emptyRule(t){let e=new Or;this.init(e,t[2]),e.selector="",e.raws.between="",this.current=e}end(t){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(t[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(t)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(t){if(this.spaces+=t[1],this.current.nodes){let e=this.current.nodes[this.current.nodes.length-1];e&&"rule"===e.type&&!e.raws.ownSemicolon&&(e.raws.ownSemicolon=this.spaces,this.spaces="",e.source.end=this.getPosition(t[2]),e.source.end.offset+=e.raws.ownSemicolon.length)}}getPosition(t){let e=this.input.fromOffset(t);return{column:e.col,line:e.line,offset:t}}init(t,e){this.current.push(t),t.source={input:this.input,start:this.getPosition(e)},t.raws.before=this.spaces,this.spaces="","comment"!==t.type&&(this.semicolon=!1)}other(t){let e=!1,i=null,r=!1,s=null,n=[],o=t[1].startsWith("--"),h=[],a=t;for(;a;){if(i=a[0],h.push(a),"("===i||"["===i)s||(s=a),n.push("("===i?")":"]");else if(o&&r&&"{"===i)s||(s=a),n.push("}");else if(0===n.length){if(";"===i){if(r)return void this.decl(h,o);break}if("{"===i)return void this.rule(h);if("}"===i){this.tokenizer.back(h.pop()),e=!0;break}":"===i&&(r=!0)}else i===n[n.length-1]&&(n.pop(),0===n.length&&(s=null));a=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(e=!0),n.length>0&&this.unclosedBracket(s),e&&r){if(!o)for(;h.length&&(a=h[h.length-1][0],"space"===a||"comment"===a);)this.tokenizer.back(h.pop());this.decl(h,o)}else this.unknownWord(h)}parse(){let t;for(;!this.tokenizer.endOfFile();)switch(t=this.tokenizer.nextToken(),t[0]){case"space":this.spaces+=t[1];break;case";":this.freeSemicolon(t);break;case"}":this.end(t);break;case"comment":this.comment(t);break;case"at-word":this.atrule(t);break;case"{":this.emptyRule(t);break;default:this.other(t)}this.endFile()}precheckMissedSemicolon(){}raw(t,e,i,r){let s,n,o,h,a=i.length,l="",c=!0;for(let t=0;t<a;t+=1)s=i[t],n=s[0],"space"!==n||t!==a-1||r?"comment"===n?(h=i[t-1]?i[t-1][0]:"empty",o=i[t+1]?i[t+1][0]:"empty",Rr[h]||Rr[o]||","===l.slice(-1)?c=!1:l+=s[1]):l+=s[1]:c=!1;if(!c){let r=i.reduce(((t,e)=>t+e[1]),"");t.raws[e]={raw:r,value:l}}t[e]=l}rule(t){t.pop();let e=new Or;this.init(e,t[0][2]),e.raws.between=this.spacesAndCommentsFromEnd(t),this.raw(e,"selector",t),this.current=e}spacesAndCommentsFromEnd(t){let e,i="";for(;t.length&&(e=t[t.length-1][0],"space"===e||"comment"===e);)i=t.pop()[1]+i;return i}spacesAndCommentsFromStart(t){let e,i="";for(;t.length&&(e=t[0][0],"space"===e||"comment"===e);)i+=t.shift()[1];return i}spacesFromEnd(t){let e,i="";for(;t.length&&(e=t[t.length-1][0],"space"===e);)i=t.pop()[1]+i;return i}stringFrom(t,e){let i="";for(let r=e;r<t.length;r++)i+=t[r][1];return t.splice(e,t.length-e),i}unclosedBlock(){let t=this.current.source.start;throw this.input.error("Unclosed block",t.line,t.column)}unclosedBracket(t){throw this.input.error("Unclosed bracket",{offset:t[2]},{offset:t[2]+1})}unexpectedClose(t){throw this.input.error("Unexpected }",{offset:t[2]},{offset:t[2]+1})}unknownWord(t){throw this.input.error("Unknown word",{offset:t[0][2]},{offset:t[0][2]+t[0][1].length})}unnamedAtrule(t,e){throw this.input.error("At-rule without name",{offset:e[2]},{offset:e[2]+e[1].length})}};function Lr(t,e){let i=new Mr(t,e),r=new Ir(i);try{r.parse()}catch(t){throw t}return r.root}var Nr=Lr;Lr.default=Lr,jr.registerParse(Lr);class Ur{constructor(t,e={}){if(this.type="warning",this.text=t,e.node&&e.node.source){let t=e.node.rangeBy(e);this.line=t.start.line,this.column=t.start.column,this.endLine=t.end.line,this.endColumn=t.end.column}for(let t in e)this[t]=e[t]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}}var Pr=Ur;Ur.default=Ur;let _r=Pr;class $r{constructor(t,e,i){this.processor=t,this.messages=[],this.root=e,this.opts=i,this.css=void 0,this.map=void 0}toString(){return this.css}warn(t,e={}){e.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(e.plugin=this.lastPlugin.postcssPlugin);let i=new _r(t,e);return this.messages.push(i),i}warnings(){return this.messages.filter((t=>"warning"===t.type))}get content(){return this.css}}var Fr=$r;$r.default=$r;let Vr=Ze,Hr=ii,Gr=rr,zr=Nr,Wr=Fr,Zr=Oi,Qr=ve,{isClean:Jr,my:Yr}=ye;const Xr={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},Kr={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},ts={Once:!0,postcssPlugin:!0,prepare:!0},es=0;function is(t){return"object"==typeof t&&"function"==typeof t.then}function rs(t){let e=!1,i=Xr[t.type];return"decl"===t.type?e=t.prop.toLowerCase():"atrule"===t.type&&(e=t.name.toLowerCase()),e&&t.append?[i,i+"-"+e,es,i+"Exit",i+"Exit-"+e]:e?[i,i+"-"+e,i+"Exit",i+"Exit-"+e]:t.append?[i,es,i+"Exit"]:[i,i+"Exit"]}function ss(t){let e;return e="document"===t.type?["Document",es,"DocumentExit"]:"root"===t.type?["Root",es,"RootExit"]:rs(t),{eventIndex:0,events:e,iterator:0,node:t,visitorIndex:0,visitors:[]}}function ns(t){return t[Jr]=!1,t.nodes&&t.nodes.forEach((t=>ns(t))),t}let os={};class hs{constructor(t,e,i){let r;if(this.stringified=!1,this.processed=!1,"object"!=typeof e||null===e||"root"!==e.type&&"document"!==e.type)if(e instanceof hs||e instanceof Wr)r=ns(e.root),e.map&&(void 0===i.map&&(i.map={}),i.map.inline||(i.map.inline=!1),i.map.prev=e.map);else{let t=zr;i.syntax&&(t=i.syntax.parse),i.parser&&(t=i.parser),t.parse&&(t=t.parse);try{r=t(e,i)}catch(t){this.processed=!0,this.error=t}r&&!r[Yr]&&Vr.rebuild(r)}else r=ns(e);this.result=new Wr(t,r,i),this.helpers={...os,postcss:os,result:this.result},this.plugins=this.processor.plugins.map((t=>"object"==typeof t&&t.prepare?{...t,...t.prepare(this.result)}:t))}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(t){return this.async().catch(t)}finally(t){return this.async().then(t,t)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(t,e){let i=this.result.lastPlugin;try{e&&e.addToError(t),this.error=t,"CssSyntaxError"!==t.name||t.plugin||(t.plugin=i.postcssPlugin,t.setMessage())}catch(t){console&&console.error&&console.error(t)}return t}prepareVisitors(){this.listeners={};let t=(t,e,i)=>{this.listeners[e]||(this.listeners[e]=[]),this.listeners[e].push([t,i])};for(let e of this.plugins)if("object"==typeof e)for(let i in e){if(!Kr[i]&&/^[A-Z]/.test(i))throw new Error(`Unknown event ${i} in ${e.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!ts[i])if("object"==typeof e[i])for(let r in e[i])t(e,"*"===r?i:i+"-"+r.toLowerCase(),e[i][r]);else"function"==typeof e[i]&&t(e,i,e[i])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let t=0;t<this.plugins.length;t++){let e=this.runOnRoot(this.plugins[t]);if(is(e))try{await e}catch(t){throw this.handleError(t)}}if(this.prepareVisitors(),this.hasListener){let t=this.result.root;for(;!t[Jr];){t[Jr]=!0;let e=[ss(t)];for(;e.length>0;){let t=this.visitTick(e);if(is(t))try{await t}catch(t){throw this.handleError(t,e[e.length-1].node)}}}if(this.listeners.OnceExit)for(let[e,i]of this.listeners.OnceExit){this.result.lastPlugin=e;try{if("document"===t.type){let e=t.nodes.map((t=>i(t,this.helpers)));await Promise.all(e)}else await i(t,this.helpers)}catch(t){throw this.handleError(t)}}}return this.processed=!0,this.stringify()}runOnRoot(t){this.result.lastPlugin=t;try{if("object"==typeof t&&t.Once){if("document"===this.result.root.type){let e=this.result.root.nodes.map((e=>t.Once(e,this.helpers)));return is(e[0])?Promise.all(e):e}return t.Once(this.result.root,this.helpers)}if("function"==typeof t)return t(this.result.root,this.result)}catch(t){throw this.handleError(t)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let t=this.result.opts,e=Qr;t.syntax&&(e=t.syntax.stringify),t.stringifier&&(e=t.stringifier),e.stringify&&(e=e.stringify);let i=new Gr(e,this.result.root,this.result.opts).generate();return this.result.css=i[0],this.result.map=i[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let t of this.plugins)if(is(this.runOnRoot(t)))throw this.getAsyncError();if(this.prepareVisitors(),this.hasListener){let t=this.result.root;for(;!t[Jr];)t[Jr]=!0,this.walkSync(t);if(this.listeners.OnceExit)if("document"===t.type)for(let e of t.nodes)this.visitSync(this.listeners.OnceExit,e);else this.visitSync(this.listeners.OnceExit,t)}return this.result}then(t,e){return this.async().then(t,e)}toString(){return this.css}visitSync(t,e){for(let[i,r]of t){let t;this.result.lastPlugin=i;try{t=r(e,this.helpers)}catch(t){throw this.handleError(t,e.proxyOf)}if("root"!==e.type&&"document"!==e.type&&!e.parent)return!0;if(is(t))throw this.getAsyncError()}}visitTick(t){let e=t[t.length-1],{node:i,visitors:r}=e;if("root"!==i.type&&"document"!==i.type&&!i.parent)return void t.pop();if(r.length>0&&e.visitorIndex<r.length){let[t,s]=r[e.visitorIndex];e.visitorIndex+=1,e.visitorIndex===r.length&&(e.visitors=[],e.visitorIndex=0),this.result.lastPlugin=t;try{return s(i.toProxy(),this.helpers)}catch(t){throw this.handleError(t,i)}}if(0!==e.iterator){let r,s=e.iterator;for(;r=i.nodes[i.indexes[s]];)if(i.indexes[s]+=1,!r[Jr])return r[Jr]=!0,void t.push(ss(r));e.iterator=0,delete i.indexes[s]}let s=e.events;for(;e.eventIndex<s.length;){let t=s[e.eventIndex];if(e.eventIndex+=1,t===es)return void(i.nodes&&i.nodes.length&&(i[Jr]=!0,e.iterator=i.getIterator()));if(this.listeners[t])return void(e.visitors=this.listeners[t])}t.pop()}walkSync(t){t[Jr]=!0;let e=rs(t);for(let i of e)if(i===es)t.nodes&&t.each((t=>{t[Jr]||this.walkSync(t)}));else{let e=this.listeners[i];if(e&&this.visitSync(e,t.toProxy()))return}}warnings(){return this.sync().warnings()}get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}}hs.registerPostcss=t=>{os=t};var as=hs;hs.default=hs,Zr.registerLazyResult(hs),Hr.registerLazyResult(hs);let ls=rr,cs=Nr;const us=Fr;let fs=ve;class ds{constructor(t,e,i){let r;e=e.toString(),this.stringified=!1,this._processor=t,this._css=e,this._opts=i,this._map=void 0;let s=fs;this.result=new us(this._processor,r,this._opts),this.result.css=e;let n=this;Object.defineProperty(this.result,"root",{get:()=>n.root});let o=new ls(s,r,this._opts,e);if(o.isMap()){let[t,e]=o.generate();t&&(this.result.css=t),e&&(this.result.map=e)}else o.clearAnnotation(),this.result.css=o.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(t){return this.async().catch(t)}finally(t){return this.async().then(t,t)}sync(){if(this.error)throw this.error;return this.result}then(t,e){return this.async().then(t,e)}toString(){return this._css}warnings(){return[]}get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let t,e=cs;try{t=e(this._css,this._opts)}catch(t){this.error=t}if(this.error)throw this.error;return this._root=t,t}get[Symbol.toStringTag](){return"NoWorkResult"}}var ps=ds;ds.default=ds;let ms=ii,gs=as,bs=ps,ws=Oi;class vs{constructor(t=[]){this.version="8.5.2",this.plugins=this.normalize(t)}normalize(t){let e=[];for(let i of t)if(!0===i.postcss?i=i():i.postcss&&(i=i.postcss),"object"==typeof i&&Array.isArray(i.plugins))e=e.concat(i.plugins);else if("object"==typeof i&&i.postcssPlugin)e.push(i);else if("function"==typeof i)e.push(i);else if("object"!=typeof i||!i.parse&&!i.stringify)throw new Error(i+" is not a PostCSS plugin");return e}process(t,e={}){return this.plugins.length||e.parser||e.stringifier||e.syntax?new gs(this,t,e):new bs(this,t,e)}use(t){return this.plugins=this.plugins.concat(this.normalize([t])),this}}var ys=vs;vs.default=vs,ws.registerProcessor(vs),ms.registerProcessor(vs);let ks=Ye,Es=Re,Ss=Ze,As=de,xs=Ie,qs=ii,Cs=zi,Ts=qi,Bs=as,Ds=ji,Os=Be,Rs=Nr,js=ys,Ms=Fr,Is=Oi,Ls=Ni,Ns=ve,Us=Pr;function Ps(...t){return 1===t.length&&Array.isArray(t[0])&&(t=t[0]),new js(t)}Ps.plugin=function(t,e){let i,r=!1;function s(...i){console&&console.warn&&!r&&(r=!0,console.warn(t+": postcss.plugin was deprecated. Migration guide:\nhttps://evilmartians.com/chronicles/postcss-8-plugin-migration"),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(t+": 里面 postcss.plugin 被弃用. 迁移指南:\nhttps://www.w3ctech.com/topic/2226"));let s=e(...i);return s.postcssPlugin=t,s.postcssVersion=(new js).version,s}return Object.defineProperty(s,"postcss",{get:()=>(i||(i=s()),i)}),s.process=function(t,e,i){return Ps([s(i)]).process(t,e)},s},Ps.stringify=Ns,Ps.parse=Rs,Ps.fromJSON=Cs,Ps.list=Ds,Ps.comment=t=>new Es(t),Ps.atRule=t=>new ks(t),Ps.decl=t=>new xs(t),Ps.rule=t=>new Ls(t),Ps.root=t=>new Is(t),Ps.document=t=>new qs(t),Ps.CssSyntaxError=As,Ps.Declaration=xs,Ps.Container=Ss,Ps.Processor=js,Ps.Document=qs,Ps.Comment=Es,Ps.Warning=Us,Ps.AtRule=ks,Ps.Result=Ms,Ps.Input=Ts,Ps.Rule=Ls,Ps.Root=Is,Ps.Node=Os,Bs.registerPostcss(Ps);var _s=Ps;Ps.default=Ps;const $s=Wt,Fs=t=>{if("string"!=typeof t)throw new TypeError("Expected a string");return t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")},{isPlainObject:Vs}=Qt,Hs=se,Gs=ne.exports,{parse:zs}=_s,Ws=["img","audio","video","picture","svg","object","map","iframe","embed"],Zs=["script","style"];function Qs(t,e){t&&Object.keys(t).forEach((function(i){e(t[i],i)}))}function Js(t,e){return{}.hasOwnProperty.call(t,e)}function Ys(t,e){const i=[];return Qs(t,(function(t){e(t)&&i.push(t)})),i}var Xs=tn;const Ks=/^[^\0\t\n\f\r /<=>]+$/;function tn(t,e){if(null==t)return"";"number"==typeof t&&(t=t.toString());let i="",r="";function s(t,e){const r=this;this.tag=t,this.attribs=e||{},this.tagPosition=i.length,this.text="",this.mediaChildren=[],this.updateParentNodeText=function(){m.length&&(m[m.length-1].text+=r.text)},this.updateParentNodeMediaChildren=function(){m.length&&Ws.includes(this.tag)&&m[m.length-1].mediaChildren.push(this.tag)}}(e=Object.assign({},tn.defaults,e)).parser=Object.assign({},en,e.parser);const n=function(t){return!1===e.allowedTags||(e.allowedTags||[]).indexOf(t)>-1};Zs.forEach((function(t){n(t)&&!e.allowVulnerableTags&&console.warn(`\n\n⚠️ Your \`allowedTags\` option includes, \`${t}\`, which is inherently\nvulnerable to XSS attacks. Please remove it from \`allowedTags\`.\nOr, to disable this warning, add the \`allowVulnerableTags\` option\nand ensure you are accounting for this risk.\n\n`)}));const o=e.nonTextTags||["script","style","textarea","option"];let h,a;e.allowedAttributes&&(h={},a={},Qs(e.allowedAttributes,(function(t,e){h[e]=[];const i=[];t.forEach((function(t){"string"==typeof t&&t.indexOf("*")>=0?i.push(Fs(t).replace(/\\\*/g,".*")):h[e].push(t)})),i.length&&(a[e]=new RegExp("^("+i.join("|")+")$"))})));const l={},c={},u={};Qs(e.allowedClasses,(function(t,e){if(h&&(Js(h,e)||(h[e]=[]),h[e].push("class")),l[e]=t,Array.isArray(t)){const i=[];l[e]=[],u[e]=[],t.forEach((function(t){"string"==typeof t&&t.indexOf("*")>=0?i.push(Fs(t).replace(/\\\*/g,".*")):t instanceof RegExp?u[e].push(t):l[e].push(t)})),i.length&&(c[e]=new RegExp("^("+i.join("|")+")$"))}}));const f={};let d,p,m,g,b,w,v;Qs(e.transformTags,(function(t,e){let i;"function"==typeof t?i=t:"string"==typeof t&&(i=tn.simpleTransform(t)),"*"===e?d=i:f[e]=i}));let y=!1;E();const k=new $s.Parser({onopentag:function(t,k){if(e.enforceHtmlBoundary&&"html"===t&&E(),w)return void v++;const q=new s(t,k);m.push(q);let C=!1;const T=!!q.text;let B;if(Js(f,t)&&(B=f[t](t,k),q.attribs=k=B.attribs,void 0!==B.text&&(q.innerText=B.text),t!==B.tagName&&(q.name=t=B.tagName,b[p]=B.tagName)),d&&(B=d(t,k),q.attribs=k=B.attribs,t!==B.tagName&&(q.name=t=B.tagName,b[p]=B.tagName)),(!n(t)||"recursiveEscape"===e.disallowedTagsMode&&!function(t){for(const e in t)if(Js(t,e))return!1;return!0}(g)||null!=e.nestingLimit&&p>=e.nestingLimit)&&(C=!0,g[p]=!0,"discard"!==e.disallowedTagsMode&&"completelyDiscard"!==e.disallowedTagsMode||-1!==o.indexOf(t)&&(w=!0,v=1),g[p]=!0),p++,C){if("discard"===e.disallowedTagsMode||"completelyDiscard"===e.disallowedTagsMode){if(q.innerText&&!T){const r=S(q.innerText);i+=e.textFilter?e.textFilter(r,t):S(q.innerText),y=!0}return}r=i,i=""}i+="<"+t,"script"===t&&(e.allowedScriptHostnames||e.allowedScriptDomains)&&(q.innerText=""),(!h||Js(h,t)||h["*"])&&Qs(k,(function(r,s){if(!Ks.test(s))return void delete q.attribs[s];if(""===r&&!e.allowedEmptyAttributes.includes(s)&&(e.nonBooleanAttributes.includes(s)||e.nonBooleanAttributes.includes("*")))return void delete q.attribs[s];let n=!1;if(!h||Js(h,t)&&-1!==h[t].indexOf(s)||h["*"]&&-1!==h["*"].indexOf(s)||Js(a,t)&&a[t].test(s)||a["*"]&&a["*"].test(s))n=!0;else if(h&&h[t])for(const e of h[t])if(Vs(e)&&e.name&&e.name===s){n=!0;let t="";if(!0===e.multiple){const i=r.split(" ");for(const r of i)-1!==e.values.indexOf(r)&&(""===t?t=r:t+=" "+r)}else e.values.indexOf(r)>=0&&(t=r);r=t}if(n){if(-1!==e.allowedSchemesAppliedToAttributes.indexOf(s)&&A(t,r))return void delete q.attribs[s];if("script"===t&&"src"===s){let t=!0;try{const i=x(r);if(e.allowedScriptHostnames||e.allowedScriptDomains){const r=(e.allowedScriptHostnames||[]).find((function(t){return t===i.url.hostname})),s=(e.allowedScriptDomains||[]).find((function(t){return i.url.hostname===t||i.url.hostname.endsWith(`.${t}`)}));t=r||s}}catch(e){t=!1}if(!t)return void delete q.attribs[s]}if("iframe"===t&&"src"===s){let t=!0;try{const i=x(r);if(i.isRelativeUrl)t=Js(e,"allowIframeRelativeUrls")?e.allowIframeRelativeUrls:!e.allowedIframeHostnames&&!e.allowedIframeDomains;else if(e.allowedIframeHostnames||e.allowedIframeDomains){const r=(e.allowedIframeHostnames||[]).find((function(t){return t===i.url.hostname})),s=(e.allowedIframeDomains||[]).find((function(t){return i.url.hostname===t||i.url.hostname.endsWith(`.${t}`)}));t=r||s}}catch(e){t=!1}if(!t)return void delete q.attribs[s]}if("srcset"===s)try{let t=Gs(r);if(t.forEach((function(t){A("srcset",t.url)&&(t.evil=!0)})),t=Ys(t,(function(t){return!t.evil})),!t.length)return void delete q.attribs[s];r=Ys(t,(function(t){return!t.evil})).map((function(t){if(!t.url)throw new Error("URL missing");return t.url+(t.w?` ${t.w}w`:"")+(t.h?` ${t.h}h`:"")+(t.d?` ${t.d}x`:"")})).join(", "),q.attribs[s]=r}catch(t){return void delete q.attribs[s]}if("class"===s){const e=l[t],i=l["*"],n=[c[t],c["*"]].concat(u[t],u["*"]).filter((function(t){return t}));if(!(o=r,f=e&&i?Hs(e,i):e||i,d=n,r=f?(o=o.split(/\s+/)).filter((function(t){return-1!==f.indexOf(t)||d.some((function(e){return e.test(t)}))})).join(" "):o).length)return void delete q.attribs[s]}if("style"===s)if(e.parseStyleAttributes)try{if(r=function(t){return t.nodes[0].nodes.reduce((function(t,e){return t.push(`${e.prop}:${e.value}${e.important?" !important":""}`),t}),[]).join(";")}(function(t,e){if(!e)return t;const i=t.nodes[0];let r;return r=e[i.selector]&&e["*"]?Hs(e[i.selector],e["*"]):e[i.selector]||e["*"],r&&(t.nodes[0].nodes=i.nodes.reduce(function(t){return function(e,i){return Js(t,i.prop)&&t[i.prop].some((function(t){return t.test(i.value)}))&&e.push(i),e}}(r),[])),t}(zs(t+" {"+r+"}",{map:!1}),e.allowedStyles)),0===r.length)return void delete q.attribs[s]}catch(e){return"undefined"!=typeof window&&console.warn('Failed to parse "'+t+" {"+r+"}\", If you're running this in a browser, we recommend to disable style parsing: options.parseStyleAttributes: false, since this only works in a node environment due to a postcss dependency, More info: https://github.com/apostrophecms/sanitize-html/issues/547"),void delete q.attribs[s]}else if(e.allowedStyles)throw new Error("allowedStyles option cannot be used together with parseStyleAttributes: false.");i+=" "+s,r&&r.length?i+='="'+S(r,!0)+'"':e.allowedEmptyAttributes.includes(s)&&(i+='=""')}else delete q.attribs[s];var o,f,d})),-1!==e.selfClosing.indexOf(t)?i+=" />":(i+=">",!q.innerText||T||e.textFilter||(i+=S(q.innerText),y=!0)),C&&(i=r+S(i),r="")},ontext:function(t){if(w)return;const r=m[m.length-1];let s;if(r&&(s=r.tag,t=void 0!==r.innerText?r.innerText:t),"completelyDiscard"!==e.disallowedTagsMode||n(s))if("discard"!==e.disallowedTagsMode&&"completelyDiscard"!==e.disallowedTagsMode||"script"!==s&&"style"!==s){const r=S(t,!1);e.textFilter&&!y?i+=e.textFilter(r,s):y||(i+=r)}else i+=t;else t="";m.length&&(m[m.length-1].text+=t)},onclosetag:function(t,s){if(w){if(v--,v)return;w=!1}const o=m.pop();if(!o)return;if(o.tag!==t)return void m.push(o);w=!!e.enforceHtmlBoundary&&"html"===t,p--;const h=g[p];if(h){if(delete g[p],"discard"===e.disallowedTagsMode||"completelyDiscard"===e.disallowedTagsMode)return void o.updateParentNodeText();r=i,i=""}b[p]&&(t=b[p],delete b[p]),e.exclusiveFilter&&e.exclusiveFilter(o)?i=i.substr(0,o.tagPosition):(o.updateParentNodeMediaChildren(),o.updateParentNodeText(),-1!==e.selfClosing.indexOf(t)||s&&!n(t)&&["escape","recursiveEscape"].indexOf(e.disallowedTagsMode)>=0?h&&(i=r,r=""):(i+="</"+t+">",h&&(i=r+S(i),r=""),y=!1))}},e.parser);return k.write(t),k.end(),i;function E(){i="",p=0,m=[],g={},b={},w=!1,v=0}function S(t,i){return"string"!=typeof t&&(t+=""),e.parser.decodeEntities&&(t=t.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">"),i&&(t=t.replace(/"/g,"""))),t=t.replace(/&(?![a-zA-Z0-9#]{1,20};)/g,"&").replace(/</g,"<").replace(/>/g,">"),i&&(t=t.replace(/"/g,""")),t}function A(t,i){for(i=i.replace(/[\x00-\x20]+/g,"");;){const t=i.indexOf("\x3c!--");if(-1===t)break;const e=i.indexOf("--\x3e",t+4);if(-1===e)break;i=i.substring(0,t)+i.substring(e+3)}const r=i.match(/^([a-zA-Z][a-zA-Z0-9.\-+]*):/);if(!r)return!!i.match(/^[/\\]{2}/)&&!e.allowProtocolRelative;const s=r[1].toLowerCase();return Js(e.allowedSchemesByTag,t)?-1===e.allowedSchemesByTag[t].indexOf(s):!e.allowedSchemes||-1===e.allowedSchemes.indexOf(s)}function x(t){if((t=t.replace(/^(\w+:)?\s*[\\/]\s*[\\/]/,"$1//")).startsWith("relative:"))throw new Error("relative: exploit attempt");let e="relative://relative-site";for(let t=0;t<100;t++)e+=`/${t}`;const i=new URL(t,e);return{isRelativeUrl:i&&"relative-site"===i.hostname&&"relative:"===i.protocol,url:i}}}const en={decodeEntities:!0};tn.defaults={allowedTags:["address","article","aside","footer","header","h1","h2","h3","h4","h5","h6","hgroup","main","nav","section","blockquote","dd","div","dl","dt","figcaption","figure","hr","li","main","ol","p","pre","ul","a","abbr","b","bdi","bdo","br","cite","code","data","dfn","em","i","kbd","mark","q","rb","rp","rt","rtc","ruby","s","samp","small","span","strong","sub","sup","time","u","var","wbr","caption","col","colgroup","table","tbody","td","tfoot","th","thead","tr"],nonBooleanAttributes:["abbr","accept","accept-charset","accesskey","action","allow","alt","as","autocapitalize","autocomplete","blocking","charset","cite","class","color","cols","colspan","content","contenteditable","coords","crossorigin","data","datetime","decoding","dir","dirname","download","draggable","enctype","enterkeyhint","fetchpriority","for","form","formaction","formenctype","formmethod","formtarget","headers","height","hidden","high","href","hreflang","http-equiv","id","imagesizes","imagesrcset","inputmode","integrity","is","itemid","itemprop","itemref","itemtype","kind","label","lang","list","loading","low","max","maxlength","media","method","min","minlength","name","nonce","optimum","pattern","ping","placeholder","popover","popovertarget","popovertargetaction","poster","preload","referrerpolicy","rel","rows","rowspan","sandbox","scope","shape","size","sizes","slot","span","spellcheck","src","srcdoc","srclang","srcset","start","step","style","tabindex","target","title","translate","type","usemap","value","width","wrap","onauxclick","onafterprint","onbeforematch","onbeforeprint","onbeforeunload","onbeforetoggle","onblur","oncancel","oncanplay","oncanplaythrough","onchange","onclick","onclose","oncontextlost","oncontextmenu","oncontextrestored","oncopy","oncuechange","oncut","ondblclick","ondrag","ondragend","ondragenter","ondragleave","ondragover","ondragstart","ondrop","ondurationchange","onemptied","onended","onerror","onfocus","onformdata","onhashchange","oninput","oninvalid","onkeydown","onkeypress","onkeyup","onlanguagechange","onload","onloadeddata","onloadedmetadata","onloadstart","onmessage","onmessageerror","onmousedown","onmouseenter","onmouseleave","onmousemove","onmouseout","onmouseover","onmouseup","onoffline","ononline","onpagehide","onpageshow","onpaste","onpause","onplay","onplaying","onpopstate","onprogress","onratechange","onreset","onresize","onrejectionhandled","onscroll","onscrollend","onsecuritypolicyviolation","onseeked","onseeking","onselect","onslotchange","onstalled","onstorage","onsubmit","onsuspend","ontimeupdate","ontoggle","onunhandledrejection","onunload","onvolumechange","onwaiting","onwheel"],disallowedTagsMode:"discard",allowedAttributes:{a:["href","name","target"],img:["src","srcset","alt","title","width","height","loading"]},allowedEmptyAttributes:["alt"],selfClosing:["img","br","hr","area","base","basefont","input","link","meta"],allowedSchemes:["http","https","ftp","mailto","tel"],allowedSchemesByTag:{},allowedSchemesAppliedToAttributes:["href","src","cite"],allowProtocolRelative:!0,enforceHtmlBoundary:!1,parseStyleAttributes:!0},tn.simpleTransform=function(t,e,i){return i=void 0===i||i,e=e||{},function(r,s){let n;if(i)for(n in e)s[n]=e[n];else s=e;return{tagName:t,attribs:s}}};const rn=Xs,sn=class{constructor(e){t(this,e),this.navigateViaEvent=!1,this.postMessageEvent=""}render(){const t=rn(this.customContent,{allowedTags:rn.defaults.allowedTags.concat(["img"]),allowedAttributes:{img:["src","srcset","alt","title","width","height","loading"]}});return e("div",{key:"894fdc79eb310d5a7cfde48445afd3d1d464359e",class:"CustomContentSectionContainer"},e("div",{key:"cfecce550a4e9b6b692ff12de96262e1413f8f2b",class:"CustomContentSectionWrapper"},e("div",{key:"1e76edcbb408a184848bda0c86a99d2467e3e081",class:"CustomContentSectionContent",innerHTML:t}),this.repeaterContent?e("image-list",{style:{width:"100%"},repeaterContent:this.repeaterContent?this.repeaterContent:null,"navigate-via-event":this.navigateViaEvent,"post-message-event":this.postMessageEvent}):""))}};sn.style=".sc-custom-content-section-h{display:block}*.sc-custom-content-section{margin:0}.CustomContentSectionWrapper.sc-custom-content-section{box-sizing:border-box;height:100%;align-items:center}";export{sn as custom_content_section}
|