@appsurify-testmap/rrdom 3.6.0-alpha.1 → 3.11.0-alpha.1

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.
@@ -1,5 +1,5 @@
1
1
  (function (g, f) {if ("object" == typeof exports && "object" == typeof module) {module.exports = f();} else if ("function" == typeof define && define.amd) {define("rrdom", [], f);} else if ("object" == typeof exports) {exports["rrdom"] = f();} else {g["rrdom"] = f();}}(typeof self !== 'undefined' ? self : typeof globalThis !== 'undefined' ? globalThis : this, () => {var exports = {};var module = { exports };
2
- "use strict";var ks=Object.defineProperty,Bs=Object.defineProperties;var Us=Object.getOwnPropertyDescriptors;var K=Object.getOwnPropertySymbols;var ft=Object.prototype.hasOwnProperty,pt=Object.prototype.propertyIsEnumerable;var ht=(i,e,t)=>e in i?ks(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,N=(i,e)=>{for(var t in e||(e={}))ft.call(e,t)&&ht(i,t,e[t]);if(K)for(var t of K(e))pt.call(e,t)&&ht(i,t,e[t]);return i},z=(i,e)=>Bs(i,Us(e));var ve=(i,e)=>{var t={};for(var s in i)ft.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&&pt.call(i,s)&&(t[s]=i[s]);return t};var Fs=Object.defineProperty,zs=(i,e,t)=>e in i?Fs(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,h=(i,e,t)=>zs(i,typeof e!="symbol"?e+"":e,t);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var Ws=Object.defineProperty,js=(i,e,t)=>e in i?Ws(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,Se=(i,e,t)=>js(i,typeof e!="symbol"?e+"":e,t);let Gs=class{constructor(){Se(this,"idNodeMap",new Map),Se(this,"nodeMetaMap",new WeakMap),Se(this,"selectorNodeMap",new Map)}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);const s=this.getMeta(e);if(s!=null&&s.selector){const r=this.selectorNodeMap.get(s.selector);r&&(r.delete(e),r.size===0&&this.selectorNodeMap.delete(s.selector))}e.childNodes&&e.childNodes.forEach(r=>this.removeNodeFromMap(r))}has(e){return this.idNodeMap.has(e)}hasNode(e){return this.nodeMetaMap.has(e)}add(e,t){const s=t.id;if(this.idNodeMap.set(s,e),this.nodeMetaMap.set(e,t),t.selector){let r=this.selectorNodeMap.get(t.selector);r||(r=new Set,this.selectorNodeMap.set(t.selector,r)),r.add(e)}}replace(e,t){const s=this.getNode(e);if(s){const r=this.nodeMetaMap.get(s);if(r&&(this.nodeMetaMap.set(t,r),r.selector)){const n=this.selectorNodeMap.get(r.selector);n&&(n.delete(s),n.add(t))}}this.idNodeMap.set(e,t)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap,this.selectorNodeMap=new Map}getNodeBySelector(e){const t=this.selectorNodeMap.get(e);return!t||t.size===0?null:t.values().next().value||null}getNodesBySelector(e){const t=this.selectorNodeMap.get(e);return t?Array.from(t):[]}hasSelector(e){const t=this.selectorNodeMap.get(e);return t!==void 0&&t.size>0}};function Vs(){return new Gs}const Ys=["change","submit","dragstart","drop","pointerdown","pointerup","input","keydown","keyup","keypress","mouseenter","mouseleave","mouseup","mousedown","click","contextmenu","dblclick","focus","blur","touchstart","touchmove","touchend","touchcancel"],Hs=["onclick","ondblclick","onmousedown","onmouseup","onmouseover","onmouseout","onmousemove","onfocus","onblur","onkeydown","onkeypress","onkeyup","onchange","oninput","onsubmit","onreset","onselect","oncontextmenu","ontouchstart","ontouchmove","ontouchend","ontouchcancel"],It=new WeakSet,Js=EventTarget.prototype.addEventListener;EventTarget.prototype.addEventListener=function(i,e,t){if(Js.call(this,i,e,t),this instanceof Element){const s=i.toLowerCase();Ys.includes(s)&&It.add(this)}};const Xs=EventTarget.prototype.removeEventListener;EventTarget.prototype.removeEventListener=function(i,e,t){Xs.call(this,i,e,t)};function dt(){document.querySelectorAll("*").forEach(e=>{Hs.forEach(t=>{e.hasAttribute(t)&&It.add(e)})})}try{document.readyState==="complete"||document.readyState==="interactive"?dt():document.addEventListener("DOMContentLoaded",dt)}catch(i){}function Zs(i){return i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}function Qs(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 He={exports:{}},m=String,Pt=function(){return{isColorSupported:!1,reset:m,bold:m,dim:m,italic:m,underline:m,inverse:m,hidden:m,strikethrough:m,black:m,red:m,green:m,yellow:m,blue:m,magenta:m,cyan:m,white:m,gray:m,bgBlack:m,bgRed:m,bgGreen:m,bgYellow:m,bgBlue:m,bgMagenta:m,bgCyan:m,bgWhite:m,blackBright:m,redBright:m,greenBright:m,yellowBright:m,blueBright:m,magentaBright:m,cyanBright:m,whiteBright:m,bgBlackBright:m,bgRedBright:m,bgGreenBright:m,bgYellowBright:m,bgBlueBright:m,bgMagentaBright:m,bgCyanBright:m,bgWhiteBright:m}};He.exports=Pt();He.exports.createColors=Pt;var qs=He.exports;const Ks={},er=Object.freeze(Object.defineProperty({__proto__:null,default:Ks},Symbol.toStringTag,{value:"Module"})),O=Qs(er);let mt=qs,gt=O,Ae=class $t 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,$t)}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:d,red:p}=mt.createColors(!0);r=g=>u(p(g)),s=g=>d(g),gt&&(n=g=>gt(g))}let o=t.split(/\r?\n/),a=Math.max(this.line-3,0),l=Math.min(this.line+2,o.length),c=String(l).length;return o.slice(a,l).map((u,d)=>{let p=a+1+d,g=" "+(" "+p).slice(-c)+" | ";if(p===this.line){if(u.length>160){let v=20,f=Math.max(0,this.column-v),D=Math.max(this.column+v,this.endColumn+v),R=u.slice(f,D),b=s(g.replace(/\d/g," "))+u.slice(0,Math.min(this.column-1,v-1)).replace(/[^\t]/g," ");return r(">")+s(g)+n(R)+`
2
+ "use strict";var ks=Object.defineProperty,Bs=Object.defineProperties;var Us=Object.getOwnPropertyDescriptors;var K=Object.getOwnPropertySymbols;var ft=Object.prototype.hasOwnProperty,pt=Object.prototype.propertyIsEnumerable;var ht=(i,e,t)=>e in i?ks(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,N=(i,e)=>{for(var t in e||(e={}))ft.call(e,t)&&ht(i,t,e[t]);if(K)for(var t of K(e))pt.call(e,t)&&ht(i,t,e[t]);return i},z=(i,e)=>Bs(i,Us(e));var ve=(i,e)=>{var t={};for(var s in i)ft.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&&pt.call(i,s)&&(t[s]=i[s]);return t};var Fs=Object.defineProperty,zs=(i,e,t)=>e in i?Fs(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,h=(i,e,t)=>zs(i,typeof e!="symbol"?e+"":e,t);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var js=Object.defineProperty,Ws=(i,e,t)=>e in i?js(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,Se=(i,e,t)=>Ws(i,typeof e!="symbol"?e+"":e,t);let Gs=class{constructor(){Se(this,"idNodeMap",new Map),Se(this,"nodeMetaMap",new WeakMap),Se(this,"selectorNodeMap",new Map)}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);const s=this.getMeta(e);if(s!=null&&s.selector){const r=this.selectorNodeMap.get(s.selector);r&&(r.delete(e),r.size===0&&this.selectorNodeMap.delete(s.selector))}e.childNodes&&e.childNodes.forEach(r=>this.removeNodeFromMap(r))}has(e){return this.idNodeMap.has(e)}hasNode(e){return this.nodeMetaMap.has(e)}add(e,t){const s=t.id;if(this.idNodeMap.set(s,e),this.nodeMetaMap.set(e,t),t.selector){let r=this.selectorNodeMap.get(t.selector);r||(r=new Set,this.selectorNodeMap.set(t.selector,r)),r.add(e)}}replace(e,t){const s=this.getNode(e);if(s){const r=this.nodeMetaMap.get(s);if(r&&(this.nodeMetaMap.set(t,r),r.selector)){const n=this.selectorNodeMap.get(r.selector);n&&(n.delete(s),n.add(t))}}this.idNodeMap.set(e,t)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap,this.selectorNodeMap=new Map}getNodeBySelector(e){const t=this.selectorNodeMap.get(e);return!t||t.size===0?null:t.values().next().value||null}getNodesBySelector(e){const t=this.selectorNodeMap.get(e);return t?Array.from(t):[]}hasSelector(e){const t=this.selectorNodeMap.get(e);return t!==void 0&&t.size>0}};function Vs(){return new Gs}const Ys=["change","submit","dragstart","drop","pointerdown","pointerup","input","keydown","keyup","keypress","mouseenter","mouseleave","mouseup","mousedown","click","contextmenu","dblclick","focus","blur","touchstart","touchmove","touchend","touchcancel"],Hs=["onclick","ondblclick","onmousedown","onmouseup","onmouseover","onmouseout","onmousemove","onfocus","onblur","onkeydown","onkeypress","onkeyup","onchange","oninput","onsubmit","onreset","onselect","oncontextmenu","ontouchstart","ontouchmove","ontouchend","ontouchcancel"],It=new WeakSet,Js=EventTarget.prototype.addEventListener;EventTarget.prototype.addEventListener=function(i,e,t){if(Js.call(this,i,e,t),this instanceof Element){const s=i.toLowerCase();Ys.includes(s)&&It.add(this)}};const Xs=EventTarget.prototype.removeEventListener;EventTarget.prototype.removeEventListener=function(i,e,t){Xs.call(this,i,e,t)};function dt(){document.querySelectorAll("*").forEach(e=>{Hs.forEach(t=>{e.hasAttribute(t)&&It.add(e)})})}try{document.readyState==="complete"||document.readyState==="interactive"?dt():document.addEventListener("DOMContentLoaded",dt)}catch(i){}const Zs={id:"i","data-testid":"tid","data-qa":"qa","data-cy":"cy","data-test":"dt","aria-label":"al","aria-labelledby":"alb","aria-describedby":"adb",name:"n",href:"h",src:"s",type:"t",role:"r",alt:"at",title:"tt",for:"f",placeholder:"ph",text:"x"};Object.fromEntries(Object.entries(Zs).map(([i,e])=>[e,i]));function qs(i){return i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}function Qs(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 He={exports:{}},m=String,Pt=function(){return{isColorSupported:!1,reset:m,bold:m,dim:m,italic:m,underline:m,inverse:m,hidden:m,strikethrough:m,black:m,red:m,green:m,yellow:m,blue:m,magenta:m,cyan:m,white:m,gray:m,bgBlack:m,bgRed:m,bgGreen:m,bgYellow:m,bgBlue:m,bgMagenta:m,bgCyan:m,bgWhite:m,blackBright:m,redBright:m,greenBright:m,yellowBright:m,blueBright:m,magentaBright:m,cyanBright:m,whiteBright:m,bgBlackBright:m,bgRedBright:m,bgGreenBright:m,bgYellowBright:m,bgBlueBright:m,bgMagentaBright:m,bgCyanBright:m,bgWhiteBright:m}};He.exports=Pt();He.exports.createColors=Pt;var Ks=He.exports;const er={},tr=Object.freeze(Object.defineProperty({__proto__:null,default:er},Symbol.toStringTag,{value:"Module"})),O=Qs(tr);let mt=Ks,gt=O,Ae=class $t 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,$t)}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:d,red:p}=mt.createColors(!0);r=g=>u(p(g)),s=g=>d(g),gt&&(n=g=>gt(g))}let o=t.split(/\r?\n/),a=Math.max(this.line-3,0),l=Math.min(this.line+2,o.length),c=String(l).length;return o.slice(a,l).map((u,d)=>{let p=a+1+d,g=" "+(" "+p).slice(-c)+" | ";if(p===this.line){if(u.length>160){let v=20,f=Math.max(0,this.column-v),D=Math.max(this.column+v,this.endColumn+v),R=u.slice(f,D),b=s(g.replace(/\d/g," "))+u.slice(0,Math.min(this.column-1,v-1)).replace(/[^\t]/g," ");return r(">")+s(g)+n(R)+`
3
3
  `+b+r("^")}let x=s(g.replace(/\d/g," "))+u.slice(0,this.column-1).replace(/[^\t]/g," ");return r(">")+s(g)+n(u)+`
4
4
  `+x+r("^")}return" "+s(g)+n(u)}).join(`
5
5
  `)}toString(){let e=this.showSourceCode();return e&&(e=`
@@ -10,25 +10,25 @@
10
10
  `,beforeComment:`
11
11
  `,beforeDecl:`
12
12
  `,beforeOpen:" ",beforeRule:`
13
- `,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function tr(i){return i[0].toUpperCase()+i.slice(1)}let Te=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(`
14
- `)){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 wt[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"+tr(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=wt[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(`
13
+ `,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function sr(i){return i[0].toUpperCase()+i.slice(1)}let Te=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(`
14
+ `)){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 wt[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"+sr(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=wt[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(`
15
15
  `)&&(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(`
16
16
  `)&&(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(`
17
17
  `)&&(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(`
18
18
  `)&&(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(`
19
- `);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 Lt=Te;Te.default=Te;let sr=Lt;function _e(i,e){new sr(e).stringify(i)}var ge=_e;_e.default=_e;var X={};X.isClean=Symbol("isClean");X.my=Symbol("my");let rr=Je,ir=Lt,nr=ge,{isClean:W,my:or}=X;function Ie(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=>Ie(o,t)):(n==="object"&&r!==null&&(r=Ie(r)),t[s]=r)}return t}function _(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]===`
20
- `?(t=1,s+=1):t+=1}return r}let Pe=class{get proxyOf(){return this}constructor(e={}){this.raws={},this[W]=!1,this[or]=!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=Ie(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 rr(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[W]=!0}markDirty(){if(this[W]){this[W]=!1;let e=this;for(;e=e.parent;)e[W]=!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(_(s,this.source.start),_(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=_(r,this.source.start),o=n+e;for(let a=n;a<o;a++)r[a]===`
21
- `?(t=1,s+=1):t+=1;return{column:t,line:s,offset:o}}prev(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e-1]}rangeBy(e={}){let t="document"in this.source.input?this.source.input.document:this.source.input.css,s={column:this.source.start.column,line:this.source.start.line,offset:_(t,this.source.start)},r=this.source.end?{column:this.source.end.column+1,line:this.source.end.line,offset:typeof this.source.end.offset=="number"?this.source.end.offset:_(t,this.source.end)+1}:{column:s.column+1,line:s.line,offset:s.offset+1};if(e.word){let o=t.slice(_(t,this.source.start),_(t,this.source.end)).indexOf(e.word);o!==-1&&(s=this.positionInside(o),r=this.positionInside(o+e.word.length))}else e.start?s={column:e.start.column,line:e.start.line,offset:_(t,e.start)}:e.index&&(s=this.positionInside(e.index)),e.end?r={column:e.end.column,line:e.end.line,offset:_(t,e.end)}:typeof e.endIndex=="number"?r=this.positionInside(e.endIndex):e.index&&(r=this.positionInside(e.index+1));return(r.line<s.line||r.line===s.line&&r.column<=s.column)&&(r={column:s.column+1,line:s.line,offset:s.offset+1}),{end:r,start:s}}raw(e,t){return new ir().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"){if(a==null)continue;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=nr){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)}};var we=Pe;Pe.default=Pe;let lr=we,$e=class extends lr{constructor(e){super(e),this.type="comment"}};var ye=$e;$e.default=$e;let ar=we,Le=class extends ar{get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}constructor(e){e&&typeof e.value!="undefined"&&typeof e.value!="string"&&(e=z(N({},e),{value:String(e.value)})),super(e),this.type="decl"}};var Ee=Le;Le.default=Le;let kt=ye,Bt=Ee,ur=we,{isClean:Ut,my:Ft}=X,Xe,zt,Wt,Ze;function jt(i){return i.map(e=>(e.nodes&&(e.nodes=jt(e.nodes)),delete e.source,e))}function Gt(i){if(i[Ut]=!1,i.proxyOf.nodes)for(let e of i.proxyOf.nodes)Gt(e)}let I=class Vt extends ur{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]}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=jt(zt(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 Bt(e)]}else if(e.selector||e.selectors)e=[new Ze(e)];else if(e.name)e=[new Xe(e)];else if(e.text)e=[new kt(e)];else throw new Error("Unknown node type in node creation");return e.map(r=>(r[Ft]||Vt.rebuild(r),r=r.proxyOf,r.parent&&r.parent.removeChild(r),r[Ut]&&Gt(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)}))}};I.registerParse=i=>{zt=i};I.registerRule=i=>{Ze=i};I.registerAtRule=i=>{Xe=i};I.registerRoot=i=>{Wt=i};var P=I;I.default=I;I.rebuild=i=>{i.type==="atrule"?Object.setPrototypeOf(i,Xe.prototype):i.type==="rule"?Object.setPrototypeOf(i,Ze.prototype):i.type==="decl"?Object.setPrototypeOf(i,Bt.prototype):i.type==="comment"?Object.setPrototypeOf(i,kt.prototype):i.type==="root"&&Object.setPrototypeOf(i,Wt.prototype),i[Ft]=!0,i.nodes&&i.nodes.forEach(e=>{I.rebuild(e)})};let Yt=P,he=class extends Yt{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 Qe=he;he.default=he;Yt.registerAtRule(he);let cr=P,Ht,Jt,V=class extends cr{constructor(e){super(N({type:"document"},e)),this.nodes||(this.nodes=[])}toResult(e={}){return new Ht(new Jt,this,e).stringify()}};V.registerLazyResult=i=>{Ht=i};V.registerProcessor=i=>{Jt=i};var qe=V;V.default=V;let hr="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",fr=(i=21)=>{let e="",t=i|0;for(;t--;)e+=hr[Math.random()*64|0];return e};var pr={nanoid:fr};let{existsSync:dr,readFileSync:mr}=O,{dirname:Ne,join:gr}=O,{SourceMapConsumer:yt,SourceMapGenerator:Et}=O;function wr(i){return Buffer?Buffer.from(i,"base64").toString():window.atob(i)}let ke=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=Ne(this.mapFile)),r&&(this.text=r)}consumer(){return this.consumerCache||(this.consumerCache=new yt(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 wr(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=Ne(e),dr(e))return this.mapFile=e,mr(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 yt)return Et.fromSourceMap(t).toString();if(t instanceof Et)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=gr(Ne(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 Xt=ke;ke.default=ke;let{nanoid:yr}=pr,{isAbsolute:Be,resolve:Ue}=O,{SourceMapConsumer:Er,SourceMapGenerator:Rr}=O,{fileURLToPath:Rt,pathToFileURL:ee}=O,bt=Je,br=Xt,Oe=O,De=Symbol("lineToIndexCache"),Cr=!!(Er&&Rr),Ct=!!(Ue&&Be);function xt(i){if(i[De])return i[De];let e=i.css.split(`
22
- `),t=new Array(e.length),s=0;for(let r=0,n=e.length;r<n;r++)t[r]=s,s+=e[r].length+1;return i[De]=t,t}let fe=class{get from(){return this.file||this.id}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&&(!Ct||/^\w+:\/\//.test(t.from)||Be(t.from)?this.file=t.from:this.file=Ue(t.from)),Ct&&Cr){let s=new br(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 "+yr(6)+">"),this.map&&(this.map.file=this.from)}error(e,t,s,r={}){let n,o,a,l,c;if(t&&typeof t=="object"){let d=t,p=s;if(typeof d.offset=="number"){l=d.offset;let g=this.fromOffset(l);t=g.line,s=g.col}else t=d.line,s=d.column,l=this.fromLineAndColumn(t,s);if(typeof p.offset=="number"){a=p.offset;let g=this.fromOffset(a);o=g.line,n=g.col}else o=p.line,n=p.column,a=this.fromLineAndColumn(p.line,p.column)}else if(s)l=this.fromLineAndColumn(t,s);else{l=t;let d=this.fromOffset(l);t=d.line,s=d.col}let u=this.origin(t,s,o,n);return u?c=new bt(e,u.endLine===void 0?u.line:{column:u.column,line:u.line},u.endLine===void 0?u.column:{column:u.endColumn,line:u.endLine},u.source,u.file,r.plugin):c=new bt(e,o===void 0?t:{column:s,line:t},o===void 0?s:{column:n,line:o},this.css,this.file,r.plugin),c.input={column:s,endColumn:n,endLine:o,endOffset:a,line:t,offset:l,source:this.css},this.file&&(ee&&(c.input.url=ee(this.file).toString()),c.input.file=this.file),c}fromLineAndColumn(e,t){return xt(this)[e-1]+t-1}fromOffset(e){let t=xt(this),s=t[t.length-1],r=0;if(e>=s)r=t.length-1;else{let n=t.length-2,o;for(;r<n;)if(o=r+(n-r>>1),e<t[o])n=o-1;else if(e>=t[o+1])r=o+1;else{r=o;break}}return{col:e-t[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;Be(o.source)?l=ee(o.source):l=new URL(o.source,this.map.consumer().sourceRoot||ee(this.map.mapFile));let c={column:o.column,endColumn:a&&a.column,endLine:a&&a.line,line:o.line,url:l.toString()};if(l.protocol==="file:")if(Rt)c.file=Rt(l);else throw new Error("file: protocol is not available in this PostCSS build");let u=n.sourceContentFor(o.source);return u&&(c.source=u),c}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}};var Re=fe;fe.default=fe;Oe&&Oe.registerInput&&Oe.registerInput(fe);let Zt=P,Qt,qt,k=class extends Zt{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 Qt(new qt,this,e).stringify()}};k.registerLazyResult=i=>{Qt=i};k.registerProcessor=i=>{qt=i};var Z=k;k.default=k;Zt.registerRoot(k);let Y={comma(i){return Y.split(i,[","],!0)},space(i){let e=[" ",`
23
- `," "];return Y.split(i,e)},split(i,e,t){let s=[],r="",n=!1,o=0,a=!1,l="",c=!1;for(let u of i)c?c=!1:u==="\\"?c=!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 Kt=Y;Y.default=Y;let es=P,xr=Kt,pe=class extends es{get selectors(){return xr.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)}constructor(e){super(e),this.type="rule",this.nodes||(this.nodes=[])}};var Ke=pe;pe.default=pe;es.registerRule(pe);let vr=Qe,Sr=ye,Nr=Ee,Or=Re,Dr=Xt,Mr=Z,Ar=Ke;function H(i,e){if(Array.isArray(i))return i.map(o=>H(o));let r=i,{inputs:t}=r,s=ve(r,["inputs"]);if(t){e=[];for(let o of t){let a=z(N({},o),{__proto__:Or.prototype});a.map&&(a.map=z(N({},a.map),{__proto__:Dr.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=ve(n,["inputId"]);s.source=a,o!=null&&(s.source.input=e[o])}if(s.type==="root")return new Mr(s);if(s.type==="decl")return new Nr(s);if(s.type==="rule")return new Ar(s);if(s.type==="comment")return new Sr(s);if(s.type==="atrule")return new vr(s);throw new Error("Unknown node type: "+i.type)}var Tr=H;H.default=H;let{dirname:ae,relative:ts,resolve:ss,sep:rs}=O,{SourceMapConsumer:is,SourceMapGenerator:ue}=O,{pathToFileURL:vt}=O,_r=Re,Ir=!!(is&&ue),Pr=!!(ae&&ss&&ts&&rs),$r=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=`
19
+ `);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 Lt=Te;Te.default=Te;let rr=Lt;function _e(i,e){new rr(e).stringify(i)}var ge=_e;_e.default=_e;var X={};X.isClean=Symbol("isClean");X.my=Symbol("my");let ir=Je,nr=Lt,or=ge,{isClean:j,my:lr}=X;function Ie(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=>Ie(o,t)):(n==="object"&&r!==null&&(r=Ie(r)),t[s]=r)}return t}function _(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]===`
20
+ `?(t=1,s+=1):t+=1}return r}let Pe=class{get proxyOf(){return this}constructor(e={}){this.raws={},this[j]=!1,this[lr]=!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=Ie(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 ir(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[j]=!0}markDirty(){if(this[j]){this[j]=!1;let e=this;for(;e=e.parent;)e[j]=!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(_(s,this.source.start),_(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=_(r,this.source.start),o=n+e;for(let a=n;a<o;a++)r[a]===`
21
+ `?(t=1,s+=1):t+=1;return{column:t,line:s,offset:o}}prev(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e-1]}rangeBy(e={}){let t="document"in this.source.input?this.source.input.document:this.source.input.css,s={column:this.source.start.column,line:this.source.start.line,offset:_(t,this.source.start)},r=this.source.end?{column:this.source.end.column+1,line:this.source.end.line,offset:typeof this.source.end.offset=="number"?this.source.end.offset:_(t,this.source.end)+1}:{column:s.column+1,line:s.line,offset:s.offset+1};if(e.word){let o=t.slice(_(t,this.source.start),_(t,this.source.end)).indexOf(e.word);o!==-1&&(s=this.positionInside(o),r=this.positionInside(o+e.word.length))}else e.start?s={column:e.start.column,line:e.start.line,offset:_(t,e.start)}:e.index&&(s=this.positionInside(e.index)),e.end?r={column:e.end.column,line:e.end.line,offset:_(t,e.end)}:typeof e.endIndex=="number"?r=this.positionInside(e.endIndex):e.index&&(r=this.positionInside(e.index+1));return(r.line<s.line||r.line===s.line&&r.column<=s.column)&&(r={column:s.column+1,line:s.line,offset:s.offset+1}),{end:r,start:s}}raw(e,t){return new nr().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"){if(a==null)continue;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=or){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)}};var we=Pe;Pe.default=Pe;let ar=we,$e=class extends ar{constructor(e){super(e),this.type="comment"}};var ye=$e;$e.default=$e;let ur=we,Le=class extends ur{get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}constructor(e){e&&typeof e.value!="undefined"&&typeof e.value!="string"&&(e=z(N({},e),{value:String(e.value)})),super(e),this.type="decl"}};var Ee=Le;Le.default=Le;let kt=ye,Bt=Ee,cr=we,{isClean:Ut,my:Ft}=X,Xe,zt,jt,Ze;function Wt(i){return i.map(e=>(e.nodes&&(e.nodes=Wt(e.nodes)),delete e.source,e))}function Gt(i){if(i[Ut]=!1,i.proxyOf.nodes)for(let e of i.proxyOf.nodes)Gt(e)}let I=class Vt extends cr{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]}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=Wt(zt(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 Bt(e)]}else if(e.selector||e.selectors)e=[new Ze(e)];else if(e.name)e=[new Xe(e)];else if(e.text)e=[new kt(e)];else throw new Error("Unknown node type in node creation");return e.map(r=>(r[Ft]||Vt.rebuild(r),r=r.proxyOf,r.parent&&r.parent.removeChild(r),r[Ut]&&Gt(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)}))}};I.registerParse=i=>{zt=i};I.registerRule=i=>{Ze=i};I.registerAtRule=i=>{Xe=i};I.registerRoot=i=>{jt=i};var P=I;I.default=I;I.rebuild=i=>{i.type==="atrule"?Object.setPrototypeOf(i,Xe.prototype):i.type==="rule"?Object.setPrototypeOf(i,Ze.prototype):i.type==="decl"?Object.setPrototypeOf(i,Bt.prototype):i.type==="comment"?Object.setPrototypeOf(i,kt.prototype):i.type==="root"&&Object.setPrototypeOf(i,jt.prototype),i[Ft]=!0,i.nodes&&i.nodes.forEach(e=>{I.rebuild(e)})};let Yt=P,he=class extends Yt{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 qe=he;he.default=he;Yt.registerAtRule(he);let hr=P,Ht,Jt,V=class extends hr{constructor(e){super(N({type:"document"},e)),this.nodes||(this.nodes=[])}toResult(e={}){return new Ht(new Jt,this,e).stringify()}};V.registerLazyResult=i=>{Ht=i};V.registerProcessor=i=>{Jt=i};var Qe=V;V.default=V;let fr="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",pr=(i=21)=>{let e="",t=i|0;for(;t--;)e+=fr[Math.random()*64|0];return e};var dr={nanoid:pr};let{existsSync:mr,readFileSync:gr}=O,{dirname:Ne,join:wr}=O,{SourceMapConsumer:yt,SourceMapGenerator:Et}=O;function yr(i){return Buffer?Buffer.from(i,"base64").toString():window.atob(i)}let ke=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=Ne(this.mapFile)),r&&(this.text=r)}consumer(){return this.consumerCache||(this.consumerCache=new yt(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 yr(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=Ne(e),mr(e))return this.mapFile=e,gr(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 yt)return Et.fromSourceMap(t).toString();if(t instanceof Et)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=wr(Ne(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 Xt=ke;ke.default=ke;let{nanoid:Er}=dr,{isAbsolute:Be,resolve:Ue}=O,{SourceMapConsumer:Rr,SourceMapGenerator:br}=O,{fileURLToPath:Rt,pathToFileURL:ee}=O,bt=Je,Cr=Xt,Oe=O,De=Symbol("lineToIndexCache"),xr=!!(Rr&&br),Ct=!!(Ue&&Be);function xt(i){if(i[De])return i[De];let e=i.css.split(`
22
+ `),t=new Array(e.length),s=0;for(let r=0,n=e.length;r<n;r++)t[r]=s,s+=e[r].length+1;return i[De]=t,t}let fe=class{get from(){return this.file||this.id}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&&(!Ct||/^\w+:\/\//.test(t.from)||Be(t.from)?this.file=t.from:this.file=Ue(t.from)),Ct&&xr){let s=new Cr(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 "+Er(6)+">"),this.map&&(this.map.file=this.from)}error(e,t,s,r={}){let n,o,a,l,c;if(t&&typeof t=="object"){let d=t,p=s;if(typeof d.offset=="number"){l=d.offset;let g=this.fromOffset(l);t=g.line,s=g.col}else t=d.line,s=d.column,l=this.fromLineAndColumn(t,s);if(typeof p.offset=="number"){a=p.offset;let g=this.fromOffset(a);o=g.line,n=g.col}else o=p.line,n=p.column,a=this.fromLineAndColumn(p.line,p.column)}else if(s)l=this.fromLineAndColumn(t,s);else{l=t;let d=this.fromOffset(l);t=d.line,s=d.col}let u=this.origin(t,s,o,n);return u?c=new bt(e,u.endLine===void 0?u.line:{column:u.column,line:u.line},u.endLine===void 0?u.column:{column:u.endColumn,line:u.endLine},u.source,u.file,r.plugin):c=new bt(e,o===void 0?t:{column:s,line:t},o===void 0?s:{column:n,line:o},this.css,this.file,r.plugin),c.input={column:s,endColumn:n,endLine:o,endOffset:a,line:t,offset:l,source:this.css},this.file&&(ee&&(c.input.url=ee(this.file).toString()),c.input.file=this.file),c}fromLineAndColumn(e,t){return xt(this)[e-1]+t-1}fromOffset(e){let t=xt(this),s=t[t.length-1],r=0;if(e>=s)r=t.length-1;else{let n=t.length-2,o;for(;r<n;)if(o=r+(n-r>>1),e<t[o])n=o-1;else if(e>=t[o+1])r=o+1;else{r=o;break}}return{col:e-t[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;Be(o.source)?l=ee(o.source):l=new URL(o.source,this.map.consumer().sourceRoot||ee(this.map.mapFile));let c={column:o.column,endColumn:a&&a.column,endLine:a&&a.line,line:o.line,url:l.toString()};if(l.protocol==="file:")if(Rt)c.file=Rt(l);else throw new Error("file: protocol is not available in this PostCSS build");let u=n.sourceContentFor(o.source);return u&&(c.source=u),c}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}};var Re=fe;fe.default=fe;Oe&&Oe.registerInput&&Oe.registerInput(fe);let Zt=P,qt,Qt,k=class extends Zt{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 qt(new Qt,this,e).stringify()}};k.registerLazyResult=i=>{qt=i};k.registerProcessor=i=>{Qt=i};var Z=k;k.default=k;Zt.registerRoot(k);let Y={comma(i){return Y.split(i,[","],!0)},space(i){let e=[" ",`
23
+ `," "];return Y.split(i,e)},split(i,e,t){let s=[],r="",n=!1,o=0,a=!1,l="",c=!1;for(let u of i)c?c=!1:u==="\\"?c=!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 Kt=Y;Y.default=Y;let es=P,vr=Kt,pe=class extends es{get selectors(){return vr.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)}constructor(e){super(e),this.type="rule",this.nodes||(this.nodes=[])}};var Ke=pe;pe.default=pe;es.registerRule(pe);let Sr=qe,Nr=ye,Or=Ee,Dr=Re,Mr=Xt,Ar=Z,Tr=Ke;function H(i,e){if(Array.isArray(i))return i.map(o=>H(o));let r=i,{inputs:t}=r,s=ve(r,["inputs"]);if(t){e=[];for(let o of t){let a=z(N({},o),{__proto__:Dr.prototype});a.map&&(a.map=z(N({},a.map),{__proto__:Mr.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=ve(n,["inputId"]);s.source=a,o!=null&&(s.source.input=e[o])}if(s.type==="root")return new Ar(s);if(s.type==="decl")return new Or(s);if(s.type==="rule")return new Tr(s);if(s.type==="comment")return new Nr(s);if(s.type==="atrule")return new Sr(s);throw new Error("Unknown node type: "+i.type)}var _r=H;H.default=H;let{dirname:ae,relative:ts,resolve:ss,sep:rs}=O,{SourceMapConsumer:is,SourceMapGenerator:ue}=O,{pathToFileURL:vt}=O,Ir=Re,Pr=!!(is&&ue),$r=!!(ae&&ss&&ts&&rs),Lr=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=`
24
24
  `;this.css.includes(`\r
25
25
  `)&&(t=`\r
26
- `),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 is(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(),Pr&&Ir&&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,c)=>{if(this.css+=a,l&&c!=="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(`
27
- `),t=a.length-n):t+=a.length,l&&c!=="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(ss(s,this.mapOpts.annotation)));let r=ts(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 _r(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(vt){let s=vt(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;rs==="\\"&&(e=e.replace(/\\/g,"/"));let s=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,s),s}};var ns=$r;const Me="'".charCodeAt(0),St='"'.charCodeAt(0),te="\\".charCodeAt(0),Nt="/".charCodeAt(0),se=`
28
- `.charCodeAt(0),j=" ".charCodeAt(0),re="\f".charCodeAt(0),ie=" ".charCodeAt(0),ne="\r".charCodeAt(0),Lr="[".charCodeAt(0),kr="]".charCodeAt(0),Br="(".charCodeAt(0),Ur=")".charCodeAt(0),Fr="{".charCodeAt(0),zr="}".charCodeAt(0),Wr=";".charCodeAt(0),jr="*".charCodeAt(0),Gr=":".charCodeAt(0),Vr="@".charCodeAt(0),oe=/[\t\n\f\r "#'()/;[\\\]{}]/g,le=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,Yr=/.[\r\n"'(/\\]/,Ot=/[\da-f]/i;var Hr=function(e,t={}){let s=e.css.valueOf(),r=t.ignoreErrors,n,o,a,l,c,u,d,p,g,x,v=s.length,f=0,D=[],R=[];function b(){return f}function S($){throw e.error("Unclosed "+$,f)}function Ce(){return R.length===0&&f>=v}function $s($){if(R.length)return R.pop();if(f>=v)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 Lr:case kr:case Fr:case zr:case Gr:case Wr:case Ur:{let ct=String.fromCharCode(n);u=[ct,ct,f];break}case Br:{if(x=D.length?D.pop()[1]:"",g=s.charCodeAt(f+1),x==="url"&&g!==Me&&g!==St&&g!==j&&g!==se&&g!==ie&&g!==re&&g!==ne){l=f;do{if(d=!1,l=s.indexOf(")",l+1),l===-1)if(r||xe){l=f;break}else S("bracket");for(p=l;s.charCodeAt(p-1)===te;)p-=1,d=!d}while(d);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||Yr.test(o)?u=["(","(",f]:(u=["brackets",o,f,l],f=l);break}case Me:case St:{c=n===Me?"'":'"',l=f;do{if(d=!1,l=s.indexOf(c,l+1),l===-1)if(r||xe){l=f+1;break}else S("string");for(p=l;s.charCodeAt(p-1)===te;)p-=1,d=!d}while(d);u=["string",s.slice(f,l+1),f,l],f=l;break}case Vr:{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!==Nt&&n!==j&&n!==se&&n!==ie&&n!==ne&&n!==re&&(l+=1,Ot.test(s.charAt(l)))){for(;Ot.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===Nt&&s.charCodeAt(f+1)===jr?(l=s.indexOf("*/",f+2)+1,l===0&&(r||xe?l=s.length:S("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 Ls($){R.push($)}return{back:Ls,endOfFile:Ce,nextToken:$s,position:b}};let Jr=Qe,Xr=ye,Zr=Ee,Qr=Z,Dt=Ke,qr=Hr;const Mt={empty:!0,space:!0};function Kr(i){for(let e=i.length-1;e>=0;e--){let t=i[e],s=t[3]||t[2];if(s)return s}}let ei=class{constructor(e){this.input=e,this.root=new Qr,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 Jr;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=[],c=[];for(;!this.tokenizer.endOfFile();){if(e=this.tokenizer.nextToken(),s=e[0],s==="("||s==="["?c.push(s==="("?")":"]"):s==="{"&&c.length>0?c.push("}"):s===c[c.length-1]&&c.pop(),c.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 Xr;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=qr(this.input)}decl(e,t){let s=new Zr;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]||Kr(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 c=e[0][0];if(c===":"||c==="space"||c==="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 c=e.length-1;c>=0;c--){if(n=e[c],n[1].toLowerCase()==="!important"){s.important=!0;let u=this.stringFrom(e,c);u=this.spacesFromEnd(e)+u,u!==" !important"&&(s.raws.important=u);break}else if(n[1].toLowerCase()==="important"){let u=e.slice(0),d="";for(let p=c;p>0;p--){let g=u[p][0];if(d.trim().startsWith("!")&&g!=="space")break;d=u.pop()[1]+d}d.trim().startsWith("!")&&(s.important=!0,s.raws.important=d,e=u)}if(n[0]!=="space"&&n[0]!=="comment")break}e.some(c=>c[0]!=="space"&&c[0]!=="comment")&&(s.raws.between+=o.map(c=>c[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 Dt;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="",t.source.end=this.getPosition(e[2]),t.source.end.offset+=t.raws.ownSemicolon.length)}}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=[],c=e;for(;c;){if(s=c[0],l.push(c),s==="("||s==="[")n||(n=c),o.push(s==="("?")":"]");else if(a&&r&&s==="{")n||(n=c),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));c=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),o.length>0&&this.unclosedBracket(n),t&&r){if(!a)for(;l.length&&(c=l[l.length-1][0],!(c!=="space"&&c!=="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="",c=!0,u,d;for(let p=0;p<a;p+=1)n=s[p],o=n[0],o==="space"&&p===a-1&&!r?c=!1:o==="comment"?(d=s[p-1]?s[p-1][0]:"empty",u=s[p+1]?s[p+1][0]:"empty",!Mt[d]&&!Mt[u]?l.slice(-1)===","?c=!1:l+=n[1]:c=!1):l+=n[1];if(!c){let p=s.reduce((g,x)=>g+x[1],"");e.raws[t]={raw:p,value:l}}e[t]=l}rule(e){e.pop();let t=new Dt;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 "+e[0][1],{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 ti=ei;let si=P,ri=Re,ii=ti;function de(i,e){let t=new ri(i,e),s=new ii(t);try{s.parse()}catch(r){throw r}return s.root}var et=de;de.default=de;si.registerParse(de);let Fe=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 os=Fe;Fe.default=Fe;let ni=os,ze=class{get content(){return this.css}constructor(e,t,s){this.processor=e,this.messages=[],this.root=t,this.opts=s,this.css="",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 ni(e,t);return this.messages.push(s),s}warnings(){return this.messages.filter(e=>e.type==="warning")}};var tt=ze;ze.default=ze;let oi=P,li=qe,ai=ns,ui=et,At=tt,ci=Z,hi=ge,{isClean:M,my:fi}=X;const pi={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},di={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},mi={Once:!0,postcssPlugin:!0,prepare:!0},B=0;function G(i){return typeof i=="object"&&typeof i.then=="function"}function ls(i){let e=!1,t=pi[i.type];return i.type==="decl"?e=i.prop.toLowerCase():i.type==="atrule"&&(e=i.name.toLowerCase()),e&&i.append?[t,t+"-"+e,B,t+"Exit",t+"Exit-"+e]:e?[t,t+"-"+e,t+"Exit",t+"Exit-"+e]:i.append?[t,B,t+"Exit"]:[t,t+"Exit"]}function Tt(i){let e;return i.type==="document"?e=["Document",B,"DocumentExit"]:i.type==="root"?e=["Root",B,"RootExit"]:e=ls(i),{eventIndex:0,events:e,iterator:0,node:i,visitorIndex:0,visitors:[]}}function We(i){return i[M]=!1,i.nodes&&i.nodes.forEach(e=>We(e)),i}let je={},U=class as{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"}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=We(t);else if(t instanceof as||t instanceof At)r=We(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=ui;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[fi]&&oi.rebuild(r)}this.result=new At(e,r,s),this.helpers=z(N({},je),{postcss:je,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(!di[s]&&/^[A-Z]/.test(s))throw new Error(`Unknown event ${s} in ${t.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!mi[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[M];){e[M]=!0;let t=[Tt(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=hi;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);let r=new ai(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[M];)e[M]=!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[M]){a[M]=!0,e.push(Tt(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===B){s.nodes&&s.nodes.length&&(s[M]=!0,t.iterator=s.getIterator());return}else if(this.listeners[o]){t.visitors=this.listeners[o];return}}e.pop()}walkSync(e){e[M]=!0;let t=ls(e);for(let s of t)if(s===B)e.nodes&&e.each(r=>{r[M]||this.walkSync(r)});else{let r=this.listeners[s];if(r&&this.visitSync(r,e.toProxy()))return}}warnings(){return this.sync().warnings()}};U.registerPostcss=i=>{je=i};var us=U;U.default=U;ci.registerLazyResult(U);li.registerLazyResult(U);let gi=ns,wi=et;const yi=tt;let Ei=ge;let Ge=class{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=wi;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"}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=Ei;this.result=new yi(this._processor,r,this._opts),this.result.css=t;let o=this;Object.defineProperty(this.result,"root",{get(){return o.root}});let a=new gi(n,r,this._opts,t);if(a.isMap()){let[l,c]=a.generate();l&&(this.result.css=l),c&&(this.result.map=c)}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[]}};var Ri=Ge;Ge.default=Ge;let bi=qe,Ci=us,xi=Ri,vi=Z,J=class{constructor(e=[]){this.version="8.5.6",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 xi(this,e,t):new Ci(this,e,t)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}};var Si=J;J.default=J;vi.registerProcessor(J);bi.registerProcessor(J);let cs=Qe,hs=ye,Ni=P,Oi=Je,fs=Ee,ps=qe,Di=Tr,Mi=Re,Ai=us,Ti=Kt,_i=we,Ii=et,st=Si,Pi=tt,ds=Z,ms=Ke,$i=ge,Li=os;function y(...i){return i.length===1&&Array.isArray(i[0])&&(i=i[0]),new st(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:
26
+ `),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 is(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(),$r&&Pr&&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,c)=>{if(this.css+=a,l&&c!=="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(`
27
+ `),t=a.length-n):t+=a.length,l&&c!=="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(ss(s,this.mapOpts.annotation)));let r=ts(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 Ir(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(vt){let s=vt(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;rs==="\\"&&(e=e.replace(/\\/g,"/"));let s=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,s),s}};var ns=Lr;const Me="'".charCodeAt(0),St='"'.charCodeAt(0),te="\\".charCodeAt(0),Nt="/".charCodeAt(0),se=`
28
+ `.charCodeAt(0),W=" ".charCodeAt(0),re="\f".charCodeAt(0),ie=" ".charCodeAt(0),ne="\r".charCodeAt(0),kr="[".charCodeAt(0),Br="]".charCodeAt(0),Ur="(".charCodeAt(0),Fr=")".charCodeAt(0),zr="{".charCodeAt(0),jr="}".charCodeAt(0),Wr=";".charCodeAt(0),Gr="*".charCodeAt(0),Vr=":".charCodeAt(0),Yr="@".charCodeAt(0),oe=/[\t\n\f\r "#'()/;[\\\]{}]/g,le=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,Hr=/.[\r\n"'(/\\]/,Ot=/[\da-f]/i;var Jr=function(e,t={}){let s=e.css.valueOf(),r=t.ignoreErrors,n,o,a,l,c,u,d,p,g,x,v=s.length,f=0,D=[],R=[];function b(){return f}function S($){throw e.error("Unclosed "+$,f)}function Ce(){return R.length===0&&f>=v}function $s($){if(R.length)return R.pop();if(f>=v)return;let xe=$?$.ignoreUnclosed:!1;switch(n=s.charCodeAt(f),n){case se:case W:case ie:case ne:case re:{l=f;do l+=1,n=s.charCodeAt(l);while(n===W||n===se||n===ie||n===ne||n===re);u=["space",s.slice(f,l)],f=l-1;break}case kr:case Br:case zr:case jr:case Vr:case Wr:case Fr:{let ct=String.fromCharCode(n);u=[ct,ct,f];break}case Ur:{if(x=D.length?D.pop()[1]:"",g=s.charCodeAt(f+1),x==="url"&&g!==Me&&g!==St&&g!==W&&g!==se&&g!==ie&&g!==re&&g!==ne){l=f;do{if(d=!1,l=s.indexOf(")",l+1),l===-1)if(r||xe){l=f;break}else S("bracket");for(p=l;s.charCodeAt(p-1)===te;)p-=1,d=!d}while(d);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||Hr.test(o)?u=["(","(",f]:(u=["brackets",o,f,l],f=l);break}case Me:case St:{c=n===Me?"'":'"',l=f;do{if(d=!1,l=s.indexOf(c,l+1),l===-1)if(r||xe){l=f+1;break}else S("string");for(p=l;s.charCodeAt(p-1)===te;)p-=1,d=!d}while(d);u=["string",s.slice(f,l+1),f,l],f=l;break}case Yr:{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!==Nt&&n!==W&&n!==se&&n!==ie&&n!==ne&&n!==re&&(l+=1,Ot.test(s.charAt(l)))){for(;Ot.test(s.charAt(l+1));)l+=1;s.charCodeAt(l+1)===W&&(l+=1)}u=["word",s.slice(f,l+1),f,l],f=l;break}default:{n===Nt&&s.charCodeAt(f+1)===Gr?(l=s.indexOf("*/",f+2)+1,l===0&&(r||xe?l=s.length:S("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 Ls($){R.push($)}return{back:Ls,endOfFile:Ce,nextToken:$s,position:b}};let Xr=qe,Zr=ye,qr=Ee,Qr=Z,Dt=Ke,Kr=Jr;const Mt={empty:!0,space:!0};function ei(i){for(let e=i.length-1;e>=0;e--){let t=i[e],s=t[3]||t[2];if(s)return s}}let ti=class{constructor(e){this.input=e,this.root=new Qr,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 Xr;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=[],c=[];for(;!this.tokenizer.endOfFile();){if(e=this.tokenizer.nextToken(),s=e[0],s==="("||s==="["?c.push(s==="("?")":"]"):s==="{"&&c.length>0?c.push("}"):s===c[c.length-1]&&c.pop(),c.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 Zr;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=Kr(this.input)}decl(e,t){let s=new qr;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]||ei(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 c=e[0][0];if(c===":"||c==="space"||c==="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 c=e.length-1;c>=0;c--){if(n=e[c],n[1].toLowerCase()==="!important"){s.important=!0;let u=this.stringFrom(e,c);u=this.spacesFromEnd(e)+u,u!==" !important"&&(s.raws.important=u);break}else if(n[1].toLowerCase()==="important"){let u=e.slice(0),d="";for(let p=c;p>0;p--){let g=u[p][0];if(d.trim().startsWith("!")&&g!=="space")break;d=u.pop()[1]+d}d.trim().startsWith("!")&&(s.important=!0,s.raws.important=d,e=u)}if(n[0]!=="space"&&n[0]!=="comment")break}e.some(c=>c[0]!=="space"&&c[0]!=="comment")&&(s.raws.between+=o.map(c=>c[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 Dt;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="",t.source.end=this.getPosition(e[2]),t.source.end.offset+=t.raws.ownSemicolon.length)}}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=[],c=e;for(;c;){if(s=c[0],l.push(c),s==="("||s==="[")n||(n=c),o.push(s==="("?")":"]");else if(a&&r&&s==="{")n||(n=c),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));c=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),o.length>0&&this.unclosedBracket(n),t&&r){if(!a)for(;l.length&&(c=l[l.length-1][0],!(c!=="space"&&c!=="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="",c=!0,u,d;for(let p=0;p<a;p+=1)n=s[p],o=n[0],o==="space"&&p===a-1&&!r?c=!1:o==="comment"?(d=s[p-1]?s[p-1][0]:"empty",u=s[p+1]?s[p+1][0]:"empty",!Mt[d]&&!Mt[u]?l.slice(-1)===","?c=!1:l+=n[1]:c=!1):l+=n[1];if(!c){let p=s.reduce((g,x)=>g+x[1],"");e.raws[t]={raw:p,value:l}}e[t]=l}rule(e){e.pop();let t=new Dt;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 "+e[0][1],{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 si=ti;let ri=P,ii=Re,ni=si;function de(i,e){let t=new ii(i,e),s=new ni(t);try{s.parse()}catch(r){throw r}return s.root}var et=de;de.default=de;ri.registerParse(de);let Fe=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 os=Fe;Fe.default=Fe;let oi=os,ze=class{get content(){return this.css}constructor(e,t,s){this.processor=e,this.messages=[],this.root=t,this.opts=s,this.css="",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 oi(e,t);return this.messages.push(s),s}warnings(){return this.messages.filter(e=>e.type==="warning")}};var tt=ze;ze.default=ze;let li=P,ai=Qe,ui=ns,ci=et,At=tt,hi=Z,fi=ge,{isClean:M,my:pi}=X;const di={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},mi={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},gi={Once:!0,postcssPlugin:!0,prepare:!0},B=0;function G(i){return typeof i=="object"&&typeof i.then=="function"}function ls(i){let e=!1,t=di[i.type];return i.type==="decl"?e=i.prop.toLowerCase():i.type==="atrule"&&(e=i.name.toLowerCase()),e&&i.append?[t,t+"-"+e,B,t+"Exit",t+"Exit-"+e]:e?[t,t+"-"+e,t+"Exit",t+"Exit-"+e]:i.append?[t,B,t+"Exit"]:[t,t+"Exit"]}function Tt(i){let e;return i.type==="document"?e=["Document",B,"DocumentExit"]:i.type==="root"?e=["Root",B,"RootExit"]:e=ls(i),{eventIndex:0,events:e,iterator:0,node:i,visitorIndex:0,visitors:[]}}function je(i){return i[M]=!1,i.nodes&&i.nodes.forEach(e=>je(e)),i}let We={},U=class as{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"}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=je(t);else if(t instanceof as||t instanceof At)r=je(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=ci;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[pi]&&li.rebuild(r)}this.result=new At(e,r,s),this.helpers=z(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(!mi[s]&&/^[A-Z]/.test(s))throw new Error(`Unknown event ${s} in ${t.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!gi[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[M];){e[M]=!0;let t=[Tt(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=fi;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);let r=new ui(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[M];)e[M]=!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[M]){a[M]=!0,e.push(Tt(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===B){s.nodes&&s.nodes.length&&(s[M]=!0,t.iterator=s.getIterator());return}else if(this.listeners[o]){t.visitors=this.listeners[o];return}}e.pop()}walkSync(e){e[M]=!0;let t=ls(e);for(let s of t)if(s===B)e.nodes&&e.each(r=>{r[M]||this.walkSync(r)});else{let r=this.listeners[s];if(r&&this.visitSync(r,e.toProxy()))return}}warnings(){return this.sync().warnings()}};U.registerPostcss=i=>{We=i};var us=U;U.default=U;hi.registerLazyResult(U);ai.registerLazyResult(U);let wi=ns,yi=et;const Ei=tt;let Ri=ge;let Ge=class{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=yi;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"}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=Ri;this.result=new Ei(this._processor,r,this._opts),this.result.css=t;let o=this;Object.defineProperty(this.result,"root",{get(){return o.root}});let a=new wi(n,r,this._opts,t);if(a.isMap()){let[l,c]=a.generate();l&&(this.result.css=l),c&&(this.result.map=c)}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[]}};var bi=Ge;Ge.default=Ge;let Ci=Qe,xi=us,vi=bi,Si=Z,J=class{constructor(e=[]){this.version="8.5.6",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 vi(this,e,t):new xi(this,e,t)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}};var Ni=J;J.default=J;Si.registerProcessor(J);Ci.registerProcessor(J);let cs=qe,hs=ye,Oi=P,Di=Je,fs=Ee,ps=Qe,Mi=_r,Ai=Re,Ti=us,_i=Kt,Ii=we,Pi=et,st=Ni,$i=tt,ds=Z,ms=Ke,Li=ge,ki=os;function y(...i){return i.length===1&&Array.isArray(i[0])&&(i=i[0]),new st(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:
29
29
  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:
30
- https://www.w3ctech.com/topic/2226`));let a=t(...o);return a.postcssPlugin=e,a.postcssVersion=new st().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=$i;y.parse=Ii;y.fromJSON=Di;y.list=Ti;y.comment=i=>new hs(i);y.atRule=i=>new cs(i);y.decl=i=>new fs(i);y.rule=i=>new ms(i);y.root=i=>new ds(i);y.document=i=>new ps(i);y.CssSyntaxError=Oi;y.Declaration=fs;y.Container=Ni;y.Processor=st;y.Document=ps;y.Comment=hs;y.Warning=Li;y.AtRule=cs;y.Result=Pi;y.Input=Mi;y.Rule=ms;y.Root=ds;y.Node=_i;Ai.registerPostcss(y);var ki=y;y.default=y;const E=Zs(ki);E.stringify;E.fromJSON;E.plugin;E.parse;E.list;E.document;E.comment;E.atRule;E.rule;E.decl;E.root;E.CssSyntaxError;E.Declaration;E.Container;E.Processor;E.Document;E.Comment;E.Warning;E.AtRule;E.Result;E.Input;E.Rule;E.Root;E.Node;var w=(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))(w||{});function Bi(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[Ve(o[0].trim())]=o[1].trim())}}),e}function _t(i){const e=[];for(const t in i){const s=i[t];if(typeof s!="string")continue;const r=Wi(t);e.push(`${r}: ${s};`)}return e.join(" ")}const Ui=/-([a-z])/g,Fi=/^--[a-zA-Z0-9-]+$/,Ve=i=>Fi.test(i)?i:i.replace(Ui,(e,t)=>t?t.toUpperCase():""),zi=/\B([A-Z])/g,Wi=i=>i.replace(zi,"-$1").toLowerCase();class T{constructor(...e){h(this,"parentElement",null),h(this,"parentNode",null),h(this,"ownerDocument"),h(this,"firstChild",null),h(this,"lastChild",null),h(this,"previousSibling",null),h(this,"nextSibling",null),h(this,"ELEMENT_NODE",1),h(this,"TEXT_NODE",3),h(this,"nodeType"),h(this,"nodeName"),h(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 T){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 T{constructor(...e){super(e),h(this,"nodeType",9),h(this,"nodeName","#document"),h(this,"compatMode","CSS1Compat"),h(this,"RRNodeType",w.Document),h(this,"textContent",null),this.ownerDocument=this}get documentElement(){return this.childNodes.find(e=>e.RRNodeType===w.Element&&e.tagName==="HTML")||null}get body(){var e;return((e=this.documentElement)==null?void 0:e.childNodes.find(t=>t.RRNodeType===w.Element&&t.tagName==="BODY"))||null}get head(){var e;return((e=this.documentElement)==null?void 0:e.childNodes.find(t=>t.RRNodeType===w.Element&&t.tagName==="HEAD"))||null}get implementation(){return this}get firstElementChild(){return this.documentElement}appendChild(e){const t=e.RRNodeType;if((t===w.Element||t===w.DocumentType)&&this.childNodes.some(r=>r.RRNodeType===t))throw new Error(`RRDomException: Failed to execute 'appendChild' on 'RRNode': Only one ${t===w.Element?"RRElement":"RRDoctype"} on RRDocument allowed.`);const s=lt(this,e);return s.parentElement=null,s}insertBefore(e,t){const s=e.RRNodeType;if((s===w.Element||s===w.DocumentType)&&this.childNodes.some(n=>n.RRNodeType===s))throw new Error(`RRDomException: Failed to execute 'insertBefore' on 'RRNode': Only one ${s===w.Element?"RRElement":"RRDoctype"} on RRDocument allowed.`);const r=Es(this,e,t);return r.parentElement=null,r}removeChild(e){return Rs(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 rt(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 it(e);return t.ownerDocument=this,t}createComment(e){const t=new nt(e);return t.ownerDocument=this,t}createCDATASection(e){const t=new ot(e);return t.ownerDocument=this,t}toString(){return"RRDocument"}}class rt extends T{constructor(e,t,s){super(),h(this,"nodeType",10),h(this,"RRNodeType",w.DocumentType),h(this,"name"),h(this,"publicId"),h(this,"systemId"),h(this,"textContent",null),this.name=e,this.publicId=t,this.systemId=s,this.nodeName=e}toString(){return"RRDocumentType"}}class Q extends T{constructor(e){super(),h(this,"nodeType",1),h(this,"RRNodeType",w.Element),h(this,"tagName"),h(this,"attributes",{}),h(this,"shadowRoot",null),h(this,"scrollLeft"),h(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 ys(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?Bi(this.attributes.style):{},t=/\B([A-Z])/g;return e.setProperty=(s,r,n)=>{if(t.test(s))return;const o=Ve(s);r?e[o]=r:delete e[o],n==="important"&&(e[o]+=" !important"),this.attributes.style=_t(e)},e.removeProperty=s=>{if(t.test(s))return"";const r=Ve(s),n=e[r]||"";return delete e[r],this.attributes.style=_t(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 lt(this,e)}insertBefore(e,t){return Es(this,e,t)}removeChild(e){return Rs(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 gs extends Q{constructor(){super(...arguments),h(this,"currentTime"),h(this,"volume"),h(this,"paused"),h(this,"muted"),h(this,"playbackRate"),h(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 ws extends Q{constructor(){super(...arguments),h(this,"tagName","DIALOG"),h(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 it extends T{constructor(e){super(),h(this,"nodeType",3),h(this,"nodeName","#text"),h(this,"RRNodeType",w.Text),h(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 nt extends T{constructor(e){super(),h(this,"nodeType",8),h(this,"nodeName","#comment"),h(this,"RRNodeType",w.Comment),h(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 ot extends T{constructor(e){super(),h(this,"nodeName","#cdata-section"),h(this,"nodeType",4),h(this,"RRNodeType",w.CDATA),h(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 ys{constructor(e,t){if(h(this,"onChange"),h(this,"classes",[]),h(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(" "))}),h(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 lt(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 Es(i,e,t){if(!t)return lt(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 Rs(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 Ye={svg:"http://www.w3.org/2000/svg","xlink:href":"http://www.w3.org/1999/xlink",xmlns:"http://www.w3.org/2000/xmlns/"},ji={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 A=null;function at(i,e,t,s=e.mirror||e.ownerDocument.mirror){i=Gi(i,e,t,s),bs(i,e,t,s),Vi(i,e,t)}function Gi(i,e,t,s){var r;if(t.afterAppend&&!A&&(A=new WeakSet,setTimeout(()=>{A=null},0)),!ut(i,e)){const n=me(e,t.mirror,s);(r=i.parentNode)==null||r.replaceChild(n,i),i=n}switch(e.RRNodeType){case w.Document:{if(!L(i,e,t.mirror,s)){const n=s.getMeta(e);n&&(t.mirror.removeNodeFromMap(i),i.close(),i.open(),t.mirror.add(i,n),A==null||A.add(i))}break}case w.Element:{const n=i,o=e;switch(o.tagName){case"IFRAME":{const a=i.contentDocument;if(!a)break;at(a,e.contentDocument,t,s);break}}o.shadowRoot&&(n.shadowRoot||n.attachShadow({mode:"open"}),bs(n.shadowRoot,o.shadowRoot,t,s)),Yi(n,o,s);break}}return i}function Vi(i,e,t){var s;switch(e.RRNodeType){case w.Document:{const r=e.scrollData;r&&t.applyScroll(r,!0);break}case w.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,c=o.matches("dialog:modal"),u=a.open,d=a.isModal,p=c!==d,g=l!==u;if((p||l&&g)&&o.close(),u&&(g||p))try{d?o.showModal():o.show()}catch(x){console.warn(x)}break}}break}case w.Text:case w.Comment:case w.CDATA:{i.textContent!==e.data&&(i.textContent=e.data);break}}A!=null&&A.has(i)&&(A.delete(i),(s=t.afterAppend)==null||s.call(t,i,t.mirror.getId(i)))}function Yi(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&&Ye[n])i.setAttributeNS(Ye[n],n,o);else if(e.tagName==="CANVAS"&&n==="rr_dataURL"){const l=document.createElement("img");l.src=o,l.onload=()=>{const c=i.getContext("2d");c&&c.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 bs(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,c=n.length-1,u=r[o],d=r[a],p=n[l],g=n[c],x,v;for(;o<=a&&l<=c;)if(u===void 0)u=r[++o];else if(d===void 0)d=r[--a];else if(L(u,p,t.mirror,s))u=r[++o],p=n[++l];else if(L(d,g,t.mirror,s))d=r[--a],g=n[--c];else if(L(u,g,t.mirror,s)){try{i.insertBefore(u,d.nextSibling)}catch(R){console.warn(R)}u=r[++o],g=n[--c]}else if(L(d,p,t.mirror,s)){try{i.insertBefore(d,u)}catch(R){console.warn(R)}d=r[--a],p=n[++l]}else{if(!x){x={};for(let b=o;b<=a;b++){const S=r[b];S&&t.mirror.hasNode(S)&&(x[t.mirror.getId(S)]=b)}}v=x[s.getId(p)];const R=r[v];if(v!==void 0&&R&&L(R,p,t.mirror,s)){try{i.insertBefore(R,u)}catch(b){console.warn(b)}r[v]=void 0}else{const b=me(p,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(S){console.warn(S)}}p=n[++l]}if(o>a){const R=n[c+1];let b=null;for(R&&(b=t.mirror.getNode(s.getId(R)));l<=c;++l){const S=me(n[l],t.mirror,s);try{i.insertBefore(S,b)}catch(Ce){console.warn(Ce)}}}else if(l>c)for(;o<=a;o++){const R=r[o];if(!(!R||R.parentNode!==i))try{i.removeChild(R),t.mirror.removeNodeFromMap(R)}catch(b){console.warn(b)}}let f=i.firstChild,D=e.firstChild;for(;f!==null&&D!==null;)at(f,D,t,s),f=f.nextSibling,D=D.nextSibling}function me(i,e,t){const s=t.getId(i),r=t.getMeta(i);let n=null;if(s>-1&&(n=e.getNode(s)),n!==null&&ut(n,i))return n;switch(i.RRNodeType){case w.Document:n=new Document;break;case w.DocumentType:n=document.implementation.createDocumentType(i.name,i.publicId,i.systemId);break;case w.Element:{let o=i.tagName.toLowerCase();o=ji[o]||o,r&&"isSVG"in r&&(r!=null&&r.isSVG)?n=document.createElementNS(Ye.svg,o):n=document.createElement(i.tagName);break}case w.Text:n=document.createTextNode(i.data);break;case w.Comment:n=document.createComment(i.data);break;case w.CDATA:n=document.createCDATASection(i.data);break}r&&e.add(n,N({},r));try{A==null||A.add(n)}catch(o){}return n}function ut(i,e){return i.nodeType!==e.nodeType?!1:i.nodeType!==i.ELEMENT_NODE||i.tagName.toUpperCase()===e.tagName}function L(i,e,t,s){const r=t.getId(i),n=s.getId(e);return r===-1||r!==n?!1:ut(i,e)}class F extends be{constructor(e){super(),h(this,"UNSERIALIZED_STARTING_ID",-2),h(this,"_unserializedId",this.UNSERIALIZED_STARTING_ID),h(this,"mirror",_s()),h(this,"scrollData",null),e&&(this.mirror=e)}get unserializedId(){return this._unserializedId--}createDocument(e,t,s){return new F}createDocumentType(e,t,s){const r=new Cs(e,t,s);return r.ownerDocument=this,r}createElement(e){const t=e.toUpperCase();let s;switch(t){case"AUDIO":case"VIDEO":s=new xs(t);break;case"IFRAME":s=new Os(t,this.mirror);break;case"CANVAS":s=new Ss(t);break;case"STYLE":s=new Ns(t);break;case"DIALOG":s=new vs(t);break;default:s=new q(t);break}return s.ownerDocument=this,s}createComment(e){const t=new Ms(e);return t.ownerDocument=this,t}createCDATASection(e){const t=new As(e);return t.ownerDocument=this,t}createTextNode(e){const t=new Ds(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 Cs=rt;class q extends Q{constructor(){super(...arguments),h(this,"inputData",null),h(this,"scrollData",null)}}class xs extends gs{}class vs extends ws{}class Ss extends q{constructor(){super(...arguments),h(this,"rr_dataURL",null),h(this,"canvasMutations",[])}getContext(){return null}}class Ns extends q{constructor(){super(...arguments),h(this,"rules",[])}}class Os extends q{constructor(e,t){super(e),h(this,"contentDocument",new F),this.contentDocument.mirror=t}}const Ds=it,Ms=nt,As=ot;function Hi(i){return i instanceof HTMLFormElement?"FORM":i.tagName.toUpperCase()}function Ts(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=Hi(o);r=e.createElement(a);const l=r;for(const{name:c,value:u}of Array.from(o.attributes))l.attributes[c]=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 F&&(n||(n=Ps(r,e.unserializedId),t.add(i,n)),e.mirror.add(r,N({},n))),r}function Ji(i,e=Vs(),t=new F){function s(r,n){const o=Ts(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 _s(){return new Is}class Is{constructor(){h(this,"idNodeMap",new Map),h(this,"nodeMetaMap",new WeakMap),h(this,"selectorNodeMap",new Map)}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);const s=this.getMeta(e);if(s!=null&&s.selector){const r=this.selectorNodeMap.get(s.selector);r&&(r.delete(e),r.size===0&&this.selectorNodeMap.delete(s.selector))}e.childNodes&&e.childNodes.forEach(r=>this.removeNodeFromMap(r))}has(e){return this.idNodeMap.has(e)}hasNode(e){return this.nodeMetaMap.has(e)}add(e,t){const s=t.id;if(this.idNodeMap.set(s,e),this.nodeMetaMap.set(e,t),t.selector){let r=this.selectorNodeMap.get(t.selector);r||(r=new Set,this.selectorNodeMap.set(t.selector,r)),r.add(e)}}replace(e,t){const s=this.getNode(e);if(s){const r=this.nodeMetaMap.get(s);if(r&&(this.nodeMetaMap.set(t,r),r.selector)){const n=this.selectorNodeMap.get(r.selector);n&&(n.delete(s),n.add(t))}}this.idNodeMap.set(e,t)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap,this.selectorNodeMap=new Map}getNodeBySelector(e){const t=this.selectorNodeMap.get(e);return!t||t.size===0?null:t.values().next().value||null}getNodesBySelector(e){const t=this.selectorNodeMap.get(e);return t?Array.from(t):[]}hasSelector(e){const t=this.selectorNodeMap.get(e);return t!==void 0&&t.size>0}}function Ps(i,e){switch(i.RRNodeType){case w.Document:return{id:e,type:i.RRNodeType,childNodes:[]};case w.DocumentType:{const t=i;return{id:e,type:i.RRNodeType,name:t.name,publicId:t.publicId,systemId:t.systemId}}case w.Element:return{id:e,type:i.RRNodeType,tagName:i.tagName.toLowerCase(),attributes:{},childNodes:[]};case w.Text:return{id:e,type:i.RRNodeType,textContent:i.textContent||""};case w.Comment:return{id:e,type:i.RRNodeType,textContent:i.textContent||""};case w.CDATA:return{id:e,type:i.RRNodeType,textContent:""}}}function Xi(i,e){return ce(i,e,"")}function ce(i,e,t){let s=`${t}${e.getId(i)} ${i.toString()}
31
- `;if(i.RRNodeType===w.Element){const r=i;r.shadowRoot&&(s+=ce(r.shadowRoot,e,t+" "))}for(const r of i.childNodes)s+=ce(r,e,t+" ");return i.nodeName==="IFRAME"&&(s+=ce(i.contentDocument,e,t+" ")),s}exports.BaseRRCDATASection=ot;exports.BaseRRComment=nt;exports.BaseRRDialogElement=ws;exports.BaseRRDocument=be;exports.BaseRRDocumentType=rt;exports.BaseRRElement=Q;exports.BaseRRMediaElement=gs;exports.BaseRRNode=T;exports.BaseRRText=it;exports.ClassList=ys;exports.Mirror=Is;exports.NodeType=C;exports.RRCDATASection=As;exports.RRCanvasElement=Ss;exports.RRComment=Ms;exports.RRDialogElement=vs;exports.RRDocument=F;exports.RRDocumentType=Cs;exports.RRElement=q;exports.RRIFrameElement=Os;exports.RRMediaElement=xs;exports.RRNode=T;exports.RRStyleElement=Ns;exports.RRText=Ds;exports.buildFromDom=Ji;exports.buildFromNode=Ts;exports.createMirror=_s;exports.createOrGetNode=me;exports.diff=at;exports.getDefaultSN=Ps;exports.printRRDom=Xi;
30
+ https://www.w3ctech.com/topic/2226`));let a=t(...o);return a.postcssPlugin=e,a.postcssVersion=new st().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=Li;y.parse=Pi;y.fromJSON=Mi;y.list=_i;y.comment=i=>new hs(i);y.atRule=i=>new cs(i);y.decl=i=>new fs(i);y.rule=i=>new ms(i);y.root=i=>new ds(i);y.document=i=>new ps(i);y.CssSyntaxError=Di;y.Declaration=fs;y.Container=Oi;y.Processor=st;y.Document=ps;y.Comment=hs;y.Warning=ki;y.AtRule=cs;y.Result=$i;y.Input=Ai;y.Rule=ms;y.Root=ds;y.Node=Ii;Ti.registerPostcss(y);var Bi=y;y.default=y;const E=qs(Bi);E.stringify;E.fromJSON;E.plugin;E.parse;E.list;E.document;E.comment;E.atRule;E.rule;E.decl;E.root;E.CssSyntaxError;E.Declaration;E.Container;E.Processor;E.Document;E.Comment;E.Warning;E.AtRule;E.Result;E.Input;E.Rule;E.Root;E.Node;var w=(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))(w||{});function Ui(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[Ve(o[0].trim())]=o[1].trim())}}),e}function _t(i){const e=[];for(const t in i){const s=i[t];if(typeof s!="string")continue;const r=Wi(t);e.push(`${r}: ${s};`)}return e.join(" ")}const Fi=/-([a-z])/g,zi=/^--[a-zA-Z0-9-]+$/,Ve=i=>zi.test(i)?i:i.replace(Fi,(e,t)=>t?t.toUpperCase():""),ji=/\B([A-Z])/g,Wi=i=>i.replace(ji,"-$1").toLowerCase();class T{constructor(...e){h(this,"parentElement",null),h(this,"parentNode",null),h(this,"ownerDocument"),h(this,"firstChild",null),h(this,"lastChild",null),h(this,"previousSibling",null),h(this,"nextSibling",null),h(this,"ELEMENT_NODE",1),h(this,"TEXT_NODE",3),h(this,"nodeType"),h(this,"nodeName"),h(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 T){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 T{constructor(...e){super(e),h(this,"nodeType",9),h(this,"nodeName","#document"),h(this,"compatMode","CSS1Compat"),h(this,"RRNodeType",w.Document),h(this,"textContent",null),this.ownerDocument=this}get documentElement(){return this.childNodes.find(e=>e.RRNodeType===w.Element&&e.tagName==="HTML")||null}get body(){var e;return((e=this.documentElement)==null?void 0:e.childNodes.find(t=>t.RRNodeType===w.Element&&t.tagName==="BODY"))||null}get head(){var e;return((e=this.documentElement)==null?void 0:e.childNodes.find(t=>t.RRNodeType===w.Element&&t.tagName==="HEAD"))||null}get implementation(){return this}get firstElementChild(){return this.documentElement}appendChild(e){const t=e.RRNodeType;if((t===w.Element||t===w.DocumentType)&&this.childNodes.some(r=>r.RRNodeType===t))throw new Error(`RRDomException: Failed to execute 'appendChild' on 'RRNode': Only one ${t===w.Element?"RRElement":"RRDoctype"} on RRDocument allowed.`);const s=lt(this,e);return s.parentElement=null,s}insertBefore(e,t){const s=e.RRNodeType;if((s===w.Element||s===w.DocumentType)&&this.childNodes.some(n=>n.RRNodeType===s))throw new Error(`RRDomException: Failed to execute 'insertBefore' on 'RRNode': Only one ${s===w.Element?"RRElement":"RRDoctype"} on RRDocument allowed.`);const r=Es(this,e,t);return r.parentElement=null,r}removeChild(e){return Rs(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 rt(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 it(e);return t.ownerDocument=this,t}createComment(e){const t=new nt(e);return t.ownerDocument=this,t}createCDATASection(e){const t=new ot(e);return t.ownerDocument=this,t}toString(){return"RRDocument"}}class rt extends T{constructor(e,t,s){super(),h(this,"nodeType",10),h(this,"RRNodeType",w.DocumentType),h(this,"name"),h(this,"publicId"),h(this,"systemId"),h(this,"textContent",null),this.name=e,this.publicId=t,this.systemId=s,this.nodeName=e}toString(){return"RRDocumentType"}}class q extends T{constructor(e){super(),h(this,"nodeType",1),h(this,"RRNodeType",w.Element),h(this,"tagName"),h(this,"attributes",{}),h(this,"shadowRoot",null),h(this,"scrollLeft"),h(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 ys(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?Ui(this.attributes.style):{},t=/\B([A-Z])/g;return e.setProperty=(s,r,n)=>{if(t.test(s))return;const o=Ve(s);r?e[o]=r:delete e[o],n==="important"&&(e[o]+=" !important"),this.attributes.style=_t(e)},e.removeProperty=s=>{if(t.test(s))return"";const r=Ve(s),n=e[r]||"";return delete e[r],this.attributes.style=_t(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 lt(this,e)}insertBefore(e,t){return Es(this,e,t)}removeChild(e){return Rs(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 gs extends q{constructor(){super(...arguments),h(this,"currentTime"),h(this,"volume"),h(this,"paused"),h(this,"muted"),h(this,"playbackRate"),h(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 ws extends q{constructor(){super(...arguments),h(this,"tagName","DIALOG"),h(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 it extends T{constructor(e){super(),h(this,"nodeType",3),h(this,"nodeName","#text"),h(this,"RRNodeType",w.Text),h(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 nt extends T{constructor(e){super(),h(this,"nodeType",8),h(this,"nodeName","#comment"),h(this,"RRNodeType",w.Comment),h(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 ot extends T{constructor(e){super(),h(this,"nodeName","#cdata-section"),h(this,"nodeType",4),h(this,"RRNodeType",w.CDATA),h(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 ys{constructor(e,t){if(h(this,"onChange"),h(this,"classes",[]),h(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(" "))}),h(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 lt(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 Es(i,e,t){if(!t)return lt(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 Rs(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 Ye={svg:"http://www.w3.org/2000/svg","xlink:href":"http://www.w3.org/1999/xlink",xmlns:"http://www.w3.org/2000/xmlns/"},Gi={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 A=null;function at(i,e,t,s=e.mirror||e.ownerDocument.mirror){i=Vi(i,e,t,s),bs(i,e,t,s),Yi(i,e,t)}function Vi(i,e,t,s){var r;if(t.afterAppend&&!A&&(A=new WeakSet,setTimeout(()=>{A=null},0)),!ut(i,e)){const n=me(e,t.mirror,s);(r=i.parentNode)==null||r.replaceChild(n,i),i=n}switch(e.RRNodeType){case w.Document:{if(!L(i,e,t.mirror,s)){const n=s.getMeta(e);n&&(t.mirror.removeNodeFromMap(i),i.close(),i.open(),t.mirror.add(i,n),A==null||A.add(i))}break}case w.Element:{const n=i,o=e;switch(o.tagName){case"IFRAME":{const a=i.contentDocument;if(!a)break;at(a,e.contentDocument,t,s);break}}o.shadowRoot&&(n.shadowRoot||n.attachShadow({mode:"open"}),bs(n.shadowRoot,o.shadowRoot,t,s)),Hi(n,o,s);break}}return i}function Yi(i,e,t){var s;switch(e.RRNodeType){case w.Document:{const r=e.scrollData;r&&t.applyScroll(r,!0);break}case w.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,c=o.matches("dialog:modal"),u=a.open,d=a.isModal,p=c!==d,g=l!==u;if((p||l&&g)&&o.close(),u&&(g||p))try{d?o.showModal():o.show()}catch(x){console.warn(x)}break}}break}case w.Text:case w.Comment:case w.CDATA:{i.textContent!==e.data&&(i.textContent=e.data);break}}A!=null&&A.has(i)&&(A.delete(i),(s=t.afterAppend)==null||s.call(t,i,t.mirror.getId(i)))}function Hi(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&&Ye[n])i.setAttributeNS(Ye[n],n,o);else if(e.tagName==="CANVAS"&&n==="rr_dataURL"){const l=document.createElement("img");l.src=o,l.onload=()=>{const c=i.getContext("2d");c&&c.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 bs(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,c=n.length-1,u=r[o],d=r[a],p=n[l],g=n[c],x,v;for(;o<=a&&l<=c;)if(u===void 0)u=r[++o];else if(d===void 0)d=r[--a];else if(L(u,p,t.mirror,s))u=r[++o],p=n[++l];else if(L(d,g,t.mirror,s))d=r[--a],g=n[--c];else if(L(u,g,t.mirror,s)){try{i.insertBefore(u,d.nextSibling)}catch(R){console.warn(R)}u=r[++o],g=n[--c]}else if(L(d,p,t.mirror,s)){try{i.insertBefore(d,u)}catch(R){console.warn(R)}d=r[--a],p=n[++l]}else{if(!x){x={};for(let b=o;b<=a;b++){const S=r[b];S&&t.mirror.hasNode(S)&&(x[t.mirror.getId(S)]=b)}}v=x[s.getId(p)];const R=r[v];if(v!==void 0&&R&&L(R,p,t.mirror,s)){try{i.insertBefore(R,u)}catch(b){console.warn(b)}r[v]=void 0}else{const b=me(p,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(S){console.warn(S)}}p=n[++l]}if(o>a){const R=n[c+1];let b=null;for(R&&(b=t.mirror.getNode(s.getId(R)));l<=c;++l){const S=me(n[l],t.mirror,s);try{i.insertBefore(S,b)}catch(Ce){console.warn(Ce)}}}else if(l>c)for(;o<=a;o++){const R=r[o];if(!(!R||R.parentNode!==i))try{i.removeChild(R),t.mirror.removeNodeFromMap(R)}catch(b){console.warn(b)}}let f=i.firstChild,D=e.firstChild;for(;f!==null&&D!==null;)at(f,D,t,s),f=f.nextSibling,D=D.nextSibling}function me(i,e,t){const s=t.getId(i),r=t.getMeta(i);let n=null;if(s>-1&&(n=e.getNode(s)),n!==null&&ut(n,i))return n;switch(i.RRNodeType){case w.Document:n=new Document;break;case w.DocumentType:n=document.implementation.createDocumentType(i.name,i.publicId,i.systemId);break;case w.Element:{let o=i.tagName.toLowerCase();o=Gi[o]||o,r&&"isSVG"in r&&(r!=null&&r.isSVG)?n=document.createElementNS(Ye.svg,o):n=document.createElement(i.tagName);break}case w.Text:n=document.createTextNode(i.data);break;case w.Comment:n=document.createComment(i.data);break;case w.CDATA:n=document.createCDATASection(i.data);break}r&&e.add(n,N({},r));try{A==null||A.add(n)}catch(o){}return n}function ut(i,e){return i.nodeType!==e.nodeType?!1:i.nodeType!==i.ELEMENT_NODE||i.tagName.toUpperCase()===e.tagName}function L(i,e,t,s){const r=t.getId(i),n=s.getId(e);return r===-1||r!==n?!1:ut(i,e)}class F extends be{constructor(e){super(),h(this,"UNSERIALIZED_STARTING_ID",-2),h(this,"_unserializedId",this.UNSERIALIZED_STARTING_ID),h(this,"mirror",_s()),h(this,"scrollData",null),e&&(this.mirror=e)}get unserializedId(){return this._unserializedId--}createDocument(e,t,s){return new F}createDocumentType(e,t,s){const r=new Cs(e,t,s);return r.ownerDocument=this,r}createElement(e){const t=e.toUpperCase();let s;switch(t){case"AUDIO":case"VIDEO":s=new xs(t);break;case"IFRAME":s=new Os(t,this.mirror);break;case"CANVAS":s=new Ss(t);break;case"STYLE":s=new Ns(t);break;case"DIALOG":s=new vs(t);break;default:s=new Q(t);break}return s.ownerDocument=this,s}createComment(e){const t=new Ms(e);return t.ownerDocument=this,t}createCDATASection(e){const t=new As(e);return t.ownerDocument=this,t}createTextNode(e){const t=new Ds(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 Cs=rt;class Q extends q{constructor(){super(...arguments),h(this,"inputData",null),h(this,"scrollData",null)}}class xs extends gs{}class vs extends ws{}class Ss extends Q{constructor(){super(...arguments),h(this,"rr_dataURL",null),h(this,"canvasMutations",[])}getContext(){return null}}class Ns extends Q{constructor(){super(...arguments),h(this,"rules",[])}}class Os extends Q{constructor(e,t){super(e),h(this,"contentDocument",new F),this.contentDocument.mirror=t}}const Ds=it,Ms=nt,As=ot;function Ji(i){return i instanceof HTMLFormElement?"FORM":i.tagName.toUpperCase()}function Ts(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=Ji(o);r=e.createElement(a);const l=r;for(const{name:c,value:u}of Array.from(o.attributes))l.attributes[c]=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 F&&(n||(n=Ps(r,e.unserializedId),t.add(i,n)),e.mirror.add(r,N({},n))),r}function Xi(i,e=Vs(),t=new F){function s(r,n){const o=Ts(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 _s(){return new Is}class Is{constructor(){h(this,"idNodeMap",new Map),h(this,"nodeMetaMap",new WeakMap),h(this,"selectorNodeMap",new Map)}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);const s=this.getMeta(e);if(s!=null&&s.selector){const r=this.selectorNodeMap.get(s.selector);r&&(r.delete(e),r.size===0&&this.selectorNodeMap.delete(s.selector))}e.childNodes&&e.childNodes.forEach(r=>this.removeNodeFromMap(r))}has(e){return this.idNodeMap.has(e)}hasNode(e){return this.nodeMetaMap.has(e)}add(e,t){const s=t.id;if(this.idNodeMap.set(s,e),this.nodeMetaMap.set(e,t),t.selector){let r=this.selectorNodeMap.get(t.selector);r||(r=new Set,this.selectorNodeMap.set(t.selector,r)),r.add(e)}}replace(e,t){const s=this.getNode(e);if(s){const r=this.nodeMetaMap.get(s);if(r&&(this.nodeMetaMap.set(t,r),r.selector)){const n=this.selectorNodeMap.get(r.selector);n&&(n.delete(s),n.add(t))}}this.idNodeMap.set(e,t)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap,this.selectorNodeMap=new Map}getNodeBySelector(e){const t=this.selectorNodeMap.get(e);return!t||t.size===0?null:t.values().next().value||null}getNodesBySelector(e){const t=this.selectorNodeMap.get(e);return t?Array.from(t):[]}hasSelector(e){const t=this.selectorNodeMap.get(e);return t!==void 0&&t.size>0}}function Ps(i,e){switch(i.RRNodeType){case w.Document:return{id:e,type:i.RRNodeType,childNodes:[]};case w.DocumentType:{const t=i;return{id:e,type:i.RRNodeType,name:t.name,publicId:t.publicId,systemId:t.systemId}}case w.Element:return{id:e,type:i.RRNodeType,tagName:i.tagName.toLowerCase(),attributes:{},childNodes:[]};case w.Text:return{id:e,type:i.RRNodeType,textContent:i.textContent||""};case w.Comment:return{id:e,type:i.RRNodeType,textContent:i.textContent||""};case w.CDATA:return{id:e,type:i.RRNodeType,textContent:""}}}function Zi(i,e){return ce(i,e,"")}function ce(i,e,t){let s=`${t}${e.getId(i)} ${i.toString()}
31
+ `;if(i.RRNodeType===w.Element){const r=i;r.shadowRoot&&(s+=ce(r.shadowRoot,e,t+" "))}for(const r of i.childNodes)s+=ce(r,e,t+" ");return i.nodeName==="IFRAME"&&(s+=ce(i.contentDocument,e,t+" ")),s}exports.BaseRRCDATASection=ot;exports.BaseRRComment=nt;exports.BaseRRDialogElement=ws;exports.BaseRRDocument=be;exports.BaseRRDocumentType=rt;exports.BaseRRElement=q;exports.BaseRRMediaElement=gs;exports.BaseRRNode=T;exports.BaseRRText=it;exports.ClassList=ys;exports.Mirror=Is;exports.NodeType=C;exports.RRCDATASection=As;exports.RRCanvasElement=Ss;exports.RRComment=Ms;exports.RRDialogElement=vs;exports.RRDocument=F;exports.RRDocumentType=Cs;exports.RRElement=Q;exports.RRIFrameElement=Os;exports.RRMediaElement=xs;exports.RRNode=T;exports.RRStyleElement=Ns;exports.RRText=Ds;exports.buildFromDom=Xi;exports.buildFromNode=Ts;exports.createMirror=_s;exports.createOrGetNode=me;exports.diff=at;exports.getDefaultSN=Ps;exports.printRRDom=Zi;
32
32
  ;if (typeof module.exports == "object" && typeof exports == "object") {
33
33
  var __cp = (to, from, except, desc) => {
34
34
  if ((from && typeof from === "object") || typeof from === "function") {