@posthog/rrdom 0.0.8 → 0.0.10

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.
@@ -11,35 +11,35 @@
11
11
  }(this, () => {
12
12
  var exports = {};
13
13
  var module = { exports };
14
- "use strict";var $s=Object.defineProperty,Ps=Object.defineProperties;var Ls=Object.getOwnPropertyDescriptors;var K=Object.getOwnPropertySymbols;var ct=Object.prototype.hasOwnProperty,ft=Object.prototype.propertyIsEnumerable;var ht=(i,e,t)=>e in i?$s(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,N=(i,e)=>{for(var t in e||(e={}))ct.call(e,t)&&ht(i,t,e[t]);if(K)for(var t of K(e))ft.call(e,t)&&ht(i,t,e[t]);return i},F=(i,e)=>Ps(i,Ls(e));var Se=(i,e)=>{var t={};for(var s in i)ct.call(i,s)&&e.indexOf(s)<0&&(t[s]=i[s]);if(i!=null&&K)for(var s of K(i))e.indexOf(s)<0&&ft.call(i,s)&&(t[s]=i[s]);return t};var ks=Object.defineProperty,Us=(i,e,t)=>e in i?ks(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,c=(i,e,t)=>Us(i,typeof e!="symbol"?e+"":e,t);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var Bs=Object.defineProperty,Fs=(i,e,t)=>e in i?Bs(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,pt=(i,e,t)=>Fs(i,typeof e!="symbol"?e+"":e,t);let zs=class{constructor(){pt(this,"idNodeMap",new Map),pt(this,"nodeMetaMap",new WeakMap)}getId(e){var t;if(!e)return-1;const s=(t=this.getMeta(e))==null?void 0:t.id;return s!=null?s:-1}getNode(e){return this.idNodeMap.get(e)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(e){return this.nodeMetaMap.get(e)||null}removeNodeFromMap(e){const t=this.getId(e);this.idNodeMap.delete(t),e.childNodes&&e.childNodes.forEach(s=>this.removeNodeFromMap(s))}has(e){return this.idNodeMap.has(e)}hasNode(e){return this.nodeMetaMap.has(e)}add(e,t){const s=t.id;this.idNodeMap.set(s,e),this.nodeMetaMap.set(e,t)}replace(e,t){const s=this.getNode(e);if(s){const r=this.nodeMetaMap.get(s);r&&this.nodeMetaMap.set(t,r)}this.idNodeMap.set(e,t)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}};function Ws(){return new zs}function js(i){return i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}function Gs(i){if(i.__esModule)return i;var e=i.default;if(typeof e=="function"){var t=function s(){return this instanceof s?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};t.prototype=e.prototype}else t={};return Object.defineProperty(t,"__esModule",{value:!0}),Object.keys(i).forEach(function(s){var r=Object.getOwnPropertyDescriptor(i,s);Object.defineProperty(t,s,r.get?r:{enumerable:!0,get:function(){return i[s]}})}),t}var Ye={exports:{}},p=String,_t=function(){return{isColorSupported:!1,reset:p,bold:p,dim:p,italic:p,underline:p,inverse:p,hidden:p,strikethrough:p,black:p,red:p,green:p,yellow:p,blue:p,magenta:p,cyan:p,white:p,gray:p,bgBlack:p,bgRed:p,bgGreen:p,bgYellow:p,bgBlue:p,bgMagenta:p,bgCyan:p,bgWhite:p,blackBright:p,redBright:p,greenBright:p,yellowBright:p,blueBright:p,magentaBright:p,cyanBright:p,whiteBright:p,bgBlackBright:p,bgRedBright:p,bgGreenBright:p,bgYellowBright:p,bgBlueBright:p,bgMagentaBright:p,bgCyanBright:p,bgWhiteBright:p}};Ye.exports=_t();Ye.exports.createColors=_t;var Vs=Ye.exports;const Ys={},Hs=Object.freeze(Object.defineProperty({__proto__:null,default:Ys},Symbol.toStringTag,{value:"Module"})),O=Gs(Hs);let mt=Vs,dt=O,Ae=class Tt extends Error{constructor(e,t,s,r,n,o){super(e),this.name="CssSyntaxError",this.reason=e,n&&(this.file=n),r&&(this.source=r),o&&(this.plugin=o),typeof t!="undefined"&&typeof s!="undefined"&&(typeof t=="number"?(this.line=t,this.column=s):(this.line=t.line,this.column=t.column,this.endLine=s.line,this.endColumn=s.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,Tt)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line!="undefined"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(e){if(!this.source)return"";let t=this.source;e==null&&(e=mt.isColorSupported);let s=u=>u,r=u=>u,n=u=>u;if(e){let{bold:u,gray:m,red:d}=mt.createColors(!0);r=w=>u(d(w)),s=w=>m(w),dt&&(n=w=>dt(w))}let o=t.split(/\r?\n/),a=Math.max(this.line-3,0),l=Math.min(this.line+2,o.length),h=String(l).length;return o.slice(a,l).map((u,m)=>{let d=a+1+m,w=" "+(" "+d).slice(-h)+" | ";if(d===this.line){if(u.length>160){let S=20,f=Math.max(0,this.column-S),D=Math.max(this.column+S,this.endColumn+S),E=u.slice(f,D),b=s(w.replace(/\d/g," "))+u.slice(0,Math.min(this.column-1,S-1)).replace(/[^\t]/g," ");return r(">")+s(w)+n(E)+`
15
- `+b+r("^")}let x=s(w.replace(/\d/g," "))+u.slice(0,this.column-1).replace(/[^\t]/g," ");return r(">")+s(w)+n(u)+`
16
- `+x+r("^")}return" "+s(w)+n(u)}).join(`
17
- `)}toString(){let e=this.showSourceCode();return e&&(e=`
14
+ "use strict";var Sr=Object.defineProperty,Nr=Object.defineProperties;var Or=Object.getOwnPropertyDescriptors;var ee=Object.getOwnPropertySymbols;var ht=Object.prototype.hasOwnProperty,ft=Object.prototype.propertyIsEnumerable;var ct=(t,e,i)=>e in t?Sr(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,k=(t,e)=>{for(var i in e||(e={}))ht.call(e,i)&&ct(t,i,e[i]);if(ee)for(var i of ee(e))ft.call(e,i)&&ct(t,i,e[i]);return t},Y=(t,e)=>Nr(t,Or(e));var de=(t,e)=>{var i={};for(var c in t)ht.call(t,c)&&e.indexOf(c)<0&&(i[c]=t[c]);if(t!=null&&ee)for(var c of ee(t))e.indexOf(c)<0&&ft.call(t,c)&&(i[c]=t[c]);return i};var Dr=Object.defineProperty,Ar=(t,e,i)=>e in t?Dr(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,x=(t,e,i)=>Ar(t,typeof e!="symbol"?e+"":e,i);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var Mr=Object.defineProperty,_r=(t,e,i)=>e in t?Mr(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,pt=(t,e,i)=>_r(t,typeof e!="symbol"?e+"":e,i);let Tr=class{constructor(){pt(this,"idNodeMap",new Map),pt(this,"nodeMetaMap",new WeakMap)}getId(e){var i;if(!e)return-1;const c=(i=this.getMeta(e))==null?void 0:i.id;return c!=null?c:-1}getNode(e){return this.idNodeMap.get(e)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(e){return this.nodeMetaMap.get(e)||null}removeNodeFromMap(e){const i=this.getId(e);this.idNodeMap.delete(i),e.childNodes&&e.childNodes.forEach(c=>this.removeNodeFromMap(c))}has(e){return this.idNodeMap.has(e)}hasNode(e){return this.nodeMetaMap.has(e)}add(e,i){const c=i.id;this.idNodeMap.set(c,e),this.nodeMetaMap.set(e,i)}replace(e,i){const c=this.getNode(e);if(c){const s=this.nodeMetaMap.get(c);s&&this.nodeMetaMap.set(i,s)}this.idNodeMap.set(e,i)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}};function Ir(){return new Tr}function Pr(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function Lr(t){if(t.__esModule)return t;var e=t.default;if(typeof e=="function"){var i=function c(){return this instanceof c?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};i.prototype=e.prototype}else i={};return Object.defineProperty(i,"__esModule",{value:!0}),Object.keys(t).forEach(function(c){var s=Object.getOwnPropertyDescriptor(t,c);Object.defineProperty(i,c,s.get?s:{enumerable:!0,get:function(){return t[c]}})}),i}var te={exports:{}},dt;function kr(){if(dt)return te.exports;dt=1;var t=String,e=function(){return{isColorSupported:!1,reset:t,bold:t,dim:t,italic:t,underline:t,inverse:t,hidden:t,strikethrough:t,black:t,red:t,green:t,yellow:t,blue:t,magenta:t,cyan:t,white:t,gray:t,bgBlack:t,bgRed:t,bgGreen:t,bgYellow:t,bgBlue:t,bgMagenta:t,bgCyan:t,bgWhite:t,blackBright:t,redBright:t,greenBright:t,yellowBright:t,blueBright:t,magentaBright:t,cyanBright:t,whiteBright:t,bgBlackBright:t,bgRedBright:t,bgGreenBright:t,bgYellowBright:t,bgBlueBright:t,bgMagentaBright:t,bgCyanBright:t,bgWhiteBright:t}};return te.exports=e(),te.exports.createColors=e,te.exports}const Br={},Ur=Object.freeze(Object.defineProperty({__proto__:null,default:Br},Symbol.toStringTag,{value:"Module"})),B=Lr(Ur);var me,mt;function Ve(){if(mt)return me;mt=1;let t=kr(),e=B;class i extends Error{constructor(s,l,o,p,g,f){super(s),this.name="CssSyntaxError",this.reason=s,g&&(this.file=g),p&&(this.source=p),f&&(this.plugin=f),typeof l!="undefined"&&typeof o!="undefined"&&(typeof l=="number"?(this.line=l,this.column=o):(this.line=l.line,this.column=l.column,this.endLine=o.line,this.endColumn=o.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,i)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line!="undefined"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(s){if(!this.source)return"";let l=this.source;s==null&&(s=t.isColorSupported);let o=n=>n,p=n=>n,g=n=>n;if(s){let{bold:n,gray:d,red:h}=t.createColors(!0);p=m=>n(h(m)),o=m=>d(m),e&&(g=m=>e(m))}let f=l.split(/\r?\n/),r=Math.max(this.line-3,0),u=Math.min(this.line+2,f.length),a=String(u).length;return f.slice(r,u).map((n,d)=>{let h=r+1+d,m=" "+(" "+h).slice(-a)+" | ";if(h===this.line){if(n.length>160){let w=20,E=Math.max(0,this.column-w),v=Math.max(this.column+w,this.endColumn+w),R=n.slice(E,v),y=o(m.replace(/\d/g," "))+n.slice(0,Math.min(this.column-1,w-1)).replace(/[^\t]/g," ");return p(">")+o(m)+g(R)+`
15
+ `+y+p("^")}let b=o(m.replace(/\d/g," "))+n.slice(0,this.column-1).replace(/[^\t]/g," ");return p(">")+o(m)+g(n)+`
16
+ `+b+p("^")}return" "+o(m)+g(n)}).join(`
17
+ `)}toString(){let s=this.showSourceCode();return s&&(s=`
18
18
 
19
- `+e+`
20
- `),this.name+": "+this.message+e}};var He=Ae;Ae.default=Ae;const gt={after:`
19
+ `+s+`
20
+ `),this.name+": "+this.message+s}}return me=i,i.default=i,me}var ge,gt;function Vt(){if(gt)return ge;gt=1;const t={after:`
21
21
  `,beforeClose:`
22
22
  `,beforeComment:`
23
23
  `,beforeDecl:`
24
24
  `,beforeOpen:" ",beforeRule:`
25
- `,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function Js(i){return i[0].toUpperCase()+i.slice(1)}let Me=class{constructor(e){this.builder=e}atrule(e,t){let s="@"+e.name,r=e.params?this.rawValue(e,"params"):"";if(typeof e.raws.afterName!="undefined"?s+=e.raws.afterName:r&&(s+=" "),e.nodes)this.block(e,s+r);else{let n=(e.raws.between||"")+(t?";":"");this.builder(s+r+n,e)}}beforeAfter(e,t){let s;e.type==="decl"?s=this.raw(e,null,"beforeDecl"):e.type==="comment"?s=this.raw(e,null,"beforeComment"):t==="before"?s=this.raw(e,null,"beforeRule"):s=this.raw(e,null,"beforeClose");let r=e.parent,n=0;for(;r&&r.type!=="root";)n+=1,r=r.parent;if(s.includes(`
26
- `)){let o=this.raw(e,null,"indent");if(o.length)for(let a=0;a<n;a++)s+=o}return s}block(e,t){let s=this.raw(e,"between","beforeOpen");this.builder(t+s+"{",e,"start");let r;e.nodes&&e.nodes.length?(this.body(e),r=this.raw(e,"after")):r=this.raw(e,"after","emptyBody"),r&&this.builder(r),this.builder("}",e,"end")}body(e){let t=e.nodes.length-1;for(;t>0&&e.nodes[t].type==="comment";)t-=1;let s=this.raw(e,"semicolon");for(let r=0;r<e.nodes.length;r++){let n=e.nodes[r],o=this.raw(n,"before");o&&this.builder(o),this.stringify(n,t!==r||s)}}comment(e){let t=this.raw(e,"left","commentLeft"),s=this.raw(e,"right","commentRight");this.builder("/*"+t+e.text+s+"*/",e)}decl(e,t){let s=this.raw(e,"between","colon"),r=e.prop+s+this.rawValue(e,"value");e.important&&(r+=e.raws.important||" !important"),t&&(r+=";"),this.builder(r,e)}document(e){this.body(e)}raw(e,t,s){let r;if(s||(s=t),t&&(r=e.raws[t],typeof r!="undefined"))return r;let n=e.parent;if(s==="before"&&(!n||n.type==="root"&&n.first===e||n&&n.type==="document"))return"";if(!n)return gt[s];let o=e.root();if(o.rawCache||(o.rawCache={}),typeof o.rawCache[s]!="undefined")return o.rawCache[s];if(s==="before"||s==="after")return this.beforeAfter(e,s);{let a="raw"+Js(s);this[a]?r=this[a](o,e):o.walk(l=>{if(r=l.raws[t],typeof r!="undefined")return!1})}return typeof r=="undefined"&&(r=gt[s]),o.rawCache[s]=r,r}rawBeforeClose(e){let t;return e.walk(s=>{if(s.nodes&&s.nodes.length>0&&typeof s.raws.after!="undefined")return t=s.raws.after,t.includes(`
27
- `)&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t}rawBeforeComment(e,t){let s;return e.walkComments(r=>{if(typeof r.raws.before!="undefined")return s=r.raws.before,s.includes(`
28
- `)&&(s=s.replace(/[^\n]+$/,"")),!1}),typeof s=="undefined"?s=this.raw(t,null,"beforeDecl"):s&&(s=s.replace(/\S/g,"")),s}rawBeforeDecl(e,t){let s;return e.walkDecls(r=>{if(typeof r.raws.before!="undefined")return s=r.raws.before,s.includes(`
29
- `)&&(s=s.replace(/[^\n]+$/,"")),!1}),typeof s=="undefined"?s=this.raw(t,null,"beforeRule"):s&&(s=s.replace(/\S/g,"")),s}rawBeforeOpen(e){let t;return e.walk(s=>{if(s.type!=="decl"&&(t=s.raws.between,typeof t!="undefined"))return!1}),t}rawBeforeRule(e){let t;return e.walk(s=>{if(s.nodes&&(s.parent!==e||e.first!==s)&&typeof s.raws.before!="undefined")return t=s.raws.before,t.includes(`
30
- `)&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t}rawColon(e){let t;return e.walkDecls(s=>{if(typeof s.raws.between!="undefined")return t=s.raws.between.replace(/[^\s:]/g,""),!1}),t}rawEmptyBody(e){let t;return e.walk(s=>{if(s.nodes&&s.nodes.length===0&&(t=s.raws.after,typeof t!="undefined"))return!1}),t}rawIndent(e){if(e.raws.indent)return e.raws.indent;let t;return e.walk(s=>{let r=s.parent;if(r&&r!==e&&r.parent&&r.parent===e&&typeof s.raws.before!="undefined"){let n=s.raws.before.split(`
31
- `);return t=n[n.length-1],t=t.replace(/\S/g,""),!1}}),t}rawSemicolon(e){let t;return e.walk(s=>{if(s.nodes&&s.nodes.length&&s.last.type==="decl"&&(t=s.raws.semicolon,typeof t!="undefined"))return!1}),t}rawValue(e,t){let s=e[t],r=e.raws[t];return r&&r.value===s?r.raw:s}root(e){this.body(e),e.raws.after&&this.builder(e.raws.after)}rule(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")}stringify(e,t){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,t)}};var It=Me;Me.default=Me;let Xs=It;function _e(i,e){new Xs(e).stringify(i)}var ge=_e;_e.default=_e;var X={};X.isClean=Symbol("isClean");X.my=Symbol("my");let Zs=He,Qs=It,qs=ge,{isClean:z,my:Ks}=X;function Te(i,e){let t=new i.constructor;for(let s in i){if(!Object.prototype.hasOwnProperty.call(i,s)||s==="proxyCache")continue;let r=i[s],n=typeof r;s==="parent"&&n==="object"?e&&(t[s]=e):s==="source"?t[s]=r:Array.isArray(r)?t[s]=r.map(o=>Te(o,t)):(n==="object"&&r!==null&&(r=Te(r)),t[s]=r)}return t}function W(i,e){if(e&&typeof e.offset!="undefined")return e.offset;let t=1,s=1,r=0;for(let n=0;n<i.length;n++){if(s===e.line&&t===e.column){r=n;break}i[n]===`
32
- `?(t=1,s+=1):t+=1}return r}let Ie=class{constructor(e={}){this.raws={},this[z]=!1,this[Ks]=!0;for(let t in e)if(t==="nodes"){this.nodes=[];for(let s of e[t])typeof s.clone=="function"?this.append(s.clone()):this.append(s)}else this[t]=e[t]}addToError(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){let t=this.source;e.stack=e.stack.replace(/\n\s{4}at /,`$&${t.input.from}:${t.start.line}:${t.start.column}$&`)}return e}after(e){return this.parent.insertAfter(this,e),this}assign(e={}){for(let t in e)this[t]=e[t];return this}before(e){return this.parent.insertBefore(this,e),this}cleanRaws(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between}clone(e={}){let t=Te(this);for(let s in e)t[s]=e[s];return t}cloneAfter(e={}){let t=this.clone(e);return this.parent.insertAfter(this,t),t}cloneBefore(e={}){let t=this.clone(e);return this.parent.insertBefore(this,t),t}error(e,t={}){if(this.source){let{end:s,start:r}=this.rangeBy(t);return this.source.input.error(e,{column:r.column,line:r.line},{column:s.column,line:s.line},t)}return new Zs(e)}getProxyProcessor(){return{get(e,t){return t==="proxyOf"?e:t==="root"?()=>e.root().toProxy():e[t]},set(e,t,s){return e[t]===s||(e[t]=s,(t==="prop"||t==="value"||t==="name"||t==="params"||t==="important"||t==="text")&&e.markDirty()),!0}}}markClean(){this[z]=!0}markDirty(){if(this[z]){this[z]=!1;let e=this;for(;e=e.parent;)e[z]=!1}}next(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e+1]}positionBy(e){let t=this.source.start;if(e.index)t=this.positionInside(e.index);else if(e.word){let s="document"in this.source.input?this.source.input.document:this.source.input.css,n=s.slice(W(s,this.source.start),W(s,this.source.end)).indexOf(e.word);n!==-1&&(t=this.positionInside(n))}return t}positionInside(e){let t=this.source.start.column,s=this.source.start.line,r="document"in this.source.input?this.source.input.document:this.source.input.css,n=W(r,this.source.start),o=n+e;for(let a=n;a<o;a++)r[a]===`
33
- `?(t=1,s+=1):t+=1;return{column:t,line:s}}prev(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e-1]}rangeBy(e){let t={column:this.source.start.column,line:this.source.start.line},s=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:t.column+1,line:t.line};if(e.word){let r="document"in this.source.input?this.source.input.document:this.source.input.css,o=r.slice(W(r,this.source.start),W(r,this.source.end)).indexOf(e.word);o!==-1&&(t=this.positionInside(o),s=this.positionInside(o+e.word.length))}else e.start?t={column:e.start.column,line:e.start.line}:e.index&&(t=this.positionInside(e.index)),e.end?s={column:e.end.column,line:e.end.line}:typeof e.endIndex=="number"?s=this.positionInside(e.endIndex):e.index&&(s=this.positionInside(e.index+1));return(s.line<t.line||s.line===t.line&&s.column<=t.column)&&(s={column:t.column+1,line:t.line}),{end:s,start:t}}raw(e,t){return new Qs().raw(this,e,t)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...e){if(this.parent){let t=this,s=!1;for(let r of e)r===this?s=!0:s?(this.parent.insertAfter(t,r),t=r):this.parent.insertBefore(t,r);s||this.remove()}return this}root(){let e=this;for(;e.parent&&e.parent.type!=="document";)e=e.parent;return e}toJSON(e,t){let s={},r=t==null;t=t||new Map;let n=0;for(let o in this){if(!Object.prototype.hasOwnProperty.call(this,o)||o==="parent"||o==="proxyCache")continue;let a=this[o];if(Array.isArray(a))s[o]=a.map(l=>typeof l=="object"&&l.toJSON?l.toJSON(null,t):l);else if(typeof a=="object"&&a.toJSON)s[o]=a.toJSON(null,t);else if(o==="source"){let l=t.get(a.input);l==null&&(l=n,t.set(a.input,n),n++),s[o]={end:a.end,inputId:l,start:a.start}}else s[o]=a}return r&&(s.inputs=[...t.keys()].map(o=>o.toJSON())),s}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(e=qs){e.stringify&&(e=e.stringify);let t="";return e(this,s=>{t+=s}),t}warn(e,t,s){let r={node:this};for(let n in s)r[n]=s[n];return e.warn(t,r)}get proxyOf(){return this}};var we=Ie;Ie.default=Ie;let er=we,$e=class extends er{constructor(e){super(e),this.type="comment"}};var ye=$e;$e.default=$e;let tr=we,Pe=class extends tr{constructor(e){e&&typeof e.value!="undefined"&&typeof e.value!="string"&&(e=F(N({},e),{value:String(e.value)})),super(e),this.type="decl"}get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}};var Re=Pe;Pe.default=Pe;let $t=ye,Pt=Re,sr=we,{isClean:Lt,my:kt}=X,Je,Ut,Bt,Xe;function Ft(i){return i.map(e=>(e.nodes&&(e.nodes=Ft(e.nodes)),delete e.source,e))}function zt(i){if(i[Lt]=!1,i.proxyOf.nodes)for(let e of i.proxyOf.nodes)zt(e)}let T=class Wt extends sr{append(...e){for(let t of e){let s=this.normalize(t,this.last);for(let r of s)this.proxyOf.nodes.push(r)}return this.markDirty(),this}cleanRaws(e){if(super.cleanRaws(e),this.nodes)for(let t of this.nodes)t.cleanRaws(e)}each(e){if(!this.proxyOf.nodes)return;let t=this.getIterator(),s,r;for(;this.indexes[t]<this.proxyOf.nodes.length&&(s=this.indexes[t],r=e(this.proxyOf.nodes[s],s),r!==!1);)this.indexes[t]+=1;return delete this.indexes[t],r}every(e){return this.nodes.every(e)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let e=this.lastEach;return this.indexes[e]=0,e}getProxyProcessor(){return{get(e,t){return t==="proxyOf"?e:e[t]?t==="each"||typeof t=="string"&&t.startsWith("walk")?(...s)=>e[t](...s.map(r=>typeof r=="function"?(n,o)=>r(n.toProxy(),o):r)):t==="every"||t==="some"?s=>e[t]((r,...n)=>s(r.toProxy(),...n)):t==="root"?()=>e.root().toProxy():t==="nodes"?e.nodes.map(s=>s.toProxy()):t==="first"||t==="last"?e[t].toProxy():e[t]:e[t]},set(e,t,s){return e[t]===s||(e[t]=s,(t==="name"||t==="params"||t==="selector")&&e.markDirty()),!0}}}index(e){return typeof e=="number"?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))}insertAfter(e,t){let s=this.index(e),r=this.normalize(t,this.proxyOf.nodes[s]).reverse();s=this.index(e);for(let o of r)this.proxyOf.nodes.splice(s+1,0,o);let n;for(let o in this.indexes)n=this.indexes[o],s<n&&(this.indexes[o]=n+r.length);return this.markDirty(),this}insertBefore(e,t){let s=this.index(e),r=s===0?"prepend":!1,n=this.normalize(t,this.proxyOf.nodes[s],r).reverse();s=this.index(e);for(let a of n)this.proxyOf.nodes.splice(s,0,a);let o;for(let a in this.indexes)o=this.indexes[a],s<=o&&(this.indexes[a]=o+n.length);return this.markDirty(),this}normalize(e,t){if(typeof e=="string")e=Ft(Ut(e).nodes);else if(typeof e=="undefined")e=[];else if(Array.isArray(e)){e=e.slice(0);for(let r of e)r.parent&&r.parent.removeChild(r,"ignore")}else if(e.type==="root"&&this.type!=="document"){e=e.nodes.slice(0);for(let r of e)r.parent&&r.parent.removeChild(r,"ignore")}else if(e.type)e=[e];else if(e.prop){if(typeof e.value=="undefined")throw new Error("Value field is missed in node creation");typeof e.value!="string"&&(e.value=String(e.value)),e=[new Pt(e)]}else if(e.selector||e.selectors)e=[new Xe(e)];else if(e.name)e=[new Je(e)];else if(e.text)e=[new $t(e)];else throw new Error("Unknown node type in node creation");return e.map(r=>(r[kt]||Wt.rebuild(r),r=r.proxyOf,r.parent&&r.parent.removeChild(r),r[Lt]&&zt(r),r.raws||(r.raws={}),typeof r.raws.before=="undefined"&&t&&typeof t.raws.before!="undefined"&&(r.raws.before=t.raws.before.replace(/\S/g,"")),r.parent=this.proxyOf,r))}prepend(...e){e=e.reverse();for(let t of e){let s=this.normalize(t,this.first,"prepend").reverse();for(let r of s)this.proxyOf.nodes.unshift(r);for(let r in this.indexes)this.indexes[r]=this.indexes[r]+s.length}return this.markDirty(),this}push(e){return e.parent=this,this.proxyOf.nodes.push(e),this}removeAll(){for(let e of this.proxyOf.nodes)e.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(e){e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1);let t;for(let s in this.indexes)t=this.indexes[s],t>=e&&(this.indexes[s]=t-1);return this.markDirty(),this}replaceValues(e,t,s){return s||(s=t,t={}),this.walkDecls(r=>{t.props&&!t.props.includes(r.prop)||t.fast&&!r.value.includes(t.fast)||(r.value=r.value.replace(e,s))}),this.markDirty(),this}some(e){return this.nodes.some(e)}walk(e){return this.each((t,s)=>{let r;try{r=e(t,s)}catch(n){throw t.addToError(n)}return r!==!1&&t.walk&&(r=t.walk(e)),r})}walkAtRules(e,t){return t?e instanceof RegExp?this.walk((s,r)=>{if(s.type==="atrule"&&e.test(s.name))return t(s,r)}):this.walk((s,r)=>{if(s.type==="atrule"&&s.name===e)return t(s,r)}):(t=e,this.walk((s,r)=>{if(s.type==="atrule")return t(s,r)}))}walkComments(e){return this.walk((t,s)=>{if(t.type==="comment")return e(t,s)})}walkDecls(e,t){return t?e instanceof RegExp?this.walk((s,r)=>{if(s.type==="decl"&&e.test(s.prop))return t(s,r)}):this.walk((s,r)=>{if(s.type==="decl"&&s.prop===e)return t(s,r)}):(t=e,this.walk((s,r)=>{if(s.type==="decl")return t(s,r)}))}walkRules(e,t){return t?e instanceof RegExp?this.walk((s,r)=>{if(s.type==="rule"&&e.test(s.selector))return t(s,r)}):this.walk((s,r)=>{if(s.type==="rule"&&s.selector===e)return t(s,r)}):(t=e,this.walk((s,r)=>{if(s.type==="rule")return t(s,r)}))}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]}};T.registerParse=i=>{Ut=i};T.registerRule=i=>{Xe=i};T.registerAtRule=i=>{Je=i};T.registerRoot=i=>{Bt=i};var I=T;T.default=T;T.rebuild=i=>{i.type==="atrule"?Object.setPrototypeOf(i,Je.prototype):i.type==="rule"?Object.setPrototypeOf(i,Xe.prototype):i.type==="decl"?Object.setPrototypeOf(i,Pt.prototype):i.type==="comment"?Object.setPrototypeOf(i,$t.prototype):i.type==="root"&&Object.setPrototypeOf(i,Bt.prototype),i[kt]=!0,i.nodes&&i.nodes.forEach(e=>{T.rebuild(e)})};let jt=I,ce=class extends jt{constructor(e){super(e),this.type="atrule"}append(...e){return this.proxyOf.nodes||(this.nodes=[]),super.append(...e)}prepend(...e){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...e)}};var Ze=ce;ce.default=ce;jt.registerAtRule(ce);let rr=I,Gt,Vt,V=class extends rr{constructor(e){super(N({type:"document"},e)),this.nodes||(this.nodes=[])}toResult(e={}){return new Gt(new Vt,this,e).stringify()}};V.registerLazyResult=i=>{Gt=i};V.registerProcessor=i=>{Vt=i};var Qe=V;V.default=V;let ir="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",nr=(i,e=21)=>(t=e)=>{let s="",r=t|0;for(;r--;)s+=i[Math.random()*i.length|0];return s},or=(i=21)=>{let e="",t=i|0;for(;t--;)e+=ir[Math.random()*64|0];return e};var lr={nanoid:or,customAlphabet:nr};let{existsSync:ar,readFileSync:ur}=O,{dirname:ve,join:hr}=O,{SourceMapConsumer:wt,SourceMapGenerator:yt}=O;function cr(i){return Buffer?Buffer.from(i,"base64").toString():window.atob(i)}let Le=class{constructor(e,t){if(t.map===!1)return;this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");let s=t.map?t.map.prev:void 0,r=this.loadMap(t.from,s);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=ve(this.mapFile)),r&&(this.text=r)}consumer(){return this.consumerCache||(this.consumerCache=new wt(this.text)),this.consumerCache}decodeInline(e){let t=/^data:application\/json;charset=utf-?8;base64,/,s=/^data:application\/json;base64,/,r=/^data:application\/json;charset=utf-?8,/,n=/^data:application\/json,/,o=e.match(r)||e.match(n);if(o)return decodeURIComponent(e.substr(o[0].length));let a=e.match(t)||e.match(s);if(a)return cr(e.substr(a[0].length));let l=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+l)}getAnnotationURL(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(e){return typeof e!="object"?!1:typeof e.mappings=="string"||typeof e._mappings=="string"||Array.isArray(e.sections)}loadAnnotation(e){let t=e.match(/\/\*\s*# sourceMappingURL=/g);if(!t)return;let s=e.lastIndexOf(t.pop()),r=e.indexOf("*/",s);s>-1&&r>-1&&(this.annotation=this.getAnnotationURL(e.substring(s,r)))}loadFile(e){if(this.root=ve(e),ar(e))return this.mapFile=e,ur(e,"utf-8").toString().trim()}loadMap(e,t){if(t===!1)return!1;if(t){if(typeof t=="string")return t;if(typeof t=="function"){let s=t(e);if(s){let r=this.loadFile(s);if(!r)throw new Error("Unable to load previous source map: "+s.toString());return r}}else{if(t instanceof wt)return yt.fromSourceMap(t).toString();if(t instanceof yt)return t.toString();if(this.isMap(t))return JSON.stringify(t);throw new Error("Unsupported previous source map format: "+t.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let s=this.annotation;return e&&(s=hr(ve(e),s)),this.loadFile(s)}}}startWith(e,t){return e?e.substr(0,t.length)===t:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}};var Yt=Le;Le.default=Le;let{nanoid:fr}=lr,{isAbsolute:ke,resolve:Ue}=O,{SourceMapConsumer:pr,SourceMapGenerator:mr}=O,{fileURLToPath:Rt,pathToFileURL:ee}=O,Et=He,dr=Yt,Ne=O,Oe=Symbol("fromOffsetCache"),gr=!!(pr&&mr),bt=!!(Ue&&ke),fe=class{constructor(e,t={}){if(e===null||typeof e=="undefined"||typeof e=="object"&&!e.toString)throw new Error(`PostCSS received ${e} instead of CSS string`);if(this.css=e.toString(),this.css[0]==="\uFEFF"||this.css[0]==="\uFFFE"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,this.document=this.css,t.document&&(this.document=t.document.toString()),t.from&&(!bt||/^\w+:\/\//.test(t.from)||ke(t.from)?this.file=t.from:this.file=Ue(t.from)),bt&&gr){let s=new dr(this.css,t);if(s.text){this.map=s;let r=s.consumer().file;!this.file&&r&&(this.file=this.mapResolve(r))}}this.file||(this.id="<input css "+fr(6)+">"),this.map&&(this.map.file=this.from)}error(e,t,s,r={}){let n,o,a;if(t&&typeof t=="object"){let h=t,u=s;if(typeof h.offset=="number"){let m=this.fromOffset(h.offset);t=m.line,s=m.col}else t=h.line,s=h.column;if(typeof u.offset=="number"){let m=this.fromOffset(u.offset);o=m.line,n=m.col}else o=u.line,n=u.column}else if(!s){let h=this.fromOffset(t);t=h.line,s=h.col}let l=this.origin(t,s,o,n);return l?a=new Et(e,l.endLine===void 0?l.line:{column:l.column,line:l.line},l.endLine===void 0?l.column:{column:l.endColumn,line:l.endLine},l.source,l.file,r.plugin):a=new Et(e,o===void 0?t:{column:s,line:t},o===void 0?s:{column:n,line:o},this.css,this.file,r.plugin),a.input={column:s,endColumn:n,endLine:o,line:t,source:this.css},this.file&&(ee&&(a.input.url=ee(this.file).toString()),a.input.file=this.file),a}fromOffset(e){let t,s;if(this[Oe])s=this[Oe];else{let n=this.css.split(`
34
- `);s=new Array(n.length);let o=0;for(let a=0,l=n.length;a<l;a++)s[a]=o,o+=n[a].length+1;this[Oe]=s}t=s[s.length-1];let r=0;if(e>=t)r=s.length-1;else{let n=s.length-2,o;for(;r<n;)if(o=r+(n-r>>1),e<s[o])n=o-1;else if(e>=s[o+1])r=o+1;else{r=o;break}}return{col:e-s[r]+1,line:r+1}}mapResolve(e){return/^\w+:\/\//.test(e)?e:Ue(this.map.consumer().sourceRoot||this.map.root||".",e)}origin(e,t,s,r){if(!this.map)return!1;let n=this.map.consumer(),o=n.originalPositionFor({column:t,line:e});if(!o.source)return!1;let a;typeof s=="number"&&(a=n.originalPositionFor({column:r,line:s}));let l;ke(o.source)?l=ee(o.source):l=new URL(o.source,this.map.consumer().sourceRoot||ee(this.map.mapFile));let h={column:o.column,endColumn:a&&a.column,endLine:a&&a.line,line:o.line,url:l.toString()};if(l.protocol==="file:")if(Rt)h.file=Rt(l);else throw new Error("file: protocol is not available in this PostCSS build");let u=n.sourceContentFor(o.source);return u&&(h.source=u),h}toJSON(){let e={};for(let t of["hasBOM","css","file","id"])this[t]!=null&&(e[t]=this[t]);return this.map&&(e.map=N({},this.map),e.map.consumerCache&&(e.map.consumerCache=void 0)),e}get from(){return this.file||this.id}};var Ee=fe;fe.default=fe;Ne&&Ne.registerInput&&Ne.registerInput(fe);let Ht=I,Jt,Xt,L=class extends Ht{constructor(e){super(e),this.type="root",this.nodes||(this.nodes=[])}normalize(e,t,s){let r=super.normalize(e);if(t){if(s==="prepend")this.nodes.length>1?t.raws.before=this.nodes[1].raws.before:delete t.raws.before;else if(this.first!==t)for(let n of r)n.raws.before=t.raws.before}return r}removeChild(e,t){let s=this.index(e);return!t&&s===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[s].raws.before),super.removeChild(e)}toResult(e={}){return new Jt(new Xt,this,e).stringify()}};L.registerLazyResult=i=>{Jt=i};L.registerProcessor=i=>{Xt=i};var Z=L;L.default=L;Ht.registerRoot(L);let Y={comma(i){return Y.split(i,[","],!0)},space(i){let e=[" ",`
35
- `," "];return Y.split(i,e)},split(i,e,t){let s=[],r="",n=!1,o=0,a=!1,l="",h=!1;for(let u of i)h?h=!1:u==="\\"?h=!0:a?u===l&&(a=!1):u==='"'||u==="'"?(a=!0,l=u):u==="("?o+=1:u===")"?o>0&&(o-=1):o===0&&e.includes(u)&&(n=!0),n?(r!==""&&s.push(r.trim()),r="",n=!1):r+=u;return(t||r!=="")&&s.push(r.trim()),s}};var Zt=Y;Y.default=Y;let Qt=I,wr=Zt,pe=class extends Qt{constructor(e){super(e),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return wr.comma(this.selector)}set selectors(e){let t=this.selector?this.selector.match(/,\s*/):null,s=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(s)}};var qe=pe;pe.default=pe;Qt.registerRule(pe);let yr=Ze,Rr=ye,Er=Re,br=Ee,Cr=Yt,xr=Z,Sr=qe;function H(i,e){if(Array.isArray(i))return i.map(o=>H(o));let r=i,{inputs:t}=r,s=Se(r,["inputs"]);if(t){e=[];for(let o of t){let a=F(N({},o),{__proto__:br.prototype});a.map&&(a.map=F(N({},a.map),{__proto__:Cr.prototype})),e.push(a)}}if(s.nodes&&(s.nodes=i.nodes.map(o=>H(o,e))),s.source){let n=s.source,{inputId:o}=n,a=Se(n,["inputId"]);s.source=a,o!=null&&(s.source.input=e[o])}if(s.type==="root")return new xr(s);if(s.type==="decl")return new Er(s);if(s.type==="rule")return new Sr(s);if(s.type==="comment")return new Rr(s);if(s.type==="atrule")return new yr(s);throw new Error("Unknown node type: "+i.type)}var vr=H;H.default=H;let{dirname:ae,relative:qt,resolve:Kt,sep:es}=O,{SourceMapConsumer:ts,SourceMapGenerator:ue}=O,{pathToFileURL:Ct}=O,Nr=Ee,Or=!!(ts&&ue),Dr=!!(ae&&Kt&&qt&&es),Ar=class{constructor(e,t,s,r){this.stringify=e,this.mapOpts=s.map||{},this.root=t,this.opts=s,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 e;this.isInline()?e="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?e=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?e=this.mapOpts.annotation(this.opts.to,this.root):e=this.outputFile()+".map";let t=`
25
+ `,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function e(c){return c[0].toUpperCase()+c.slice(1)}class i{constructor(s){this.builder=s}atrule(s,l){let o="@"+s.name,p=s.params?this.rawValue(s,"params"):"";if(typeof s.raws.afterName!="undefined"?o+=s.raws.afterName:p&&(o+=" "),s.nodes)this.block(s,o+p);else{let g=(s.raws.between||"")+(l?";":"");this.builder(o+p+g,s)}}beforeAfter(s,l){let o;s.type==="decl"?o=this.raw(s,null,"beforeDecl"):s.type==="comment"?o=this.raw(s,null,"beforeComment"):l==="before"?o=this.raw(s,null,"beforeRule"):o=this.raw(s,null,"beforeClose");let p=s.parent,g=0;for(;p&&p.type!=="root";)g+=1,p=p.parent;if(o.includes(`
26
+ `)){let f=this.raw(s,null,"indent");if(f.length)for(let r=0;r<g;r++)o+=f}return o}block(s,l){let o=this.raw(s,"between","beforeOpen");this.builder(l+o+"{",s,"start");let p;s.nodes&&s.nodes.length?(this.body(s),p=this.raw(s,"after")):p=this.raw(s,"after","emptyBody"),p&&this.builder(p),this.builder("}",s,"end")}body(s){let l=s.nodes.length-1;for(;l>0&&s.nodes[l].type==="comment";)l-=1;let o=this.raw(s,"semicolon");for(let p=0;p<s.nodes.length;p++){let g=s.nodes[p],f=this.raw(g,"before");f&&this.builder(f),this.stringify(g,l!==p||o)}}comment(s){let l=this.raw(s,"left","commentLeft"),o=this.raw(s,"right","commentRight");this.builder("/*"+l+s.text+o+"*/",s)}decl(s,l){let o=this.raw(s,"between","colon"),p=s.prop+o+this.rawValue(s,"value");s.important&&(p+=s.raws.important||" !important"),l&&(p+=";"),this.builder(p,s)}document(s){this.body(s)}raw(s,l,o){let p;if(o||(o=l),l&&(p=s.raws[l],typeof p!="undefined"))return p;let g=s.parent;if(o==="before"&&(!g||g.type==="root"&&g.first===s||g&&g.type==="document"))return"";if(!g)return t[o];let f=s.root();if(f.rawCache||(f.rawCache={}),typeof f.rawCache[o]!="undefined")return f.rawCache[o];if(o==="before"||o==="after")return this.beforeAfter(s,o);{let r="raw"+e(o);this[r]?p=this[r](f,s):f.walk(u=>{if(p=u.raws[l],typeof p!="undefined")return!1})}return typeof p=="undefined"&&(p=t[o]),f.rawCache[o]=p,p}rawBeforeClose(s){let l;return s.walk(o=>{if(o.nodes&&o.nodes.length>0&&typeof o.raws.after!="undefined")return l=o.raws.after,l.includes(`
27
+ `)&&(l=l.replace(/[^\n]+$/,"")),!1}),l&&(l=l.replace(/\S/g,"")),l}rawBeforeComment(s,l){let o;return s.walkComments(p=>{if(typeof p.raws.before!="undefined")return o=p.raws.before,o.includes(`
28
+ `)&&(o=o.replace(/[^\n]+$/,"")),!1}),typeof o=="undefined"?o=this.raw(l,null,"beforeDecl"):o&&(o=o.replace(/\S/g,"")),o}rawBeforeDecl(s,l){let o;return s.walkDecls(p=>{if(typeof p.raws.before!="undefined")return o=p.raws.before,o.includes(`
29
+ `)&&(o=o.replace(/[^\n]+$/,"")),!1}),typeof o=="undefined"?o=this.raw(l,null,"beforeRule"):o&&(o=o.replace(/\S/g,"")),o}rawBeforeOpen(s){let l;return s.walk(o=>{if(o.type!=="decl"&&(l=o.raws.between,typeof l!="undefined"))return!1}),l}rawBeforeRule(s){let l;return s.walk(o=>{if(o.nodes&&(o.parent!==s||s.first!==o)&&typeof o.raws.before!="undefined")return l=o.raws.before,l.includes(`
30
+ `)&&(l=l.replace(/[^\n]+$/,"")),!1}),l&&(l=l.replace(/\S/g,"")),l}rawColon(s){let l;return s.walkDecls(o=>{if(typeof o.raws.between!="undefined")return l=o.raws.between.replace(/[^\s:]/g,""),!1}),l}rawEmptyBody(s){let l;return s.walk(o=>{if(o.nodes&&o.nodes.length===0&&(l=o.raws.after,typeof l!="undefined"))return!1}),l}rawIndent(s){if(s.raws.indent)return s.raws.indent;let l;return s.walk(o=>{let p=o.parent;if(p&&p!==s&&p.parent&&p.parent===s&&typeof o.raws.before!="undefined"){let g=o.raws.before.split(`
31
+ `);return l=g[g.length-1],l=l.replace(/\S/g,""),!1}}),l}rawSemicolon(s){let l;return s.walk(o=>{if(o.nodes&&o.nodes.length&&o.last.type==="decl"&&(l=o.raws.semicolon,typeof l!="undefined"))return!1}),l}rawValue(s,l){let o=s[l],p=s.raws[l];return p&&p.value===o?p.raw:o}root(s){this.body(s),s.raws.after&&this.builder(s.raws.after)}rule(s){this.block(s,this.rawValue(s,"selector")),s.raws.ownSemicolon&&this.builder(s.raws.ownSemicolon,s,"end")}stringify(s,l){if(!this[s.type])throw new Error("Unknown AST node type "+s.type+". Maybe you need to change PostCSS stringifier.");this[s.type](s,l)}}return ge=i,i.default=i,ge}var we,wt;function ne(){if(wt)return we;wt=1;let t=Vt();function e(i,c){new t(c).stringify(i)}return we=e,e.default=e,we}var re={},yt;function Ye(){return yt||(yt=1,re.isClean=Symbol("isClean"),re.my=Symbol("my")),re}var ye,Rt;function oe(){if(Rt)return ye;Rt=1;let t=Ve(),e=Vt(),i=ne(),{isClean:c,my:s}=Ye();function l(g,f){let r=new g.constructor;for(let u in g){if(!Object.prototype.hasOwnProperty.call(g,u)||u==="proxyCache")continue;let a=g[u],n=typeof a;u==="parent"&&n==="object"?f&&(r[u]=f):u==="source"?r[u]=a:Array.isArray(a)?r[u]=a.map(d=>l(d,r)):(n==="object"&&a!==null&&(a=l(a)),r[u]=a)}return r}function o(g,f){if(f&&typeof f.offset!="undefined")return f.offset;let r=1,u=1,a=0;for(let n=0;n<g.length;n++){if(u===f.line&&r===f.column){a=n;break}g[n]===`
32
+ `?(r=1,u+=1):r+=1}return a}class p{constructor(f={}){this.raws={},this[c]=!1,this[s]=!0;for(let r in f)if(r==="nodes"){this.nodes=[];for(let u of f[r])typeof u.clone=="function"?this.append(u.clone()):this.append(u)}else this[r]=f[r]}addToError(f){if(f.postcssNode=this,f.stack&&this.source&&/\n\s{4}at /.test(f.stack)){let r=this.source;f.stack=f.stack.replace(/\n\s{4}at /,`$&${r.input.from}:${r.start.line}:${r.start.column}$&`)}return f}after(f){return this.parent.insertAfter(this,f),this}assign(f={}){for(let r in f)this[r]=f[r];return this}before(f){return this.parent.insertBefore(this,f),this}cleanRaws(f){delete this.raws.before,delete this.raws.after,f||delete this.raws.between}clone(f={}){let r=l(this);for(let u in f)r[u]=f[u];return r}cloneAfter(f={}){let r=this.clone(f);return this.parent.insertAfter(this,r),r}cloneBefore(f={}){let r=this.clone(f);return this.parent.insertBefore(this,r),r}error(f,r={}){if(this.source){let{end:u,start:a}=this.rangeBy(r);return this.source.input.error(f,{column:a.column,line:a.line},{column:u.column,line:u.line},r)}return new t(f)}getProxyProcessor(){return{get(f,r){return r==="proxyOf"?f:r==="root"?()=>f.root().toProxy():f[r]},set(f,r,u){return f[r]===u||(f[r]=u,(r==="prop"||r==="value"||r==="name"||r==="params"||r==="important"||r==="text")&&f.markDirty()),!0}}}markClean(){this[c]=!0}markDirty(){if(this[c]){this[c]=!1;let f=this;for(;f=f.parent;)f[c]=!1}}next(){if(!this.parent)return;let f=this.parent.index(this);return this.parent.nodes[f+1]}positionBy(f){let r=this.source.start;if(f.index)r=this.positionInside(f.index);else if(f.word){let u="document"in this.source.input?this.source.input.document:this.source.input.css,n=u.slice(o(u,this.source.start),o(u,this.source.end)).indexOf(f.word);n!==-1&&(r=this.positionInside(n))}return r}positionInside(f){let r=this.source.start.column,u=this.source.start.line,a="document"in this.source.input?this.source.input.document:this.source.input.css,n=o(a,this.source.start),d=n+f;for(let h=n;h<d;h++)a[h]===`
33
+ `?(r=1,u+=1):r+=1;return{column:r,line:u}}prev(){if(!this.parent)return;let f=this.parent.index(this);return this.parent.nodes[f-1]}rangeBy(f){let r={column:this.source.start.column,line:this.source.start.line},u=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:r.column+1,line:r.line};if(f.word){let a="document"in this.source.input?this.source.input.document:this.source.input.css,d=a.slice(o(a,this.source.start),o(a,this.source.end)).indexOf(f.word);d!==-1&&(r=this.positionInside(d),u=this.positionInside(d+f.word.length))}else f.start?r={column:f.start.column,line:f.start.line}:f.index&&(r=this.positionInside(f.index)),f.end?u={column:f.end.column,line:f.end.line}:typeof f.endIndex=="number"?u=this.positionInside(f.endIndex):f.index&&(u=this.positionInside(f.index+1));return(u.line<r.line||u.line===r.line&&u.column<=r.column)&&(u={column:r.column+1,line:r.line}),{end:u,start:r}}raw(f,r){return new e().raw(this,f,r)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...f){if(this.parent){let r=this,u=!1;for(let a of f)a===this?u=!0:u?(this.parent.insertAfter(r,a),r=a):this.parent.insertBefore(r,a);u||this.remove()}return this}root(){let f=this;for(;f.parent&&f.parent.type!=="document";)f=f.parent;return f}toJSON(f,r){let u={},a=r==null;r=r||new Map;let n=0;for(let d in this){if(!Object.prototype.hasOwnProperty.call(this,d)||d==="parent"||d==="proxyCache")continue;let h=this[d];if(Array.isArray(h))u[d]=h.map(m=>typeof m=="object"&&m.toJSON?m.toJSON(null,r):m);else if(typeof h=="object"&&h.toJSON)u[d]=h.toJSON(null,r);else if(d==="source"){let m=r.get(h.input);m==null&&(m=n,r.set(h.input,n),n++),u[d]={end:h.end,inputId:m,start:h.start}}else u[d]=h}return a&&(u.inputs=[...r.keys()].map(d=>d.toJSON())),u}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(f=i){f.stringify&&(f=f.stringify);let r="";return f(this,u=>{r+=u}),r}warn(f,r,u){let a={node:this};for(let n in u)a[n]=u[n];return f.warn(r,a)}get proxyOf(){return this}}return ye=p,p.default=p,ye}var Re,Et;function H(){if(Et)return Re;Et=1;let t=oe();class e extends t{constructor(c){super(c),this.type="comment"}}return Re=e,e.default=e,Re}var Ee,bt;function le(){if(bt)return Ee;bt=1;let t=oe();class e extends t{constructor(c){c&&typeof c.value!="undefined"&&typeof c.value!="string"&&(c=Y(k({},c),{value:String(c.value)})),super(c),this.type="decl"}get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}}return Ee=e,e.default=e,Ee}var be,Ct;function W(){if(Ct)return be;Ct=1;let t=H(),e=le(),i=oe(),{isClean:c,my:s}=Ye(),l,o,p,g;function f(a){return a.map(n=>(n.nodes&&(n.nodes=f(n.nodes)),delete n.source,n))}function r(a){if(a[c]=!1,a.proxyOf.nodes)for(let n of a.proxyOf.nodes)r(n)}class u extends i{append(...n){for(let d of n){let h=this.normalize(d,this.last);for(let m of h)this.proxyOf.nodes.push(m)}return this.markDirty(),this}cleanRaws(n){if(super.cleanRaws(n),this.nodes)for(let d of this.nodes)d.cleanRaws(n)}each(n){if(!this.proxyOf.nodes)return;let d=this.getIterator(),h,m;for(;this.indexes[d]<this.proxyOf.nodes.length&&(h=this.indexes[d],m=n(this.proxyOf.nodes[h],h),m!==!1);)this.indexes[d]+=1;return delete this.indexes[d],m}every(n){return this.nodes.every(n)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let n=this.lastEach;return this.indexes[n]=0,n}getProxyProcessor(){return{get(n,d){return d==="proxyOf"?n:n[d]?d==="each"||typeof d=="string"&&d.startsWith("walk")?(...h)=>n[d](...h.map(m=>typeof m=="function"?(b,w)=>m(b.toProxy(),w):m)):d==="every"||d==="some"?h=>n[d]((m,...b)=>h(m.toProxy(),...b)):d==="root"?()=>n.root().toProxy():d==="nodes"?n.nodes.map(h=>h.toProxy()):d==="first"||d==="last"?n[d].toProxy():n[d]:n[d]},set(n,d,h){return n[d]===h||(n[d]=h,(d==="name"||d==="params"||d==="selector")&&n.markDirty()),!0}}}index(n){return typeof n=="number"?n:(n.proxyOf&&(n=n.proxyOf),this.proxyOf.nodes.indexOf(n))}insertAfter(n,d){let h=this.index(n),m=this.normalize(d,this.proxyOf.nodes[h]).reverse();h=this.index(n);for(let w of m)this.proxyOf.nodes.splice(h+1,0,w);let b;for(let w in this.indexes)b=this.indexes[w],h<b&&(this.indexes[w]=b+m.length);return this.markDirty(),this}insertBefore(n,d){let h=this.index(n),m=h===0?"prepend":!1,b=this.normalize(d,this.proxyOf.nodes[h],m).reverse();h=this.index(n);for(let E of b)this.proxyOf.nodes.splice(h,0,E);let w;for(let E in this.indexes)w=this.indexes[E],h<=w&&(this.indexes[E]=w+b.length);return this.markDirty(),this}normalize(n,d){if(typeof n=="string")n=f(o(n).nodes);else if(typeof n=="undefined")n=[];else if(Array.isArray(n)){n=n.slice(0);for(let m of n)m.parent&&m.parent.removeChild(m,"ignore")}else if(n.type==="root"&&this.type!=="document"){n=n.nodes.slice(0);for(let m of n)m.parent&&m.parent.removeChild(m,"ignore")}else if(n.type)n=[n];else if(n.prop){if(typeof n.value=="undefined")throw new Error("Value field is missed in node creation");typeof n.value!="string"&&(n.value=String(n.value)),n=[new e(n)]}else if(n.selector||n.selectors)n=[new g(n)];else if(n.name)n=[new l(n)];else if(n.text)n=[new t(n)];else throw new Error("Unknown node type in node creation");return n.map(m=>(m[s]||u.rebuild(m),m=m.proxyOf,m.parent&&m.parent.removeChild(m),m[c]&&r(m),m.raws||(m.raws={}),typeof m.raws.before=="undefined"&&d&&typeof d.raws.before!="undefined"&&(m.raws.before=d.raws.before.replace(/\S/g,"")),m.parent=this.proxyOf,m))}prepend(...n){n=n.reverse();for(let d of n){let h=this.normalize(d,this.first,"prepend").reverse();for(let m of h)this.proxyOf.nodes.unshift(m);for(let m in this.indexes)this.indexes[m]=this.indexes[m]+h.length}return this.markDirty(),this}push(n){return n.parent=this,this.proxyOf.nodes.push(n),this}removeAll(){for(let n of this.proxyOf.nodes)n.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(n){n=this.index(n),this.proxyOf.nodes[n].parent=void 0,this.proxyOf.nodes.splice(n,1);let d;for(let h in this.indexes)d=this.indexes[h],d>=n&&(this.indexes[h]=d-1);return this.markDirty(),this}replaceValues(n,d,h){return h||(h=d,d={}),this.walkDecls(m=>{d.props&&!d.props.includes(m.prop)||d.fast&&!m.value.includes(d.fast)||(m.value=m.value.replace(n,h))}),this.markDirty(),this}some(n){return this.nodes.some(n)}walk(n){return this.each((d,h)=>{let m;try{m=n(d,h)}catch(b){throw d.addToError(b)}return m!==!1&&d.walk&&(m=d.walk(n)),m})}walkAtRules(n,d){return d?n instanceof RegExp?this.walk((h,m)=>{if(h.type==="atrule"&&n.test(h.name))return d(h,m)}):this.walk((h,m)=>{if(h.type==="atrule"&&h.name===n)return d(h,m)}):(d=n,this.walk((h,m)=>{if(h.type==="atrule")return d(h,m)}))}walkComments(n){return this.walk((d,h)=>{if(d.type==="comment")return n(d,h)})}walkDecls(n,d){return d?n instanceof RegExp?this.walk((h,m)=>{if(h.type==="decl"&&n.test(h.prop))return d(h,m)}):this.walk((h,m)=>{if(h.type==="decl"&&h.prop===n)return d(h,m)}):(d=n,this.walk((h,m)=>{if(h.type==="decl")return d(h,m)}))}walkRules(n,d){return d?n instanceof RegExp?this.walk((h,m)=>{if(h.type==="rule"&&n.test(h.selector))return d(h,m)}):this.walk((h,m)=>{if(h.type==="rule"&&h.selector===n)return d(h,m)}):(d=n,this.walk((h,m)=>{if(h.type==="rule")return d(h,m)}))}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]}}return u.registerParse=a=>{o=a},u.registerRule=a=>{g=a},u.registerAtRule=a=>{l=a},u.registerRoot=a=>{p=a},be=u,u.default=u,u.rebuild=a=>{a.type==="atrule"?Object.setPrototypeOf(a,l.prototype):a.type==="rule"?Object.setPrototypeOf(a,g.prototype):a.type==="decl"?Object.setPrototypeOf(a,e.prototype):a.type==="comment"?Object.setPrototypeOf(a,t.prototype):a.type==="root"&&Object.setPrototypeOf(a,p.prototype),a[s]=!0,a.nodes&&a.nodes.forEach(n=>{u.rebuild(n)})},be}var Ce,vt;function He(){if(vt)return Ce;vt=1;let t=W();class e extends t{constructor(c){super(c),this.type="atrule"}append(...c){return this.proxyOf.nodes||(this.nodes=[]),super.append(...c)}prepend(...c){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...c)}}return Ce=e,e.default=e,t.registerAtRule(e),Ce}var ve,xt;function Je(){if(xt)return ve;xt=1;let t=W(),e,i;class c extends t{constructor(l){super(k({type:"document"},l)),this.nodes||(this.nodes=[])}toResult(l={}){return new e(new i,this,l).stringify()}}return c.registerLazyResult=s=>{e=s},c.registerProcessor=s=>{i=s},ve=c,c.default=c,ve}var xe,St;function Fr(){if(St)return xe;St=1;let t="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";return xe={nanoid:(c=21)=>{let s="",l=c|0;for(;l--;)s+=t[Math.random()*64|0];return s},customAlphabet:(c,s=21)=>(l=s)=>{let o="",p=l|0;for(;p--;)o+=c[Math.random()*c.length|0];return o}},xe}var Se,Nt;function Yt(){if(Nt)return Se;Nt=1;let{existsSync:t,readFileSync:e}=B,{dirname:i,join:c}=B,{SourceMapConsumer:s,SourceMapGenerator:l}=B;function o(g){return Buffer?Buffer.from(g,"base64").toString():window.atob(g)}class p{constructor(f,r){if(r.map===!1)return;this.loadAnnotation(f),this.inline=this.startWith(this.annotation,"data:");let u=r.map?r.map.prev:void 0,a=this.loadMap(r.from,u);!this.mapFile&&r.from&&(this.mapFile=r.from),this.mapFile&&(this.root=i(this.mapFile)),a&&(this.text=a)}consumer(){return this.consumerCache||(this.consumerCache=new s(this.text)),this.consumerCache}decodeInline(f){let r=/^data:application\/json;charset=utf-?8;base64,/,u=/^data:application\/json;base64,/,a=/^data:application\/json;charset=utf-?8,/,n=/^data:application\/json,/,d=f.match(a)||f.match(n);if(d)return decodeURIComponent(f.substr(d[0].length));let h=f.match(r)||f.match(u);if(h)return o(f.substr(h[0].length));let m=f.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+m)}getAnnotationURL(f){return f.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(f){return typeof f!="object"?!1:typeof f.mappings=="string"||typeof f._mappings=="string"||Array.isArray(f.sections)}loadAnnotation(f){let r=f.match(/\/\*\s*# sourceMappingURL=/g);if(!r)return;let u=f.lastIndexOf(r.pop()),a=f.indexOf("*/",u);u>-1&&a>-1&&(this.annotation=this.getAnnotationURL(f.substring(u,a)))}loadFile(f){if(this.root=i(f),t(f))return this.mapFile=f,e(f,"utf-8").toString().trim()}loadMap(f,r){if(r===!1)return!1;if(r){if(typeof r=="string")return r;if(typeof r=="function"){let u=r(f);if(u){let a=this.loadFile(u);if(!a)throw new Error("Unable to load previous source map: "+u.toString());return a}}else{if(r instanceof s)return l.fromSourceMap(r).toString();if(r instanceof l)return r.toString();if(this.isMap(r))return JSON.stringify(r);throw new Error("Unsupported previous source map format: "+r.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let u=this.annotation;return f&&(u=c(i(f),u)),this.loadFile(u)}}}startWith(f,r){return f?f.substr(0,r.length)===r:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}}return Se=p,p.default=p,Se}var Ne,Ot;function ae(){if(Ot)return Ne;Ot=1;let{nanoid:t}=Fr(),{isAbsolute:e,resolve:i}=B,{SourceMapConsumer:c,SourceMapGenerator:s}=B,{fileURLToPath:l,pathToFileURL:o}=B,p=Ve(),g=Yt(),f=B,r=Symbol("fromOffsetCache"),u=!!(c&&s),a=!!(i&&e);class n{constructor(h,m={}){if(h===null||typeof h=="undefined"||typeof h=="object"&&!h.toString)throw new Error(`PostCSS received ${h} instead of CSS string`);if(this.css=h.toString(),this.css[0]==="\uFEFF"||this.css[0]==="\uFFFE"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,this.document=this.css,m.document&&(this.document=m.document.toString()),m.from&&(!a||/^\w+:\/\//.test(m.from)||e(m.from)?this.file=m.from:this.file=i(m.from)),a&&u){let b=new g(this.css,m);if(b.text){this.map=b;let w=b.consumer().file;!this.file&&w&&(this.file=this.mapResolve(w))}}this.file||(this.id="<input css "+t(6)+">"),this.map&&(this.map.file=this.from)}error(h,m,b,w={}){let E,v,R;if(m&&typeof m=="object"){let C=m,N=b;if(typeof C.offset=="number"){let M=this.fromOffset(C.offset);m=M.line,b=M.col}else m=C.line,b=C.column;if(typeof N.offset=="number"){let M=this.fromOffset(N.offset);v=M.line,E=M.col}else v=N.line,E=N.column}else if(!b){let C=this.fromOffset(m);m=C.line,b=C.col}let y=this.origin(m,b,v,E);return y?R=new p(h,y.endLine===void 0?y.line:{column:y.column,line:y.line},y.endLine===void 0?y.column:{column:y.endColumn,line:y.endLine},y.source,y.file,w.plugin):R=new p(h,v===void 0?m:{column:b,line:m},v===void 0?b:{column:E,line:v},this.css,this.file,w.plugin),R.input={column:b,endColumn:E,endLine:v,line:m,source:this.css},this.file&&(o&&(R.input.url=o(this.file).toString()),R.input.file=this.file),R}fromOffset(h){let m,b;if(this[r])b=this[r];else{let E=this.css.split(`
34
+ `);b=new Array(E.length);let v=0;for(let R=0,y=E.length;R<y;R++)b[R]=v,v+=E[R].length+1;this[r]=b}m=b[b.length-1];let w=0;if(h>=m)w=b.length-1;else{let E=b.length-2,v;for(;w<E;)if(v=w+(E-w>>1),h<b[v])E=v-1;else if(h>=b[v+1])w=v+1;else{w=v;break}}return{col:h-b[w]+1,line:w+1}}mapResolve(h){return/^\w+:\/\//.test(h)?h:i(this.map.consumer().sourceRoot||this.map.root||".",h)}origin(h,m,b,w){if(!this.map)return!1;let E=this.map.consumer(),v=E.originalPositionFor({column:m,line:h});if(!v.source)return!1;let R;typeof b=="number"&&(R=E.originalPositionFor({column:w,line:b}));let y;e(v.source)?y=o(v.source):y=new URL(v.source,this.map.consumer().sourceRoot||o(this.map.mapFile));let C={column:v.column,endColumn:R&&R.column,endLine:R&&R.line,line:v.line,url:y.toString()};if(y.protocol==="file:")if(l)C.file=l(y);else throw new Error("file: protocol is not available in this PostCSS build");let N=E.sourceContentFor(v.source);return N&&(C.source=N),C}toJSON(){let h={};for(let m of["hasBOM","css","file","id"])this[m]!=null&&(h[m]=this[m]);return this.map&&(h.map=k({},this.map),h.map.consumerCache&&(h.map.consumerCache=void 0)),h}get from(){return this.file||this.id}}return Ne=n,n.default=n,f&&f.registerInput&&f.registerInput(n),Ne}var Oe,Dt;function J(){if(Dt)return Oe;Dt=1;let t=W(),e,i;class c extends t{constructor(l){super(l),this.type="root",this.nodes||(this.nodes=[])}normalize(l,o,p){let g=super.normalize(l);if(o){if(p==="prepend")this.nodes.length>1?o.raws.before=this.nodes[1].raws.before:delete o.raws.before;else if(this.first!==o)for(let f of g)f.raws.before=o.raws.before}return g}removeChild(l,o){let p=this.index(l);return!o&&p===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[p].raws.before),super.removeChild(l)}toResult(l={}){return new e(new i,this,l).stringify()}}return c.registerLazyResult=s=>{e=s},c.registerProcessor=s=>{i=s},Oe=c,c.default=c,t.registerRoot(c),Oe}var De,At;function Ht(){if(At)return De;At=1;let t={comma(e){return t.split(e,[","],!0)},space(e){let i=[" ",`
35
+ `," "];return t.split(e,i)},split(e,i,c){let s=[],l="",o=!1,p=0,g=!1,f="",r=!1;for(let u of e)r?r=!1:u==="\\"?r=!0:g?u===f&&(g=!1):u==='"'||u==="'"?(g=!0,f=u):u==="("?p+=1:u===")"?p>0&&(p-=1):p===0&&i.includes(u)&&(o=!0),o?(l!==""&&s.push(l.trim()),l="",o=!1):l+=u;return(c||l!=="")&&s.push(l.trim()),s}};return De=t,t.default=t,De}var Ae,Mt;function Xe(){if(Mt)return Ae;Mt=1;let t=W(),e=Ht();class i extends t{constructor(s){super(s),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return e.comma(this.selector)}set selectors(s){let l=this.selector?this.selector.match(/,\s*/):null,o=l?l[0]:","+this.raw("between","beforeOpen");this.selector=s.join(o)}}return Ae=i,i.default=i,t.registerRule(i),Ae}var Me,_t;function zr(){if(_t)return Me;_t=1;let t=He(),e=H(),i=le(),c=ae(),s=Yt(),l=J(),o=Xe();function p(g,f){if(Array.isArray(g))return g.map(d=>p(d));let a=g,{inputs:r}=a,u=de(a,["inputs"]);if(r){f=[];for(let d of r){let h=Y(k({},d),{__proto__:c.prototype});h.map&&(h.map=Y(k({},h.map),{__proto__:s.prototype})),f.push(h)}}if(u.nodes&&(u.nodes=g.nodes.map(d=>p(d,f))),u.source){let n=u.source,{inputId:d}=n,h=de(n,["inputId"]);u.source=h,d!=null&&(u.source.input=f[d])}if(u.type==="root")return new l(u);if(u.type==="decl")return new i(u);if(u.type==="rule")return new o(u);if(u.type==="comment")return new e(u);if(u.type==="atrule")return new t(u);throw new Error("Unknown node type: "+g.type)}return Me=p,p.default=p,Me}var _e,Tt;function Jt(){if(Tt)return _e;Tt=1;let{dirname:t,relative:e,resolve:i,sep:c}=B,{SourceMapConsumer:s,SourceMapGenerator:l}=B,{pathToFileURL:o}=B,p=ae(),g=!!(s&&l),f=!!(t&&i&&e&&c);class r{constructor(a,n,d,h){this.stringify=a,this.mapOpts=d.map||{},this.root=n,this.opts=d,this.css=h,this.originalCSS=h,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let a;this.isInline()?a="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?a=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?a=this.mapOpts.annotation(this.opts.to,this.root):a=this.outputFile()+".map";let n=`
36
36
  `;this.css.includes(`\r
37
- `)&&(t=`\r
38
- `),this.css+=t+"/*# sourceMappingURL="+e+" */"}applyPrevMaps(){for(let e of this.previous()){let t=this.toUrl(this.path(e.file)),s=e.root||ae(e.file),r;this.mapOpts.sourcesContent===!1?(r=new ts(e.text),r.sourcesContent&&(r.sourcesContent=null)):r=e.consumer(),this.map.applySourceMap(r,t,this.toUrl(this.path(s)))}}clearAnnotation(){if(this.mapOpts.annotation!==!1)if(this.root){let e;for(let t=this.root.nodes.length-1;t>=0;t--)e=this.root.nodes[t],e.type==="comment"&&e.text.startsWith("# sourceMappingURL=")&&this.root.removeChild(t)}else this.css&&(this.css=this.css.replace(/\n*\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),Dr&&Or&&this.isMap())return this.generateMap();{let e="";return this.stringify(this.root,t=>{e+=t}),[e]}}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=ue.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new ue({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 ue({file:this.outputFile(),ignoreInvalidMapping:!0});let e=1,t=1,s="<no source>",r={generated:{column:0,line:0},original:{column:0,line:0},source:""},n,o;this.stringify(this.root,(a,l,h)=>{if(this.css+=a,l&&h!=="end"&&(r.generated.line=e,r.generated.column=t-1,l.source&&l.source.start?(r.source=this.sourcePath(l),r.original.line=l.source.start.line,r.original.column=l.source.start.column-1,this.map.addMapping(r)):(r.source=s,r.original.line=1,r.original.column=0,this.map.addMapping(r))),o=a.match(/\n/g),o?(e+=o.length,n=a.lastIndexOf(`
39
- `),t=a.length-n):t+=a.length,l&&h!=="start"){let u=l.parent||{raws:{}};(!(l.type==="decl"||l.type==="atrule"&&!l.nodes)||l!==u.last||u.raws.semicolon)&&(l.source&&l.source.end?(r.source=this.sourcePath(l),r.original.line=l.source.end.line,r.original.column=l.source.end.column-1,r.generated.line=e,r.generated.column=t-2,this.map.addMapping(r)):(r.source=s,r.original.line=1,r.original.column=0,r.generated.line=e,r.generated.column=t-1,this.map.addMapping(r)))}})}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation!="undefined"?this.mapOpts.annotation:this.previous().length?this.previous().some(e=>e.annotation):!0}isInline(){if(typeof this.mapOpts.inline!="undefined")return this.mapOpts.inline;let e=this.mapOpts.annotation;return typeof e!="undefined"&&e!==!0?!1:this.previous().length?this.previous().some(t=>t.inline):!0}isMap(){return typeof this.opts.map!="undefined"?!!this.opts.map:this.previous().length>0}isSourcesContent(){return typeof this.mapOpts.sourcesContent!="undefined"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(e=>e.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(e){if(this.mapOpts.absolute||e.charCodeAt(0)===60||/^\w+:\/\//.test(e))return e;let t=this.memoizedPaths.get(e);if(t)return t;let s=this.opts.to?ae(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(s=ae(Kt(s,this.mapOpts.annotation)));let r=qt(s,e);return this.memoizedPaths.set(e,r),r}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(e=>{if(e.source&&e.source.input.map){let t=e.source.input.map;this.previousMaps.includes(t)||this.previousMaps.push(t)}});else{let e=new Nr(this.originalCSS,this.opts);e.map&&this.previousMaps.push(e.map)}return this.previousMaps}setSourcesContent(){let e={};if(this.root)this.root.walk(t=>{if(t.source){let s=t.source.input.from;if(s&&!e[s]){e[s]=!0;let r=this.usesFileUrls?this.toFileUrl(s):this.toUrl(this.path(s));this.map.setSourceContent(r,t.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(e){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(e.source.input.from):this.toUrl(this.path(e.source.input.from))}toBase64(e){return Buffer?Buffer.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))}toFileUrl(e){let t=this.memoizedFileURLs.get(e);if(t)return t;if(Ct){let s=Ct(e).toString();return this.memoizedFileURLs.set(e,s),s}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(e){let t=this.memoizedURLs.get(e);if(t)return t;es==="\\"&&(e=e.replace(/\\/g,"/"));let s=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,s),s}};var ss=Ar;const De=39,xt=34,te=92,St=47,se=10,j=32,re=12,ie=9,ne=13,Mr=91,_r=93,Tr=40,Ir=41,$r=123,Pr=125,Lr=59,kr=42,Ur=58,Br=64,oe=/[\t\n\f\r "#'()/;[\\\]{}]/g,le=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,Fr=/.[\r\n"'(/\\]/,vt=/[\da-f]/i;var zr=function(e,t={}){let s=e.css.valueOf(),r=t.ignoreErrors,n,o,a,l,h,u,m,d,w,x,S=s.length,f=0,D=[],E=[];function b(){return f}function v($){throw e.error("Unclosed "+$,f)}function Ce(){return E.length===0&&f>=S}function Ts($){if(E.length)return E.pop();if(f>=S)return;let xe=$?$.ignoreUnclosed:!1;switch(n=s.charCodeAt(f),n){case se:case j:case ie:case ne:case re:{l=f;do l+=1,n=s.charCodeAt(l);while(n===j||n===se||n===ie||n===ne||n===re);u=["space",s.slice(f,l)],f=l-1;break}case Mr:case _r:case $r:case Pr:case Ur:case Lr:case Ir:{let ut=String.fromCharCode(n);u=[ut,ut,f];break}case Tr:{if(x=D.length?D.pop()[1]:"",w=s.charCodeAt(f+1),x==="url"&&w!==De&&w!==xt&&w!==j&&w!==se&&w!==ie&&w!==re&&w!==ne){l=f;do{if(m=!1,l=s.indexOf(")",l+1),l===-1)if(r||xe){l=f;break}else v("bracket");for(d=l;s.charCodeAt(d-1)===te;)d-=1,m=!m}while(m);u=["brackets",s.slice(f,l+1),f,l],f=l}else l=s.indexOf(")",f+1),o=s.slice(f,l+1),l===-1||Fr.test(o)?u=["(","(",f]:(u=["brackets",o,f,l],f=l);break}case De:case xt:{h=n===De?"'":'"',l=f;do{if(m=!1,l=s.indexOf(h,l+1),l===-1)if(r||xe){l=f+1;break}else v("string");for(d=l;s.charCodeAt(d-1)===te;)d-=1,m=!m}while(m);u=["string",s.slice(f,l+1),f,l],f=l;break}case Br:{oe.lastIndex=f+1,oe.test(s),oe.lastIndex===0?l=s.length-1:l=oe.lastIndex-2,u=["at-word",s.slice(f,l+1),f,l],f=l;break}case te:{for(l=f,a=!0;s.charCodeAt(l+1)===te;)l+=1,a=!a;if(n=s.charCodeAt(l+1),a&&n!==St&&n!==j&&n!==se&&n!==ie&&n!==ne&&n!==re&&(l+=1,vt.test(s.charAt(l)))){for(;vt.test(s.charAt(l+1));)l+=1;s.charCodeAt(l+1)===j&&(l+=1)}u=["word",s.slice(f,l+1),f,l],f=l;break}default:{n===St&&s.charCodeAt(f+1)===kr?(l=s.indexOf("*/",f+2)+1,l===0&&(r||xe?l=s.length:v("comment")),u=["comment",s.slice(f,l+1),f,l],f=l):(le.lastIndex=f+1,le.test(s),le.lastIndex===0?l=s.length-1:l=le.lastIndex-2,u=["word",s.slice(f,l+1),f,l],D.push(u),f=l);break}}return f++,u}function Is($){E.push($)}return{back:Is,endOfFile:Ce,nextToken:Ts,position:b}};let Wr=Ze,jr=ye,Gr=Re,Vr=Z,Nt=qe,Yr=zr;const Ot={empty:!0,space:!0};function Hr(i){for(let e=i.length-1;e>=0;e--){let t=i[e],s=t[3]||t[2];if(s)return s}}let Jr=class{constructor(e){this.input=e,this.root=new Vr,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}}atrule(e){let t=new Wr;t.name=e[1].slice(1),t.name===""&&this.unnamedAtrule(t,e),this.init(t,e[2]);let s,r,n,o=!1,a=!1,l=[],h=[];for(;!this.tokenizer.endOfFile();){if(e=this.tokenizer.nextToken(),s=e[0],s==="("||s==="["?h.push(s==="("?")":"]"):s==="{"&&h.length>0?h.push("}"):s===h[h.length-1]&&h.pop(),h.length===0)if(s===";"){t.source.end=this.getPosition(e[2]),t.source.end.offset++,this.semicolon=!0;break}else if(s==="{"){a=!0;break}else if(s==="}"){if(l.length>0){for(n=l.length-1,r=l[n];r&&r[0]==="space";)r=l[--n];r&&(t.source.end=this.getPosition(r[3]||r[2]),t.source.end.offset++)}this.end(e);break}else l.push(e);else l.push(e);if(this.tokenizer.endOfFile()){o=!0;break}}t.raws.between=this.spacesAndCommentsFromEnd(l),l.length?(t.raws.afterName=this.spacesAndCommentsFromStart(l),this.raw(t,"params",l),o&&(e=l[l.length-1],t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++,this.spaces=t.raws.between,t.raws.between="")):(t.raws.afterName="",t.params=""),a&&(t.nodes=[],this.current=t)}checkMissedSemicolon(e){let t=this.colon(e);if(t===!1)return;let s=0,r;for(let n=t-1;n>=0&&(r=e[n],!(r[0]!=="space"&&(s+=1,s===2)));n--);throw this.input.error("Missed semicolon",r[0]==="word"?r[3]+1:r[2])}colon(e){let t=0,s,r,n;for(let[o,a]of e.entries()){if(r=a,n=r[0],n==="("&&(t+=1),n===")"&&(t-=1),t===0&&n===":")if(!s)this.doubleColon(r);else{if(s[0]==="word"&&s[1]==="progid")continue;return o}s=r}return!1}comment(e){let t=new jr;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;let s=e[1].slice(2,-2);if(/^\s*$/.test(s))t.text="",t.raws.left=s,t.raws.right="";else{let r=s.match(/^(\s*)([^]*\S)(\s*)$/);t.text=r[2],t.raws.left=r[1],t.raws.right=r[3]}}createTokenizer(){this.tokenizer=Yr(this.input)}decl(e,t){let s=new Gr;this.init(s,e[0][2]);let r=e[e.length-1];for(r[0]===";"&&(this.semicolon=!0,e.pop()),s.source.end=this.getPosition(r[3]||r[2]||Hr(e)),s.source.end.offset++;e[0][0]!=="word";)e.length===1&&this.unknownWord(e),s.raws.before+=e.shift()[1];for(s.source.start=this.getPosition(e[0][2]),s.prop="";e.length;){let h=e[0][0];if(h===":"||h==="space"||h==="comment")break;s.prop+=e.shift()[1]}s.raws.between="";let n;for(;e.length;)if(n=e.shift(),n[0]===":"){s.raws.between+=n[1];break}else n[0]==="word"&&/\w/.test(n[1])&&this.unknownWord([n]),s.raws.between+=n[1];(s.prop[0]==="_"||s.prop[0]==="*")&&(s.raws.before+=s.prop[0],s.prop=s.prop.slice(1));let o=[],a;for(;e.length&&(a=e[0][0],!(a!=="space"&&a!=="comment"));)o.push(e.shift());this.precheckMissedSemicolon(e);for(let h=e.length-1;h>=0;h--){if(n=e[h],n[1].toLowerCase()==="!important"){s.important=!0;let u=this.stringFrom(e,h);u=this.spacesFromEnd(e)+u,u!==" !important"&&(s.raws.important=u);break}else if(n[1].toLowerCase()==="important"){let u=e.slice(0),m="";for(let d=h;d>0;d--){let w=u[d][0];if(m.trim().startsWith("!")&&w!=="space")break;m=u.pop()[1]+m}m.trim().startsWith("!")&&(s.important=!0,s.raws.important=m,e=u)}if(n[0]!=="space"&&n[0]!=="comment")break}e.some(h=>h[0]!=="space"&&h[0]!=="comment")&&(s.raws.between+=o.map(h=>h[1]).join(""),o=[]),this.raw(s,"value",o.concat(e),t),s.value.includes(":")&&!t&&this.checkMissedSemicolon(e)}doubleColon(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})}emptyRule(e){let t=new Nt;this.init(t,e[2]),t.selector="",t.raws.between="",this.current=t}end(e){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(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)}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(e){if(this.spaces+=e[1],this.current.nodes){let t=this.current.nodes[this.current.nodes.length-1];t&&t.type==="rule"&&!t.raws.ownSemicolon&&(t.raws.ownSemicolon=this.spaces,this.spaces="")}}getPosition(e){let t=this.input.fromOffset(e);return{column:t.col,line:t.line,offset:e}}init(e,t){this.current.push(e),e.source={input:this.input,start:this.getPosition(t)},e.raws.before=this.spaces,this.spaces="",e.type!=="comment"&&(this.semicolon=!1)}other(e){let t=!1,s=null,r=!1,n=null,o=[],a=e[1].startsWith("--"),l=[],h=e;for(;h;){if(s=h[0],l.push(h),s==="("||s==="[")n||(n=h),o.push(s==="("?")":"]");else if(a&&r&&s==="{")n||(n=h),o.push("}");else if(o.length===0)if(s===";")if(r){this.decl(l,a);return}else break;else if(s==="{"){this.rule(l);return}else if(s==="}"){this.tokenizer.back(l.pop()),t=!0;break}else s===":"&&(r=!0);else s===o[o.length-1]&&(o.pop(),o.length===0&&(n=null));h=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),o.length>0&&this.unclosedBracket(n),t&&r){if(!a)for(;l.length&&(h=l[l.length-1][0],!(h!=="space"&&h!=="comment"));)this.tokenizer.back(l.pop());this.decl(l,a)}else this.unknownWord(l)}parse(){let e;for(;!this.tokenizer.endOfFile();)switch(e=this.tokenizer.nextToken(),e[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e);break}this.endFile()}precheckMissedSemicolon(){}raw(e,t,s,r){let n,o,a=s.length,l="",h=!0,u,m;for(let d=0;d<a;d+=1)n=s[d],o=n[0],o==="space"&&d===a-1&&!r?h=!1:o==="comment"?(m=s[d-1]?s[d-1][0]:"empty",u=s[d+1]?s[d+1][0]:"empty",!Ot[m]&&!Ot[u]?l.slice(-1)===","?h=!1:l+=n[1]:h=!1):l+=n[1];if(!h){let d=s.reduce((w,x)=>w+x[1],"");e.raws[t]={raw:d,value:l}}e[t]=l}rule(e){e.pop();let t=new Nt;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t}spacesAndCommentsFromEnd(e){let t,s="";for(;e.length&&(t=e[e.length-1][0],!(t!=="space"&&t!=="comment"));)s=e.pop()[1]+s;return s}spacesAndCommentsFromStart(e){let t,s="";for(;e.length&&(t=e[0][0],!(t!=="space"&&t!=="comment"));)s+=e.shift()[1];return s}spacesFromEnd(e){let t,s="";for(;e.length&&(t=e[e.length-1][0],t==="space");)s=e.pop()[1]+s;return s}stringFrom(e,t){let s="";for(let r=t;r<e.length;r++)s+=e[r][1];return e.splice(t,e.length-t),s}unclosedBlock(){let e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)}unclosedBracket(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})}unexpectedClose(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})}unknownWord(e){throw this.input.error("Unknown word",{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})}unnamedAtrule(e,t){throw this.input.error("At-rule without name",{offset:t[2]},{offset:t[2]+t[1].length})}};var Xr=Jr;let Zr=I,Qr=Ee,qr=Xr;function me(i,e){let t=new Qr(i,e),s=new qr(t);try{s.parse()}catch(r){throw r}return s.root}var Ke=me;me.default=me;Zr.registerParse(me);let Be=class{constructor(e,t={}){if(this.type="warning",this.text=e,t.node&&t.node.source){let s=t.node.rangeBy(t);this.line=s.start.line,this.column=s.start.column,this.endLine=s.end.line,this.endColumn=s.end.column}for(let s in t)this[s]=t[s]}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 rs=Be;Be.default=Be;let Kr=rs,Fe=class{constructor(e,t,s){this.processor=e,this.messages=[],this.root=t,this.opts=s,this.css=void 0,this.map=void 0}toString(){return this.css}warn(e,t={}){t.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);let s=new Kr(e,t);return this.messages.push(s),s}warnings(){return this.messages.filter(e=>e.type==="warning")}get content(){return this.css}};var et=Fe;Fe.default=Fe;let ei=I,ti=Qe,si=ss,ri=Ke,Dt=et,ii=Z,ni=ge,{isClean:A,my:oi}=X;const li={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},ai={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},ui={Once:!0,postcssPlugin:!0,prepare:!0},k=0;function G(i){return typeof i=="object"&&typeof i.then=="function"}function is(i){let e=!1,t=li[i.type];return i.type==="decl"?e=i.prop.toLowerCase():i.type==="atrule"&&(e=i.name.toLowerCase()),e&&i.append?[t,t+"-"+e,k,t+"Exit",t+"Exit-"+e]:e?[t,t+"-"+e,t+"Exit",t+"Exit-"+e]:i.append?[t,k,t+"Exit"]:[t,t+"Exit"]}function At(i){let e;return i.type==="document"?e=["Document",k,"DocumentExit"]:i.type==="root"?e=["Root",k,"RootExit"]:e=is(i),{eventIndex:0,events:e,iterator:0,node:i,visitorIndex:0,visitors:[]}}function ze(i){return i[A]=!1,i.nodes&&i.nodes.forEach(e=>ze(e)),i}let We={},U=class ns{constructor(e,t,s){this.stringified=!1,this.processed=!1;let r;if(typeof t=="object"&&t!==null&&(t.type==="root"||t.type==="document"))r=ze(t);else if(t instanceof ns||t instanceof Dt)r=ze(t.root),t.map&&(typeof s.map=="undefined"&&(s.map={}),s.map.inline||(s.map.inline=!1),s.map.prev=t.map);else{let n=ri;s.syntax&&(n=s.syntax.parse),s.parser&&(n=s.parser),n.parse&&(n=n.parse);try{r=n(t,s)}catch(o){this.processed=!0,this.error=o}r&&!r[oi]&&ei.rebuild(r)}this.result=new Dt(e,r,s),this.helpers=F(N({},We),{postcss:We,result:this.result}),this.plugins=this.processor.plugins.map(n=>typeof n=="object"&&n.prepare?N(N({},n),n.prepare(this.result)):n)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(e,t){let s=this.result.lastPlugin;try{t&&t.addToError(e),this.error=e,e.name==="CssSyntaxError"&&!e.plugin?(e.plugin=s.postcssPlugin,e.setMessage()):s.postcssVersion}catch(r){console&&console.error&&console.error(r)}return e}prepareVisitors(){this.listeners={};let e=(t,s,r)=>{this.listeners[s]||(this.listeners[s]=[]),this.listeners[s].push([t,r])};for(let t of this.plugins)if(typeof t=="object")for(let s in t){if(!ai[s]&&/^[A-Z]/.test(s))throw new Error(`Unknown event ${s} in ${t.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!ui[s])if(typeof t[s]=="object")for(let r in t[s])r==="*"?e(t,s,t[s][r]):e(t,s+"-"+r.toLowerCase(),t[s][r]);else typeof t[s]=="function"&&e(t,s,t[s])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let e=0;e<this.plugins.length;e++){let t=this.plugins[e],s=this.runOnRoot(t);if(G(s))try{await s}catch(r){throw this.handleError(r)}}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[A];){e[A]=!0;let t=[At(e)];for(;t.length>0;){let s=this.visitTick(t);if(G(s))try{await s}catch(r){let n=t[t.length-1].node;throw this.handleError(r,n)}}}if(this.listeners.OnceExit)for(let[t,s]of this.listeners.OnceExit){this.result.lastPlugin=t;try{if(e.type==="document"){let r=e.nodes.map(n=>s(n,this.helpers));await Promise.all(r)}else await s(e,this.helpers)}catch(r){throw this.handleError(r)}}}return this.processed=!0,this.stringify()}runOnRoot(e){this.result.lastPlugin=e;try{if(typeof e=="object"&&e.Once){if(this.result.root.type==="document"){let t=this.result.root.nodes.map(s=>e.Once(s,this.helpers));return G(t[0])?Promise.all(t):t}return e.Once(this.result.root,this.helpers)}else if(typeof e=="function")return e(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 e=this.result.opts,t=ni;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);let r=new si(t,this.result.root,this.result.opts).generate();return this.result.css=r[0],this.result.map=r[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 e of this.plugins){let t=this.runOnRoot(e);if(G(t))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[A];)e[A]=!0,this.walkSync(e);if(this.listeners.OnceExit)if(e.type==="document")for(let t of e.nodes)this.visitSync(this.listeners.OnceExit,t);else this.visitSync(this.listeners.OnceExit,e)}return this.result}then(e,t){return this.async().then(e,t)}toString(){return this.css}visitSync(e,t){for(let[s,r]of e){this.result.lastPlugin=s;let n;try{n=r(t,this.helpers)}catch(o){throw this.handleError(o,t.proxyOf)}if(t.type!=="root"&&t.type!=="document"&&!t.parent)return!0;if(G(n))throw this.getAsyncError()}}visitTick(e){let t=e[e.length-1],{node:s,visitors:r}=t;if(s.type!=="root"&&s.type!=="document"&&!s.parent){e.pop();return}if(r.length>0&&t.visitorIndex<r.length){let[o,a]=r[t.visitorIndex];t.visitorIndex+=1,t.visitorIndex===r.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=o;try{return a(s.toProxy(),this.helpers)}catch(l){throw this.handleError(l,s)}}if(t.iterator!==0){let o=t.iterator,a;for(;a=s.nodes[s.indexes[o]];)if(s.indexes[o]+=1,!a[A]){a[A]=!0,e.push(At(a));return}t.iterator=0,delete s.indexes[o]}let n=t.events;for(;t.eventIndex<n.length;){let o=n[t.eventIndex];if(t.eventIndex+=1,o===k){s.nodes&&s.nodes.length&&(s[A]=!0,t.iterator=s.getIterator());return}else if(this.listeners[o]){t.visitors=this.listeners[o];return}}e.pop()}walkSync(e){e[A]=!0;let t=is(e);for(let s of t)if(s===k)e.nodes&&e.each(r=>{r[A]||this.walkSync(r)});else{let r=this.listeners[s];if(r&&this.visitSync(r,e.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"}};U.registerPostcss=i=>{We=i};var os=U;U.default=U;ii.registerLazyResult(U);ti.registerLazyResult(U);let hi=ss,ci=Ke;const fi=et;let pi=ge;let je=class{constructor(e,t,s){t=t.toString(),this.stringified=!1,this._processor=e,this._css=t,this._opts=s,this._map=void 0;let r,n=pi;this.result=new fi(this._processor,r,this._opts),this.result.css=t;let o=this;Object.defineProperty(this.result,"root",{get(){return o.root}});let a=new hi(n,r,this._opts,t);if(a.isMap()){let[l,h]=a.generate();l&&(this.result.css=l),h&&(this.result.map=h)}else a.clearAnnotation(),this.result.css=a.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}sync(){if(this.error)throw this.error;return this.result}then(e,t){return this.async().then(e,t)}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 e,t=ci;try{e=t(this._css,this._opts)}catch(s){this.error=s}if(this.error)throw this.error;return this._root=e,e}get[Symbol.toStringTag](){return"NoWorkResult"}};var mi=je;je.default=je;let di=Qe,gi=os,wi=mi,yi=Z,J=class{constructor(e=[]){this.version="8.5.1",this.plugins=this.normalize(e)}normalize(e){let t=[];for(let s of e)if(s.postcss===!0?s=s():s.postcss&&(s=s.postcss),typeof s=="object"&&Array.isArray(s.plugins))t=t.concat(s.plugins);else if(typeof s=="object"&&s.postcssPlugin)t.push(s);else if(typeof s=="function")t.push(s);else if(!(typeof s=="object"&&(s.parse||s.stringify)))throw new Error(s+" is not a PostCSS plugin");return t}process(e,t={}){return!this.plugins.length&&!t.parser&&!t.stringifier&&!t.syntax?new wi(this,e,t):new gi(this,e,t)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}};var Ri=J;J.default=J;yi.registerProcessor(J);di.registerProcessor(J);let ls=Ze,as=ye,Ei=I,bi=He,us=Re,hs=Qe,Ci=vr,xi=Ee,Si=os,vi=Zt,Ni=we,Oi=Ke,tt=Ri,Di=et,cs=Z,fs=qe,Ai=ge,Mi=rs;function y(...i){return i.length===1&&Array.isArray(i[0])&&(i=i[0]),new tt(i)}y.plugin=function(e,t){let s=!1;function r(...o){console&&console.warn&&!s&&(s=!0,console.warn(e+`: postcss.plugin was deprecated. Migration guide:
40
- https://evilmartians.com/chronicles/postcss-8-plugin-migration`),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(e+`: \u91CC\u9762 postcss.plugin \u88AB\u5F03\u7528. \u8FC1\u79FB\u6307\u5357:
41
- https://www.w3ctech.com/topic/2226`));let a=t(...o);return a.postcssPlugin=e,a.postcssVersion=new tt().version,a}let n;return Object.defineProperty(r,"postcss",{get(){return n||(n=r()),n}}),r.process=function(o,a,l){return y([r(l)]).process(o,a)},r};y.stringify=Ai;y.parse=Oi;y.fromJSON=Ci;y.list=vi;y.comment=i=>new as(i);y.atRule=i=>new ls(i);y.decl=i=>new us(i);y.rule=i=>new fs(i);y.root=i=>new cs(i);y.document=i=>new hs(i);y.CssSyntaxError=bi;y.Declaration=us;y.Container=Ei;y.Processor=tt;y.Document=hs;y.Comment=as;y.Warning=Mi;y.AtRule=ls;y.Result=Di;y.Input=xi;y.Rule=fs;y.Root=cs;y.Node=Ni;Si.registerPostcss(y);var _i=y;y.default=y;const R=js(_i);R.stringify;R.fromJSON;R.plugin;R.parse;R.list;R.document;R.comment;R.atRule;R.rule;R.decl;R.root;R.CssSyntaxError;R.Declaration;R.Container;R.Processor;R.Document;R.Comment;R.Warning;R.AtRule;R.Result;R.Input;R.Rule;R.Root;R.Node;var g=(i=>(i[i.Document=0]="Document",i[i.DocumentType=1]="DocumentType",i[i.Element=2]="Element",i[i.Text=3]="Text",i[i.CDATA=4]="CDATA",i[i.Comment=5]="Comment",i))(g||{});function Ti(i){const e={},t=/;(?![^(]*\))/g,s=/:(.+)/,r=/\/\*.*?\*\//g;return i.replace(r,"").split(t).forEach(function(n){if(n){const o=n.split(s);o.length>1&&(e[Ge(o[0].trim())]=o[1].trim())}}),e}function Mt(i){const e=[];for(const t in i){const s=i[t];if(typeof s!="string")continue;const r=Li(t);e.push(`${r}: ${s};`)}return e.join(" ")}const Ii=/-([a-z])/g,$i=/^--[a-zA-Z0-9-]+$/,Ge=i=>$i.test(i)?i:i.replace(Ii,(e,t)=>t?t.toUpperCase():""),Pi=/\B([A-Z])/g,Li=i=>i.replace(Pi,"-$1").toLowerCase();class _{constructor(...e){c(this,"parentElement",null),c(this,"parentNode",null),c(this,"ownerDocument"),c(this,"firstChild",null),c(this,"lastChild",null),c(this,"previousSibling",null),c(this,"nextSibling",null),c(this,"ELEMENT_NODE",1),c(this,"TEXT_NODE",3),c(this,"nodeType"),c(this,"nodeName"),c(this,"RRNodeType")}get childNodes(){const e=[];let t=this.firstChild;for(;t;)e.push(t),t=t.nextSibling;return e}contains(e){if(e instanceof _){if(e.ownerDocument!==this.ownerDocument)return!1;if(e===this)return!0}else return!1;for(;e.parentNode;){if(e.parentNode===this)return!0;e=e.parentNode}return!1}appendChild(e){throw new Error("RRDomException: Failed to execute 'appendChild' on 'RRNode': This RRNode type does not support this method.")}insertBefore(e,t){throw new Error("RRDomException: Failed to execute 'insertBefore' on 'RRNode': This RRNode type does not support this method.")}removeChild(e){throw new Error("RRDomException: Failed to execute 'removeChild' on 'RRNode': This RRNode type does not support this method.")}toString(){return"RRNode"}}class be extends _{constructor(...e){super(e),c(this,"nodeType",9),c(this,"nodeName","#document"),c(this,"compatMode","CSS1Compat"),c(this,"RRNodeType",g.Document),c(this,"textContent",null),this.ownerDocument=this}get documentElement(){return this.childNodes.find(e=>e.RRNodeType===g.Element&&e.tagName==="HTML")||null}get body(){var e;return((e=this.documentElement)==null?void 0:e.childNodes.find(t=>t.RRNodeType===g.Element&&t.tagName==="BODY"))||null}get head(){var e;return((e=this.documentElement)==null?void 0:e.childNodes.find(t=>t.RRNodeType===g.Element&&t.tagName==="HEAD"))||null}get implementation(){return this}get firstElementChild(){return this.documentElement}appendChild(e){const t=e.RRNodeType;if((t===g.Element||t===g.DocumentType)&&this.childNodes.some(r=>r.RRNodeType===t))throw new Error(`RRDomException: Failed to execute 'appendChild' on 'RRNode': Only one ${t===g.Element?"RRElement":"RRDoctype"} on RRDocument allowed.`);const s=ot(this,e);return s.parentElement=null,s}insertBefore(e,t){const s=e.RRNodeType;if((s===g.Element||s===g.DocumentType)&&this.childNodes.some(n=>n.RRNodeType===s))throw new Error(`RRDomException: Failed to execute 'insertBefore' on 'RRNode': Only one ${s===g.Element?"RRElement":"RRDoctype"} on RRDocument allowed.`);const r=gs(this,e,t);return r.parentElement=null,r}removeChild(e){return ws(this,e)}open(){this.firstChild=null,this.lastChild=null}close(){}write(e){let t;if(e==='<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">'?t="-//W3C//DTD XHTML 1.0 Transitional//EN":e==='<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "">'&&(t="-//W3C//DTD HTML 4.0 Transitional//EN"),t){const s=this.createDocumentType("html",t,"");this.open(),this.appendChild(s)}}createDocument(e,t,s){return new be}createDocumentType(e,t,s){const r=new st(e,t,s);return r.ownerDocument=this,r}createElement(e){const t=new Q(e);return t.ownerDocument=this,t}createElementNS(e,t){return this.createElement(t)}createTextNode(e){const t=new rt(e);return t.ownerDocument=this,t}createComment(e){const t=new it(e);return t.ownerDocument=this,t}createCDATASection(e){const t=new nt(e);return t.ownerDocument=this,t}toString(){return"RRDocument"}}class st extends _{constructor(e,t,s){super(),c(this,"nodeType",10),c(this,"RRNodeType",g.DocumentType),c(this,"name"),c(this,"publicId"),c(this,"systemId"),c(this,"textContent",null),this.name=e,this.publicId=t,this.systemId=s,this.nodeName=e}toString(){return"RRDocumentType"}}class Q extends _{constructor(e){super(),c(this,"nodeType",1),c(this,"RRNodeType",g.Element),c(this,"tagName"),c(this,"attributes",{}),c(this,"shadowRoot",null),c(this,"scrollLeft"),c(this,"scrollTop"),this.tagName=e.toUpperCase(),this.nodeName=e.toUpperCase()}get textContent(){let e="";return this.childNodes.forEach(t=>e+=t.textContent),e}set textContent(e){this.firstChild=null,this.lastChild=null,this.appendChild(this.ownerDocument.createTextNode(e))}get classList(){return new ds(this.attributes.class,e=>{this.attributes.class=e})}get id(){return this.attributes.id||""}get className(){return this.attributes.class||""}get style(){const e=this.attributes.style?Ti(this.attributes.style):{},t=/\B([A-Z])/g;return e.setProperty=(s,r,n)=>{if(t.test(s))return;const o=Ge(s);r?e[o]=r:delete e[o],n==="important"&&(e[o]+=" !important"),this.attributes.style=Mt(e)},e.removeProperty=s=>{if(t.test(s))return"";const r=Ge(s),n=e[r]||"";return delete e[r],this.attributes.style=Mt(e),n},e}getAttribute(e){return this.attributes[e]===void 0?null:this.attributes[e]}setAttribute(e,t){this.attributes[e]=t}setAttributeNS(e,t,s){this.setAttribute(t,s)}removeAttribute(e){delete this.attributes[e]}appendChild(e){return ot(this,e)}insertBefore(e,t){return gs(this,e,t)}removeChild(e){return ws(this,e)}attachShadow(e){const t=this.ownerDocument.createElement("SHADOWROOT");return this.shadowRoot=t,t}dispatchEvent(e){return!0}toString(){let e="";for(const t in this.attributes)e+=`${t}="${this.attributes[t]}" `;return`${this.tagName} ${e}`}}class ps extends Q{constructor(){super(...arguments),c(this,"currentTime"),c(this,"volume"),c(this,"paused"),c(this,"muted"),c(this,"playbackRate"),c(this,"loop")}attachShadow(e){throw new Error("RRDomException: Failed to execute 'attachShadow' on 'RRElement': This RRElement does not support attachShadow")}play(){this.paused=!1}pause(){this.paused=!0}}class ms extends Q{constructor(){super(...arguments),c(this,"tagName","DIALOG"),c(this,"nodeName","DIALOG")}get isModal(){return this.getAttribute("rr_open_mode")==="modal"}get open(){return this.getAttribute("open")!==null}close(){this.removeAttribute("open"),this.removeAttribute("rr_open_mode")}show(){this.setAttribute("open",""),this.setAttribute("rr_open_mode","non-modal")}showModal(){this.setAttribute("open",""),this.setAttribute("rr_open_mode","modal")}}class rt extends _{constructor(e){super(),c(this,"nodeType",3),c(this,"nodeName","#text"),c(this,"RRNodeType",g.Text),c(this,"data"),this.data=e}get textContent(){return this.data}set textContent(e){this.data=e}toString(){return`RRText text=${JSON.stringify(this.data)}`}}class it extends _{constructor(e){super(),c(this,"nodeType",8),c(this,"nodeName","#comment"),c(this,"RRNodeType",g.Comment),c(this,"data"),this.data=e}get textContent(){return this.data}set textContent(e){this.data=e}toString(){return`RRComment text=${JSON.stringify(this.data)}`}}class nt extends _{constructor(e){super(),c(this,"nodeName","#cdata-section"),c(this,"nodeType",4),c(this,"RRNodeType",g.CDATA),c(this,"data"),this.data=e}get textContent(){return this.data}set textContent(e){this.data=e}toString(){return`RRCDATASection data=${JSON.stringify(this.data)}`}}class ds{constructor(e,t){if(c(this,"onChange"),c(this,"classes",[]),c(this,"add",(...s)=>{for(const r of s){const n=String(r);this.classes.indexOf(n)>=0||this.classes.push(n)}this.onChange&&this.onChange(this.classes.join(" "))}),c(this,"remove",(...s)=>{this.classes=this.classes.filter(r=>s.indexOf(r)===-1),this.onChange&&this.onChange(this.classes.join(" "))}),e){const s=e.trim().split(/\s+/);this.classes.push(...s)}this.onChange=t}}function ot(i,e){return e.parentNode&&e.parentNode.removeChild(e),i.lastChild?(i.lastChild.nextSibling=e,e.previousSibling=i.lastChild):(i.firstChild=e,e.previousSibling=null),i.lastChild=e,e.nextSibling=null,e.parentNode=i,e.parentElement=i,e.ownerDocument=i.ownerDocument,e}function gs(i,e,t){if(!t)return ot(i,e);if(t.parentNode!==i)throw new Error("Failed to execute 'insertBefore' on 'RRNode': The RRNode before which the new node is to be inserted is not a child of this RRNode.");return e===t||(e.parentNode&&e.parentNode.removeChild(e),e.previousSibling=t.previousSibling,t.previousSibling=e,e.nextSibling=t,e.previousSibling?e.previousSibling.nextSibling=e:i.firstChild=e,e.parentElement=i,e.parentNode=i,e.ownerDocument=i.ownerDocument),e}function ws(i,e){if(e.parentNode!==i)throw new Error("Failed to execute 'removeChild' on 'RRNode': The RRNode to be removed is not a child of this RRNode.");return e.previousSibling?e.previousSibling.nextSibling=e.nextSibling:i.firstChild=e.nextSibling,e.nextSibling?e.nextSibling.previousSibling=e.previousSibling:i.lastChild=e.previousSibling,e.previousSibling=null,e.nextSibling=null,e.parentElement=null,e.parentNode=null,e}var C=(i=>(i[i.PLACEHOLDER=0]="PLACEHOLDER",i[i.ELEMENT_NODE=1]="ELEMENT_NODE",i[i.ATTRIBUTE_NODE=2]="ATTRIBUTE_NODE",i[i.TEXT_NODE=3]="TEXT_NODE",i[i.CDATA_SECTION_NODE=4]="CDATA_SECTION_NODE",i[i.ENTITY_REFERENCE_NODE=5]="ENTITY_REFERENCE_NODE",i[i.ENTITY_NODE=6]="ENTITY_NODE",i[i.PROCESSING_INSTRUCTION_NODE=7]="PROCESSING_INSTRUCTION_NODE",i[i.COMMENT_NODE=8]="COMMENT_NODE",i[i.DOCUMENT_NODE=9]="DOCUMENT_NODE",i[i.DOCUMENT_TYPE_NODE=10]="DOCUMENT_TYPE_NODE",i[i.DOCUMENT_FRAGMENT_NODE=11]="DOCUMENT_FRAGMENT_NODE",i))(C||{});const Ve={svg:"http://www.w3.org/2000/svg","xlink:href":"http://www.w3.org/1999/xlink",xmlns:"http://www.w3.org/2000/xmlns/"},ki={altglyph:"altGlyph",altglyphdef:"altGlyphDef",altglyphitem:"altGlyphItem",animatecolor:"animateColor",animatemotion:"animateMotion",animatetransform:"animateTransform",clippath:"clipPath",feblend:"feBlend",fecolormatrix:"feColorMatrix",fecomponenttransfer:"feComponentTransfer",fecomposite:"feComposite",feconvolvematrix:"feConvolveMatrix",fediffuselighting:"feDiffuseLighting",fedisplacementmap:"feDisplacementMap",fedistantlight:"feDistantLight",fedropshadow:"feDropShadow",feflood:"feFlood",fefunca:"feFuncA",fefuncb:"feFuncB",fefuncg:"feFuncG",fefuncr:"feFuncR",fegaussianblur:"feGaussianBlur",feimage:"feImage",femerge:"feMerge",femergenode:"feMergeNode",femorphology:"feMorphology",feoffset:"feOffset",fepointlight:"fePointLight",fespecularlighting:"feSpecularLighting",fespotlight:"feSpotLight",fetile:"feTile",feturbulence:"feTurbulence",foreignobject:"foreignObject",glyphref:"glyphRef",lineargradient:"linearGradient",radialgradient:"radialGradient"};let M=null;function lt(i,e,t,s=e.mirror||e.ownerDocument.mirror){i=Ui(i,e,t,s),ys(i,e,t,s),Bi(i,e,t)}function Ui(i,e,t,s){var r;if(t.afterAppend&&!M&&(M=new WeakSet,setTimeout(()=>{M=null},0)),!at(i,e)){const n=de(e,t.mirror,s);(r=i.parentNode)==null||r.replaceChild(n,i),i=n}switch(e.RRNodeType){case g.Document:{if(!P(i,e,t.mirror,s)){const n=s.getMeta(e);n&&(t.mirror.removeNodeFromMap(i),i.close(),i.open(),t.mirror.add(i,n),M==null||M.add(i))}break}case g.Element:{const n=i,o=e;switch(o.tagName){case"IFRAME":{const a=i.contentDocument;if(!a)break;lt(a,e.contentDocument,t,s);break}}o.shadowRoot&&(n.shadowRoot||n.attachShadow({mode:"open"}),ys(n.shadowRoot,o.shadowRoot,t,s)),Fi(n,o,s);break}}return i}function Bi(i,e,t){var s;switch(e.RRNodeType){case g.Document:{const r=e.scrollData;r&&t.applyScroll(r,!0);break}case g.Element:{const r=i,n=e;switch(n.scrollData&&t.applyScroll(n.scrollData,!0),n.inputData&&t.applyInput(n.inputData),n.tagName){case"AUDIO":case"VIDEO":{const o=i,a=n;a.paused!==void 0&&(a.paused?o.pause():o.play()),a.muted!==void 0&&(o.muted=a.muted),a.volume!==void 0&&(o.volume=a.volume),a.currentTime!==void 0&&(o.currentTime=a.currentTime),a.playbackRate!==void 0&&(o.playbackRate=a.playbackRate),a.loop!==void 0&&(o.loop=a.loop);break}case"CANVAS":{const o=e;if(o.rr_dataURL!==null){const a=document.createElement("img");a.onload=()=>{const l=r.getContext("2d");l&&l.drawImage(a,0,0,a.width,a.height)},a.src=o.rr_dataURL}o.canvasMutations.forEach(a=>t.applyCanvas(a.event,a.mutation,i));break}case"STYLE":{const o=r.sheet;o&&e.rules.forEach(a=>t.applyStyleSheetMutation(a,o));break}case"DIALOG":{const o=r,a=n,l=o.open,h=o.matches("dialog:modal"),u=a.open,m=a.isModal,d=h!==m,w=l!==u;if((d||l&&w)&&o.close(),u&&(w||d))try{m?o.showModal():o.show()}catch(x){console.warn(x)}break}}break}case g.Text:case g.Comment:case g.CDATA:{i.textContent!==e.data&&(i.textContent=e.data);break}}M!=null&&M.has(i)&&(M.delete(i),(s=t.afterAppend)==null||s.call(t,i,t.mirror.getId(i)))}function Fi(i,e,t){const s=i.attributes,r=e.attributes;for(const n in r){const o=r[n],a=t.getMeta(e);if(a!=null&&a.isSVG&&Ve[n])i.setAttributeNS(Ve[n],n,o);else if(e.tagName==="CANVAS"&&n==="rr_dataURL"){const l=document.createElement("img");l.src=o,l.onload=()=>{const h=i.getContext("2d");h&&h.drawImage(l,0,0,l.width,l.height)}}else{if(e.tagName==="IFRAME"&&n==="srcdoc")continue;try{i.setAttribute(n,o)}catch(l){console.warn(l)}}}for(const{name:n}of Array.from(s))n in r||i.removeAttribute(n);e.scrollLeft&&(i.scrollLeft=e.scrollLeft),e.scrollTop&&(i.scrollTop=e.scrollTop)}function ys(i,e,t,s){const r=Array.from(i.childNodes),n=e.childNodes;if(r.length===0&&n.length===0)return;let o=0,a=r.length-1,l=0,h=n.length-1,u=r[o],m=r[a],d=n[l],w=n[h],x,S;for(;o<=a&&l<=h;)if(u===void 0)u=r[++o];else if(m===void 0)m=r[--a];else if(P(u,d,t.mirror,s))u=r[++o],d=n[++l];else if(P(m,w,t.mirror,s))m=r[--a],w=n[--h];else if(P(u,w,t.mirror,s)){try{i.insertBefore(u,m.nextSibling)}catch(E){console.warn(E)}u=r[++o],w=n[--h]}else if(P(m,d,t.mirror,s)){try{i.insertBefore(m,u)}catch(E){console.warn(E)}m=r[--a],d=n[++l]}else{if(!x){x={};for(let b=o;b<=a;b++){const v=r[b];v&&t.mirror.hasNode(v)&&(x[t.mirror.getId(v)]=b)}}S=x[s.getId(d)];const E=r[S];if(S!==void 0&&E&&P(E,d,t.mirror,s)){try{i.insertBefore(E,u)}catch(b){console.warn(b)}r[S]=void 0}else{const b=de(d,t.mirror,s);i.nodeName==="#document"&&u&&(b.nodeType===b.DOCUMENT_TYPE_NODE&&u.nodeType===u.DOCUMENT_TYPE_NODE||b.nodeType===b.ELEMENT_NODE&&u.nodeType===u.ELEMENT_NODE)&&(i.removeChild(u),t.mirror.removeNodeFromMap(u),u=r[++o]);try{i.insertBefore(b,u||null)}catch(v){console.warn(v)}}d=n[++l]}if(o>a){const E=n[h+1];let b=null;for(E&&(b=t.mirror.getNode(s.getId(E)));l<=h;++l){const v=de(n[l],t.mirror,s);try{i.insertBefore(v,b)}catch(Ce){console.warn(Ce)}}}else if(l>h)for(;o<=a;o++){const E=r[o];if(!(!E||E.parentNode!==i))try{i.removeChild(E),t.mirror.removeNodeFromMap(E)}catch(b){console.warn(b)}}let f=i.firstChild,D=e.firstChild;for(;f!==null&&D!==null;)lt(f,D,t,s),f=f.nextSibling,D=D.nextSibling}function de(i,e,t){const s=t.getId(i),r=t.getMeta(i);let n=null;if(s>-1&&(n=e.getNode(s)),n!==null&&at(n,i))return n;switch(i.RRNodeType){case g.Document:n=new Document;break;case g.DocumentType:n=document.implementation.createDocumentType(i.name,i.publicId,i.systemId);break;case g.Element:{let o=i.tagName.toLowerCase();o=ki[o]||o,r&&"isSVG"in r&&(r!=null&&r.isSVG)?n=document.createElementNS(Ve.svg,o):n=document.createElement(i.tagName);break}case g.Text:n=document.createTextNode(i.data);break;case g.Comment:n=document.createComment(i.data);break;case g.CDATA:n=document.createCDATASection(i.data);break}r&&e.add(n,N({},r));try{M==null||M.add(n)}catch(o){}return n}function at(i,e){return i.nodeType!==e.nodeType?!1:i.nodeType!==i.ELEMENT_NODE||i.tagName.toUpperCase()===e.tagName}function P(i,e,t,s){const r=t.getId(i),n=s.getId(e);return r===-1||r!==n?!1:at(i,e)}class B extends be{constructor(e){super(),c(this,"UNSERIALIZED_STARTING_ID",-2),c(this,"_unserializedId",this.UNSERIALIZED_STARTING_ID),c(this,"mirror",As()),c(this,"scrollData",null),e&&(this.mirror=e)}get unserializedId(){return this._unserializedId--}createDocument(e,t,s){return new B}createDocumentType(e,t,s){const r=new Rs(e,t,s);return r.ownerDocument=this,r}createElement(e){const t=e.toUpperCase();let s;switch(t){case"AUDIO":case"VIDEO":s=new Es(t);break;case"IFRAME":s=new Ss(t,this.mirror);break;case"CANVAS":s=new Cs(t);break;case"STYLE":s=new xs(t);break;case"DIALOG":s=new bs(t);break;default:s=new q(t);break}return s.ownerDocument=this,s}createComment(e){const t=new Ns(e);return t.ownerDocument=this,t}createCDATASection(e){const t=new Os(e);return t.ownerDocument=this,t}createTextNode(e){const t=new vs(e);return t.ownerDocument=this,t}destroyTree(){this.firstChild=null,this.lastChild=null,this.mirror.reset()}open(){super.open(),this._unserializedId=this.UNSERIALIZED_STARTING_ID}}const Rs=st;class q extends Q{constructor(){super(...arguments),c(this,"inputData",null),c(this,"scrollData",null)}}class Es extends ps{}class bs extends ms{}class Cs extends q{constructor(){super(...arguments),c(this,"rr_dataURL",null),c(this,"canvasMutations",[])}getContext(){return null}}class xs extends q{constructor(){super(...arguments),c(this,"rules",[])}}class Ss extends q{constructor(e,t){super(e),c(this,"contentDocument",new B),this.contentDocument.mirror=t}}const vs=rt,Ns=it,Os=nt;function zi(i){return i instanceof HTMLFormElement?"FORM":i.tagName.toUpperCase()}function Ds(i,e,t,s){let r;switch(i.nodeType){case C.DOCUMENT_NODE:s&&s.nodeName==="IFRAME"?r=s.contentDocument:(r=e,r.compatMode=i.compatMode);break;case C.DOCUMENT_TYPE_NODE:{const o=i;r=e.createDocumentType(o.name,o.publicId,o.systemId);break}case C.ELEMENT_NODE:{const o=i,a=zi(o);r=e.createElement(a);const l=r;for(const{name:h,value:u}of Array.from(o.attributes))l.attributes[h]=u;o.scrollLeft&&(l.scrollLeft=o.scrollLeft),o.scrollTop&&(l.scrollTop=o.scrollTop);break}case C.TEXT_NODE:r=e.createTextNode(i.textContent||"");break;case C.CDATA_SECTION_NODE:r=e.createCDATASection(i.data);break;case C.COMMENT_NODE:r=e.createComment(i.textContent||"");break;case C.DOCUMENT_FRAGMENT_NODE:r=s.attachShadow({mode:"open"});break;default:return null}let n=t.getMeta(i);return e instanceof B&&(n||(n=_s(r,e.unserializedId),t.add(i,n)),e.mirror.add(r,N({},n))),r}function Wi(i,e=Ws(),t=new B){function s(r,n){const o=Ds(r,t,e,n);if(o!==null)if((n==null?void 0:n.nodeName)!=="IFRAME"&&r.nodeType!==C.DOCUMENT_FRAGMENT_NODE&&(n==null||n.appendChild(o),o.parentNode=n,o.parentElement=n),r.nodeName==="IFRAME"){const a=r.contentDocument;a&&s(a,o)}else(r.nodeType===C.DOCUMENT_NODE||r.nodeType===C.ELEMENT_NODE||r.nodeType===C.DOCUMENT_FRAGMENT_NODE)&&(r.nodeType===C.ELEMENT_NODE&&r.shadowRoot&&s(r.shadowRoot,o),r.childNodes.forEach(a=>s(a,o)))}return s(i,null),t}function As(){return new Ms}class Ms{constructor(){c(this,"idNodeMap",new Map),c(this,"nodeMetaMap",new WeakMap)}getId(e){var t;if(!e)return-1;const s=(t=this.getMeta(e))==null?void 0:t.id;return s!=null?s:-1}getNode(e){return this.idNodeMap.get(e)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(e){return this.nodeMetaMap.get(e)||null}removeNodeFromMap(e){const t=this.getId(e);this.idNodeMap.delete(t),e.childNodes&&e.childNodes.forEach(s=>this.removeNodeFromMap(s))}has(e){return this.idNodeMap.has(e)}hasNode(e){return this.nodeMetaMap.has(e)}add(e,t){const s=t.id;this.idNodeMap.set(s,e),this.nodeMetaMap.set(e,t)}replace(e,t){const s=this.getNode(e);if(s){const r=this.nodeMetaMap.get(s);r&&this.nodeMetaMap.set(t,r)}this.idNodeMap.set(e,t)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function _s(i,e){switch(i.RRNodeType){case g.Document:return{id:e,type:i.RRNodeType,childNodes:[]};case g.DocumentType:{const t=i;return{id:e,type:i.RRNodeType,name:t.name,publicId:t.publicId,systemId:t.systemId}}case g.Element:return{id:e,type:i.RRNodeType,tagName:i.tagName.toLowerCase(),attributes:{},childNodes:[]};case g.Text:return{id:e,type:i.RRNodeType,textContent:i.textContent||""};case g.Comment:return{id:e,type:i.RRNodeType,textContent:i.textContent||""};case g.CDATA:return{id:e,type:i.RRNodeType,textContent:""}}}function ji(i,e){return he(i,e,"")}function he(i,e,t){let s=`${t}${e.getId(i)} ${i.toString()}
42
- `;if(i.RRNodeType===g.Element){const r=i;r.shadowRoot&&(s+=he(r.shadowRoot,e,t+" "))}for(const r of i.childNodes)s+=he(r,e,t+" ");return i.nodeName==="IFRAME"&&(s+=he(i.contentDocument,e,t+" ")),s}exports.BaseRRCDATASection=nt;exports.BaseRRComment=it;exports.BaseRRDialogElement=ms;exports.BaseRRDocument=be;exports.BaseRRDocumentType=st;exports.BaseRRElement=Q;exports.BaseRRMediaElement=ps;exports.BaseRRNode=_;exports.BaseRRText=rt;exports.ClassList=ds;exports.Mirror=Ms;exports.NodeType=C;exports.RRCDATASection=Os;exports.RRCanvasElement=Cs;exports.RRComment=Ns;exports.RRDialogElement=bs;exports.RRDocument=B;exports.RRDocumentType=Rs;exports.RRElement=q;exports.RRIFrameElement=Ss;exports.RRMediaElement=Es;exports.RRNode=_;exports.RRStyleElement=xs;exports.RRText=vs;exports.buildFromDom=Wi;exports.buildFromNode=Ds;exports.createMirror=As;exports.createOrGetNode=de;exports.diff=lt;exports.getDefaultSN=_s;exports.printRRDom=ji;
37
+ `)&&(n=`\r
38
+ `),this.css+=n+"/*# sourceMappingURL="+a+" */"}applyPrevMaps(){for(let a of this.previous()){let n=this.toUrl(this.path(a.file)),d=a.root||t(a.file),h;this.mapOpts.sourcesContent===!1?(h=new s(a.text),h.sourcesContent&&(h.sourcesContent=null)):h=a.consumer(),this.map.applySourceMap(h,n,this.toUrl(this.path(d)))}}clearAnnotation(){if(this.mapOpts.annotation!==!1)if(this.root){let a;for(let n=this.root.nodes.length-1;n>=0;n--)a=this.root.nodes[n],a.type==="comment"&&a.text.startsWith("# sourceMappingURL=")&&this.root.removeChild(n)}else this.css&&(this.css=this.css.replace(/\n*\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),f&&g&&this.isMap())return this.generateMap();{let a="";return this.stringify(this.root,n=>{a+=n}),[a]}}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let a=this.previous()[0].consumer();a.file=this.outputFile(),this.map=l.fromSourceMap(a,{ignoreInvalidMapping:!0})}else this.map=new l({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 l({file:this.outputFile(),ignoreInvalidMapping:!0});let a=1,n=1,d="<no source>",h={generated:{column:0,line:0},original:{column:0,line:0},source:""},m,b;this.stringify(this.root,(w,E,v)=>{if(this.css+=w,E&&v!=="end"&&(h.generated.line=a,h.generated.column=n-1,E.source&&E.source.start?(h.source=this.sourcePath(E),h.original.line=E.source.start.line,h.original.column=E.source.start.column-1,this.map.addMapping(h)):(h.source=d,h.original.line=1,h.original.column=0,this.map.addMapping(h))),b=w.match(/\n/g),b?(a+=b.length,m=w.lastIndexOf(`
39
+ `),n=w.length-m):n+=w.length,E&&v!=="start"){let R=E.parent||{raws:{}};(!(E.type==="decl"||E.type==="atrule"&&!E.nodes)||E!==R.last||R.raws.semicolon)&&(E.source&&E.source.end?(h.source=this.sourcePath(E),h.original.line=E.source.end.line,h.original.column=E.source.end.column-1,h.generated.line=a,h.generated.column=n-2,this.map.addMapping(h)):(h.source=d,h.original.line=1,h.original.column=0,h.generated.line=a,h.generated.column=n-1,this.map.addMapping(h)))}})}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation!="undefined"?this.mapOpts.annotation:this.previous().length?this.previous().some(a=>a.annotation):!0}isInline(){if(typeof this.mapOpts.inline!="undefined")return this.mapOpts.inline;let a=this.mapOpts.annotation;return typeof a!="undefined"&&a!==!0?!1:this.previous().length?this.previous().some(n=>n.inline):!0}isMap(){return typeof this.opts.map!="undefined"?!!this.opts.map:this.previous().length>0}isSourcesContent(){return typeof this.mapOpts.sourcesContent!="undefined"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(a=>a.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(a){if(this.mapOpts.absolute||a.charCodeAt(0)===60||/^\w+:\/\//.test(a))return a;let n=this.memoizedPaths.get(a);if(n)return n;let d=this.opts.to?t(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(d=t(i(d,this.mapOpts.annotation)));let h=e(d,a);return this.memoizedPaths.set(a,h),h}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(a=>{if(a.source&&a.source.input.map){let n=a.source.input.map;this.previousMaps.includes(n)||this.previousMaps.push(n)}});else{let a=new p(this.originalCSS,this.opts);a.map&&this.previousMaps.push(a.map)}return this.previousMaps}setSourcesContent(){let a={};if(this.root)this.root.walk(n=>{if(n.source){let d=n.source.input.from;if(d&&!a[d]){a[d]=!0;let h=this.usesFileUrls?this.toFileUrl(d):this.toUrl(this.path(d));this.map.setSourceContent(h,n.source.input.css)}}});else if(this.css){let n=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(n,this.css)}}sourcePath(a){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(a.source.input.from):this.toUrl(this.path(a.source.input.from))}toBase64(a){return Buffer?Buffer.from(a).toString("base64"):window.btoa(unescape(encodeURIComponent(a)))}toFileUrl(a){let n=this.memoizedFileURLs.get(a);if(n)return n;if(o){let d=o(a).toString();return this.memoizedFileURLs.set(a,d),d}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(a){let n=this.memoizedURLs.get(a);if(n)return n;c==="\\"&&(a=a.replace(/\\/g,"/"));let d=encodeURI(a).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(a,d),d}}return _e=r,_e}var Te,It;function Xt(){if(It)return Te;It=1;const t=39,e=34,i=92,c=47,s=10,l=32,o=12,p=9,g=13,f=91,r=93,u=40,a=41,n=123,d=125,h=59,m=42,b=58,w=64,E=/[\t\n\f\r "#'()/;[\\\]{}]/g,v=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,R=/.[\r\n"'(/\\]/,y=/[\da-f]/i;return Te=function(N,M={}){let O=N.css.valueOf(),P=M.ignoreErrors,T,ce,Q,S,ot,L,z,j,q,lt,at=O.length,D=0,he=[],K=[];function br(){return D}function fe(G){throw N.error("Unclosed "+G,D)}function Cr(){return K.length===0&&D>=at}function vr(G){if(K.length)return K.pop();if(D>=at)return;let pe=G?G.ignoreUnclosed:!1;switch(T=O.charCodeAt(D),T){case s:case l:case p:case g:case o:{S=D;do S+=1,T=O.charCodeAt(S);while(T===l||T===s||T===p||T===g||T===o);L=["space",O.slice(D,S)],D=S-1;break}case f:case r:case n:case d:case b:case h:case a:{let ut=String.fromCharCode(T);L=[ut,ut,D];break}case u:{if(lt=he.length?he.pop()[1]:"",q=O.charCodeAt(D+1),lt==="url"&&q!==t&&q!==e&&q!==l&&q!==s&&q!==p&&q!==o&&q!==g){S=D;do{if(z=!1,S=O.indexOf(")",S+1),S===-1)if(P||pe){S=D;break}else fe("bracket");for(j=S;O.charCodeAt(j-1)===i;)j-=1,z=!z}while(z);L=["brackets",O.slice(D,S+1),D,S],D=S}else S=O.indexOf(")",D+1),ce=O.slice(D,S+1),S===-1||R.test(ce)?L=["(","(",D]:(L=["brackets",ce,D,S],D=S);break}case t:case e:{ot=T===t?"'":'"',S=D;do{if(z=!1,S=O.indexOf(ot,S+1),S===-1)if(P||pe){S=D+1;break}else fe("string");for(j=S;O.charCodeAt(j-1)===i;)j-=1,z=!z}while(z);L=["string",O.slice(D,S+1),D,S],D=S;break}case w:{E.lastIndex=D+1,E.test(O),E.lastIndex===0?S=O.length-1:S=E.lastIndex-2,L=["at-word",O.slice(D,S+1),D,S],D=S;break}case i:{for(S=D,Q=!0;O.charCodeAt(S+1)===i;)S+=1,Q=!Q;if(T=O.charCodeAt(S+1),Q&&T!==c&&T!==l&&T!==s&&T!==p&&T!==g&&T!==o&&(S+=1,y.test(O.charAt(S)))){for(;y.test(O.charAt(S+1));)S+=1;O.charCodeAt(S+1)===l&&(S+=1)}L=["word",O.slice(D,S+1),D,S],D=S;break}default:{T===c&&O.charCodeAt(D+1)===m?(S=O.indexOf("*/",D+2)+1,S===0&&(P||pe?S=O.length:fe("comment")),L=["comment",O.slice(D,S+1),D,S],D=S):(v.lastIndex=D+1,v.test(O),v.lastIndex===0?S=O.length-1:S=v.lastIndex-2,L=["word",O.slice(D,S+1),D,S],he.push(L),D=S);break}}return D++,L}function xr(G){K.push(G)}return{back:xr,endOfFile:Cr,nextToken:vr,position:br}},Te}var Ie,Pt;function Zt(){if(Pt)return Ie;Pt=1;let t=He(),e=H(),i=le(),c=J(),s=Xe(),l=Xt();const o={empty:!0,space:!0};function p(f){for(let r=f.length-1;r>=0;r--){let u=f[r],a=u[3]||u[2];if(a)return a}}class g{constructor(r){this.input=r,this.root=new c,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:r,start:{column:1,line:1,offset:0}}}atrule(r){let u=new t;u.name=r[1].slice(1),u.name===""&&this.unnamedAtrule(u,r),this.init(u,r[2]);let a,n,d,h=!1,m=!1,b=[],w=[];for(;!this.tokenizer.endOfFile();){if(r=this.tokenizer.nextToken(),a=r[0],a==="("||a==="["?w.push(a==="("?")":"]"):a==="{"&&w.length>0?w.push("}"):a===w[w.length-1]&&w.pop(),w.length===0)if(a===";"){u.source.end=this.getPosition(r[2]),u.source.end.offset++,this.semicolon=!0;break}else if(a==="{"){m=!0;break}else if(a==="}"){if(b.length>0){for(d=b.length-1,n=b[d];n&&n[0]==="space";)n=b[--d];n&&(u.source.end=this.getPosition(n[3]||n[2]),u.source.end.offset++)}this.end(r);break}else b.push(r);else b.push(r);if(this.tokenizer.endOfFile()){h=!0;break}}u.raws.between=this.spacesAndCommentsFromEnd(b),b.length?(u.raws.afterName=this.spacesAndCommentsFromStart(b),this.raw(u,"params",b),h&&(r=b[b.length-1],u.source.end=this.getPosition(r[3]||r[2]),u.source.end.offset++,this.spaces=u.raws.between,u.raws.between="")):(u.raws.afterName="",u.params=""),m&&(u.nodes=[],this.current=u)}checkMissedSemicolon(r){let u=this.colon(r);if(u===!1)return;let a=0,n;for(let d=u-1;d>=0&&(n=r[d],!(n[0]!=="space"&&(a+=1,a===2)));d--);throw this.input.error("Missed semicolon",n[0]==="word"?n[3]+1:n[2])}colon(r){let u=0,a,n,d;for(let[h,m]of r.entries()){if(n=m,d=n[0],d==="("&&(u+=1),d===")"&&(u-=1),u===0&&d===":")if(!a)this.doubleColon(n);else{if(a[0]==="word"&&a[1]==="progid")continue;return h}a=n}return!1}comment(r){let u=new e;this.init(u,r[2]),u.source.end=this.getPosition(r[3]||r[2]),u.source.end.offset++;let a=r[1].slice(2,-2);if(/^\s*$/.test(a))u.text="",u.raws.left=a,u.raws.right="";else{let n=a.match(/^(\s*)([^]*\S)(\s*)$/);u.text=n[2],u.raws.left=n[1],u.raws.right=n[3]}}createTokenizer(){this.tokenizer=l(this.input)}decl(r,u){let a=new i;this.init(a,r[0][2]);let n=r[r.length-1];for(n[0]===";"&&(this.semicolon=!0,r.pop()),a.source.end=this.getPosition(n[3]||n[2]||p(r)),a.source.end.offset++;r[0][0]!=="word";)r.length===1&&this.unknownWord(r),a.raws.before+=r.shift()[1];for(a.source.start=this.getPosition(r[0][2]),a.prop="";r.length;){let w=r[0][0];if(w===":"||w==="space"||w==="comment")break;a.prop+=r.shift()[1]}a.raws.between="";let d;for(;r.length;)if(d=r.shift(),d[0]===":"){a.raws.between+=d[1];break}else d[0]==="word"&&/\w/.test(d[1])&&this.unknownWord([d]),a.raws.between+=d[1];(a.prop[0]==="_"||a.prop[0]==="*")&&(a.raws.before+=a.prop[0],a.prop=a.prop.slice(1));let h=[],m;for(;r.length&&(m=r[0][0],!(m!=="space"&&m!=="comment"));)h.push(r.shift());this.precheckMissedSemicolon(r);for(let w=r.length-1;w>=0;w--){if(d=r[w],d[1].toLowerCase()==="!important"){a.important=!0;let E=this.stringFrom(r,w);E=this.spacesFromEnd(r)+E,E!==" !important"&&(a.raws.important=E);break}else if(d[1].toLowerCase()==="important"){let E=r.slice(0),v="";for(let R=w;R>0;R--){let y=E[R][0];if(v.trim().startsWith("!")&&y!=="space")break;v=E.pop()[1]+v}v.trim().startsWith("!")&&(a.important=!0,a.raws.important=v,r=E)}if(d[0]!=="space"&&d[0]!=="comment")break}r.some(w=>w[0]!=="space"&&w[0]!=="comment")&&(a.raws.between+=h.map(w=>w[1]).join(""),h=[]),this.raw(a,"value",h.concat(r),u),a.value.includes(":")&&!u&&this.checkMissedSemicolon(r)}doubleColon(r){throw this.input.error("Double colon",{offset:r[2]},{offset:r[2]+r[1].length})}emptyRule(r){let u=new s;this.init(u,r[2]),u.selector="",u.raws.between="",this.current=u}end(r){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(r[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(r)}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(r){if(this.spaces+=r[1],this.current.nodes){let u=this.current.nodes[this.current.nodes.length-1];u&&u.type==="rule"&&!u.raws.ownSemicolon&&(u.raws.ownSemicolon=this.spaces,this.spaces="")}}getPosition(r){let u=this.input.fromOffset(r);return{column:u.col,line:u.line,offset:r}}init(r,u){this.current.push(r),r.source={input:this.input,start:this.getPosition(u)},r.raws.before=this.spaces,this.spaces="",r.type!=="comment"&&(this.semicolon=!1)}other(r){let u=!1,a=null,n=!1,d=null,h=[],m=r[1].startsWith("--"),b=[],w=r;for(;w;){if(a=w[0],b.push(w),a==="("||a==="[")d||(d=w),h.push(a==="("?")":"]");else if(m&&n&&a==="{")d||(d=w),h.push("}");else if(h.length===0)if(a===";")if(n){this.decl(b,m);return}else break;else if(a==="{"){this.rule(b);return}else if(a==="}"){this.tokenizer.back(b.pop()),u=!0;break}else a===":"&&(n=!0);else a===h[h.length-1]&&(h.pop(),h.length===0&&(d=null));w=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(u=!0),h.length>0&&this.unclosedBracket(d),u&&n){if(!m)for(;b.length&&(w=b[b.length-1][0],!(w!=="space"&&w!=="comment"));)this.tokenizer.back(b.pop());this.decl(b,m)}else this.unknownWord(b)}parse(){let r;for(;!this.tokenizer.endOfFile();)switch(r=this.tokenizer.nextToken(),r[0]){case"space":this.spaces+=r[1];break;case";":this.freeSemicolon(r);break;case"}":this.end(r);break;case"comment":this.comment(r);break;case"at-word":this.atrule(r);break;case"{":this.emptyRule(r);break;default:this.other(r);break}this.endFile()}precheckMissedSemicolon(){}raw(r,u,a,n){let d,h,m=a.length,b="",w=!0,E,v;for(let R=0;R<m;R+=1)d=a[R],h=d[0],h==="space"&&R===m-1&&!n?w=!1:h==="comment"?(v=a[R-1]?a[R-1][0]:"empty",E=a[R+1]?a[R+1][0]:"empty",!o[v]&&!o[E]?b.slice(-1)===","?w=!1:b+=d[1]:w=!1):b+=d[1];if(!w){let R=a.reduce((y,C)=>y+C[1],"");r.raws[u]={raw:R,value:b}}r[u]=b}rule(r){r.pop();let u=new s;this.init(u,r[0][2]),u.raws.between=this.spacesAndCommentsFromEnd(r),this.raw(u,"selector",r),this.current=u}spacesAndCommentsFromEnd(r){let u,a="";for(;r.length&&(u=r[r.length-1][0],!(u!=="space"&&u!=="comment"));)a=r.pop()[1]+a;return a}spacesAndCommentsFromStart(r){let u,a="";for(;r.length&&(u=r[0][0],!(u!=="space"&&u!=="comment"));)a+=r.shift()[1];return a}spacesFromEnd(r){let u,a="";for(;r.length&&(u=r[r.length-1][0],u==="space");)a=r.pop()[1]+a;return a}stringFrom(r,u){let a="";for(let n=u;n<r.length;n++)a+=r[n][1];return r.splice(u,r.length-u),a}unclosedBlock(){let r=this.current.source.start;throw this.input.error("Unclosed block",r.line,r.column)}unclosedBracket(r){throw this.input.error("Unclosed bracket",{offset:r[2]},{offset:r[2]+1})}unexpectedClose(r){throw this.input.error("Unexpected }",{offset:r[2]},{offset:r[2]+1})}unknownWord(r){throw this.input.error("Unknown word",{offset:r[0][2]},{offset:r[0][2]+r[0][1].length})}unnamedAtrule(r,u){throw this.input.error("At-rule without name",{offset:u[2]},{offset:u[2]+u[1].length})}}return Ie=g,Ie}var Pe,Lt;function Ze(){if(Lt)return Pe;Lt=1;let t=W(),e=ae(),i=Zt();function c(s,l){let o=new e(s,l),p=new i(o);try{p.parse()}catch(g){throw g}return p.root}return Pe=c,c.default=c,t.registerParse(c),Pe}var Le,kt;function Qt(){if(kt)return Le;kt=1;class t{constructor(i,c={}){if(this.type="warning",this.text=i,c.node&&c.node.source){let s=c.node.rangeBy(c);this.line=s.start.line,this.column=s.start.column,this.endLine=s.end.line,this.endColumn=s.end.column}for(let s in c)this[s]=c[s]}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}}return Le=t,t.default=t,Le}var ke,Bt;function Qe(){if(Bt)return ke;Bt=1;let t=Qt();class e{constructor(c,s,l){this.processor=c,this.messages=[],this.root=s,this.opts=l,this.css=void 0,this.map=void 0}toString(){return this.css}warn(c,s={}){s.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(s.plugin=this.lastPlugin.postcssPlugin);let l=new t(c,s);return this.messages.push(l),l}warnings(){return this.messages.filter(c=>c.type==="warning")}get content(){return this.css}}return ke=e,e.default=e,ke}var Be,Ut;function Kt(){if(Ut)return Be;Ut=1;let t={};return Be=function(i){t[i]||(t[i]=!0,typeof console!="undefined"&&console.warn&&console.warn(i))},Be}var Ue,Ft;function er(){if(Ft)return Ue;Ft=1;let t=W(),e=Je(),i=Jt(),c=Ze(),s=Qe(),l=J(),o=ne(),{isClean:p,my:g}=Ye(),f=Kt();const r={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},u={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},a={Once:!0,postcssPlugin:!0,prepare:!0},n=0;function d(v){return typeof v=="object"&&typeof v.then=="function"}function h(v){let R=!1,y=r[v.type];return v.type==="decl"?R=v.prop.toLowerCase():v.type==="atrule"&&(R=v.name.toLowerCase()),R&&v.append?[y,y+"-"+R,n,y+"Exit",y+"Exit-"+R]:R?[y,y+"-"+R,y+"Exit",y+"Exit-"+R]:v.append?[y,n,y+"Exit"]:[y,y+"Exit"]}function m(v){let R;return v.type==="document"?R=["Document",n,"DocumentExit"]:v.type==="root"?R=["Root",n,"RootExit"]:R=h(v),{eventIndex:0,events:R,iterator:0,node:v,visitorIndex:0,visitors:[]}}function b(v){return v[p]=!1,v.nodes&&v.nodes.forEach(R=>b(R)),v}let w={};class E{constructor(R,y,C){this.stringified=!1,this.processed=!1;let N;if(typeof y=="object"&&y!==null&&(y.type==="root"||y.type==="document"))N=b(y);else if(y instanceof E||y instanceof s)N=b(y.root),y.map&&(typeof C.map=="undefined"&&(C.map={}),C.map.inline||(C.map.inline=!1),C.map.prev=y.map);else{let M=c;C.syntax&&(M=C.syntax.parse),C.parser&&(M=C.parser),M.parse&&(M=M.parse);try{N=M(y,C)}catch(O){this.processed=!0,this.error=O}N&&!N[g]&&t.rebuild(N)}this.result=new s(R,N,C),this.helpers=Y(k({},w),{postcss:w,result:this.result}),this.plugins=this.processor.plugins.map(M=>typeof M=="object"&&M.prepare?k(k({},M),M.prepare(this.result)):M)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(R){return this.async().catch(R)}finally(R){return this.async().then(R,R)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(R,y){let C=this.result.lastPlugin;try{y&&y.addToError(R),this.error=R,R.name==="CssSyntaxError"&&!R.plugin?(R.plugin=C.postcssPlugin,R.setMessage()):C.postcssVersion}catch(N){console&&console.error&&console.error(N)}return R}prepareVisitors(){this.listeners={};let R=(y,C,N)=>{this.listeners[C]||(this.listeners[C]=[]),this.listeners[C].push([y,N])};for(let y of this.plugins)if(typeof y=="object")for(let C in y){if(!u[C]&&/^[A-Z]/.test(C))throw new Error(`Unknown event ${C} in ${y.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!a[C])if(typeof y[C]=="object")for(let N in y[C])N==="*"?R(y,C,y[C][N]):R(y,C+"-"+N.toLowerCase(),y[C][N]);else typeof y[C]=="function"&&R(y,C,y[C])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let R=0;R<this.plugins.length;R++){let y=this.plugins[R],C=this.runOnRoot(y);if(d(C))try{await C}catch(N){throw this.handleError(N)}}if(this.prepareVisitors(),this.hasListener){let R=this.result.root;for(;!R[p];){R[p]=!0;let y=[m(R)];for(;y.length>0;){let C=this.visitTick(y);if(d(C))try{await C}catch(N){let M=y[y.length-1].node;throw this.handleError(N,M)}}}if(this.listeners.OnceExit)for(let[y,C]of this.listeners.OnceExit){this.result.lastPlugin=y;try{if(R.type==="document"){let N=R.nodes.map(M=>C(M,this.helpers));await Promise.all(N)}else await C(R,this.helpers)}catch(N){throw this.handleError(N)}}}return this.processed=!0,this.stringify()}runOnRoot(R){this.result.lastPlugin=R;try{if(typeof R=="object"&&R.Once){if(this.result.root.type==="document"){let y=this.result.root.nodes.map(C=>R.Once(C,this.helpers));return d(y[0])?Promise.all(y):y}return R.Once(this.result.root,this.helpers)}else if(typeof R=="function")return R(this.result.root,this.result)}catch(y){throw this.handleError(y)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let R=this.result.opts,y=o;R.syntax&&(y=R.syntax.stringify),R.stringifier&&(y=R.stringifier),y.stringify&&(y=y.stringify);let N=new i(y,this.result.root,this.result.opts).generate();return this.result.css=N[0],this.result.map=N[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 R of this.plugins){let y=this.runOnRoot(R);if(d(y))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let R=this.result.root;for(;!R[p];)R[p]=!0,this.walkSync(R);if(this.listeners.OnceExit)if(R.type==="document")for(let y of R.nodes)this.visitSync(this.listeners.OnceExit,y);else this.visitSync(this.listeners.OnceExit,R)}return this.result}then(R,y){return this.async().then(R,y)}toString(){return this.css}visitSync(R,y){for(let[C,N]of R){this.result.lastPlugin=C;let M;try{M=N(y,this.helpers)}catch(O){throw this.handleError(O,y.proxyOf)}if(y.type!=="root"&&y.type!=="document"&&!y.parent)return!0;if(d(M))throw this.getAsyncError()}}visitTick(R){let y=R[R.length-1],{node:C,visitors:N}=y;if(C.type!=="root"&&C.type!=="document"&&!C.parent){R.pop();return}if(N.length>0&&y.visitorIndex<N.length){let[O,P]=N[y.visitorIndex];y.visitorIndex+=1,y.visitorIndex===N.length&&(y.visitors=[],y.visitorIndex=0),this.result.lastPlugin=O;try{return P(C.toProxy(),this.helpers)}catch(T){throw this.handleError(T,C)}}if(y.iterator!==0){let O=y.iterator,P;for(;P=C.nodes[C.indexes[O]];)if(C.indexes[O]+=1,!P[p]){P[p]=!0,R.push(m(P));return}y.iterator=0,delete C.indexes[O]}let M=y.events;for(;y.eventIndex<M.length;){let O=M[y.eventIndex];if(y.eventIndex+=1,O===n){C.nodes&&C.nodes.length&&(C[p]=!0,y.iterator=C.getIterator());return}else if(this.listeners[O]){y.visitors=this.listeners[O];return}}R.pop()}walkSync(R){R[p]=!0;let y=h(R);for(let C of y)if(C===n)R.nodes&&R.each(N=>{N[p]||this.walkSync(N)});else{let N=this.listeners[C];if(N&&this.visitSync(N,R.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"}}return E.registerPostcss=v=>{w=v},Ue=E,E.default=E,l.registerLazyResult(E),e.registerLazyResult(E),Ue}var Fe,zt;function qr(){if(zt)return Fe;zt=1;let t=Jt(),e=Ze();const i=Qe();let c=ne(),s=Kt();class l{constructor(p,g,f){g=g.toString(),this.stringified=!1,this._processor=p,this._css=g,this._opts=f,this._map=void 0;let r,u=c;this.result=new i(this._processor,r,this._opts),this.result.css=g;let a=this;Object.defineProperty(this.result,"root",{get(){return a.root}});let n=new t(u,r,this._opts,g);if(n.isMap()){let[d,h]=n.generate();d&&(this.result.css=d),h&&(this.result.map=h)}else n.clearAnnotation(),this.result.css=n.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(p){return this.async().catch(p)}finally(p){return this.async().then(p,p)}sync(){if(this.error)throw this.error;return this.result}then(p,g){return this.async().then(p,g)}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 p,g=e;try{p=g(this._css,this._opts)}catch(f){this.error=f}if(this.error)throw this.error;return this._root=p,p}get[Symbol.toStringTag](){return"NoWorkResult"}}return Fe=l,l.default=l,Fe}var ze,qt;function Wr(){if(qt)return ze;qt=1;let t=Je(),e=er(),i=qr(),c=J();class s{constructor(o=[]){this.version="8.5.1",this.plugins=this.normalize(o)}normalize(o){let p=[];for(let g of o)if(g.postcss===!0?g=g():g.postcss&&(g=g.postcss),typeof g=="object"&&Array.isArray(g.plugins))p=p.concat(g.plugins);else if(typeof g=="object"&&g.postcssPlugin)p.push(g);else if(typeof g=="function")p.push(g);else if(!(typeof g=="object"&&(g.parse||g.stringify)))throw new Error(g+" is not a PostCSS plugin");return p}process(o,p={}){return!this.plugins.length&&!p.parser&&!p.stringifier&&!p.syntax?new i(this,o,p):new e(this,o,p)}use(o){return this.plugins=this.plugins.concat(this.normalize([o])),this}}return ze=s,s.default=s,c.registerProcessor(s),t.registerProcessor(s),ze}var qe,Wt;function tr(){if(Wt)return qe;Wt=1;let t=He(),e=H(),i=W(),c=Ve(),s=le(),l=Je(),o=zr(),p=ae(),g=er(),f=Ht(),r=oe(),u=Ze(),a=Wr(),n=Qe(),d=J(),h=Xe(),m=ne(),b=Qt();function w(...E){return E.length===1&&Array.isArray(E[0])&&(E=E[0]),new a(E)}return w.plugin=function(v,R){let y=!1;function C(...M){console&&console.warn&&!y&&(y=!0,console.warn(v+`: postcss.plugin was deprecated. Migration guide:
40
+ https://evilmartians.com/chronicles/postcss-8-plugin-migration`),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(v+`: \u91CC\u9762 postcss.plugin \u88AB\u5F03\u7528. \u8FC1\u79FB\u6307\u5357:
41
+ https://www.w3ctech.com/topic/2226`));let O=R(...M);return O.postcssPlugin=v,O.postcssVersion=new a().version,O}let N;return Object.defineProperty(C,"postcss",{get(){return N||(N=C()),N}}),C.process=function(M,O,P){return w([C(P)]).process(M,O)},C},w.stringify=m,w.parse=u,w.fromJSON=o,w.list=f,w.comment=E=>new e(E),w.atRule=E=>new t(E),w.decl=E=>new s(E),w.rule=E=>new h(E),w.root=E=>new d(E),w.document=E=>new l(E),w.CssSyntaxError=c,w.Declaration=s,w.Container=i,w.Processor=a,w.Document=l,w.Comment=e,w.Warning=b,w.AtRule=t,w.Result=n,w.Input=p,w.Rule=h,w.Root=d,w.Node=r,g.registerPostcss(w),qe=w,w.default=w,qe}var We,jt;function jr(){if(jt)return We;jt=1;let t=H(),e=Zt(),i=Xt();class c extends e{checkMissedSemicolon(){}comment(l){let o=new t;this.init(o,l[2]);let p=this.input.fromOffset(l[3])||this.input.fromOffset(this.input.css.length-1);o.source.end={column:p.col,line:p.line,offset:l[3]+1};let g=l[1].slice(2);if(g.slice(-2)==="*/"&&(g=g.slice(0,-2)),/^\s*$/.test(g))o.text="",o.raws.left=g,o.raws.right="";else{let f=g.match(/^(\s*)([^]*\S)(\s*)$/);o.text=f[2],o.raws.left=f[1],o.raws.right=f[3]}}createTokenizer(){this.tokenizer=i(this.input,{ignoreErrors:!0})}decl(l){l.length>1&&l.some(o=>o[0]==="word")&&super.decl(l)}doubleColon(){}endFile(){for(this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces;this.current.parent;)this.current=this.current.parent,this.current.raws.after="";this.root.source.end=this.getPosition(this.tokenizer.position())}precheckMissedSemicolon(l){let o=this.colon(l);if(o===!1)return;let p,g;for(p=o-1;p>=0&&l[p][0]!=="word";p--);if(p===0||p<0)return;for(g=p-1;g>=0;g--)if(l[g][0]!=="space"){g+=1;break}let f=l.slice(p),r=l.slice(g,p);l.splice(g,l.length-g),this.spaces=r.map(u=>u[1]).join(""),this.decl(f)}unclosedBracket(){}unexpectedClose(){this.current.raws.after+="}"}unknownWord(l){this.spaces+=l.map(o=>o[1]).join("")}unnamedAtrule(l){l.name=""}}return We=c,We}var je,Gt;function Gr(){if(Gt)return je;Gt=1;let{Input:t}=tr(),e=jr();return je=function(c,s){let l=new t(c,s),o=new e(l);return o.parse(),o.root},je}Gr();var $r=tr();const _=Pr($r);_.stringify;_.fromJSON;_.plugin;_.parse;_.list;_.document;_.comment;_.atRule;_.rule;_.decl;_.root;_.CssSyntaxError;_.Declaration;_.Container;_.Processor;_.Document;_.Comment;_.Warning;_.AtRule;_.Result;_.Input;_.Rule;_.Root;_.Node;var A=(t=>(t[t.Document=0]="Document",t[t.DocumentType=1]="DocumentType",t[t.Element=2]="Element",t[t.Text=3]="Text",t[t.CDATA=4]="CDATA",t[t.Comment=5]="Comment",t))(A||{});function Vr(t){const e={},i=/;(?![^(]*\))/g,c=/:(.+)/,s=/\/\*.*?\*\//g;return t.replace(s,"").split(i).forEach(function(l){if(l){const o=l.split(c);o.length>1&&(e[Ge(o[0].trim())]=o[1].trim())}}),e}function $t(t){const e=[];for(const i in t){const c=t[i];if(typeof c!="string")continue;const s=Xr(i);e.push(`${s}: ${c};`)}return e.join(" ")}const Yr=/-([a-z])/g,Hr=/^--[a-zA-Z0-9-]+$/,Ge=t=>Hr.test(t)?t:t.replace(Yr,(e,i)=>i?i.toUpperCase():""),Jr=/\B([A-Z])/g,Xr=t=>t.replace(Jr,"-$1").toLowerCase();class F{constructor(...e){x(this,"parentElement",null),x(this,"parentNode",null),x(this,"ownerDocument"),x(this,"firstChild",null),x(this,"lastChild",null),x(this,"previousSibling",null),x(this,"nextSibling",null),x(this,"ELEMENT_NODE",1),x(this,"TEXT_NODE",3),x(this,"nodeType"),x(this,"nodeName"),x(this,"RRNodeType")}get childNodes(){const e=[];let i=this.firstChild;for(;i;)e.push(i),i=i.nextSibling;return e}contains(e){if(e instanceof F){if(e.ownerDocument!==this.ownerDocument)return!1;if(e===this)return!0}else return!1;for(;e.parentNode;){if(e.parentNode===this)return!0;e=e.parentNode}return!1}appendChild(e){throw new Error("RRDomException: Failed to execute 'appendChild' on 'RRNode': This RRNode type does not support this method.")}insertBefore(e,i){throw new Error("RRDomException: Failed to execute 'insertBefore' on 'RRNode': This RRNode type does not support this method.")}removeChild(e){throw new Error("RRDomException: Failed to execute 'removeChild' on 'RRNode': This RRNode type does not support this method.")}toString(){return"RRNode"}}class ue extends F{constructor(...e){super(e),x(this,"nodeType",9),x(this,"nodeName","#document"),x(this,"compatMode","CSS1Compat"),x(this,"RRNodeType",A.Document),x(this,"textContent",null),this.ownerDocument=this}get documentElement(){return this.childNodes.find(e=>e.RRNodeType===A.Element&&e.tagName==="HTML")||null}get body(){var e;return((e=this.documentElement)==null?void 0:e.childNodes.find(i=>i.RRNodeType===A.Element&&i.tagName==="BODY"))||null}get head(){var e;return((e=this.documentElement)==null?void 0:e.childNodes.find(i=>i.RRNodeType===A.Element&&i.tagName==="HEAD"))||null}get implementation(){return this}get firstElementChild(){return this.documentElement}appendChild(e){const i=e.RRNodeType;if((i===A.Element||i===A.DocumentType)&&this.childNodes.some(s=>s.RRNodeType===i))throw new Error(`RRDomException: Failed to execute 'appendChild' on 'RRNode': Only one ${i===A.Element?"RRElement":"RRDoctype"} on RRDocument allowed.`);const c=st(this,e);return c.parentElement=null,c}insertBefore(e,i){const c=e.RRNodeType;if((c===A.Element||c===A.DocumentType)&&this.childNodes.some(l=>l.RRNodeType===c))throw new Error(`RRDomException: Failed to execute 'insertBefore' on 'RRNode': Only one ${c===A.Element?"RRElement":"RRDoctype"} on RRDocument allowed.`);const s=nr(this,e,i);return s.parentElement=null,s}removeChild(e){return or(this,e)}open(){this.firstChild=null,this.lastChild=null}close(){}write(e){let i;if(e==='<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">'?i="-//W3C//DTD XHTML 1.0 Transitional//EN":e==='<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "">'&&(i="-//W3C//DTD HTML 4.0 Transitional//EN"),i){const c=this.createDocumentType("html",i,"");this.open(),this.appendChild(c)}}createDocument(e,i,c){return new ue}createDocumentType(e,i,c){const s=new Ke(e,i,c);return s.ownerDocument=this,s}createElement(e){const i=new X(e);return i.ownerDocument=this,i}createElementNS(e,i){return this.createElement(i)}createTextNode(e){const i=new et(e);return i.ownerDocument=this,i}createComment(e){const i=new tt(e);return i.ownerDocument=this,i}createCDATASection(e){const i=new rt(e);return i.ownerDocument=this,i}toString(){return"RRDocument"}}class Ke extends F{constructor(e,i,c){super(),x(this,"nodeType",10),x(this,"RRNodeType",A.DocumentType),x(this,"name"),x(this,"publicId"),x(this,"systemId"),x(this,"textContent",null),this.name=e,this.publicId=i,this.systemId=c,this.nodeName=e}toString(){return"RRDocumentType"}}class X extends F{constructor(e){super(),x(this,"nodeType",1),x(this,"RRNodeType",A.Element),x(this,"tagName"),x(this,"attributes",{}),x(this,"shadowRoot",null),x(this,"scrollLeft"),x(this,"scrollTop"),this.tagName=e.toUpperCase(),this.nodeName=e.toUpperCase()}get textContent(){let e="";return this.childNodes.forEach(i=>e+=i.textContent),e}set textContent(e){this.firstChild=null,this.lastChild=null,this.appendChild(this.ownerDocument.createTextNode(e))}get classList(){return new ir(this.attributes.class,e=>{this.attributes.class=e})}get id(){return this.attributes.id||""}get className(){return this.attributes.class||""}get style(){const e=this.attributes.style?Vr(this.attributes.style):{},i=/\B([A-Z])/g;return e.setProperty=(c,s,l)=>{if(i.test(c))return;const o=Ge(c);s?e[o]=s:delete e[o],l==="important"&&(e[o]+=" !important"),this.attributes.style=$t(e)},e.removeProperty=c=>{if(i.test(c))return"";const s=Ge(c),l=e[s]||"";return delete e[s],this.attributes.style=$t(e),l},e}getAttribute(e){return this.attributes[e]===void 0?null:this.attributes[e]}setAttribute(e,i){this.attributes[e]=i}setAttributeNS(e,i,c){this.setAttribute(i,c)}removeAttribute(e){delete this.attributes[e]}appendChild(e){return st(this,e)}insertBefore(e,i){return nr(this,e,i)}removeChild(e){return or(this,e)}attachShadow(e){const i=this.ownerDocument.createElement("SHADOWROOT");return this.shadowRoot=i,i}dispatchEvent(e){return!0}toString(){let e="";for(const i in this.attributes)e+=`${i}="${this.attributes[i]}" `;return`${this.tagName} ${e}`}}class rr extends X{constructor(){super(...arguments),x(this,"currentTime"),x(this,"volume"),x(this,"paused"),x(this,"muted"),x(this,"playbackRate"),x(this,"loop")}attachShadow(e){throw new Error("RRDomException: Failed to execute 'attachShadow' on 'RRElement': This RRElement does not support attachShadow")}play(){this.paused=!1}pause(){this.paused=!0}}class sr extends X{constructor(){super(...arguments),x(this,"tagName","DIALOG"),x(this,"nodeName","DIALOG")}get isModal(){return this.getAttribute("rr_open_mode")==="modal"}get open(){return this.getAttribute("open")!==null}close(){this.removeAttribute("open"),this.removeAttribute("rr_open_mode")}show(){this.setAttribute("open",""),this.setAttribute("rr_open_mode","non-modal")}showModal(){this.setAttribute("open",""),this.setAttribute("rr_open_mode","modal")}}class et extends F{constructor(e){super(),x(this,"nodeType",3),x(this,"nodeName","#text"),x(this,"RRNodeType",A.Text),x(this,"data"),this.data=e}get textContent(){return this.data}set textContent(e){this.data=e}toString(){return`RRText text=${JSON.stringify(this.data)}`}}class tt extends F{constructor(e){super(),x(this,"nodeType",8),x(this,"nodeName","#comment"),x(this,"RRNodeType",A.Comment),x(this,"data"),this.data=e}get textContent(){return this.data}set textContent(e){this.data=e}toString(){return`RRComment text=${JSON.stringify(this.data)}`}}class rt extends F{constructor(e){super(),x(this,"nodeName","#cdata-section"),x(this,"nodeType",4),x(this,"RRNodeType",A.CDATA),x(this,"data"),this.data=e}get textContent(){return this.data}set textContent(e){this.data=e}toString(){return`RRCDATASection data=${JSON.stringify(this.data)}`}}class ir{constructor(e,i){if(x(this,"onChange"),x(this,"classes",[]),x(this,"add",(...c)=>{for(const s of c){const l=String(s);this.classes.indexOf(l)>=0||this.classes.push(l)}this.onChange&&this.onChange(this.classes.join(" "))}),x(this,"remove",(...c)=>{this.classes=this.classes.filter(s=>c.indexOf(s)===-1),this.onChange&&this.onChange(this.classes.join(" "))}),e){const c=e.trim().split(/\s+/);this.classes.push(...c)}this.onChange=i}}function st(t,e){return e.parentNode&&e.parentNode.removeChild(e),t.lastChild?(t.lastChild.nextSibling=e,e.previousSibling=t.lastChild):(t.firstChild=e,e.previousSibling=null),t.lastChild=e,e.nextSibling=null,e.parentNode=t,e.parentElement=t,e.ownerDocument=t.ownerDocument,e}function nr(t,e,i){if(!i)return st(t,e);if(i.parentNode!==t)throw new Error("Failed to execute 'insertBefore' on 'RRNode': The RRNode before which the new node is to be inserted is not a child of this RRNode.");return e===i||(e.parentNode&&e.parentNode.removeChild(e),e.previousSibling=i.previousSibling,i.previousSibling=e,e.nextSibling=i,e.previousSibling?e.previousSibling.nextSibling=e:t.firstChild=e,e.parentElement=t,e.parentNode=t,e.ownerDocument=t.ownerDocument),e}function or(t,e){if(e.parentNode!==t)throw new Error("Failed to execute 'removeChild' on 'RRNode': The RRNode to be removed is not a child of this RRNode.");return e.previousSibling?e.previousSibling.nextSibling=e.nextSibling:t.firstChild=e.nextSibling,e.nextSibling?e.nextSibling.previousSibling=e.previousSibling:t.lastChild=e.previousSibling,e.previousSibling=null,e.nextSibling=null,e.parentElement=null,e.parentNode=null,e}var I=(t=>(t[t.PLACEHOLDER=0]="PLACEHOLDER",t[t.ELEMENT_NODE=1]="ELEMENT_NODE",t[t.ATTRIBUTE_NODE=2]="ATTRIBUTE_NODE",t[t.TEXT_NODE=3]="TEXT_NODE",t[t.CDATA_SECTION_NODE=4]="CDATA_SECTION_NODE",t[t.ENTITY_REFERENCE_NODE=5]="ENTITY_REFERENCE_NODE",t[t.ENTITY_NODE=6]="ENTITY_NODE",t[t.PROCESSING_INSTRUCTION_NODE=7]="PROCESSING_INSTRUCTION_NODE",t[t.COMMENT_NODE=8]="COMMENT_NODE",t[t.DOCUMENT_NODE=9]="DOCUMENT_NODE",t[t.DOCUMENT_TYPE_NODE=10]="DOCUMENT_TYPE_NODE",t[t.DOCUMENT_FRAGMENT_NODE=11]="DOCUMENT_FRAGMENT_NODE",t))(I||{});const $e={svg:"http://www.w3.org/2000/svg","xlink:href":"http://www.w3.org/1999/xlink",xmlns:"http://www.w3.org/2000/xmlns/"},Zr={altglyph:"altGlyph",altglyphdef:"altGlyphDef",altglyphitem:"altGlyphItem",animatecolor:"animateColor",animatemotion:"animateMotion",animatetransform:"animateTransform",clippath:"clipPath",feblend:"feBlend",fecolormatrix:"feColorMatrix",fecomponenttransfer:"feComponentTransfer",fecomposite:"feComposite",feconvolvematrix:"feConvolveMatrix",fediffuselighting:"feDiffuseLighting",fedisplacementmap:"feDisplacementMap",fedistantlight:"feDistantLight",fedropshadow:"feDropShadow",feflood:"feFlood",fefunca:"feFuncA",fefuncb:"feFuncB",fefuncg:"feFuncG",fefuncr:"feFuncR",fegaussianblur:"feGaussianBlur",feimage:"feImage",femerge:"feMerge",femergenode:"feMergeNode",femorphology:"feMorphology",feoffset:"feOffset",fepointlight:"fePointLight",fespecularlighting:"feSpecularLighting",fespotlight:"feSpotLight",fetile:"feTile",feturbulence:"feTurbulence",foreignobject:"foreignObject",glyphref:"glyphRef",lineargradient:"linearGradient",radialgradient:"radialGradient"};let U=null;function it(t,e,i,c=e.mirror||e.ownerDocument.mirror){t=Qr(t,e,i,c),lr(t,e,i,c),Kr(t,e,i)}function Qr(t,e,i,c){var s;if(i.afterAppend&&!U&&(U=new WeakSet,setTimeout(()=>{U=null},0)),!nt(t,e)){const l=ie(e,i.mirror,c);(s=t.parentNode)==null||s.replaceChild(l,t),t=l}switch(e.RRNodeType){case A.Document:{if(!$(t,e,i.mirror,c)){const l=c.getMeta(e);l&&(i.mirror.removeNodeFromMap(t),t.close(),t.open(),i.mirror.add(t,l),U==null||U.add(t))}break}case A.Element:{const l=t,o=e;switch(o.tagName){case"IFRAME":{const p=t.contentDocument;if(!p)break;it(p,e.contentDocument,i,c);break}}o.shadowRoot&&(l.shadowRoot||l.attachShadow({mode:"open"}),lr(l.shadowRoot,o.shadowRoot,i,c)),es(l,o,c);break}}return t}function Kr(t,e,i){var c;switch(e.RRNodeType){case A.Document:{const s=e.scrollData;s&&i.applyScroll(s,!0);break}case A.Element:{const s=t,l=e;switch(l.scrollData&&i.applyScroll(l.scrollData,!0),l.inputData&&i.applyInput(l.inputData),l.tagName){case"AUDIO":case"VIDEO":{const o=t,p=l;p.paused!==void 0&&(p.paused?o.pause():o.play()),p.muted!==void 0&&(o.muted=p.muted),p.volume!==void 0&&(o.volume=p.volume),p.currentTime!==void 0&&(o.currentTime=p.currentTime),p.playbackRate!==void 0&&(o.playbackRate=p.playbackRate),p.loop!==void 0&&(o.loop=p.loop);break}case"CANVAS":{const o=e;if(o.rr_dataURL!==null){const p=document.createElement("img");p.onload=()=>{const g=s.getContext("2d");g&&g.drawImage(p,0,0,p.width,p.height)},p.src=o.rr_dataURL}o.canvasMutations.forEach(p=>i.applyCanvas(p.event,p.mutation,t));break}case"STYLE":{const o=s.sheet;o&&e.rules.forEach(p=>i.applyStyleSheetMutation(p,o));break}case"DIALOG":{const o=s,p=l,g=o.open,f=o.matches("dialog:modal"),r=p.open,u=p.isModal,a=f!==u,n=g!==r;if((a||g&&n)&&o.close(),r&&(n||a))try{u?o.showModal():o.show()}catch(d){console.warn(d)}break}}break}case A.Text:case A.Comment:case A.CDATA:{t.textContent!==e.data&&(t.textContent=e.data);break}}U!=null&&U.has(t)&&(U.delete(t),(c=i.afterAppend)==null||c.call(i,t,i.mirror.getId(t)))}function es(t,e,i){const c=t.attributes,s=e.attributes;for(const l in s){const o=s[l],p=i.getMeta(e);if(p!=null&&p.isSVG&&$e[l])t.setAttributeNS($e[l],l,o);else if(e.tagName==="CANVAS"&&l==="rr_dataURL"){const g=document.createElement("img");g.src=o,g.onload=()=>{const f=t.getContext("2d");f&&f.drawImage(g,0,0,g.width,g.height)}}else{if(e.tagName==="IFRAME"&&l==="srcdoc")continue;try{t.setAttribute(l,o)}catch(g){console.warn(g)}}}for(const{name:l}of Array.from(c))l in s||t.removeAttribute(l);e.scrollLeft&&(t.scrollLeft=e.scrollLeft),e.scrollTop&&(t.scrollTop=e.scrollTop)}function lr(t,e,i,c){const s=Array.from(t.childNodes),l=e.childNodes;if(s.length===0&&l.length===0)return;let o=0,p=s.length-1,g=0,f=l.length-1,r=s[o],u=s[p],a=l[g],n=l[f],d,h;for(;o<=p&&g<=f;)if(r===void 0)r=s[++o];else if(u===void 0)u=s[--p];else if($(r,a,i.mirror,c))r=s[++o],a=l[++g];else if($(u,n,i.mirror,c))u=s[--p],n=l[--f];else if($(r,n,i.mirror,c)){try{t.insertBefore(r,u.nextSibling)}catch(w){console.warn(w)}r=s[++o],n=l[--f]}else if($(u,a,i.mirror,c)){try{t.insertBefore(u,r)}catch(w){console.warn(w)}u=s[--p],a=l[++g]}else{if(!d){d={};for(let E=o;E<=p;E++){const v=s[E];v&&i.mirror.hasNode(v)&&(d[i.mirror.getId(v)]=E)}}h=d[c.getId(a)];const w=s[h];if(h!==void 0&&w&&$(w,a,i.mirror,c)){try{t.insertBefore(w,r)}catch(E){console.warn(E)}s[h]=void 0}else{const E=ie(a,i.mirror,c);t.nodeName==="#document"&&r&&(E.nodeType===E.DOCUMENT_TYPE_NODE&&r.nodeType===r.DOCUMENT_TYPE_NODE||E.nodeType===E.ELEMENT_NODE&&r.nodeType===r.ELEMENT_NODE)&&(t.removeChild(r),i.mirror.removeNodeFromMap(r),r=s[++o]);try{t.insertBefore(E,r||null)}catch(v){console.warn(v)}}a=l[++g]}if(o>p){const w=l[f+1];let E=null;for(w&&(E=i.mirror.getNode(c.getId(w)));g<=f;++g){const v=ie(l[g],i.mirror,c);try{t.insertBefore(v,E)}catch(R){console.warn(R)}}}else if(g>f)for(;o<=p;o++){const w=s[o];if(!(!w||w.parentNode!==t))try{t.removeChild(w),i.mirror.removeNodeFromMap(w)}catch(E){console.warn(E)}}let m=t.firstChild,b=e.firstChild;for(;m!==null&&b!==null;)it(m,b,i,c),m=m.nextSibling,b=b.nextSibling}function ie(t,e,i){const c=i.getId(t),s=i.getMeta(t);let l=null;if(c>-1&&(l=e.getNode(c)),l!==null&&nt(l,t))return l;switch(t.RRNodeType){case A.Document:l=new Document;break;case A.DocumentType:l=document.implementation.createDocumentType(t.name,t.publicId,t.systemId);break;case A.Element:{let o=t.tagName.toLowerCase();o=Zr[o]||o,s&&"isSVG"in s&&(s!=null&&s.isSVG)?l=document.createElementNS($e.svg,o):l=document.createElement(t.tagName);break}case A.Text:l=document.createTextNode(t.data);break;case A.Comment:l=document.createComment(t.data);break;case A.CDATA:l=document.createCDATASection(t.data);break}s&&e.add(l,k({},s));try{U==null||U.add(l)}catch(o){}return l}function nt(t,e){return t.nodeType!==e.nodeType?!1:t.nodeType!==t.ELEMENT_NODE||t.tagName.toUpperCase()===e.tagName}function $(t,e,i,c){const s=i.getId(t),l=c.getId(e);return s===-1||s!==l?!1:nt(t,e)}class V extends ue{constructor(e){super(),x(this,"UNSERIALIZED_STARTING_ID",-2),x(this,"_unserializedId",this.UNSERIALIZED_STARTING_ID),x(this,"mirror",yr()),x(this,"scrollData",null),e&&(this.mirror=e)}get unserializedId(){return this._unserializedId--}createDocument(e,i,c){return new V}createDocumentType(e,i,c){const s=new ar(e,i,c);return s.ownerDocument=this,s}createElement(e){const i=e.toUpperCase();let c;switch(i){case"AUDIO":case"VIDEO":c=new ur(i);break;case"IFRAME":c=new pr(i,this.mirror);break;case"CANVAS":c=new hr(i);break;case"STYLE":c=new fr(i);break;case"DIALOG":c=new cr(i);break;default:c=new Z(i);break}return c.ownerDocument=this,c}createComment(e){const i=new mr(e);return i.ownerDocument=this,i}createCDATASection(e){const i=new gr(e);return i.ownerDocument=this,i}createTextNode(e){const i=new dr(e);return i.ownerDocument=this,i}destroyTree(){this.firstChild=null,this.lastChild=null,this.mirror.reset()}open(){super.open(),this._unserializedId=this.UNSERIALIZED_STARTING_ID}}const ar=Ke;class Z extends X{constructor(){super(...arguments),x(this,"inputData",null),x(this,"scrollData",null)}}class ur extends rr{}class cr extends sr{}class hr extends Z{constructor(){super(...arguments),x(this,"rr_dataURL",null),x(this,"canvasMutations",[])}getContext(){return null}}class fr extends Z{constructor(){super(...arguments),x(this,"rules",[])}}class pr extends Z{constructor(e,i){super(e),x(this,"contentDocument",new V),this.contentDocument.mirror=i}}const dr=et,mr=tt,gr=rt;function ts(t){return t instanceof HTMLFormElement?"FORM":t.tagName.toUpperCase()}function wr(t,e,i,c){let s;switch(t.nodeType){case I.DOCUMENT_NODE:c&&c.nodeName==="IFRAME"?s=c.contentDocument:(s=e,s.compatMode=t.compatMode);break;case I.DOCUMENT_TYPE_NODE:{const o=t;s=e.createDocumentType(o.name,o.publicId,o.systemId);break}case I.ELEMENT_NODE:{const o=t,p=ts(o);s=e.createElement(p);const g=s;for(const{name:f,value:r}of Array.from(o.attributes))g.attributes[f]=r;o.scrollLeft&&(g.scrollLeft=o.scrollLeft),o.scrollTop&&(g.scrollTop=o.scrollTop);break}case I.TEXT_NODE:s=e.createTextNode(t.textContent||"");break;case I.CDATA_SECTION_NODE:s=e.createCDATASection(t.data);break;case I.COMMENT_NODE:s=e.createComment(t.textContent||"");break;case I.DOCUMENT_FRAGMENT_NODE:s=c.attachShadow({mode:"open"});break;default:return null}let l=i.getMeta(t);return e instanceof V&&(l||(l=Er(s,e.unserializedId),i.add(t,l)),e.mirror.add(s,k({},l))),s}function rs(t,e=Ir(),i=new V){function c(s,l){const o=wr(s,i,e,l);if(o!==null)if((l==null?void 0:l.nodeName)!=="IFRAME"&&s.nodeType!==I.DOCUMENT_FRAGMENT_NODE&&(l==null||l.appendChild(o),o.parentNode=l,o.parentElement=l),s.nodeName==="IFRAME"){const p=s.contentDocument;p&&c(p,o)}else(s.nodeType===I.DOCUMENT_NODE||s.nodeType===I.ELEMENT_NODE||s.nodeType===I.DOCUMENT_FRAGMENT_NODE)&&(s.nodeType===I.ELEMENT_NODE&&s.shadowRoot&&c(s.shadowRoot,o),s.childNodes.forEach(p=>c(p,o)))}return c(t,null),i}function yr(){return new Rr}class Rr{constructor(){x(this,"idNodeMap",new Map),x(this,"nodeMetaMap",new WeakMap)}getId(e){var i;if(!e)return-1;const c=(i=this.getMeta(e))==null?void 0:i.id;return c!=null?c:-1}getNode(e){return this.idNodeMap.get(e)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(e){return this.nodeMetaMap.get(e)||null}removeNodeFromMap(e){const i=this.getId(e);this.idNodeMap.delete(i),e.childNodes&&e.childNodes.forEach(c=>this.removeNodeFromMap(c))}has(e){return this.idNodeMap.has(e)}hasNode(e){return this.nodeMetaMap.has(e)}add(e,i){const c=i.id;this.idNodeMap.set(c,e),this.nodeMetaMap.set(e,i)}replace(e,i){const c=this.getNode(e);if(c){const s=this.nodeMetaMap.get(c);s&&this.nodeMetaMap.set(i,s)}this.idNodeMap.set(e,i)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function Er(t,e){switch(t.RRNodeType){case A.Document:return{id:e,type:t.RRNodeType,childNodes:[]};case A.DocumentType:{const i=t;return{id:e,type:t.RRNodeType,name:i.name,publicId:i.publicId,systemId:i.systemId}}case A.Element:return{id:e,type:t.RRNodeType,tagName:t.tagName.toLowerCase(),attributes:{},childNodes:[]};case A.Text:return{id:e,type:t.RRNodeType,textContent:t.textContent||""};case A.Comment:return{id:e,type:t.RRNodeType,textContent:t.textContent||""};case A.CDATA:return{id:e,type:t.RRNodeType,textContent:""}}}function ss(t,e){return se(t,e,"")}function se(t,e,i){let c=`${i}${e.getId(t)} ${t.toString()}
42
+ `;if(t.RRNodeType===A.Element){const s=t;s.shadowRoot&&(c+=se(s.shadowRoot,e,i+" "))}for(const s of t.childNodes)c+=se(s,e,i+" ");return t.nodeName==="IFRAME"&&(c+=se(t.contentDocument,e,i+" ")),c}exports.BaseRRCDATASection=rt;exports.BaseRRComment=tt;exports.BaseRRDialogElement=sr;exports.BaseRRDocument=ue;exports.BaseRRDocumentType=Ke;exports.BaseRRElement=X;exports.BaseRRMediaElement=rr;exports.BaseRRNode=F;exports.BaseRRText=et;exports.ClassList=ir;exports.Mirror=Rr;exports.NodeType=I;exports.RRCDATASection=gr;exports.RRCanvasElement=hr;exports.RRComment=mr;exports.RRDialogElement=cr;exports.RRDocument=V;exports.RRDocumentType=ar;exports.RRElement=Z;exports.RRIFrameElement=pr;exports.RRMediaElement=ur;exports.RRNode=F;exports.RRStyleElement=fr;exports.RRText=dr;exports.buildFromDom=rs;exports.buildFromNode=wr;exports.createMirror=yr;exports.createOrGetNode=ie;exports.diff=it;exports.getDefaultSN=Er;exports.printRRDom=ss;
43
43
  if (typeof module.exports == "object" && typeof exports == "object") {
44
44
  var __cp = (to, from, except, desc) => {
45
45
  if ((from && typeof from === "object") || typeof from === "function") {