@posthog/rrweb-snapshot 0.0.32 → 0.0.34

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