@posthog/rrweb-snapshot 0.0.37 → 0.0.39

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,12 +1,12 @@
1
1
  (function (g, f) {if ("object" == typeof exports && "object" == typeof module) {module.exports = f();} else if ("function" == typeof define && define.amd) {define("rrwebSnapshotReplay", [], f);} else if ("object" == typeof exports) {exports["rrwebSnapshotReplay"] = f();} else {g["rrwebSnapshotReplay"] = f();}}(typeof self !== 'undefined' ? self : typeof globalThis !== 'undefined' ? globalThis : this, () => {var exports = {};var module = { exports };
2
- "use strict";var dr=Object.defineProperty,mr=Object.defineProperties;var gr=Object.getOwnPropertyDescriptors;var Z=Object.getOwnPropertySymbols;var st=Object.prototype.hasOwnProperty,nt=Object.prototype.propertyIsEnumerable;var it=(e,s,p)=>s in e?dr(e,s,{enumerable:!0,configurable:!0,writable:!0,value:p}):e[s]=p,L=(e,s)=>{for(var p in s||(s={}))st.call(s,p)&&it(e,p,s[p]);if(Z)for(var p of Z(s))nt.call(s,p)&&it(e,p,s[p]);return e},j=(e,s)=>mr(e,gr(s));var ae=(e,s)=>{var p={};for(var u in e)st.call(e,u)&&s.indexOf(u)<0&&(p[u]=e[u]);if(e!=null&&Z)for(var u of Z(e))s.indexOf(u)<0&&nt.call(e,u)&&(p[u]=e[u]);return p};var yr=(e,s)=>()=>(s||e((s={exports:{}}).exports,s),s.exports);var bt=yr(_=>{"use strict";var wr=Object.defineProperty,br=(e,s,p)=>s in e?wr(e,s,{enumerable:!0,configurable:!0,writable:!0,value:p}):e[s]=p,ot=(e,s,p)=>br(e,typeof s!="symbol"?s+"":s,p),z=(e=>(e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment",e))(z||{}),lt={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},at={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},Y={};function Sr(e){var s,p;let u=(p=(s=globalThis==null?void 0:globalThis.Zone)==null?void 0:s.__symbol__)==null?void 0:p.call(s,e);if(u&&globalThis[u])return globalThis[u]}function pe(e){if(Y[e])return Y[e];let s=Sr(e)||globalThis[e],p=s.prototype,u=e in lt?lt[e]:void 0,l=!!(u&&u.every(f=>{var m,o;return!!((o=(m=Object.getOwnPropertyDescriptor(p,f))==null?void 0:m.get)!=null&&o.toString().includes("[native code]"))})),c=e in at?at[e]:void 0,a=!!(c&&c.every(f=>{var m;return typeof p[f]=="function"&&((m=p[f])==null?void 0:m.toString().includes("[native code]"))}));if(l&&a)return Y[e]=s.prototype,s.prototype;try{let f=document.createElement("iframe");document.body.appendChild(f);let m=f.contentWindow;if(!m)return s.prototype;let o=m[e].prototype;return document.body.removeChild(f),o?Y[e]=o:p}catch(f){return p}}var ue={};function q(e,s,p){var u;let l=`${e}.${String(p)}`;if(ue[l])return ue[l].call(s);let c=pe(e),a=(u=Object.getOwnPropertyDescriptor(c,p))==null?void 0:u.get;return a?(ue[l]=a,a.call(s)):s[p]}var fe={};function ct(e,s,p){let u=`${e}.${String(p)}`;if(fe[u])return fe[u].bind(s);let c=pe(e)[p];return typeof c!="function"?s[p]:(fe[u]=c,c.bind(s))}function Cr(e){return q("Node",e,"childNodes")}function xr(e){return q("Node",e,"parentNode")}function vr(e){return q("Node",e,"parentElement")}function Rr(e){return q("Node",e,"textContent")}function Er(e,s){return ct("Node",e,"contains")(s)}function Or(e){return ct("Node",e,"getRootNode")()}function Pr(e){return!e||!("host"in e)?null:q("ShadowRoot",e,"host")}function Ar(e){return e.styleSheets}function Mr(e){return!e||!("shadowRoot"in e)?null:q("Element",e,"shadowRoot")}function Nr(e,s){return q("Element",e,"querySelector")(s)}function Ir(e,s){return q("Element",e,"querySelectorAll")(s)}function _r(){return pe("MutationObserver").constructor}function Dr(e,s,p){try{if(!(s in e))return()=>{};let u=e[s],l=p(u);return typeof l=="function"&&(l.prototype=l.prototype||{},Object.defineProperties(l,{__rrweb_original__:{enumerable:!1,value:u}})),e[s]=l,()=>{e[s]=u}}catch(u){return()=>{}}}var ce={childNodes:Cr,parentNode:xr,parentElement:vr,textContent:Rr,contains:Er,getRootNode:Or,host:Pr,styleSheets:Ar,shadowRoot:Mr,querySelector:Nr,querySelectorAll:Ir,mutationObserver:_r,patch:Dr};function Tr(e){return e.nodeType===e.ELEMENT_NODE}function kr(e){let s=e&&"host"in e&&"mode"in e&&ce.host(e)||null;return!!(s&&"shadowRoot"in s&&ce.shadowRoot(s)===e)}function Lr(e){return Object.prototype.toString.call(e)==="[object ShadowRoot]"}function Br(e){return e.includes(" background-clip: text;")&&!e.includes(" -webkit-background-clip: text;")&&(e=e.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;")),e}function ht(e){let{cssText:s}=e;if(s.split('"').length<3)return s;let p=["@import",`url(${JSON.stringify(e.href)})`];return e.layerName===""?p.push("layer"):e.layerName&&p.push(`layer(${e.layerName})`),e.supportsText&&p.push(`supports(${e.supportsText})`),e.media.length&&p.push(e.media.mediaText),p.join(" ")+";"}function pt(e){try{let s=e.rules||e.cssRules;if(!s)return null;let p=e.href;!p&&e.ownerNode&&(p=e.ownerNode.baseURI);let u=Array.from(s,l=>dt(l,p)).join("");return Br(u)}catch(s){return null}}function dt(e,s){var p;if(gt(e)){let u;try{u=pt(e.styleSheet)||ht(e)}catch(l){u=e.cssText}try{if(u&&((p=e.styleSheet)!=null&&p.href))return he(u,e.styleSheet.href)}catch(l){}return u}else{let u=e.cssText;return yt(e)&&e.selectorText.includes(":")&&(u=mt(u)),s?he(u,s):u}}function mt(e){let s=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return e.replace(s,"$1\\$2")}function gt(e){return"styleSheet"in e}function yt(e){return"selectorText"in e}var Q=class{constructor(){ot(this,"idNodeMap",new Map),ot(this,"nodeMetaMap",new WeakMap)}getId(s){var p;if(!s)return-1;let u=(p=this.getMeta(s))==null?void 0:p.id;return u!=null?u:-1}getNode(s){return this.idNodeMap.get(s)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(s){return this.nodeMetaMap.get(s)||null}removeNodeFromMap(s){let p=this.getId(s);this.idNodeMap.delete(p),s.childNodes&&s.childNodes.forEach(u=>this.removeNodeFromMap(u))}has(s){return this.idNodeMap.has(s)}hasNode(s){return this.nodeMetaMap.has(s)}add(s,p){let u=p.id;this.idNodeMap.set(u,s),this.nodeMetaMap.set(s,p)}replace(s,p){let u=this.getNode(s);if(u){let l=this.nodeMetaMap.get(u);l&&this.nodeMetaMap.set(p,l)}this.idNodeMap.set(s,p)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}};function Ur(){return new Q}function zr({element:e,maskInputOptions:s,tagName:p,type:u,value:l,maskInputFn:c}){let a=l||"",f=u&&de(u);return(s[p.toLowerCase()]||f&&s[f])&&(c?a=c(a,e):a="*".repeat(a.length)),a}function de(e){return e.toLowerCase()}var ut="__rrweb_original__";function qr(e){let s=e.getContext("2d");if(!s)return!0;let p=50;for(let u=0;u<e.width;u+=p)for(let l=0;l<e.height;l+=p){let c=s.getImageData,a=ut in c?c[ut]:c;if(new Uint32Array(a.call(s,u,l,Math.min(p,e.width-u),Math.min(p,e.height-l)).data.buffer).some(m=>m!==0))return!1}return!0}function Fr(e,s){return!e||!s||e.type!==s.type?!1:e.type===z.Document?e.compatMode===s.compatMode:e.type===z.DocumentType?e.name===s.name&&e.publicId===s.publicId&&e.systemId===s.systemId:e.type===z.Comment||e.type===z.Text||e.type===z.CDATA?e.textContent===s.textContent:e.type===z.Element?e.tagName===s.tagName&&JSON.stringify(e.attributes)===JSON.stringify(s.attributes)&&e.isSVG===s.isSVG&&e.needBlock===s.needBlock:!1}function Wr(e){let s=e.type;return e.hasAttribute("data-rr-is-password")?"password":s?de(s):null}function $r(e,s){var c;let p;try{p=new URL(e,s!=null?s:window.location.href)}catch(a){return null}let u=/\.([0-9a-z]+)(?:$)/i,l=p.pathname.match(u);return(c=l==null?void 0:l[1])!=null?c:null}function jr(e){let s="";return e.indexOf("//")>-1?s=e.split("/").slice(0,3).join("/"):s=e.split("/")[0],s=s.split("?")[0],s}var Vr=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,Gr=/^(?:[a-z+]+:)?\/\//i,Hr=/^www\..*/i,Jr=/^(data:)([^,]*),(.*)/i;function he(e,s){return(e||"").replace(Vr,(p,u,l,c,a,f)=>{let m=l||a||f,o=u||c||"";if(!m)return p;if(Gr.test(m)||Hr.test(m))return`url(${o}${m}${o})`;if(Jr.test(m))return`url(${o}${m}${o})`;if(m[0]==="/")return`url(${o}${jr(s)+m}${o})`;let t=s.split("/"),n=m.split("/");t.pop();for(let i of n)i!=="."&&(i===".."?t.pop():t.push(i));return`url(${o}${t.join("/")}${o})`})}var Zr="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPgogIDxkZWZzPgogICAgPHBhdHRlcm4gaWQ9InN0cmlwZXMiIHBhdHRlcm5Vbml0cz0idXNlclNwYWNlT25Vc2UiIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiI+CiAgICAgIDxyZWN0IHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgZmlsbD0iYmxhY2siLz4KICAgICAgPHBhdGggZD0iTTggMEgxNkwwIDE2VjhMOCAwWiIgZmlsbD0iIzJEMkQyRCIvPgogICAgICA8cGF0aCBkPSJNMTYgOFYxNkg4TDE2IDhaIiBmaWxsPSIjMkQyRDJEIi8+CiAgICA8L3BhdHRlcm4+CiAgPC9kZWZzPgogIDxyZWN0IHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIGZpbGw9InVybCgjc3RyaXBlcykiLz4KPC9zdmc+Cg==",ft=4096;function Yr(e,s,p,u){if(!e.complete||e.naturalWidth===0||e.naturalWidth>ft||e.naturalHeight>ft)return s;try{let l=document.createElement("canvas");l.width=e.naturalWidth,l.height=e.naturalHeight;let c=l.getContext("2d");return c?(c.drawImage(e,0,0),l.toDataURL(p||"image/webp",u!=null?u:.4)):s}catch(l){return s}}function Qr(e,s){return!s||e.length<=s?e:Zr}var wt=(e=>(e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment",e))(wt||{});_.Mirror=Q;_.NodeType=wt;_.NodeType$1=z;_.absolutifyURLs=he;_.checkDataURLSize=Qr;_.createMirror=Ur;_.escapeImportStatement=ht;_.extractFileExtension=$r;_.fixSafariColons=mt;_.getInputType=Wr;_.index=ce;_.is2DCanvasBlank=qr;_.isCSSImportRule=gt;_.isCSSStyleRule=yt;_.isElement=Tr;_.isNativeShadowDom=Lr;_.isNodeMetaEqual=Fr;_.isShadowRoot=kr;_.maskInputValue=zr;_.recompressBase64Image=Yr;_.stringifyRule=dt;_.stringifyStylesheet=pt;_.toLowerCase=de});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var M=bt(),Kr=/(max|min)-device-(width|height)/,St=new RegExp(Kr.source,"g"),Xr={postcssPlugin:"postcss-custom-selectors",prepare(){return{postcssPlugin:"postcss-custom-selectors",AtRule:function(e){e.params.match(St)&&(e.params=e.params.replace(St,"$1-$2"))}}}},ei={postcssPlugin:"postcss-hover-classes",prepare:function(){let e=[];return{Rule:function(s){e.indexOf(s)===-1&&(e.push(s),s.selectors.forEach(function(p){p.includes(":hover")&&(s.selector+=`,
3
- `+p.replace(/:hover/g,".\\:hover"))}))}}}};function Xt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function ti(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var s=e.default;if(typeof s=="function"){var p=function u(){return this instanceof u?Reflect.construct(s,arguments,this.constructor):s.apply(this,arguments)};p.prototype=s.prototype}else p={};return Object.defineProperty(p,"__esModule",{value:!0}),Object.keys(e).forEach(function(u){var l=Object.getOwnPropertyDescriptor(e,u);Object.defineProperty(p,u,l.get?l:{enumerable:!0,get:function(){return e[u]}})}),p}var K={exports:{}},Ct;function ri(){if(Ct)return K.exports;Ct=1;var e=String,s=function(){return{isColorSupported:!1,reset:e,bold:e,dim:e,italic:e,underline:e,inverse:e,hidden:e,strikethrough:e,black:e,red:e,green:e,yellow:e,blue:e,magenta:e,cyan:e,white:e,gray:e,bgBlack:e,bgRed:e,bgGreen:e,bgYellow:e,bgBlue:e,bgMagenta:e,bgCyan:e,bgWhite:e,blackBright:e,redBright:e,greenBright:e,yellowBright:e,blueBright:e,magentaBright:e,cyanBright:e,whiteBright:e,bgBlackBright:e,bgRedBright:e,bgGreenBright:e,bgYellowBright:e,bgBlueBright:e,bgMagentaBright:e,bgCyanBright:e,bgWhiteBright:e}};return K.exports=s(),K.exports.createColors=s,K.exports}var ii={},si=Object.freeze(Object.defineProperty({__proto__:null,default:ii},Symbol.toStringTag,{value:"Module"})),k=ti(si),me,xt;function je(){if(xt)return me;xt=1;let e=ri(),s=k;class p extends Error{constructor(l,c,a,f,m,o){super(l),this.name="CssSyntaxError",this.reason=l,m&&(this.file=m),f&&(this.source=f),o&&(this.plugin=o),typeof c!="undefined"&&typeof a!="undefined"&&(typeof c=="number"?(this.line=c,this.column=a):(this.line=c.line,this.column=c.column,this.endLine=a.line,this.endColumn=a.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,p)}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(l){if(!this.source)return"";let c=this.source;l==null&&(l=e.isColorSupported);let a=r=>r,f=r=>r,m=r=>r;if(l){let{bold:r,gray:h,red:d}=e.createColors(!0);f=g=>r(d(g)),a=g=>h(g),s&&(m=g=>s(g))}let o=c.split(/\r?\n/),t=Math.max(this.line-3,0),n=Math.min(this.line+2,o.length),i=String(n).length;return o.slice(t,n).map((r,h)=>{let d=t+1+h,g=" "+(" "+d).slice(-i)+" | ";if(d===this.line){if(r.length>160){let w=20,C=Math.max(0,this.column-w),v=Math.max(this.column+w,this.endColumn+w),y=r.slice(C,v),b=a(g.replace(/\d/g," "))+r.slice(0,Math.min(this.column-1,w-1)).replace(/[^\t]/g," ");return f(">")+a(g)+m(y)+`
2
+ "use strict";var mr=Object.defineProperty,gr=Object.defineProperties;var yr=Object.getOwnPropertyDescriptors;var Z=Object.getOwnPropertySymbols;var st=Object.prototype.hasOwnProperty,nt=Object.prototype.propertyIsEnumerable;var it=(e,s,p)=>s in e?mr(e,s,{enumerable:!0,configurable:!0,writable:!0,value:p}):e[s]=p,L=(e,s)=>{for(var p in s||(s={}))st.call(s,p)&&it(e,p,s[p]);if(Z)for(var p of Z(s))nt.call(s,p)&&it(e,p,s[p]);return e},j=(e,s)=>gr(e,yr(s));var ue=(e,s)=>{var p={};for(var u in e)st.call(e,u)&&s.indexOf(u)<0&&(p[u]=e[u]);if(e!=null&&Z)for(var u of Z(e))s.indexOf(u)<0&&nt.call(e,u)&&(p[u]=e[u]);return p};var wr=(e,s)=>()=>(s||e((s={exports:{}}).exports,s),s.exports);var St=wr(_=>{"use strict";var br=Object.defineProperty,Sr=(e,s,p)=>s in e?br(e,s,{enumerable:!0,configurable:!0,writable:!0,value:p}):e[s]=p,ot=(e,s,p)=>Sr(e,typeof s!="symbol"?s+"":s,p),z=(e=>(e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment",e))(z||{}),lt={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},at={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},Y={};function Cr(e){var s,p;let u=(p=(s=globalThis==null?void 0:globalThis.Zone)==null?void 0:s.__symbol__)==null?void 0:p.call(s,e);if(u&&globalThis[u])return globalThis[u]}function pe(e){if(Y[e])return Y[e];let s=Cr(e)||globalThis[e],p=s.prototype,u=e in lt?lt[e]:void 0,l=!!(u&&u.every(f=>{var m,o;return!!((o=(m=Object.getOwnPropertyDescriptor(p,f))==null?void 0:m.get)!=null&&o.toString().includes("[native code]"))})),c=e in at?at[e]:void 0,a=!!(c&&c.every(f=>{var m;return typeof p[f]=="function"&&((m=p[f])==null?void 0:m.toString().includes("[native code]"))}));if(l&&a)return Y[e]=s.prototype,s.prototype;try{let f=document.createElement("iframe");document.body.appendChild(f);let m=f.contentWindow;if(!m)return s.prototype;let o=m[e].prototype;return document.body.removeChild(f),o?Y[e]=o:p}catch(f){return p}}var fe={};function F(e,s,p){var u;let l=`${e}.${String(p)}`;if(fe[l])return fe[l].call(s);let c=pe(e),a=(u=Object.getOwnPropertyDescriptor(c,p))==null?void 0:u.get;return a?(fe[l]=a,a.call(s)):s[p]}var ce={};function ct(e,s,p){let u=`${e}.${String(p)}`;if(ce[u])return ce[u].bind(s);let c=pe(e)[p];return typeof c!="function"?s[p]:(ce[u]=c,c.bind(s))}function xr(e){return F("Node",e,"childNodes")}function vr(e){return F("Node",e,"parentNode")}function Rr(e){return F("Node",e,"parentElement")}function Er(e){return F("Node",e,"textContent")}function Or(e,s){return ct("Node",e,"contains")(s)}function Pr(e){return ct("Node",e,"getRootNode")()}function Ar(e){return!e||!("host"in e)?null:F("ShadowRoot",e,"host")}function Mr(e){return e.styleSheets}function Nr(e){return!e||!("shadowRoot"in e)?null:F("Element",e,"shadowRoot")}function Ir(e,s){return F("Element",e,"querySelector")(s)}function _r(e,s){return F("Element",e,"querySelectorAll")(s)}function Dr(){return pe("MutationObserver").constructor}function Tr(e,s,p){try{if(!(s in e))return()=>{};let u=e[s],l=p(u);return typeof l=="function"&&(l.prototype=l.prototype||{},Object.defineProperties(l,{__rrweb_original__:{enumerable:!1,value:u}})),e[s]=l,()=>{e[s]=u}}catch(u){return()=>{}}}var Q={childNodes:xr,parentNode:vr,parentElement:Rr,textContent:Er,contains:Or,getRootNode:Pr,host:Ar,styleSheets:Mr,shadowRoot:Nr,querySelector:Ir,querySelectorAll:_r,mutationObserver:Dr,patch:Tr};function ht(e){return e.nodeType===e.ELEMENT_NODE}function kr(e){let s=e&&"host"in e&&"mode"in e&&Q.host(e)||null;return!!(s&&"shadowRoot"in s&&Q.shadowRoot(s)===e)}function Lr(e){return Object.prototype.toString.call(e)==="[object ShadowRoot]"}function Br(e){return e.includes(" background-clip: text;")&&!e.includes(" -webkit-background-clip: text;")&&(e=e.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;")),e}function pt(e){let{cssText:s}=e;if(s.split('"').length<3)return s;let p=["@import",`url(${JSON.stringify(e.href)})`];return e.layerName===""?p.push("layer"):e.layerName&&p.push(`layer(${e.layerName})`),e.supportsText&&p.push(`supports(${e.supportsText})`),e.media.length&&p.push(e.media.mediaText),p.join(" ")+";"}function dt(e){try{let s=e.rules||e.cssRules;if(!s)return null;let p=e.href;!p&&e.ownerNode&&(p=e.ownerNode.baseURI);let u=Array.from(s,l=>mt(l,p)).join("");return Br(u)}catch(s){return null}}function mt(e,s){var p;if(yt(e)){let u;try{u=dt(e.styleSheet)||pt(e)}catch(l){u=e.cssText}try{if(u&&((p=e.styleSheet)!=null&&p.href))return he(u,e.styleSheet.href)}catch(l){}return u}else{let u=e.cssText;return wt(e)&&e.selectorText.includes(":")&&(u=gt(u)),s?he(u,s):u}}function gt(e){let s=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return e.replace(s,"$1\\$2")}function yt(e){return"styleSheet"in e}function wt(e){return"selectorText"in e}var K=class{constructor(){ot(this,"idNodeMap",new Map),ot(this,"nodeMetaMap",new WeakMap)}getId(s){var p;if(!s)return-1;let u=(p=this.getMeta(s))==null?void 0:p.id;return u!=null?u:-1}getNode(s){return this.idNodeMap.get(s)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(s){return this.nodeMetaMap.get(s)||null}removeNodeFromMap(s){let p=this.getId(s);if(this.idNodeMap.delete(p),s.childNodes&&s.childNodes.forEach(u=>this.removeNodeFromMap(u)),ht(s)){let u=Q.shadowRoot(s);u&&this.removeNodeFromMap(u),s.nodeName==="IFRAME"&&s.contentDocument&&this.removeNodeFromMap(s.contentDocument)}}has(s){return this.idNodeMap.has(s)}hasNode(s){return this.nodeMetaMap.has(s)}add(s,p){let u=p.id;this.idNodeMap.set(u,s),this.nodeMetaMap.set(s,p)}replace(s,p){let u=this.getNode(s);if(u){let l=this.nodeMetaMap.get(u);l&&this.nodeMetaMap.set(p,l)}this.idNodeMap.set(s,p)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}};function Ur(){return new K}function zr({element:e,maskInputOptions:s,tagName:p,type:u,value:l,maskInputFn:c}){let a=l||"",f=u&&de(u);return(s[p.toLowerCase()]||f&&s[f])&&(c?a=c(a,e):a="*".repeat(a.length)),a}function de(e){return e.toLowerCase()}var ut="__rrweb_original__";function Fr(e){let s=e.getContext("2d");if(!s)return!0;let p=50;for(let u=0;u<e.width;u+=p)for(let l=0;l<e.height;l+=p){let c=s.getImageData,a=ut in c?c[ut]:c;if(new Uint32Array(a.call(s,u,l,Math.min(p,e.width-u),Math.min(p,e.height-l)).data.buffer).some(m=>m!==0))return!1}return!0}function qr(e,s){return!e||!s||e.type!==s.type?!1:e.type===z.Document?e.compatMode===s.compatMode:e.type===z.DocumentType?e.name===s.name&&e.publicId===s.publicId&&e.systemId===s.systemId:e.type===z.Comment||e.type===z.Text||e.type===z.CDATA?e.textContent===s.textContent:e.type===z.Element?e.tagName===s.tagName&&JSON.stringify(e.attributes)===JSON.stringify(s.attributes)&&e.isSVG===s.isSVG&&e.needBlock===s.needBlock:!1}function Wr(e){let s=e.type;return e.hasAttribute("data-rr-is-password")?"password":s?de(s):null}function $r(e,s){var c;let p;try{p=new URL(e,s!=null?s:window.location.href)}catch(a){return null}let u=/\.([0-9a-z]+)(?:$)/i,l=p.pathname.match(u);return(c=l==null?void 0:l[1])!=null?c:null}function jr(e){let s="";return e.indexOf("//")>-1?s=e.split("/").slice(0,3).join("/"):s=e.split("/")[0],s=s.split("?")[0],s}var Vr=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,Gr=/^(?:[a-z+]+:)?\/\//i,Hr=/^www\..*/i,Jr=/^(data:)([^,]*),(.*)/i;function he(e,s){return(e||"").replace(Vr,(p,u,l,c,a,f)=>{let m=l||a||f,o=u||c||"";if(!m)return p;if(Gr.test(m)||Hr.test(m))return`url(${o}${m}${o})`;if(Jr.test(m))return`url(${o}${m}${o})`;if(m[0]==="/")return`url(${o}${jr(s)+m}${o})`;let t=s.split("/"),n=m.split("/");t.pop();for(let i of n)i!=="."&&(i===".."?t.pop():t.push(i));return`url(${o}${t.join("/")}${o})`})}var Zr="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPgogIDxkZWZzPgogICAgPHBhdHRlcm4gaWQ9InN0cmlwZXMiIHBhdHRlcm5Vbml0cz0idXNlclNwYWNlT25Vc2UiIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiI+CiAgICAgIDxyZWN0IHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgZmlsbD0iYmxhY2siLz4KICAgICAgPHBhdGggZD0iTTggMEgxNkwwIDE2VjhMOCAwWiIgZmlsbD0iIzJEMkQyRCIvPgogICAgICA8cGF0aCBkPSJNMTYgOFYxNkg4TDE2IDhaIiBmaWxsPSIjMkQyRDJEIi8+CiAgICA8L3BhdHRlcm4+CiAgPC9kZWZzPgogIDxyZWN0IHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIGZpbGw9InVybCgjc3RyaXBlcykiLz4KPC9zdmc+Cg==",ft=4096;function Yr(e,s,p,u){if(!e.complete||e.naturalWidth===0||e.naturalWidth>ft||e.naturalHeight>ft)return s;try{let l=document.createElement("canvas");l.width=e.naturalWidth,l.height=e.naturalHeight;let c=l.getContext("2d");return c?(c.drawImage(e,0,0),l.toDataURL(p||"image/webp",u!=null?u:.4)):s}catch(l){return s}}function Qr(e,s){return!s||e.length<=s?e:Zr}var bt=(e=>(e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment",e))(bt||{});_.Mirror=K;_.NodeType=bt;_.NodeType$1=z;_.absolutifyURLs=he;_.checkDataURLSize=Qr;_.createMirror=Ur;_.escapeImportStatement=pt;_.extractFileExtension=$r;_.fixSafariColons=gt;_.getInputType=Wr;_.index=Q;_.is2DCanvasBlank=Fr;_.isCSSImportRule=yt;_.isCSSStyleRule=wt;_.isElement=ht;_.isNativeShadowDom=Lr;_.isNodeMetaEqual=qr;_.isShadowRoot=kr;_.maskInputValue=zr;_.recompressBase64Image=Yr;_.stringifyRule=mt;_.stringifyStylesheet=dt;_.toLowerCase=de});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var M=St(),Kr=/(max|min)-device-(width|height)/,Ct=new RegExp(Kr.source,"g"),Xr={postcssPlugin:"postcss-custom-selectors",prepare(){return{postcssPlugin:"postcss-custom-selectors",AtRule:function(e){e.params.match(Ct)&&(e.params=e.params.replace(Ct,"$1-$2"))}}}},ei={postcssPlugin:"postcss-hover-classes",prepare:function(){let e=[];return{Rule:function(s){e.indexOf(s)===-1&&(e.push(s),s.selectors.forEach(function(p){p.includes(":hover")&&(s.selector+=`,
3
+ `+p.replace(/:hover/g,".\\:hover"))}))}}}};function er(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function ti(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var s=e.default;if(typeof s=="function"){var p=function u(){return this instanceof u?Reflect.construct(s,arguments,this.constructor):s.apply(this,arguments)};p.prototype=s.prototype}else p={};return Object.defineProperty(p,"__esModule",{value:!0}),Object.keys(e).forEach(function(u){var l=Object.getOwnPropertyDescriptor(e,u);Object.defineProperty(p,u,l.get?l:{enumerable:!0,get:function(){return e[u]}})}),p}var X={exports:{}},xt;function ri(){if(xt)return X.exports;xt=1;var e=String,s=function(){return{isColorSupported:!1,reset:e,bold:e,dim:e,italic:e,underline:e,inverse:e,hidden:e,strikethrough:e,black:e,red:e,green:e,yellow:e,blue:e,magenta:e,cyan:e,white:e,gray:e,bgBlack:e,bgRed:e,bgGreen:e,bgYellow:e,bgBlue:e,bgMagenta:e,bgCyan:e,bgWhite:e,blackBright:e,redBright:e,greenBright:e,yellowBright:e,blueBright:e,magentaBright:e,cyanBright:e,whiteBright:e,bgBlackBright:e,bgRedBright:e,bgGreenBright:e,bgYellowBright:e,bgBlueBright:e,bgMagentaBright:e,bgCyanBright:e,bgWhiteBright:e}};return X.exports=s(),X.exports.createColors=s,X.exports}var ii={},si=Object.freeze(Object.defineProperty({__proto__:null,default:ii},Symbol.toStringTag,{value:"Module"})),k=ti(si),me,vt;function je(){if(vt)return me;vt=1;let e=ri(),s=k;class p extends Error{constructor(l,c,a,f,m,o){super(l),this.name="CssSyntaxError",this.reason=l,m&&(this.file=m),f&&(this.source=f),o&&(this.plugin=o),typeof c!="undefined"&&typeof a!="undefined"&&(typeof c=="number"?(this.line=c,this.column=a):(this.line=c.line,this.column=c.column,this.endLine=a.line,this.endColumn=a.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,p)}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(l){if(!this.source)return"";let c=this.source;l==null&&(l=e.isColorSupported);let a=r=>r,f=r=>r,m=r=>r;if(l){let{bold:r,gray:h,red:d}=e.createColors(!0);f=g=>r(d(g)),a=g=>h(g),s&&(m=g=>s(g))}let o=c.split(/\r?\n/),t=Math.max(this.line-3,0),n=Math.min(this.line+2,o.length),i=String(n).length;return o.slice(t,n).map((r,h)=>{let d=t+1+h,g=" "+(" "+d).slice(-i)+" | ";if(d===this.line){if(r.length>160){let w=20,C=Math.max(0,this.column-w),v=Math.max(this.column+w,this.endColumn+w),y=r.slice(C,v),b=a(g.replace(/\d/g," "))+r.slice(0,Math.min(this.column-1,w-1)).replace(/[^\t]/g," ");return f(">")+a(g)+m(y)+`
4
4
  `+b+f("^")}let S=a(g.replace(/\d/g," "))+r.slice(0,this.column-1).replace(/[^\t]/g," ");return f(">")+a(g)+m(r)+`
5
5
  `+S+f("^")}return" "+a(g)+m(r)}).join(`
6
6
  `)}toString(){let l=this.showSourceCode();return l&&(l=`
7
7
 
8
8
  `+l+`
9
- `),this.name+": "+this.message+l}}return me=p,p.default=p,me}var ge,vt;function er(){if(vt)return ge;vt=1;let e={after:`
9
+ `),this.name+": "+this.message+l}}return me=p,p.default=p,me}var ge,Rt;function tr(){if(Rt)return ge;Rt=1;let e={after:`
10
10
  `,beforeClose:`
11
11
  `,beforeComment:`
12
12
  `,beforeDecl:`
@@ -17,17 +17,17 @@
17
17
  `)&&(a=a.replace(/[^\n]+$/,"")),!1}),typeof a=="undefined"?a=this.raw(c,null,"beforeDecl"):a&&(a=a.replace(/\S/g,"")),a}rawBeforeDecl(l,c){let a;return l.walkDecls(f=>{if(typeof f.raws.before!="undefined")return a=f.raws.before,a.includes(`
18
18
  `)&&(a=a.replace(/[^\n]+$/,"")),!1}),typeof a=="undefined"?a=this.raw(c,null,"beforeRule"):a&&(a=a.replace(/\S/g,"")),a}rawBeforeOpen(l){let c;return l.walk(a=>{if(a.type!=="decl"&&(c=a.raws.between,typeof c!="undefined"))return!1}),c}rawBeforeRule(l){let c;return l.walk(a=>{if(a.nodes&&(a.parent!==l||l.first!==a)&&typeof a.raws.before!="undefined")return c=a.raws.before,c.includes(`
19
19
  `)&&(c=c.replace(/[^\n]+$/,"")),!1}),c&&(c=c.replace(/\S/g,"")),c}rawColon(l){let c;return l.walkDecls(a=>{if(typeof a.raws.between!="undefined")return c=a.raws.between.replace(/[^\s:]/g,""),!1}),c}rawEmptyBody(l){let c;return l.walk(a=>{if(a.nodes&&a.nodes.length===0&&(c=a.raws.after,typeof c!="undefined"))return!1}),c}rawIndent(l){if(l.raws.indent)return l.raws.indent;let c;return l.walk(a=>{let f=a.parent;if(f&&f!==l&&f.parent&&f.parent===l&&typeof a.raws.before!="undefined"){let m=a.raws.before.split(`
20
- `);return c=m[m.length-1],c=c.replace(/\S/g,""),!1}}),c}rawSemicolon(l){let c;return l.walk(a=>{if(a.nodes&&a.nodes.length&&a.last.type==="decl"&&(c=a.raws.semicolon,typeof c!="undefined"))return!1}),c}rawValue(l,c){let a=l[c],f=l.raws[c];return f&&f.value===a?f.raw:a}root(l){this.body(l),l.raws.after&&this.builder(l.raws.after)}rule(l){this.block(l,this.rawValue(l,"selector")),l.raws.ownSemicolon&&this.builder(l.raws.ownSemicolon,l,"end")}stringify(l,c){if(!this[l.type])throw new Error("Unknown AST node type "+l.type+". Maybe you need to change PostCSS stringifier.");this[l.type](l,c)}}return ge=p,p.default=p,ge}var ye,Rt;function ee(){if(Rt)return ye;Rt=1;let e=er();function s(p,u){new e(u).stringify(p)}return ye=s,s.default=s,ye}var X={},Et;function Ve(){return Et||(Et=1,X.isClean=Symbol("isClean"),X.my=Symbol("my")),X}var we,Ot;function te(){if(Ot)return we;Ot=1;let e=je(),s=er(),p=ee(),{isClean:u,my:l}=Ve();function c(m,o){let t=new m.constructor;for(let n in m){if(!Object.prototype.hasOwnProperty.call(m,n)||n==="proxyCache")continue;let i=m[n],r=typeof i;n==="parent"&&r==="object"?o&&(t[n]=o):n==="source"?t[n]=i:Array.isArray(i)?t[n]=i.map(h=>c(h,t)):(r==="object"&&i!==null&&(i=c(i)),t[n]=i)}return t}function a(m,o){if(o&&typeof o.offset!="undefined")return o.offset;let t=1,n=1,i=0;for(let r=0;r<m.length;r++){if(n===o.line&&t===o.column){i=r;break}m[r]===`
20
+ `);return c=m[m.length-1],c=c.replace(/\S/g,""),!1}}),c}rawSemicolon(l){let c;return l.walk(a=>{if(a.nodes&&a.nodes.length&&a.last.type==="decl"&&(c=a.raws.semicolon,typeof c!="undefined"))return!1}),c}rawValue(l,c){let a=l[c],f=l.raws[c];return f&&f.value===a?f.raw:a}root(l){this.body(l),l.raws.after&&this.builder(l.raws.after)}rule(l){this.block(l,this.rawValue(l,"selector")),l.raws.ownSemicolon&&this.builder(l.raws.ownSemicolon,l,"end")}stringify(l,c){if(!this[l.type])throw new Error("Unknown AST node type "+l.type+". Maybe you need to change PostCSS stringifier.");this[l.type](l,c)}}return ge=p,p.default=p,ge}var ye,Et;function te(){if(Et)return ye;Et=1;let e=tr();function s(p,u){new e(u).stringify(p)}return ye=s,s.default=s,ye}var ee={},Ot;function Ve(){return Ot||(Ot=1,ee.isClean=Symbol("isClean"),ee.my=Symbol("my")),ee}var we,Pt;function re(){if(Pt)return we;Pt=1;let e=je(),s=tr(),p=te(),{isClean:u,my:l}=Ve();function c(m,o){let t=new m.constructor;for(let n in m){if(!Object.prototype.hasOwnProperty.call(m,n)||n==="proxyCache")continue;let i=m[n],r=typeof i;n==="parent"&&r==="object"?o&&(t[n]=o):n==="source"?t[n]=i:Array.isArray(i)?t[n]=i.map(h=>c(h,t)):(r==="object"&&i!==null&&(i=c(i)),t[n]=i)}return t}function a(m,o){if(o&&typeof o.offset!="undefined")return o.offset;let t=1,n=1,i=0;for(let r=0;r<m.length;r++){if(n===o.line&&t===o.column){i=r;break}m[r]===`
21
21
  `?(t=1,n+=1):t+=1}return i}class f{get proxyOf(){return this}constructor(o={}){this.raws={},this[u]=!1,this[l]=!0;for(let t in o)if(t==="nodes"){this.nodes=[];for(let n of o[t])typeof n.clone=="function"?this.append(n.clone()):this.append(n)}else this[t]=o[t]}addToError(o){if(o.postcssNode=this,o.stack&&this.source&&/\n\s{4}at /.test(o.stack)){let t=this.source;o.stack=o.stack.replace(/\n\s{4}at /,`$&${t.input.from}:${t.start.line}:${t.start.column}$&`)}return o}after(o){return this.parent.insertAfter(this,o),this}assign(o={}){for(let t in o)this[t]=o[t];return this}before(o){return this.parent.insertBefore(this,o),this}cleanRaws(o){delete this.raws.before,delete this.raws.after,o||delete this.raws.between}clone(o={}){let t=c(this);for(let n in o)t[n]=o[n];return t}cloneAfter(o={}){let t=this.clone(o);return this.parent.insertAfter(this,t),t}cloneBefore(o={}){let t=this.clone(o);return this.parent.insertBefore(this,t),t}error(o,t={}){if(this.source){let{end:n,start:i}=this.rangeBy(t);return this.source.input.error(o,{column:i.column,line:i.line},{column:n.column,line:n.line},t)}return new e(o)}getProxyProcessor(){return{get(o,t){return t==="proxyOf"?o:t==="root"?()=>o.root().toProxy():o[t]},set(o,t,n){return o[t]===n||(o[t]=n,(t==="prop"||t==="value"||t==="name"||t==="params"||t==="important"||t==="text")&&o.markDirty()),!0}}}markClean(){this[u]=!0}markDirty(){if(this[u]){this[u]=!1;let o=this;for(;o=o.parent;)o[u]=!1}}next(){if(!this.parent)return;let o=this.parent.index(this);return this.parent.nodes[o+1]}positionBy(o={}){let t=this.source.start;if(o.index)t=this.positionInside(o.index);else if(o.word){let n="document"in this.source.input?this.source.input.document:this.source.input.css,r=n.slice(a(n,this.source.start),a(n,this.source.end)).indexOf(o.word);r!==-1&&(t=this.positionInside(r))}return t}positionInside(o){let t=this.source.start.column,n=this.source.start.line,i="document"in this.source.input?this.source.input.document:this.source.input.css,r=a(i,this.source.start),h=r+o;for(let d=r;d<h;d++)i[d]===`
22
- `?(t=1,n+=1):t+=1;return{column:t,line:n,offset:h}}prev(){if(!this.parent)return;let o=this.parent.index(this);return this.parent.nodes[o-1]}rangeBy(o={}){let t="document"in this.source.input?this.source.input.document:this.source.input.css,n={column:this.source.start.column,line:this.source.start.line,offset:a(t,this.source.start)},i=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:a(t,this.source.end)+1}:{column:n.column+1,line:n.line,offset:n.offset+1};if(o.word){let h=t.slice(a(t,this.source.start),a(t,this.source.end)).indexOf(o.word);h!==-1&&(n=this.positionInside(h),i=this.positionInside(h+o.word.length))}else o.start?n={column:o.start.column,line:o.start.line,offset:a(t,o.start)}:o.index&&(n=this.positionInside(o.index)),o.end?i={column:o.end.column,line:o.end.line,offset:a(t,o.end)}:typeof o.endIndex=="number"?i=this.positionInside(o.endIndex):o.index&&(i=this.positionInside(o.index+1));return(i.line<n.line||i.line===n.line&&i.column<=n.column)&&(i={column:n.column+1,line:n.line,offset:n.offset+1}),{end:i,start:n}}raw(o,t){return new s().raw(this,o,t)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...o){if(this.parent){let t=this,n=!1;for(let i of o)i===this?n=!0:n?(this.parent.insertAfter(t,i),t=i):this.parent.insertBefore(t,i);n||this.remove()}return this}root(){let o=this;for(;o.parent&&o.parent.type!=="document";)o=o.parent;return o}toJSON(o,t){let n={},i=t==null;t=t||new Map;let r=0;for(let h in this){if(!Object.prototype.hasOwnProperty.call(this,h)||h==="parent"||h==="proxyCache")continue;let d=this[h];if(Array.isArray(d))n[h]=d.map(g=>typeof g=="object"&&g.toJSON?g.toJSON(null,t):g);else if(typeof d=="object"&&d.toJSON)n[h]=d.toJSON(null,t);else if(h==="source"){if(d==null)continue;let g=t.get(d.input);g==null&&(g=r,t.set(d.input,r),r++),n[h]={end:d.end,inputId:g,start:d.start}}else n[h]=d}return i&&(n.inputs=[...t.keys()].map(h=>h.toJSON())),n}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(o=p){o.stringify&&(o=o.stringify);let t="";return o(this,n=>{t+=n}),t}warn(o,t,n={}){let i={node:this};for(let r in n)i[r]=n[r];return o.warn(t,i)}}return we=f,f.default=f,we}var be,Pt;function V(){if(Pt)return be;Pt=1;let e=te();class s extends e{constructor(u){super(u),this.type="comment"}}return be=s,s.default=s,be}var Se,At;function re(){if(At)return Se;At=1;let e=te();class s extends e{get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}constructor(u){u&&typeof u.value!="undefined"&&typeof u.value!="string"&&(u=j(L({},u),{value:String(u.value)})),super(u),this.type="decl"}}return Se=s,s.default=s,Se}var Ce,Mt;function F(){if(Mt)return Ce;Mt=1;let e=V(),s=re(),p=te(),{isClean:u,my:l}=Ve(),c,a,f,m;function o(i){return i.map(r=>(r.nodes&&(r.nodes=o(r.nodes)),delete r.source,r))}function t(i){if(i[u]=!1,i.proxyOf.nodes)for(let r of i.proxyOf.nodes)t(r)}class n extends p{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(...r){for(let h of r){let d=this.normalize(h,this.last);for(let g of d)this.proxyOf.nodes.push(g)}return this.markDirty(),this}cleanRaws(r){if(super.cleanRaws(r),this.nodes)for(let h of this.nodes)h.cleanRaws(r)}each(r){if(!this.proxyOf.nodes)return;let h=this.getIterator(),d,g;for(;this.indexes[h]<this.proxyOf.nodes.length&&(d=this.indexes[h],g=r(this.proxyOf.nodes[d],d),g!==!1);)this.indexes[h]+=1;return delete this.indexes[h],g}every(r){return this.nodes.every(r)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let r=this.lastEach;return this.indexes[r]=0,r}getProxyProcessor(){return{get(r,h){return h==="proxyOf"?r:r[h]?h==="each"||typeof h=="string"&&h.startsWith("walk")?(...d)=>r[h](...d.map(g=>typeof g=="function"?(S,w)=>g(S.toProxy(),w):g)):h==="every"||h==="some"?d=>r[h]((g,...S)=>d(g.toProxy(),...S)):h==="root"?()=>r.root().toProxy():h==="nodes"?r.nodes.map(d=>d.toProxy()):h==="first"||h==="last"?r[h].toProxy():r[h]:r[h]},set(r,h,d){return r[h]===d||(r[h]=d,(h==="name"||h==="params"||h==="selector")&&r.markDirty()),!0}}}index(r){return typeof r=="number"?r:(r.proxyOf&&(r=r.proxyOf),this.proxyOf.nodes.indexOf(r))}insertAfter(r,h){let d=this.index(r),g=this.normalize(h,this.proxyOf.nodes[d]).reverse();d=this.index(r);for(let w of g)this.proxyOf.nodes.splice(d+1,0,w);let S;for(let w in this.indexes)S=this.indexes[w],d<S&&(this.indexes[w]=S+g.length);return this.markDirty(),this}insertBefore(r,h){let d=this.index(r),g=d===0?"prepend":!1,S=this.normalize(h,this.proxyOf.nodes[d],g).reverse();d=this.index(r);for(let C of S)this.proxyOf.nodes.splice(d,0,C);let w;for(let C in this.indexes)w=this.indexes[C],d<=w&&(this.indexes[C]=w+S.length);return this.markDirty(),this}normalize(r,h){if(typeof r=="string")r=o(a(r).nodes);else if(typeof r=="undefined")r=[];else if(Array.isArray(r)){r=r.slice(0);for(let g of r)g.parent&&g.parent.removeChild(g,"ignore")}else if(r.type==="root"&&this.type!=="document"){r=r.nodes.slice(0);for(let g of r)g.parent&&g.parent.removeChild(g,"ignore")}else if(r.type)r=[r];else if(r.prop){if(typeof r.value=="undefined")throw new Error("Value field is missed in node creation");typeof r.value!="string"&&(r.value=String(r.value)),r=[new s(r)]}else if(r.selector||r.selectors)r=[new m(r)];else if(r.name)r=[new c(r)];else if(r.text)r=[new e(r)];else throw new Error("Unknown node type in node creation");return r.map(g=>(g[l]||n.rebuild(g),g=g.proxyOf,g.parent&&g.parent.removeChild(g),g[u]&&t(g),g.raws||(g.raws={}),typeof g.raws.before=="undefined"&&h&&typeof h.raws.before!="undefined"&&(g.raws.before=h.raws.before.replace(/\S/g,"")),g.parent=this.proxyOf,g))}prepend(...r){r=r.reverse();for(let h of r){let d=this.normalize(h,this.first,"prepend").reverse();for(let g of d)this.proxyOf.nodes.unshift(g);for(let g in this.indexes)this.indexes[g]=this.indexes[g]+d.length}return this.markDirty(),this}push(r){return r.parent=this,this.proxyOf.nodes.push(r),this}removeAll(){for(let r of this.proxyOf.nodes)r.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(r){r=this.index(r),this.proxyOf.nodes[r].parent=void 0,this.proxyOf.nodes.splice(r,1);let h;for(let d in this.indexes)h=this.indexes[d],h>=r&&(this.indexes[d]=h-1);return this.markDirty(),this}replaceValues(r,h,d){return d||(d=h,h={}),this.walkDecls(g=>{h.props&&!h.props.includes(g.prop)||h.fast&&!g.value.includes(h.fast)||(g.value=g.value.replace(r,d))}),this.markDirty(),this}some(r){return this.nodes.some(r)}walk(r){return this.each((h,d)=>{let g;try{g=r(h,d)}catch(S){throw h.addToError(S)}return g!==!1&&h.walk&&(g=h.walk(r)),g})}walkAtRules(r,h){return h?r instanceof RegExp?this.walk((d,g)=>{if(d.type==="atrule"&&r.test(d.name))return h(d,g)}):this.walk((d,g)=>{if(d.type==="atrule"&&d.name===r)return h(d,g)}):(h=r,this.walk((d,g)=>{if(d.type==="atrule")return h(d,g)}))}walkComments(r){return this.walk((h,d)=>{if(h.type==="comment")return r(h,d)})}walkDecls(r,h){return h?r instanceof RegExp?this.walk((d,g)=>{if(d.type==="decl"&&r.test(d.prop))return h(d,g)}):this.walk((d,g)=>{if(d.type==="decl"&&d.prop===r)return h(d,g)}):(h=r,this.walk((d,g)=>{if(d.type==="decl")return h(d,g)}))}walkRules(r,h){return h?r instanceof RegExp?this.walk((d,g)=>{if(d.type==="rule"&&r.test(d.selector))return h(d,g)}):this.walk((d,g)=>{if(d.type==="rule"&&d.selector===r)return h(d,g)}):(h=r,this.walk((d,g)=>{if(d.type==="rule")return h(d,g)}))}}return n.registerParse=i=>{a=i},n.registerRule=i=>{m=i},n.registerAtRule=i=>{c=i},n.registerRoot=i=>{f=i},Ce=n,n.default=n,n.rebuild=i=>{i.type==="atrule"?Object.setPrototypeOf(i,c.prototype):i.type==="rule"?Object.setPrototypeOf(i,m.prototype):i.type==="decl"?Object.setPrototypeOf(i,s.prototype):i.type==="comment"?Object.setPrototypeOf(i,e.prototype):i.type==="root"&&Object.setPrototypeOf(i,f.prototype),i[l]=!0,i.nodes&&i.nodes.forEach(r=>{n.rebuild(r)})},Ce}var xe,Nt;function Ge(){if(Nt)return xe;Nt=1;let e=F();class s extends e{constructor(u){super(u),this.type="atrule"}append(...u){return this.proxyOf.nodes||(this.nodes=[]),super.append(...u)}prepend(...u){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...u)}}return xe=s,s.default=s,e.registerAtRule(s),xe}var ve,It;function He(){if(It)return ve;It=1;let e=F(),s,p;class u extends e{constructor(c){super(L({type:"document"},c)),this.nodes||(this.nodes=[])}toResult(c={}){return new s(new p,this,c).stringify()}}return u.registerLazyResult=l=>{s=l},u.registerProcessor=l=>{p=l},ve=u,u.default=u,ve}var Re,_t;function ni(){if(_t)return Re;_t=1;let e="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";return Re={nanoid:(u=21)=>{let l="",c=u|0;for(;c--;)l+=e[Math.random()*64|0];return l},customAlphabet:(u,l=21)=>(c=l)=>{let a="",f=c|0;for(;f--;)a+=u[Math.random()*u.length|0];return a}},Re}var Ee,Dt;function tr(){if(Dt)return Ee;Dt=1;let{existsSync:e,readFileSync:s}=k,{dirname:p,join:u}=k,{SourceMapConsumer:l,SourceMapGenerator:c}=k;function a(m){return Buffer?Buffer.from(m,"base64").toString():window.atob(m)}class f{constructor(o,t){if(t.map===!1)return;this.loadAnnotation(o),this.inline=this.startWith(this.annotation,"data:");let n=t.map?t.map.prev:void 0,i=this.loadMap(t.from,n);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=p(this.mapFile)),i&&(this.text=i)}consumer(){return this.consumerCache||(this.consumerCache=new l(this.text)),this.consumerCache}decodeInline(o){let t=/^data:application\/json;charset=utf-?8;base64,/,n=/^data:application\/json;base64,/,i=/^data:application\/json;charset=utf-?8,/,r=/^data:application\/json,/,h=o.match(i)||o.match(r);if(h)return decodeURIComponent(o.substr(h[0].length));let d=o.match(t)||o.match(n);if(d)return a(o.substr(d[0].length));let g=o.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+g)}getAnnotationURL(o){return o.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(o){return typeof o!="object"?!1:typeof o.mappings=="string"||typeof o._mappings=="string"||Array.isArray(o.sections)}loadAnnotation(o){let t=o.match(/\/\*\s*# sourceMappingURL=/g);if(!t)return;let n=o.lastIndexOf(t.pop()),i=o.indexOf("*/",n);n>-1&&i>-1&&(this.annotation=this.getAnnotationURL(o.substring(n,i)))}loadFile(o){if(this.root=p(o),e(o))return this.mapFile=o,s(o,"utf-8").toString().trim()}loadMap(o,t){if(t===!1)return!1;if(t){if(typeof t=="string")return t;if(typeof t=="function"){let n=t(o);if(n){let i=this.loadFile(n);if(!i)throw new Error("Unable to load previous source map: "+n.toString());return i}}else{if(t instanceof l)return c.fromSourceMap(t).toString();if(t instanceof c)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 n=this.annotation;return o&&(n=u(p(o),n)),this.loadFile(n)}}}startWith(o,t){return o?o.substr(0,t.length)===t:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}}return Ee=f,f.default=f,Ee}var Oe,Tt;function ie(){if(Tt)return Oe;Tt=1;let{nanoid:e}=ni(),{isAbsolute:s,resolve:p}=k,{SourceMapConsumer:u,SourceMapGenerator:l}=k,{fileURLToPath:c,pathToFileURL:a}=k,f=je(),m=tr(),o=k,t=Symbol("lineToIndexCache"),n=!!(u&&l),i=!!(p&&s);function r(d){if(d[t])return d[t];let g=d.css.split(`
23
- `),S=new Array(g.length),w=0;for(let C=0,v=g.length;C<v;C++)S[C]=w,w+=g[C].length+1;return d[t]=S,S}class h{get from(){return this.file||this.id}constructor(g,S={}){if(g===null||typeof g=="undefined"||typeof g=="object"&&!g.toString)throw new Error(`PostCSS received ${g} instead of CSS string`);if(this.css=g.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,S.document&&(this.document=S.document.toString()),S.from&&(!i||/^\w+:\/\//.test(S.from)||s(S.from)?this.file=S.from:this.file=p(S.from)),i&&n){let w=new m(this.css,S);if(w.text){this.map=w;let C=w.consumer().file;!this.file&&C&&(this.file=this.mapResolve(C))}}this.file||(this.id="<input css "+e(6)+">"),this.map&&(this.map.file=this.from)}error(g,S,w,C={}){let v,y,b,x,R;if(S&&typeof S=="object"){let E=S,D=w;if(typeof E.offset=="number"){x=E.offset;let N=this.fromOffset(x);S=N.line,w=N.col}else S=E.line,w=E.column,x=this.fromLineAndColumn(S,w);if(typeof D.offset=="number"){b=D.offset;let N=this.fromOffset(b);y=N.line,v=N.col}else y=D.line,v=D.column,b=this.fromLineAndColumn(D.line,D.column)}else if(w)x=this.fromLineAndColumn(S,w);else{x=S;let E=this.fromOffset(x);S=E.line,w=E.col}let P=this.origin(S,w,y,v);return P?R=new f(g,P.endLine===void 0?P.line:{column:P.column,line:P.line},P.endLine===void 0?P.column:{column:P.endColumn,line:P.endLine},P.source,P.file,C.plugin):R=new f(g,y===void 0?S:{column:w,line:S},y===void 0?w:{column:v,line:y},this.css,this.file,C.plugin),R.input={column:w,endColumn:v,endLine:y,endOffset:b,line:S,offset:x,source:this.css},this.file&&(a&&(R.input.url=a(this.file).toString()),R.input.file=this.file),R}fromLineAndColumn(g,S){return r(this)[g-1]+S-1}fromOffset(g){let S=r(this),w=S[S.length-1],C=0;if(g>=w)C=S.length-1;else{let v=S.length-2,y;for(;C<v;)if(y=C+(v-C>>1),g<S[y])v=y-1;else if(g>=S[y+1])C=y+1;else{C=y;break}}return{col:g-S[C]+1,line:C+1}}mapResolve(g){return/^\w+:\/\//.test(g)?g:p(this.map.consumer().sourceRoot||this.map.root||".",g)}origin(g,S,w,C){if(!this.map)return!1;let v=this.map.consumer(),y=v.originalPositionFor({column:S,line:g});if(!y.source)return!1;let b;typeof w=="number"&&(b=v.originalPositionFor({column:C,line:w}));let x;s(y.source)?x=a(y.source):x=new URL(y.source,this.map.consumer().sourceRoot||a(this.map.mapFile));let R={column:y.column,endColumn:b&&b.column,endLine:b&&b.line,line:y.line,url:x.toString()};if(x.protocol==="file:")if(c)R.file=c(x);else throw new Error("file: protocol is not available in this PostCSS build");let P=v.sourceContentFor(y.source);return P&&(R.source=P),R}toJSON(){let g={};for(let S of["hasBOM","css","file","id"])this[S]!=null&&(g[S]=this[S]);return this.map&&(g.map=L({},this.map),g.map.consumerCache&&(g.map.consumerCache=void 0)),g}}return Oe=h,h.default=h,o&&o.registerInput&&o.registerInput(h),Oe}var Pe,kt;function G(){if(kt)return Pe;kt=1;let e=F(),s,p;class u extends e{constructor(c){super(c),this.type="root",this.nodes||(this.nodes=[])}normalize(c,a,f){let m=super.normalize(c);if(a){if(f==="prepend")this.nodes.length>1?a.raws.before=this.nodes[1].raws.before:delete a.raws.before;else if(this.first!==a)for(let o of m)o.raws.before=a.raws.before}return m}removeChild(c,a){let f=this.index(c);return!a&&f===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[f].raws.before),super.removeChild(c)}toResult(c={}){return new s(new p,this,c).stringify()}}return u.registerLazyResult=l=>{s=l},u.registerProcessor=l=>{p=l},Pe=u,u.default=u,e.registerRoot(u),Pe}var Ae,Lt;function rr(){if(Lt)return Ae;Lt=1;let e={comma(s){return e.split(s,[","],!0)},space(s){let p=[" ",`
24
- `," "];return e.split(s,p)},split(s,p,u){let l=[],c="",a=!1,f=0,m=!1,o="",t=!1;for(let n of s)t?t=!1:n==="\\"?t=!0:m?n===o&&(m=!1):n==='"'||n==="'"?(m=!0,o=n):n==="("?f+=1:n===")"?f>0&&(f-=1):f===0&&p.includes(n)&&(a=!0),a?(c!==""&&l.push(c.trim()),c="",a=!1):c+=n;return(u||c!=="")&&l.push(c.trim()),l}};return Ae=e,e.default=e,Ae}var Me,Bt;function Je(){if(Bt)return Me;Bt=1;let e=F(),s=rr();class p extends e{get selectors(){return s.comma(this.selector)}set selectors(l){let c=this.selector?this.selector.match(/,\s*/):null,a=c?c[0]:","+this.raw("between","beforeOpen");this.selector=l.join(a)}constructor(l){super(l),this.type="rule",this.nodes||(this.nodes=[])}}return Me=p,p.default=p,e.registerRule(p),Me}var Ne,Ut;function oi(){if(Ut)return Ne;Ut=1;let e=Ge(),s=V(),p=re(),u=ie(),l=tr(),c=G(),a=Je();function f(m,o){if(Array.isArray(m))return m.map(h=>f(h));let i=m,{inputs:t}=i,n=ae(i,["inputs"]);if(t){o=[];for(let h of t){let d=j(L({},h),{__proto__:u.prototype});d.map&&(d.map=j(L({},d.map),{__proto__:l.prototype})),o.push(d)}}if(n.nodes&&(n.nodes=m.nodes.map(h=>f(h,o))),n.source){let r=n.source,{inputId:h}=r,d=ae(r,["inputId"]);n.source=d,h!=null&&(n.source.input=o[h])}if(n.type==="root")return new c(n);if(n.type==="decl")return new p(n);if(n.type==="rule")return new a(n);if(n.type==="comment")return new s(n);if(n.type==="atrule")return new e(n);throw new Error("Unknown node type: "+m.type)}return Ne=f,f.default=f,Ne}var Ie,zt;function ir(){if(zt)return Ie;zt=1;let{dirname:e,relative:s,resolve:p,sep:u}=k,{SourceMapConsumer:l,SourceMapGenerator:c}=k,{pathToFileURL:a}=k,f=ie(),m=!!(l&&c),o=!!(e&&p&&s&&u);class t{constructor(i,r,h,d){this.stringify=i,this.mapOpts=h.map||{},this.root=r,this.opts=h,this.css=d,this.originalCSS=d,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let i;this.isInline()?i="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?i=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?i=this.mapOpts.annotation(this.opts.to,this.root):i=this.outputFile()+".map";let r=`
22
+ `?(t=1,n+=1):t+=1;return{column:t,line:n,offset:h}}prev(){if(!this.parent)return;let o=this.parent.index(this);return this.parent.nodes[o-1]}rangeBy(o={}){let t="document"in this.source.input?this.source.input.document:this.source.input.css,n={column:this.source.start.column,line:this.source.start.line,offset:a(t,this.source.start)},i=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:a(t,this.source.end)+1}:{column:n.column+1,line:n.line,offset:n.offset+1};if(o.word){let h=t.slice(a(t,this.source.start),a(t,this.source.end)).indexOf(o.word);h!==-1&&(n=this.positionInside(h),i=this.positionInside(h+o.word.length))}else o.start?n={column:o.start.column,line:o.start.line,offset:a(t,o.start)}:o.index&&(n=this.positionInside(o.index)),o.end?i={column:o.end.column,line:o.end.line,offset:a(t,o.end)}:typeof o.endIndex=="number"?i=this.positionInside(o.endIndex):o.index&&(i=this.positionInside(o.index+1));return(i.line<n.line||i.line===n.line&&i.column<=n.column)&&(i={column:n.column+1,line:n.line,offset:n.offset+1}),{end:i,start:n}}raw(o,t){return new s().raw(this,o,t)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...o){if(this.parent){let t=this,n=!1;for(let i of o)i===this?n=!0:n?(this.parent.insertAfter(t,i),t=i):this.parent.insertBefore(t,i);n||this.remove()}return this}root(){let o=this;for(;o.parent&&o.parent.type!=="document";)o=o.parent;return o}toJSON(o,t){let n={},i=t==null;t=t||new Map;let r=0;for(let h in this){if(!Object.prototype.hasOwnProperty.call(this,h)||h==="parent"||h==="proxyCache")continue;let d=this[h];if(Array.isArray(d))n[h]=d.map(g=>typeof g=="object"&&g.toJSON?g.toJSON(null,t):g);else if(typeof d=="object"&&d.toJSON)n[h]=d.toJSON(null,t);else if(h==="source"){if(d==null)continue;let g=t.get(d.input);g==null&&(g=r,t.set(d.input,r),r++),n[h]={end:d.end,inputId:g,start:d.start}}else n[h]=d}return i&&(n.inputs=[...t.keys()].map(h=>h.toJSON())),n}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(o=p){o.stringify&&(o=o.stringify);let t="";return o(this,n=>{t+=n}),t}warn(o,t,n={}){let i={node:this};for(let r in n)i[r]=n[r];return o.warn(t,i)}}return we=f,f.default=f,we}var be,At;function V(){if(At)return be;At=1;let e=re();class s extends e{constructor(u){super(u),this.type="comment"}}return be=s,s.default=s,be}var Se,Mt;function ie(){if(Mt)return Se;Mt=1;let e=re();class s extends e{get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}constructor(u){u&&typeof u.value!="undefined"&&typeof u.value!="string"&&(u=j(L({},u),{value:String(u.value)})),super(u),this.type="decl"}}return Se=s,s.default=s,Se}var Ce,Nt;function q(){if(Nt)return Ce;Nt=1;let e=V(),s=ie(),p=re(),{isClean:u,my:l}=Ve(),c,a,f,m;function o(i){return i.map(r=>(r.nodes&&(r.nodes=o(r.nodes)),delete r.source,r))}function t(i){if(i[u]=!1,i.proxyOf.nodes)for(let r of i.proxyOf.nodes)t(r)}class n extends p{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(...r){for(let h of r){let d=this.normalize(h,this.last);for(let g of d)this.proxyOf.nodes.push(g)}return this.markDirty(),this}cleanRaws(r){if(super.cleanRaws(r),this.nodes)for(let h of this.nodes)h.cleanRaws(r)}each(r){if(!this.proxyOf.nodes)return;let h=this.getIterator(),d,g;for(;this.indexes[h]<this.proxyOf.nodes.length&&(d=this.indexes[h],g=r(this.proxyOf.nodes[d],d),g!==!1);)this.indexes[h]+=1;return delete this.indexes[h],g}every(r){return this.nodes.every(r)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let r=this.lastEach;return this.indexes[r]=0,r}getProxyProcessor(){return{get(r,h){return h==="proxyOf"?r:r[h]?h==="each"||typeof h=="string"&&h.startsWith("walk")?(...d)=>r[h](...d.map(g=>typeof g=="function"?(S,w)=>g(S.toProxy(),w):g)):h==="every"||h==="some"?d=>r[h]((g,...S)=>d(g.toProxy(),...S)):h==="root"?()=>r.root().toProxy():h==="nodes"?r.nodes.map(d=>d.toProxy()):h==="first"||h==="last"?r[h].toProxy():r[h]:r[h]},set(r,h,d){return r[h]===d||(r[h]=d,(h==="name"||h==="params"||h==="selector")&&r.markDirty()),!0}}}index(r){return typeof r=="number"?r:(r.proxyOf&&(r=r.proxyOf),this.proxyOf.nodes.indexOf(r))}insertAfter(r,h){let d=this.index(r),g=this.normalize(h,this.proxyOf.nodes[d]).reverse();d=this.index(r);for(let w of g)this.proxyOf.nodes.splice(d+1,0,w);let S;for(let w in this.indexes)S=this.indexes[w],d<S&&(this.indexes[w]=S+g.length);return this.markDirty(),this}insertBefore(r,h){let d=this.index(r),g=d===0?"prepend":!1,S=this.normalize(h,this.proxyOf.nodes[d],g).reverse();d=this.index(r);for(let C of S)this.proxyOf.nodes.splice(d,0,C);let w;for(let C in this.indexes)w=this.indexes[C],d<=w&&(this.indexes[C]=w+S.length);return this.markDirty(),this}normalize(r,h){if(typeof r=="string")r=o(a(r).nodes);else if(typeof r=="undefined")r=[];else if(Array.isArray(r)){r=r.slice(0);for(let g of r)g.parent&&g.parent.removeChild(g,"ignore")}else if(r.type==="root"&&this.type!=="document"){r=r.nodes.slice(0);for(let g of r)g.parent&&g.parent.removeChild(g,"ignore")}else if(r.type)r=[r];else if(r.prop){if(typeof r.value=="undefined")throw new Error("Value field is missed in node creation");typeof r.value!="string"&&(r.value=String(r.value)),r=[new s(r)]}else if(r.selector||r.selectors)r=[new m(r)];else if(r.name)r=[new c(r)];else if(r.text)r=[new e(r)];else throw new Error("Unknown node type in node creation");return r.map(g=>(g[l]||n.rebuild(g),g=g.proxyOf,g.parent&&g.parent.removeChild(g),g[u]&&t(g),g.raws||(g.raws={}),typeof g.raws.before=="undefined"&&h&&typeof h.raws.before!="undefined"&&(g.raws.before=h.raws.before.replace(/\S/g,"")),g.parent=this.proxyOf,g))}prepend(...r){r=r.reverse();for(let h of r){let d=this.normalize(h,this.first,"prepend").reverse();for(let g of d)this.proxyOf.nodes.unshift(g);for(let g in this.indexes)this.indexes[g]=this.indexes[g]+d.length}return this.markDirty(),this}push(r){return r.parent=this,this.proxyOf.nodes.push(r),this}removeAll(){for(let r of this.proxyOf.nodes)r.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(r){r=this.index(r),this.proxyOf.nodes[r].parent=void 0,this.proxyOf.nodes.splice(r,1);let h;for(let d in this.indexes)h=this.indexes[d],h>=r&&(this.indexes[d]=h-1);return this.markDirty(),this}replaceValues(r,h,d){return d||(d=h,h={}),this.walkDecls(g=>{h.props&&!h.props.includes(g.prop)||h.fast&&!g.value.includes(h.fast)||(g.value=g.value.replace(r,d))}),this.markDirty(),this}some(r){return this.nodes.some(r)}walk(r){return this.each((h,d)=>{let g;try{g=r(h,d)}catch(S){throw h.addToError(S)}return g!==!1&&h.walk&&(g=h.walk(r)),g})}walkAtRules(r,h){return h?r instanceof RegExp?this.walk((d,g)=>{if(d.type==="atrule"&&r.test(d.name))return h(d,g)}):this.walk((d,g)=>{if(d.type==="atrule"&&d.name===r)return h(d,g)}):(h=r,this.walk((d,g)=>{if(d.type==="atrule")return h(d,g)}))}walkComments(r){return this.walk((h,d)=>{if(h.type==="comment")return r(h,d)})}walkDecls(r,h){return h?r instanceof RegExp?this.walk((d,g)=>{if(d.type==="decl"&&r.test(d.prop))return h(d,g)}):this.walk((d,g)=>{if(d.type==="decl"&&d.prop===r)return h(d,g)}):(h=r,this.walk((d,g)=>{if(d.type==="decl")return h(d,g)}))}walkRules(r,h){return h?r instanceof RegExp?this.walk((d,g)=>{if(d.type==="rule"&&r.test(d.selector))return h(d,g)}):this.walk((d,g)=>{if(d.type==="rule"&&d.selector===r)return h(d,g)}):(h=r,this.walk((d,g)=>{if(d.type==="rule")return h(d,g)}))}}return n.registerParse=i=>{a=i},n.registerRule=i=>{m=i},n.registerAtRule=i=>{c=i},n.registerRoot=i=>{f=i},Ce=n,n.default=n,n.rebuild=i=>{i.type==="atrule"?Object.setPrototypeOf(i,c.prototype):i.type==="rule"?Object.setPrototypeOf(i,m.prototype):i.type==="decl"?Object.setPrototypeOf(i,s.prototype):i.type==="comment"?Object.setPrototypeOf(i,e.prototype):i.type==="root"&&Object.setPrototypeOf(i,f.prototype),i[l]=!0,i.nodes&&i.nodes.forEach(r=>{n.rebuild(r)})},Ce}var xe,It;function Ge(){if(It)return xe;It=1;let e=q();class s extends e{constructor(u){super(u),this.type="atrule"}append(...u){return this.proxyOf.nodes||(this.nodes=[]),super.append(...u)}prepend(...u){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...u)}}return xe=s,s.default=s,e.registerAtRule(s),xe}var ve,_t;function He(){if(_t)return ve;_t=1;let e=q(),s,p;class u extends e{constructor(c){super(L({type:"document"},c)),this.nodes||(this.nodes=[])}toResult(c={}){return new s(new p,this,c).stringify()}}return u.registerLazyResult=l=>{s=l},u.registerProcessor=l=>{p=l},ve=u,u.default=u,ve}var Re,Dt;function ni(){if(Dt)return Re;Dt=1;let e="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";return Re={nanoid:(u=21)=>{let l="",c=u|0;for(;c--;)l+=e[Math.random()*64|0];return l},customAlphabet:(u,l=21)=>(c=l)=>{let a="",f=c|0;for(;f--;)a+=u[Math.random()*u.length|0];return a}},Re}var Ee,Tt;function rr(){if(Tt)return Ee;Tt=1;let{existsSync:e,readFileSync:s}=k,{dirname:p,join:u}=k,{SourceMapConsumer:l,SourceMapGenerator:c}=k;function a(m){return Buffer?Buffer.from(m,"base64").toString():window.atob(m)}class f{constructor(o,t){if(t.map===!1)return;this.loadAnnotation(o),this.inline=this.startWith(this.annotation,"data:");let n=t.map?t.map.prev:void 0,i=this.loadMap(t.from,n);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=p(this.mapFile)),i&&(this.text=i)}consumer(){return this.consumerCache||(this.consumerCache=new l(this.text)),this.consumerCache}decodeInline(o){let t=/^data:application\/json;charset=utf-?8;base64,/,n=/^data:application\/json;base64,/,i=/^data:application\/json;charset=utf-?8,/,r=/^data:application\/json,/,h=o.match(i)||o.match(r);if(h)return decodeURIComponent(o.substr(h[0].length));let d=o.match(t)||o.match(n);if(d)return a(o.substr(d[0].length));let g=o.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+g)}getAnnotationURL(o){return o.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(o){return typeof o!="object"?!1:typeof o.mappings=="string"||typeof o._mappings=="string"||Array.isArray(o.sections)}loadAnnotation(o){let t=o.match(/\/\*\s*# sourceMappingURL=/g);if(!t)return;let n=o.lastIndexOf(t.pop()),i=o.indexOf("*/",n);n>-1&&i>-1&&(this.annotation=this.getAnnotationURL(o.substring(n,i)))}loadFile(o){if(this.root=p(o),e(o))return this.mapFile=o,s(o,"utf-8").toString().trim()}loadMap(o,t){if(t===!1)return!1;if(t){if(typeof t=="string")return t;if(typeof t=="function"){let n=t(o);if(n){let i=this.loadFile(n);if(!i)throw new Error("Unable to load previous source map: "+n.toString());return i}}else{if(t instanceof l)return c.fromSourceMap(t).toString();if(t instanceof c)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 n=this.annotation;return o&&(n=u(p(o),n)),this.loadFile(n)}}}startWith(o,t){return o?o.substr(0,t.length)===t:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}}return Ee=f,f.default=f,Ee}var Oe,kt;function se(){if(kt)return Oe;kt=1;let{nanoid:e}=ni(),{isAbsolute:s,resolve:p}=k,{SourceMapConsumer:u,SourceMapGenerator:l}=k,{fileURLToPath:c,pathToFileURL:a}=k,f=je(),m=rr(),o=k,t=Symbol("lineToIndexCache"),n=!!(u&&l),i=!!(p&&s);function r(d){if(d[t])return d[t];let g=d.css.split(`
23
+ `),S=new Array(g.length),w=0;for(let C=0,v=g.length;C<v;C++)S[C]=w,w+=g[C].length+1;return d[t]=S,S}class h{get from(){return this.file||this.id}constructor(g,S={}){if(g===null||typeof g=="undefined"||typeof g=="object"&&!g.toString)throw new Error(`PostCSS received ${g} instead of CSS string`);if(this.css=g.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,S.document&&(this.document=S.document.toString()),S.from&&(!i||/^\w+:\/\//.test(S.from)||s(S.from)?this.file=S.from:this.file=p(S.from)),i&&n){let w=new m(this.css,S);if(w.text){this.map=w;let C=w.consumer().file;!this.file&&C&&(this.file=this.mapResolve(C))}}this.file||(this.id="<input css "+e(6)+">"),this.map&&(this.map.file=this.from)}error(g,S,w,C={}){let v,y,b,x,R;if(S&&typeof S=="object"){let E=S,D=w;if(typeof E.offset=="number"){x=E.offset;let N=this.fromOffset(x);S=N.line,w=N.col}else S=E.line,w=E.column,x=this.fromLineAndColumn(S,w);if(typeof D.offset=="number"){b=D.offset;let N=this.fromOffset(b);y=N.line,v=N.col}else y=D.line,v=D.column,b=this.fromLineAndColumn(D.line,D.column)}else if(w)x=this.fromLineAndColumn(S,w);else{x=S;let E=this.fromOffset(x);S=E.line,w=E.col}let P=this.origin(S,w,y,v);return P?R=new f(g,P.endLine===void 0?P.line:{column:P.column,line:P.line},P.endLine===void 0?P.column:{column:P.endColumn,line:P.endLine},P.source,P.file,C.plugin):R=new f(g,y===void 0?S:{column:w,line:S},y===void 0?w:{column:v,line:y},this.css,this.file,C.plugin),R.input={column:w,endColumn:v,endLine:y,endOffset:b,line:S,offset:x,source:this.css},this.file&&(a&&(R.input.url=a(this.file).toString()),R.input.file=this.file),R}fromLineAndColumn(g,S){return r(this)[g-1]+S-1}fromOffset(g){let S=r(this),w=S[S.length-1],C=0;if(g>=w)C=S.length-1;else{let v=S.length-2,y;for(;C<v;)if(y=C+(v-C>>1),g<S[y])v=y-1;else if(g>=S[y+1])C=y+1;else{C=y;break}}return{col:g-S[C]+1,line:C+1}}mapResolve(g){return/^\w+:\/\//.test(g)?g:p(this.map.consumer().sourceRoot||this.map.root||".",g)}origin(g,S,w,C){if(!this.map)return!1;let v=this.map.consumer(),y=v.originalPositionFor({column:S,line:g});if(!y.source)return!1;let b;typeof w=="number"&&(b=v.originalPositionFor({column:C,line:w}));let x;s(y.source)?x=a(y.source):x=new URL(y.source,this.map.consumer().sourceRoot||a(this.map.mapFile));let R={column:y.column,endColumn:b&&b.column,endLine:b&&b.line,line:y.line,url:x.toString()};if(x.protocol==="file:")if(c)R.file=c(x);else throw new Error("file: protocol is not available in this PostCSS build");let P=v.sourceContentFor(y.source);return P&&(R.source=P),R}toJSON(){let g={};for(let S of["hasBOM","css","file","id"])this[S]!=null&&(g[S]=this[S]);return this.map&&(g.map=L({},this.map),g.map.consumerCache&&(g.map.consumerCache=void 0)),g}}return Oe=h,h.default=h,o&&o.registerInput&&o.registerInput(h),Oe}var Pe,Lt;function G(){if(Lt)return Pe;Lt=1;let e=q(),s,p;class u extends e{constructor(c){super(c),this.type="root",this.nodes||(this.nodes=[])}normalize(c,a,f){let m=super.normalize(c);if(a){if(f==="prepend")this.nodes.length>1?a.raws.before=this.nodes[1].raws.before:delete a.raws.before;else if(this.first!==a)for(let o of m)o.raws.before=a.raws.before}return m}removeChild(c,a){let f=this.index(c);return!a&&f===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[f].raws.before),super.removeChild(c)}toResult(c={}){return new s(new p,this,c).stringify()}}return u.registerLazyResult=l=>{s=l},u.registerProcessor=l=>{p=l},Pe=u,u.default=u,e.registerRoot(u),Pe}var Ae,Bt;function ir(){if(Bt)return Ae;Bt=1;let e={comma(s){return e.split(s,[","],!0)},space(s){let p=[" ",`
24
+ `," "];return e.split(s,p)},split(s,p,u){let l=[],c="",a=!1,f=0,m=!1,o="",t=!1;for(let n of s)t?t=!1:n==="\\"?t=!0:m?n===o&&(m=!1):n==='"'||n==="'"?(m=!0,o=n):n==="("?f+=1:n===")"?f>0&&(f-=1):f===0&&p.includes(n)&&(a=!0),a?(c!==""&&l.push(c.trim()),c="",a=!1):c+=n;return(u||c!=="")&&l.push(c.trim()),l}};return Ae=e,e.default=e,Ae}var Me,Ut;function Je(){if(Ut)return Me;Ut=1;let e=q(),s=ir();class p extends e{get selectors(){return s.comma(this.selector)}set selectors(l){let c=this.selector?this.selector.match(/,\s*/):null,a=c?c[0]:","+this.raw("between","beforeOpen");this.selector=l.join(a)}constructor(l){super(l),this.type="rule",this.nodes||(this.nodes=[])}}return Me=p,p.default=p,e.registerRule(p),Me}var Ne,zt;function oi(){if(zt)return Ne;zt=1;let e=Ge(),s=V(),p=ie(),u=se(),l=rr(),c=G(),a=Je();function f(m,o){if(Array.isArray(m))return m.map(h=>f(h));let i=m,{inputs:t}=i,n=ue(i,["inputs"]);if(t){o=[];for(let h of t){let d=j(L({},h),{__proto__:u.prototype});d.map&&(d.map=j(L({},d.map),{__proto__:l.prototype})),o.push(d)}}if(n.nodes&&(n.nodes=m.nodes.map(h=>f(h,o))),n.source){let r=n.source,{inputId:h}=r,d=ue(r,["inputId"]);n.source=d,h!=null&&(n.source.input=o[h])}if(n.type==="root")return new c(n);if(n.type==="decl")return new p(n);if(n.type==="rule")return new a(n);if(n.type==="comment")return new s(n);if(n.type==="atrule")return new e(n);throw new Error("Unknown node type: "+m.type)}return Ne=f,f.default=f,Ne}var Ie,Ft;function sr(){if(Ft)return Ie;Ft=1;let{dirname:e,relative:s,resolve:p,sep:u}=k,{SourceMapConsumer:l,SourceMapGenerator:c}=k,{pathToFileURL:a}=k,f=se(),m=!!(l&&c),o=!!(e&&p&&s&&u);class t{constructor(i,r,h,d){this.stringify=i,this.mapOpts=h.map||{},this.root=r,this.opts=h,this.css=d,this.originalCSS=d,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let i;this.isInline()?i="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?i=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?i=this.mapOpts.annotation(this.opts.to,this.root):i=this.outputFile()+".map";let r=`
25
25
  `;this.css.includes(`\r
26
26
  `)&&(r=`\r
27
27
  `),this.css+=r+"/*# sourceMappingURL="+i+" */"}applyPrevMaps(){for(let i of this.previous()){let r=this.toUrl(this.path(i.file)),h=i.root||e(i.file),d;this.mapOpts.sourcesContent===!1?(d=new l(i.text),d.sourcesContent&&(d.sourcesContent=null)):d=i.consumer(),this.map.applySourceMap(d,r,this.toUrl(this.path(h)))}}clearAnnotation(){if(this.mapOpts.annotation!==!1)if(this.root){let i;for(let r=this.root.nodes.length-1;r>=0;r--)i=this.root.nodes[r],i.type==="comment"&&i.text.startsWith("# sourceMappingURL=")&&this.root.removeChild(r)}else this.css&&(this.css=this.css.replace(/\n*\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),o&&m&&this.isMap())return this.generateMap();{let i="";return this.stringify(this.root,r=>{i+=r}),[i]}}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let i=this.previous()[0].consumer();i.file=this.outputFile(),this.map=c.fromSourceMap(i,{ignoreInvalidMapping:!0})}else this.map=new c({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 c({file:this.outputFile(),ignoreInvalidMapping:!0});let i=1,r=1,h="<no source>",d={generated:{column:0,line:0},original:{column:0,line:0},source:""},g,S;this.stringify(this.root,(w,C,v)=>{if(this.css+=w,C&&v!=="end"&&(d.generated.line=i,d.generated.column=r-1,C.source&&C.source.start?(d.source=this.sourcePath(C),d.original.line=C.source.start.line,d.original.column=C.source.start.column-1,this.map.addMapping(d)):(d.source=h,d.original.line=1,d.original.column=0,this.map.addMapping(d))),S=w.match(/\n/g),S?(i+=S.length,g=w.lastIndexOf(`
28
- `),r=w.length-g):r+=w.length,C&&v!=="start"){let y=C.parent||{raws:{}};(!(C.type==="decl"||C.type==="atrule"&&!C.nodes)||C!==y.last||y.raws.semicolon)&&(C.source&&C.source.end?(d.source=this.sourcePath(C),d.original.line=C.source.end.line,d.original.column=C.source.end.column-1,d.generated.line=i,d.generated.column=r-2,this.map.addMapping(d)):(d.source=h,d.original.line=1,d.original.column=0,d.generated.line=i,d.generated.column=r-1,this.map.addMapping(d)))}})}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation!="undefined"?this.mapOpts.annotation:this.previous().length?this.previous().some(i=>i.annotation):!0}isInline(){if(typeof this.mapOpts.inline!="undefined")return this.mapOpts.inline;let i=this.mapOpts.annotation;return typeof i!="undefined"&&i!==!0?!1:this.previous().length?this.previous().some(r=>r.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(i=>i.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(i){if(this.mapOpts.absolute||i.charCodeAt(0)===60||/^\w+:\/\//.test(i))return i;let r=this.memoizedPaths.get(i);if(r)return r;let h=this.opts.to?e(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(h=e(p(h,this.mapOpts.annotation)));let d=s(h,i);return this.memoizedPaths.set(i,d),d}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(i=>{if(i.source&&i.source.input.map){let r=i.source.input.map;this.previousMaps.includes(r)||this.previousMaps.push(r)}});else{let i=new f(this.originalCSS,this.opts);i.map&&this.previousMaps.push(i.map)}return this.previousMaps}setSourcesContent(){let i={};if(this.root)this.root.walk(r=>{if(r.source){let h=r.source.input.from;if(h&&!i[h]){i[h]=!0;let d=this.usesFileUrls?this.toFileUrl(h):this.toUrl(this.path(h));this.map.setSourceContent(d,r.source.input.css)}}});else if(this.css){let r=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(r,this.css)}}sourcePath(i){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(i.source.input.from):this.toUrl(this.path(i.source.input.from))}toBase64(i){return Buffer?Buffer.from(i).toString("base64"):window.btoa(unescape(encodeURIComponent(i)))}toFileUrl(i){let r=this.memoizedFileURLs.get(i);if(r)return r;if(a){let h=a(i).toString();return this.memoizedFileURLs.set(i,h),h}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(i){let r=this.memoizedURLs.get(i);if(r)return r;u==="\\"&&(i=i.replace(/\\/g,"/"));let h=encodeURI(i).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(i,h),h}}return Ie=t,Ie}var _e,qt;function sr(){if(qt)return _e;qt=1;let e=39,s=34,p=92,u=47,l=10,c=32,a=12,f=9,m=13,o=91,t=93,n=40,i=41,r=123,h=125,d=59,g=42,S=58,w=64,C=/[\t\n\f\r "#'()/;[\\\]{}]/g,v=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,y=/.[\r\n"'(/\\]/,b=/[\da-f]/i;return _e=function(R,P={}){let E=R.css.valueOf(),D=P.ignoreErrors,N,se,H,O,Xe,T,B,W,U,et,tt=E.length,A=0,ne=[],J=[];function fr(){return A}function oe($){throw R.error("Unclosed "+$,A)}function cr(){return J.length===0&&A>=tt}function hr($){if(J.length)return J.pop();if(A>=tt)return;let le=$?$.ignoreUnclosed:!1;switch(N=E.charCodeAt(A),N){case l:case c:case f:case m:case a:{O=A;do O+=1,N=E.charCodeAt(O);while(N===c||N===l||N===f||N===m||N===a);T=["space",E.slice(A,O)],A=O-1;break}case o:case t:case r:case h:case S:case d:case i:{let rt=String.fromCharCode(N);T=[rt,rt,A];break}case n:{if(et=ne.length?ne.pop()[1]:"",U=E.charCodeAt(A+1),et==="url"&&U!==e&&U!==s&&U!==c&&U!==l&&U!==f&&U!==a&&U!==m){O=A;do{if(B=!1,O=E.indexOf(")",O+1),O===-1)if(D||le){O=A;break}else oe("bracket");for(W=O;E.charCodeAt(W-1)===p;)W-=1,B=!B}while(B);T=["brackets",E.slice(A,O+1),A,O],A=O}else O=E.indexOf(")",A+1),se=E.slice(A,O+1),O===-1||y.test(se)?T=["(","(",A]:(T=["brackets",se,A,O],A=O);break}case e:case s:{Xe=N===e?"'":'"',O=A;do{if(B=!1,O=E.indexOf(Xe,O+1),O===-1)if(D||le){O=A+1;break}else oe("string");for(W=O;E.charCodeAt(W-1)===p;)W-=1,B=!B}while(B);T=["string",E.slice(A,O+1),A,O],A=O;break}case w:{C.lastIndex=A+1,C.test(E),C.lastIndex===0?O=E.length-1:O=C.lastIndex-2,T=["at-word",E.slice(A,O+1),A,O],A=O;break}case p:{for(O=A,H=!0;E.charCodeAt(O+1)===p;)O+=1,H=!H;if(N=E.charCodeAt(O+1),H&&N!==u&&N!==c&&N!==l&&N!==f&&N!==m&&N!==a&&(O+=1,b.test(E.charAt(O)))){for(;b.test(E.charAt(O+1));)O+=1;E.charCodeAt(O+1)===c&&(O+=1)}T=["word",E.slice(A,O+1),A,O],A=O;break}default:{N===u&&E.charCodeAt(A+1)===g?(O=E.indexOf("*/",A+2)+1,O===0&&(D||le?O=E.length:oe("comment")),T=["comment",E.slice(A,O+1),A,O],A=O):(v.lastIndex=A+1,v.test(E),v.lastIndex===0?O=E.length-1:O=v.lastIndex-2,T=["word",E.slice(A,O+1),A,O],ne.push(T),A=O);break}}return A++,T}function pr($){J.push($)}return{back:pr,endOfFile:cr,nextToken:hr,position:fr}},_e}var De,Ft;function nr(){if(Ft)return De;Ft=1;let e=Ge(),s=V(),p=re(),u=G(),l=Je(),c=sr(),a={empty:!0,space:!0};function f(o){for(let t=o.length-1;t>=0;t--){let n=o[t],i=n[3]||n[2];if(i)return i}}class m{constructor(t){this.input=t,this.root=new u,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:t,start:{column:1,line:1,offset:0}}}atrule(t){let n=new e;n.name=t[1].slice(1),n.name===""&&this.unnamedAtrule(n,t),this.init(n,t[2]);let i,r,h,d=!1,g=!1,S=[],w=[];for(;!this.tokenizer.endOfFile();){if(t=this.tokenizer.nextToken(),i=t[0],i==="("||i==="["?w.push(i==="("?")":"]"):i==="{"&&w.length>0?w.push("}"):i===w[w.length-1]&&w.pop(),w.length===0)if(i===";"){n.source.end=this.getPosition(t[2]),n.source.end.offset++,this.semicolon=!0;break}else if(i==="{"){g=!0;break}else if(i==="}"){if(S.length>0){for(h=S.length-1,r=S[h];r&&r[0]==="space";)r=S[--h];r&&(n.source.end=this.getPosition(r[3]||r[2]),n.source.end.offset++)}this.end(t);break}else S.push(t);else S.push(t);if(this.tokenizer.endOfFile()){d=!0;break}}n.raws.between=this.spacesAndCommentsFromEnd(S),S.length?(n.raws.afterName=this.spacesAndCommentsFromStart(S),this.raw(n,"params",S),d&&(t=S[S.length-1],n.source.end=this.getPosition(t[3]||t[2]),n.source.end.offset++,this.spaces=n.raws.between,n.raws.between="")):(n.raws.afterName="",n.params=""),g&&(n.nodes=[],this.current=n)}checkMissedSemicolon(t){let n=this.colon(t);if(n===!1)return;let i=0,r;for(let h=n-1;h>=0&&(r=t[h],!(r[0]!=="space"&&(i+=1,i===2)));h--);throw this.input.error("Missed semicolon",r[0]==="word"?r[3]+1:r[2])}colon(t){let n=0,i,r,h;for(let[d,g]of t.entries()){if(r=g,h=r[0],h==="("&&(n+=1),h===")"&&(n-=1),n===0&&h===":")if(!i)this.doubleColon(r);else{if(i[0]==="word"&&i[1]==="progid")continue;return d}i=r}return!1}comment(t){let n=new s;this.init(n,t[2]),n.source.end=this.getPosition(t[3]||t[2]),n.source.end.offset++;let i=t[1].slice(2,-2);if(/^\s*$/.test(i))n.text="",n.raws.left=i,n.raws.right="";else{let r=i.match(/^(\s*)([^]*\S)(\s*)$/);n.text=r[2],n.raws.left=r[1],n.raws.right=r[3]}}createTokenizer(){this.tokenizer=c(this.input)}decl(t,n){let i=new p;this.init(i,t[0][2]);let r=t[t.length-1];for(r[0]===";"&&(this.semicolon=!0,t.pop()),i.source.end=this.getPosition(r[3]||r[2]||f(t)),i.source.end.offset++;t[0][0]!=="word";)t.length===1&&this.unknownWord(t),i.raws.before+=t.shift()[1];for(i.source.start=this.getPosition(t[0][2]),i.prop="";t.length;){let w=t[0][0];if(w===":"||w==="space"||w==="comment")break;i.prop+=t.shift()[1]}i.raws.between="";let h;for(;t.length;)if(h=t.shift(),h[0]===":"){i.raws.between+=h[1];break}else h[0]==="word"&&/\w/.test(h[1])&&this.unknownWord([h]),i.raws.between+=h[1];(i.prop[0]==="_"||i.prop[0]==="*")&&(i.raws.before+=i.prop[0],i.prop=i.prop.slice(1));let d=[],g;for(;t.length&&(g=t[0][0],!(g!=="space"&&g!=="comment"));)d.push(t.shift());this.precheckMissedSemicolon(t);for(let w=t.length-1;w>=0;w--){if(h=t[w],h[1].toLowerCase()==="!important"){i.important=!0;let C=this.stringFrom(t,w);C=this.spacesFromEnd(t)+C,C!==" !important"&&(i.raws.important=C);break}else if(h[1].toLowerCase()==="important"){let C=t.slice(0),v="";for(let y=w;y>0;y--){let b=C[y][0];if(v.trim().startsWith("!")&&b!=="space")break;v=C.pop()[1]+v}v.trim().startsWith("!")&&(i.important=!0,i.raws.important=v,t=C)}if(h[0]!=="space"&&h[0]!=="comment")break}t.some(w=>w[0]!=="space"&&w[0]!=="comment")&&(i.raws.between+=d.map(w=>w[1]).join(""),d=[]),this.raw(i,"value",d.concat(t),n),i.value.includes(":")&&!n&&this.checkMissedSemicolon(t)}doubleColon(t){throw this.input.error("Double colon",{offset:t[2]},{offset:t[2]+t[1].length})}emptyRule(t){let n=new l;this.init(n,t[2]),n.selector="",n.raws.between="",this.current=n}end(t){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(t[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(t)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(t){if(this.spaces+=t[1],this.current.nodes){let n=this.current.nodes[this.current.nodes.length-1];n&&n.type==="rule"&&!n.raws.ownSemicolon&&(n.raws.ownSemicolon=this.spaces,this.spaces="",n.source.end=this.getPosition(t[2]),n.source.end.offset+=n.raws.ownSemicolon.length)}}getPosition(t){let n=this.input.fromOffset(t);return{column:n.col,line:n.line,offset:t}}init(t,n){this.current.push(t),t.source={input:this.input,start:this.getPosition(n)},t.raws.before=this.spaces,this.spaces="",t.type!=="comment"&&(this.semicolon=!1)}other(t){let n=!1,i=null,r=!1,h=null,d=[],g=t[1].startsWith("--"),S=[],w=t;for(;w;){if(i=w[0],S.push(w),i==="("||i==="[")h||(h=w),d.push(i==="("?")":"]");else if(g&&r&&i==="{")h||(h=w),d.push("}");else if(d.length===0)if(i===";")if(r){this.decl(S,g);return}else break;else if(i==="{"){this.rule(S);return}else if(i==="}"){this.tokenizer.back(S.pop()),n=!0;break}else i===":"&&(r=!0);else i===d[d.length-1]&&(d.pop(),d.length===0&&(h=null));w=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(n=!0),d.length>0&&this.unclosedBracket(h),n&&r){if(!g)for(;S.length&&(w=S[S.length-1][0],!(w!=="space"&&w!=="comment"));)this.tokenizer.back(S.pop());this.decl(S,g)}else this.unknownWord(S)}parse(){let t;for(;!this.tokenizer.endOfFile();)switch(t=this.tokenizer.nextToken(),t[0]){case"space":this.spaces+=t[1];break;case";":this.freeSemicolon(t);break;case"}":this.end(t);break;case"comment":this.comment(t);break;case"at-word":this.atrule(t);break;case"{":this.emptyRule(t);break;default:this.other(t);break}this.endFile()}precheckMissedSemicolon(){}raw(t,n,i,r){let h,d,g=i.length,S="",w=!0,C,v;for(let y=0;y<g;y+=1)h=i[y],d=h[0],d==="space"&&y===g-1&&!r?w=!1:d==="comment"?(v=i[y-1]?i[y-1][0]:"empty",C=i[y+1]?i[y+1][0]:"empty",!a[v]&&!a[C]?S.slice(-1)===","?w=!1:S+=h[1]:w=!1):S+=h[1];if(!w){let y=i.reduce((b,x)=>b+x[1],"");t.raws[n]={raw:y,value:S}}t[n]=S}rule(t){t.pop();let n=new l;this.init(n,t[0][2]),n.raws.between=this.spacesAndCommentsFromEnd(t),this.raw(n,"selector",t),this.current=n}spacesAndCommentsFromEnd(t){let n,i="";for(;t.length&&(n=t[t.length-1][0],!(n!=="space"&&n!=="comment"));)i=t.pop()[1]+i;return i}spacesAndCommentsFromStart(t){let n,i="";for(;t.length&&(n=t[0][0],!(n!=="space"&&n!=="comment"));)i+=t.shift()[1];return i}spacesFromEnd(t){let n,i="";for(;t.length&&(n=t[t.length-1][0],n==="space");)i=t.pop()[1]+i;return i}stringFrom(t,n){let i="";for(let r=n;r<t.length;r++)i+=t[r][1];return t.splice(n,t.length-n),i}unclosedBlock(){let t=this.current.source.start;throw this.input.error("Unclosed block",t.line,t.column)}unclosedBracket(t){throw this.input.error("Unclosed bracket",{offset:t[2]},{offset:t[2]+1})}unexpectedClose(t){throw this.input.error("Unexpected }",{offset:t[2]},{offset:t[2]+1})}unknownWord(t){throw this.input.error("Unknown word "+t[0][1],{offset:t[0][2]},{offset:t[0][2]+t[0][1].length})}unnamedAtrule(t,n){throw this.input.error("At-rule without name",{offset:n[2]},{offset:n[2]+n[1].length})}}return De=m,De}var Te,Wt;function Ze(){if(Wt)return Te;Wt=1;let e=F(),s=ie(),p=nr();function u(l,c){let a=new s(l,c),f=new p(a);try{f.parse()}catch(m){throw m}return f.root}return Te=u,u.default=u,e.registerParse(u),Te}var ke,$t;function or(){if($t)return ke;$t=1;class e{constructor(p,u={}){if(this.type="warning",this.text=p,u.node&&u.node.source){let l=u.node.rangeBy(u);this.line=l.start.line,this.column=l.start.column,this.endLine=l.end.line,this.endColumn=l.end.column}for(let l in u)this[l]=u[l]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}}return ke=e,e.default=e,ke}var Le,jt;function Ye(){if(jt)return Le;jt=1;let e=or();class s{get content(){return this.css}constructor(u,l,c){this.processor=u,this.messages=[],this.root=l,this.opts=c,this.css="",this.map=void 0}toString(){return this.css}warn(u,l={}){l.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(l.plugin=this.lastPlugin.postcssPlugin);let c=new e(u,l);return this.messages.push(c),c}warnings(){return this.messages.filter(u=>u.type==="warning")}}return Le=s,s.default=s,Le}var Be,Vt;function lr(){if(Vt)return Be;Vt=1;let e={};return Be=function(p){e[p]||(e[p]=!0,typeof console!="undefined"&&console.warn&&console.warn(p))},Be}var Ue,Gt;function ar(){if(Gt)return Ue;Gt=1;let e=F(),s=He(),p=ir(),u=Ze(),l=Ye(),c=G(),a=ee(),{isClean:f,my:m}=Ve(),o=lr(),t={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},n={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},i={Once:!0,postcssPlugin:!0,prepare:!0},r=0;function h(v){return typeof v=="object"&&typeof v.then=="function"}function d(v){let y=!1,b=t[v.type];return v.type==="decl"?y=v.prop.toLowerCase():v.type==="atrule"&&(y=v.name.toLowerCase()),y&&v.append?[b,b+"-"+y,r,b+"Exit",b+"Exit-"+y]:y?[b,b+"-"+y,b+"Exit",b+"Exit-"+y]:v.append?[b,r,b+"Exit"]:[b,b+"Exit"]}function g(v){let y;return v.type==="document"?y=["Document",r,"DocumentExit"]:v.type==="root"?y=["Root",r,"RootExit"]:y=d(v),{eventIndex:0,events:y,iterator:0,node:v,visitorIndex:0,visitors:[]}}function S(v){return v[f]=!1,v.nodes&&v.nodes.forEach(y=>S(y)),v}let w={};class C{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(y,b,x){this.stringified=!1,this.processed=!1;let R;if(typeof b=="object"&&b!==null&&(b.type==="root"||b.type==="document"))R=S(b);else if(b instanceof C||b instanceof l)R=S(b.root),b.map&&(typeof x.map=="undefined"&&(x.map={}),x.map.inline||(x.map.inline=!1),x.map.prev=b.map);else{let P=u;x.syntax&&(P=x.syntax.parse),x.parser&&(P=x.parser),P.parse&&(P=P.parse);try{R=P(b,x)}catch(E){this.processed=!0,this.error=E}R&&!R[m]&&e.rebuild(R)}this.result=new l(y,R,x),this.helpers=j(L({},w),{postcss:w,result:this.result}),this.plugins=this.processor.plugins.map(P=>typeof P=="object"&&P.prepare?L(L({},P),P.prepare(this.result)):P)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(y){return this.async().catch(y)}finally(y){return this.async().then(y,y)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(y,b){let x=this.result.lastPlugin;try{b&&b.addToError(y),this.error=y,y.name==="CssSyntaxError"&&!y.plugin?(y.plugin=x.postcssPlugin,y.setMessage()):x.postcssVersion}catch(R){console&&console.error&&console.error(R)}return y}prepareVisitors(){this.listeners={};let y=(b,x,R)=>{this.listeners[x]||(this.listeners[x]=[]),this.listeners[x].push([b,R])};for(let b of this.plugins)if(typeof b=="object")for(let x in b){if(!n[x]&&/^[A-Z]/.test(x))throw new Error(`Unknown event ${x} in ${b.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!i[x])if(typeof b[x]=="object")for(let R in b[x])R==="*"?y(b,x,b[x][R]):y(b,x+"-"+R.toLowerCase(),b[x][R]);else typeof b[x]=="function"&&y(b,x,b[x])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let y=0;y<this.plugins.length;y++){let b=this.plugins[y],x=this.runOnRoot(b);if(h(x))try{await x}catch(R){throw this.handleError(R)}}if(this.prepareVisitors(),this.hasListener){let y=this.result.root;for(;!y[f];){y[f]=!0;let b=[g(y)];for(;b.length>0;){let x=this.visitTick(b);if(h(x))try{await x}catch(R){let P=b[b.length-1].node;throw this.handleError(R,P)}}}if(this.listeners.OnceExit)for(let[b,x]of this.listeners.OnceExit){this.result.lastPlugin=b;try{if(y.type==="document"){let R=y.nodes.map(P=>x(P,this.helpers));await Promise.all(R)}else await x(y,this.helpers)}catch(R){throw this.handleError(R)}}}return this.processed=!0,this.stringify()}runOnRoot(y){this.result.lastPlugin=y;try{if(typeof y=="object"&&y.Once){if(this.result.root.type==="document"){let b=this.result.root.nodes.map(x=>y.Once(x,this.helpers));return h(b[0])?Promise.all(b):b}return y.Once(this.result.root,this.helpers)}else if(typeof y=="function")return y(this.result.root,this.result)}catch(b){throw this.handleError(b)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let y=this.result.opts,b=a;y.syntax&&(b=y.syntax.stringify),y.stringifier&&(b=y.stringifier),b.stringify&&(b=b.stringify);let R=new p(b,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 y of this.plugins){let b=this.runOnRoot(y);if(h(b))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let y=this.result.root;for(;!y[f];)y[f]=!0,this.walkSync(y);if(this.listeners.OnceExit)if(y.type==="document")for(let b of y.nodes)this.visitSync(this.listeners.OnceExit,b);else this.visitSync(this.listeners.OnceExit,y)}return this.result}then(y,b){return this.async().then(y,b)}toString(){return this.css}visitSync(y,b){for(let[x,R]of y){this.result.lastPlugin=x;let P;try{P=R(b,this.helpers)}catch(E){throw this.handleError(E,b.proxyOf)}if(b.type!=="root"&&b.type!=="document"&&!b.parent)return!0;if(h(P))throw this.getAsyncError()}}visitTick(y){let b=y[y.length-1],{node:x,visitors:R}=b;if(x.type!=="root"&&x.type!=="document"&&!x.parent){y.pop();return}if(R.length>0&&b.visitorIndex<R.length){let[E,D]=R[b.visitorIndex];b.visitorIndex+=1,b.visitorIndex===R.length&&(b.visitors=[],b.visitorIndex=0),this.result.lastPlugin=E;try{return D(x.toProxy(),this.helpers)}catch(N){throw this.handleError(N,x)}}if(b.iterator!==0){let E=b.iterator,D;for(;D=x.nodes[x.indexes[E]];)if(x.indexes[E]+=1,!D[f]){D[f]=!0,y.push(g(D));return}b.iterator=0,delete x.indexes[E]}let P=b.events;for(;b.eventIndex<P.length;){let E=P[b.eventIndex];if(b.eventIndex+=1,E===r){x.nodes&&x.nodes.length&&(x[f]=!0,b.iterator=x.getIterator());return}else if(this.listeners[E]){b.visitors=this.listeners[E];return}}y.pop()}walkSync(y){y[f]=!0;let b=d(y);for(let x of b)if(x===r)y.nodes&&y.each(R=>{R[f]||this.walkSync(R)});else{let R=this.listeners[x];if(R&&this.visitSync(R,y.toProxy()))return}}warnings(){return this.sync().warnings()}}return C.registerPostcss=v=>{w=v},Ue=C,C.default=C,c.registerLazyResult(C),s.registerLazyResult(C),Ue}var ze,Ht;function li(){if(Ht)return ze;Ht=1;let e=ir(),s=Ze(),p=Ye(),u=ee(),l=lr();class c{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 f,m=s;try{f=m(this._css,this._opts)}catch(o){this.error=o}if(this.error)throw this.error;return this._root=f,f}get[Symbol.toStringTag](){return"NoWorkResult"}constructor(f,m,o){m=m.toString(),this.stringified=!1,this._processor=f,this._css=m,this._opts=o,this._map=void 0;let t,n=u;this.result=new p(this._processor,t,this._opts),this.result.css=m;let i=this;Object.defineProperty(this.result,"root",{get(){return i.root}});let r=new e(n,t,this._opts,m);if(r.isMap()){let[h,d]=r.generate();h&&(this.result.css=h),d&&(this.result.map=d)}else r.clearAnnotation(),this.result.css=r.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(f){return this.async().catch(f)}finally(f){return this.async().then(f,f)}sync(){if(this.error)throw this.error;return this.result}then(f,m){return this.async().then(f,m)}toString(){return this._css}warnings(){return[]}}return ze=c,c.default=c,ze}var qe,Jt;function ai(){if(Jt)return qe;Jt=1;let e=He(),s=ar(),p=li(),u=G();class l{constructor(a=[]){this.version="8.5.6",this.plugins=this.normalize(a)}normalize(a){let f=[];for(let m of a)if(m.postcss===!0?m=m():m.postcss&&(m=m.postcss),typeof m=="object"&&Array.isArray(m.plugins))f=f.concat(m.plugins);else if(typeof m=="object"&&m.postcssPlugin)f.push(m);else if(typeof m=="function")f.push(m);else if(!(typeof m=="object"&&(m.parse||m.stringify)))throw new Error(m+" is not a PostCSS plugin");return f}process(a,f={}){return!this.plugins.length&&!f.parser&&!f.stringifier&&!f.syntax?new p(this,a,f):new s(this,a,f)}use(a){return this.plugins=this.plugins.concat(this.normalize([a])),this}}return qe=l,l.default=l,u.registerProcessor(l),e.registerProcessor(l),qe}var Fe,Zt;function ur(){if(Zt)return Fe;Zt=1;let e=Ge(),s=V(),p=F(),u=je(),l=re(),c=He(),a=oi(),f=ie(),m=ar(),o=rr(),t=te(),n=Ze(),i=ai(),r=Ye(),h=G(),d=Je(),g=ee(),S=or();function w(...C){return C.length===1&&Array.isArray(C[0])&&(C=C[0]),new i(C)}return w.plugin=function(v,y){let b=!1;function x(...P){console&&console.warn&&!b&&(b=!0,console.warn(v+`: postcss.plugin was deprecated. Migration guide:
28
+ `),r=w.length-g):r+=w.length,C&&v!=="start"){let y=C.parent||{raws:{}};(!(C.type==="decl"||C.type==="atrule"&&!C.nodes)||C!==y.last||y.raws.semicolon)&&(C.source&&C.source.end?(d.source=this.sourcePath(C),d.original.line=C.source.end.line,d.original.column=C.source.end.column-1,d.generated.line=i,d.generated.column=r-2,this.map.addMapping(d)):(d.source=h,d.original.line=1,d.original.column=0,d.generated.line=i,d.generated.column=r-1,this.map.addMapping(d)))}})}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation!="undefined"?this.mapOpts.annotation:this.previous().length?this.previous().some(i=>i.annotation):!0}isInline(){if(typeof this.mapOpts.inline!="undefined")return this.mapOpts.inline;let i=this.mapOpts.annotation;return typeof i!="undefined"&&i!==!0?!1:this.previous().length?this.previous().some(r=>r.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(i=>i.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(i){if(this.mapOpts.absolute||i.charCodeAt(0)===60||/^\w+:\/\//.test(i))return i;let r=this.memoizedPaths.get(i);if(r)return r;let h=this.opts.to?e(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(h=e(p(h,this.mapOpts.annotation)));let d=s(h,i);return this.memoizedPaths.set(i,d),d}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(i=>{if(i.source&&i.source.input.map){let r=i.source.input.map;this.previousMaps.includes(r)||this.previousMaps.push(r)}});else{let i=new f(this.originalCSS,this.opts);i.map&&this.previousMaps.push(i.map)}return this.previousMaps}setSourcesContent(){let i={};if(this.root)this.root.walk(r=>{if(r.source){let h=r.source.input.from;if(h&&!i[h]){i[h]=!0;let d=this.usesFileUrls?this.toFileUrl(h):this.toUrl(this.path(h));this.map.setSourceContent(d,r.source.input.css)}}});else if(this.css){let r=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(r,this.css)}}sourcePath(i){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(i.source.input.from):this.toUrl(this.path(i.source.input.from))}toBase64(i){return Buffer?Buffer.from(i).toString("base64"):window.btoa(unescape(encodeURIComponent(i)))}toFileUrl(i){let r=this.memoizedFileURLs.get(i);if(r)return r;if(a){let h=a(i).toString();return this.memoizedFileURLs.set(i,h),h}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(i){let r=this.memoizedURLs.get(i);if(r)return r;u==="\\"&&(i=i.replace(/\\/g,"/"));let h=encodeURI(i).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(i,h),h}}return Ie=t,Ie}var _e,qt;function nr(){if(qt)return _e;qt=1;let e=39,s=34,p=92,u=47,l=10,c=32,a=12,f=9,m=13,o=91,t=93,n=40,i=41,r=123,h=125,d=59,g=42,S=58,w=64,C=/[\t\n\f\r "#'()/;[\\\]{}]/g,v=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,y=/.[\r\n"'(/\\]/,b=/[\da-f]/i;return _e=function(R,P={}){let E=R.css.valueOf(),D=P.ignoreErrors,N,ne,H,O,Xe,T,B,W,U,et,tt=E.length,A=0,oe=[],J=[];function cr(){return A}function le($){throw R.error("Unclosed "+$,A)}function hr(){return J.length===0&&A>=tt}function pr($){if(J.length)return J.pop();if(A>=tt)return;let ae=$?$.ignoreUnclosed:!1;switch(N=E.charCodeAt(A),N){case l:case c:case f:case m:case a:{O=A;do O+=1,N=E.charCodeAt(O);while(N===c||N===l||N===f||N===m||N===a);T=["space",E.slice(A,O)],A=O-1;break}case o:case t:case r:case h:case S:case d:case i:{let rt=String.fromCharCode(N);T=[rt,rt,A];break}case n:{if(et=oe.length?oe.pop()[1]:"",U=E.charCodeAt(A+1),et==="url"&&U!==e&&U!==s&&U!==c&&U!==l&&U!==f&&U!==a&&U!==m){O=A;do{if(B=!1,O=E.indexOf(")",O+1),O===-1)if(D||ae){O=A;break}else le("bracket");for(W=O;E.charCodeAt(W-1)===p;)W-=1,B=!B}while(B);T=["brackets",E.slice(A,O+1),A,O],A=O}else O=E.indexOf(")",A+1),ne=E.slice(A,O+1),O===-1||y.test(ne)?T=["(","(",A]:(T=["brackets",ne,A,O],A=O);break}case e:case s:{Xe=N===e?"'":'"',O=A;do{if(B=!1,O=E.indexOf(Xe,O+1),O===-1)if(D||ae){O=A+1;break}else le("string");for(W=O;E.charCodeAt(W-1)===p;)W-=1,B=!B}while(B);T=["string",E.slice(A,O+1),A,O],A=O;break}case w:{C.lastIndex=A+1,C.test(E),C.lastIndex===0?O=E.length-1:O=C.lastIndex-2,T=["at-word",E.slice(A,O+1),A,O],A=O;break}case p:{for(O=A,H=!0;E.charCodeAt(O+1)===p;)O+=1,H=!H;if(N=E.charCodeAt(O+1),H&&N!==u&&N!==c&&N!==l&&N!==f&&N!==m&&N!==a&&(O+=1,b.test(E.charAt(O)))){for(;b.test(E.charAt(O+1));)O+=1;E.charCodeAt(O+1)===c&&(O+=1)}T=["word",E.slice(A,O+1),A,O],A=O;break}default:{N===u&&E.charCodeAt(A+1)===g?(O=E.indexOf("*/",A+2)+1,O===0&&(D||ae?O=E.length:le("comment")),T=["comment",E.slice(A,O+1),A,O],A=O):(v.lastIndex=A+1,v.test(E),v.lastIndex===0?O=E.length-1:O=v.lastIndex-2,T=["word",E.slice(A,O+1),A,O],oe.push(T),A=O);break}}return A++,T}function dr($){J.push($)}return{back:dr,endOfFile:hr,nextToken:pr,position:cr}},_e}var De,Wt;function or(){if(Wt)return De;Wt=1;let e=Ge(),s=V(),p=ie(),u=G(),l=Je(),c=nr(),a={empty:!0,space:!0};function f(o){for(let t=o.length-1;t>=0;t--){let n=o[t],i=n[3]||n[2];if(i)return i}}class m{constructor(t){this.input=t,this.root=new u,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:t,start:{column:1,line:1,offset:0}}}atrule(t){let n=new e;n.name=t[1].slice(1),n.name===""&&this.unnamedAtrule(n,t),this.init(n,t[2]);let i,r,h,d=!1,g=!1,S=[],w=[];for(;!this.tokenizer.endOfFile();){if(t=this.tokenizer.nextToken(),i=t[0],i==="("||i==="["?w.push(i==="("?")":"]"):i==="{"&&w.length>0?w.push("}"):i===w[w.length-1]&&w.pop(),w.length===0)if(i===";"){n.source.end=this.getPosition(t[2]),n.source.end.offset++,this.semicolon=!0;break}else if(i==="{"){g=!0;break}else if(i==="}"){if(S.length>0){for(h=S.length-1,r=S[h];r&&r[0]==="space";)r=S[--h];r&&(n.source.end=this.getPosition(r[3]||r[2]),n.source.end.offset++)}this.end(t);break}else S.push(t);else S.push(t);if(this.tokenizer.endOfFile()){d=!0;break}}n.raws.between=this.spacesAndCommentsFromEnd(S),S.length?(n.raws.afterName=this.spacesAndCommentsFromStart(S),this.raw(n,"params",S),d&&(t=S[S.length-1],n.source.end=this.getPosition(t[3]||t[2]),n.source.end.offset++,this.spaces=n.raws.between,n.raws.between="")):(n.raws.afterName="",n.params=""),g&&(n.nodes=[],this.current=n)}checkMissedSemicolon(t){let n=this.colon(t);if(n===!1)return;let i=0,r;for(let h=n-1;h>=0&&(r=t[h],!(r[0]!=="space"&&(i+=1,i===2)));h--);throw this.input.error("Missed semicolon",r[0]==="word"?r[3]+1:r[2])}colon(t){let n=0,i,r,h;for(let[d,g]of t.entries()){if(r=g,h=r[0],h==="("&&(n+=1),h===")"&&(n-=1),n===0&&h===":")if(!i)this.doubleColon(r);else{if(i[0]==="word"&&i[1]==="progid")continue;return d}i=r}return!1}comment(t){let n=new s;this.init(n,t[2]),n.source.end=this.getPosition(t[3]||t[2]),n.source.end.offset++;let i=t[1].slice(2,-2);if(/^\s*$/.test(i))n.text="",n.raws.left=i,n.raws.right="";else{let r=i.match(/^(\s*)([^]*\S)(\s*)$/);n.text=r[2],n.raws.left=r[1],n.raws.right=r[3]}}createTokenizer(){this.tokenizer=c(this.input)}decl(t,n){let i=new p;this.init(i,t[0][2]);let r=t[t.length-1];for(r[0]===";"&&(this.semicolon=!0,t.pop()),i.source.end=this.getPosition(r[3]||r[2]||f(t)),i.source.end.offset++;t[0][0]!=="word";)t.length===1&&this.unknownWord(t),i.raws.before+=t.shift()[1];for(i.source.start=this.getPosition(t[0][2]),i.prop="";t.length;){let w=t[0][0];if(w===":"||w==="space"||w==="comment")break;i.prop+=t.shift()[1]}i.raws.between="";let h;for(;t.length;)if(h=t.shift(),h[0]===":"){i.raws.between+=h[1];break}else h[0]==="word"&&/\w/.test(h[1])&&this.unknownWord([h]),i.raws.between+=h[1];(i.prop[0]==="_"||i.prop[0]==="*")&&(i.raws.before+=i.prop[0],i.prop=i.prop.slice(1));let d=[],g;for(;t.length&&(g=t[0][0],!(g!=="space"&&g!=="comment"));)d.push(t.shift());this.precheckMissedSemicolon(t);for(let w=t.length-1;w>=0;w--){if(h=t[w],h[1].toLowerCase()==="!important"){i.important=!0;let C=this.stringFrom(t,w);C=this.spacesFromEnd(t)+C,C!==" !important"&&(i.raws.important=C);break}else if(h[1].toLowerCase()==="important"){let C=t.slice(0),v="";for(let y=w;y>0;y--){let b=C[y][0];if(v.trim().startsWith("!")&&b!=="space")break;v=C.pop()[1]+v}v.trim().startsWith("!")&&(i.important=!0,i.raws.important=v,t=C)}if(h[0]!=="space"&&h[0]!=="comment")break}t.some(w=>w[0]!=="space"&&w[0]!=="comment")&&(i.raws.between+=d.map(w=>w[1]).join(""),d=[]),this.raw(i,"value",d.concat(t),n),i.value.includes(":")&&!n&&this.checkMissedSemicolon(t)}doubleColon(t){throw this.input.error("Double colon",{offset:t[2]},{offset:t[2]+t[1].length})}emptyRule(t){let n=new l;this.init(n,t[2]),n.selector="",n.raws.between="",this.current=n}end(t){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(t[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(t)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(t){if(this.spaces+=t[1],this.current.nodes){let n=this.current.nodes[this.current.nodes.length-1];n&&n.type==="rule"&&!n.raws.ownSemicolon&&(n.raws.ownSemicolon=this.spaces,this.spaces="",n.source.end=this.getPosition(t[2]),n.source.end.offset+=n.raws.ownSemicolon.length)}}getPosition(t){let n=this.input.fromOffset(t);return{column:n.col,line:n.line,offset:t}}init(t,n){this.current.push(t),t.source={input:this.input,start:this.getPosition(n)},t.raws.before=this.spaces,this.spaces="",t.type!=="comment"&&(this.semicolon=!1)}other(t){let n=!1,i=null,r=!1,h=null,d=[],g=t[1].startsWith("--"),S=[],w=t;for(;w;){if(i=w[0],S.push(w),i==="("||i==="[")h||(h=w),d.push(i==="("?")":"]");else if(g&&r&&i==="{")h||(h=w),d.push("}");else if(d.length===0)if(i===";")if(r){this.decl(S,g);return}else break;else if(i==="{"){this.rule(S);return}else if(i==="}"){this.tokenizer.back(S.pop()),n=!0;break}else i===":"&&(r=!0);else i===d[d.length-1]&&(d.pop(),d.length===0&&(h=null));w=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(n=!0),d.length>0&&this.unclosedBracket(h),n&&r){if(!g)for(;S.length&&(w=S[S.length-1][0],!(w!=="space"&&w!=="comment"));)this.tokenizer.back(S.pop());this.decl(S,g)}else this.unknownWord(S)}parse(){let t;for(;!this.tokenizer.endOfFile();)switch(t=this.tokenizer.nextToken(),t[0]){case"space":this.spaces+=t[1];break;case";":this.freeSemicolon(t);break;case"}":this.end(t);break;case"comment":this.comment(t);break;case"at-word":this.atrule(t);break;case"{":this.emptyRule(t);break;default:this.other(t);break}this.endFile()}precheckMissedSemicolon(){}raw(t,n,i,r){let h,d,g=i.length,S="",w=!0,C,v;for(let y=0;y<g;y+=1)h=i[y],d=h[0],d==="space"&&y===g-1&&!r?w=!1:d==="comment"?(v=i[y-1]?i[y-1][0]:"empty",C=i[y+1]?i[y+1][0]:"empty",!a[v]&&!a[C]?S.slice(-1)===","?w=!1:S+=h[1]:w=!1):S+=h[1];if(!w){let y=i.reduce((b,x)=>b+x[1],"");t.raws[n]={raw:y,value:S}}t[n]=S}rule(t){t.pop();let n=new l;this.init(n,t[0][2]),n.raws.between=this.spacesAndCommentsFromEnd(t),this.raw(n,"selector",t),this.current=n}spacesAndCommentsFromEnd(t){let n,i="";for(;t.length&&(n=t[t.length-1][0],!(n!=="space"&&n!=="comment"));)i=t.pop()[1]+i;return i}spacesAndCommentsFromStart(t){let n,i="";for(;t.length&&(n=t[0][0],!(n!=="space"&&n!=="comment"));)i+=t.shift()[1];return i}spacesFromEnd(t){let n,i="";for(;t.length&&(n=t[t.length-1][0],n==="space");)i=t.pop()[1]+i;return i}stringFrom(t,n){let i="";for(let r=n;r<t.length;r++)i+=t[r][1];return t.splice(n,t.length-n),i}unclosedBlock(){let t=this.current.source.start;throw this.input.error("Unclosed block",t.line,t.column)}unclosedBracket(t){throw this.input.error("Unclosed bracket",{offset:t[2]},{offset:t[2]+1})}unexpectedClose(t){throw this.input.error("Unexpected }",{offset:t[2]},{offset:t[2]+1})}unknownWord(t){throw this.input.error("Unknown word "+t[0][1],{offset:t[0][2]},{offset:t[0][2]+t[0][1].length})}unnamedAtrule(t,n){throw this.input.error("At-rule without name",{offset:n[2]},{offset:n[2]+n[1].length})}}return De=m,De}var Te,$t;function Ze(){if($t)return Te;$t=1;let e=q(),s=se(),p=or();function u(l,c){let a=new s(l,c),f=new p(a);try{f.parse()}catch(m){throw m}return f.root}return Te=u,u.default=u,e.registerParse(u),Te}var ke,jt;function lr(){if(jt)return ke;jt=1;class e{constructor(p,u={}){if(this.type="warning",this.text=p,u.node&&u.node.source){let l=u.node.rangeBy(u);this.line=l.start.line,this.column=l.start.column,this.endLine=l.end.line,this.endColumn=l.end.column}for(let l in u)this[l]=u[l]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}}return ke=e,e.default=e,ke}var Le,Vt;function Ye(){if(Vt)return Le;Vt=1;let e=lr();class s{get content(){return this.css}constructor(u,l,c){this.processor=u,this.messages=[],this.root=l,this.opts=c,this.css="",this.map=void 0}toString(){return this.css}warn(u,l={}){l.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(l.plugin=this.lastPlugin.postcssPlugin);let c=new e(u,l);return this.messages.push(c),c}warnings(){return this.messages.filter(u=>u.type==="warning")}}return Le=s,s.default=s,Le}var Be,Gt;function ar(){if(Gt)return Be;Gt=1;let e={};return Be=function(p){e[p]||(e[p]=!0,typeof console!="undefined"&&console.warn&&console.warn(p))},Be}var Ue,Ht;function ur(){if(Ht)return Ue;Ht=1;let e=q(),s=He(),p=sr(),u=Ze(),l=Ye(),c=G(),a=te(),{isClean:f,my:m}=Ve(),o=ar(),t={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},n={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},i={Once:!0,postcssPlugin:!0,prepare:!0},r=0;function h(v){return typeof v=="object"&&typeof v.then=="function"}function d(v){let y=!1,b=t[v.type];return v.type==="decl"?y=v.prop.toLowerCase():v.type==="atrule"&&(y=v.name.toLowerCase()),y&&v.append?[b,b+"-"+y,r,b+"Exit",b+"Exit-"+y]:y?[b,b+"-"+y,b+"Exit",b+"Exit-"+y]:v.append?[b,r,b+"Exit"]:[b,b+"Exit"]}function g(v){let y;return v.type==="document"?y=["Document",r,"DocumentExit"]:v.type==="root"?y=["Root",r,"RootExit"]:y=d(v),{eventIndex:0,events:y,iterator:0,node:v,visitorIndex:0,visitors:[]}}function S(v){return v[f]=!1,v.nodes&&v.nodes.forEach(y=>S(y)),v}let w={};class C{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(y,b,x){this.stringified=!1,this.processed=!1;let R;if(typeof b=="object"&&b!==null&&(b.type==="root"||b.type==="document"))R=S(b);else if(b instanceof C||b instanceof l)R=S(b.root),b.map&&(typeof x.map=="undefined"&&(x.map={}),x.map.inline||(x.map.inline=!1),x.map.prev=b.map);else{let P=u;x.syntax&&(P=x.syntax.parse),x.parser&&(P=x.parser),P.parse&&(P=P.parse);try{R=P(b,x)}catch(E){this.processed=!0,this.error=E}R&&!R[m]&&e.rebuild(R)}this.result=new l(y,R,x),this.helpers=j(L({},w),{postcss:w,result:this.result}),this.plugins=this.processor.plugins.map(P=>typeof P=="object"&&P.prepare?L(L({},P),P.prepare(this.result)):P)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(y){return this.async().catch(y)}finally(y){return this.async().then(y,y)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(y,b){let x=this.result.lastPlugin;try{b&&b.addToError(y),this.error=y,y.name==="CssSyntaxError"&&!y.plugin?(y.plugin=x.postcssPlugin,y.setMessage()):x.postcssVersion}catch(R){console&&console.error&&console.error(R)}return y}prepareVisitors(){this.listeners={};let y=(b,x,R)=>{this.listeners[x]||(this.listeners[x]=[]),this.listeners[x].push([b,R])};for(let b of this.plugins)if(typeof b=="object")for(let x in b){if(!n[x]&&/^[A-Z]/.test(x))throw new Error(`Unknown event ${x} in ${b.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!i[x])if(typeof b[x]=="object")for(let R in b[x])R==="*"?y(b,x,b[x][R]):y(b,x+"-"+R.toLowerCase(),b[x][R]);else typeof b[x]=="function"&&y(b,x,b[x])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let y=0;y<this.plugins.length;y++){let b=this.plugins[y],x=this.runOnRoot(b);if(h(x))try{await x}catch(R){throw this.handleError(R)}}if(this.prepareVisitors(),this.hasListener){let y=this.result.root;for(;!y[f];){y[f]=!0;let b=[g(y)];for(;b.length>0;){let x=this.visitTick(b);if(h(x))try{await x}catch(R){let P=b[b.length-1].node;throw this.handleError(R,P)}}}if(this.listeners.OnceExit)for(let[b,x]of this.listeners.OnceExit){this.result.lastPlugin=b;try{if(y.type==="document"){let R=y.nodes.map(P=>x(P,this.helpers));await Promise.all(R)}else await x(y,this.helpers)}catch(R){throw this.handleError(R)}}}return this.processed=!0,this.stringify()}runOnRoot(y){this.result.lastPlugin=y;try{if(typeof y=="object"&&y.Once){if(this.result.root.type==="document"){let b=this.result.root.nodes.map(x=>y.Once(x,this.helpers));return h(b[0])?Promise.all(b):b}return y.Once(this.result.root,this.helpers)}else if(typeof y=="function")return y(this.result.root,this.result)}catch(b){throw this.handleError(b)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let y=this.result.opts,b=a;y.syntax&&(b=y.syntax.stringify),y.stringifier&&(b=y.stringifier),b.stringify&&(b=b.stringify);let R=new p(b,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 y of this.plugins){let b=this.runOnRoot(y);if(h(b))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let y=this.result.root;for(;!y[f];)y[f]=!0,this.walkSync(y);if(this.listeners.OnceExit)if(y.type==="document")for(let b of y.nodes)this.visitSync(this.listeners.OnceExit,b);else this.visitSync(this.listeners.OnceExit,y)}return this.result}then(y,b){return this.async().then(y,b)}toString(){return this.css}visitSync(y,b){for(let[x,R]of y){this.result.lastPlugin=x;let P;try{P=R(b,this.helpers)}catch(E){throw this.handleError(E,b.proxyOf)}if(b.type!=="root"&&b.type!=="document"&&!b.parent)return!0;if(h(P))throw this.getAsyncError()}}visitTick(y){let b=y[y.length-1],{node:x,visitors:R}=b;if(x.type!=="root"&&x.type!=="document"&&!x.parent){y.pop();return}if(R.length>0&&b.visitorIndex<R.length){let[E,D]=R[b.visitorIndex];b.visitorIndex+=1,b.visitorIndex===R.length&&(b.visitors=[],b.visitorIndex=0),this.result.lastPlugin=E;try{return D(x.toProxy(),this.helpers)}catch(N){throw this.handleError(N,x)}}if(b.iterator!==0){let E=b.iterator,D;for(;D=x.nodes[x.indexes[E]];)if(x.indexes[E]+=1,!D[f]){D[f]=!0,y.push(g(D));return}b.iterator=0,delete x.indexes[E]}let P=b.events;for(;b.eventIndex<P.length;){let E=P[b.eventIndex];if(b.eventIndex+=1,E===r){x.nodes&&x.nodes.length&&(x[f]=!0,b.iterator=x.getIterator());return}else if(this.listeners[E]){b.visitors=this.listeners[E];return}}y.pop()}walkSync(y){y[f]=!0;let b=d(y);for(let x of b)if(x===r)y.nodes&&y.each(R=>{R[f]||this.walkSync(R)});else{let R=this.listeners[x];if(R&&this.visitSync(R,y.toProxy()))return}}warnings(){return this.sync().warnings()}}return C.registerPostcss=v=>{w=v},Ue=C,C.default=C,c.registerLazyResult(C),s.registerLazyResult(C),Ue}var ze,Jt;function li(){if(Jt)return ze;Jt=1;let e=sr(),s=Ze(),p=Ye(),u=te(),l=ar();class c{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 f,m=s;try{f=m(this._css,this._opts)}catch(o){this.error=o}if(this.error)throw this.error;return this._root=f,f}get[Symbol.toStringTag](){return"NoWorkResult"}constructor(f,m,o){m=m.toString(),this.stringified=!1,this._processor=f,this._css=m,this._opts=o,this._map=void 0;let t,n=u;this.result=new p(this._processor,t,this._opts),this.result.css=m;let i=this;Object.defineProperty(this.result,"root",{get(){return i.root}});let r=new e(n,t,this._opts,m);if(r.isMap()){let[h,d]=r.generate();h&&(this.result.css=h),d&&(this.result.map=d)}else r.clearAnnotation(),this.result.css=r.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(f){return this.async().catch(f)}finally(f){return this.async().then(f,f)}sync(){if(this.error)throw this.error;return this.result}then(f,m){return this.async().then(f,m)}toString(){return this._css}warnings(){return[]}}return ze=c,c.default=c,ze}var Fe,Zt;function ai(){if(Zt)return Fe;Zt=1;let e=He(),s=ur(),p=li(),u=G();class l{constructor(a=[]){this.version="8.5.6",this.plugins=this.normalize(a)}normalize(a){let f=[];for(let m of a)if(m.postcss===!0?m=m():m.postcss&&(m=m.postcss),typeof m=="object"&&Array.isArray(m.plugins))f=f.concat(m.plugins);else if(typeof m=="object"&&m.postcssPlugin)f.push(m);else if(typeof m=="function")f.push(m);else if(!(typeof m=="object"&&(m.parse||m.stringify)))throw new Error(m+" is not a PostCSS plugin");return f}process(a,f={}){return!this.plugins.length&&!f.parser&&!f.stringifier&&!f.syntax?new p(this,a,f):new s(this,a,f)}use(a){return this.plugins=this.plugins.concat(this.normalize([a])),this}}return Fe=l,l.default=l,u.registerProcessor(l),e.registerProcessor(l),Fe}var qe,Yt;function fr(){if(Yt)return qe;Yt=1;let e=Ge(),s=V(),p=q(),u=je(),l=ie(),c=He(),a=oi(),f=se(),m=ur(),o=ir(),t=re(),n=Ze(),i=ai(),r=Ye(),h=G(),d=Je(),g=te(),S=lr();function w(...C){return C.length===1&&Array.isArray(C[0])&&(C=C[0]),new i(C)}return w.plugin=function(v,y){let b=!1;function x(...P){console&&console.warn&&!b&&(b=!0,console.warn(v+`: postcss.plugin was deprecated. Migration guide:
29
29
  https://evilmartians.com/chronicles/postcss-8-plugin-migration`),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(v+`: \u91CC\u9762 postcss.plugin \u88AB\u5F03\u7528. \u8FC1\u79FB\u6307\u5357:
30
- https://www.w3ctech.com/topic/2226`));let E=y(...P);return E.postcssPlugin=v,E.postcssVersion=new i().version,E}let R;return Object.defineProperty(x,"postcss",{get(){return R||(R=x()),R}}),x.process=function(P,E,D){return w([x(D)]).process(P,E)},x},w.stringify=g,w.parse=n,w.fromJSON=a,w.list=o,w.comment=C=>new s(C),w.atRule=C=>new e(C),w.decl=C=>new l(C),w.rule=C=>new d(C),w.root=C=>new h(C),w.document=C=>new c(C),w.CssSyntaxError=u,w.Declaration=l,w.Container=p,w.Processor=i,w.Document=c,w.Comment=s,w.Warning=S,w.AtRule=e,w.Result=r,w.Input=f,w.Rule=d,w.Root=h,w.Node=t,m.registerPostcss(w),Fe=w,w.default=w,Fe}var We,Yt;function ui(){if(Yt)return We;Yt=1;let e=V(),s=nr(),p=sr();class u extends s{checkMissedSemicolon(){}comment(c){let a=new e;this.init(a,c[2]);let f=this.input.fromOffset(c[3])||this.input.fromOffset(this.input.css.length-1);a.source.end={column:f.col,line:f.line,offset:c[3]+1};let m=c[1].slice(2);if(m.slice(-2)==="*/"&&(m=m.slice(0,-2)),/^\s*$/.test(m))a.text="",a.raws.left=m,a.raws.right="";else{let o=m.match(/^(\s*)([^]*\S)(\s*)$/);a.text=o[2],a.raws.left=o[1],a.raws.right=o[3]}}createTokenizer(){this.tokenizer=p(this.input,{ignoreErrors:!0})}decl(c){c.length>1&&c.some(a=>a[0]==="word")&&super.decl(c)}doubleColon(){}endFile(){for(this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces;this.current.parent;)this.current=this.current.parent,this.current.raws.after="";this.root.source.end=this.getPosition(this.tokenizer.position())}precheckMissedSemicolon(c){let a=this.colon(c);if(a===!1)return;let f,m;for(f=a-1;f>=0&&c[f][0]!=="word";f--);if(f===0||f<0)return;for(m=f-1;m>=0;m--)if(c[m][0]!=="space"){m+=1;break}let o=c.slice(f),t=c.slice(m,f);c.splice(m,c.length-m),this.spaces=t.map(n=>n[1]).join(""),this.decl(o)}unclosedBracket(){}unexpectedClose(){this.current.raws.after+="}"}unknownWord(c){this.spaces+=c.map(a=>a[1]).join("")}unnamedAtrule(c){c.name=""}}return We=u,We}var $e,Qt;function fi(){if(Qt)return $e;Qt=1;let{Input:e}=ur(),s=ui();return $e=function(u,l){let c=new e(u,l),a=new s(c);return a.parse(),a.root},$e}var ci=fi(),hi=Xt(ci),pi=ur(),I=Xt(pi);I.stringify;I.fromJSON;I.plugin;I.parse;I.list;I.document;I.comment;I.atRule;I.rule;I.decl;I.root;I.CssSyntaxError;I.Declaration;I.Container;I.Processor;I.Document;I.Comment;I.Warning;I.AtRule;I.Result;I.Input;I.Rule;I.Root;I.Node;var Kt={script:"noscript",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"};function di(e){let s=Kt[e.tagName]?Kt[e.tagName]:e.tagName;return s==="link"&&e.attributes._cssText&&(s="style"),s}function Qe(e,s){let p=s==null?void 0:s.stylesWithHoverClass.get(e);if(p)return p;let u=e;try{u=I([Xr,ei]).process(e,{parser:hi}).css}catch(l){console.warn("Failed to adapt css for replay",l)}return s==null||s.stylesWithHoverClass.set(e,u),u}function mi(){return{stylesWithHoverClass:new Map}}function gi(e,s){let p=e.textContent;if(e.isStyle&&s.hackCss)try{p=Qe(e.textContent,s.cache)}catch(u){}return s.doc.createTextNode(p)}function yi(e,s){var p;let{doc:u,hackCss:l,cache:c}=s;switch(e.type){case M.NodeType$1.Document:return u.implementation.createDocument(null,"",null);case M.NodeType$1.DocumentType:return u.implementation.createDocumentType(e.name||"html",e.publicId,e.systemId);case M.NodeType$1.Element:{let a=di(e),f;e.isSVG?f=u.createElementNS("http://www.w3.org/2000/svg",a):(e.isCustom&&((p=u.defaultView)!=null&&p.customElements)&&!u.defaultView.customElements.get(e.tagName)&&u.defaultView.customElements.define(e.tagName,class extends u.defaultView.HTMLElement{}),f=u.createElement(a));let m={};for(let o in e.attributes){if(!Object.prototype.hasOwnProperty.call(e.attributes,o))continue;let t=e.attributes[o];if(a==="option"&&o==="selected"&&t===!1||t===null)continue;if(t===!0&&(t=""),o.startsWith("rr_")){m[o]=t;continue}let n=a==="textarea"&&o==="value",i=a==="style"&&o==="_cssText";if(i&&l&&typeof t=="string"&&(t=Qe(t,c)),(n||i)&&typeof t=="string"){f.appendChild(u.createTextNode(t)),e.childNodes=[];continue}try{if(e.isSVG&&o==="xlink:href")f.setAttributeNS("http://www.w3.org/1999/xlink",o,t.toString());else if(o==="onload"||o==="onclick"||o.substring(0,7)==="onmouse")f.setAttribute("_"+o,t.toString());else if(a==="meta"&&e.attributes["http-equiv"]==="Content-Security-Policy"&&o==="content"){f.setAttribute("csp-content",t.toString());continue}else a==="link"&&(e.attributes.rel==="preload"&&e.attributes.as==="script"||e.attributes.rel==="modulepreload")||a==="link"&&e.attributes.rel==="prefetch"&&typeof e.attributes.href=="string"&&M.extractFileExtension(e.attributes.href)==="js"||(a==="img"&&e.attributes.srcset&&e.attributes.rr_dataURL?f.setAttribute("rrweb-original-srcset",e.attributes.srcset):f.setAttribute(o,t.toString()))}catch(r){}}for(let o in m){let t=m[o];if(a==="canvas"&&o==="rr_dataURL"){let n=u.createElement("img");n.onload=()=>{let i=f.getContext("2d");i&&i.drawImage(n,0,0,n.width,n.height)},n.src=t.toString(),f.RRNodeType&&(f.rr_dataURL=t.toString())}else if(a==="img"&&o==="rr_dataURL"){let n=f;n.currentSrc.startsWith("data:")||(n.setAttribute("rrweb-original-src",e.attributes.src),n.src=t.toString())}if(o==="rr_width")f.style.setProperty("width",t.toString());else if(o==="rr_height")f.style.setProperty("height",t.toString());else if(o==="rr_left")f.style.setProperty("left",t.toString()),f.style.setProperty("position","absolute");else if(o==="rr_top")f.style.setProperty("top",t.toString()),f.style.setProperty("position","absolute");else if(o==="rr_mediaCurrentTime"&&typeof t=="number")f.currentTime=t;else if(o==="rr_mediaState")switch(t){case"played":f.play().catch(n=>console.warn("media playback error",n));break;case"paused":f.pause();break}else o==="rr_mediaPlaybackRate"&&typeof t=="number"?f.playbackRate=t:o==="rr_mediaMuted"&&typeof t=="boolean"?f.muted=t:o==="rr_mediaLoop"&&typeof t=="boolean"?f.loop=t:o==="rr_mediaVolume"&&typeof t=="number"?f.volume=t:o==="rr_open_mode"&&f.setAttribute("rr_open_mode",t)}if(e.isShadowHost)if(!f.shadowRoot)f.attachShadow({mode:"open"});else for(;f.shadowRoot.firstChild;)f.shadowRoot.removeChild(f.shadowRoot.firstChild);return f}case M.NodeType$1.Text:return gi(e,{cache:c,doc:u,hackCss:l});case M.NodeType$1.CDATA:return e.textContent.trim()===""?null:u.createCDATASection(e.textContent);case M.NodeType$1.Comment:return u.createComment(e.textContent);default:return null}}function Ke(e,s){let{doc:p,mirror:u,skipChild:l=!1,hackCss:c=!0,afterAppend:a,cache:f}=s;if(u.has(e.id)){let o=u.getNode(e.id),t=u.getMeta(o);if(M.isNodeMetaEqual(t,e))return u.getNode(e.id)}let m=yi(e,{doc:p,hackCss:c,cache:f});if(!m)return null;if(e.rootId&&u.getNode(e.rootId)!==p&&u.replace(e.rootId,p),e.type===M.NodeType$1.Document&&(p.close(),p.open(),e.compatMode==="BackCompat"&&e.childNodes&&e.childNodes[0].type!==M.NodeType$1.DocumentType&&(e.childNodes[0].type===M.NodeType$1.Element&&"xmlns"in e.childNodes[0].attributes&&e.childNodes[0].attributes.xmlns==="http://www.w3.org/1999/xhtml"?p.write('<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">'):p.write('<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "">')),m=p),u.add(m,e),(e.type===M.NodeType$1.Document||e.type===M.NodeType$1.Element)&&!l)for(let o of e.childNodes){let t=Ke(o,{doc:p,mirror:u,skipChild:!1,hackCss:c,afterAppend:a,cache:f});if(!t){console.warn("Failed to rebuild",o);continue}if(o.isShadow&&M.isElement(m)&&m.shadowRoot)m.shadowRoot.appendChild(t);else if(e.type===M.NodeType$1.Document&&o.type==M.NodeType$1.Element){let n=t,i=null;n.childNodes.forEach(r=>{r.nodeName==="BODY"&&(i=r)}),i?(n.removeChild(i),m.appendChild(t),n.appendChild(i)):m.appendChild(t)}else e.type===M.NodeType$1.Document&&o.type===M.NodeType$1.DocumentType&&m.firstChild&&m.firstChild.nodeType===1?m.insertBefore(t,m.firstChild):m.appendChild(t);a&&a(t,o.id)}return m}function wi(e,s){function p(u){s(u)}for(let u of e.getIds())e.has(u)&&p(e.getNode(u))}function bi(e,s){let p=s.getMeta(e);if((p==null?void 0:p.type)!==M.NodeType$1.Element)return;let u=e;for(let l in p.attributes){if(!(Object.prototype.hasOwnProperty.call(p.attributes,l)&&l.startsWith("rr_")))continue;let c=p.attributes[l];l==="rr_scrollLeft"&&(u.scrollLeft=c),l==="rr_scrollTop"&&(u.scrollTop=c)}}function Si(e,s){let{doc:p,onVisit:u,hackCss:l=!0,afterAppend:c,cache:a,mirror:f=new M.Mirror}=s,m=Ke(e,{doc:p,mirror:f,skipChild:!1,hackCss:l,afterAppend:c,cache:a});return wi(f,o=>{u&&u(o),bi(o,f)}),m}exports.Mirror=M.Mirror;exports.NodeType=M.NodeType;exports.absolutifyURLs=M.absolutifyURLs;exports.checkDataURLSize=M.checkDataURLSize;exports.createMirror=M.createMirror;exports.escapeImportStatement=M.escapeImportStatement;exports.extractFileExtension=M.extractFileExtension;exports.fixSafariColons=M.fixSafariColons;exports.getInputType=M.getInputType;exports.is2DCanvasBlank=M.is2DCanvasBlank;exports.isCSSImportRule=M.isCSSImportRule;exports.isCSSStyleRule=M.isCSSStyleRule;exports.isElement=M.isElement;exports.isNativeShadowDom=M.isNativeShadowDom;exports.isNodeMetaEqual=M.isNodeMetaEqual;exports.isShadowRoot=M.isShadowRoot;exports.maskInputValue=M.maskInputValue;exports.recompressBase64Image=M.recompressBase64Image;exports.stringifyRule=M.stringifyRule;exports.stringifyStylesheet=M.stringifyStylesheet;exports.toLowerCase=M.toLowerCase;exports.adaptCssForReplay=Qe;exports.buildNodeWithSN=Ke;exports.createCache=mi;exports.rebuild=Si;
30
+ https://www.w3ctech.com/topic/2226`));let E=y(...P);return E.postcssPlugin=v,E.postcssVersion=new i().version,E}let R;return Object.defineProperty(x,"postcss",{get(){return R||(R=x()),R}}),x.process=function(P,E,D){return w([x(D)]).process(P,E)},x},w.stringify=g,w.parse=n,w.fromJSON=a,w.list=o,w.comment=C=>new s(C),w.atRule=C=>new e(C),w.decl=C=>new l(C),w.rule=C=>new d(C),w.root=C=>new h(C),w.document=C=>new c(C),w.CssSyntaxError=u,w.Declaration=l,w.Container=p,w.Processor=i,w.Document=c,w.Comment=s,w.Warning=S,w.AtRule=e,w.Result=r,w.Input=f,w.Rule=d,w.Root=h,w.Node=t,m.registerPostcss(w),qe=w,w.default=w,qe}var We,Qt;function ui(){if(Qt)return We;Qt=1;let e=V(),s=or(),p=nr();class u extends s{checkMissedSemicolon(){}comment(c){let a=new e;this.init(a,c[2]);let f=this.input.fromOffset(c[3])||this.input.fromOffset(this.input.css.length-1);a.source.end={column:f.col,line:f.line,offset:c[3]+1};let m=c[1].slice(2);if(m.slice(-2)==="*/"&&(m=m.slice(0,-2)),/^\s*$/.test(m))a.text="",a.raws.left=m,a.raws.right="";else{let o=m.match(/^(\s*)([^]*\S)(\s*)$/);a.text=o[2],a.raws.left=o[1],a.raws.right=o[3]}}createTokenizer(){this.tokenizer=p(this.input,{ignoreErrors:!0})}decl(c){c.length>1&&c.some(a=>a[0]==="word")&&super.decl(c)}doubleColon(){}endFile(){for(this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces;this.current.parent;)this.current=this.current.parent,this.current.raws.after="";this.root.source.end=this.getPosition(this.tokenizer.position())}precheckMissedSemicolon(c){let a=this.colon(c);if(a===!1)return;let f,m;for(f=a-1;f>=0&&c[f][0]!=="word";f--);if(f===0||f<0)return;for(m=f-1;m>=0;m--)if(c[m][0]!=="space"){m+=1;break}let o=c.slice(f),t=c.slice(m,f);c.splice(m,c.length-m),this.spaces=t.map(n=>n[1]).join(""),this.decl(o)}unclosedBracket(){}unexpectedClose(){this.current.raws.after+="}"}unknownWord(c){this.spaces+=c.map(a=>a[1]).join("")}unnamedAtrule(c){c.name=""}}return We=u,We}var $e,Kt;function fi(){if(Kt)return $e;Kt=1;let{Input:e}=fr(),s=ui();return $e=function(u,l){let c=new e(u,l),a=new s(c);return a.parse(),a.root},$e}var ci=fi(),hi=er(ci),pi=fr(),I=er(pi);I.stringify;I.fromJSON;I.plugin;I.parse;I.list;I.document;I.comment;I.atRule;I.rule;I.decl;I.root;I.CssSyntaxError;I.Declaration;I.Container;I.Processor;I.Document;I.Comment;I.Warning;I.AtRule;I.Result;I.Input;I.Rule;I.Root;I.Node;var Xt={script:"noscript",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"};function di(e){let s=Xt[e.tagName]?Xt[e.tagName]:e.tagName;return s==="link"&&e.attributes._cssText&&(s="style"),s}function Qe(e,s){let p=s==null?void 0:s.stylesWithHoverClass.get(e);if(p)return p;let u=e;try{u=I([Xr,ei]).process(e,{parser:hi}).css}catch(l){console.warn("Failed to adapt css for replay",l)}return s==null||s.stylesWithHoverClass.set(e,u),u}function mi(){return{stylesWithHoverClass:new Map}}function gi(e,s){let p=e.textContent;if(e.isStyle&&s.hackCss)try{p=Qe(e.textContent,s.cache)}catch(u){}return s.doc.createTextNode(p)}function yi(e,s){var p;let{doc:u,hackCss:l,cache:c}=s;switch(e.type){case M.NodeType$1.Document:return u.implementation.createDocument(null,"",null);case M.NodeType$1.DocumentType:return u.implementation.createDocumentType(e.name||"html",e.publicId,e.systemId);case M.NodeType$1.Element:{let a=di(e),f;e.isSVG?f=u.createElementNS("http://www.w3.org/2000/svg",a):(e.isCustom&&((p=u.defaultView)!=null&&p.customElements)&&!u.defaultView.customElements.get(e.tagName)&&u.defaultView.customElements.define(e.tagName,class extends u.defaultView.HTMLElement{}),f=u.createElement(a));let m={};for(let o in e.attributes){if(!Object.prototype.hasOwnProperty.call(e.attributes,o))continue;let t=e.attributes[o];if(a==="option"&&o==="selected"&&t===!1||t===null)continue;if(t===!0&&(t=""),o.startsWith("rr_")){m[o]=t;continue}let n=a==="textarea"&&o==="value",i=a==="style"&&o==="_cssText";if(i&&l&&typeof t=="string"&&(t=Qe(t,c)),(n||i)&&typeof t=="string"){f.appendChild(u.createTextNode(t)),e.childNodes=[];continue}try{if(e.isSVG&&o==="xlink:href")f.setAttributeNS("http://www.w3.org/1999/xlink",o,t.toString());else if(o==="onload"||o==="onclick"||o.substring(0,7)==="onmouse")f.setAttribute("_"+o,t.toString());else if(a==="meta"&&e.attributes["http-equiv"]==="Content-Security-Policy"&&o==="content"){f.setAttribute("csp-content",t.toString());continue}else a==="link"&&(e.attributes.rel==="preload"&&e.attributes.as==="script"||e.attributes.rel==="modulepreload")||a==="link"&&e.attributes.rel==="prefetch"&&typeof e.attributes.href=="string"&&M.extractFileExtension(e.attributes.href)==="js"||(a==="img"&&e.attributes.srcset&&e.attributes.rr_dataURL?f.setAttribute("rrweb-original-srcset",e.attributes.srcset):f.setAttribute(o,t.toString()))}catch(r){}}for(let o in m){let t=m[o];if(a==="canvas"&&o==="rr_dataURL"){let n=u.createElement("img");n.onload=()=>{let i=f.getContext("2d");i&&i.drawImage(n,0,0,n.width,n.height)},n.src=t.toString(),f.RRNodeType&&(f.rr_dataURL=t.toString())}else if(a==="img"&&o==="rr_dataURL"){let n=f;n.currentSrc.startsWith("data:")||(n.setAttribute("rrweb-original-src",e.attributes.src),n.src=t.toString())}if(o==="rr_width")f.style.setProperty("width",t.toString());else if(o==="rr_height")f.style.setProperty("height",t.toString());else if(o==="rr_left")f.style.setProperty("left",t.toString()),f.style.setProperty("position","absolute");else if(o==="rr_top")f.style.setProperty("top",t.toString()),f.style.setProperty("position","absolute");else if(o==="rr_mediaCurrentTime"&&typeof t=="number")f.currentTime=t;else if(o==="rr_mediaState")switch(t){case"played":f.play().catch(n=>console.warn("media playback error",n));break;case"paused":f.pause();break}else o==="rr_mediaPlaybackRate"&&typeof t=="number"?f.playbackRate=t:o==="rr_mediaMuted"&&typeof t=="boolean"?f.muted=t:o==="rr_mediaLoop"&&typeof t=="boolean"?f.loop=t:o==="rr_mediaVolume"&&typeof t=="number"?f.volume=t:o==="rr_open_mode"&&f.setAttribute("rr_open_mode",t)}if(e.isShadowHost)if(!f.shadowRoot)f.attachShadow({mode:"open"});else for(;f.shadowRoot.firstChild;)f.shadowRoot.removeChild(f.shadowRoot.firstChild);return f}case M.NodeType$1.Text:return gi(e,{cache:c,doc:u,hackCss:l});case M.NodeType$1.CDATA:return e.textContent.trim()===""?null:u.createCDATASection(e.textContent);case M.NodeType$1.Comment:return u.createComment(e.textContent);default:return null}}function Ke(e,s){let{doc:p,mirror:u,skipChild:l=!1,hackCss:c=!0,afterAppend:a,cache:f}=s;if(u.has(e.id)){let o=u.getNode(e.id),t=u.getMeta(o);if(M.isNodeMetaEqual(t,e))return u.getNode(e.id)}let m=yi(e,{doc:p,hackCss:c,cache:f});if(!m)return null;if(e.rootId&&u.getNode(e.rootId)!==p&&u.replace(e.rootId,p),e.type===M.NodeType$1.Document&&(p.close(),p.open(),e.compatMode==="BackCompat"&&e.childNodes&&e.childNodes[0].type!==M.NodeType$1.DocumentType&&(e.childNodes[0].type===M.NodeType$1.Element&&"xmlns"in e.childNodes[0].attributes&&e.childNodes[0].attributes.xmlns==="http://www.w3.org/1999/xhtml"?p.write('<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">'):p.write('<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "">')),m=p),u.add(m,e),(e.type===M.NodeType$1.Document||e.type===M.NodeType$1.Element)&&!l)for(let o of e.childNodes){let t=Ke(o,{doc:p,mirror:u,skipChild:!1,hackCss:c,afterAppend:a,cache:f});if(!t){console.warn("Failed to rebuild",o);continue}if(o.isShadow&&M.isElement(m)&&m.shadowRoot)m.shadowRoot.appendChild(t);else if(e.type===M.NodeType$1.Document&&o.type==M.NodeType$1.Element){let n=t,i=null;n.childNodes.forEach(r=>{r.nodeName==="BODY"&&(i=r)}),i?(n.removeChild(i),m.appendChild(t),n.appendChild(i)):m.appendChild(t)}else e.type===M.NodeType$1.Document&&o.type===M.NodeType$1.DocumentType&&m.firstChild&&m.firstChild.nodeType===1?m.insertBefore(t,m.firstChild):m.appendChild(t);a&&a(t,o.id)}return m}function wi(e,s){function p(u){s(u)}for(let u of e.getIds())e.has(u)&&p(e.getNode(u))}function bi(e,s){let p=s.getMeta(e);if((p==null?void 0:p.type)!==M.NodeType$1.Element)return;let u=e;for(let l in p.attributes){if(!(Object.prototype.hasOwnProperty.call(p.attributes,l)&&l.startsWith("rr_")))continue;let c=p.attributes[l];l==="rr_scrollLeft"&&(u.scrollLeft=c),l==="rr_scrollTop"&&(u.scrollTop=c)}}function Si(e,s){let{doc:p,onVisit:u,hackCss:l=!0,afterAppend:c,cache:a,mirror:f=new M.Mirror}=s,m=Ke(e,{doc:p,mirror:f,skipChild:!1,hackCss:l,afterAppend:c,cache:a});return wi(f,o=>{u&&u(o),bi(o,f)}),m}exports.Mirror=M.Mirror;exports.NodeType=M.NodeType;exports.absolutifyURLs=M.absolutifyURLs;exports.checkDataURLSize=M.checkDataURLSize;exports.createMirror=M.createMirror;exports.escapeImportStatement=M.escapeImportStatement;exports.extractFileExtension=M.extractFileExtension;exports.fixSafariColons=M.fixSafariColons;exports.getInputType=M.getInputType;exports.is2DCanvasBlank=M.is2DCanvasBlank;exports.isCSSImportRule=M.isCSSImportRule;exports.isCSSStyleRule=M.isCSSStyleRule;exports.isElement=M.isElement;exports.isNativeShadowDom=M.isNativeShadowDom;exports.isNodeMetaEqual=M.isNodeMetaEqual;exports.isShadowRoot=M.isShadowRoot;exports.maskInputValue=M.maskInputValue;exports.recompressBase64Image=M.recompressBase64Image;exports.stringifyRule=M.stringifyRule;exports.stringifyStylesheet=M.stringifyStylesheet;exports.toLowerCase=M.toLowerCase;exports.adaptCssForReplay=Qe;exports.buildNodeWithSN=Ke;exports.createCache=mi;exports.rebuild=Si;
31
31
  ;if (typeof module.exports == "object" && typeof exports == "object") {
32
32
  var __cp = (to, from, except, desc) => {
33
33
  if ((from && typeof from === "object") || typeof from === "function") {