@posthog/rrweb-snapshot 0.0.28 → 0.0.29

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,14 +11,14 @@
11
11
  }(this, () => {
12
12
  var exports = {};
13
13
  var module = { exports };
14
- "use strict";var Ir=Object.defineProperty,Lr=Object.defineProperties;var Dr=Object.getOwnPropertyDescriptors;var ie=Object.getOwnPropertySymbols;var pt=Object.prototype.hasOwnProperty,dt=Object.prototype.propertyIsEnumerable;var ht=(e,r,u)=>r in e?Ir(e,r,{enumerable:!0,configurable:!0,writable:!0,value:u}):e[r]=u,F=(e,r)=>{for(var u in r||(r={}))pt.call(r,u)&&ht(e,u,r[u]);if(ie)for(var u of ie(r))dt.call(r,u)&&ht(e,u,r[u]);return e},K=(e,r)=>Lr(e,Dr(r));var be=(e,r)=>{var u={};for(var o in e)pt.call(e,o)&&r.indexOf(o)<0&&(u[o]=e[o]);if(e!=null&&ie)for(var o of ie(e))r.indexOf(o)<0&&dt.call(e,o)&&(u[o]=e[o]);return u};var Tr=Object.defineProperty,Ur=(e,r,u)=>r in e?Tr(e,r,{enumerable:!0,configurable:!0,writable:!0,value:u}):e[r]=u,mt=(e,r,u)=>Ur(e,typeof r!="symbol"?r+"":r,u);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var M=(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))(M||{});const gt={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},yt={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},se={};function Br(e){var r,u;const o=(u=(r=globalThis==null?void 0:globalThis.Zone)==null?void 0:r.__symbol__)==null?void 0:u.call(r,e);if(o&&globalThis[o])return globalThis[o]}function Xe(e){if(se[e])return se[e];const r=Br(e)||globalThis[e],u=r.prototype,o=e in gt?gt[e]:void 0,s=!!(o&&o.every(h=>{var g,l;return!!((l=(g=Object.getOwnPropertyDescriptor(u,h))==null?void 0:g.get)!=null&&l.toString().includes("[native code]"))})),f=e in yt?yt[e]:void 0,c=!!(f&&f.every(h=>{var g;return typeof u[h]=="function"&&((g=u[h])==null?void 0:g.toString().includes("[native code]"))}));if(s&&c)return se[e]=r.prototype,r.prototype;try{const h=document.createElement("iframe");document.body.appendChild(h);const g=h.contentWindow;if(!g)return r.prototype;const l=g[e].prototype;return document.body.removeChild(h),l?se[e]=l:u}catch(h){return u}}const Se={};function W(e,r,u){var o;const s=`${e}.${String(u)}`;if(Se[s])return Se[s].call(r);const f=Xe(e),c=(o=Object.getOwnPropertyDescriptor(f,u))==null?void 0:o.get;return c?(Se[s]=c,c.call(r)):r[u]}const ve={};function tr(e,r,u){const o=`${e}.${String(u)}`;if(ve[o])return ve[o].bind(r);const f=Xe(e)[u];return typeof f!="function"?r[u]:(ve[o]=f,f.bind(r))}function Fr(e){return W("Node",e,"childNodes")}function qr(e){return W("Node",e,"parentNode")}function zr(e){return W("Node",e,"parentElement")}function Wr(e){return W("Node",e,"textContent")}function jr(e,r){return tr("Node",e,"contains")(r)}function $r(e){return tr("Node",e,"getRootNode")()}function Vr(e){return!e||!("host"in e)?null:W("ShadowRoot",e,"host")}function Gr(e){return e.styleSheets}function Hr(e){return!e||!("shadowRoot"in e)?null:W("Element",e,"shadowRoot")}function Jr(e,r){return W("Element",e,"querySelector")(r)}function Yr(e,r){return W("Element",e,"querySelectorAll")(r)}function Kr(){return Xe("MutationObserver").constructor}function Qr(e,r,u){try{if(!(r in e))return()=>{};const o=e[r],s=u(o);return typeof s=="function"&&(s.prototype=s.prototype||{},Object.defineProperties(s,{__rrweb_original__:{enumerable:!1,value:o}})),e[r]=s,()=>{e[r]=o}}catch(o){return()=>{}}}const L={childNodes:Fr,parentNode:qr,parentElement:zr,textContent:Wr,contains:jr,getRootNode:$r,host:Vr,styleSheets:Gr,shadowRoot:Hr,querySelector:Jr,querySelectorAll:Yr,mutationObserver:Kr,patch:Qr};function ue(e){return e.nodeType===e.ELEMENT_NODE}function rr(e){const r=e&&"host"in e&&"mode"in e&&L.host(e)||null;return!!(r&&"shadowRoot"in r&&L.shadowRoot(r)===e)}function le(e){return Object.prototype.toString.call(e)==="[object ShadowRoot]"}class ce{constructor(){mt(this,"idNodeMap",new Map),mt(this,"nodeMetaMap",new WeakMap)}getId(r){var u;if(!r)return-1;const o=(u=this.getMeta(r))==null?void 0:u.id;return o!=null?o:-1}getNode(r){return this.idNodeMap.get(r)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(r){return this.nodeMetaMap.get(r)||null}removeNodeFromMap(r){const u=this.getId(r);this.idNodeMap.delete(u),r.childNodes&&r.childNodes.forEach(o=>this.removeNodeFromMap(o))}has(r){return this.idNodeMap.has(r)}hasNode(r){return this.nodeMetaMap.has(r)}add(r,u){const o=u.id;this.idNodeMap.set(o,r),this.nodeMetaMap.set(r,u)}replace(r,u){const o=this.getNode(r);if(o){const s=this.nodeMetaMap.get(o);s&&this.nodeMetaMap.set(u,s)}this.idNodeMap.set(r,u)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function Xr(){return new ce}function ir({element:e,maskInputOptions:r,tagName:u,type:o,value:s,maskInputFn:f}){let c=s||"";const h=o&&Z(o);return(r[u.toLowerCase()]||h&&r[h])&&(f?c=f(c,e):c="*".repeat(c.length)),c}function Z(e){return e.toLowerCase()}const wt="__rrweb_original__";function sr(e){const r=e.getContext("2d");if(!r)return!0;const u=50;for(let o=0;o<e.width;o+=u)for(let s=0;s<e.height;s+=u){const f=r.getImageData,c=wt in f?f[wt]:f;if(new Uint32Array(c.call(r,o,s,Math.min(u,e.width-o),Math.min(u,e.height-s)).data.buffer).some(g=>g!==0))return!1}return!0}function nr(e,r){return!e||!r||e.type!==r.type?!1:e.type===M.Document?e.compatMode===r.compatMode:e.type===M.DocumentType?e.name===r.name&&e.publicId===r.publicId&&e.systemId===r.systemId:e.type===M.Comment||e.type===M.Text||e.type===M.CDATA?e.textContent===r.textContent:e.type===M.Element?e.tagName===r.tagName&&JSON.stringify(e.attributes)===JSON.stringify(r.attributes)&&e.isSVG===r.isSVG&&e.needBlock===r.needBlock:!1}function or(e){const r=e.type;return e.hasAttribute("data-rr-is-password")?"password":r?Z(r):null}function fe(e,r){var f;let u;try{u=new URL(e,r!=null?r:window.location.href)}catch(c){return null}const o=/\.([0-9a-z]+)(?:$)/i,s=u.pathname.match(o);return(f=s==null?void 0:s[1])!=null?f:null}function Zr(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 lr(e){const{cssText:r}=e;if(r.split('"').length<3)return r;const u=["@import",`url(${JSON.stringify(e.href)})`];return e.layerName===""?u.push("layer"):e.layerName&&u.push(`layer(${e.layerName})`),e.supportsText&&u.push(`supports(${e.supportsText})`),e.media.length&&u.push(e.media.mediaText),u.join(" ")+";"}function Q(e){try{const r=e.rules||e.cssRules;if(!r)return null;let u=e.href;!u&&e.ownerNode&&(u=e.ownerNode.baseURI);const o=Array.from(r,s=>ar(s,u)).join("");return Zr(o)}catch(r){return null}}function ar(e,r){var u;if(cr(e)){let o;try{o=Q(e.styleSheet)||lr(e)}catch(s){o=e.cssText}try{if(o&&((u=e.styleSheet)!=null&&u.href))return X(o,e.styleSheet.href)}catch(s){}return o}else{let o=e.cssText;return fr(e)&&e.selectorText.includes(":")&&(o=ur(o)),r?X(o,r):o}}function ur(e){const r=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return e.replace(r,"$1\\$2")}function cr(e){return"styleSheet"in e}function fr(e){return"selectorText"in e}function ei(e){let r="";return e.indexOf("//")>-1?r=e.split("/").slice(0,3).join("/"):r=e.split("/")[0],r=r.split("?")[0],r}const ti=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,ri=/^(?:[a-z+]+:)?\/\//i,ii=/^www\..*/i,si=/^(data:)([^,]*),(.*)/i;function X(e,r){return(e||"").replace(ti,(u,o,s,f,c,h)=>{const g=s||c||h,l=o||f||"";if(!g)return u;if(ri.test(g)||ii.test(g))return`url(${l}${g}${l})`;if(si.test(g))return`url(${l}${g}${l})`;if(g[0]==="/")return`url(${l}${ei(r)+g}${l})`;const t=r.split("/"),a=g.split("/");t.pop();for(const n of a)n!=="."&&(n===".."?t.pop():t.push(n));return`url(${l}${t.join("/")}${l})`})}let hr=1;const ni=new RegExp("[^a-z0-9-_:]"),Qe=-2;function pr(){return hr++}function oi(e){if(e instanceof HTMLFormElement)return"form";const r=Z(e.tagName);return ni.test(r)?"div":r}let H,bt;const li=/^[^ \t\n\r\u000c]+/,ai=/^[, \t\n\r\u000c]+/;function ui(e,r){if(r.trim()==="")return r;let u=0;function o(f){let c;const h=f.exec(r.substring(u));return h?(c=h[0],u+=c.length,c):""}const s=[];for(;o(ai),!(u>=r.length);){let f=o(li);if(f.slice(-1)===",")f=J(e,f.substring(0,f.length-1)),s.push(f);else{let c="";f=J(e,f);let h=!1;for(;;){const g=r.charAt(u);if(g===""){s.push((f+c).trim());break}else if(h)g===")"&&(h=!1);else if(g===","){u+=1,s.push((f+c).trim());break}else g==="("&&(h=!0);c+=g,u+=1}}}return s.join(", ")}const St=new WeakMap;function J(e,r){return!r||r.trim()===""?r:Ze(e,r)}function ci(e){return!!(e.tagName==="svg"||e.ownerSVGElement)}function Ze(e,r){let u=St.get(e);if(u||(u=e.createElement("a"),St.set(e,u)),!r)r="";else if(r.startsWith("blob:")||r.startsWith("data:"))return r;return u.setAttribute("href",r),u.href}function dr(e,r,u,o){return o&&(u==="src"||u==="href"&&!(r==="use"&&o[0]==="#")||u==="xlink:href"&&o[0]!=="#"||u==="background"&&(r==="table"||r==="td"||r==="th")?J(e,o):u==="srcset"?ui(e,o):u==="style"?X(o,Ze(e)):r==="object"&&u==="data"?J(e,o):o)}function mr(e,r,u){return(e==="video"||e==="audio")&&r==="autoplay"}function fi(e,r,u){try{if(typeof r=="string"){if(e.classList.contains(r))return!0}else for(let o=e.classList.length;o--;){const s=e.classList[o];if(r.test(s))return!0}if(u)return e.matches(u)}catch(o){}return!1}function ae(e,r,u){if(!e)return!1;if(e.nodeType!==e.ELEMENT_NODE)return u?ae(L.parentNode(e),r,u):!1;for(let o=e.classList.length;o--;){const s=e.classList[o];if(r.test(s))return!0}return u?ae(L.parentNode(e),r,u):!1}function gr(e,r,u,o){let s;if(ue(e)){if(s=e,!L.childNodes(s).length)return!1}else{if(L.parentElement(e)===null)return!1;s=L.parentElement(e)}try{if(typeof r=="string"){if(o){if(s.closest(`.${r}`))return!0}else if(s.classList.contains(r))return!0}else if(ae(s,r,o))return!0;if(u){if(o){if(s.closest(u))return!0}else if(s.matches(u))return!0}}catch(f){}return!1}function hi(e,r,u){const o=e.contentWindow;if(!o)return;let s=!1,f;try{f=o.document.readyState}catch(h){return}if(f!=="complete"){const h=setTimeout(()=>{s||(r(),s=!0)},u);e.addEventListener("load",()=>{clearTimeout(h),s=!0,r()});return}const c="about:blank";if(o.location.href!==c||e.src===c||e.src==="")return setTimeout(r,0),e.addEventListener("load",r);e.addEventListener("load",r)}function pi(e,r,u){let o=!1,s;try{s=e.sheet}catch(c){return}if(s)return;const f=setTimeout(()=>{o||(r(),o=!0)},u);e.addEventListener("load",()=>{clearTimeout(f),o=!0,r()})}function di(e,r){const{doc:u,mirror:o,blockClass:s,blockSelector:f,needsMask:c,inlineStylesheet:h,maskInputOptions:g={},maskTextFn:l,maskInputFn:t,dataURLOptions:a={},inlineImages:n,recordCanvas:i,keepIframeSrcFn:d,newlyAddedElement:p=!1}=r,m=mi(u,o);switch(e.nodeType){case e.DOCUMENT_NODE:return e.compatMode!=="CSS1Compat"?{type:M.Document,childNodes:[],compatMode:e.compatMode}:{type:M.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:M.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:m};case e.ELEMENT_NODE:return wi(e,{doc:u,blockClass:s,blockSelector:f,inlineStylesheet:h,maskInputOptions:g,maskInputFn:t,dataURLOptions:a,inlineImages:n,recordCanvas:i,keepIframeSrcFn:d,newlyAddedElement:p,rootId:m});case e.TEXT_NODE:return gi(e,{doc:u,needsMask:c,maskTextFn:l,rootId:m});case e.CDATA_SECTION_NODE:return{type:M.CDATA,textContent:"",rootId:m};case e.COMMENT_NODE:return{type:M.Comment,textContent:L.textContent(e)||"",rootId:m};default:return!1}}function mi(e,r){if(!r.hasNode(e))return;const u=r.getId(e);return u===1?void 0:u}function gi(e,r){var u;const{needsMask:o,maskTextFn:s,rootId:f}=r,c=L.parentNode(e),h=c&&c.tagName;let g=L.textContent(e);const l=h==="STYLE"?!0:void 0,t=h==="SCRIPT"?!0:void 0;if(l&&g){try{e.nextSibling||e.previousSibling||(u=c.sheet)!=null&&u.cssRules&&(g=Q(c.sheet))}catch(a){console.warn(`Cannot get CSS styles from text's parentNode. Error: ${a}`,e)}g=X(g,Ze(r.doc))}return t&&(g="SCRIPT_PLACEHOLDER"),!l&&!t&&g&&o&&(g=s?s(g,L.parentElement(e)):g.replace(/[\S]/g,"*")),{type:M.Text,textContent:g||"",isStyle:l,rootId:f}}function vt(e,r){return Array.from(e.styleSheets).find(u=>u.href===r)}function yi(e){return e.href}function wi(e,r){const{doc:u,blockClass:o,blockSelector:s,inlineStylesheet:f,maskInputOptions:c={},maskInputFn:h,dataURLOptions:g={},inlineImages:l,recordCanvas:t,keepIframeSrcFn:a,newlyAddedElement:n=!1,rootId:i}=r,d=fi(e,o,s),p=oi(e);let m={};const C=e.attributes.length;for(let w=0;w<C;w++){const v=e.attributes[w];mr(p,v.name,v.value)||(m[v.name]=dr(u,p,Z(v.name),v.value))}if(p==="link"&&f){const w=yi(e);if(w){let v=vt(u,w);if(!v&&w.includes(".css")){const y=window.location.origin,x=w.replace(window.location.href,""),E=y+"/"+x;v=vt(u,E)}let b=null;v&&(b=Q(v)),b&&(delete m.rel,delete m.href,m._cssText=b)}}if(p==="style"&&e.sheet&&!(e.innerText||L.textContent(e)||"").trim().length){const w=Q(e.sheet);w&&(m._cssText=w)}if(p==="input"||p==="textarea"||p==="select"){const w=e.value,v=e.checked;m.type!=="radio"&&m.type!=="checkbox"&&m.type!=="submit"&&m.type!=="button"&&w?m.value=ir({element:e,type:or(e),tagName:p,value:w,maskInputOptions:c,maskInputFn:h}):v&&(m.checked=v)}if(p==="option"&&(e.selected&&!c.select?m.selected=!0:delete m.selected),p==="dialog"&&e.open)try{m.rr_open_mode=e.matches("dialog:modal")?"modal":"non-modal"}catch(w){m.rr_open_mode="modal",m.ph_rr_could_not_detect_modal=!0}if(p==="canvas"&&t){if(e.__context==="2d")sr(e)||(m.rr_dataURL=e.toDataURL(g.type,g.quality));else if(!("__context"in e)){const w=e.toDataURL(g.type,g.quality),v=u.createElement("canvas");v.width=e.width,v.height=e.height;const b=v.toDataURL(g.type,g.quality);w!==b&&(m.rr_dataURL=w)}}if(p==="img"&&l){H||(H=u.createElement("canvas"),bt=H.getContext("2d"));const w=e,v=w.currentSrc||w.getAttribute("src")||"<unknown-src>",b=w.crossOrigin,y=()=>{w.removeEventListener("load",y);try{H.width=w.naturalWidth,H.height=w.naturalHeight,bt.drawImage(w,0,0),m.rr_dataURL=H.toDataURL(g.type,g.quality)}catch(x){if(w.crossOrigin!=="anonymous"){w.crossOrigin="anonymous",w.complete&&w.naturalWidth!==0?y():w.addEventListener("load",y);return}else console.warn(`Cannot inline img src=${v}! Error: ${x}`)}w.crossOrigin==="anonymous"&&(b?m.crossOrigin=b:w.removeAttribute("crossorigin"))};w.complete&&w.naturalWidth!==0?y():w.addEventListener("load",y)}if(p==="audio"||p==="video"){const w=m;w.rr_mediaState=e.paused?"paused":"played",w.rr_mediaCurrentTime=e.currentTime,w.rr_mediaPlaybackRate=e.playbackRate,w.rr_mediaMuted=e.muted,w.rr_mediaLoop=e.loop,w.rr_mediaVolume=e.volume}if(n||(e.scrollLeft&&(m.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(m.rr_scrollTop=e.scrollTop)),d){const{width:w,height:v}=e.getBoundingClientRect();m={class:m.class,rr_width:`${w}px`,rr_height:`${v}px`}}p==="iframe"&&!a(m.src)&&(e.contentDocument||(m.rr_src=m.src),delete m.src);let S;try{customElements.get(p)&&(S=!0)}catch(w){}return{type:M.Element,tagName:p,attributes:m,childNodes:[],isSVG:ci(e)||void 0,needBlock:d,rootId:i,isCustom:S}}function P(e){return e==null?"":e.toLowerCase()}function bi(e,r){if(r.comment&&e.type===M.Comment)return!0;if(e.type===M.Element){if(r.script&&(e.tagName==="script"||e.tagName==="link"&&(e.attributes.rel==="preload"&&e.attributes.as==="script"||e.attributes.rel==="modulepreload")||e.tagName==="link"&&e.attributes.rel==="prefetch"&&typeof e.attributes.href=="string"&&fe(e.attributes.href)==="js"))return!0;if(r.headFavicon&&(e.tagName==="link"&&e.attributes.rel==="shortcut icon"||e.tagName==="meta"&&(P(e.attributes.name).match(/^msapplication-tile(image|color)$/)||P(e.attributes.name)==="application-name"||P(e.attributes.rel)==="icon"||P(e.attributes.rel)==="apple-touch-icon"||P(e.attributes.rel)==="shortcut icon")))return!0;if(e.tagName==="meta"){if(r.headMetaDescKeywords&&P(e.attributes.name).match(/^description|keywords$/))return!0;if(r.headMetaSocial&&(P(e.attributes.property).match(/^(og|twitter|fb):/)||P(e.attributes.name).match(/^(og|twitter):/)||P(e.attributes.name)==="pinterest"))return!0;if(r.headMetaRobots&&(P(e.attributes.name)==="robots"||P(e.attributes.name)==="googlebot"||P(e.attributes.name)==="bingbot"))return!0;if(r.headMetaHttpEquiv&&e.attributes["http-equiv"]!==void 0)return!0;if(r.headMetaAuthorship&&(P(e.attributes.name)==="author"||P(e.attributes.name)==="generator"||P(e.attributes.name)==="framework"||P(e.attributes.name)==="publisher"||P(e.attributes.name)==="progid"||P(e.attributes.property).match(/^article:/)||P(e.attributes.property).match(/^product:/)))return!0;if(r.headMetaVerification&&(P(e.attributes.name)==="google-site-verification"||P(e.attributes.name)==="yandex-verification"||P(e.attributes.name)==="csrf-token"||P(e.attributes.name)==="p:domain_verify"||P(e.attributes.name)==="verify-v1"||P(e.attributes.name)==="verification"||P(e.attributes.name)==="shopify-checkout-api-token"))return!0}}return!1}function Y(e,r){const{doc:u,mirror:o,blockClass:s,blockSelector:f,maskTextClass:c,maskTextSelector:h,skipChild:g=!1,inlineStylesheet:l=!0,maskInputOptions:t={},maskTextFn:a,maskInputFn:n,slimDOMOptions:i,dataURLOptions:d={},inlineImages:p=!1,recordCanvas:m=!1,onSerialize:C,onIframeLoad:S,iframeLoadTimeout:w=5e3,onStylesheetLoad:v,stylesheetLoadTimeout:b=5e3,keepIframeSrcFn:y=()=>!1,newlyAddedElement:x=!1}=r;let{needsMask:E}=r,{preserveWhiteSpace:_=!0}=r;E||(E=gr(e,c,h,E===void 0));const O=di(e,{doc:u,mirror:o,blockClass:s,blockSelector:f,needsMask:E,inlineStylesheet:l,maskInputOptions:t,maskTextFn:a,maskInputFn:n,dataURLOptions:d,inlineImages:p,recordCanvas:m,keepIframeSrcFn:y,newlyAddedElement:x});if(!O)return console.warn(e,"not serialized"),null;let I;o.hasNode(e)?I=o.getId(e):bi(O,i)||!_&&O.type===M.Text&&!O.isStyle&&!O.textContent.replace(/^\s+|\s+$/gm,"").length?I=Qe:I=pr();const N=Object.assign(O,{id:I});if(o.add(e,N),I===Qe)return null;C&&C(e);let j=!g;if(N.type===M.Element){j=j&&!N.needBlock,delete N.needBlock;const R=L.shadowRoot(e);R&&le(R)&&(N.isShadowHost=!0)}if((N.type===M.Document||N.type===M.Element)&&j){i.headWhitespace&&N.type===M.Element&&N.tagName==="head"&&(_=!1);const R={doc:u,mirror:o,blockClass:s,blockSelector:f,needsMask:E,maskTextClass:c,maskTextSelector:h,skipChild:g,inlineStylesheet:l,maskInputOptions:t,maskTextFn:a,maskInputFn:n,slimDOMOptions:i,dataURLOptions:d,inlineImages:p,recordCanvas:m,preserveWhiteSpace:_,onSerialize:C,onIframeLoad:S,iframeLoadTimeout:w,onStylesheetLoad:v,stylesheetLoadTimeout:b,keepIframeSrcFn:y};if(!(N.type===M.Element&&N.tagName==="textarea"&&N.attributes.value!==void 0))for(const D of Array.from(L.childNodes(e))){const T=Y(D,R);T&&N.childNodes.push(T)}let B=null;if(ue(e)&&(B=L.shadowRoot(e)))for(const D of Array.from(L.childNodes(B))){const T=Y(D,R);T&&(le(B)&&(T.isShadow=!0),N.childNodes.push(T))}}const q=L.parentNode(e);return q&&rr(q)&&le(q)&&(N.isShadow=!0),N.type===M.Element&&N.tagName==="iframe"&&hi(e,()=>{const R=e.contentDocument;if(R&&S){const B=Y(R,{doc:R,mirror:o,blockClass:s,blockSelector:f,needsMask:E,maskTextClass:c,maskTextSelector:h,skipChild:!1,inlineStylesheet:l,maskInputOptions:t,maskTextFn:a,maskInputFn:n,slimDOMOptions:i,dataURLOptions:d,inlineImages:p,recordCanvas:m,preserveWhiteSpace:_,onSerialize:C,onIframeLoad:S,iframeLoadTimeout:w,onStylesheetLoad:v,stylesheetLoadTimeout:b,keepIframeSrcFn:y});B&&S(e,B)}},w),N.type===M.Element&&N.tagName==="link"&&typeof N.attributes.rel=="string"&&(N.attributes.rel==="stylesheet"||N.attributes.rel==="preload"&&typeof N.attributes.href=="string"&&fe(N.attributes.href)==="css")&&pi(e,()=>{if(v){const R=Y(e,{doc:u,mirror:o,blockClass:s,blockSelector:f,needsMask:E,maskTextClass:c,maskTextSelector:h,skipChild:!1,inlineStylesheet:l,maskInputOptions:t,maskTextFn:a,maskInputFn:n,slimDOMOptions:i,dataURLOptions:d,inlineImages:p,recordCanvas:m,preserveWhiteSpace:_,onSerialize:C,onIframeLoad:S,iframeLoadTimeout:w,onStylesheetLoad:v,stylesheetLoadTimeout:b,keepIframeSrcFn:y});R&&v(e,R)}},b),N}function Si(e,r){const{mirror:u=new ce,blockClass:o="rr-block",blockSelector:s=null,maskTextClass:f="rr-mask",maskTextSelector:c=null,inlineStylesheet:h=!0,inlineImages:g=!1,recordCanvas:l=!1,maskAllInputs:t=!1,maskTextFn:a,maskInputFn:n,slimDOM:i=!1,dataURLOptions:d,preserveWhiteSpace:p,onSerialize:m,onIframeLoad:C,iframeLoadTimeout:S,onStylesheetLoad:w,stylesheetLoadTimeout:v,keepIframeSrcFn:b=()=>!1}=r||{};return Y(e,{doc:e,mirror:u,blockClass:o,blockSelector:s,maskTextClass:f,maskTextSelector:c,skipChild:!1,inlineStylesheet:h,maskInputOptions:t===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0}:t===!1?{password:!0}:t,maskTextFn:a,maskInputFn:n,slimDOMOptions:i===!0||i==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:i==="all",headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:i===!1?{}:i,dataURLOptions:d,inlineImages:g,recordCanvas:l,preserveWhiteSpace:p,onSerialize:m,onIframeLoad:C,iframeLoadTimeout:S,onStylesheetLoad:w,stylesheetLoadTimeout:v,keepIframeSrcFn:b,newlyAddedElement:!1})}function vi(e,r){function u(o){r(o),(o.type===M.Document||o.type===M.Element)&&o.childNodes.forEach(u)}u(e)}function Ci(){hr=1}var yr=(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))(yr||{});const xi=/(max|min)-device-(width|height)/,Ct=new RegExp(xi.source,"g"),Ri={postcssPlugin:"postcss-custom-selectors",prepare(){return{postcssPlugin:"postcss-custom-selectors",AtRule:function(e){e.params.match(Ct)&&(e.params=e.params.replace(Ct,"$1-$2"))}}}},Ei={postcssPlugin:"postcss-hover-classes",prepare:function(){const e=[];return{Rule:function(r){e.indexOf(r)===-1&&(e.push(r),r.selectors.forEach(function(u){u.includes(":hover")&&(r.selector+=`,
15
- `+u.replace(/:hover/g,".\\:hover"))}))}}}};function wr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Oi(e){if(e.__esModule)return e;var r=e.default;if(typeof r=="function"){var u=function o(){return this instanceof o?Reflect.construct(r,arguments,this.constructor):r.apply(this,arguments)};u.prototype=r.prototype}else u={};return Object.defineProperty(u,"__esModule",{value:!0}),Object.keys(e).forEach(function(o){var s=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(u,o,s.get?s:{enumerable:!0,get:function(){return e[o]}})}),u}var ne={exports:{}},xt;function Ni(){if(xt)return ne.exports;xt=1;var e=String,r=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 ne.exports=r(),ne.exports.createColors=r,ne.exports}const Ai={},Mi=Object.freeze(Object.defineProperty({__proto__:null,default:Ai},Symbol.toStringTag,{value:"Module"})),U=Oi(Mi);var Ce,Rt;function et(){if(Rt)return Ce;Rt=1;let e=Ni(),r=U;class u extends Error{constructor(s,f,c,h,g,l){super(s),this.name="CssSyntaxError",this.reason=s,g&&(this.file=g),h&&(this.source=h),l&&(this.plugin=l),typeof f!="undefined"&&typeof c!="undefined"&&(typeof f=="number"?(this.line=f,this.column=c):(this.line=f.line,this.column=f.column,this.endLine=c.line,this.endColumn=c.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,u)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line!="undefined"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(s){if(!this.source)return"";let f=this.source;s==null&&(s=e.isColorSupported);let c=i=>i,h=i=>i,g=i=>i;if(s){let{bold:i,gray:d,red:p}=e.createColors(!0);h=m=>i(p(m)),c=m=>d(m),r&&(g=m=>r(m))}let l=f.split(/\r?\n/),t=Math.max(this.line-3,0),a=Math.min(this.line+2,l.length),n=String(a).length;return l.slice(t,a).map((i,d)=>{let p=t+1+d,m=" "+(" "+p).slice(-n)+" | ";if(p===this.line){if(i.length>160){let S=20,w=Math.max(0,this.column-S),v=Math.max(this.column+S,this.endColumn+S),b=i.slice(w,v),y=c(m.replace(/\d/g," "))+i.slice(0,Math.min(this.column-1,S-1)).replace(/[^\t]/g," ");return h(">")+c(m)+g(b)+`
14
+ "use strict";var Ir=Object.defineProperty,Lr=Object.defineProperties;var Dr=Object.getOwnPropertyDescriptors;var ie=Object.getOwnPropertySymbols;var pt=Object.prototype.hasOwnProperty,dt=Object.prototype.propertyIsEnumerable;var ht=(e,r,u)=>r in e?Ir(e,r,{enumerable:!0,configurable:!0,writable:!0,value:u}):e[r]=u,F=(e,r)=>{for(var u in r||(r={}))pt.call(r,u)&&ht(e,u,r[u]);if(ie)for(var u of ie(r))dt.call(r,u)&&ht(e,u,r[u]);return e},K=(e,r)=>Lr(e,Dr(r));var be=(e,r)=>{var u={};for(var o in e)pt.call(e,o)&&r.indexOf(o)<0&&(u[o]=e[o]);if(e!=null&&ie)for(var o of ie(e))r.indexOf(o)<0&&dt.call(e,o)&&(u[o]=e[o]);return u};var Tr=Object.defineProperty,Ur=(e,r,u)=>r in e?Tr(e,r,{enumerable:!0,configurable:!0,writable:!0,value:u}):e[r]=u,mt=(e,r,u)=>Ur(e,typeof r!="symbol"?r+"":r,u);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var M=(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))(M||{});const gt={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},yt={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},se={};function Br(e){var r,u;const o=(u=(r=globalThis==null?void 0:globalThis.Zone)==null?void 0:r.__symbol__)==null?void 0:u.call(r,e);if(o&&globalThis[o])return globalThis[o]}function Xe(e){if(se[e])return se[e];const r=Br(e)||globalThis[e],u=r.prototype,o=e in gt?gt[e]:void 0,s=!!(o&&o.every(h=>{var g,l;return!!((l=(g=Object.getOwnPropertyDescriptor(u,h))==null?void 0:g.get)!=null&&l.toString().includes("[native code]"))})),f=e in yt?yt[e]:void 0,c=!!(f&&f.every(h=>{var g;return typeof u[h]=="function"&&((g=u[h])==null?void 0:g.toString().includes("[native code]"))}));if(s&&c)return se[e]=r.prototype,r.prototype;try{const h=document.createElement("iframe");document.body.appendChild(h);const g=h.contentWindow;if(!g)return r.prototype;const l=g[e].prototype;return document.body.removeChild(h),l?se[e]=l:u}catch(h){return u}}const Se={};function W(e,r,u){var o;const s=`${e}.${String(u)}`;if(Se[s])return Se[s].call(r);const f=Xe(e),c=(o=Object.getOwnPropertyDescriptor(f,u))==null?void 0:o.get;return c?(Se[s]=c,c.call(r)):r[u]}const ve={};function tr(e,r,u){const o=`${e}.${String(u)}`;if(ve[o])return ve[o].bind(r);const f=Xe(e)[u];return typeof f!="function"?r[u]:(ve[o]=f,f.bind(r))}function Fr(e){return W("Node",e,"childNodes")}function qr(e){return W("Node",e,"parentNode")}function zr(e){return W("Node",e,"parentElement")}function Wr(e){return W("Node",e,"textContent")}function jr(e,r){return tr("Node",e,"contains")(r)}function $r(e){return tr("Node",e,"getRootNode")()}function Vr(e){return!e||!("host"in e)?null:W("ShadowRoot",e,"host")}function Gr(e){return e.styleSheets}function Hr(e){return!e||!("shadowRoot"in e)?null:W("Element",e,"shadowRoot")}function Jr(e,r){return W("Element",e,"querySelector")(r)}function Yr(e,r){return W("Element",e,"querySelectorAll")(r)}function Kr(){return Xe("MutationObserver").constructor}function Qr(e,r,u){try{if(!(r in e))return()=>{};const o=e[r],s=u(o);return typeof s=="function"&&(s.prototype=s.prototype||{},Object.defineProperties(s,{__rrweb_original__:{enumerable:!1,value:o}})),e[r]=s,()=>{e[r]=o}}catch(o){return()=>{}}}const L={childNodes:Fr,parentNode:qr,parentElement:zr,textContent:Wr,contains:jr,getRootNode:$r,host:Vr,styleSheets:Gr,shadowRoot:Hr,querySelector:Jr,querySelectorAll:Yr,mutationObserver:Kr,patch:Qr};function ue(e){return e.nodeType===e.ELEMENT_NODE}function rr(e){const r=e&&"host"in e&&"mode"in e&&L.host(e)||null;return!!(r&&"shadowRoot"in r&&L.shadowRoot(r)===e)}function le(e){return Object.prototype.toString.call(e)==="[object ShadowRoot]"}function Xr(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 ir(e){const{cssText:r}=e;if(r.split('"').length<3)return r;const u=["@import",`url(${JSON.stringify(e.href)})`];return e.layerName===""?u.push("layer"):e.layerName&&u.push(`layer(${e.layerName})`),e.supportsText&&u.push(`supports(${e.supportsText})`),e.media.length&&u.push(e.media.mediaText),u.join(" ")+";"}function Q(e){try{const r=e.rules||e.cssRules;if(!r)return null;let u=e.href;!u&&e.ownerNode&&(u=e.ownerNode.baseURI);const o=Array.from(r,s=>sr(s,u)).join("");return Xr(o)}catch(r){return null}}function sr(e,r){var u;if(or(e)){let o;try{o=Q(e.styleSheet)||ir(e)}catch(s){o=e.cssText}try{if(o&&((u=e.styleSheet)!=null&&u.href))return X(o,e.styleSheet.href)}catch(s){}return o}else{let o=e.cssText;return lr(e)&&e.selectorText.includes(":")&&(o=nr(o)),r?X(o,r):o}}function nr(e){const r=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return e.replace(r,"$1\\$2")}function or(e){return"styleSheet"in e}function lr(e){return"selectorText"in e}class ce{constructor(){mt(this,"idNodeMap",new Map),mt(this,"nodeMetaMap",new WeakMap)}getId(r){var u;if(!r)return-1;const o=(u=this.getMeta(r))==null?void 0:u.id;return o!=null?o:-1}getNode(r){return this.idNodeMap.get(r)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(r){return this.nodeMetaMap.get(r)||null}removeNodeFromMap(r){const u=this.getId(r);this.idNodeMap.delete(u),r.childNodes&&r.childNodes.forEach(o=>this.removeNodeFromMap(o))}has(r){return this.idNodeMap.has(r)}hasNode(r){return this.nodeMetaMap.has(r)}add(r,u){const o=u.id;this.idNodeMap.set(o,r),this.nodeMetaMap.set(r,u)}replace(r,u){const o=this.getNode(r);if(o){const s=this.nodeMetaMap.get(o);s&&this.nodeMetaMap.set(u,s)}this.idNodeMap.set(r,u)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function Zr(){return new ce}function ar({element:e,maskInputOptions:r,tagName:u,type:o,value:s,maskInputFn:f}){let c=s||"";const h=o&&Z(o);return(r[u.toLowerCase()]||h&&r[h])&&(f?c=f(c,e):c="*".repeat(c.length)),c}function Z(e){return e.toLowerCase()}const wt="__rrweb_original__";function ur(e){const r=e.getContext("2d");if(!r)return!0;const u=50;for(let o=0;o<e.width;o+=u)for(let s=0;s<e.height;s+=u){const f=r.getImageData,c=wt in f?f[wt]:f;if(new Uint32Array(c.call(r,o,s,Math.min(u,e.width-o),Math.min(u,e.height-s)).data.buffer).some(g=>g!==0))return!1}return!0}function cr(e,r){return!e||!r||e.type!==r.type?!1:e.type===M.Document?e.compatMode===r.compatMode:e.type===M.DocumentType?e.name===r.name&&e.publicId===r.publicId&&e.systemId===r.systemId:e.type===M.Comment||e.type===M.Text||e.type===M.CDATA?e.textContent===r.textContent:e.type===M.Element?e.tagName===r.tagName&&JSON.stringify(e.attributes)===JSON.stringify(r.attributes)&&e.isSVG===r.isSVG&&e.needBlock===r.needBlock:!1}function fr(e){const r=e.type;return e.hasAttribute("data-rr-is-password")?"password":r?Z(r):null}function fe(e,r){var f;let u;try{u=new URL(e,r!=null?r:window.location.href)}catch(c){return null}const o=/\.([0-9a-z]+)(?:$)/i,s=u.pathname.match(o);return(f=s==null?void 0:s[1])!=null?f:null}function ei(e){let r="";return e.indexOf("//")>-1?r=e.split("/").slice(0,3).join("/"):r=e.split("/")[0],r=r.split("?")[0],r}const ti=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,ri=/^(?:[a-z+]+:)?\/\//i,ii=/^www\..*/i,si=/^(data:)([^,]*),(.*)/i;function X(e,r){return(e||"").replace(ti,(u,o,s,f,c,h)=>{const g=s||c||h,l=o||f||"";if(!g)return u;if(ri.test(g)||ii.test(g))return`url(${l}${g}${l})`;if(si.test(g))return`url(${l}${g}${l})`;if(g[0]==="/")return`url(${l}${ei(r)+g}${l})`;const t=r.split("/"),a=g.split("/");t.pop();for(const n of a)n!=="."&&(n===".."?t.pop():t.push(n));return`url(${l}${t.join("/")}${l})`})}let hr=1;const ni=new RegExp("[^a-z0-9-_:]"),Qe=-2;function pr(){return hr++}function oi(e){if(e instanceof HTMLFormElement)return"form";const r=Z(e.tagName);return ni.test(r)?"div":r}let H,bt;const li=/^[^ \t\n\r\u000c]+/,ai=/^[, \t\n\r\u000c]+/;function ui(e,r){if(r.trim()==="")return r;let u=0;function o(f){let c;const h=f.exec(r.substring(u));return h?(c=h[0],u+=c.length,c):""}const s=[];for(;o(ai),!(u>=r.length);){let f=o(li);if(f.slice(-1)===",")f=J(e,f.substring(0,f.length-1)),s.push(f);else{let c="";f=J(e,f);let h=!1;for(;;){const g=r.charAt(u);if(g===""){s.push((f+c).trim());break}else if(h)g===")"&&(h=!1);else if(g===","){u+=1,s.push((f+c).trim());break}else g==="("&&(h=!0);c+=g,u+=1}}}return s.join(", ")}const St=new WeakMap;function J(e,r){return!r||r.trim()===""?r:Ze(e,r)}function ci(e){return!!(e.tagName==="svg"||e.ownerSVGElement)}function Ze(e,r){let u=St.get(e);if(u||(u=e.createElement("a"),St.set(e,u)),!r)r="";else if(r.startsWith("blob:")||r.startsWith("data:"))return r;return u.setAttribute("href",r),u.href}function dr(e,r,u,o){return o&&(u==="src"||u==="href"&&!(r==="use"&&o[0]==="#")||u==="xlink:href"&&o[0]!=="#"||u==="background"&&(r==="table"||r==="td"||r==="th")?J(e,o):u==="srcset"?ui(e,o):u==="style"?X(o,Ze(e)):r==="object"&&u==="data"?J(e,o):o)}function mr(e,r,u){return(e==="video"||e==="audio")&&r==="autoplay"}function fi(e,r,u){try{if(typeof r=="string"){if(e.classList.contains(r))return!0}else for(let o=e.classList.length;o--;){const s=e.classList[o];if(r.test(s))return!0}if(u)return e.matches(u)}catch(o){}return!1}function ae(e,r,u){if(!e)return!1;if(e.nodeType!==e.ELEMENT_NODE)return u?ae(L.parentNode(e),r,u):!1;for(let o=e.classList.length;o--;){const s=e.classList[o];if(r.test(s))return!0}return u?ae(L.parentNode(e),r,u):!1}function gr(e,r,u,o){let s;if(ue(e)){if(s=e,!L.childNodes(s).length)return!1}else{if(L.parentElement(e)===null)return!1;s=L.parentElement(e)}try{if(typeof r=="string"){if(o){if(s.closest(`.${r}`))return!0}else if(s.classList.contains(r))return!0}else if(ae(s,r,o))return!0;if(u){if(o){if(s.closest(u))return!0}else if(s.matches(u))return!0}}catch(f){}return!1}function hi(e,r,u){const o=e.contentWindow;if(!o)return;let s=!1,f;try{f=o.document.readyState}catch(h){return}if(f!=="complete"){const h=setTimeout(()=>{s||(r(),s=!0)},u);e.addEventListener("load",()=>{clearTimeout(h),s=!0,r()});return}const c="about:blank";if(o.location.href!==c||e.src===c||e.src==="")return setTimeout(r,0),e.addEventListener("load",r);e.addEventListener("load",r)}function pi(e,r,u){let o=!1,s;try{s=e.sheet}catch(c){return}if(s)return;const f=setTimeout(()=>{o||(r(),o=!0)},u);e.addEventListener("load",()=>{clearTimeout(f),o=!0,r()})}function di(e,r){const{doc:u,mirror:o,blockClass:s,blockSelector:f,needsMask:c,inlineStylesheet:h,maskInputOptions:g={},maskTextFn:l,maskInputFn:t,dataURLOptions:a={},inlineImages:n,recordCanvas:i,keepIframeSrcFn:d,newlyAddedElement:p=!1}=r,m=mi(u,o);switch(e.nodeType){case e.DOCUMENT_NODE:return e.compatMode!=="CSS1Compat"?{type:M.Document,childNodes:[],compatMode:e.compatMode}:{type:M.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:M.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:m};case e.ELEMENT_NODE:return wi(e,{doc:u,blockClass:s,blockSelector:f,inlineStylesheet:h,maskInputOptions:g,maskInputFn:t,dataURLOptions:a,inlineImages:n,recordCanvas:i,keepIframeSrcFn:d,newlyAddedElement:p,rootId:m});case e.TEXT_NODE:return gi(e,{doc:u,needsMask:c,maskTextFn:l,rootId:m});case e.CDATA_SECTION_NODE:return{type:M.CDATA,textContent:"",rootId:m};case e.COMMENT_NODE:return{type:M.Comment,textContent:L.textContent(e)||"",rootId:m};default:return!1}}function mi(e,r){if(!r.hasNode(e))return;const u=r.getId(e);return u===1?void 0:u}function gi(e,r){var u;const{needsMask:o,maskTextFn:s,rootId:f}=r,c=L.parentNode(e),h=c&&c.tagName;let g=L.textContent(e);const l=h==="STYLE"?!0:void 0,t=h==="SCRIPT"?!0:void 0;if(l&&g){try{e.nextSibling||e.previousSibling||(u=c.sheet)!=null&&u.cssRules&&(g=Q(c.sheet))}catch(a){console.warn(`Cannot get CSS styles from text's parentNode. Error: ${a}`,e)}g=X(g,Ze(r.doc))}return t&&(g="SCRIPT_PLACEHOLDER"),!l&&!t&&g&&o&&(g=s?s(g,L.parentElement(e)):g.replace(/[\S]/g,"*")),{type:M.Text,textContent:g||"",isStyle:l,rootId:f}}function vt(e,r){return Array.from(e.styleSheets).find(u=>u.href===r)}function yi(e){return e.href}function wi(e,r){const{doc:u,blockClass:o,blockSelector:s,inlineStylesheet:f,maskInputOptions:c={},maskInputFn:h,dataURLOptions:g={},inlineImages:l,recordCanvas:t,keepIframeSrcFn:a,newlyAddedElement:n=!1,rootId:i}=r,d=fi(e,o,s),p=oi(e);let m={};const C=e.attributes.length;for(let w=0;w<C;w++){const v=e.attributes[w];mr(p,v.name,v.value)||(m[v.name]=dr(u,p,Z(v.name),v.value))}if(p==="link"&&f){const w=yi(e);if(w){let v=vt(u,w);if(!v&&w.includes(".css")){const y=window.location.origin,x=w.replace(window.location.href,""),E=y+"/"+x;v=vt(u,E)}let b=null;v&&(b=Q(v)),b&&(delete m.rel,delete m.href,m._cssText=b)}}if(p==="style"&&e.sheet&&!(e.innerText||L.textContent(e)||"").trim().length){const w=Q(e.sheet);w&&(m._cssText=w)}if(p==="input"||p==="textarea"||p==="select"){const w=e.value,v=e.checked;m.type!=="radio"&&m.type!=="checkbox"&&m.type!=="submit"&&m.type!=="button"&&w?m.value=ar({element:e,type:fr(e),tagName:p,value:w,maskInputOptions:c,maskInputFn:h}):v&&(m.checked=v)}if(p==="option"&&(e.selected&&!c.select?m.selected=!0:delete m.selected),p==="dialog"&&e.open)try{m.rr_open_mode=e.matches("dialog:modal")?"modal":"non-modal"}catch(w){m.rr_open_mode="modal",m.ph_rr_could_not_detect_modal=!0}if(p==="canvas"&&t){if(e.__context==="2d")ur(e)||(m.rr_dataURL=e.toDataURL(g.type,g.quality));else if(!("__context"in e)){const w=e.toDataURL(g.type,g.quality),v=u.createElement("canvas");v.width=e.width,v.height=e.height;const b=v.toDataURL(g.type,g.quality);w!==b&&(m.rr_dataURL=w)}}if(p==="img"&&l){H||(H=u.createElement("canvas"),bt=H.getContext("2d"));const w=e,v=w.currentSrc||w.getAttribute("src")||"<unknown-src>",b=w.crossOrigin,y=()=>{w.removeEventListener("load",y);try{H.width=w.naturalWidth,H.height=w.naturalHeight,bt.drawImage(w,0,0),m.rr_dataURL=H.toDataURL(g.type,g.quality)}catch(x){if(w.crossOrigin!=="anonymous"){w.crossOrigin="anonymous",w.complete&&w.naturalWidth!==0?y():w.addEventListener("load",y);return}else console.warn(`Cannot inline img src=${v}! Error: ${x}`)}w.crossOrigin==="anonymous"&&(b?m.crossOrigin=b:w.removeAttribute("crossorigin"))};w.complete&&w.naturalWidth!==0?y():w.addEventListener("load",y)}if(p==="audio"||p==="video"){const w=m;w.rr_mediaState=e.paused?"paused":"played",w.rr_mediaCurrentTime=e.currentTime,w.rr_mediaPlaybackRate=e.playbackRate,w.rr_mediaMuted=e.muted,w.rr_mediaLoop=e.loop,w.rr_mediaVolume=e.volume}if(n||(e.scrollLeft&&(m.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(m.rr_scrollTop=e.scrollTop)),d){const{width:w,height:v}=e.getBoundingClientRect();m={class:m.class,rr_width:`${w}px`,rr_height:`${v}px`}}p==="iframe"&&!a(m.src)&&(e.contentDocument||(m.rr_src=m.src),delete m.src);let S;try{customElements.get(p)&&(S=!0)}catch(w){}return{type:M.Element,tagName:p,attributes:m,childNodes:[],isSVG:ci(e)||void 0,needBlock:d,rootId:i,isCustom:S}}function P(e){return e==null?"":e.toLowerCase()}function bi(e,r){if(r.comment&&e.type===M.Comment)return!0;if(e.type===M.Element){if(r.script&&(e.tagName==="script"||e.tagName==="link"&&(e.attributes.rel==="preload"&&e.attributes.as==="script"||e.attributes.rel==="modulepreload")||e.tagName==="link"&&e.attributes.rel==="prefetch"&&typeof e.attributes.href=="string"&&fe(e.attributes.href)==="js"))return!0;if(r.headFavicon&&(e.tagName==="link"&&e.attributes.rel==="shortcut icon"||e.tagName==="meta"&&(P(e.attributes.name).match(/^msapplication-tile(image|color)$/)||P(e.attributes.name)==="application-name"||P(e.attributes.rel)==="icon"||P(e.attributes.rel)==="apple-touch-icon"||P(e.attributes.rel)==="shortcut icon")))return!0;if(e.tagName==="meta"){if(r.headMetaDescKeywords&&P(e.attributes.name).match(/^description|keywords$/))return!0;if(r.headMetaSocial&&(P(e.attributes.property).match(/^(og|twitter|fb):/)||P(e.attributes.name).match(/^(og|twitter):/)||P(e.attributes.name)==="pinterest"))return!0;if(r.headMetaRobots&&(P(e.attributes.name)==="robots"||P(e.attributes.name)==="googlebot"||P(e.attributes.name)==="bingbot"))return!0;if(r.headMetaHttpEquiv&&e.attributes["http-equiv"]!==void 0)return!0;if(r.headMetaAuthorship&&(P(e.attributes.name)==="author"||P(e.attributes.name)==="generator"||P(e.attributes.name)==="framework"||P(e.attributes.name)==="publisher"||P(e.attributes.name)==="progid"||P(e.attributes.property).match(/^article:/)||P(e.attributes.property).match(/^product:/)))return!0;if(r.headMetaVerification&&(P(e.attributes.name)==="google-site-verification"||P(e.attributes.name)==="yandex-verification"||P(e.attributes.name)==="csrf-token"||P(e.attributes.name)==="p:domain_verify"||P(e.attributes.name)==="verify-v1"||P(e.attributes.name)==="verification"||P(e.attributes.name)==="shopify-checkout-api-token"))return!0}}return!1}function Y(e,r){const{doc:u,mirror:o,blockClass:s,blockSelector:f,maskTextClass:c,maskTextSelector:h,skipChild:g=!1,inlineStylesheet:l=!0,maskInputOptions:t={},maskTextFn:a,maskInputFn:n,slimDOMOptions:i,dataURLOptions:d={},inlineImages:p=!1,recordCanvas:m=!1,onSerialize:C,onIframeLoad:S,iframeLoadTimeout:w=5e3,onStylesheetLoad:v,stylesheetLoadTimeout:b=5e3,keepIframeSrcFn:y=()=>!1,newlyAddedElement:x=!1}=r;let{needsMask:E}=r,{preserveWhiteSpace:_=!0}=r;E||(E=gr(e,c,h,E===void 0));const O=di(e,{doc:u,mirror:o,blockClass:s,blockSelector:f,needsMask:E,inlineStylesheet:l,maskInputOptions:t,maskTextFn:a,maskInputFn:n,dataURLOptions:d,inlineImages:p,recordCanvas:m,keepIframeSrcFn:y,newlyAddedElement:x});if(!O)return console.warn(e,"not serialized"),null;let I;o.hasNode(e)?I=o.getId(e):bi(O,i)||!_&&O.type===M.Text&&!O.isStyle&&!O.textContent.replace(/^\s+|\s+$/gm,"").length?I=Qe:I=pr();const N=Object.assign(O,{id:I});if(o.add(e,N),I===Qe)return null;C&&C(e);let j=!g;if(N.type===M.Element){j=j&&!N.needBlock,delete N.needBlock;const R=L.shadowRoot(e);R&&le(R)&&(N.isShadowHost=!0)}if((N.type===M.Document||N.type===M.Element)&&j){i.headWhitespace&&N.type===M.Element&&N.tagName==="head"&&(_=!1);const R={doc:u,mirror:o,blockClass:s,blockSelector:f,needsMask:E,maskTextClass:c,maskTextSelector:h,skipChild:g,inlineStylesheet:l,maskInputOptions:t,maskTextFn:a,maskInputFn:n,slimDOMOptions:i,dataURLOptions:d,inlineImages:p,recordCanvas:m,preserveWhiteSpace:_,onSerialize:C,onIframeLoad:S,iframeLoadTimeout:w,onStylesheetLoad:v,stylesheetLoadTimeout:b,keepIframeSrcFn:y};if(!(N.type===M.Element&&N.tagName==="textarea"&&N.attributes.value!==void 0))for(const D of Array.from(L.childNodes(e))){const T=Y(D,R);T&&N.childNodes.push(T)}let B=null;if(ue(e)&&(B=L.shadowRoot(e)))for(const D of Array.from(L.childNodes(B))){const T=Y(D,R);T&&(le(B)&&(T.isShadow=!0),N.childNodes.push(T))}}const q=L.parentNode(e);return q&&rr(q)&&le(q)&&(N.isShadow=!0),N.type===M.Element&&N.tagName==="iframe"&&hi(e,()=>{const R=e.contentDocument;if(R&&S){const B=Y(R,{doc:R,mirror:o,blockClass:s,blockSelector:f,needsMask:E,maskTextClass:c,maskTextSelector:h,skipChild:!1,inlineStylesheet:l,maskInputOptions:t,maskTextFn:a,maskInputFn:n,slimDOMOptions:i,dataURLOptions:d,inlineImages:p,recordCanvas:m,preserveWhiteSpace:_,onSerialize:C,onIframeLoad:S,iframeLoadTimeout:w,onStylesheetLoad:v,stylesheetLoadTimeout:b,keepIframeSrcFn:y});B&&S(e,B)}},w),N.type===M.Element&&N.tagName==="link"&&typeof N.attributes.rel=="string"&&(N.attributes.rel==="stylesheet"||N.attributes.rel==="preload"&&typeof N.attributes.href=="string"&&fe(N.attributes.href)==="css")&&pi(e,()=>{if(v){const R=Y(e,{doc:u,mirror:o,blockClass:s,blockSelector:f,needsMask:E,maskTextClass:c,maskTextSelector:h,skipChild:!1,inlineStylesheet:l,maskInputOptions:t,maskTextFn:a,maskInputFn:n,slimDOMOptions:i,dataURLOptions:d,inlineImages:p,recordCanvas:m,preserveWhiteSpace:_,onSerialize:C,onIframeLoad:S,iframeLoadTimeout:w,onStylesheetLoad:v,stylesheetLoadTimeout:b,keepIframeSrcFn:y});R&&v(e,R)}},b),N}function Si(e,r){const{mirror:u=new ce,blockClass:o="rr-block",blockSelector:s=null,maskTextClass:f="rr-mask",maskTextSelector:c=null,inlineStylesheet:h=!0,inlineImages:g=!1,recordCanvas:l=!1,maskAllInputs:t=!1,maskTextFn:a,maskInputFn:n,slimDOM:i=!1,dataURLOptions:d,preserveWhiteSpace:p,onSerialize:m,onIframeLoad:C,iframeLoadTimeout:S,onStylesheetLoad:w,stylesheetLoadTimeout:v,keepIframeSrcFn:b=()=>!1}=r||{};return Y(e,{doc:e,mirror:u,blockClass:o,blockSelector:s,maskTextClass:f,maskTextSelector:c,skipChild:!1,inlineStylesheet:h,maskInputOptions:t===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0}:t===!1?{password:!0}:t,maskTextFn:a,maskInputFn:n,slimDOMOptions:i===!0||i==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:i==="all",headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:i===!1?{}:i,dataURLOptions:d,inlineImages:g,recordCanvas:l,preserveWhiteSpace:p,onSerialize:m,onIframeLoad:C,iframeLoadTimeout:S,onStylesheetLoad:w,stylesheetLoadTimeout:v,keepIframeSrcFn:b,newlyAddedElement:!1})}function vi(e,r){function u(o){r(o),(o.type===M.Document||o.type===M.Element)&&o.childNodes.forEach(u)}u(e)}function Ci(){hr=1}const xi=/(max|min)-device-(width|height)/,Ct=new RegExp(xi.source,"g"),Ri={postcssPlugin:"postcss-custom-selectors",prepare(){return{postcssPlugin:"postcss-custom-selectors",AtRule:function(e){e.params.match(Ct)&&(e.params=e.params.replace(Ct,"$1-$2"))}}}},Ei={postcssPlugin:"postcss-hover-classes",prepare:function(){const e=[];return{Rule:function(r){e.indexOf(r)===-1&&(e.push(r),r.selectors.forEach(function(u){u.includes(":hover")&&(r.selector+=`,
15
+ `+u.replace(/:hover/g,".\\:hover"))}))}}}};function yr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Oi(e){if(e.__esModule)return e;var r=e.default;if(typeof r=="function"){var u=function o(){return this instanceof o?Reflect.construct(r,arguments,this.constructor):r.apply(this,arguments)};u.prototype=r.prototype}else u={};return Object.defineProperty(u,"__esModule",{value:!0}),Object.keys(e).forEach(function(o){var s=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(u,o,s.get?s:{enumerable:!0,get:function(){return e[o]}})}),u}var ne={exports:{}},xt;function Ni(){if(xt)return ne.exports;xt=1;var e=String,r=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 ne.exports=r(),ne.exports.createColors=r,ne.exports}const Ai={},Mi=Object.freeze(Object.defineProperty({__proto__:null,default:Ai},Symbol.toStringTag,{value:"Module"})),U=Oi(Mi);var Ce,Rt;function et(){if(Rt)return Ce;Rt=1;let e=Ni(),r=U;class u extends Error{constructor(s,f,c,h,g,l){super(s),this.name="CssSyntaxError",this.reason=s,g&&(this.file=g),h&&(this.source=h),l&&(this.plugin=l),typeof f!="undefined"&&typeof c!="undefined"&&(typeof f=="number"?(this.line=f,this.column=c):(this.line=f.line,this.column=f.column,this.endLine=c.line,this.endColumn=c.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,u)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line!="undefined"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(s){if(!this.source)return"";let f=this.source;s==null&&(s=e.isColorSupported);let c=i=>i,h=i=>i,g=i=>i;if(s){let{bold:i,gray:d,red:p}=e.createColors(!0);h=m=>i(p(m)),c=m=>d(m),r&&(g=m=>r(m))}let l=f.split(/\r?\n/),t=Math.max(this.line-3,0),a=Math.min(this.line+2,l.length),n=String(a).length;return l.slice(t,a).map((i,d)=>{let p=t+1+d,m=" "+(" "+p).slice(-n)+" | ";if(p===this.line){if(i.length>160){let S=20,w=Math.max(0,this.column-S),v=Math.max(this.column+S,this.endColumn+S),b=i.slice(w,v),y=c(m.replace(/\d/g," "))+i.slice(0,Math.min(this.column-1,S-1)).replace(/[^\t]/g," ");return h(">")+c(m)+g(b)+`
16
16
  `+y+h("^")}let C=c(m.replace(/\d/g," "))+i.slice(0,this.column-1).replace(/[^\t]/g," ");return h(">")+c(m)+g(i)+`
17
17
  `+C+h("^")}return" "+c(m)+g(i)}).join(`
18
18
  `)}toString(){let s=this.showSourceCode();return s&&(s=`
19
19
 
20
20
  `+s+`
21
- `),this.name+": "+this.message+s}}return Ce=u,u.default=u,Ce}var xe,Et;function br(){if(Et)return xe;Et=1;const e={after:`
21
+ `),this.name+": "+this.message+s}}return Ce=u,u.default=u,Ce}var xe,Et;function wr(){if(Et)return xe;Et=1;const e={after:`
22
22
  `,beforeClose:`
23
23
  `,beforeComment:`
24
24
  `,beforeDecl:`
@@ -29,17 +29,17 @@ var module = { exports };
29
29
  `)&&(c=c.replace(/[^\n]+$/,"")),!1}),typeof c=="undefined"?c=this.raw(f,null,"beforeDecl"):c&&(c=c.replace(/\S/g,"")),c}rawBeforeDecl(s,f){let c;return s.walkDecls(h=>{if(typeof h.raws.before!="undefined")return c=h.raws.before,c.includes(`
30
30
  `)&&(c=c.replace(/[^\n]+$/,"")),!1}),typeof c=="undefined"?c=this.raw(f,null,"beforeRule"):c&&(c=c.replace(/\S/g,"")),c}rawBeforeOpen(s){let f;return s.walk(c=>{if(c.type!=="decl"&&(f=c.raws.between,typeof f!="undefined"))return!1}),f}rawBeforeRule(s){let f;return s.walk(c=>{if(c.nodes&&(c.parent!==s||s.first!==c)&&typeof c.raws.before!="undefined")return f=c.raws.before,f.includes(`
31
31
  `)&&(f=f.replace(/[^\n]+$/,"")),!1}),f&&(f=f.replace(/\S/g,"")),f}rawColon(s){let f;return s.walkDecls(c=>{if(typeof c.raws.between!="undefined")return f=c.raws.between.replace(/[^\s:]/g,""),!1}),f}rawEmptyBody(s){let f;return s.walk(c=>{if(c.nodes&&c.nodes.length===0&&(f=c.raws.after,typeof f!="undefined"))return!1}),f}rawIndent(s){if(s.raws.indent)return s.raws.indent;let f;return s.walk(c=>{let h=c.parent;if(h&&h!==s&&h.parent&&h.parent===s&&typeof c.raws.before!="undefined"){let g=c.raws.before.split(`
32
- `);return f=g[g.length-1],f=f.replace(/\S/g,""),!1}}),f}rawSemicolon(s){let f;return s.walk(c=>{if(c.nodes&&c.nodes.length&&c.last.type==="decl"&&(f=c.raws.semicolon,typeof f!="undefined"))return!1}),f}rawValue(s,f){let c=s[f],h=s.raws[f];return h&&h.value===c?h.raw:c}root(s){this.body(s),s.raws.after&&this.builder(s.raws.after)}rule(s){this.block(s,this.rawValue(s,"selector")),s.raws.ownSemicolon&&this.builder(s.raws.ownSemicolon,s,"end")}stringify(s,f){if(!this[s.type])throw new Error("Unknown AST node type "+s.type+". Maybe you need to change PostCSS stringifier.");this[s.type](s,f)}}return xe=u,u.default=u,xe}var Re,Ot;function he(){if(Ot)return Re;Ot=1;let e=br();function r(u,o){new e(o).stringify(u)}return Re=r,r.default=r,Re}var oe={},Nt;function tt(){return Nt||(Nt=1,oe.isClean=Symbol("isClean"),oe.my=Symbol("my")),oe}var Ee,At;function pe(){if(At)return Ee;At=1;let e=et(),r=br(),u=he(),{isClean:o,my:s}=tt();function f(g,l){let t=new g.constructor;for(let a in g){if(!Object.prototype.hasOwnProperty.call(g,a)||a==="proxyCache")continue;let n=g[a],i=typeof n;a==="parent"&&i==="object"?l&&(t[a]=l):a==="source"?t[a]=n:Array.isArray(n)?t[a]=n.map(d=>f(d,t)):(i==="object"&&n!==null&&(n=f(n)),t[a]=n)}return t}function c(g,l){if(l&&typeof l.offset!="undefined")return l.offset;let t=1,a=1,n=0;for(let i=0;i<g.length;i++){if(a===l.line&&t===l.column){n=i;break}g[i]===`
32
+ `);return f=g[g.length-1],f=f.replace(/\S/g,""),!1}}),f}rawSemicolon(s){let f;return s.walk(c=>{if(c.nodes&&c.nodes.length&&c.last.type==="decl"&&(f=c.raws.semicolon,typeof f!="undefined"))return!1}),f}rawValue(s,f){let c=s[f],h=s.raws[f];return h&&h.value===c?h.raw:c}root(s){this.body(s),s.raws.after&&this.builder(s.raws.after)}rule(s){this.block(s,this.rawValue(s,"selector")),s.raws.ownSemicolon&&this.builder(s.raws.ownSemicolon,s,"end")}stringify(s,f){if(!this[s.type])throw new Error("Unknown AST node type "+s.type+". Maybe you need to change PostCSS stringifier.");this[s.type](s,f)}}return xe=u,u.default=u,xe}var Re,Ot;function he(){if(Ot)return Re;Ot=1;let e=wr();function r(u,o){new e(o).stringify(u)}return Re=r,r.default=r,Re}var oe={},Nt;function tt(){return Nt||(Nt=1,oe.isClean=Symbol("isClean"),oe.my=Symbol("my")),oe}var Ee,At;function pe(){if(At)return Ee;At=1;let e=et(),r=wr(),u=he(),{isClean:o,my:s}=tt();function f(g,l){let t=new g.constructor;for(let a in g){if(!Object.prototype.hasOwnProperty.call(g,a)||a==="proxyCache")continue;let n=g[a],i=typeof n;a==="parent"&&i==="object"?l&&(t[a]=l):a==="source"?t[a]=n:Array.isArray(n)?t[a]=n.map(d=>f(d,t)):(i==="object"&&n!==null&&(n=f(n)),t[a]=n)}return t}function c(g,l){if(l&&typeof l.offset!="undefined")return l.offset;let t=1,a=1,n=0;for(let i=0;i<g.length;i++){if(a===l.line&&t===l.column){n=i;break}g[i]===`
33
33
  `?(t=1,a+=1):t+=1}return n}class h{constructor(l={}){this.raws={},this[o]=!1,this[s]=!0;for(let t in l)if(t==="nodes"){this.nodes=[];for(let a of l[t])typeof a.clone=="function"?this.append(a.clone()):this.append(a)}else this[t]=l[t]}addToError(l){if(l.postcssNode=this,l.stack&&this.source&&/\n\s{4}at /.test(l.stack)){let t=this.source;l.stack=l.stack.replace(/\n\s{4}at /,`$&${t.input.from}:${t.start.line}:${t.start.column}$&`)}return l}after(l){return this.parent.insertAfter(this,l),this}assign(l={}){for(let t in l)this[t]=l[t];return this}before(l){return this.parent.insertBefore(this,l),this}cleanRaws(l){delete this.raws.before,delete this.raws.after,l||delete this.raws.between}clone(l={}){let t=f(this);for(let a in l)t[a]=l[a];return t}cloneAfter(l={}){let t=this.clone(l);return this.parent.insertAfter(this,t),t}cloneBefore(l={}){let t=this.clone(l);return this.parent.insertBefore(this,t),t}error(l,t={}){if(this.source){let{end:a,start:n}=this.rangeBy(t);return this.source.input.error(l,{column:n.column,line:n.line},{column:a.column,line:a.line},t)}return new e(l)}getProxyProcessor(){return{get(l,t){return t==="proxyOf"?l:t==="root"?()=>l.root().toProxy():l[t]},set(l,t,a){return l[t]===a||(l[t]=a,(t==="prop"||t==="value"||t==="name"||t==="params"||t==="important"||t==="text")&&l.markDirty()),!0}}}markClean(){this[o]=!0}markDirty(){if(this[o]){this[o]=!1;let l=this;for(;l=l.parent;)l[o]=!1}}next(){if(!this.parent)return;let l=this.parent.index(this);return this.parent.nodes[l+1]}positionBy(l){let t=this.source.start;if(l.index)t=this.positionInside(l.index);else if(l.word){let a="document"in this.source.input?this.source.input.document:this.source.input.css,i=a.slice(c(a,this.source.start),c(a,this.source.end)).indexOf(l.word);i!==-1&&(t=this.positionInside(i))}return t}positionInside(l){let t=this.source.start.column,a=this.source.start.line,n="document"in this.source.input?this.source.input.document:this.source.input.css,i=c(n,this.source.start),d=i+l;for(let p=i;p<d;p++)n[p]===`
34
- `?(t=1,a+=1):t+=1;return{column:t,line:a}}prev(){if(!this.parent)return;let l=this.parent.index(this);return this.parent.nodes[l-1]}rangeBy(l){let t={column:this.source.start.column,line:this.source.start.line},a=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:t.column+1,line:t.line};if(l.word){let n="document"in this.source.input?this.source.input.document:this.source.input.css,d=n.slice(c(n,this.source.start),c(n,this.source.end)).indexOf(l.word);d!==-1&&(t=this.positionInside(d),a=this.positionInside(d+l.word.length))}else l.start?t={column:l.start.column,line:l.start.line}:l.index&&(t=this.positionInside(l.index)),l.end?a={column:l.end.column,line:l.end.line}:typeof l.endIndex=="number"?a=this.positionInside(l.endIndex):l.index&&(a=this.positionInside(l.index+1));return(a.line<t.line||a.line===t.line&&a.column<=t.column)&&(a={column:t.column+1,line:t.line}),{end:a,start:t}}raw(l,t){return new r().raw(this,l,t)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...l){if(this.parent){let t=this,a=!1;for(let n of l)n===this?a=!0:a?(this.parent.insertAfter(t,n),t=n):this.parent.insertBefore(t,n);a||this.remove()}return this}root(){let l=this;for(;l.parent&&l.parent.type!=="document";)l=l.parent;return l}toJSON(l,t){let a={},n=t==null;t=t||new Map;let i=0;for(let d in this){if(!Object.prototype.hasOwnProperty.call(this,d)||d==="parent"||d==="proxyCache")continue;let p=this[d];if(Array.isArray(p))a[d]=p.map(m=>typeof m=="object"&&m.toJSON?m.toJSON(null,t):m);else if(typeof p=="object"&&p.toJSON)a[d]=p.toJSON(null,t);else if(d==="source"){let m=t.get(p.input);m==null&&(m=i,t.set(p.input,i),i++),a[d]={end:p.end,inputId:m,start:p.start}}else a[d]=p}return n&&(a.inputs=[...t.keys()].map(d=>d.toJSON())),a}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(l=u){l.stringify&&(l=l.stringify);let t="";return l(this,a=>{t+=a}),t}warn(l,t,a){let n={node:this};for(let i in a)n[i]=a[i];return l.warn(t,n)}get proxyOf(){return this}}return Ee=h,h.default=h,Ee}var Oe,Mt;function ee(){if(Mt)return Oe;Mt=1;let e=pe();class r extends e{constructor(o){super(o),this.type="comment"}}return Oe=r,r.default=r,Oe}var Ne,_t;function de(){if(_t)return Ne;_t=1;let e=pe();class r extends e{constructor(o){o&&typeof o.value!="undefined"&&typeof o.value!="string"&&(o=K(F({},o),{value:String(o.value)})),super(o),this.type="decl"}get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}}return Ne=r,r.default=r,Ne}var Ae,Pt;function $(){if(Pt)return Ae;Pt=1;let e=ee(),r=de(),u=pe(),{isClean:o,my:s}=tt(),f,c,h,g;function l(n){return n.map(i=>(i.nodes&&(i.nodes=l(i.nodes)),delete i.source,i))}function t(n){if(n[o]=!1,n.proxyOf.nodes)for(let i of n.proxyOf.nodes)t(i)}class a extends u{append(...i){for(let d of i){let p=this.normalize(d,this.last);for(let m of p)this.proxyOf.nodes.push(m)}return this.markDirty(),this}cleanRaws(i){if(super.cleanRaws(i),this.nodes)for(let d of this.nodes)d.cleanRaws(i)}each(i){if(!this.proxyOf.nodes)return;let d=this.getIterator(),p,m;for(;this.indexes[d]<this.proxyOf.nodes.length&&(p=this.indexes[d],m=i(this.proxyOf.nodes[p],p),m!==!1);)this.indexes[d]+=1;return delete this.indexes[d],m}every(i){return this.nodes.every(i)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let i=this.lastEach;return this.indexes[i]=0,i}getProxyProcessor(){return{get(i,d){return d==="proxyOf"?i:i[d]?d==="each"||typeof d=="string"&&d.startsWith("walk")?(...p)=>i[d](...p.map(m=>typeof m=="function"?(C,S)=>m(C.toProxy(),S):m)):d==="every"||d==="some"?p=>i[d]((m,...C)=>p(m.toProxy(),...C)):d==="root"?()=>i.root().toProxy():d==="nodes"?i.nodes.map(p=>p.toProxy()):d==="first"||d==="last"?i[d].toProxy():i[d]:i[d]},set(i,d,p){return i[d]===p||(i[d]=p,(d==="name"||d==="params"||d==="selector")&&i.markDirty()),!0}}}index(i){return typeof i=="number"?i:(i.proxyOf&&(i=i.proxyOf),this.proxyOf.nodes.indexOf(i))}insertAfter(i,d){let p=this.index(i),m=this.normalize(d,this.proxyOf.nodes[p]).reverse();p=this.index(i);for(let S of m)this.proxyOf.nodes.splice(p+1,0,S);let C;for(let S in this.indexes)C=this.indexes[S],p<C&&(this.indexes[S]=C+m.length);return this.markDirty(),this}insertBefore(i,d){let p=this.index(i),m=p===0?"prepend":!1,C=this.normalize(d,this.proxyOf.nodes[p],m).reverse();p=this.index(i);for(let w of C)this.proxyOf.nodes.splice(p,0,w);let S;for(let w in this.indexes)S=this.indexes[w],p<=S&&(this.indexes[w]=S+C.length);return this.markDirty(),this}normalize(i,d){if(typeof i=="string")i=l(c(i).nodes);else if(typeof i=="undefined")i=[];else if(Array.isArray(i)){i=i.slice(0);for(let m of i)m.parent&&m.parent.removeChild(m,"ignore")}else if(i.type==="root"&&this.type!=="document"){i=i.nodes.slice(0);for(let m of i)m.parent&&m.parent.removeChild(m,"ignore")}else if(i.type)i=[i];else if(i.prop){if(typeof i.value=="undefined")throw new Error("Value field is missed in node creation");typeof i.value!="string"&&(i.value=String(i.value)),i=[new r(i)]}else if(i.selector||i.selectors)i=[new g(i)];else if(i.name)i=[new f(i)];else if(i.text)i=[new e(i)];else throw new Error("Unknown node type in node creation");return i.map(m=>(m[s]||a.rebuild(m),m=m.proxyOf,m.parent&&m.parent.removeChild(m),m[o]&&t(m),m.raws||(m.raws={}),typeof m.raws.before=="undefined"&&d&&typeof d.raws.before!="undefined"&&(m.raws.before=d.raws.before.replace(/\S/g,"")),m.parent=this.proxyOf,m))}prepend(...i){i=i.reverse();for(let d of i){let p=this.normalize(d,this.first,"prepend").reverse();for(let m of p)this.proxyOf.nodes.unshift(m);for(let m in this.indexes)this.indexes[m]=this.indexes[m]+p.length}return this.markDirty(),this}push(i){return i.parent=this,this.proxyOf.nodes.push(i),this}removeAll(){for(let i of this.proxyOf.nodes)i.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(i){i=this.index(i),this.proxyOf.nodes[i].parent=void 0,this.proxyOf.nodes.splice(i,1);let d;for(let p in this.indexes)d=this.indexes[p],d>=i&&(this.indexes[p]=d-1);return this.markDirty(),this}replaceValues(i,d,p){return p||(p=d,d={}),this.walkDecls(m=>{d.props&&!d.props.includes(m.prop)||d.fast&&!m.value.includes(d.fast)||(m.value=m.value.replace(i,p))}),this.markDirty(),this}some(i){return this.nodes.some(i)}walk(i){return this.each((d,p)=>{let m;try{m=i(d,p)}catch(C){throw d.addToError(C)}return m!==!1&&d.walk&&(m=d.walk(i)),m})}walkAtRules(i,d){return d?i instanceof RegExp?this.walk((p,m)=>{if(p.type==="atrule"&&i.test(p.name))return d(p,m)}):this.walk((p,m)=>{if(p.type==="atrule"&&p.name===i)return d(p,m)}):(d=i,this.walk((p,m)=>{if(p.type==="atrule")return d(p,m)}))}walkComments(i){return this.walk((d,p)=>{if(d.type==="comment")return i(d,p)})}walkDecls(i,d){return d?i instanceof RegExp?this.walk((p,m)=>{if(p.type==="decl"&&i.test(p.prop))return d(p,m)}):this.walk((p,m)=>{if(p.type==="decl"&&p.prop===i)return d(p,m)}):(d=i,this.walk((p,m)=>{if(p.type==="decl")return d(p,m)}))}walkRules(i,d){return d?i instanceof RegExp?this.walk((p,m)=>{if(p.type==="rule"&&i.test(p.selector))return d(p,m)}):this.walk((p,m)=>{if(p.type==="rule"&&p.selector===i)return d(p,m)}):(d=i,this.walk((p,m)=>{if(p.type==="rule")return d(p,m)}))}get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}}return a.registerParse=n=>{c=n},a.registerRule=n=>{g=n},a.registerAtRule=n=>{f=n},a.registerRoot=n=>{h=n},Ae=a,a.default=a,a.rebuild=n=>{n.type==="atrule"?Object.setPrototypeOf(n,f.prototype):n.type==="rule"?Object.setPrototypeOf(n,g.prototype):n.type==="decl"?Object.setPrototypeOf(n,r.prototype):n.type==="comment"?Object.setPrototypeOf(n,e.prototype):n.type==="root"&&Object.setPrototypeOf(n,h.prototype),n[s]=!0,n.nodes&&n.nodes.forEach(i=>{a.rebuild(i)})},Ae}var Me,kt;function rt(){if(kt)return Me;kt=1;let e=$();class r extends e{constructor(o){super(o),this.type="atrule"}append(...o){return this.proxyOf.nodes||(this.nodes=[]),super.append(...o)}prepend(...o){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...o)}}return Me=r,r.default=r,e.registerAtRule(r),Me}var _e,It;function it(){if(It)return _e;It=1;let e=$(),r,u;class o extends e{constructor(f){super(F({type:"document"},f)),this.nodes||(this.nodes=[])}toResult(f={}){return new r(new u,this,f).stringify()}}return o.registerLazyResult=s=>{r=s},o.registerProcessor=s=>{u=s},_e=o,o.default=o,_e}var Pe,Lt;function _i(){if(Lt)return Pe;Lt=1;let e="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";return Pe={nanoid:(o=21)=>{let s="",f=o|0;for(;f--;)s+=e[Math.random()*64|0];return s},customAlphabet:(o,s=21)=>(f=s)=>{let c="",h=f|0;for(;h--;)c+=o[Math.random()*o.length|0];return c}},Pe}var ke,Dt;function Sr(){if(Dt)return ke;Dt=1;let{existsSync:e,readFileSync:r}=U,{dirname:u,join:o}=U,{SourceMapConsumer:s,SourceMapGenerator:f}=U;function c(g){return Buffer?Buffer.from(g,"base64").toString():window.atob(g)}class h{constructor(l,t){if(t.map===!1)return;this.loadAnnotation(l),this.inline=this.startWith(this.annotation,"data:");let a=t.map?t.map.prev:void 0,n=this.loadMap(t.from,a);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=u(this.mapFile)),n&&(this.text=n)}consumer(){return this.consumerCache||(this.consumerCache=new s(this.text)),this.consumerCache}decodeInline(l){let t=/^data:application\/json;charset=utf-?8;base64,/,a=/^data:application\/json;base64,/,n=/^data:application\/json;charset=utf-?8,/,i=/^data:application\/json,/,d=l.match(n)||l.match(i);if(d)return decodeURIComponent(l.substr(d[0].length));let p=l.match(t)||l.match(a);if(p)return c(l.substr(p[0].length));let m=l.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+m)}getAnnotationURL(l){return l.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(l){return typeof l!="object"?!1:typeof l.mappings=="string"||typeof l._mappings=="string"||Array.isArray(l.sections)}loadAnnotation(l){let t=l.match(/\/\*\s*# sourceMappingURL=/g);if(!t)return;let a=l.lastIndexOf(t.pop()),n=l.indexOf("*/",a);a>-1&&n>-1&&(this.annotation=this.getAnnotationURL(l.substring(a,n)))}loadFile(l){if(this.root=u(l),e(l))return this.mapFile=l,r(l,"utf-8").toString().trim()}loadMap(l,t){if(t===!1)return!1;if(t){if(typeof t=="string")return t;if(typeof t=="function"){let a=t(l);if(a){let n=this.loadFile(a);if(!n)throw new Error("Unable to load previous source map: "+a.toString());return n}}else{if(t instanceof s)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 a=this.annotation;return l&&(a=o(u(l),a)),this.loadFile(a)}}}startWith(l,t){return l?l.substr(0,t.length)===t:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}}return ke=h,h.default=h,ke}var Ie,Tt;function me(){if(Tt)return Ie;Tt=1;let{nanoid:e}=_i(),{isAbsolute:r,resolve:u}=U,{SourceMapConsumer:o,SourceMapGenerator:s}=U,{fileURLToPath:f,pathToFileURL:c}=U,h=et(),g=Sr(),l=U,t=Symbol("fromOffsetCache"),a=!!(o&&s),n=!!(u&&r);class i{constructor(p,m={}){if(p===null||typeof p=="undefined"||typeof p=="object"&&!p.toString)throw new Error(`PostCSS received ${p} instead of CSS string`);if(this.css=p.toString(),this.css[0]==="\uFEFF"||this.css[0]==="\uFFFE"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,this.document=this.css,m.document&&(this.document=m.document.toString()),m.from&&(!n||/^\w+:\/\//.test(m.from)||r(m.from)?this.file=m.from:this.file=u(m.from)),n&&a){let C=new g(this.css,m);if(C.text){this.map=C;let S=C.consumer().file;!this.file&&S&&(this.file=this.mapResolve(S))}}this.file||(this.id="<input css "+e(6)+">"),this.map&&(this.map.file=this.from)}error(p,m,C,S={}){let w,v,b;if(m&&typeof m=="object"){let x=m,E=C;if(typeof x.offset=="number"){let _=this.fromOffset(x.offset);m=_.line,C=_.col}else m=x.line,C=x.column;if(typeof E.offset=="number"){let _=this.fromOffset(E.offset);v=_.line,w=_.col}else v=E.line,w=E.column}else if(!C){let x=this.fromOffset(m);m=x.line,C=x.col}let y=this.origin(m,C,v,w);return y?b=new h(p,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,S.plugin):b=new h(p,v===void 0?m:{column:C,line:m},v===void 0?C:{column:w,line:v},this.css,this.file,S.plugin),b.input={column:C,endColumn:w,endLine:v,line:m,source:this.css},this.file&&(c&&(b.input.url=c(this.file).toString()),b.input.file=this.file),b}fromOffset(p){let m,C;if(this[t])C=this[t];else{let w=this.css.split(`
35
- `);C=new Array(w.length);let v=0;for(let b=0,y=w.length;b<y;b++)C[b]=v,v+=w[b].length+1;this[t]=C}m=C[C.length-1];let S=0;if(p>=m)S=C.length-1;else{let w=C.length-2,v;for(;S<w;)if(v=S+(w-S>>1),p<C[v])w=v-1;else if(p>=C[v+1])S=v+1;else{S=v;break}}return{col:p-C[S]+1,line:S+1}}mapResolve(p){return/^\w+:\/\//.test(p)?p:u(this.map.consumer().sourceRoot||this.map.root||".",p)}origin(p,m,C,S){if(!this.map)return!1;let w=this.map.consumer(),v=w.originalPositionFor({column:m,line:p});if(!v.source)return!1;let b;typeof C=="number"&&(b=w.originalPositionFor({column:S,line:C}));let y;r(v.source)?y=c(v.source):y=new URL(v.source,this.map.consumer().sourceRoot||c(this.map.mapFile));let x={column:v.column,endColumn:b&&b.column,endLine:b&&b.line,line:v.line,url:y.toString()};if(y.protocol==="file:")if(f)x.file=f(y);else throw new Error("file: protocol is not available in this PostCSS build");let E=w.sourceContentFor(v.source);return E&&(x.source=E),x}toJSON(){let p={};for(let m of["hasBOM","css","file","id"])this[m]!=null&&(p[m]=this[m]);return this.map&&(p.map=F({},this.map),p.map.consumerCache&&(p.map.consumerCache=void 0)),p}get from(){return this.file||this.id}}return Ie=i,i.default=i,l&&l.registerInput&&l.registerInput(i),Ie}var Le,Ut;function te(){if(Ut)return Le;Ut=1;let e=$(),r,u;class o extends e{constructor(f){super(f),this.type="root",this.nodes||(this.nodes=[])}normalize(f,c,h){let g=super.normalize(f);if(c){if(h==="prepend")this.nodes.length>1?c.raws.before=this.nodes[1].raws.before:delete c.raws.before;else if(this.first!==c)for(let l of g)l.raws.before=c.raws.before}return g}removeChild(f,c){let h=this.index(f);return!c&&h===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[h].raws.before),super.removeChild(f)}toResult(f={}){return new r(new u,this,f).stringify()}}return o.registerLazyResult=s=>{r=s},o.registerProcessor=s=>{u=s},Le=o,o.default=o,e.registerRoot(o),Le}var De,Bt;function vr(){if(Bt)return De;Bt=1;let e={comma(r){return e.split(r,[","],!0)},space(r){let u=[" ",`
36
- `," "];return e.split(r,u)},split(r,u,o){let s=[],f="",c=!1,h=0,g=!1,l="",t=!1;for(let a of r)t?t=!1:a==="\\"?t=!0:g?a===l&&(g=!1):a==='"'||a==="'"?(g=!0,l=a):a==="("?h+=1:a===")"?h>0&&(h-=1):h===0&&u.includes(a)&&(c=!0),c?(f!==""&&s.push(f.trim()),f="",c=!1):f+=a;return(o||f!=="")&&s.push(f.trim()),s}};return De=e,e.default=e,De}var Te,Ft;function st(){if(Ft)return Te;Ft=1;let e=$(),r=vr();class u extends e{constructor(s){super(s),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return r.comma(this.selector)}set selectors(s){let f=this.selector?this.selector.match(/,\s*/):null,c=f?f[0]:","+this.raw("between","beforeOpen");this.selector=s.join(c)}}return Te=u,u.default=u,e.registerRule(u),Te}var Ue,qt;function Pi(){if(qt)return Ue;qt=1;let e=rt(),r=ee(),u=de(),o=me(),s=Sr(),f=te(),c=st();function h(g,l){if(Array.isArray(g))return g.map(d=>h(d));let n=g,{inputs:t}=n,a=be(n,["inputs"]);if(t){l=[];for(let d of t){let p=K(F({},d),{__proto__:o.prototype});p.map&&(p.map=K(F({},p.map),{__proto__:s.prototype})),l.push(p)}}if(a.nodes&&(a.nodes=g.nodes.map(d=>h(d,l))),a.source){let i=a.source,{inputId:d}=i,p=be(i,["inputId"]);a.source=p,d!=null&&(a.source.input=l[d])}if(a.type==="root")return new f(a);if(a.type==="decl")return new u(a);if(a.type==="rule")return new c(a);if(a.type==="comment")return new r(a);if(a.type==="atrule")return new e(a);throw new Error("Unknown node type: "+g.type)}return Ue=h,h.default=h,Ue}var Be,zt;function Cr(){if(zt)return Be;zt=1;let{dirname:e,relative:r,resolve:u,sep:o}=U,{SourceMapConsumer:s,SourceMapGenerator:f}=U,{pathToFileURL:c}=U,h=me(),g=!!(s&&f),l=!!(e&&u&&r&&o);class t{constructor(n,i,d,p){this.stringify=n,this.mapOpts=d.map||{},this.root=i,this.opts=d,this.css=p,this.originalCSS=p,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let n;this.isInline()?n="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?n=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?n=this.mapOpts.annotation(this.opts.to,this.root):n=this.outputFile()+".map";let i=`
34
+ `?(t=1,a+=1):t+=1;return{column:t,line:a}}prev(){if(!this.parent)return;let l=this.parent.index(this);return this.parent.nodes[l-1]}rangeBy(l){let t={column:this.source.start.column,line:this.source.start.line},a=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:t.column+1,line:t.line};if(l.word){let n="document"in this.source.input?this.source.input.document:this.source.input.css,d=n.slice(c(n,this.source.start),c(n,this.source.end)).indexOf(l.word);d!==-1&&(t=this.positionInside(d),a=this.positionInside(d+l.word.length))}else l.start?t={column:l.start.column,line:l.start.line}:l.index&&(t=this.positionInside(l.index)),l.end?a={column:l.end.column,line:l.end.line}:typeof l.endIndex=="number"?a=this.positionInside(l.endIndex):l.index&&(a=this.positionInside(l.index+1));return(a.line<t.line||a.line===t.line&&a.column<=t.column)&&(a={column:t.column+1,line:t.line}),{end:a,start:t}}raw(l,t){return new r().raw(this,l,t)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...l){if(this.parent){let t=this,a=!1;for(let n of l)n===this?a=!0:a?(this.parent.insertAfter(t,n),t=n):this.parent.insertBefore(t,n);a||this.remove()}return this}root(){let l=this;for(;l.parent&&l.parent.type!=="document";)l=l.parent;return l}toJSON(l,t){let a={},n=t==null;t=t||new Map;let i=0;for(let d in this){if(!Object.prototype.hasOwnProperty.call(this,d)||d==="parent"||d==="proxyCache")continue;let p=this[d];if(Array.isArray(p))a[d]=p.map(m=>typeof m=="object"&&m.toJSON?m.toJSON(null,t):m);else if(typeof p=="object"&&p.toJSON)a[d]=p.toJSON(null,t);else if(d==="source"){let m=t.get(p.input);m==null&&(m=i,t.set(p.input,i),i++),a[d]={end:p.end,inputId:m,start:p.start}}else a[d]=p}return n&&(a.inputs=[...t.keys()].map(d=>d.toJSON())),a}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(l=u){l.stringify&&(l=l.stringify);let t="";return l(this,a=>{t+=a}),t}warn(l,t,a){let n={node:this};for(let i in a)n[i]=a[i];return l.warn(t,n)}get proxyOf(){return this}}return Ee=h,h.default=h,Ee}var Oe,Mt;function ee(){if(Mt)return Oe;Mt=1;let e=pe();class r extends e{constructor(o){super(o),this.type="comment"}}return Oe=r,r.default=r,Oe}var Ne,_t;function de(){if(_t)return Ne;_t=1;let e=pe();class r extends e{constructor(o){o&&typeof o.value!="undefined"&&typeof o.value!="string"&&(o=K(F({},o),{value:String(o.value)})),super(o),this.type="decl"}get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}}return Ne=r,r.default=r,Ne}var Ae,Pt;function $(){if(Pt)return Ae;Pt=1;let e=ee(),r=de(),u=pe(),{isClean:o,my:s}=tt(),f,c,h,g;function l(n){return n.map(i=>(i.nodes&&(i.nodes=l(i.nodes)),delete i.source,i))}function t(n){if(n[o]=!1,n.proxyOf.nodes)for(let i of n.proxyOf.nodes)t(i)}class a extends u{append(...i){for(let d of i){let p=this.normalize(d,this.last);for(let m of p)this.proxyOf.nodes.push(m)}return this.markDirty(),this}cleanRaws(i){if(super.cleanRaws(i),this.nodes)for(let d of this.nodes)d.cleanRaws(i)}each(i){if(!this.proxyOf.nodes)return;let d=this.getIterator(),p,m;for(;this.indexes[d]<this.proxyOf.nodes.length&&(p=this.indexes[d],m=i(this.proxyOf.nodes[p],p),m!==!1);)this.indexes[d]+=1;return delete this.indexes[d],m}every(i){return this.nodes.every(i)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let i=this.lastEach;return this.indexes[i]=0,i}getProxyProcessor(){return{get(i,d){return d==="proxyOf"?i:i[d]?d==="each"||typeof d=="string"&&d.startsWith("walk")?(...p)=>i[d](...p.map(m=>typeof m=="function"?(C,S)=>m(C.toProxy(),S):m)):d==="every"||d==="some"?p=>i[d]((m,...C)=>p(m.toProxy(),...C)):d==="root"?()=>i.root().toProxy():d==="nodes"?i.nodes.map(p=>p.toProxy()):d==="first"||d==="last"?i[d].toProxy():i[d]:i[d]},set(i,d,p){return i[d]===p||(i[d]=p,(d==="name"||d==="params"||d==="selector")&&i.markDirty()),!0}}}index(i){return typeof i=="number"?i:(i.proxyOf&&(i=i.proxyOf),this.proxyOf.nodes.indexOf(i))}insertAfter(i,d){let p=this.index(i),m=this.normalize(d,this.proxyOf.nodes[p]).reverse();p=this.index(i);for(let S of m)this.proxyOf.nodes.splice(p+1,0,S);let C;for(let S in this.indexes)C=this.indexes[S],p<C&&(this.indexes[S]=C+m.length);return this.markDirty(),this}insertBefore(i,d){let p=this.index(i),m=p===0?"prepend":!1,C=this.normalize(d,this.proxyOf.nodes[p],m).reverse();p=this.index(i);for(let w of C)this.proxyOf.nodes.splice(p,0,w);let S;for(let w in this.indexes)S=this.indexes[w],p<=S&&(this.indexes[w]=S+C.length);return this.markDirty(),this}normalize(i,d){if(typeof i=="string")i=l(c(i).nodes);else if(typeof i=="undefined")i=[];else if(Array.isArray(i)){i=i.slice(0);for(let m of i)m.parent&&m.parent.removeChild(m,"ignore")}else if(i.type==="root"&&this.type!=="document"){i=i.nodes.slice(0);for(let m of i)m.parent&&m.parent.removeChild(m,"ignore")}else if(i.type)i=[i];else if(i.prop){if(typeof i.value=="undefined")throw new Error("Value field is missed in node creation");typeof i.value!="string"&&(i.value=String(i.value)),i=[new r(i)]}else if(i.selector||i.selectors)i=[new g(i)];else if(i.name)i=[new f(i)];else if(i.text)i=[new e(i)];else throw new Error("Unknown node type in node creation");return i.map(m=>(m[s]||a.rebuild(m),m=m.proxyOf,m.parent&&m.parent.removeChild(m),m[o]&&t(m),m.raws||(m.raws={}),typeof m.raws.before=="undefined"&&d&&typeof d.raws.before!="undefined"&&(m.raws.before=d.raws.before.replace(/\S/g,"")),m.parent=this.proxyOf,m))}prepend(...i){i=i.reverse();for(let d of i){let p=this.normalize(d,this.first,"prepend").reverse();for(let m of p)this.proxyOf.nodes.unshift(m);for(let m in this.indexes)this.indexes[m]=this.indexes[m]+p.length}return this.markDirty(),this}push(i){return i.parent=this,this.proxyOf.nodes.push(i),this}removeAll(){for(let i of this.proxyOf.nodes)i.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(i){i=this.index(i),this.proxyOf.nodes[i].parent=void 0,this.proxyOf.nodes.splice(i,1);let d;for(let p in this.indexes)d=this.indexes[p],d>=i&&(this.indexes[p]=d-1);return this.markDirty(),this}replaceValues(i,d,p){return p||(p=d,d={}),this.walkDecls(m=>{d.props&&!d.props.includes(m.prop)||d.fast&&!m.value.includes(d.fast)||(m.value=m.value.replace(i,p))}),this.markDirty(),this}some(i){return this.nodes.some(i)}walk(i){return this.each((d,p)=>{let m;try{m=i(d,p)}catch(C){throw d.addToError(C)}return m!==!1&&d.walk&&(m=d.walk(i)),m})}walkAtRules(i,d){return d?i instanceof RegExp?this.walk((p,m)=>{if(p.type==="atrule"&&i.test(p.name))return d(p,m)}):this.walk((p,m)=>{if(p.type==="atrule"&&p.name===i)return d(p,m)}):(d=i,this.walk((p,m)=>{if(p.type==="atrule")return d(p,m)}))}walkComments(i){return this.walk((d,p)=>{if(d.type==="comment")return i(d,p)})}walkDecls(i,d){return d?i instanceof RegExp?this.walk((p,m)=>{if(p.type==="decl"&&i.test(p.prop))return d(p,m)}):this.walk((p,m)=>{if(p.type==="decl"&&p.prop===i)return d(p,m)}):(d=i,this.walk((p,m)=>{if(p.type==="decl")return d(p,m)}))}walkRules(i,d){return d?i instanceof RegExp?this.walk((p,m)=>{if(p.type==="rule"&&i.test(p.selector))return d(p,m)}):this.walk((p,m)=>{if(p.type==="rule"&&p.selector===i)return d(p,m)}):(d=i,this.walk((p,m)=>{if(p.type==="rule")return d(p,m)}))}get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}}return a.registerParse=n=>{c=n},a.registerRule=n=>{g=n},a.registerAtRule=n=>{f=n},a.registerRoot=n=>{h=n},Ae=a,a.default=a,a.rebuild=n=>{n.type==="atrule"?Object.setPrototypeOf(n,f.prototype):n.type==="rule"?Object.setPrototypeOf(n,g.prototype):n.type==="decl"?Object.setPrototypeOf(n,r.prototype):n.type==="comment"?Object.setPrototypeOf(n,e.prototype):n.type==="root"&&Object.setPrototypeOf(n,h.prototype),n[s]=!0,n.nodes&&n.nodes.forEach(i=>{a.rebuild(i)})},Ae}var Me,kt;function rt(){if(kt)return Me;kt=1;let e=$();class r extends e{constructor(o){super(o),this.type="atrule"}append(...o){return this.proxyOf.nodes||(this.nodes=[]),super.append(...o)}prepend(...o){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...o)}}return Me=r,r.default=r,e.registerAtRule(r),Me}var _e,It;function it(){if(It)return _e;It=1;let e=$(),r,u;class o extends e{constructor(f){super(F({type:"document"},f)),this.nodes||(this.nodes=[])}toResult(f={}){return new r(new u,this,f).stringify()}}return o.registerLazyResult=s=>{r=s},o.registerProcessor=s=>{u=s},_e=o,o.default=o,_e}var Pe,Lt;function _i(){if(Lt)return Pe;Lt=1;let e="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";return Pe={nanoid:(o=21)=>{let s="",f=o|0;for(;f--;)s+=e[Math.random()*64|0];return s},customAlphabet:(o,s=21)=>(f=s)=>{let c="",h=f|0;for(;h--;)c+=o[Math.random()*o.length|0];return c}},Pe}var ke,Dt;function br(){if(Dt)return ke;Dt=1;let{existsSync:e,readFileSync:r}=U,{dirname:u,join:o}=U,{SourceMapConsumer:s,SourceMapGenerator:f}=U;function c(g){return Buffer?Buffer.from(g,"base64").toString():window.atob(g)}class h{constructor(l,t){if(t.map===!1)return;this.loadAnnotation(l),this.inline=this.startWith(this.annotation,"data:");let a=t.map?t.map.prev:void 0,n=this.loadMap(t.from,a);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=u(this.mapFile)),n&&(this.text=n)}consumer(){return this.consumerCache||(this.consumerCache=new s(this.text)),this.consumerCache}decodeInline(l){let t=/^data:application\/json;charset=utf-?8;base64,/,a=/^data:application\/json;base64,/,n=/^data:application\/json;charset=utf-?8,/,i=/^data:application\/json,/,d=l.match(n)||l.match(i);if(d)return decodeURIComponent(l.substr(d[0].length));let p=l.match(t)||l.match(a);if(p)return c(l.substr(p[0].length));let m=l.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+m)}getAnnotationURL(l){return l.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(l){return typeof l!="object"?!1:typeof l.mappings=="string"||typeof l._mappings=="string"||Array.isArray(l.sections)}loadAnnotation(l){let t=l.match(/\/\*\s*# sourceMappingURL=/g);if(!t)return;let a=l.lastIndexOf(t.pop()),n=l.indexOf("*/",a);a>-1&&n>-1&&(this.annotation=this.getAnnotationURL(l.substring(a,n)))}loadFile(l){if(this.root=u(l),e(l))return this.mapFile=l,r(l,"utf-8").toString().trim()}loadMap(l,t){if(t===!1)return!1;if(t){if(typeof t=="string")return t;if(typeof t=="function"){let a=t(l);if(a){let n=this.loadFile(a);if(!n)throw new Error("Unable to load previous source map: "+a.toString());return n}}else{if(t instanceof s)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 a=this.annotation;return l&&(a=o(u(l),a)),this.loadFile(a)}}}startWith(l,t){return l?l.substr(0,t.length)===t:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}}return ke=h,h.default=h,ke}var Ie,Tt;function me(){if(Tt)return Ie;Tt=1;let{nanoid:e}=_i(),{isAbsolute:r,resolve:u}=U,{SourceMapConsumer:o,SourceMapGenerator:s}=U,{fileURLToPath:f,pathToFileURL:c}=U,h=et(),g=br(),l=U,t=Symbol("fromOffsetCache"),a=!!(o&&s),n=!!(u&&r);class i{constructor(p,m={}){if(p===null||typeof p=="undefined"||typeof p=="object"&&!p.toString)throw new Error(`PostCSS received ${p} instead of CSS string`);if(this.css=p.toString(),this.css[0]==="\uFEFF"||this.css[0]==="\uFFFE"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,this.document=this.css,m.document&&(this.document=m.document.toString()),m.from&&(!n||/^\w+:\/\//.test(m.from)||r(m.from)?this.file=m.from:this.file=u(m.from)),n&&a){let C=new g(this.css,m);if(C.text){this.map=C;let S=C.consumer().file;!this.file&&S&&(this.file=this.mapResolve(S))}}this.file||(this.id="<input css "+e(6)+">"),this.map&&(this.map.file=this.from)}error(p,m,C,S={}){let w,v,b;if(m&&typeof m=="object"){let x=m,E=C;if(typeof x.offset=="number"){let _=this.fromOffset(x.offset);m=_.line,C=_.col}else m=x.line,C=x.column;if(typeof E.offset=="number"){let _=this.fromOffset(E.offset);v=_.line,w=_.col}else v=E.line,w=E.column}else if(!C){let x=this.fromOffset(m);m=x.line,C=x.col}let y=this.origin(m,C,v,w);return y?b=new h(p,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,S.plugin):b=new h(p,v===void 0?m:{column:C,line:m},v===void 0?C:{column:w,line:v},this.css,this.file,S.plugin),b.input={column:C,endColumn:w,endLine:v,line:m,source:this.css},this.file&&(c&&(b.input.url=c(this.file).toString()),b.input.file=this.file),b}fromOffset(p){let m,C;if(this[t])C=this[t];else{let w=this.css.split(`
35
+ `);C=new Array(w.length);let v=0;for(let b=0,y=w.length;b<y;b++)C[b]=v,v+=w[b].length+1;this[t]=C}m=C[C.length-1];let S=0;if(p>=m)S=C.length-1;else{let w=C.length-2,v;for(;S<w;)if(v=S+(w-S>>1),p<C[v])w=v-1;else if(p>=C[v+1])S=v+1;else{S=v;break}}return{col:p-C[S]+1,line:S+1}}mapResolve(p){return/^\w+:\/\//.test(p)?p:u(this.map.consumer().sourceRoot||this.map.root||".",p)}origin(p,m,C,S){if(!this.map)return!1;let w=this.map.consumer(),v=w.originalPositionFor({column:m,line:p});if(!v.source)return!1;let b;typeof C=="number"&&(b=w.originalPositionFor({column:S,line:C}));let y;r(v.source)?y=c(v.source):y=new URL(v.source,this.map.consumer().sourceRoot||c(this.map.mapFile));let x={column:v.column,endColumn:b&&b.column,endLine:b&&b.line,line:v.line,url:y.toString()};if(y.protocol==="file:")if(f)x.file=f(y);else throw new Error("file: protocol is not available in this PostCSS build");let E=w.sourceContentFor(v.source);return E&&(x.source=E),x}toJSON(){let p={};for(let m of["hasBOM","css","file","id"])this[m]!=null&&(p[m]=this[m]);return this.map&&(p.map=F({},this.map),p.map.consumerCache&&(p.map.consumerCache=void 0)),p}get from(){return this.file||this.id}}return Ie=i,i.default=i,l&&l.registerInput&&l.registerInput(i),Ie}var Le,Ut;function te(){if(Ut)return Le;Ut=1;let e=$(),r,u;class o extends e{constructor(f){super(f),this.type="root",this.nodes||(this.nodes=[])}normalize(f,c,h){let g=super.normalize(f);if(c){if(h==="prepend")this.nodes.length>1?c.raws.before=this.nodes[1].raws.before:delete c.raws.before;else if(this.first!==c)for(let l of g)l.raws.before=c.raws.before}return g}removeChild(f,c){let h=this.index(f);return!c&&h===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[h].raws.before),super.removeChild(f)}toResult(f={}){return new r(new u,this,f).stringify()}}return o.registerLazyResult=s=>{r=s},o.registerProcessor=s=>{u=s},Le=o,o.default=o,e.registerRoot(o),Le}var De,Bt;function Sr(){if(Bt)return De;Bt=1;let e={comma(r){return e.split(r,[","],!0)},space(r){let u=[" ",`
36
+ `," "];return e.split(r,u)},split(r,u,o){let s=[],f="",c=!1,h=0,g=!1,l="",t=!1;for(let a of r)t?t=!1:a==="\\"?t=!0:g?a===l&&(g=!1):a==='"'||a==="'"?(g=!0,l=a):a==="("?h+=1:a===")"?h>0&&(h-=1):h===0&&u.includes(a)&&(c=!0),c?(f!==""&&s.push(f.trim()),f="",c=!1):f+=a;return(o||f!=="")&&s.push(f.trim()),s}};return De=e,e.default=e,De}var Te,Ft;function st(){if(Ft)return Te;Ft=1;let e=$(),r=Sr();class u extends e{constructor(s){super(s),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return r.comma(this.selector)}set selectors(s){let f=this.selector?this.selector.match(/,\s*/):null,c=f?f[0]:","+this.raw("between","beforeOpen");this.selector=s.join(c)}}return Te=u,u.default=u,e.registerRule(u),Te}var Ue,qt;function Pi(){if(qt)return Ue;qt=1;let e=rt(),r=ee(),u=de(),o=me(),s=br(),f=te(),c=st();function h(g,l){if(Array.isArray(g))return g.map(d=>h(d));let n=g,{inputs:t}=n,a=be(n,["inputs"]);if(t){l=[];for(let d of t){let p=K(F({},d),{__proto__:o.prototype});p.map&&(p.map=K(F({},p.map),{__proto__:s.prototype})),l.push(p)}}if(a.nodes&&(a.nodes=g.nodes.map(d=>h(d,l))),a.source){let i=a.source,{inputId:d}=i,p=be(i,["inputId"]);a.source=p,d!=null&&(a.source.input=l[d])}if(a.type==="root")return new f(a);if(a.type==="decl")return new u(a);if(a.type==="rule")return new c(a);if(a.type==="comment")return new r(a);if(a.type==="atrule")return new e(a);throw new Error("Unknown node type: "+g.type)}return Ue=h,h.default=h,Ue}var Be,zt;function vr(){if(zt)return Be;zt=1;let{dirname:e,relative:r,resolve:u,sep:o}=U,{SourceMapConsumer:s,SourceMapGenerator:f}=U,{pathToFileURL:c}=U,h=me(),g=!!(s&&f),l=!!(e&&u&&r&&o);class t{constructor(n,i,d,p){this.stringify=n,this.mapOpts=d.map||{},this.root=i,this.opts=d,this.css=p,this.originalCSS=p,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let n;this.isInline()?n="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?n=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?n=this.mapOpts.annotation(this.opts.to,this.root):n=this.outputFile()+".map";let i=`
37
37
  `;this.css.includes(`\r
38
38
  `)&&(i=`\r
39
39
  `),this.css+=i+"/*# sourceMappingURL="+n+" */"}applyPrevMaps(){for(let n of this.previous()){let i=this.toUrl(this.path(n.file)),d=n.root||e(n.file),p;this.mapOpts.sourcesContent===!1?(p=new s(n.text),p.sourcesContent&&(p.sourcesContent=null)):p=n.consumer(),this.map.applySourceMap(p,i,this.toUrl(this.path(d)))}}clearAnnotation(){if(this.mapOpts.annotation!==!1)if(this.root){let n;for(let i=this.root.nodes.length-1;i>=0;i--)n=this.root.nodes[i],n.type==="comment"&&n.text.startsWith("# sourceMappingURL=")&&this.root.removeChild(i)}else this.css&&(this.css=this.css.replace(/\n*\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),l&&g&&this.isMap())return this.generateMap();{let n="";return this.stringify(this.root,i=>{n+=i}),[n]}}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let n=this.previous()[0].consumer();n.file=this.outputFile(),this.map=f.fromSourceMap(n,{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 n=1,i=1,d="<no source>",p={generated:{column:0,line:0},original:{column:0,line:0},source:""},m,C;this.stringify(this.root,(S,w,v)=>{if(this.css+=S,w&&v!=="end"&&(p.generated.line=n,p.generated.column=i-1,w.source&&w.source.start?(p.source=this.sourcePath(w),p.original.line=w.source.start.line,p.original.column=w.source.start.column-1,this.map.addMapping(p)):(p.source=d,p.original.line=1,p.original.column=0,this.map.addMapping(p))),C=S.match(/\n/g),C?(n+=C.length,m=S.lastIndexOf(`
40
- `),i=S.length-m):i+=S.length,w&&v!=="start"){let b=w.parent||{raws:{}};(!(w.type==="decl"||w.type==="atrule"&&!w.nodes)||w!==b.last||b.raws.semicolon)&&(w.source&&w.source.end?(p.source=this.sourcePath(w),p.original.line=w.source.end.line,p.original.column=w.source.end.column-1,p.generated.line=n,p.generated.column=i-2,this.map.addMapping(p)):(p.source=d,p.original.line=1,p.original.column=0,p.generated.line=n,p.generated.column=i-1,this.map.addMapping(p)))}})}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation!="undefined"?this.mapOpts.annotation:this.previous().length?this.previous().some(n=>n.annotation):!0}isInline(){if(typeof this.mapOpts.inline!="undefined")return this.mapOpts.inline;let n=this.mapOpts.annotation;return typeof n!="undefined"&&n!==!0?!1:this.previous().length?this.previous().some(i=>i.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(n=>n.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(n){if(this.mapOpts.absolute||n.charCodeAt(0)===60||/^\w+:\/\//.test(n))return n;let i=this.memoizedPaths.get(n);if(i)return i;let d=this.opts.to?e(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(d=e(u(d,this.mapOpts.annotation)));let p=r(d,n);return this.memoizedPaths.set(n,p),p}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(n=>{if(n.source&&n.source.input.map){let i=n.source.input.map;this.previousMaps.includes(i)||this.previousMaps.push(i)}});else{let n=new h(this.originalCSS,this.opts);n.map&&this.previousMaps.push(n.map)}return this.previousMaps}setSourcesContent(){let n={};if(this.root)this.root.walk(i=>{if(i.source){let d=i.source.input.from;if(d&&!n[d]){n[d]=!0;let p=this.usesFileUrls?this.toFileUrl(d):this.toUrl(this.path(d));this.map.setSourceContent(p,i.source.input.css)}}});else if(this.css){let i=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(i,this.css)}}sourcePath(n){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(n.source.input.from):this.toUrl(this.path(n.source.input.from))}toBase64(n){return Buffer?Buffer.from(n).toString("base64"):window.btoa(unescape(encodeURIComponent(n)))}toFileUrl(n){let i=this.memoizedFileURLs.get(n);if(i)return i;if(c){let d=c(n).toString();return this.memoizedFileURLs.set(n,d),d}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(n){let i=this.memoizedURLs.get(n);if(i)return i;o==="\\"&&(n=n.replace(/\\/g,"/"));let d=encodeURI(n).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(n,d),d}}return Be=t,Be}var Fe,Wt;function xr(){if(Wt)return Fe;Wt=1;const e=39,r=34,u=92,o=47,s=10,f=32,c=12,h=9,g=13,l=91,t=93,a=40,n=41,i=123,d=125,p=59,m=42,C=58,S=64,w=/[\t\n\f\r "#'()/;[\\\]{}]/g,v=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,b=/.[\r\n"'(/\\]/,y=/[\da-f]/i;return Fe=function(E,_={}){let O=E.css.valueOf(),I=_.ignoreErrors,N,j,q,R,B,D,T,V,z,ut,ct=O.length,A=0,ge=[],re=[];function Mr(){return A}function ye(G){throw E.error("Unclosed "+G,A)}function _r(){return re.length===0&&A>=ct}function Pr(G){if(re.length)return re.pop();if(A>=ct)return;let we=G?G.ignoreUnclosed:!1;switch(N=O.charCodeAt(A),N){case s:case f:case h:case g:case c:{R=A;do R+=1,N=O.charCodeAt(R);while(N===f||N===s||N===h||N===g||N===c);D=["space",O.slice(A,R)],A=R-1;break}case l:case t:case i:case d:case C:case p:case n:{let ft=String.fromCharCode(N);D=[ft,ft,A];break}case a:{if(ut=ge.length?ge.pop()[1]:"",z=O.charCodeAt(A+1),ut==="url"&&z!==e&&z!==r&&z!==f&&z!==s&&z!==h&&z!==c&&z!==g){R=A;do{if(T=!1,R=O.indexOf(")",R+1),R===-1)if(I||we){R=A;break}else ye("bracket");for(V=R;O.charCodeAt(V-1)===u;)V-=1,T=!T}while(T);D=["brackets",O.slice(A,R+1),A,R],A=R}else R=O.indexOf(")",A+1),j=O.slice(A,R+1),R===-1||b.test(j)?D=["(","(",A]:(D=["brackets",j,A,R],A=R);break}case e:case r:{B=N===e?"'":'"',R=A;do{if(T=!1,R=O.indexOf(B,R+1),R===-1)if(I||we){R=A+1;break}else ye("string");for(V=R;O.charCodeAt(V-1)===u;)V-=1,T=!T}while(T);D=["string",O.slice(A,R+1),A,R],A=R;break}case S:{w.lastIndex=A+1,w.test(O),w.lastIndex===0?R=O.length-1:R=w.lastIndex-2,D=["at-word",O.slice(A,R+1),A,R],A=R;break}case u:{for(R=A,q=!0;O.charCodeAt(R+1)===u;)R+=1,q=!q;if(N=O.charCodeAt(R+1),q&&N!==o&&N!==f&&N!==s&&N!==h&&N!==g&&N!==c&&(R+=1,y.test(O.charAt(R)))){for(;y.test(O.charAt(R+1));)R+=1;O.charCodeAt(R+1)===f&&(R+=1)}D=["word",O.slice(A,R+1),A,R],A=R;break}default:{N===o&&O.charCodeAt(A+1)===m?(R=O.indexOf("*/",A+2)+1,R===0&&(I||we?R=O.length:ye("comment")),D=["comment",O.slice(A,R+1),A,R],A=R):(v.lastIndex=A+1,v.test(O),v.lastIndex===0?R=O.length-1:R=v.lastIndex-2,D=["word",O.slice(A,R+1),A,R],ge.push(D),A=R);break}}return A++,D}function kr(G){re.push(G)}return{back:kr,endOfFile:_r,nextToken:Pr,position:Mr}},Fe}var qe,jt;function Rr(){if(jt)return qe;jt=1;let e=rt(),r=ee(),u=de(),o=te(),s=st(),f=xr();const c={empty:!0,space:!0};function h(l){for(let t=l.length-1;t>=0;t--){let a=l[t],n=a[3]||a[2];if(n)return n}}class g{constructor(t){this.input=t,this.root=new o,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 a=new e;a.name=t[1].slice(1),a.name===""&&this.unnamedAtrule(a,t),this.init(a,t[2]);let n,i,d,p=!1,m=!1,C=[],S=[];for(;!this.tokenizer.endOfFile();){if(t=this.tokenizer.nextToken(),n=t[0],n==="("||n==="["?S.push(n==="("?")":"]"):n==="{"&&S.length>0?S.push("}"):n===S[S.length-1]&&S.pop(),S.length===0)if(n===";"){a.source.end=this.getPosition(t[2]),a.source.end.offset++,this.semicolon=!0;break}else if(n==="{"){m=!0;break}else if(n==="}"){if(C.length>0){for(d=C.length-1,i=C[d];i&&i[0]==="space";)i=C[--d];i&&(a.source.end=this.getPosition(i[3]||i[2]),a.source.end.offset++)}this.end(t);break}else C.push(t);else C.push(t);if(this.tokenizer.endOfFile()){p=!0;break}}a.raws.between=this.spacesAndCommentsFromEnd(C),C.length?(a.raws.afterName=this.spacesAndCommentsFromStart(C),this.raw(a,"params",C),p&&(t=C[C.length-1],a.source.end=this.getPosition(t[3]||t[2]),a.source.end.offset++,this.spaces=a.raws.between,a.raws.between="")):(a.raws.afterName="",a.params=""),m&&(a.nodes=[],this.current=a)}checkMissedSemicolon(t){let a=this.colon(t);if(a===!1)return;let n=0,i;for(let d=a-1;d>=0&&(i=t[d],!(i[0]!=="space"&&(n+=1,n===2)));d--);throw this.input.error("Missed semicolon",i[0]==="word"?i[3]+1:i[2])}colon(t){let a=0,n,i,d;for(let[p,m]of t.entries()){if(i=m,d=i[0],d==="("&&(a+=1),d===")"&&(a-=1),a===0&&d===":")if(!n)this.doubleColon(i);else{if(n[0]==="word"&&n[1]==="progid")continue;return p}n=i}return!1}comment(t){let a=new r;this.init(a,t[2]),a.source.end=this.getPosition(t[3]||t[2]),a.source.end.offset++;let n=t[1].slice(2,-2);if(/^\s*$/.test(n))a.text="",a.raws.left=n,a.raws.right="";else{let i=n.match(/^(\s*)([^]*\S)(\s*)$/);a.text=i[2],a.raws.left=i[1],a.raws.right=i[3]}}createTokenizer(){this.tokenizer=f(this.input)}decl(t,a){let n=new u;this.init(n,t[0][2]);let i=t[t.length-1];for(i[0]===";"&&(this.semicolon=!0,t.pop()),n.source.end=this.getPosition(i[3]||i[2]||h(t)),n.source.end.offset++;t[0][0]!=="word";)t.length===1&&this.unknownWord(t),n.raws.before+=t.shift()[1];for(n.source.start=this.getPosition(t[0][2]),n.prop="";t.length;){let S=t[0][0];if(S===":"||S==="space"||S==="comment")break;n.prop+=t.shift()[1]}n.raws.between="";let d;for(;t.length;)if(d=t.shift(),d[0]===":"){n.raws.between+=d[1];break}else d[0]==="word"&&/\w/.test(d[1])&&this.unknownWord([d]),n.raws.between+=d[1];(n.prop[0]==="_"||n.prop[0]==="*")&&(n.raws.before+=n.prop[0],n.prop=n.prop.slice(1));let p=[],m;for(;t.length&&(m=t[0][0],!(m!=="space"&&m!=="comment"));)p.push(t.shift());this.precheckMissedSemicolon(t);for(let S=t.length-1;S>=0;S--){if(d=t[S],d[1].toLowerCase()==="!important"){n.important=!0;let w=this.stringFrom(t,S);w=this.spacesFromEnd(t)+w,w!==" !important"&&(n.raws.important=w);break}else if(d[1].toLowerCase()==="important"){let w=t.slice(0),v="";for(let b=S;b>0;b--){let y=w[b][0];if(v.trim().startsWith("!")&&y!=="space")break;v=w.pop()[1]+v}v.trim().startsWith("!")&&(n.important=!0,n.raws.important=v,t=w)}if(d[0]!=="space"&&d[0]!=="comment")break}t.some(S=>S[0]!=="space"&&S[0]!=="comment")&&(n.raws.between+=p.map(S=>S[1]).join(""),p=[]),this.raw(n,"value",p.concat(t),a),n.value.includes(":")&&!a&&this.checkMissedSemicolon(t)}doubleColon(t){throw this.input.error("Double colon",{offset:t[2]},{offset:t[2]+t[1].length})}emptyRule(t){let a=new s;this.init(a,t[2]),a.selector="",a.raws.between="",this.current=a}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 a=this.current.nodes[this.current.nodes.length-1];a&&a.type==="rule"&&!a.raws.ownSemicolon&&(a.raws.ownSemicolon=this.spaces,this.spaces="")}}getPosition(t){let a=this.input.fromOffset(t);return{column:a.col,line:a.line,offset:t}}init(t,a){this.current.push(t),t.source={input:this.input,start:this.getPosition(a)},t.raws.before=this.spaces,this.spaces="",t.type!=="comment"&&(this.semicolon=!1)}other(t){let a=!1,n=null,i=!1,d=null,p=[],m=t[1].startsWith("--"),C=[],S=t;for(;S;){if(n=S[0],C.push(S),n==="("||n==="[")d||(d=S),p.push(n==="("?")":"]");else if(m&&i&&n==="{")d||(d=S),p.push("}");else if(p.length===0)if(n===";")if(i){this.decl(C,m);return}else break;else if(n==="{"){this.rule(C);return}else if(n==="}"){this.tokenizer.back(C.pop()),a=!0;break}else n===":"&&(i=!0);else n===p[p.length-1]&&(p.pop(),p.length===0&&(d=null));S=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(a=!0),p.length>0&&this.unclosedBracket(d),a&&i){if(!m)for(;C.length&&(S=C[C.length-1][0],!(S!=="space"&&S!=="comment"));)this.tokenizer.back(C.pop());this.decl(C,m)}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,a,n,i){let d,p,m=n.length,C="",S=!0,w,v;for(let b=0;b<m;b+=1)d=n[b],p=d[0],p==="space"&&b===m-1&&!i?S=!1:p==="comment"?(v=n[b-1]?n[b-1][0]:"empty",w=n[b+1]?n[b+1][0]:"empty",!c[v]&&!c[w]?C.slice(-1)===","?S=!1:C+=d[1]:S=!1):C+=d[1];if(!S){let b=n.reduce((y,x)=>y+x[1],"");t.raws[a]={raw:b,value:C}}t[a]=C}rule(t){t.pop();let a=new s;this.init(a,t[0][2]),a.raws.between=this.spacesAndCommentsFromEnd(t),this.raw(a,"selector",t),this.current=a}spacesAndCommentsFromEnd(t){let a,n="";for(;t.length&&(a=t[t.length-1][0],!(a!=="space"&&a!=="comment"));)n=t.pop()[1]+n;return n}spacesAndCommentsFromStart(t){let a,n="";for(;t.length&&(a=t[0][0],!(a!=="space"&&a!=="comment"));)n+=t.shift()[1];return n}spacesFromEnd(t){let a,n="";for(;t.length&&(a=t[t.length-1][0],a==="space");)n=t.pop()[1]+n;return n}stringFrom(t,a){let n="";for(let i=a;i<t.length;i++)n+=t[i][1];return t.splice(a,t.length-a),n}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,a){throw this.input.error("At-rule without name",{offset:a[2]},{offset:a[2]+a[1].length})}}return qe=g,qe}var ze,$t;function nt(){if($t)return ze;$t=1;let e=$(),r=me(),u=Rr();function o(s,f){let c=new r(s,f),h=new u(c);try{h.parse()}catch(g){throw g}return h.root}return ze=o,o.default=o,e.registerParse(o),ze}var We,Vt;function Er(){if(Vt)return We;Vt=1;class e{constructor(u,o={}){if(this.type="warning",this.text=u,o.node&&o.node.source){let s=o.node.rangeBy(o);this.line=s.start.line,this.column=s.start.column,this.endLine=s.end.line,this.endColumn=s.end.column}for(let s in o)this[s]=o[s]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}}return We=e,e.default=e,We}var je,Gt;function ot(){if(Gt)return je;Gt=1;let e=Er();class r{constructor(o,s,f){this.processor=o,this.messages=[],this.root=s,this.opts=f,this.css=void 0,this.map=void 0}toString(){return this.css}warn(o,s={}){s.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(s.plugin=this.lastPlugin.postcssPlugin);let f=new e(o,s);return this.messages.push(f),f}warnings(){return this.messages.filter(o=>o.type==="warning")}get content(){return this.css}}return je=r,r.default=r,je}var $e,Ht;function Or(){if(Ht)return $e;Ht=1;let e={};return $e=function(u){e[u]||(e[u]=!0,typeof console!="undefined"&&console.warn&&console.warn(u))},$e}var Ve,Jt;function Nr(){if(Jt)return Ve;Jt=1;let e=$(),r=it(),u=Cr(),o=nt(),s=ot(),f=te(),c=he(),{isClean:h,my:g}=tt(),l=Or();const t={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},a={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},n={Once:!0,postcssPlugin:!0,prepare:!0},i=0;function d(v){return typeof v=="object"&&typeof v.then=="function"}function p(v){let b=!1,y=t[v.type];return v.type==="decl"?b=v.prop.toLowerCase():v.type==="atrule"&&(b=v.name.toLowerCase()),b&&v.append?[y,y+"-"+b,i,y+"Exit",y+"Exit-"+b]:b?[y,y+"-"+b,y+"Exit",y+"Exit-"+b]:v.append?[y,i,y+"Exit"]:[y,y+"Exit"]}function m(v){let b;return v.type==="document"?b=["Document",i,"DocumentExit"]:v.type==="root"?b=["Root",i,"RootExit"]:b=p(v),{eventIndex:0,events:b,iterator:0,node:v,visitorIndex:0,visitors:[]}}function C(v){return v[h]=!1,v.nodes&&v.nodes.forEach(b=>C(b)),v}let S={};class w{constructor(b,y,x){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 w||y instanceof s)E=C(y.root),y.map&&(typeof x.map=="undefined"&&(x.map={}),x.map.inline||(x.map.inline=!1),x.map.prev=y.map);else{let _=o;x.syntax&&(_=x.syntax.parse),x.parser&&(_=x.parser),_.parse&&(_=_.parse);try{E=_(y,x)}catch(O){this.processed=!0,this.error=O}E&&!E[g]&&e.rebuild(E)}this.result=new s(b,E,x),this.helpers=K(F({},S),{postcss:S,result:this.result}),this.plugins=this.processor.plugins.map(_=>typeof _=="object"&&_.prepare?F(F({},_),_.prepare(this.result)):_)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(b){return this.async().catch(b)}finally(b){return this.async().then(b,b)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(b,y){let x=this.result.lastPlugin;try{y&&y.addToError(b),this.error=b,b.name==="CssSyntaxError"&&!b.plugin?(b.plugin=x.postcssPlugin,b.setMessage()):x.postcssVersion}catch(E){console&&console.error&&console.error(E)}return b}prepareVisitors(){this.listeners={};let b=(y,x,E)=>{this.listeners[x]||(this.listeners[x]=[]),this.listeners[x].push([y,E])};for(let y of this.plugins)if(typeof y=="object")for(let x in y){if(!a[x]&&/^[A-Z]/.test(x))throw new Error(`Unknown event ${x} in ${y.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!n[x])if(typeof y[x]=="object")for(let E in y[x])E==="*"?b(y,x,y[x][E]):b(y,x+"-"+E.toLowerCase(),y[x][E]);else typeof y[x]=="function"&&b(y,x,y[x])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let b=0;b<this.plugins.length;b++){let y=this.plugins[b],x=this.runOnRoot(y);if(d(x))try{await x}catch(E){throw this.handleError(E)}}if(this.prepareVisitors(),this.hasListener){let b=this.result.root;for(;!b[h];){b[h]=!0;let y=[m(b)];for(;y.length>0;){let x=this.visitTick(y);if(d(x))try{await x}catch(E){let _=y[y.length-1].node;throw this.handleError(E,_)}}}if(this.listeners.OnceExit)for(let[y,x]of this.listeners.OnceExit){this.result.lastPlugin=y;try{if(b.type==="document"){let E=b.nodes.map(_=>x(_,this.helpers));await Promise.all(E)}else await x(b,this.helpers)}catch(E){throw this.handleError(E)}}}return this.processed=!0,this.stringify()}runOnRoot(b){this.result.lastPlugin=b;try{if(typeof b=="object"&&b.Once){if(this.result.root.type==="document"){let y=this.result.root.nodes.map(x=>b.Once(x,this.helpers));return d(y[0])?Promise.all(y):y}return b.Once(this.result.root,this.helpers)}else if(typeof b=="function")return b(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 b=this.result.opts,y=c;b.syntax&&(y=b.syntax.stringify),b.stringifier&&(y=b.stringifier),y.stringify&&(y=y.stringify);let E=new u(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 b of this.plugins){let y=this.runOnRoot(b);if(d(y))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let b=this.result.root;for(;!b[h];)b[h]=!0,this.walkSync(b);if(this.listeners.OnceExit)if(b.type==="document")for(let y of b.nodes)this.visitSync(this.listeners.OnceExit,y);else this.visitSync(this.listeners.OnceExit,b)}return this.result}then(b,y){return this.async().then(b,y)}toString(){return this.css}visitSync(b,y){for(let[x,E]of b){this.result.lastPlugin=x;let _;try{_=E(y,this.helpers)}catch(O){throw this.handleError(O,y.proxyOf)}if(y.type!=="root"&&y.type!=="document"&&!y.parent)return!0;if(d(_))throw this.getAsyncError()}}visitTick(b){let y=b[b.length-1],{node:x,visitors:E}=y;if(x.type!=="root"&&x.type!=="document"&&!x.parent){b.pop();return}if(E.length>0&&y.visitorIndex<E.length){let[O,I]=E[y.visitorIndex];y.visitorIndex+=1,y.visitorIndex===E.length&&(y.visitors=[],y.visitorIndex=0),this.result.lastPlugin=O;try{return I(x.toProxy(),this.helpers)}catch(N){throw this.handleError(N,x)}}if(y.iterator!==0){let O=y.iterator,I;for(;I=x.nodes[x.indexes[O]];)if(x.indexes[O]+=1,!I[h]){I[h]=!0,b.push(m(I));return}y.iterator=0,delete x.indexes[O]}let _=y.events;for(;y.eventIndex<_.length;){let O=_[y.eventIndex];if(y.eventIndex+=1,O===i){x.nodes&&x.nodes.length&&(x[h]=!0,y.iterator=x.getIterator());return}else if(this.listeners[O]){y.visitors=this.listeners[O];return}}b.pop()}walkSync(b){b[h]=!0;let y=p(b);for(let x of y)if(x===i)b.nodes&&b.each(E=>{E[h]||this.walkSync(E)});else{let E=this.listeners[x];if(E&&this.visitSync(E,b.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 w.registerPostcss=v=>{S=v},Ve=w,w.default=w,f.registerLazyResult(w),r.registerLazyResult(w),Ve}var Ge,Yt;function ki(){if(Yt)return Ge;Yt=1;let e=Cr(),r=nt();const u=ot();let o=he(),s=Or();class f{constructor(h,g,l){g=g.toString(),this.stringified=!1,this._processor=h,this._css=g,this._opts=l,this._map=void 0;let t,a=o;this.result=new u(this._processor,t,this._opts),this.result.css=g;let n=this;Object.defineProperty(this.result,"root",{get(){return n.root}});let i=new e(a,t,this._opts,g);if(i.isMap()){let[d,p]=i.generate();d&&(this.result.css=d),p&&(this.result.map=p)}else i.clearAnnotation(),this.result.css=i.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(h){return this.async().catch(h)}finally(h){return this.async().then(h,h)}sync(){if(this.error)throw this.error;return this.result}then(h,g){return this.async().then(h,g)}toString(){return this._css}warnings(){return[]}get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let h,g=r;try{h=g(this._css,this._opts)}catch(l){this.error=l}if(this.error)throw this.error;return this._root=h,h}get[Symbol.toStringTag](){return"NoWorkResult"}}return Ge=f,f.default=f,Ge}var He,Kt;function Ii(){if(Kt)return He;Kt=1;let e=it(),r=Nr(),u=ki(),o=te();class s{constructor(c=[]){this.version="8.5.1",this.plugins=this.normalize(c)}normalize(c){let h=[];for(let g of c)if(g.postcss===!0?g=g():g.postcss&&(g=g.postcss),typeof g=="object"&&Array.isArray(g.plugins))h=h.concat(g.plugins);else if(typeof g=="object"&&g.postcssPlugin)h.push(g);else if(typeof g=="function")h.push(g);else if(!(typeof g=="object"&&(g.parse||g.stringify)))throw new Error(g+" is not a PostCSS plugin");return h}process(c,h={}){return!this.plugins.length&&!h.parser&&!h.stringifier&&!h.syntax?new u(this,c,h):new r(this,c,h)}use(c){return this.plugins=this.plugins.concat(this.normalize([c])),this}}return He=s,s.default=s,o.registerProcessor(s),e.registerProcessor(s),He}var Je,Qt;function Ar(){if(Qt)return Je;Qt=1;let e=rt(),r=ee(),u=$(),o=et(),s=de(),f=it(),c=Pi(),h=me(),g=Nr(),l=vr(),t=pe(),a=nt(),n=Ii(),i=ot(),d=te(),p=st(),m=he(),C=Er();function S(...w){return w.length===1&&Array.isArray(w[0])&&(w=w[0]),new n(w)}return S.plugin=function(v,b){let y=!1;function x(..._){console&&console.warn&&!y&&(y=!0,console.warn(v+`: postcss.plugin was deprecated. Migration guide:
40
+ `),i=S.length-m):i+=S.length,w&&v!=="start"){let b=w.parent||{raws:{}};(!(w.type==="decl"||w.type==="atrule"&&!w.nodes)||w!==b.last||b.raws.semicolon)&&(w.source&&w.source.end?(p.source=this.sourcePath(w),p.original.line=w.source.end.line,p.original.column=w.source.end.column-1,p.generated.line=n,p.generated.column=i-2,this.map.addMapping(p)):(p.source=d,p.original.line=1,p.original.column=0,p.generated.line=n,p.generated.column=i-1,this.map.addMapping(p)))}})}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation!="undefined"?this.mapOpts.annotation:this.previous().length?this.previous().some(n=>n.annotation):!0}isInline(){if(typeof this.mapOpts.inline!="undefined")return this.mapOpts.inline;let n=this.mapOpts.annotation;return typeof n!="undefined"&&n!==!0?!1:this.previous().length?this.previous().some(i=>i.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(n=>n.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(n){if(this.mapOpts.absolute||n.charCodeAt(0)===60||/^\w+:\/\//.test(n))return n;let i=this.memoizedPaths.get(n);if(i)return i;let d=this.opts.to?e(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(d=e(u(d,this.mapOpts.annotation)));let p=r(d,n);return this.memoizedPaths.set(n,p),p}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(n=>{if(n.source&&n.source.input.map){let i=n.source.input.map;this.previousMaps.includes(i)||this.previousMaps.push(i)}});else{let n=new h(this.originalCSS,this.opts);n.map&&this.previousMaps.push(n.map)}return this.previousMaps}setSourcesContent(){let n={};if(this.root)this.root.walk(i=>{if(i.source){let d=i.source.input.from;if(d&&!n[d]){n[d]=!0;let p=this.usesFileUrls?this.toFileUrl(d):this.toUrl(this.path(d));this.map.setSourceContent(p,i.source.input.css)}}});else if(this.css){let i=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(i,this.css)}}sourcePath(n){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(n.source.input.from):this.toUrl(this.path(n.source.input.from))}toBase64(n){return Buffer?Buffer.from(n).toString("base64"):window.btoa(unescape(encodeURIComponent(n)))}toFileUrl(n){let i=this.memoizedFileURLs.get(n);if(i)return i;if(c){let d=c(n).toString();return this.memoizedFileURLs.set(n,d),d}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(n){let i=this.memoizedURLs.get(n);if(i)return i;o==="\\"&&(n=n.replace(/\\/g,"/"));let d=encodeURI(n).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(n,d),d}}return Be=t,Be}var Fe,Wt;function Cr(){if(Wt)return Fe;Wt=1;const e=39,r=34,u=92,o=47,s=10,f=32,c=12,h=9,g=13,l=91,t=93,a=40,n=41,i=123,d=125,p=59,m=42,C=58,S=64,w=/[\t\n\f\r "#'()/;[\\\]{}]/g,v=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,b=/.[\r\n"'(/\\]/,y=/[\da-f]/i;return Fe=function(E,_={}){let O=E.css.valueOf(),I=_.ignoreErrors,N,j,q,R,B,D,T,V,z,ut,ct=O.length,A=0,ge=[],re=[];function Mr(){return A}function ye(G){throw E.error("Unclosed "+G,A)}function _r(){return re.length===0&&A>=ct}function Pr(G){if(re.length)return re.pop();if(A>=ct)return;let we=G?G.ignoreUnclosed:!1;switch(N=O.charCodeAt(A),N){case s:case f:case h:case g:case c:{R=A;do R+=1,N=O.charCodeAt(R);while(N===f||N===s||N===h||N===g||N===c);D=["space",O.slice(A,R)],A=R-1;break}case l:case t:case i:case d:case C:case p:case n:{let ft=String.fromCharCode(N);D=[ft,ft,A];break}case a:{if(ut=ge.length?ge.pop()[1]:"",z=O.charCodeAt(A+1),ut==="url"&&z!==e&&z!==r&&z!==f&&z!==s&&z!==h&&z!==c&&z!==g){R=A;do{if(T=!1,R=O.indexOf(")",R+1),R===-1)if(I||we){R=A;break}else ye("bracket");for(V=R;O.charCodeAt(V-1)===u;)V-=1,T=!T}while(T);D=["brackets",O.slice(A,R+1),A,R],A=R}else R=O.indexOf(")",A+1),j=O.slice(A,R+1),R===-1||b.test(j)?D=["(","(",A]:(D=["brackets",j,A,R],A=R);break}case e:case r:{B=N===e?"'":'"',R=A;do{if(T=!1,R=O.indexOf(B,R+1),R===-1)if(I||we){R=A+1;break}else ye("string");for(V=R;O.charCodeAt(V-1)===u;)V-=1,T=!T}while(T);D=["string",O.slice(A,R+1),A,R],A=R;break}case S:{w.lastIndex=A+1,w.test(O),w.lastIndex===0?R=O.length-1:R=w.lastIndex-2,D=["at-word",O.slice(A,R+1),A,R],A=R;break}case u:{for(R=A,q=!0;O.charCodeAt(R+1)===u;)R+=1,q=!q;if(N=O.charCodeAt(R+1),q&&N!==o&&N!==f&&N!==s&&N!==h&&N!==g&&N!==c&&(R+=1,y.test(O.charAt(R)))){for(;y.test(O.charAt(R+1));)R+=1;O.charCodeAt(R+1)===f&&(R+=1)}D=["word",O.slice(A,R+1),A,R],A=R;break}default:{N===o&&O.charCodeAt(A+1)===m?(R=O.indexOf("*/",A+2)+1,R===0&&(I||we?R=O.length:ye("comment")),D=["comment",O.slice(A,R+1),A,R],A=R):(v.lastIndex=A+1,v.test(O),v.lastIndex===0?R=O.length-1:R=v.lastIndex-2,D=["word",O.slice(A,R+1),A,R],ge.push(D),A=R);break}}return A++,D}function kr(G){re.push(G)}return{back:kr,endOfFile:_r,nextToken:Pr,position:Mr}},Fe}var qe,jt;function xr(){if(jt)return qe;jt=1;let e=rt(),r=ee(),u=de(),o=te(),s=st(),f=Cr();const c={empty:!0,space:!0};function h(l){for(let t=l.length-1;t>=0;t--){let a=l[t],n=a[3]||a[2];if(n)return n}}class g{constructor(t){this.input=t,this.root=new o,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 a=new e;a.name=t[1].slice(1),a.name===""&&this.unnamedAtrule(a,t),this.init(a,t[2]);let n,i,d,p=!1,m=!1,C=[],S=[];for(;!this.tokenizer.endOfFile();){if(t=this.tokenizer.nextToken(),n=t[0],n==="("||n==="["?S.push(n==="("?")":"]"):n==="{"&&S.length>0?S.push("}"):n===S[S.length-1]&&S.pop(),S.length===0)if(n===";"){a.source.end=this.getPosition(t[2]),a.source.end.offset++,this.semicolon=!0;break}else if(n==="{"){m=!0;break}else if(n==="}"){if(C.length>0){for(d=C.length-1,i=C[d];i&&i[0]==="space";)i=C[--d];i&&(a.source.end=this.getPosition(i[3]||i[2]),a.source.end.offset++)}this.end(t);break}else C.push(t);else C.push(t);if(this.tokenizer.endOfFile()){p=!0;break}}a.raws.between=this.spacesAndCommentsFromEnd(C),C.length?(a.raws.afterName=this.spacesAndCommentsFromStart(C),this.raw(a,"params",C),p&&(t=C[C.length-1],a.source.end=this.getPosition(t[3]||t[2]),a.source.end.offset++,this.spaces=a.raws.between,a.raws.between="")):(a.raws.afterName="",a.params=""),m&&(a.nodes=[],this.current=a)}checkMissedSemicolon(t){let a=this.colon(t);if(a===!1)return;let n=0,i;for(let d=a-1;d>=0&&(i=t[d],!(i[0]!=="space"&&(n+=1,n===2)));d--);throw this.input.error("Missed semicolon",i[0]==="word"?i[3]+1:i[2])}colon(t){let a=0,n,i,d;for(let[p,m]of t.entries()){if(i=m,d=i[0],d==="("&&(a+=1),d===")"&&(a-=1),a===0&&d===":")if(!n)this.doubleColon(i);else{if(n[0]==="word"&&n[1]==="progid")continue;return p}n=i}return!1}comment(t){let a=new r;this.init(a,t[2]),a.source.end=this.getPosition(t[3]||t[2]),a.source.end.offset++;let n=t[1].slice(2,-2);if(/^\s*$/.test(n))a.text="",a.raws.left=n,a.raws.right="";else{let i=n.match(/^(\s*)([^]*\S)(\s*)$/);a.text=i[2],a.raws.left=i[1],a.raws.right=i[3]}}createTokenizer(){this.tokenizer=f(this.input)}decl(t,a){let n=new u;this.init(n,t[0][2]);let i=t[t.length-1];for(i[0]===";"&&(this.semicolon=!0,t.pop()),n.source.end=this.getPosition(i[3]||i[2]||h(t)),n.source.end.offset++;t[0][0]!=="word";)t.length===1&&this.unknownWord(t),n.raws.before+=t.shift()[1];for(n.source.start=this.getPosition(t[0][2]),n.prop="";t.length;){let S=t[0][0];if(S===":"||S==="space"||S==="comment")break;n.prop+=t.shift()[1]}n.raws.between="";let d;for(;t.length;)if(d=t.shift(),d[0]===":"){n.raws.between+=d[1];break}else d[0]==="word"&&/\w/.test(d[1])&&this.unknownWord([d]),n.raws.between+=d[1];(n.prop[0]==="_"||n.prop[0]==="*")&&(n.raws.before+=n.prop[0],n.prop=n.prop.slice(1));let p=[],m;for(;t.length&&(m=t[0][0],!(m!=="space"&&m!=="comment"));)p.push(t.shift());this.precheckMissedSemicolon(t);for(let S=t.length-1;S>=0;S--){if(d=t[S],d[1].toLowerCase()==="!important"){n.important=!0;let w=this.stringFrom(t,S);w=this.spacesFromEnd(t)+w,w!==" !important"&&(n.raws.important=w);break}else if(d[1].toLowerCase()==="important"){let w=t.slice(0),v="";for(let b=S;b>0;b--){let y=w[b][0];if(v.trim().startsWith("!")&&y!=="space")break;v=w.pop()[1]+v}v.trim().startsWith("!")&&(n.important=!0,n.raws.important=v,t=w)}if(d[0]!=="space"&&d[0]!=="comment")break}t.some(S=>S[0]!=="space"&&S[0]!=="comment")&&(n.raws.between+=p.map(S=>S[1]).join(""),p=[]),this.raw(n,"value",p.concat(t),a),n.value.includes(":")&&!a&&this.checkMissedSemicolon(t)}doubleColon(t){throw this.input.error("Double colon",{offset:t[2]},{offset:t[2]+t[1].length})}emptyRule(t){let a=new s;this.init(a,t[2]),a.selector="",a.raws.between="",this.current=a}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 a=this.current.nodes[this.current.nodes.length-1];a&&a.type==="rule"&&!a.raws.ownSemicolon&&(a.raws.ownSemicolon=this.spaces,this.spaces="")}}getPosition(t){let a=this.input.fromOffset(t);return{column:a.col,line:a.line,offset:t}}init(t,a){this.current.push(t),t.source={input:this.input,start:this.getPosition(a)},t.raws.before=this.spaces,this.spaces="",t.type!=="comment"&&(this.semicolon=!1)}other(t){let a=!1,n=null,i=!1,d=null,p=[],m=t[1].startsWith("--"),C=[],S=t;for(;S;){if(n=S[0],C.push(S),n==="("||n==="[")d||(d=S),p.push(n==="("?")":"]");else if(m&&i&&n==="{")d||(d=S),p.push("}");else if(p.length===0)if(n===";")if(i){this.decl(C,m);return}else break;else if(n==="{"){this.rule(C);return}else if(n==="}"){this.tokenizer.back(C.pop()),a=!0;break}else n===":"&&(i=!0);else n===p[p.length-1]&&(p.pop(),p.length===0&&(d=null));S=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(a=!0),p.length>0&&this.unclosedBracket(d),a&&i){if(!m)for(;C.length&&(S=C[C.length-1][0],!(S!=="space"&&S!=="comment"));)this.tokenizer.back(C.pop());this.decl(C,m)}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,a,n,i){let d,p,m=n.length,C="",S=!0,w,v;for(let b=0;b<m;b+=1)d=n[b],p=d[0],p==="space"&&b===m-1&&!i?S=!1:p==="comment"?(v=n[b-1]?n[b-1][0]:"empty",w=n[b+1]?n[b+1][0]:"empty",!c[v]&&!c[w]?C.slice(-1)===","?S=!1:C+=d[1]:S=!1):C+=d[1];if(!S){let b=n.reduce((y,x)=>y+x[1],"");t.raws[a]={raw:b,value:C}}t[a]=C}rule(t){t.pop();let a=new s;this.init(a,t[0][2]),a.raws.between=this.spacesAndCommentsFromEnd(t),this.raw(a,"selector",t),this.current=a}spacesAndCommentsFromEnd(t){let a,n="";for(;t.length&&(a=t[t.length-1][0],!(a!=="space"&&a!=="comment"));)n=t.pop()[1]+n;return n}spacesAndCommentsFromStart(t){let a,n="";for(;t.length&&(a=t[0][0],!(a!=="space"&&a!=="comment"));)n+=t.shift()[1];return n}spacesFromEnd(t){let a,n="";for(;t.length&&(a=t[t.length-1][0],a==="space");)n=t.pop()[1]+n;return n}stringFrom(t,a){let n="";for(let i=a;i<t.length;i++)n+=t[i][1];return t.splice(a,t.length-a),n}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,a){throw this.input.error("At-rule without name",{offset:a[2]},{offset:a[2]+a[1].length})}}return qe=g,qe}var ze,$t;function nt(){if($t)return ze;$t=1;let e=$(),r=me(),u=xr();function o(s,f){let c=new r(s,f),h=new u(c);try{h.parse()}catch(g){throw g}return h.root}return ze=o,o.default=o,e.registerParse(o),ze}var We,Vt;function Rr(){if(Vt)return We;Vt=1;class e{constructor(u,o={}){if(this.type="warning",this.text=u,o.node&&o.node.source){let s=o.node.rangeBy(o);this.line=s.start.line,this.column=s.start.column,this.endLine=s.end.line,this.endColumn=s.end.column}for(let s in o)this[s]=o[s]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}}return We=e,e.default=e,We}var je,Gt;function ot(){if(Gt)return je;Gt=1;let e=Rr();class r{constructor(o,s,f){this.processor=o,this.messages=[],this.root=s,this.opts=f,this.css=void 0,this.map=void 0}toString(){return this.css}warn(o,s={}){s.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(s.plugin=this.lastPlugin.postcssPlugin);let f=new e(o,s);return this.messages.push(f),f}warnings(){return this.messages.filter(o=>o.type==="warning")}get content(){return this.css}}return je=r,r.default=r,je}var $e,Ht;function Er(){if(Ht)return $e;Ht=1;let e={};return $e=function(u){e[u]||(e[u]=!0,typeof console!="undefined"&&console.warn&&console.warn(u))},$e}var Ve,Jt;function Or(){if(Jt)return Ve;Jt=1;let e=$(),r=it(),u=vr(),o=nt(),s=ot(),f=te(),c=he(),{isClean:h,my:g}=tt(),l=Er();const t={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},a={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},n={Once:!0,postcssPlugin:!0,prepare:!0},i=0;function d(v){return typeof v=="object"&&typeof v.then=="function"}function p(v){let b=!1,y=t[v.type];return v.type==="decl"?b=v.prop.toLowerCase():v.type==="atrule"&&(b=v.name.toLowerCase()),b&&v.append?[y,y+"-"+b,i,y+"Exit",y+"Exit-"+b]:b?[y,y+"-"+b,y+"Exit",y+"Exit-"+b]:v.append?[y,i,y+"Exit"]:[y,y+"Exit"]}function m(v){let b;return v.type==="document"?b=["Document",i,"DocumentExit"]:v.type==="root"?b=["Root",i,"RootExit"]:b=p(v),{eventIndex:0,events:b,iterator:0,node:v,visitorIndex:0,visitors:[]}}function C(v){return v[h]=!1,v.nodes&&v.nodes.forEach(b=>C(b)),v}let S={};class w{constructor(b,y,x){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 w||y instanceof s)E=C(y.root),y.map&&(typeof x.map=="undefined"&&(x.map={}),x.map.inline||(x.map.inline=!1),x.map.prev=y.map);else{let _=o;x.syntax&&(_=x.syntax.parse),x.parser&&(_=x.parser),_.parse&&(_=_.parse);try{E=_(y,x)}catch(O){this.processed=!0,this.error=O}E&&!E[g]&&e.rebuild(E)}this.result=new s(b,E,x),this.helpers=K(F({},S),{postcss:S,result:this.result}),this.plugins=this.processor.plugins.map(_=>typeof _=="object"&&_.prepare?F(F({},_),_.prepare(this.result)):_)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(b){return this.async().catch(b)}finally(b){return this.async().then(b,b)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(b,y){let x=this.result.lastPlugin;try{y&&y.addToError(b),this.error=b,b.name==="CssSyntaxError"&&!b.plugin?(b.plugin=x.postcssPlugin,b.setMessage()):x.postcssVersion}catch(E){console&&console.error&&console.error(E)}return b}prepareVisitors(){this.listeners={};let b=(y,x,E)=>{this.listeners[x]||(this.listeners[x]=[]),this.listeners[x].push([y,E])};for(let y of this.plugins)if(typeof y=="object")for(let x in y){if(!a[x]&&/^[A-Z]/.test(x))throw new Error(`Unknown event ${x} in ${y.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!n[x])if(typeof y[x]=="object")for(let E in y[x])E==="*"?b(y,x,y[x][E]):b(y,x+"-"+E.toLowerCase(),y[x][E]);else typeof y[x]=="function"&&b(y,x,y[x])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let b=0;b<this.plugins.length;b++){let y=this.plugins[b],x=this.runOnRoot(y);if(d(x))try{await x}catch(E){throw this.handleError(E)}}if(this.prepareVisitors(),this.hasListener){let b=this.result.root;for(;!b[h];){b[h]=!0;let y=[m(b)];for(;y.length>0;){let x=this.visitTick(y);if(d(x))try{await x}catch(E){let _=y[y.length-1].node;throw this.handleError(E,_)}}}if(this.listeners.OnceExit)for(let[y,x]of this.listeners.OnceExit){this.result.lastPlugin=y;try{if(b.type==="document"){let E=b.nodes.map(_=>x(_,this.helpers));await Promise.all(E)}else await x(b,this.helpers)}catch(E){throw this.handleError(E)}}}return this.processed=!0,this.stringify()}runOnRoot(b){this.result.lastPlugin=b;try{if(typeof b=="object"&&b.Once){if(this.result.root.type==="document"){let y=this.result.root.nodes.map(x=>b.Once(x,this.helpers));return d(y[0])?Promise.all(y):y}return b.Once(this.result.root,this.helpers)}else if(typeof b=="function")return b(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 b=this.result.opts,y=c;b.syntax&&(y=b.syntax.stringify),b.stringifier&&(y=b.stringifier),y.stringify&&(y=y.stringify);let E=new u(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 b of this.plugins){let y=this.runOnRoot(b);if(d(y))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let b=this.result.root;for(;!b[h];)b[h]=!0,this.walkSync(b);if(this.listeners.OnceExit)if(b.type==="document")for(let y of b.nodes)this.visitSync(this.listeners.OnceExit,y);else this.visitSync(this.listeners.OnceExit,b)}return this.result}then(b,y){return this.async().then(b,y)}toString(){return this.css}visitSync(b,y){for(let[x,E]of b){this.result.lastPlugin=x;let _;try{_=E(y,this.helpers)}catch(O){throw this.handleError(O,y.proxyOf)}if(y.type!=="root"&&y.type!=="document"&&!y.parent)return!0;if(d(_))throw this.getAsyncError()}}visitTick(b){let y=b[b.length-1],{node:x,visitors:E}=y;if(x.type!=="root"&&x.type!=="document"&&!x.parent){b.pop();return}if(E.length>0&&y.visitorIndex<E.length){let[O,I]=E[y.visitorIndex];y.visitorIndex+=1,y.visitorIndex===E.length&&(y.visitors=[],y.visitorIndex=0),this.result.lastPlugin=O;try{return I(x.toProxy(),this.helpers)}catch(N){throw this.handleError(N,x)}}if(y.iterator!==0){let O=y.iterator,I;for(;I=x.nodes[x.indexes[O]];)if(x.indexes[O]+=1,!I[h]){I[h]=!0,b.push(m(I));return}y.iterator=0,delete x.indexes[O]}let _=y.events;for(;y.eventIndex<_.length;){let O=_[y.eventIndex];if(y.eventIndex+=1,O===i){x.nodes&&x.nodes.length&&(x[h]=!0,y.iterator=x.getIterator());return}else if(this.listeners[O]){y.visitors=this.listeners[O];return}}b.pop()}walkSync(b){b[h]=!0;let y=p(b);for(let x of y)if(x===i)b.nodes&&b.each(E=>{E[h]||this.walkSync(E)});else{let E=this.listeners[x];if(E&&this.visitSync(E,b.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 w.registerPostcss=v=>{S=v},Ve=w,w.default=w,f.registerLazyResult(w),r.registerLazyResult(w),Ve}var Ge,Yt;function ki(){if(Yt)return Ge;Yt=1;let e=vr(),r=nt();const u=ot();let o=he(),s=Er();class f{constructor(h,g,l){g=g.toString(),this.stringified=!1,this._processor=h,this._css=g,this._opts=l,this._map=void 0;let t,a=o;this.result=new u(this._processor,t,this._opts),this.result.css=g;let n=this;Object.defineProperty(this.result,"root",{get(){return n.root}});let i=new e(a,t,this._opts,g);if(i.isMap()){let[d,p]=i.generate();d&&(this.result.css=d),p&&(this.result.map=p)}else i.clearAnnotation(),this.result.css=i.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(h){return this.async().catch(h)}finally(h){return this.async().then(h,h)}sync(){if(this.error)throw this.error;return this.result}then(h,g){return this.async().then(h,g)}toString(){return this._css}warnings(){return[]}get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let h,g=r;try{h=g(this._css,this._opts)}catch(l){this.error=l}if(this.error)throw this.error;return this._root=h,h}get[Symbol.toStringTag](){return"NoWorkResult"}}return Ge=f,f.default=f,Ge}var He,Kt;function Ii(){if(Kt)return He;Kt=1;let e=it(),r=Or(),u=ki(),o=te();class s{constructor(c=[]){this.version="8.5.1",this.plugins=this.normalize(c)}normalize(c){let h=[];for(let g of c)if(g.postcss===!0?g=g():g.postcss&&(g=g.postcss),typeof g=="object"&&Array.isArray(g.plugins))h=h.concat(g.plugins);else if(typeof g=="object"&&g.postcssPlugin)h.push(g);else if(typeof g=="function")h.push(g);else if(!(typeof g=="object"&&(g.parse||g.stringify)))throw new Error(g+" is not a PostCSS plugin");return h}process(c,h={}){return!this.plugins.length&&!h.parser&&!h.stringifier&&!h.syntax?new u(this,c,h):new r(this,c,h)}use(c){return this.plugins=this.plugins.concat(this.normalize([c])),this}}return He=s,s.default=s,o.registerProcessor(s),e.registerProcessor(s),He}var Je,Qt;function Nr(){if(Qt)return Je;Qt=1;let e=rt(),r=ee(),u=$(),o=et(),s=de(),f=it(),c=Pi(),h=me(),g=Or(),l=Sr(),t=pe(),a=nt(),n=Ii(),i=ot(),d=te(),p=st(),m=he(),C=Rr();function S(...w){return w.length===1&&Array.isArray(w[0])&&(w=w[0]),new n(w)}return S.plugin=function(v,b){let y=!1;function x(..._){console&&console.warn&&!y&&(y=!0,console.warn(v+`: 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(v+`: \u91CC\u9762 postcss.plugin \u88AB\u5F03\u7528. \u8FC1\u79FB\u6307\u5357:
42
- https://www.w3ctech.com/topic/2226`));let O=b(..._);return O.postcssPlugin=v,O.postcssVersion=new n().version,O}let E;return Object.defineProperty(x,"postcss",{get(){return E||(E=x()),E}}),x.process=function(_,O,I){return S([x(I)]).process(_,O)},x},S.stringify=m,S.parse=a,S.fromJSON=c,S.list=l,S.comment=w=>new r(w),S.atRule=w=>new e(w),S.decl=w=>new s(w),S.rule=w=>new p(w),S.root=w=>new d(w),S.document=w=>new f(w),S.CssSyntaxError=o,S.Declaration=s,S.Container=u,S.Processor=n,S.Document=f,S.Comment=r,S.Warning=C,S.AtRule=e,S.Result=i,S.Input=h,S.Rule=p,S.Root=d,S.Node=t,g.registerPostcss(S),Je=S,S.default=S,Je}var Ye,Xt;function Li(){if(Xt)return Ye;Xt=1;let e=ee(),r=Rr(),u=xr();class o extends r{checkMissedSemicolon(){}comment(f){let c=new e;this.init(c,f[2]);let h=this.input.fromOffset(f[3])||this.input.fromOffset(this.input.css.length-1);c.source.end={column:h.col,line:h.line,offset:f[3]+1};let g=f[1].slice(2);if(g.slice(-2)==="*/"&&(g=g.slice(0,-2)),/^\s*$/.test(g))c.text="",c.raws.left=g,c.raws.right="";else{let l=g.match(/^(\s*)([^]*\S)(\s*)$/);c.text=l[2],c.raws.left=l[1],c.raws.right=l[3]}}createTokenizer(){this.tokenizer=u(this.input,{ignoreErrors:!0})}decl(f){f.length>1&&f.some(c=>c[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 c=this.colon(f);if(c===!1)return;let h,g;for(h=c-1;h>=0&&f[h][0]!=="word";h--);if(h===0||h<0)return;for(g=h-1;g>=0;g--)if(f[g][0]!=="space"){g+=1;break}let l=f.slice(h),t=f.slice(g,h);f.splice(g,f.length-g),this.spaces=t.map(a=>a[1]).join(""),this.decl(l)}unclosedBracket(){}unexpectedClose(){this.current.raws.after+="}"}unknownWord(f){this.spaces+=f.map(c=>c[1]).join("")}unnamedAtrule(f){f.name=""}}return Ye=o,Ye}var Ke,Zt;function Di(){if(Zt)return Ke;Zt=1;let{Input:e}=Ar(),r=Li();return Ke=function(o,s){let f=new e(o,s),c=new r(f);return c.parse(),c.root},Ke}var Ti=Di();const Ui=wr(Ti);var Bi=Ar();const k=wr(Bi);k.stringify;k.fromJSON;k.plugin;k.parse;k.list;k.document;k.comment;k.atRule;k.rule;k.decl;k.root;k.CssSyntaxError;k.Declaration;k.Container;k.Processor;k.Document;k.Comment;k.Warning;k.AtRule;k.Result;k.Input;k.Rule;k.Root;k.Node;function lt(e,r){const u=r==null?void 0:r.stylesWithHoverClass.get(e);if(u)return u;let o=e;try{o=k([Ri,Ei]).process(e,{parser:Ui}).css}catch(s){console.warn("Failed to adapt css for replay",s)}return r==null||r.stylesWithHoverClass.set(e,o),o}const er={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 Fi(e){let r=er[e.tagName]?er[e.tagName]:e.tagName;return r==="link"&&e.attributes._cssText&&(r="style"),r}function qi(){return{stylesWithHoverClass:new Map}}function zi(e,r){let u=e.textContent;if(e.isStyle&&r.hackCss)try{u=lt(e.textContent,r.cache)}catch(o){}return r.doc.createTextNode(u)}function Wi(e,r){var u;const{doc:o,hackCss:s,cache:f}=r;switch(e.type){case M.Document:return o.implementation.createDocument(null,"",null);case M.DocumentType:return o.implementation.createDocumentType(e.name||"html",e.publicId,e.systemId);case M.Element:{const c=Fi(e);let h;e.isSVG?h=o.createElementNS("http://www.w3.org/2000/svg",c):(e.isCustom&&((u=o.defaultView)!=null&&u.customElements)&&!o.defaultView.customElements.get(e.tagName)&&o.defaultView.customElements.define(e.tagName,class extends o.defaultView.HTMLElement{}),h=o.createElement(c));const g={};for(const l in e.attributes){if(!Object.prototype.hasOwnProperty.call(e.attributes,l))continue;let t=e.attributes[l];if(c==="option"&&l==="selected"&&t===!1||t===null)continue;if(t===!0&&(t=""),l.startsWith("rr_")){g[l]=t;continue}const a=c==="textarea"&&l==="value",n=c==="style"&&l==="_cssText";if(n&&s&&typeof t=="string"&&(t=lt(t,f)),(a||n)&&typeof t=="string"){h.appendChild(o.createTextNode(t)),e.childNodes=[];continue}try{if(e.isSVG&&l==="xlink:href")h.setAttributeNS("http://www.w3.org/1999/xlink",l,t.toString());else if(l==="onload"||l==="onclick"||l.substring(0,7)==="onmouse")h.setAttribute("_"+l,t.toString());else if(c==="meta"&&e.attributes["http-equiv"]==="Content-Security-Policy"&&l==="content"){h.setAttribute("csp-content",t.toString());continue}else c==="link"&&(e.attributes.rel==="preload"&&e.attributes.as==="script"||e.attributes.rel==="modulepreload")||c==="link"&&e.attributes.rel==="prefetch"&&typeof e.attributes.href=="string"&&fe(e.attributes.href)==="js"||(c==="img"&&e.attributes.srcset&&e.attributes.rr_dataURL?h.setAttribute("rrweb-original-srcset",e.attributes.srcset):h.setAttribute(l,t.toString()))}catch(i){}}for(const l in g){const t=g[l];if(c==="canvas"&&l==="rr_dataURL"){const a=o.createElement("img");a.onload=()=>{const n=h.getContext("2d");n&&n.drawImage(a,0,0,a.width,a.height)},a.src=t.toString(),h.RRNodeType&&(h.rr_dataURL=t.toString())}else if(c==="img"&&l==="rr_dataURL"){const a=h;a.currentSrc.startsWith("data:")||(a.setAttribute("rrweb-original-src",e.attributes.src),a.src=t.toString())}if(l==="rr_width")h.style.setProperty("width",t.toString());else if(l==="rr_height")h.style.setProperty("height",t.toString());else if(l==="rr_mediaCurrentTime"&&typeof t=="number")h.currentTime=t;else if(l==="rr_mediaState")switch(t){case"played":h.play().catch(a=>console.warn("media playback error",a));break;case"paused":h.pause();break}else l==="rr_mediaPlaybackRate"&&typeof t=="number"?h.playbackRate=t:l==="rr_mediaMuted"&&typeof t=="boolean"?h.muted=t:l==="rr_mediaLoop"&&typeof t=="boolean"?h.loop=t:l==="rr_mediaVolume"&&typeof t=="number"?h.volume=t:l==="rr_open_mode"&&h.setAttribute("rr_open_mode",t)}if(e.isShadowHost)if(!h.shadowRoot)h.attachShadow({mode:"open"});else for(;h.shadowRoot.firstChild;)h.shadowRoot.removeChild(h.shadowRoot.firstChild);return h}case M.Text:return zi(e,{cache:f,doc:o,hackCss:s});case M.CDATA:return e.textContent.trim()===""?null:o.createCDATASection(e.textContent);case M.Comment:return o.createComment(e.textContent);default:return null}}function at(e,r){const{doc:u,mirror:o,skipChild:s=!1,hackCss:f=!0,afterAppend:c,cache:h}=r;if(o.has(e.id)){const l=o.getNode(e.id),t=o.getMeta(l);if(nr(t,e))return o.getNode(e.id)}let g=Wi(e,{doc:u,hackCss:f,cache:h});if(!g)return null;if(e.rootId&&o.getNode(e.rootId)!==u&&o.replace(e.rootId,u),e.type===M.Document&&(u.close(),u.open(),e.compatMode==="BackCompat"&&e.childNodes&&e.childNodes[0].type!==M.DocumentType&&(e.childNodes[0].type===M.Element&&"xmlns"in e.childNodes[0].attributes&&e.childNodes[0].attributes.xmlns==="http://www.w3.org/1999/xhtml"?u.write('<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">'):u.write('<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "">')),g=u),o.add(g,e),(e.type===M.Document||e.type===M.Element)&&!s)for(const l of e.childNodes){const t=at(l,{doc:u,mirror:o,skipChild:!1,hackCss:f,afterAppend:c,cache:h});if(!t){console.warn("Failed to rebuild",l);continue}if(l.isShadow&&ue(g)&&g.shadowRoot)g.shadowRoot.appendChild(t);else if(e.type===M.Document&&l.type==M.Element){const a=t;let n=null;a.childNodes.forEach(i=>{i.nodeName==="BODY"&&(n=i)}),n?(a.removeChild(n),g.appendChild(t),a.appendChild(n)):g.appendChild(t)}else e.type===M.Document&&l.type===M.DocumentType&&g.firstChild&&g.firstChild.nodeType===1?g.insertBefore(t,g.firstChild):g.appendChild(t);c&&c(t,l.id)}return g}function ji(e,r){function u(o){r(o)}for(const o of e.getIds())e.has(o)&&u(e.getNode(o))}function $i(e,r){const u=r.getMeta(e);if((u==null?void 0:u.type)!==M.Element)return;const o=e;for(const s in u.attributes){if(!(Object.prototype.hasOwnProperty.call(u.attributes,s)&&s.startsWith("rr_")))continue;const f=u.attributes[s];s==="rr_scrollLeft"&&(o.scrollLeft=f),s==="rr_scrollTop"&&(o.scrollTop=f)}}function Vi(e,r){const{doc:u,onVisit:o,hackCss:s=!0,afterAppend:f,cache:c,mirror:h=new ce}=r,g=at(e,{doc:u,mirror:h,skipChild:!1,hackCss:s,afterAppend:f,cache:c});return ji(h,l=>{o&&o(l),$i(l,h)}),g}exports.IGNORED_NODE=Qe;exports.Mirror=ce;exports.NodeType=yr;exports.absolutifyURLs=X;exports.adaptCssForReplay=lt;exports.buildNodeWithSN=at;exports.classMatchesRegex=ae;exports.cleanupSnapshot=Ci;exports.createCache=qi;exports.createMirror=Xr;exports.escapeImportStatement=lr;exports.extractFileExtension=fe;exports.fixSafariColons=ur;exports.genId=pr;exports.getInputType=or;exports.ignoreAttribute=mr;exports.is2DCanvasBlank=sr;exports.isCSSImportRule=cr;exports.isCSSStyleRule=fr;exports.isElement=ue;exports.isNativeShadowDom=le;exports.isNodeMetaEqual=nr;exports.isShadowRoot=rr;exports.maskInputValue=ir;exports.needMaskingText=gr;exports.rebuild=Vi;exports.serializeNodeWithId=Y;exports.snapshot=Si;exports.stringifyRule=ar;exports.stringifyStylesheet=Q;exports.toLowerCase=Z;exports.transformAttribute=dr;exports.visitSnapshot=vi;
42
+ https://www.w3ctech.com/topic/2226`));let O=b(..._);return O.postcssPlugin=v,O.postcssVersion=new n().version,O}let E;return Object.defineProperty(x,"postcss",{get(){return E||(E=x()),E}}),x.process=function(_,O,I){return S([x(I)]).process(_,O)},x},S.stringify=m,S.parse=a,S.fromJSON=c,S.list=l,S.comment=w=>new r(w),S.atRule=w=>new e(w),S.decl=w=>new s(w),S.rule=w=>new p(w),S.root=w=>new d(w),S.document=w=>new f(w),S.CssSyntaxError=o,S.Declaration=s,S.Container=u,S.Processor=n,S.Document=f,S.Comment=r,S.Warning=C,S.AtRule=e,S.Result=i,S.Input=h,S.Rule=p,S.Root=d,S.Node=t,g.registerPostcss(S),Je=S,S.default=S,Je}var Ye,Xt;function Li(){if(Xt)return Ye;Xt=1;let e=ee(),r=xr(),u=Cr();class o extends r{checkMissedSemicolon(){}comment(f){let c=new e;this.init(c,f[2]);let h=this.input.fromOffset(f[3])||this.input.fromOffset(this.input.css.length-1);c.source.end={column:h.col,line:h.line,offset:f[3]+1};let g=f[1].slice(2);if(g.slice(-2)==="*/"&&(g=g.slice(0,-2)),/^\s*$/.test(g))c.text="",c.raws.left=g,c.raws.right="";else{let l=g.match(/^(\s*)([^]*\S)(\s*)$/);c.text=l[2],c.raws.left=l[1],c.raws.right=l[3]}}createTokenizer(){this.tokenizer=u(this.input,{ignoreErrors:!0})}decl(f){f.length>1&&f.some(c=>c[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 c=this.colon(f);if(c===!1)return;let h,g;for(h=c-1;h>=0&&f[h][0]!=="word";h--);if(h===0||h<0)return;for(g=h-1;g>=0;g--)if(f[g][0]!=="space"){g+=1;break}let l=f.slice(h),t=f.slice(g,h);f.splice(g,f.length-g),this.spaces=t.map(a=>a[1]).join(""),this.decl(l)}unclosedBracket(){}unexpectedClose(){this.current.raws.after+="}"}unknownWord(f){this.spaces+=f.map(c=>c[1]).join("")}unnamedAtrule(f){f.name=""}}return Ye=o,Ye}var Ke,Zt;function Di(){if(Zt)return Ke;Zt=1;let{Input:e}=Nr(),r=Li();return Ke=function(o,s){let f=new e(o,s),c=new r(f);return c.parse(),c.root},Ke}var Ti=Di();const Ui=yr(Ti);var Ar=(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))(Ar||{}),Bi=Nr();const k=yr(Bi);k.stringify;k.fromJSON;k.plugin;k.parse;k.list;k.document;k.comment;k.atRule;k.rule;k.decl;k.root;k.CssSyntaxError;k.Declaration;k.Container;k.Processor;k.Document;k.Comment;k.Warning;k.AtRule;k.Result;k.Input;k.Rule;k.Root;k.Node;const er={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 Fi(e){let r=er[e.tagName]?er[e.tagName]:e.tagName;return r==="link"&&e.attributes._cssText&&(r="style"),r}function lt(e,r){const u=r==null?void 0:r.stylesWithHoverClass.get(e);if(u)return u;let o=e;try{o=k([Ri,Ei]).process(e,{parser:Ui}).css}catch(s){console.warn("Failed to adapt css for replay",s)}return r==null||r.stylesWithHoverClass.set(e,o),o}function qi(){return{stylesWithHoverClass:new Map}}function zi(e,r){let u=e.textContent;if(e.isStyle&&r.hackCss)try{u=lt(e.textContent,r.cache)}catch(o){}return r.doc.createTextNode(u)}function Wi(e,r){var u;const{doc:o,hackCss:s,cache:f}=r;switch(e.type){case M.Document:return o.implementation.createDocument(null,"",null);case M.DocumentType:return o.implementation.createDocumentType(e.name||"html",e.publicId,e.systemId);case M.Element:{const c=Fi(e);let h;e.isSVG?h=o.createElementNS("http://www.w3.org/2000/svg",c):(e.isCustom&&((u=o.defaultView)!=null&&u.customElements)&&!o.defaultView.customElements.get(e.tagName)&&o.defaultView.customElements.define(e.tagName,class extends o.defaultView.HTMLElement{}),h=o.createElement(c));const g={};for(const l in e.attributes){if(!Object.prototype.hasOwnProperty.call(e.attributes,l))continue;let t=e.attributes[l];if(c==="option"&&l==="selected"&&t===!1||t===null)continue;if(t===!0&&(t=""),l.startsWith("rr_")){g[l]=t;continue}const a=c==="textarea"&&l==="value",n=c==="style"&&l==="_cssText";if(n&&s&&typeof t=="string"&&(t=lt(t,f)),(a||n)&&typeof t=="string"){h.appendChild(o.createTextNode(t)),e.childNodes=[];continue}try{if(e.isSVG&&l==="xlink:href")h.setAttributeNS("http://www.w3.org/1999/xlink",l,t.toString());else if(l==="onload"||l==="onclick"||l.substring(0,7)==="onmouse")h.setAttribute("_"+l,t.toString());else if(c==="meta"&&e.attributes["http-equiv"]==="Content-Security-Policy"&&l==="content"){h.setAttribute("csp-content",t.toString());continue}else c==="link"&&(e.attributes.rel==="preload"&&e.attributes.as==="script"||e.attributes.rel==="modulepreload")||c==="link"&&e.attributes.rel==="prefetch"&&typeof e.attributes.href=="string"&&fe(e.attributes.href)==="js"||(c==="img"&&e.attributes.srcset&&e.attributes.rr_dataURL?h.setAttribute("rrweb-original-srcset",e.attributes.srcset):h.setAttribute(l,t.toString()))}catch(i){}}for(const l in g){const t=g[l];if(c==="canvas"&&l==="rr_dataURL"){const a=o.createElement("img");a.onload=()=>{const n=h.getContext("2d");n&&n.drawImage(a,0,0,a.width,a.height)},a.src=t.toString(),h.RRNodeType&&(h.rr_dataURL=t.toString())}else if(c==="img"&&l==="rr_dataURL"){const a=h;a.currentSrc.startsWith("data:")||(a.setAttribute("rrweb-original-src",e.attributes.src),a.src=t.toString())}if(l==="rr_width")h.style.setProperty("width",t.toString());else if(l==="rr_height")h.style.setProperty("height",t.toString());else if(l==="rr_mediaCurrentTime"&&typeof t=="number")h.currentTime=t;else if(l==="rr_mediaState")switch(t){case"played":h.play().catch(a=>console.warn("media playback error",a));break;case"paused":h.pause();break}else l==="rr_mediaPlaybackRate"&&typeof t=="number"?h.playbackRate=t:l==="rr_mediaMuted"&&typeof t=="boolean"?h.muted=t:l==="rr_mediaLoop"&&typeof t=="boolean"?h.loop=t:l==="rr_mediaVolume"&&typeof t=="number"?h.volume=t:l==="rr_open_mode"&&h.setAttribute("rr_open_mode",t)}if(e.isShadowHost)if(!h.shadowRoot)h.attachShadow({mode:"open"});else for(;h.shadowRoot.firstChild;)h.shadowRoot.removeChild(h.shadowRoot.firstChild);return h}case M.Text:return zi(e,{cache:f,doc:o,hackCss:s});case M.CDATA:return e.textContent.trim()===""?null:o.createCDATASection(e.textContent);case M.Comment:return o.createComment(e.textContent);default:return null}}function at(e,r){const{doc:u,mirror:o,skipChild:s=!1,hackCss:f=!0,afterAppend:c,cache:h}=r;if(o.has(e.id)){const l=o.getNode(e.id),t=o.getMeta(l);if(cr(t,e))return o.getNode(e.id)}let g=Wi(e,{doc:u,hackCss:f,cache:h});if(!g)return null;if(e.rootId&&o.getNode(e.rootId)!==u&&o.replace(e.rootId,u),e.type===M.Document&&(u.close(),u.open(),e.compatMode==="BackCompat"&&e.childNodes&&e.childNodes[0].type!==M.DocumentType&&(e.childNodes[0].type===M.Element&&"xmlns"in e.childNodes[0].attributes&&e.childNodes[0].attributes.xmlns==="http://www.w3.org/1999/xhtml"?u.write('<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">'):u.write('<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "">')),g=u),o.add(g,e),(e.type===M.Document||e.type===M.Element)&&!s)for(const l of e.childNodes){const t=at(l,{doc:u,mirror:o,skipChild:!1,hackCss:f,afterAppend:c,cache:h});if(!t){console.warn("Failed to rebuild",l);continue}if(l.isShadow&&ue(g)&&g.shadowRoot)g.shadowRoot.appendChild(t);else if(e.type===M.Document&&l.type==M.Element){const a=t;let n=null;a.childNodes.forEach(i=>{i.nodeName==="BODY"&&(n=i)}),n?(a.removeChild(n),g.appendChild(t),a.appendChild(n)):g.appendChild(t)}else e.type===M.Document&&l.type===M.DocumentType&&g.firstChild&&g.firstChild.nodeType===1?g.insertBefore(t,g.firstChild):g.appendChild(t);c&&c(t,l.id)}return g}function ji(e,r){function u(o){r(o)}for(const o of e.getIds())e.has(o)&&u(e.getNode(o))}function $i(e,r){const u=r.getMeta(e);if((u==null?void 0:u.type)!==M.Element)return;const o=e;for(const s in u.attributes){if(!(Object.prototype.hasOwnProperty.call(u.attributes,s)&&s.startsWith("rr_")))continue;const f=u.attributes[s];s==="rr_scrollLeft"&&(o.scrollLeft=f),s==="rr_scrollTop"&&(o.scrollTop=f)}}function Vi(e,r){const{doc:u,onVisit:o,hackCss:s=!0,afterAppend:f,cache:c,mirror:h=new ce}=r,g=at(e,{doc:u,mirror:h,skipChild:!1,hackCss:s,afterAppend:f,cache:c});return ji(h,l=>{o&&o(l),$i(l,h)}),g}exports.IGNORED_NODE=Qe;exports.Mirror=ce;exports.NodeType=Ar;exports.absolutifyURLs=X;exports.adaptCssForReplay=lt;exports.buildNodeWithSN=at;exports.classMatchesRegex=ae;exports.cleanupSnapshot=Ci;exports.createCache=qi;exports.createMirror=Zr;exports.escapeImportStatement=ir;exports.extractFileExtension=fe;exports.fixSafariColons=nr;exports.genId=pr;exports.getInputType=fr;exports.ignoreAttribute=mr;exports.is2DCanvasBlank=ur;exports.isCSSImportRule=or;exports.isCSSStyleRule=lr;exports.isElement=ue;exports.isNativeShadowDom=le;exports.isNodeMetaEqual=cr;exports.isShadowRoot=rr;exports.maskInputValue=ar;exports.needMaskingText=gr;exports.rebuild=Vi;exports.serializeNodeWithId=Y;exports.snapshot=Si;exports.stringifyRule=sr;exports.stringifyStylesheet=Q;exports.toLowerCase=Z;exports.transformAttribute=dr;exports.visitSnapshot=vi;
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") {