@appsurify-testmap/rrdom 3.1.1-alpha.1 → 3.1.1-alpha.3

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,45 +1,35 @@
1
- (function (g, f) {
2
- if ("object" == typeof exports && "object" == typeof module) {
3
- module.exports = f();
4
- } else if ("function" == typeof define && define.amd) {
5
- define("rrdom", [], f);
6
- } else if ("object" == typeof exports) {
7
- exports["rrdom"] = f();
8
- } else {
9
- g["rrdom"] = f();
10
- }
11
- }(this, () => {
12
- var exports = {};
13
- var module = { exports };
14
- "use strict";var $s=Object.defineProperty,Ls=Object.defineProperties;var ks=Object.getOwnPropertyDescriptors;var Q=Object.getOwnPropertySymbols;var ct=Object.prototype.hasOwnProperty,ht=Object.prototype.propertyIsEnumerable;var ut=(i,e,t)=>e in i?$s(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,S=(i,e)=>{for(var t in e||(e={}))ct.call(e,t)&&ut(i,t,e[t]);if(Q)for(var t of Q(e))ht.call(e,t)&&ut(i,t,e[t]);return i},B=(i,e)=>Ls(i,ks(e));var xe=(i,e)=>{var t={};for(var s in i)ct.call(i,s)&&e.indexOf(s)<0&&(t[s]=i[s]);if(i!=null&&Q)for(var s of Q(i))e.indexOf(s)<0&&ht.call(i,s)&&(t[s]=i[s]);return t};var Us=Object.defineProperty,Fs=(i,e,t)=>e in i?Us(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,h=(i,e,t)=>Fs(i,typeof e!="symbol"?e+"":e,t);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var Bs=Object.defineProperty,zs=(i,e,t)=>e in i?Bs(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,ft=(i,e,t)=>zs(i,typeof e!="symbol"?e+"":e,t);let js=class{constructor(){ft(this,"idNodeMap",new Map),ft(this,"nodeMetaMap",new WeakMap)}getId(e){var t;if(!e)return-1;const s=(t=this.getMeta(e))==null?void 0:t.id;return s!=null?s:-1}getNode(e){return this.idNodeMap.get(e)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(e){return this.nodeMetaMap.get(e)||null}removeNodeFromMap(e){const t=this.getId(e);this.idNodeMap.delete(t),e.childNodes&&e.childNodes.forEach(s=>this.removeNodeFromMap(s))}has(e){return this.idNodeMap.has(e)}hasNode(e){return this.nodeMetaMap.has(e)}add(e,t){const s=t.id;this.idNodeMap.set(s,e),this.nodeMetaMap.set(e,t)}replace(e,t){const s=this.getNode(e);if(s){const r=this.nodeMetaMap.get(s);r&&this.nodeMetaMap.set(t,r)}this.idNodeMap.set(e,t)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}};function Gs(){return new js}const Ws=["change","submit","dragstart","drop","pointerdown","pointerup","input","keydown","keyup","keypress","mouseenter","mouseleave","mouseup","mousedown","click","contextmenu","dblclick","focus","blur","touchstart","touchmove","touchend","touchcancel"],Vs=["onclick","ondblclick","onmousedown","onmouseup","onmouseover","onmouseout","onmousemove","onfocus","onblur","onkeydown","onkeypress","onkeyup","onchange","oninput","onsubmit","onreset","onselect","oncontextmenu","ontouchstart","ontouchmove","ontouchend","ontouchcancel"],_t=new WeakSet,Ys=EventTarget.prototype.addEventListener;EventTarget.prototype.addEventListener=function(i,e,t){if(Ys.call(this,i,e,t),this instanceof Element){const s=i.toLowerCase();Ws.includes(s)&&_t.add(this)}};const Hs=EventTarget.prototype.removeEventListener;EventTarget.prototype.removeEventListener=function(i,e,t){Hs.call(this,i,e,t)};function pt(){document.querySelectorAll("*").forEach(e=>{Vs.forEach(t=>{e.hasAttribute(t)&&_t.add(e)})})}try{document.readyState==="complete"||document.readyState==="interactive"?pt():document.addEventListener("DOMContentLoaded",pt)}catch(i){}function Js(i){return i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}function Xs(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 Ve={exports:{}},w=String,Tt=function(){return{isColorSupported:!1,reset:w,bold:w,dim:w,italic:w,underline:w,inverse:w,hidden:w,strikethrough:w,black:w,red:w,green:w,yellow:w,blue:w,magenta:w,cyan:w,white:w,gray:w,bgBlack:w,bgRed:w,bgGreen:w,bgYellow:w,bgBlue:w,bgMagenta:w,bgCyan:w,bgWhite:w}};Ve.exports=Tt();Ve.exports.createColors=Tt;var Zs=Ve.exports;const Qs={},qs=Object.freeze(Object.defineProperty({__proto__:null,default:Qs},Symbol.toStringTag,{value:"Module"})),N=Xs(qs);let mt=Zs,dt=N,De=class It extends Error{constructor(e,t,s,r,o,n){super(e),this.name="CssSyntaxError",this.reason=e,o&&(this.file=o),r&&(this.source=r),n&&(this.plugin=n),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,It)}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),dt&&e&&(t=dt(t));let s=t.split(/\r?\n/),r=Math.max(this.line-3,0),o=Math.min(this.line+2,s.length),n=String(o).length,l,a;if(e){let{bold:u,gray:c,red:p}=mt.createColors(!0);l=m=>u(p(m)),a=m=>c(m)}else l=a=u=>u;return s.slice(r,o).map((u,c)=>{let p=r+1+c,m=" "+(" "+p).slice(-n)+" | ";if(p===this.line){let E=a(m.replace(/\d/g," "))+u.slice(0,this.column-1).replace(/[^\t]/g," ");return l(">")+a(m)+u+`
15
- `+E+l("^")}return" "+a(m)+u}).join(`
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)+`
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
+ `+x+r("^")}return" "+s(g)+n(u)}).join(`
16
5
  `)}toString(){let e=this.showSourceCode();return e&&(e=`
17
6
 
18
7
  `+e+`
19
- `),this.name+": "+this.message+e}};var Ye=De;De.default=De;var H={};H.isClean=Symbol("isClean");H.my=Symbol("my");const gt={after:`
8
+ `),this.name+": "+this.message+e}};var Je=Ae;Ae.default=Ae;const wt={after:`
20
9
  `,beforeClose:`
21
10
  `,beforeComment:`
22
11
  `,beforeDecl:`
23
12
  `,beforeOpen:" ",beforeRule:`
24
- `,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function Ks(i){return i[0].toUpperCase()+i.slice(1)}let Ae=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 o=(e.raws.between||"")+(t?";":"");this.builder(s+r+o,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,o=0;for(;r&&r.type!=="root";)o+=1,r=r.parent;if(s.includes(`
25
- `)){let n=this.raw(e,null,"indent");if(n.length)for(let l=0;l<o;l++)s+=n}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 o=e.nodes[r],n=this.raw(o,"before");n&&this.builder(n),this.stringify(o,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 o=e.parent;if(s==="before"&&(!o||o.type==="root"&&o.first===e||o&&o.type==="document"))return"";if(!o)return gt[s];let n=e.root();if(n.rawCache||(n.rawCache={}),typeof n.rawCache[s]!="undefined")return n.rawCache[s];if(s==="before"||s==="after")return this.beforeAfter(e,s);{let l="raw"+Ks(s);this[l]?r=this[l](n,e):n.walk(a=>{if(r=a.raws[t],typeof r!="undefined")return!1})}return typeof r=="undefined"&&(r=gt[s]),n.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 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(`
26
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(`
27
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(`
28
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(`
29
- `)&&(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 o=s.raws.before.split(`
30
- `);return t=o[o.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 Pt=Ae;Ae.default=Ae;let er=Pt;function Me(i,e){new er(e).stringify(i)}var de=Me;Me.default=Me;let{isClean:q,my:tr}=H,sr=Ye,rr=Pt,ir=de;function _e(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],o=typeof r;s==="parent"&&o==="object"?e&&(t[s]=e):s==="source"?t[s]=r:Array.isArray(r)?t[s]=r.map(n=>_e(n,t)):(o==="object"&&r!==null&&(r=_e(r)),t[s]=r)}return t}let Te=class{constructor(e={}){this.raws={},this[q]=!1,this[tr]=!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=_e(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 sr(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}}}markDirty(){if(this[q]){this[q]=!1;let e=this;for(;e=e.parent;)e[q]=!1}}next(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e+1]}positionBy(e,t){let s=this.source.start;if(e.index)s=this.positionInside(e.index,t);else if(e.word){t=this.toString();let r=t.indexOf(e.word);r!==-1&&(s=this.positionInside(r,t))}return s}positionInside(e,t){let s=t||this.toString(),r=this.source.start.column,o=this.source.start.line;for(let n=0;n<e;n++)s[n]===`
31
- `?(r=1,o+=1):r+=1;return{column:r,line:o}}prev(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e-1]}rangeBy(e){let t={column:this.source.start.column,line:this.source.start.line},s=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:t.column+1,line:t.line};if(e.word){let r=this.toString(),o=r.indexOf(e.word);o!==-1&&(t=this.positionInside(o,r),s=this.positionInside(o+e.word.length,r))}else e.start?t={column:e.start.column,line:e.start.line}:e.index&&(t=this.positionInside(e.index)),e.end?s={column:e.end.column,line:e.end.line}:typeof e.endIndex=="number"?s=this.positionInside(e.endIndex):e.index&&(s=this.positionInside(e.index+1));return(s.line<t.line||s.line===t.line&&s.column<=t.column)&&(s={column:t.column+1,line:t.line}),{end:s,start:t}}raw(e,t){return new rr().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 o=0;for(let n in this){if(!Object.prototype.hasOwnProperty.call(this,n)||n==="parent"||n==="proxyCache")continue;let l=this[n];if(Array.isArray(l))s[n]=l.map(a=>typeof a=="object"&&a.toJSON?a.toJSON(null,t):a);else if(typeof l=="object"&&l.toJSON)s[n]=l.toJSON(null,t);else if(n==="source"){let a=t.get(l.input);a==null&&(a=o,t.set(l.input,o),o++),s[n]={end:l.end,inputId:a,start:l.start}}else s[n]=l}return r&&(s.inputs=[...t.keys()].map(n=>n.toJSON())),s}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(e=ir){e.stringify&&(e=e.stringify);let t="";return e(this,s=>{t+=s}),t}warn(e,t,s){let r={node:this};for(let o in s)r[o]=s[o];return e.warn(t,r)}get proxyOf(){return this}};var ge=Te;Te.default=Te;let nr=ge,Ie=class extends nr{constructor(e){e&&typeof e.value!="undefined"&&typeof e.value!="string"&&(e=B(S({},e),{value:String(e.value)})),super(e),this.type="decl"}get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}};var we=Ie;Ie.default=Ie;let or="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",lr=(i,e=21)=>(t=e)=>{let s="",r=t;for(;r--;)s+=i[Math.random()*i.length|0];return s},ar=(i=21)=>{let e="",t=i;for(;t--;)e+=or[Math.random()*64|0];return e};var ur={nanoid:ar,customAlphabet:lr};let{SourceMapConsumer:wt,SourceMapGenerator:yt}=N,{existsSync:cr,readFileSync:hr}=N,{dirname:ve,join:fr}=N;function pr(i){return Buffer?Buffer.from(i,"base64").toString():window.atob(i)}let Pe=class{constructor(e,t){if(t.map===!1)return;this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");let s=t.map?t.map.prev:void 0,r=this.loadMap(t.from,s);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=ve(this.mapFile)),r&&(this.text=r)}consumer(){return this.consumerCache||(this.consumerCache=new wt(this.text)),this.consumerCache}decodeInline(e){let t=/^data:application\/json;charset=utf-?8;base64,/,s=/^data:application\/json;base64,/,r=/^data:application\/json;charset=utf-?8,/,o=/^data:application\/json,/;if(r.test(e)||o.test(e))return decodeURIComponent(e.substr(RegExp.lastMatch.length));if(t.test(e)||s.test(e))return pr(e.substr(RegExp.lastMatch.length));let n=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+n)}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=/gm);if(!t)return;let s=e.lastIndexOf(t.pop()),r=e.indexOf("*/",s);s>-1&&r>-1&&(this.annotation=this.getAnnotationURL(e.substring(s,r)))}loadFile(e){if(this.root=ve(e),cr(e))return this.mapFile=e,hr(e,"utf-8").toString().trim()}loadMap(e,t){if(t===!1)return!1;if(t){if(typeof t=="string")return t;if(typeof t=="function"){let s=t(e);if(s){let r=this.loadFile(s);if(!r)throw new Error("Unable to load previous source map: "+s.toString());return r}}else{if(t instanceof wt)return yt.fromSourceMap(t).toString();if(t instanceof yt)return t.toString();if(this.isMap(t))return JSON.stringify(t);throw new Error("Unsupported previous source map format: "+t.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let s=this.annotation;return e&&(s=fr(ve(e),s)),this.loadFile(s)}}}startWith(e,t){return e?e.substr(0,t.length)===t:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}};var $t=Pe;Pe.default=Pe;let{SourceMapConsumer:mr,SourceMapGenerator:dr}=N,{fileURLToPath:Et,pathToFileURL:K}=N,{isAbsolute:$e,resolve:Le}=N,{nanoid:gr}=ur,Se=N,Rt=Ye,wr=$t,Ne=Symbol("fromOffsetCache"),yr=!!(mr&&dr),bt=!!(Le&&$e),ce=class{constructor(e,t={}){if(e===null||typeof e=="undefined"||typeof e=="object"&&!e.toString)throw new Error(`PostCSS received ${e} instead of CSS string`);if(this.css=e.toString(),this.css[0]==="\uFEFF"||this.css[0]==="\uFFFE"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,t.from&&(!bt||/^\w+:\/\//.test(t.from)||$e(t.from)?this.file=t.from:this.file=Le(t.from)),bt&&yr){let s=new wr(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 "+gr(6)+">"),this.map&&(this.map.file=this.from)}error(e,t,s,r={}){let o,n,l;if(t&&typeof t=="object"){let u=t,c=s;if(typeof u.offset=="number"){let p=this.fromOffset(u.offset);t=p.line,s=p.col}else t=u.line,s=u.column;if(typeof c.offset=="number"){let p=this.fromOffset(c.offset);n=p.line,l=p.col}else n=c.line,l=c.column}else if(!s){let u=this.fromOffset(t);t=u.line,s=u.col}let a=this.origin(t,s,n,l);return a?o=new Rt(e,a.endLine===void 0?a.line:{column:a.column,line:a.line},a.endLine===void 0?a.column:{column:a.endColumn,line:a.endLine},a.source,a.file,r.plugin):o=new Rt(e,n===void 0?t:{column:s,line:t},n===void 0?s:{column:l,line:n},this.css,this.file,r.plugin),o.input={column:s,endColumn:l,endLine:n,line:t,source:this.css},this.file&&(K&&(o.input.url=K(this.file).toString()),o.input.file=this.file),o}fromOffset(e){let t,s;if(this[Ne])s=this[Ne];else{let o=this.css.split(`
32
- `);s=new Array(o.length);let n=0;for(let l=0,a=o.length;l<a;l++)s[l]=n,n+=o[l].length+1;this[Ne]=s}t=s[s.length-1];let r=0;if(e>=t)r=s.length-1;else{let o=s.length-2,n;for(;r<o;)if(n=r+(o-r>>1),e<s[n])o=n-1;else if(e>=s[n+1])r=n+1;else{r=n;break}}return{col:e-s[r]+1,line:r+1}}mapResolve(e){return/^\w+:\/\//.test(e)?e:Le(this.map.consumer().sourceRoot||this.map.root||".",e)}origin(e,t,s,r){if(!this.map)return!1;let o=this.map.consumer(),n=o.originalPositionFor({column:t,line:e});if(!n.source)return!1;let l;typeof s=="number"&&(l=o.originalPositionFor({column:r,line:s}));let a;$e(n.source)?a=K(n.source):a=new URL(n.source,this.map.consumer().sourceRoot||K(this.map.mapFile));let u={column:n.column,endColumn:l&&l.column,endLine:l&&l.line,line:n.line,url:a.toString()};if(a.protocol==="file:")if(Et)u.file=Et(a);else throw new Error("file: protocol is not available in this PostCSS build");let c=o.sourceContentFor(n.source);return c&&(u.source=c),u}toJSON(){let e={};for(let t of["hasBOM","css","file","id"])this[t]!=null&&(e[t]=this[t]);return this.map&&(e.map=S({},this.map),e.map.consumerCache&&(e.map.consumerCache=void 0)),e}get from(){return this.file||this.id}};var ye=ce;ce.default=ce;Se&&Se.registerInput&&Se.registerInput(ce);let{SourceMapConsumer:Lt,SourceMapGenerator:le}=N,{dirname:ae,relative:kt,resolve:Ut,sep:Ft}=N,{pathToFileURL:Ct}=N,Er=ye,Rr=!!(Lt&&le),br=!!(ae&&Ut&&kt&&Ft),Cr=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=`
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=`
33
24
  `;this.css.includes(`\r
34
25
  `)&&(t=`\r
35
- `),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 Lt(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.indexOf("# sourceMappingURL=")===0&&this.root.removeChild(t)}else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),br&&Rr&&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=le.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new le({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 le({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:""},o,n;this.stringify(this.root,(l,a,u)=>{if(this.css+=l,a&&u!=="end"&&(r.generated.line=e,r.generated.column=t-1,a.source&&a.source.start?(r.source=this.sourcePath(a),r.original.line=a.source.start.line,r.original.column=a.source.start.column-1,this.map.addMapping(r)):(r.source=s,r.original.line=1,r.original.column=0,this.map.addMapping(r))),o=l.match(/\n/g),o?(e+=o.length,n=l.lastIndexOf(`
36
- `),t=l.length-n):t+=l.length,a&&u!=="start"){let c=a.parent||{raws:{}};(!(a.type==="decl"||a.type==="atrule"&&!a.nodes)||a!==c.last||c.raws.semicolon)&&(a.source&&a.source.end?(r.source=this.sourcePath(a),r.original.line=a.source.end.line,r.original.column=a.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(Ut(s,this.mapOpts.annotation)));let r=kt(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 Er(this.originalCSS,this.opts);e.map&&this.previousMaps.push(e.map)}return this.previousMaps}setSourcesContent(){let e={};if(this.root)this.root.walk(t=>{if(t.source){let s=t.source.input.from;if(s&&!e[s]){e[s]=!0;let r=this.usesFileUrls?this.toFileUrl(s):this.toUrl(this.path(s));this.map.setSourceContent(r,t.source.input.css)}}});else if(this.css){let t=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(t,this.css)}}sourcePath(e){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(e.source.input.from):this.toUrl(this.path(e.source.input.from))}toBase64(e){return Buffer?Buffer.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))}toFileUrl(e){let t=this.memoizedFileURLs.get(e);if(t)return t;if(Ct){let s=Ct(e).toString();return this.memoizedFileURLs.set(e,s),s}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(e){let t=this.memoizedURLs.get(e);if(t)return t;Ft==="\\"&&(e=e.replace(/\\/g,"/"));let s=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,s),s}};var Bt=Cr;let xr=ge,ke=class extends xr{constructor(e){super(e),this.type="comment"}};var Ee=ke;ke.default=ke;let{isClean:zt,my:jt}=H,Gt=we,Wt=Ee,vr=ge,Vt,He,Je,Yt;function Ht(i){return i.map(e=>(e.nodes&&(e.nodes=Ht(e.nodes)),delete e.source,e))}function Jt(i){if(i[zt]=!1,i.proxyOf.nodes)for(let e of i.proxyOf.nodes)Jt(e)}let M=class Xt extends vr{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"?(o,n)=>r(o.toProxy(),n):r)):t==="every"||t==="some"?s=>e[t]((r,...o)=>s(r.toProxy(),...o)):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 n of r)this.proxyOf.nodes.splice(s+1,0,n);let o;for(let n in this.indexes)o=this.indexes[n],s<o&&(this.indexes[n]=o+r.length);return this.markDirty(),this}insertBefore(e,t){let s=this.index(e),r=s===0?"prepend":!1,o=this.normalize(t,this.proxyOf.nodes[s],r).reverse();s=this.index(e);for(let l of o)this.proxyOf.nodes.splice(s,0,l);let n;for(let l in this.indexes)n=this.indexes[l],s<=n&&(this.indexes[l]=n+o.length);return this.markDirty(),this}normalize(e,t){if(typeof e=="string")e=Ht(Vt(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 Gt(e)]}else if(e.selector)e=[new He(e)];else if(e.name)e=[new Je(e)];else if(e.text)e=[new Wt(e)];else throw new Error("Unknown node type in node creation");return e.map(r=>(r[jt]||Xt.rebuild(r),r=r.proxyOf,r.parent&&r.parent.removeChild(r),r[zt]&&Jt(r),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(o){throw t.addToError(o)}return r!==!1&&t.walk&&(r=t.walk(e)),r})}walkAtRules(e,t){return t?e instanceof RegExp?this.walk((s,r)=>{if(s.type==="atrule"&&e.test(s.name))return t(s,r)}):this.walk((s,r)=>{if(s.type==="atrule"&&s.name===e)return t(s,r)}):(t=e,this.walk((s,r)=>{if(s.type==="atrule")return t(s,r)}))}walkComments(e){return this.walk((t,s)=>{if(t.type==="comment")return e(t,s)})}walkDecls(e,t){return t?e instanceof RegExp?this.walk((s,r)=>{if(s.type==="decl"&&e.test(s.prop))return t(s,r)}):this.walk((s,r)=>{if(s.type==="decl"&&s.prop===e)return t(s,r)}):(t=e,this.walk((s,r)=>{if(s.type==="decl")return t(s,r)}))}walkRules(e,t){return t?e instanceof RegExp?this.walk((s,r)=>{if(s.type==="rule"&&e.test(s.selector))return t(s,r)}):this.walk((s,r)=>{if(s.type==="rule"&&s.selector===e)return t(s,r)}):(t=e,this.walk((s,r)=>{if(s.type==="rule")return t(s,r)}))}get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}};M.registerParse=i=>{Vt=i};M.registerRule=i=>{He=i};M.registerAtRule=i=>{Je=i};M.registerRoot=i=>{Yt=i};var I=M;M.default=M;M.rebuild=i=>{i.type==="atrule"?Object.setPrototypeOf(i,Je.prototype):i.type==="rule"?Object.setPrototypeOf(i,He.prototype):i.type==="decl"?Object.setPrototypeOf(i,Gt.prototype):i.type==="comment"?Object.setPrototypeOf(i,Wt.prototype):i.type==="root"&&Object.setPrototypeOf(i,Yt.prototype),i[jt]=!0,i.nodes&&i.nodes.forEach(e=>{M.rebuild(e)})};let Sr=I,Zt,Qt,G=class extends Sr{constructor(e){super(S({type:"document"},e)),this.nodes||(this.nodes=[])}toResult(e={}){return new Zt(new Qt,this,e).stringify()}};G.registerLazyResult=i=>{Zt=i};G.registerProcessor=i=>{Qt=i};var Xe=G;G.default=G;let Ue=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 qt=Ue;Ue.default=Ue;let Nr=qt,Fe=class{constructor(e,t,s){this.processor=e,this.messages=[],this.root=t,this.opts=s,this.css=void 0,this.map=void 0}toString(){return this.css}warn(e,t={}){t.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);let s=new Nr(e,t);return this.messages.push(s),s}warnings(){return this.messages.filter(e=>e.type==="warning")}get content(){return this.css}};var Ze=Fe;Fe.default=Fe;const Oe="'".charCodeAt(0),xt='"'.charCodeAt(0),ee="\\".charCodeAt(0),vt="/".charCodeAt(0),te=`
37
- `.charCodeAt(0),z=" ".charCodeAt(0),se="\f".charCodeAt(0),re=" ".charCodeAt(0),ie="\r".charCodeAt(0),Or="[".charCodeAt(0),Dr="]".charCodeAt(0),Ar="(".charCodeAt(0),Mr=")".charCodeAt(0),_r="{".charCodeAt(0),Tr="}".charCodeAt(0),Ir=";".charCodeAt(0),Pr="*".charCodeAt(0),$r=":".charCodeAt(0),Lr="@".charCodeAt(0),ne=/[\t\n\f\r "#'()/;[\\\]{}]/g,oe=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,kr=/.[\r\n"'(/\\]/,St=/[\da-f]/i;var Ur=function(e,t={}){let s=e.css.valueOf(),r=t.ignoreErrors,o,n,l,a,u,c,p,m,E,R,T=s.length,f=0,_=[],b=[];function C(){return f}function v(P){throw e.error("Unclosed "+P,f)}function be(){return b.length===0&&f>=T}function Is(P){if(b.length)return b.pop();if(f>=T)return;let Ce=P?P.ignoreUnclosed:!1;switch(o=s.charCodeAt(f),o){case te:case z:case re:case ie:case se:{n=f;do n+=1,o=s.charCodeAt(n);while(o===z||o===te||o===re||o===ie||o===se);R=["space",s.slice(f,n)],f=n-1;break}case Or:case Dr:case _r:case Tr:case $r:case Ir:case Mr:{let at=String.fromCharCode(o);R=[at,at,f];break}case Ar:{if(m=_.length?_.pop()[1]:"",E=s.charCodeAt(f+1),m==="url"&&E!==Oe&&E!==xt&&E!==z&&E!==te&&E!==re&&E!==se&&E!==ie){n=f;do{if(c=!1,n=s.indexOf(")",n+1),n===-1)if(r||Ce){n=f;break}else v("bracket");for(p=n;s.charCodeAt(p-1)===ee;)p-=1,c=!c}while(c);R=["brackets",s.slice(f,n+1),f,n],f=n}else n=s.indexOf(")",f+1),a=s.slice(f,n+1),n===-1||kr.test(a)?R=["(","(",f]:(R=["brackets",a,f,n],f=n);break}case Oe:case xt:{l=o===Oe?"'":'"',n=f;do{if(c=!1,n=s.indexOf(l,n+1),n===-1)if(r||Ce){n=f+1;break}else v("string");for(p=n;s.charCodeAt(p-1)===ee;)p-=1,c=!c}while(c);R=["string",s.slice(f,n+1),f,n],f=n;break}case Lr:{ne.lastIndex=f+1,ne.test(s),ne.lastIndex===0?n=s.length-1:n=ne.lastIndex-2,R=["at-word",s.slice(f,n+1),f,n],f=n;break}case ee:{for(n=f,u=!0;s.charCodeAt(n+1)===ee;)n+=1,u=!u;if(o=s.charCodeAt(n+1),u&&o!==vt&&o!==z&&o!==te&&o!==re&&o!==ie&&o!==se&&(n+=1,St.test(s.charAt(n)))){for(;St.test(s.charAt(n+1));)n+=1;s.charCodeAt(n+1)===z&&(n+=1)}R=["word",s.slice(f,n+1),f,n],f=n;break}default:{o===vt&&s.charCodeAt(f+1)===Pr?(n=s.indexOf("*/",f+2)+1,n===0&&(r||Ce?n=s.length:v("comment")),R=["comment",s.slice(f,n+1),f,n],f=n):(oe.lastIndex=f+1,oe.test(s),oe.lastIndex===0?n=s.length-1:n=oe.lastIndex-2,R=["word",s.slice(f,n+1),f,n],_.push(R),f=n);break}}return f++,R}function Ps(P){b.push(P)}return{back:Ps,endOfFile:be,nextToken:Is,position:C}};let Kt=I,he=class extends Kt{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;Kt.registerAtRule(he);let es=I,ts,ss,L=class extends es{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 o of r)o.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 ts(new ss,this,e).stringify()}};L.registerLazyResult=i=>{ts=i};L.registerProcessor=i=>{ss=i};var J=L;L.default=L;es.registerRoot(L);let W={comma(i){return W.split(i,[","],!0)},space(i){let e=[" ",`
38
- `," "];return W.split(i,e)},split(i,e,t){let s=[],r="",o=!1,n=0,l=!1,a="",u=!1;for(let c of i)u?u=!1:c==="\\"?u=!0:l?c===a&&(l=!1):c==='"'||c==="'"?(l=!0,a=c):c==="("?n+=1:c===")"?n>0&&(n-=1):n===0&&e.includes(c)&&(o=!0),o?(r!==""&&s.push(r.trim()),r="",o=!1):r+=c;return(t||r!=="")&&s.push(r.trim()),s}};var rs=W;W.default=W;let is=I,Fr=rs,fe=class extends is{constructor(e){super(e),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return Fr.comma(this.selector)}set selectors(e){let t=this.selector?this.selector.match(/,\s*/):null,s=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(s)}};var qe=fe;fe.default=fe;is.registerRule(fe);let Br=we,zr=Ur,jr=Ee,Gr=Qe,Wr=J,Nt=qe;const Ot={empty:!0,space:!0};function Vr(i){for(let e=i.length-1;e>=0;e--){let t=i[e],s=t[3]||t[2];if(s)return s}}let Yr=class{constructor(e){this.input=e,this.root=new Wr,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 Gr;t.name=e[1].slice(1),t.name===""&&this.unnamedAtrule(t,e),this.init(t,e[2]);let s,r,o,n=!1,l=!1,a=[],u=[];for(;!this.tokenizer.endOfFile();){if(e=this.tokenizer.nextToken(),s=e[0],s==="("||s==="["?u.push(s==="("?")":"]"):s==="{"&&u.length>0?u.push("}"):s===u[u.length-1]&&u.pop(),u.length===0)if(s===";"){t.source.end=this.getPosition(e[2]),t.source.end.offset++,this.semicolon=!0;break}else if(s==="{"){l=!0;break}else if(s==="}"){if(a.length>0){for(o=a.length-1,r=a[o];r&&r[0]==="space";)r=a[--o];r&&(t.source.end=this.getPosition(r[3]||r[2]),t.source.end.offset++)}this.end(e);break}else a.push(e);else a.push(e);if(this.tokenizer.endOfFile()){n=!0;break}}t.raws.between=this.spacesAndCommentsFromEnd(a),a.length?(t.raws.afterName=this.spacesAndCommentsFromStart(a),this.raw(t,"params",a),n&&(e=a[a.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=""),l&&(t.nodes=[],this.current=t)}checkMissedSemicolon(e){let t=this.colon(e);if(t===!1)return;let s=0,r;for(let o=t-1;o>=0&&(r=e[o],!(r[0]!=="space"&&(s+=1,s===2)));o--);throw this.input.error("Missed semicolon",r[0]==="word"?r[3]+1:r[2])}colon(e){let t=0,s,r,o;for(let[n,l]of e.entries()){if(s=l,r=s[0],r==="("&&(t+=1),r===")"&&(t-=1),t===0&&r===":")if(!o)this.doubleColon(s);else{if(o[0]==="word"&&o[1]==="progid")continue;return n}o=s}return!1}comment(e){let t=new jr;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;let s=e[1].slice(2,-2);if(/^\s*$/.test(s))t.text="",t.raws.left=s,t.raws.right="";else{let r=s.match(/^(\s*)([^]*\S)(\s*)$/);t.text=r[2],t.raws.left=r[1],t.raws.right=r[3]}}createTokenizer(){this.tokenizer=zr(this.input)}decl(e,t){let s=new Br;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]||Vr(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 u=e[0][0];if(u===":"||u==="space"||u==="comment")break;s.prop+=e.shift()[1]}s.raws.between="";let o;for(;e.length;)if(o=e.shift(),o[0]===":"){s.raws.between+=o[1];break}else o[0]==="word"&&/\w/.test(o[1])&&this.unknownWord([o]),s.raws.between+=o[1];(s.prop[0]==="_"||s.prop[0]==="*")&&(s.raws.before+=s.prop[0],s.prop=s.prop.slice(1));let n=[],l;for(;e.length&&(l=e[0][0],!(l!=="space"&&l!=="comment"));)n.push(e.shift());this.precheckMissedSemicolon(e);for(let u=e.length-1;u>=0;u--){if(o=e[u],o[1].toLowerCase()==="!important"){s.important=!0;let c=this.stringFrom(e,u);c=this.spacesFromEnd(e)+c,c!==" !important"&&(s.raws.important=c);break}else if(o[1].toLowerCase()==="important"){let c=e.slice(0),p="";for(let m=u;m>0;m--){let E=c[m][0];if(p.trim().indexOf("!")===0&&E!=="space")break;p=c.pop()[1]+p}p.trim().indexOf("!")===0&&(s.important=!0,s.raws.important=p,e=c)}if(o[0]!=="space"&&o[0]!=="comment")break}e.some(u=>u[0]!=="space"&&u[0]!=="comment")&&(s.raws.between+=n.map(u=>u[1]).join(""),n=[]),this.raw(s,"value",n.concat(e),t),s.value.includes(":")&&!t&&this.checkMissedSemicolon(e)}doubleColon(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})}emptyRule(e){let t=new Nt;this.init(t,e[2]),t.selector="",t.raws.between="",this.current=t}end(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(e){if(this.spaces+=e[1],this.current.nodes){let t=this.current.nodes[this.current.nodes.length-1];t&&t.type==="rule"&&!t.raws.ownSemicolon&&(t.raws.ownSemicolon=this.spaces,this.spaces="")}}getPosition(e){let t=this.input.fromOffset(e);return{column:t.col,line:t.line,offset:e}}init(e,t){this.current.push(e),e.source={input:this.input,start:this.getPosition(t)},e.raws.before=this.spaces,this.spaces="",e.type!=="comment"&&(this.semicolon=!1)}other(e){let t=!1,s=null,r=!1,o=null,n=[],l=e[1].startsWith("--"),a=[],u=e;for(;u;){if(s=u[0],a.push(u),s==="("||s==="[")o||(o=u),n.push(s==="("?")":"]");else if(l&&r&&s==="{")o||(o=u),n.push("}");else if(n.length===0)if(s===";")if(r){this.decl(a,l);return}else break;else if(s==="{"){this.rule(a);return}else if(s==="}"){this.tokenizer.back(a.pop()),t=!0;break}else s===":"&&(r=!0);else s===n[n.length-1]&&(n.pop(),n.length===0&&(o=null));u=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),n.length>0&&this.unclosedBracket(o),t&&r){if(!l)for(;a.length&&(u=a[a.length-1][0],!(u!=="space"&&u!=="comment"));)this.tokenizer.back(a.pop());this.decl(a,l)}else this.unknownWord(a)}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 o,n,l=s.length,a="",u=!0,c,p;for(let m=0;m<l;m+=1)o=s[m],n=o[0],n==="space"&&m===l-1&&!r?u=!1:n==="comment"?(p=s[m-1]?s[m-1][0]:"empty",c=s[m+1]?s[m+1][0]:"empty",!Ot[p]&&!Ot[c]?a.slice(-1)===","?u=!1:a+=o[1]:u=!1):a+=o[1];if(!u){let m=s.reduce((E,R)=>E+R[1],"");e.raws[t]={raw:m,value:a}}e[t]=a}rule(e){e.pop();let t=new Nt;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t}spacesAndCommentsFromEnd(e){let t,s="";for(;e.length&&(t=e[e.length-1][0],!(t!=="space"&&t!=="comment"));)s=e.pop()[1]+s;return s}spacesAndCommentsFromStart(e){let t,s="";for(;e.length&&(t=e[0][0],!(t!=="space"&&t!=="comment"));)s+=e.shift()[1];return s}spacesFromEnd(e){let t,s="";for(;e.length&&(t=e[e.length-1][0],t==="space");)s=e.pop()[1]+s;return s}stringFrom(e,t){let s="";for(let r=t;r<e.length;r++)s+=e[r][1];return e.splice(t,e.length-t),s}unclosedBlock(){let e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)}unclosedBracket(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})}unexpectedClose(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})}unknownWord(e){throw this.input.error("Unknown word",{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})}unnamedAtrule(e,t){throw this.input.error("At-rule without name",{offset:t[2]},{offset:t[2]+t[1].length})}};var Hr=Yr;let Jr=I,Xr=Hr,Zr=ye;function pe(i,e){let t=new Zr(i,e),s=new Xr(t);try{s.parse()}catch(r){throw r}return s.root}var Ke=pe;pe.default=pe;Jr.registerParse(pe);let{isClean:O,my:Qr}=H,qr=Bt,Kr=de,ei=I,ti=Xe;let Dt=Ze,si=Ke,ri=J;const ii={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},ni={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},oi={Once:!0,postcssPlugin:!0,prepare:!0},k=0;function j(i){return typeof i=="object"&&typeof i.then=="function"}function ns(i){let e=!1,t=ii[i.type];return i.type==="decl"?e=i.prop.toLowerCase():i.type==="atrule"&&(e=i.name.toLowerCase()),e&&i.append?[t,t+"-"+e,k,t+"Exit",t+"Exit-"+e]:e?[t,t+"-"+e,t+"Exit",t+"Exit-"+e]:i.append?[t,k,t+"Exit"]:[t,t+"Exit"]}function At(i){let e;return i.type==="document"?e=["Document",k,"DocumentExit"]:i.type==="root"?e=["Root",k,"RootExit"]:e=ns(i),{eventIndex:0,events:e,iterator:0,node:i,visitorIndex:0,visitors:[]}}function Be(i){return i[O]=!1,i.nodes&&i.nodes.forEach(e=>Be(e)),i}let ze={},U=class os{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=Be(t);else if(t instanceof os||t instanceof Dt)r=Be(t.root),t.map&&(typeof s.map=="undefined"&&(s.map={}),s.map.inline||(s.map.inline=!1),s.map.prev=t.map);else{let o=si;s.syntax&&(o=s.syntax.parse),s.parser&&(o=s.parser),o.parse&&(o=o.parse);try{r=o(t,s)}catch(n){this.processed=!0,this.error=n}r&&!r[Qr]&&ei.rebuild(r)}this.result=new Dt(e,r,s),this.helpers=B(S({},ze),{postcss:ze,result:this.result}),this.plugins=this.processor.plugins.map(o=>typeof o=="object"&&o.prepare?S(S({},o),o.prepare(this.result)):o)}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(!ni[s]&&/^[A-Z]/.test(s))throw new Error(`Unknown event ${s} in ${t.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!oi[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(j(s))try{await s}catch(r){throw this.handleError(r)}}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[O];){e[O]=!0;let t=[At(e)];for(;t.length>0;){let s=this.visitTick(t);if(j(s))try{await s}catch(r){let o=t[t.length-1].node;throw this.handleError(r,o)}}}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(o=>s(o,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 j(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=Kr;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);let r=new qr(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(j(t))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[O];)e[O]=!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 o;try{o=r(t,this.helpers)}catch(n){throw this.handleError(n,t.proxyOf)}if(t.type!=="root"&&t.type!=="document"&&!t.parent)return!0;if(j(o))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[n,l]=r[t.visitorIndex];t.visitorIndex+=1,t.visitorIndex===r.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=n;try{return l(s.toProxy(),this.helpers)}catch(a){throw this.handleError(a,s)}}if(t.iterator!==0){let n=t.iterator,l;for(;l=s.nodes[s.indexes[n]];)if(s.indexes[n]+=1,!l[O]){l[O]=!0,e.push(At(l));return}t.iterator=0,delete s.indexes[n]}let o=t.events;for(;t.eventIndex<o.length;){let n=o[t.eventIndex];if(t.eventIndex+=1,n===k){s.nodes&&s.nodes.length&&(s[O]=!0,t.iterator=s.getIterator());return}else if(this.listeners[n]){t.visitors=this.listeners[n];return}}e.pop()}walkSync(e){e[O]=!0;let t=ns(e);for(let s of t)if(s===k)e.nodes&&e.each(r=>{r[O]||this.walkSync(r)});else{let r=this.listeners[s];if(r&&this.visitSync(r,e.toProxy()))return}}warnings(){return this.sync().warnings()}get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}};U.registerPostcss=i=>{ze=i};var ls=U;U.default=U;ri.registerLazyResult(U);ti.registerLazyResult(U);let li=Bt,ai=de;let ui=Ke;const ci=Ze;let je=class{constructor(e,t,s){t=t.toString(),this.stringified=!1,this._processor=e,this._css=t,this._opts=s,this._map=void 0;let r,o=ai;this.result=new ci(this._processor,r,this._opts),this.result.css=t;let n=this;Object.defineProperty(this.result,"root",{get(){return n.root}});let l=new li(o,r,this._opts,t);if(l.isMap()){let[a,u]=l.generate();a&&(this.result.css=a),u&&(this.result.map=u)}else l.clearAnnotation(),this.result.css=l.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}sync(){if(this.error)throw this.error;return this.result}then(e,t){return this.async().then(e,t)}toString(){return this._css}warnings(){return[]}get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let e,t=ui;try{e=t(this._css,this._opts)}catch(s){this.error=s}if(this.error)throw this.error;return this._root=e,e}get[Symbol.toStringTag](){return"NoWorkResult"}};var hi=je;je.default=je;let fi=hi,pi=ls,mi=Xe,di=J,V=class{constructor(e=[]){this.version="8.4.38",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 fi(this,e,t):new pi(this,e,t)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}};var gi=V;V.default=V;di.registerProcessor(V);mi.registerProcessor(V);let wi=we,yi=$t,Ei=Ee,Ri=Qe,bi=ye,Ci=J,xi=qe;function Y(i,e){if(Array.isArray(i))return i.map(n=>Y(n));let r=i,{inputs:t}=r,s=xe(r,["inputs"]);if(t){e=[];for(let n of t){let l=B(S({},n),{__proto__:bi.prototype});l.map&&(l.map=B(S({},l.map),{__proto__:yi.prototype})),e.push(l)}}if(s.nodes&&(s.nodes=i.nodes.map(n=>Y(n,e))),s.source){let o=s.source,{inputId:n}=o,l=xe(o,["inputId"]);s.source=l,n!=null&&(s.source.input=e[n])}if(s.type==="root")return new Ci(s);if(s.type==="decl")return new wi(s);if(s.type==="rule")return new xi(s);if(s.type==="comment")return new Ei(s);if(s.type==="atrule")return new Ri(s);throw new Error("Unknown node type: "+i.type)}var vi=Y;Y.default=Y;let Si=Ye,as=we,Ni=ls,Oi=I,et=gi,Di=de,Ai=vi,us=Xe,Mi=qt,cs=Ee,hs=Qe,_i=Ze,Ti=ye,Ii=Ke,Pi=rs,fs=qe,ps=J,$i=ge;function g(...i){return i.length===1&&Array.isArray(i[0])&&(i=i[0]),new et(i)}g.plugin=function(e,t){let s=!1;function r(...n){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(),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:
39
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:
40
- https://www.w3ctech.com/topic/2226`));let l=t(...n);return l.postcssPlugin=e,l.postcssVersion=new et().version,l}let o;return Object.defineProperty(r,"postcss",{get(){return o||(o=r()),o}}),r.process=function(n,l,a){return g([r(a)]).process(n,l)},r};g.stringify=Di;g.parse=Ii;g.fromJSON=Ai;g.list=Pi;g.comment=i=>new cs(i);g.atRule=i=>new hs(i);g.decl=i=>new as(i);g.rule=i=>new fs(i);g.root=i=>new ps(i);g.document=i=>new us(i);g.CssSyntaxError=Si;g.Declaration=as;g.Container=Oi;g.Processor=et;g.Document=us;g.Comment=cs;g.Warning=Mi;g.AtRule=hs;g.Result=_i;g.Input=Ti;g.Rule=fs;g.Root=ps;g.Node=$i;Ni.registerPostcss(g);var Li=g;g.default=g;const y=Js(Li);y.stringify;y.fromJSON;y.plugin;y.parse;y.list;y.document;y.comment;y.atRule;y.rule;y.decl;y.root;y.CssSyntaxError;y.Declaration;y.Container;y.Processor;y.Document;y.Comment;y.Warning;y.AtRule;y.Result;y.Input;y.Rule;y.Root;y.Node;var d=(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))(d||{});function ki(i){const e={},t=/;(?![^(]*\))/g,s=/:(.+)/,r=/\/\*.*?\*\//g;return i.replace(r,"").split(t).forEach(function(o){if(o){const n=o.split(s);n.length>1&&(e[Ge(n[0].trim())]=n[1].trim())}}),e}function Mt(i){const e=[];for(const t in i){const s=i[t];if(typeof s!="string")continue;const r=zi(t);e.push(`${r}: ${s};`)}return e.join(" ")}const Ui=/-([a-z])/g,Fi=/^--[a-zA-Z0-9-]+$/,Ge=i=>Fi.test(i)?i:i.replace(Ui,(e,t)=>t?t.toUpperCase():""),Bi=/\B([A-Z])/g,zi=i=>i.replace(Bi,"-$1").toLowerCase();class A{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 A){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 Re extends A{constructor(...e){super(e),h(this,"nodeType",9),h(this,"nodeName","#document"),h(this,"compatMode","CSS1Compat"),h(this,"RRNodeType",d.Document),h(this,"textContent",null),this.ownerDocument=this}get documentElement(){return this.childNodes.find(e=>e.RRNodeType===d.Element&&e.tagName==="HTML")||null}get body(){var e;return((e=this.documentElement)==null?void 0:e.childNodes.find(t=>t.RRNodeType===d.Element&&t.tagName==="BODY"))||null}get head(){var e;return((e=this.documentElement)==null?void 0:e.childNodes.find(t=>t.RRNodeType===d.Element&&t.tagName==="HEAD"))||null}get implementation(){return this}get firstElementChild(){return this.documentElement}appendChild(e){const t=e.RRNodeType;if((t===d.Element||t===d.DocumentType)&&this.childNodes.some(r=>r.RRNodeType===t))throw new Error(`RRDomException: Failed to execute 'appendChild' on 'RRNode': Only one ${t===d.Element?"RRElement":"RRDoctype"} on RRDocument allowed.`);const s=nt(this,e);return s.parentElement=null,s}insertBefore(e,t){const s=e.RRNodeType;if((s===d.Element||s===d.DocumentType)&&this.childNodes.some(o=>o.RRNodeType===s))throw new Error(`RRDomException: Failed to execute 'insertBefore' on 'RRNode': Only one ${s===d.Element?"RRElement":"RRDoctype"} on RRDocument allowed.`);const r=ws(this,e,t);return r.parentElement=null,r}removeChild(e){return ys(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 Re}createDocumentType(e,t,s){const r=new tt(e,t,s);return r.ownerDocument=this,r}createElement(e){const t=new X(e);return t.ownerDocument=this,t}createElementNS(e,t){return this.createElement(t)}createTextNode(e){const t=new st(e);return t.ownerDocument=this,t}createComment(e){const t=new rt(e);return t.ownerDocument=this,t}createCDATASection(e){const t=new it(e);return t.ownerDocument=this,t}toString(){return"RRDocument"}}class tt extends A{constructor(e,t,s){super(),h(this,"nodeType",10),h(this,"RRNodeType",d.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 X extends A{constructor(e){super(),h(this,"nodeType",1),h(this,"RRNodeType",d.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 gs(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?ki(this.attributes.style):{},t=/\B([A-Z])/g;return e.setProperty=(s,r,o)=>{if(t.test(s))return;const n=Ge(s);r?e[n]=r:delete e[n],o==="important"&&(e[n]+=" !important"),this.attributes.style=Mt(e)},e.removeProperty=s=>{if(t.test(s))return"";const r=Ge(s),o=e[r]||"";return delete e[r],this.attributes.style=Mt(e),o},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 nt(this,e)}insertBefore(e,t){return ws(this,e,t)}removeChild(e){return ys(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 ms extends X{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 ds extends X{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 st extends A{constructor(e){super(),h(this,"nodeType",3),h(this,"nodeName","#text"),h(this,"RRNodeType",d.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 rt extends A{constructor(e){super(),h(this,"nodeType",8),h(this,"nodeName","#comment"),h(this,"RRNodeType",d.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 it extends A{constructor(e){super(),h(this,"nodeName","#cdata-section"),h(this,"nodeType",4),h(this,"RRNodeType",d.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 gs{constructor(e,t){if(h(this,"onChange"),h(this,"classes",[]),h(this,"add",(...s)=>{for(const r of s){const o=String(r);this.classes.indexOf(o)>=0||this.classes.push(o)}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 nt(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 ws(i,e,t){if(!t)return nt(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 ys(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 x=(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))(x||{});const We={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 D=null;function ot(i,e,t,s=e.mirror||e.ownerDocument.mirror){i=Gi(i,e,t,s),Es(i,e,t,s),Wi(i,e,t)}function Gi(i,e,t,s){var r;if(t.afterAppend&&!D&&(D=new WeakSet,setTimeout(()=>{D=null},0)),!lt(i,e)){const o=me(e,t.mirror,s);(r=i.parentNode)==null||r.replaceChild(o,i),i=o}switch(e.RRNodeType){case d.Document:{if(!$(i,e,t.mirror,s)){const o=s.getMeta(e);o&&(t.mirror.removeNodeFromMap(i),i.close(),i.open(),t.mirror.add(i,o),D==null||D.add(i))}break}case d.Element:{const o=i,n=e;switch(n.tagName){case"IFRAME":{const l=i.contentDocument;if(!l)break;ot(l,e.contentDocument,t,s);break}}n.shadowRoot&&(o.shadowRoot||o.attachShadow({mode:"open"}),Es(o.shadowRoot,n.shadowRoot,t,s)),Vi(o,n,s);break}}return i}function Wi(i,e,t){var s;switch(e.RRNodeType){case d.Document:{const r=e.scrollData;r&&t.applyScroll(r,!0);break}case d.Element:{const r=i,o=e;switch(o.scrollData&&t.applyScroll(o.scrollData,!0),o.inputData&&t.applyInput(o.inputData),o.tagName){case"AUDIO":case"VIDEO":{const n=i,l=o;l.paused!==void 0&&(l.paused?n.pause():n.play()),l.muted!==void 0&&(n.muted=l.muted),l.volume!==void 0&&(n.volume=l.volume),l.currentTime!==void 0&&(n.currentTime=l.currentTime),l.playbackRate!==void 0&&(n.playbackRate=l.playbackRate),l.loop!==void 0&&(n.loop=l.loop);break}case"CANVAS":{const n=e;if(n.rr_dataURL!==null){const l=document.createElement("img");l.onload=()=>{const a=r.getContext("2d");a&&a.drawImage(l,0,0,l.width,l.height)},l.src=n.rr_dataURL}n.canvasMutations.forEach(l=>t.applyCanvas(l.event,l.mutation,i));break}case"STYLE":{const n=r.sheet;n&&e.rules.forEach(l=>t.applyStyleSheetMutation(l,n));break}case"DIALOG":{const n=r,l=o,a=n.open,u=n.matches("dialog:modal"),c=l.open,p=l.isModal,m=u!==p,E=a!==c;if((m||a&&E)&&n.close(),c&&(E||m))try{p?n.showModal():n.show()}catch(R){console.warn(R)}break}}break}case d.Text:case d.Comment:case d.CDATA:{i.textContent!==e.data&&(i.textContent=e.data);break}}D!=null&&D.has(i)&&(D.delete(i),(s=t.afterAppend)==null||s.call(t,i,t.mirror.getId(i)))}function Vi(i,e,t){const s=i.attributes,r=e.attributes;for(const o in r){const n=r[o],l=t.getMeta(e);if(l!=null&&l.isSVG&&We[o])i.setAttributeNS(We[o],o,n);else if(e.tagName==="CANVAS"&&o==="rr_dataURL"){const a=document.createElement("img");a.src=n,a.onload=()=>{const u=i.getContext("2d");u&&u.drawImage(a,0,0,a.width,a.height)}}else{if(e.tagName==="IFRAME"&&o==="srcdoc")continue;try{i.setAttribute(o,n)}catch(a){console.warn(a)}}}for(const{name:o}of Array.from(s))o in r||i.removeAttribute(o);e.scrollLeft&&(i.scrollLeft=e.scrollLeft),e.scrollTop&&(i.scrollTop=e.scrollTop)}function Es(i,e,t,s){const r=Array.from(i.childNodes),o=e.childNodes;if(r.length===0&&o.length===0)return;let n=0,l=r.length-1,a=0,u=o.length-1,c=r[n],p=r[l],m=o[a],E=o[u],R,T;for(;n<=l&&a<=u;)if(c===void 0)c=r[++n];else if(p===void 0)p=r[--l];else if($(c,m,t.mirror,s))c=r[++n],m=o[++a];else if($(p,E,t.mirror,s))p=r[--l],E=o[--u];else if($(c,E,t.mirror,s)){try{i.insertBefore(c,p.nextSibling)}catch(b){console.warn(b)}c=r[++n],E=o[--u]}else if($(p,m,t.mirror,s)){try{i.insertBefore(p,c)}catch(b){console.warn(b)}p=r[--l],m=o[++a]}else{if(!R){R={};for(let C=n;C<=l;C++){const v=r[C];v&&t.mirror.hasNode(v)&&(R[t.mirror.getId(v)]=C)}}T=R[s.getId(m)];const b=r[T];if(T!==void 0&&b&&$(b,m,t.mirror,s)){try{i.insertBefore(b,c)}catch(C){console.warn(C)}r[T]=void 0}else{const C=me(m,t.mirror,s);i.nodeName==="#document"&&c&&(C.nodeType===C.DOCUMENT_TYPE_NODE&&c.nodeType===c.DOCUMENT_TYPE_NODE||C.nodeType===C.ELEMENT_NODE&&c.nodeType===c.ELEMENT_NODE)&&(i.removeChild(c),t.mirror.removeNodeFromMap(c),c=r[++n]);try{i.insertBefore(C,c||null)}catch(v){console.warn(v)}}m=o[++a]}if(n>l){const b=o[u+1];let C=null;for(b&&(C=t.mirror.getNode(s.getId(b)));a<=u;++a){const v=me(o[a],t.mirror,s);try{i.insertBefore(v,C)}catch(be){console.warn(be)}}}else if(a>u)for(;n<=l;n++){const b=r[n];if(!(!b||b.parentNode!==i))try{i.removeChild(b),t.mirror.removeNodeFromMap(b)}catch(C){console.warn(C)}}let f=i.firstChild,_=e.firstChild;for(;f!==null&&_!==null;)ot(f,_,t,s),f=f.nextSibling,_=_.nextSibling}function me(i,e,t){const s=t.getId(i),r=t.getMeta(i);let o=null;if(s>-1&&(o=e.getNode(s)),o!==null&&lt(o,i))return o;switch(i.RRNodeType){case d.Document:o=new Document;break;case d.DocumentType:o=document.implementation.createDocumentType(i.name,i.publicId,i.systemId);break;case d.Element:{let n=i.tagName.toLowerCase();n=ji[n]||n,r&&"isSVG"in r&&(r!=null&&r.isSVG)?o=document.createElementNS(We.svg,n):o=document.createElement(i.tagName);break}case d.Text:o=document.createTextNode(i.data);break;case d.Comment:o=document.createComment(i.data);break;case d.CDATA:o=document.createCDATASection(i.data);break}r&&e.add(o,S({},r));try{D==null||D.add(o)}catch(n){}return o}function lt(i,e){return i.nodeType!==e.nodeType?!1:i.nodeType!==i.ELEMENT_NODE||i.tagName.toUpperCase()===e.tagName}function $(i,e,t,s){const r=t.getId(i),o=s.getId(e);return r===-1||r!==o?!1:lt(i,e)}class F extends Re{constructor(e){super(),h(this,"UNSERIALIZED_STARTING_ID",-2),h(this,"_unserializedId",this.UNSERIALIZED_STARTING_ID),h(this,"mirror",Ms()),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 Rs(e,t,s);return r.ownerDocument=this,r}createElement(e){const t=e.toUpperCase();let s;switch(t){case"AUDIO":case"VIDEO":s=new bs(t);break;case"IFRAME":s=new Ss(t,this.mirror);break;case"CANVAS":s=new xs(t);break;case"STYLE":s=new vs(t);break;case"DIALOG":s=new Cs(t);break;default:s=new Z(t);break}return s.ownerDocument=this,s}createComment(e){const t=new Os(e);return t.ownerDocument=this,t}createCDATASection(e){const t=new Ds(e);return t.ownerDocument=this,t}createTextNode(e){const t=new Ns(e);return t.ownerDocument=this,t}destroyTree(){this.firstChild=null,this.lastChild=null,this.mirror.reset()}open(){super.open(),this._unserializedId=this.UNSERIALIZED_STARTING_ID}}const Rs=tt;class Z extends X{constructor(){super(...arguments),h(this,"inputData",null),h(this,"scrollData",null)}}class bs extends ms{}class Cs extends ds{}class xs extends Z{constructor(){super(...arguments),h(this,"rr_dataURL",null),h(this,"canvasMutations",[])}getContext(){return null}}class vs extends Z{constructor(){super(...arguments),h(this,"rules",[])}}class Ss extends Z{constructor(e,t){super(e),h(this,"contentDocument",new F),this.contentDocument.mirror=t}}const Ns=st,Os=rt,Ds=it;function Yi(i){return i instanceof HTMLFormElement?"FORM":i.tagName.toUpperCase()}function As(i,e,t,s){let r;switch(i.nodeType){case x.DOCUMENT_NODE:s&&s.nodeName==="IFRAME"?r=s.contentDocument:(r=e,r.compatMode=i.compatMode);break;case x.DOCUMENT_TYPE_NODE:{const n=i;r=e.createDocumentType(n.name,n.publicId,n.systemId);break}case x.ELEMENT_NODE:{const n=i,l=Yi(n);r=e.createElement(l);const a=r;for(const{name:u,value:c}of Array.from(n.attributes))a.attributes[u]=c;n.scrollLeft&&(a.scrollLeft=n.scrollLeft),n.scrollTop&&(a.scrollTop=n.scrollTop);break}case x.TEXT_NODE:r=e.createTextNode(i.textContent||"");break;case x.CDATA_SECTION_NODE:r=e.createCDATASection(i.data);break;case x.COMMENT_NODE:r=e.createComment(i.textContent||"");break;case x.DOCUMENT_FRAGMENT_NODE:r=s.attachShadow({mode:"open"});break;default:return null}let o=t.getMeta(i);return e instanceof F&&(o||(o=Ts(r,e.unserializedId),t.add(i,o)),e.mirror.add(r,S({},o))),r}function Hi(i,e=Gs(),t=new F){function s(r,o){const n=As(r,t,e,o);if(n!==null)if((o==null?void 0:o.nodeName)!=="IFRAME"&&r.nodeType!==x.DOCUMENT_FRAGMENT_NODE&&(o==null||o.appendChild(n),n.parentNode=o,n.parentElement=o),r.nodeName==="IFRAME"){const l=r.contentDocument;l&&s(l,n)}else(r.nodeType===x.DOCUMENT_NODE||r.nodeType===x.ELEMENT_NODE||r.nodeType===x.DOCUMENT_FRAGMENT_NODE)&&(r.nodeType===x.ELEMENT_NODE&&r.shadowRoot&&s(r.shadowRoot,n),r.childNodes.forEach(l=>s(l,n)))}return s(i,null),t}function Ms(){return new _s}class _s{constructor(){h(this,"idNodeMap",new Map),h(this,"nodeMetaMap",new WeakMap)}getId(e){var t;if(!e)return-1;const s=(t=this.getMeta(e))==null?void 0:t.id;return s!=null?s:-1}getNode(e){return this.idNodeMap.get(e)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(e){return this.nodeMetaMap.get(e)||null}removeNodeFromMap(e){const t=this.getId(e);this.idNodeMap.delete(t),e.childNodes&&e.childNodes.forEach(s=>this.removeNodeFromMap(s))}has(e){return this.idNodeMap.has(e)}hasNode(e){return this.nodeMetaMap.has(e)}add(e,t){const s=t.id;this.idNodeMap.set(s,e),this.nodeMetaMap.set(e,t)}replace(e,t){const s=this.getNode(e);if(s){const r=this.nodeMetaMap.get(s);r&&this.nodeMetaMap.set(t,r)}this.idNodeMap.set(e,t)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function Ts(i,e){switch(i.RRNodeType){case d.Document:return{id:e,type:i.RRNodeType,childNodes:[]};case d.DocumentType:{const t=i;return{id:e,type:i.RRNodeType,name:t.name,publicId:t.publicId,systemId:t.systemId}}case d.Element:return{id:e,type:i.RRNodeType,tagName:i.tagName.toLowerCase(),attributes:{},childNodes:[]};case d.Text:return{id:e,type:i.RRNodeType,textContent:i.textContent||""};case d.Comment:return{id:e,type:i.RRNodeType,textContent:i.textContent||""};case d.CDATA:return{id:e,type:i.RRNodeType,textContent:""}}}function Ji(i,e){return ue(i,e,"")}function ue(i,e,t){let s=`${t}${e.getId(i)} ${i.toString()}
41
- `;if(i.RRNodeType===d.Element){const r=i;r.shadowRoot&&(s+=ue(r.shadowRoot,e,t+" "))}for(const r of i.childNodes)s+=ue(r,e,t+" ");return i.nodeName==="IFRAME"&&(s+=ue(i.contentDocument,e,t+" ")),s}exports.BaseRRCDATASection=it;exports.BaseRRComment=rt;exports.BaseRRDialogElement=ds;exports.BaseRRDocument=Re;exports.BaseRRDocumentType=tt;exports.BaseRRElement=X;exports.BaseRRMediaElement=ms;exports.BaseRRNode=A;exports.BaseRRText=st;exports.ClassList=gs;exports.Mirror=_s;exports.NodeType=x;exports.RRCDATASection=Ds;exports.RRCanvasElement=xs;exports.RRComment=Os;exports.RRDialogElement=Cs;exports.RRDocument=F;exports.RRDocumentType=Rs;exports.RRElement=Z;exports.RRIFrameElement=Ss;exports.RRMediaElement=bs;exports.RRNode=A;exports.RRStyleElement=vs;exports.RRText=Ns;exports.buildFromDom=Hi;exports.buildFromNode=As;exports.createMirror=Ms;exports.createOrGetNode=me;exports.diff=ot;exports.getDefaultSN=Ts;exports.printRRDom=Ji;
42
- if (typeof module.exports == "object" && typeof exports == "object") {
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;
32
+ ;if (typeof module.exports == "object" && typeof exports == "object") {
43
33
  var __cp = (to, from, except, desc) => {
44
34
  if ((from && typeof from === "object") || typeof from === "function") {
45
35
  for (let key of Object.getOwnPropertyNames(from)) {