@posthog/rrweb-record 0.0.30 → 0.0.33

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,7 +11,7 @@
11
11
  }(this, () => {
12
12
  var exports = {};
13
13
  var module = { exports };
14
- "use strict";var _n=Object.defineProperty,kn=Object.defineProperties;var Dn=Object.getOwnPropertyDescriptors;var Ye=Object.getOwnPropertySymbols;var ss=Object.prototype.hasOwnProperty,is=Object.prototype.propertyIsEnumerable;var rs=(e,t,s)=>t in e?_n(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s,D=(e,t)=>{for(var s in t||(t={}))ss.call(t,s)&&rs(e,s,t[s]);if(Ye)for(var s of Ye(t))is.call(t,s)&&rs(e,s,t[s]);return e},le=(e,t)=>kn(e,Dn(t));var Ne=(e,t)=>{var s={};for(var o in e)ss.call(e,o)&&t.indexOf(o)<0&&(s[o]=e[o]);if(e!=null&&Ye)for(var o of Ye(e))t.indexOf(o)<0&&is.call(e,o)&&(s[o]=e[o]);return s};Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var Ln=Object.defineProperty,Tn=(e,t,s)=>t in e?Ln(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s,A=(e,t,s)=>Tn(e,typeof t!="symbol"?t+"":t,s),ns,Fn=Object.defineProperty,$n=(e,t,s)=>t in e?Fn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s,os=(e,t,s)=>$n(e,typeof t!="symbol"?t+"":t,s),Y=(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))(Y||{});const as={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},ls={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},Ze={};function Bn(e){var t,s;const o=(s=(t=globalThis==null?void 0:globalThis.Zone)==null?void 0:t.__symbol__)==null?void 0:s.call(t,e);if(o&&globalThis[o])return globalThis[o]}function Tr(e){if(Ze[e])return Ze[e];const t=Bn(e)||globalThis[e],s=t.prototype,o=e in as?as[e]:void 0,i=!!(o&&o.every(p=>{var m,f;return!!((f=(m=Object.getOwnPropertyDescriptor(s,p))==null?void 0:m.get)!=null&&f.toString().includes("[native code]"))})),a=e in ls?ls[e]:void 0,h=!!(a&&a.every(p=>{var m;return typeof s[p]=="function"&&((m=s[p])==null?void 0:m.toString().includes("[native code]"))}));if(i&&h)return Ze[e]=t.prototype,t.prototype;try{const p=document.createElement("iframe");document.body.appendChild(p);const m=p.contentWindow;if(!m)return t.prototype;const f=m[e].prototype;return document.body.removeChild(p),f?Ze[e]=f:s}catch(p){return s}}const xt={};function ve(e,t,s){var o;const i=`${e}.${String(s)}`;if(xt[i])return xt[i].call(t);const a=Tr(e),h=(o=Object.getOwnPropertyDescriptor(a,s))==null?void 0:o.get;return h?(xt[i]=h,h.call(t)):t[s]}const Rt={};function Ti(e,t,s){const o=`${e}.${String(s)}`;if(Rt[o])return Rt[o].bind(t);const a=Tr(e)[s];return typeof a!="function"?t[s]:(Rt[o]=a,a.bind(t))}function Un(e){return ve("Node",e,"childNodes")}function Wn(e){return ve("Node",e,"parentNode")}function zn(e){return ve("Node",e,"parentElement")}function qn(e){return ve("Node",e,"textContent")}function jn(e,t){return Ti("Node",e,"contains")(t)}function Hn(e){return Ti("Node",e,"getRootNode")()}function Vn(e){return!e||!("host"in e)?null:ve("ShadowRoot",e,"host")}function Gn(e){return e.styleSheets}function Jn(e){return!e||!("shadowRoot"in e)?null:ve("Element",e,"shadowRoot")}function Yn(e,t){return ve("Element",e,"querySelector")(t)}function Zn(e,t){return ve("Element",e,"querySelectorAll")(t)}function Qn(){return Tr("MutationObserver").constructor}function Xn(e,t,s){try{if(!(t in e))return()=>{};const o=e[t],i=s(o);return typeof i=="function"&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:o}})),e[t]=i,()=>{e[t]=o}}catch(o){return()=>{}}}const K={childNodes:Un,parentNode:Wn,parentElement:zn,textContent:qn,contains:jn,getRootNode:Hn,host:Vn,styleSheets:Gn,shadowRoot:Jn,querySelector:Yn,querySelectorAll:Zn,mutationObserver:Qn,patch:Xn};function Fi(e){return e.nodeType===e.ELEMENT_NODE}function Be(e){const t=e&&"host"in e&&"mode"in e&&K.host(e)||null;return!!(t&&"shadowRoot"in t&&K.shadowRoot(t)===e)}function Ue(e){return Object.prototype.toString.call(e)==="[object ShadowRoot]"}function Kn(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 eo(e){const{cssText:t}=e;if(t.split('"').length<3)return t;const s=["@import",`url(${JSON.stringify(e.href)})`];return e.layerName===""?s.push("layer"):e.layerName&&s.push(`layer(${e.layerName})`),e.supportsText&&s.push(`supports(${e.supportsText})`),e.media.length&&s.push(e.media.mediaText),s.join(" ")+";"}function at(e){try{const t=e.rules||e.cssRules;if(!t)return null;let s=e.href;!s&&e.ownerNode&&(s=e.ownerNode.baseURI);const o=Array.from(t,i=>$i(i,s)).join("");return Kn(o)}catch(t){return null}}function $i(e,t){var s;if(ro(e)){let o;try{o=at(e.styleSheet)||eo(e)}catch(i){o=e.cssText}try{if(o&&((s=e.styleSheet)!=null&&s.href))return lt(o,e.styleSheet.href)}catch(i){}return o}else{let o=e.cssText;return so(e)&&e.selectorText.includes(":")&&(o=to(o)),t?lt(o,t):o}}function to(e){const t=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return e.replace(t,"$1\\$2")}function ro(e){return"styleSheet"in e}function so(e){return"selectorText"in e}class Bi{constructor(){os(this,"idNodeMap",new Map),os(this,"nodeMetaMap",new WeakMap)}getId(t){var s;if(!t)return-1;const o=(s=this.getMeta(t))==null?void 0:s.id;return o!=null?o:-1}getNode(t){return this.idNodeMap.get(t)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(t){return this.nodeMetaMap.get(t)||null}removeNodeFromMap(t){const s=this.getId(t);this.idNodeMap.delete(s),t.childNodes&&t.childNodes.forEach(o=>this.removeNodeFromMap(o))}has(t){return this.idNodeMap.has(t)}hasNode(t){return this.nodeMetaMap.has(t)}add(t,s){const o=s.id;this.idNodeMap.set(o,t),this.nodeMetaMap.set(t,s)}replace(t,s){const o=this.getNode(t);if(o){const i=this.nodeMetaMap.get(o);i&&this.nodeMetaMap.set(s,i)}this.idNodeMap.set(t,s)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function io(){return new Bi}function Fr({element:e,maskInputOptions:t,tagName:s,type:o,value:i,maskInputFn:a}){let h=i||"";const p=o&&Oe(o);return(t[s.toLowerCase()]||p&&t[p])&&(a?h=a(h,e):h="*".repeat(h.length)),h}function Oe(e){return e.toLowerCase()}const us="__rrweb_original__";function no(e){const t=e.getContext("2d");if(!t)return!0;const s=50;for(let o=0;o<e.width;o+=s)for(let i=0;i<e.height;i+=s){const a=t.getImageData,h=us in a?a[us]:a;if(new Uint32Array(h.call(t,o,i,Math.min(s,e.width-o),Math.min(s,e.height-i)).data.buffer).some(m=>m!==0))return!1}return!0}function $r(e){const t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?Oe(t):null}function Ui(e,t){var a;let s;try{s=new URL(e,t!=null?t:window.location.href)}catch(h){return null}const o=/\.([0-9a-z]+)(?:$)/i,i=s.pathname.match(o);return(a=i==null?void 0:i[1])!=null?a:null}function oo(e){let t="";return e.indexOf("//")>-1?t=e.split("/").slice(0,3).join("/"):t=e.split("/")[0],t=t.split("?")[0],t}const ao=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,lo=/^(?:[a-z+]+:)?\/\//i,uo=/^www\..*/i,co=/^(data:)([^,]*),(.*)/i;function lt(e,t){return(e||"").replace(ao,(s,o,i,a,h,p)=>{const m=i||h||p,f=o||a||"";if(!m)return s;if(lo.test(m)||uo.test(m))return`url(${f}${m}${f})`;if(co.test(m))return`url(${f}${m}${f})`;if(m[0]==="/")return`url(${f}${oo(t)+m}${f})`;const r=t.split("/"),u=m.split("/");r.pop();for(const l of u)l!=="."&&(l===".."?r.pop():r.push(l));return`url(${f}${r.join("/")}${f})`})}const ho="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPgogIDxkZWZzPgogICAgPHBhdHRlcm4gaWQ9InN0cmlwZXMiIHBhdHRlcm5Vbml0cz0idXNlclNwYWNlT25Vc2UiIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiI+CiAgICAgIDxyZWN0IHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgZmlsbD0iYmxhY2siLz4KICAgICAgPHBhdGggZD0iTTggMEgxNkwwIDE2VjhMOCAwWiIgZmlsbD0iIzJEMkQyRCIvPgogICAgICA8cGF0aCBkPSJNMTYgOFYxNkg4TDE2IDhaIiBmaWxsPSIjMkQyRDJEIi8+CiAgICA8L3BhdHRlcm4+CiAgPC9kZWZzPgogIDxyZWN0IHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIGZpbGw9InVybCgjc3RyaXBlcykiLz4KPC9zdmc+Cg==",cs=4096;function fo(e,t,s,o){if(!e.complete||e.naturalWidth===0||e.naturalWidth>cs||e.naturalHeight>cs)return t;try{const i=document.createElement("canvas");i.width=e.naturalWidth,i.height=e.naturalHeight;const a=i.getContext("2d");return a?(a.drawImage(e,0,0),i.toDataURL(s||"image/webp",o!=null?o:.4)):t}catch(i){return t}}function po(e,t){return!t||e.length<=t?e:ho}let mo=1;const go=new RegExp("[^a-z0-9-_:]"),ze=-2;function Wi(){return mo++}function yo(e){if(e instanceof HTMLFormElement)return"form";const t=Oe(e.tagName);return go.test(t)?"div":t}let _e,hs;const wo=/^[^ \t\n\r\u000c]+/,bo=/^[, \t\n\r\u000c]+/;function So(e,t){if(t.trim()==="")return t;let s=0;function o(a){let h;const p=a.exec(t.substring(s));return p?(h=p[0],s+=h.length,h):""}const i=[];for(;o(bo),!(s>=t.length);){let a=o(wo);if(a.slice(-1)===",")a=Le(e,a.substring(0,a.length-1)),i.push(a);else{let h="";a=Le(e,a);let p=!1;for(;;){const m=t.charAt(s);if(m===""){i.push((a+h).trim());break}else if(p)m===")"&&(p=!1);else if(m===","){s+=1,i.push((a+h).trim());break}else m==="("&&(p=!0);h+=m,s+=1}}}return i.join(", ")}const fs=new WeakMap;function Le(e,t){return!t||t.trim()===""?t:Br(e,t)}function vo(e){return!!(e.tagName==="svg"||e.ownerSVGElement)}function Br(e,t){let s=fs.get(e);if(s||(s=e.createElement("a"),fs.set(e,s)),!t)t="";else if(t.startsWith("blob:")||t.startsWith("data:"))return t;return s.setAttribute("href",t),s.href}function zi(e,t,s,o,i,a){if(!o)return o;if(s==="src"||s==="href"&&!(t==="use"&&o[0]==="#")){const h=Le(e,o);if(t==="img"&&h.startsWith("data:")&&i){const p=i;let m=h;return(a!=null&&a.type||(a==null?void 0:a.quality)!==void 0)&&(m=fo(p,h,a.type,a.quality)),a!=null&&a.maxBase64ImageLength&&(m=po(m,a.maxBase64ImageLength)),m}return h}else{if(s==="xlink:href"&&o[0]!=="#")return Le(e,o);if(s==="background"&&(t==="table"||t==="td"||t==="th"))return Le(e,o);if(s==="srcset")return So(e,o);if(s==="style")return lt(o,Br(e));if(t==="object"&&s==="data")return Le(e,o)}return o}function qi(e,t,s){return(e==="video"||e==="audio")&&t==="autoplay"}function Co(e,t,s){try{if(typeof t=="string"){if(e.classList.contains(t))return!0}else for(let o=e.classList.length;o--;){const i=e.classList[o];if(t.test(i))return!0}if(s)return e.matches(s)}catch(o){}return!1}function ut(e,t,s){if(!e)return!1;if(e.nodeType!==e.ELEMENT_NODE)return s?ut(K.parentNode(e),t,s):!1;for(let o=e.classList.length;o--;){const i=e.classList[o];if(t.test(i))return!0}return s?ut(K.parentNode(e),t,s):!1}function ji(e,t,s,o){let i;if(Fi(e)){if(i=e,!K.childNodes(i).length)return!1}else{if(K.parentElement(e)===null)return!1;i=K.parentElement(e)}try{if(typeof t=="string"){if(o){if(i.closest(`.${t}`))return!0}else if(i.classList.contains(t))return!0}else if(ut(i,t,o))return!0;if(s){if(o){if(i.closest(s))return!0}else if(i.matches(s))return!0}}catch(a){}return!1}function xo(e,t,s){const o=e.contentWindow;if(!o)return;let i=!1,a;try{a=o.document.readyState}catch(p){return}if(a!=="complete"){const p=setTimeout(()=>{i||(t(),i=!0)},s);e.addEventListener("load",()=>{clearTimeout(p),i=!0,t()});return}const h="about:blank";if(o.location.href!==h||e.src===h||e.src==="")return setTimeout(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}function Ro(e,t,s){let o=!1,i;try{i=e.sheet}catch(h){return}if(i)return;const a=setTimeout(()=>{o||(t(),o=!0)},s);e.addEventListener("load",()=>{clearTimeout(a),o=!0,t()})}function Oo(e,t){const{doc:s,mirror:o,blockClass:i,blockSelector:a,needsMask:h,inlineStylesheet:p,maskInputOptions:m={},maskTextFn:f,maskInputFn:r,dataURLOptions:u={},inlineImages:l,recordCanvas:n,keepIframeSrcFn:d,newlyAddedElement:c=!1}=t,g=Mo(s,o);switch(e.nodeType){case e.DOCUMENT_NODE:return e.compatMode!=="CSS1Compat"?{type:Y.Document,childNodes:[],compatMode:e.compatMode}:{type:Y.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:Y.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:g};case e.ELEMENT_NODE:return Ao(e,{doc:s,blockClass:i,blockSelector:a,inlineStylesheet:p,maskInputOptions:m,maskInputFn:r,dataURLOptions:u,inlineImages:l,recordCanvas:n,keepIframeSrcFn:d,newlyAddedElement:c,rootId:g});case e.TEXT_NODE:return Io(e,{doc:s,needsMask:h,maskTextFn:f,rootId:g});case e.CDATA_SECTION_NODE:return{type:Y.CDATA,textContent:"",rootId:g};case e.COMMENT_NODE:return{type:Y.Comment,textContent:K.textContent(e)||"",rootId:g};default:return!1}}function Mo(e,t){if(!t.hasNode(e))return;const s=t.getId(e);return s===1?void 0:s}function Io(e,t){var s;const{needsMask:o,maskTextFn:i,rootId:a}=t,h=K.parentNode(e),p=h&&h.tagName;let m=K.textContent(e);const f=p==="STYLE"?!0:void 0,r=p==="SCRIPT"?!0:void 0;if(f&&m){try{e.nextSibling||e.previousSibling||(s=h.sheet)!=null&&s.cssRules&&(m=at(h.sheet))}catch(u){console.warn(`Cannot get CSS styles from text's parentNode. Error: ${u}`,e)}m=lt(m,Br(t.doc))}return r&&(m="SCRIPT_PLACEHOLDER"),!f&&!r&&m&&o&&(m=i?i(m,K.parentElement(e)):m.replace(/[\S]/g,"*")),{type:Y.Text,textContent:m||"",isStyle:f,rootId:a}}function ps(e,t){return Array.from(e.styleSheets).find(s=>s.href===t)}function Eo(e){return e.href}function Ao(e,t){const{doc:s,blockClass:o,blockSelector:i,inlineStylesheet:a,maskInputOptions:h={},maskInputFn:p,dataURLOptions:m={},inlineImages:f,recordCanvas:r,keepIframeSrcFn:u,newlyAddedElement:l=!1,rootId:n}=t,d=Co(e,o,i),c=yo(e);let g={};const v=e.attributes.length;for(let S=0;S<v;S++){const x=e.attributes[S];qi(c,x.name,x.value)||(g[x.name]=zi(s,c,Oe(x.name),x.value,e,m))}if(c==="link"&&a){const S=Eo(e);if(S){let x=ps(s,S);if(!x&&S.includes(".css")){const w=window.location.origin,C=S.replace(window.location.href,""),R=w+"/"+C;x=ps(s,R)}let y=null;x&&(y=at(x)),y&&(delete g.rel,delete g.href,g._cssText=y)}}if(c==="style"&&e.sheet&&!(e.innerText||K.textContent(e)||"").trim().length){const S=at(e.sheet);S&&(g._cssText=S)}if(c==="input"||c==="textarea"||c==="select"){const S=e.value,x=e.checked;g.type!=="radio"&&g.type!=="checkbox"&&g.type!=="submit"&&g.type!=="button"&&S?g.value=Fr({element:e,type:$r(e),tagName:c,value:S,maskInputOptions:h,maskInputFn:p}):x&&(g.checked=x)}if(c==="option"&&(e.selected&&!h.select?g.selected=!0:delete g.selected),c==="dialog"&&e.open)try{g.rr_open_mode=e.matches("dialog:modal")?"modal":"non-modal"}catch(S){g.rr_open_mode="modal",g.ph_rr_could_not_detect_modal=!0}if(c==="canvas"&&r){if(e.__context==="2d")no(e)||(g.rr_dataURL=e.toDataURL(m.type,m.quality));else if(!("__context"in e)){const S=e.toDataURL(m.type,m.quality),x=s.createElement("canvas");x.width=e.width,x.height=e.height;const y=x.toDataURL(m.type,m.quality);S!==y&&(g.rr_dataURL=S)}}if(c==="img"&&f){_e||(_e=s.createElement("canvas"),hs=_e.getContext("2d"));const S=e,x=S.currentSrc||S.getAttribute("src")||"<unknown-src>",y=S.crossOrigin,w=()=>{S.removeEventListener("load",w);try{_e.width=S.naturalWidth,_e.height=S.naturalHeight,hs.drawImage(S,0,0),g.rr_dataURL=_e.toDataURL(m.type,m.quality)}catch(C){if(S.crossOrigin!=="anonymous"){S.crossOrigin="anonymous",S.complete&&S.naturalWidth!==0?w():S.addEventListener("load",w);return}else console.warn(`Cannot inline img src=${x}! Error: ${C}`)}S.crossOrigin==="anonymous"&&(y?g.crossOrigin=y:S.removeAttribute("crossorigin"))};S.complete&&S.naturalWidth!==0?w():S.addEventListener("load",w)}if(c==="audio"||c==="video"){const S=g;S.rr_mediaState=e.paused?"paused":"played",S.rr_mediaCurrentTime=e.currentTime,S.rr_mediaPlaybackRate=e.playbackRate,S.rr_mediaMuted=e.muted,S.rr_mediaLoop=e.loop,S.rr_mediaVolume=e.volume}if(l||(e.scrollLeft&&(g.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(g.rr_scrollTop=e.scrollTop)),d){const{width:S,height:x}=e.getBoundingClientRect();g={class:g.class,rr_width:`${S}px`,rr_height:`${x}px`}}c==="iframe"&&!u(g.src)&&(e.contentDocument||(g.rr_src=g.src),delete g.src);let b;try{customElements.get(c)&&(b=!0)}catch(S){}return{type:Y.Element,tagName:c,attributes:g,childNodes:[],isSVG:vo(e)||void 0,needBlock:d,rootId:n,isCustom:b}}function U(e){return e==null?"":e.toLowerCase()}function Po(e,t){if(t.comment&&e.type===Y.Comment)return!0;if(e.type===Y.Element){if(t.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"&&Ui(e.attributes.href)==="js"))return!0;if(t.headFavicon&&(e.tagName==="link"&&e.attributes.rel==="shortcut icon"||e.tagName==="meta"&&(U(e.attributes.name).match(/^msapplication-tile(image|color)$/)||U(e.attributes.name)==="application-name"||U(e.attributes.rel)==="icon"||U(e.attributes.rel)==="apple-touch-icon"||U(e.attributes.rel)==="shortcut icon")))return!0;if(e.tagName==="meta"){if(t.headMetaDescKeywords&&U(e.attributes.name).match(/^description|keywords$/))return!0;if(t.headMetaSocial&&(U(e.attributes.property).match(/^(og|twitter|fb):/)||U(e.attributes.name).match(/^(og|twitter):/)||U(e.attributes.name)==="pinterest"))return!0;if(t.headMetaRobots&&(U(e.attributes.name)==="robots"||U(e.attributes.name)==="googlebot"||U(e.attributes.name)==="bingbot"))return!0;if(t.headMetaHttpEquiv&&e.attributes["http-equiv"]!==void 0)return!0;if(t.headMetaAuthorship&&(U(e.attributes.name)==="author"||U(e.attributes.name)==="generator"||U(e.attributes.name)==="framework"||U(e.attributes.name)==="publisher"||U(e.attributes.name)==="progid"||U(e.attributes.property).match(/^article:/)||U(e.attributes.property).match(/^product:/)))return!0;if(t.headMetaVerification&&(U(e.attributes.name)==="google-site-verification"||U(e.attributes.name)==="yandex-verification"||U(e.attributes.name)==="csrf-token"||U(e.attributes.name)==="p:domain_verify"||U(e.attributes.name)==="verify-v1"||U(e.attributes.name)==="verification"||U(e.attributes.name)==="shopify-checkout-api-token"))return!0}}return!1}function Te(e,t){const{doc:s,mirror:o,blockClass:i,blockSelector:a,maskTextClass:h,maskTextSelector:p,skipChild:m=!1,inlineStylesheet:f=!0,maskInputOptions:r={},maskTextFn:u,maskInputFn:l,slimDOMOptions:n,dataURLOptions:d={},inlineImages:c=!1,recordCanvas:g=!1,onSerialize:v,onIframeLoad:b,iframeLoadTimeout:S=5e3,onStylesheetLoad:x,stylesheetLoadTimeout:y=5e3,keepIframeSrcFn:w=()=>!1,newlyAddedElement:C=!1}=t;let{needsMask:R}=t,{preserveWhiteSpace:E=!0}=t;R||(R=ji(e,h,p,R===void 0));const M=Oo(e,{doc:s,mirror:o,blockClass:i,blockSelector:a,needsMask:R,inlineStylesheet:f,maskInputOptions:r,maskTextFn:u,maskInputFn:l,dataURLOptions:d,inlineImages:c,recordCanvas:g,keepIframeSrcFn:w,newlyAddedElement:C});if(!M)return console.warn(e,"not serialized"),null;let N;o.hasNode(e)?N=o.getId(e):Po(M,n)||!E&&M.type===Y.Text&&!M.isStyle&&!M.textContent.replace(/^\s+|\s+$/gm,"").length?N=ze:N=Wi();const P=Object.assign(M,{id:N});if(o.add(e,P),N===ze)return null;v&&v(e);let ee=!m;if(P.type===Y.Element){ee=ee&&!P.needBlock,delete P.needBlock;const O=K.shadowRoot(e);O&&Ue(O)&&(P.isShadowHost=!0)}if((P.type===Y.Document||P.type===Y.Element)&&ee){n.headWhitespace&&P.type===Y.Element&&P.tagName==="head"&&(E=!1);const O={doc:s,mirror:o,blockClass:i,blockSelector:a,needsMask:R,maskTextClass:h,maskTextSelector:p,skipChild:m,inlineStylesheet:f,maskInputOptions:r,maskTextFn:u,maskInputFn:l,slimDOMOptions:n,dataURLOptions:d,inlineImages:c,recordCanvas:g,preserveWhiteSpace:E,onSerialize:v,onIframeLoad:b,iframeLoadTimeout:S,onStylesheetLoad:x,stylesheetLoadTimeout:y,keepIframeSrcFn:w};if(!(P.type===Y.Element&&P.tagName==="textarea"&&P.attributes.value!==void 0))for(const T of Array.from(K.childNodes(e))){const B=Te(T,O);B&&P.childNodes.push(B)}let Z=null;if(Fi(e)&&(Z=K.shadowRoot(e)))for(const T of Array.from(K.childNodes(Z))){const B=Te(T,O);B&&(Ue(Z)&&(B.isShadow=!0),P.childNodes.push(B))}}const te=K.parentNode(e);return te&&Be(te)&&Ue(te)&&(P.isShadow=!0),P.type===Y.Element&&P.tagName==="iframe"&&xo(e,()=>{const O=e.contentDocument;if(O&&b){const Z=Te(O,{doc:O,mirror:o,blockClass:i,blockSelector:a,needsMask:R,maskTextClass:h,maskTextSelector:p,skipChild:!1,inlineStylesheet:f,maskInputOptions:r,maskTextFn:u,maskInputFn:l,slimDOMOptions:n,dataURLOptions:d,inlineImages:c,recordCanvas:g,preserveWhiteSpace:E,onSerialize:v,onIframeLoad:b,iframeLoadTimeout:S,onStylesheetLoad:x,stylesheetLoadTimeout:y,keepIframeSrcFn:w});Z&&b(e,Z)}},S),P.type===Y.Element&&P.tagName==="link"&&typeof P.attributes.rel=="string"&&(P.attributes.rel==="stylesheet"||P.attributes.rel==="preload"&&typeof P.attributes.href=="string"&&Ui(P.attributes.href)==="css")&&Ro(e,()=>{if(x){const O=Te(e,{doc:s,mirror:o,blockClass:i,blockSelector:a,needsMask:R,maskTextClass:h,maskTextSelector:p,skipChild:!1,inlineStylesheet:f,maskInputOptions:r,maskTextFn:u,maskInputFn:l,slimDOMOptions:n,dataURLOptions:d,inlineImages:c,recordCanvas:g,preserveWhiteSpace:E,onSerialize:v,onIframeLoad:b,iframeLoadTimeout:S,onStylesheetLoad:x,stylesheetLoadTimeout:y,keepIframeSrcFn:w});O&&x(e,O)}},y),P}function No(e,t){const{mirror:s=new Bi,blockClass:o="rr-block",blockSelector:i=null,maskTextClass:a="rr-mask",maskTextSelector:h=null,inlineStylesheet:p=!0,inlineImages:m=!1,recordCanvas:f=!1,maskAllInputs:r=!1,maskTextFn:u,maskInputFn:l,slimDOM:n=!1,dataURLOptions:d,preserveWhiteSpace:c,onSerialize:g,onIframeLoad:v,iframeLoadTimeout:b,onStylesheetLoad:S,stylesheetLoadTimeout:x,keepIframeSrcFn:y=()=>!1}=t||{};return Te(e,{doc:e,mirror:s,blockClass:o,blockSelector:i,maskTextClass:a,maskTextSelector:h,skipChild:!1,inlineStylesheet:p,maskInputOptions:r===!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}:r===!1?{password:!0}:r,maskTextFn:u,maskInputFn:l,slimDOMOptions:n===!0||n==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:n==="all",headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:n===!1?{}:n,dataURLOptions:d,inlineImages:m,recordCanvas:f,preserveWhiteSpace:c,onSerialize:g,onIframeLoad:v,iframeLoadTimeout:b,onStylesheetLoad:S,stylesheetLoadTimeout:x,keepIframeSrcFn:y,newlyAddedElement:!1})}function _o(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function ko(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var s=function o(){return this instanceof o?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};s.prototype=t.prototype}else s={};return Object.defineProperty(s,"__esModule",{value:!0}),Object.keys(e).forEach(function(o){var i=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(s,o,i.get?i:{enumerable:!0,get:function(){return e[o]}})}),s}var Qe={exports:{}},ds;function Do(){if(ds)return Qe.exports;ds=1;var e=String,t=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 Qe.exports=t(),Qe.exports.createColors=t,Qe.exports}const Lo={},To=Object.freeze(Object.defineProperty({__proto__:null,default:Lo},Symbol.toStringTag,{value:"Module"})),pe=ko(To);var Ot,ms;function Ur(){if(ms)return Ot;ms=1;let e=Do(),t=pe;class s extends Error{constructor(i,a,h,p,m,f){super(i),this.name="CssSyntaxError",this.reason=i,m&&(this.file=m),p&&(this.source=p),f&&(this.plugin=f),typeof a!="undefined"&&typeof h!="undefined"&&(typeof a=="number"?(this.line=a,this.column=h):(this.line=a.line,this.column=a.column,this.endLine=h.line,this.endColumn=h.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,s)}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(i){if(!this.source)return"";let a=this.source;i==null&&(i=e.isColorSupported);let h=n=>n,p=n=>n,m=n=>n;if(i){let{bold:n,gray:d,red:c}=e.createColors(!0);p=g=>n(c(g)),h=g=>d(g),t&&(m=g=>t(g))}let f=a.split(/\r?\n/),r=Math.max(this.line-3,0),u=Math.min(this.line+2,f.length),l=String(u).length;return f.slice(r,u).map((n,d)=>{let c=r+1+d,g=" "+(" "+c).slice(-l)+" | ";if(c===this.line){if(n.length>160){let b=20,S=Math.max(0,this.column-b),x=Math.max(this.column+b,this.endColumn+b),y=n.slice(S,x),w=h(g.replace(/\d/g," "))+n.slice(0,Math.min(this.column-1,b-1)).replace(/[^\t]/g," ");return p(">")+h(g)+m(y)+`
14
+ "use strict";var _n=Object.defineProperty,kn=Object.defineProperties;var Dn=Object.getOwnPropertyDescriptors;var Ye=Object.getOwnPropertySymbols;var ss=Object.prototype.hasOwnProperty,is=Object.prototype.propertyIsEnumerable;var rs=(e,t,s)=>t in e?_n(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s,D=(e,t)=>{for(var s in t||(t={}))ss.call(t,s)&&rs(e,s,t[s]);if(Ye)for(var s of Ye(t))is.call(t,s)&&rs(e,s,t[s]);return e},le=(e,t)=>kn(e,Dn(t));var Ne=(e,t)=>{var s={};for(var o in e)ss.call(e,o)&&t.indexOf(o)<0&&(s[o]=e[o]);if(e!=null&&Ye)for(var o of Ye(e))t.indexOf(o)<0&&is.call(e,o)&&(s[o]=e[o]);return s};Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var Ln=Object.defineProperty,Tn=(e,t,s)=>t in e?Ln(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s,E=(e,t,s)=>Tn(e,typeof t!="symbol"?t+"":t,s),ns,Fn=Object.defineProperty,Bn=(e,t,s)=>t in e?Fn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s,os=(e,t,s)=>Bn(e,typeof t!="symbol"?t+"":t,s),Y=(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))(Y||{});const as={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},ls={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},Ze={};function $n(e){var t,s;const o=(s=(t=globalThis==null?void 0:globalThis.Zone)==null?void 0:t.__symbol__)==null?void 0:s.call(t,e);if(o&&globalThis[o])return globalThis[o]}function Tr(e){if(Ze[e])return Ze[e];const t=$n(e)||globalThis[e],s=t.prototype,o=e in as?as[e]:void 0,i=!!(o&&o.every(p=>{var m,f;return!!((f=(m=Object.getOwnPropertyDescriptor(s,p))==null?void 0:m.get)!=null&&f.toString().includes("[native code]"))})),a=e in ls?ls[e]:void 0,h=!!(a&&a.every(p=>{var m;return typeof s[p]=="function"&&((m=s[p])==null?void 0:m.toString().includes("[native code]"))}));if(i&&h)return Ze[e]=t.prototype,t.prototype;try{const p=document.createElement("iframe");document.body.appendChild(p);const m=p.contentWindow;if(!m)return t.prototype;const f=m[e].prototype;return document.body.removeChild(p),f?Ze[e]=f:s}catch(p){return s}}const xt={};function ve(e,t,s){var o;const i=`${e}.${String(s)}`;if(xt[i])return xt[i].call(t);const a=Tr(e),h=(o=Object.getOwnPropertyDescriptor(a,s))==null?void 0:o.get;return h?(xt[i]=h,h.call(t)):t[s]}const Rt={};function Ti(e,t,s){const o=`${e}.${String(s)}`;if(Rt[o])return Rt[o].bind(t);const a=Tr(e)[s];return typeof a!="function"?t[s]:(Rt[o]=a,a.bind(t))}function Un(e){return ve("Node",e,"childNodes")}function Wn(e){return ve("Node",e,"parentNode")}function zn(e){return ve("Node",e,"parentElement")}function qn(e){return ve("Node",e,"textContent")}function jn(e,t){return Ti("Node",e,"contains")(t)}function Hn(e){return Ti("Node",e,"getRootNode")()}function Vn(e){return!e||!("host"in e)?null:ve("ShadowRoot",e,"host")}function Gn(e){return e.styleSheets}function Jn(e){return!e||!("shadowRoot"in e)?null:ve("Element",e,"shadowRoot")}function Yn(e,t){return ve("Element",e,"querySelector")(t)}function Zn(e,t){return ve("Element",e,"querySelectorAll")(t)}function Qn(){return Tr("MutationObserver").constructor}function Xn(e,t,s){try{if(!(t in e))return()=>{};const o=e[t],i=s(o);return typeof i=="function"&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:o}})),e[t]=i,()=>{e[t]=o}}catch(o){return()=>{}}}const K={childNodes:Un,parentNode:Wn,parentElement:zn,textContent:qn,contains:jn,getRootNode:Hn,host:Vn,styleSheets:Gn,shadowRoot:Jn,querySelector:Yn,querySelectorAll:Zn,mutationObserver:Qn,patch:Xn};function Fi(e){return e.nodeType===e.ELEMENT_NODE}function $e(e){const t=e&&"host"in e&&"mode"in e&&K.host(e)||null;return!!(t&&"shadowRoot"in t&&K.shadowRoot(t)===e)}function Ue(e){return Object.prototype.toString.call(e)==="[object ShadowRoot]"}function Kn(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 eo(e){const{cssText:t}=e;if(t.split('"').length<3)return t;const s=["@import",`url(${JSON.stringify(e.href)})`];return e.layerName===""?s.push("layer"):e.layerName&&s.push(`layer(${e.layerName})`),e.supportsText&&s.push(`supports(${e.supportsText})`),e.media.length&&s.push(e.media.mediaText),s.join(" ")+";"}function at(e){try{const t=e.rules||e.cssRules;if(!t)return null;let s=e.href;!s&&e.ownerNode&&(s=e.ownerNode.baseURI);const o=Array.from(t,i=>Bi(i,s)).join("");return Kn(o)}catch(t){return null}}function Bi(e,t){var s;if(ro(e)){let o;try{o=at(e.styleSheet)||eo(e)}catch(i){o=e.cssText}try{if(o&&((s=e.styleSheet)!=null&&s.href))return lt(o,e.styleSheet.href)}catch(i){}return o}else{let o=e.cssText;return so(e)&&e.selectorText.includes(":")&&(o=to(o)),t?lt(o,t):o}}function to(e){const t=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return e.replace(t,"$1\\$2")}function ro(e){return"styleSheet"in e}function so(e){return"selectorText"in e}class $i{constructor(){os(this,"idNodeMap",new Map),os(this,"nodeMetaMap",new WeakMap)}getId(t){var s;if(!t)return-1;const o=(s=this.getMeta(t))==null?void 0:s.id;return o!=null?o:-1}getNode(t){return this.idNodeMap.get(t)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(t){return this.nodeMetaMap.get(t)||null}removeNodeFromMap(t){const s=this.getId(t);this.idNodeMap.delete(s),t.childNodes&&t.childNodes.forEach(o=>this.removeNodeFromMap(o))}has(t){return this.idNodeMap.has(t)}hasNode(t){return this.nodeMetaMap.has(t)}add(t,s){const o=s.id;this.idNodeMap.set(o,t),this.nodeMetaMap.set(t,s)}replace(t,s){const o=this.getNode(t);if(o){const i=this.nodeMetaMap.get(o);i&&this.nodeMetaMap.set(s,i)}this.idNodeMap.set(t,s)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function io(){return new $i}function Fr({element:e,maskInputOptions:t,tagName:s,type:o,value:i,maskInputFn:a}){let h=i||"";const p=o&&Oe(o);return(t[s.toLowerCase()]||p&&t[p])&&(a?h=a(h,e):h="*".repeat(h.length)),h}function Oe(e){return e.toLowerCase()}const us="__rrweb_original__";function no(e){const t=e.getContext("2d");if(!t)return!0;const s=50;for(let o=0;o<e.width;o+=s)for(let i=0;i<e.height;i+=s){const a=t.getImageData,h=us in a?a[us]:a;if(new Uint32Array(h.call(t,o,i,Math.min(s,e.width-o),Math.min(s,e.height-i)).data.buffer).some(m=>m!==0))return!1}return!0}function Br(e){const t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?Oe(t):null}function Ui(e,t){var a;let s;try{s=new URL(e,t!=null?t:window.location.href)}catch(h){return null}const o=/\.([0-9a-z]+)(?:$)/i,i=s.pathname.match(o);return(a=i==null?void 0:i[1])!=null?a:null}function oo(e){let t="";return e.indexOf("//")>-1?t=e.split("/").slice(0,3).join("/"):t=e.split("/")[0],t=t.split("?")[0],t}const ao=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,lo=/^(?:[a-z+]+:)?\/\//i,uo=/^www\..*/i,co=/^(data:)([^,]*),(.*)/i;function lt(e,t){return(e||"").replace(ao,(s,o,i,a,h,p)=>{const m=i||h||p,f=o||a||"";if(!m)return s;if(lo.test(m)||uo.test(m))return`url(${f}${m}${f})`;if(co.test(m))return`url(${f}${m}${f})`;if(m[0]==="/")return`url(${f}${oo(t)+m}${f})`;const r=t.split("/"),u=m.split("/");r.pop();for(const l of u)l!=="."&&(l===".."?r.pop():r.push(l));return`url(${f}${r.join("/")}${f})`})}const ho="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPgogIDxkZWZzPgogICAgPHBhdHRlcm4gaWQ9InN0cmlwZXMiIHBhdHRlcm5Vbml0cz0idXNlclNwYWNlT25Vc2UiIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiI+CiAgICAgIDxyZWN0IHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgZmlsbD0iYmxhY2siLz4KICAgICAgPHBhdGggZD0iTTggMEgxNkwwIDE2VjhMOCAwWiIgZmlsbD0iIzJEMkQyRCIvPgogICAgICA8cGF0aCBkPSJNMTYgOFYxNkg4TDE2IDhaIiBmaWxsPSIjMkQyRDJEIi8+CiAgICA8L3BhdHRlcm4+CiAgPC9kZWZzPgogIDxyZWN0IHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIGZpbGw9InVybCgjc3RyaXBlcykiLz4KPC9zdmc+Cg==",cs=4096;function fo(e,t,s,o){if(!e.complete||e.naturalWidth===0||e.naturalWidth>cs||e.naturalHeight>cs)return t;try{const i=document.createElement("canvas");i.width=e.naturalWidth,i.height=e.naturalHeight;const a=i.getContext("2d");return a?(a.drawImage(e,0,0),i.toDataURL(s||"image/webp",o!=null?o:.4)):t}catch(i){return t}}function po(e,t){return!t||e.length<=t?e:ho}let mo=1;const go=new RegExp("[^a-z0-9-_:]"),ze=-2;function Wi(){return mo++}function yo(e){if(e instanceof HTMLFormElement)return"form";const t=Oe(e.tagName);return go.test(t)?"div":t}let _e,hs;const wo=/^[^ \t\n\r\u000c]+/,bo=/^[, \t\n\r\u000c]+/;function So(e,t){if(t.trim()==="")return t;let s=0;function o(a){let h;const p=a.exec(t.substring(s));return p?(h=p[0],s+=h.length,h):""}const i=[];for(;o(bo),!(s>=t.length);){let a=o(wo);if(a.slice(-1)===",")a=Le(e,a.substring(0,a.length-1)),i.push(a);else{let h="";a=Le(e,a);let p=!1;for(;;){const m=t.charAt(s);if(m===""){i.push((a+h).trim());break}else if(p)m===")"&&(p=!1);else if(m===","){s+=1,i.push((a+h).trim());break}else m==="("&&(p=!0);h+=m,s+=1}}}return i.join(", ")}const fs=new WeakMap;function Le(e,t){return!t||t.trim()===""?t:$r(e,t)}function vo(e){return!!(e.tagName==="svg"||e.ownerSVGElement)}function $r(e,t){let s=fs.get(e);if(s||(s=e.createElement("a"),fs.set(e,s)),!t)t="";else if(t.startsWith("blob:")||t.startsWith("data:"))return t;return s.setAttribute("href",t),s.href}function zi(e,t,s,o,i,a){if(!o)return o;if(s==="src"||s==="href"&&!(t==="use"&&o[0]==="#")){const h=Le(e,o);if(t==="img"&&h.startsWith("data:")&&i){const p=i;let m=h;return(a!=null&&a.type||(a==null?void 0:a.quality)!==void 0)&&(m=fo(p,h,a.type,a.quality)),a!=null&&a.maxBase64ImageLength&&(m=po(m,a.maxBase64ImageLength)),m}return h}else{if(s==="xlink:href"&&o[0]!=="#")return Le(e,o);if(s==="background"&&(t==="table"||t==="td"||t==="th"))return Le(e,o);if(s==="srcset")return So(e,o);if(s==="style")return lt(o,$r(e));if(t==="object"&&s==="data")return Le(e,o)}return o}function qi(e,t,s){return(e==="video"||e==="audio")&&t==="autoplay"}function Co(e,t,s){try{if(typeof t=="string"){if(e.classList.contains(t))return!0}else for(let o=e.classList.length;o--;){const i=e.classList[o];if(t.test(i))return!0}if(s)return e.matches(s)}catch(o){}return!1}function ut(e,t,s){if(!e)return!1;if(e.nodeType!==e.ELEMENT_NODE)return s?ut(K.parentNode(e),t,s):!1;for(let o=e.classList.length;o--;){const i=e.classList[o];if(t.test(i))return!0}return s?ut(K.parentNode(e),t,s):!1}function ji(e,t,s,o){let i;if(Fi(e)){if(i=e,!K.childNodes(i).length)return!1}else{if(K.parentElement(e)===null)return!1;i=K.parentElement(e)}try{if(typeof t=="string"){if(o){if(i.closest(`.${t}`))return!0}else if(i.classList.contains(t))return!0}else if(ut(i,t,o))return!0;if(s){if(o){if(i.closest(s))return!0}else if(i.matches(s))return!0}}catch(a){}return!1}function xo(e,t,s){const o=e.contentWindow;if(!o)return;let i=!1,a;try{a=o.document.readyState}catch(p){return}if(a!=="complete"){const p=setTimeout(()=>{i||(t(),i=!0)},s);e.addEventListener("load",()=>{clearTimeout(p),i=!0,t()});return}const h="about:blank";if(o.location.href!==h||e.src===h||e.src==="")return setTimeout(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}function Ro(e,t,s){let o=!1,i;try{i=e.sheet}catch(h){return}if(i)return;const a=setTimeout(()=>{o||(t(),o=!0)},s);e.addEventListener("load",()=>{clearTimeout(a),o=!0,t()})}function Oo(e,t){const{doc:s,mirror:o,blockClass:i,blockSelector:a,needsMask:h,inlineStylesheet:p,maskInputOptions:m={},maskTextFn:f,maskInputFn:r,dataURLOptions:u={},inlineImages:l,recordCanvas:n,keepIframeSrcFn:d,newlyAddedElement:c=!1}=t,g=Mo(s,o);switch(e.nodeType){case e.DOCUMENT_NODE:return e.compatMode!=="CSS1Compat"?{type:Y.Document,childNodes:[],compatMode:e.compatMode}:{type:Y.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:Y.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:g};case e.ELEMENT_NODE:return Ao(e,{doc:s,blockClass:i,blockSelector:a,inlineStylesheet:p,maskInputOptions:m,maskInputFn:r,dataURLOptions:u,inlineImages:l,recordCanvas:n,keepIframeSrcFn:d,newlyAddedElement:c,rootId:g});case e.TEXT_NODE:return Io(e,{doc:s,needsMask:h,maskTextFn:f,rootId:g});case e.CDATA_SECTION_NODE:return{type:Y.CDATA,textContent:"",rootId:g};case e.COMMENT_NODE:return{type:Y.Comment,textContent:K.textContent(e)||"",rootId:g};default:return!1}}function Mo(e,t){if(!t.hasNode(e))return;const s=t.getId(e);return s===1?void 0:s}function Io(e,t){var s;const{needsMask:o,maskTextFn:i,rootId:a}=t,h=K.parentNode(e),p=h&&h.tagName;let m=K.textContent(e);const f=p==="STYLE"?!0:void 0,r=p==="SCRIPT"?!0:void 0;if(f&&m){try{e.nextSibling||e.previousSibling||(s=h.sheet)!=null&&s.cssRules&&(m=at(h.sheet))}catch(u){console.warn(`Cannot get CSS styles from text's parentNode. Error: ${u}`,e)}m=lt(m,$r(t.doc))}return r&&(m="SCRIPT_PLACEHOLDER"),!f&&!r&&m&&o&&(m=i?i(m,K.parentElement(e)):m.replace(/[\S]/g,"*")),{type:Y.Text,textContent:m||"",isStyle:f,rootId:a}}function ps(e,t){return Array.from(e.styleSheets).find(s=>s.href===t)}function Eo(e){return e.href}function Ao(e,t){const{doc:s,blockClass:o,blockSelector:i,inlineStylesheet:a,maskInputOptions:h={},maskInputFn:p,dataURLOptions:m={},inlineImages:f,recordCanvas:r,keepIframeSrcFn:u,newlyAddedElement:l=!1,rootId:n}=t,d=Co(e,o,i),c=yo(e);let g={};const v=e.attributes.length;for(let S=0;S<v;S++){const x=e.attributes[S];qi(c,x.name,x.value)||(g[x.name]=zi(s,c,Oe(x.name),x.value,e,m))}if(c==="link"&&a){const S=Eo(e);if(S){let x=ps(s,S);if(!x&&S.includes(".css")){const w=window.location.origin,C=S.replace(window.location.href,""),R=w+"/"+C;x=ps(s,R)}let y=null;x&&(y=at(x)),y&&(delete g.rel,delete g.href,g._cssText=y)}}if(c==="style"&&e.sheet&&!(e.innerText||K.textContent(e)||"").trim().length){const S=at(e.sheet);S&&(g._cssText=S)}if(c==="input"||c==="textarea"||c==="select"){const S=e.value,x=e.checked;g.type!=="radio"&&g.type!=="checkbox"&&g.type!=="submit"&&g.type!=="button"&&S?g.value=Fr({element:e,type:Br(e),tagName:c,value:S,maskInputOptions:h,maskInputFn:p}):x&&(g.checked=x)}if(c==="option"&&(e.selected&&!h.select?g.selected=!0:delete g.selected),c==="dialog"&&e.open)try{g.rr_open_mode=e.matches("dialog:modal")?"modal":"non-modal"}catch(S){g.rr_open_mode="modal",g.ph_rr_could_not_detect_modal=!0}if(c==="canvas"&&r){if(e.__context==="2d")no(e)||(g.rr_dataURL=e.toDataURL(m.type,m.quality));else if(!("__context"in e)){const S=e.toDataURL(m.type,m.quality),x=s.createElement("canvas");x.width=e.width,x.height=e.height;const y=x.toDataURL(m.type,m.quality);S!==y&&(g.rr_dataURL=S)}}if(c==="img"&&f){_e||(_e=s.createElement("canvas"),hs=_e.getContext("2d"));const S=e,x=S.currentSrc||S.getAttribute("src")||"<unknown-src>",y=S.crossOrigin,w=()=>{S.removeEventListener("load",w);try{_e.width=S.naturalWidth,_e.height=S.naturalHeight,hs.drawImage(S,0,0),g.rr_dataURL=_e.toDataURL(m.type,m.quality)}catch(C){if(S.crossOrigin!=="anonymous"){S.crossOrigin="anonymous",S.complete&&S.naturalWidth!==0?w():S.addEventListener("load",w);return}else console.warn(`Cannot inline img src=${x}! Error: ${C}`)}S.crossOrigin==="anonymous"&&(y?g.crossOrigin=y:S.removeAttribute("crossorigin"))};S.complete&&S.naturalWidth!==0?w():S.addEventListener("load",w)}if(c==="audio"||c==="video"){const S=g;S.rr_mediaState=e.paused?"paused":"played",S.rr_mediaCurrentTime=e.currentTime,S.rr_mediaPlaybackRate=e.playbackRate,S.rr_mediaMuted=e.muted,S.rr_mediaLoop=e.loop,S.rr_mediaVolume=e.volume}if(l||(e.scrollLeft&&(g.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(g.rr_scrollTop=e.scrollTop)),d){const{width:S,height:x}=e.getBoundingClientRect();g={class:g.class,rr_width:`${S}px`,rr_height:`${x}px`}}c==="iframe"&&!u(g.src)&&(e.contentDocument||(g.rr_src=g.src),delete g.src);let b;try{customElements.get(c)&&(b=!0)}catch(S){}return{type:Y.Element,tagName:c,attributes:g,childNodes:[],isSVG:vo(e)||void 0,needBlock:d,rootId:n,isCustom:b}}function U(e){return e==null?"":e.toLowerCase()}function Po(e,t){if(t.comment&&e.type===Y.Comment)return!0;if(e.type===Y.Element){if(t.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"&&Ui(e.attributes.href)==="js"))return!0;if(t.headFavicon&&(e.tagName==="link"&&e.attributes.rel==="shortcut icon"||e.tagName==="meta"&&(U(e.attributes.name).match(/^msapplication-tile(image|color)$/)||U(e.attributes.name)==="application-name"||U(e.attributes.rel)==="icon"||U(e.attributes.rel)==="apple-touch-icon"||U(e.attributes.rel)==="shortcut icon")))return!0;if(e.tagName==="meta"){if(t.headMetaDescKeywords&&U(e.attributes.name).match(/^description|keywords$/))return!0;if(t.headMetaSocial&&(U(e.attributes.property).match(/^(og|twitter|fb):/)||U(e.attributes.name).match(/^(og|twitter):/)||U(e.attributes.name)==="pinterest"))return!0;if(t.headMetaRobots&&(U(e.attributes.name)==="robots"||U(e.attributes.name)==="googlebot"||U(e.attributes.name)==="bingbot"))return!0;if(t.headMetaHttpEquiv&&e.attributes["http-equiv"]!==void 0)return!0;if(t.headMetaAuthorship&&(U(e.attributes.name)==="author"||U(e.attributes.name)==="generator"||U(e.attributes.name)==="framework"||U(e.attributes.name)==="publisher"||U(e.attributes.name)==="progid"||U(e.attributes.property).match(/^article:/)||U(e.attributes.property).match(/^product:/)))return!0;if(t.headMetaVerification&&(U(e.attributes.name)==="google-site-verification"||U(e.attributes.name)==="yandex-verification"||U(e.attributes.name)==="csrf-token"||U(e.attributes.name)==="p:domain_verify"||U(e.attributes.name)==="verify-v1"||U(e.attributes.name)==="verification"||U(e.attributes.name)==="shopify-checkout-api-token"))return!0}}return!1}function Te(e,t){const{doc:s,mirror:o,blockClass:i,blockSelector:a,maskTextClass:h,maskTextSelector:p,skipChild:m=!1,inlineStylesheet:f=!0,maskInputOptions:r={},maskTextFn:u,maskInputFn:l,slimDOMOptions:n,dataURLOptions:d={},inlineImages:c=!1,recordCanvas:g=!1,onSerialize:v,onIframeLoad:b,iframeLoadTimeout:S=5e3,onStylesheetLoad:x,stylesheetLoadTimeout:y=5e3,keepIframeSrcFn:w=()=>!1,newlyAddedElement:C=!1}=t;let{needsMask:R}=t,{preserveWhiteSpace:A=!0}=t;R||(R=ji(e,h,p,R===void 0));const M=Oo(e,{doc:s,mirror:o,blockClass:i,blockSelector:a,needsMask:R,inlineStylesheet:f,maskInputOptions:r,maskTextFn:u,maskInputFn:l,dataURLOptions:d,inlineImages:c,recordCanvas:g,keepIframeSrcFn:w,newlyAddedElement:C});if(!M)return console.warn(e,"not serialized"),null;let N;o.hasNode(e)?N=o.getId(e):Po(M,n)||!A&&M.type===Y.Text&&!M.isStyle&&!M.textContent.replace(/^\s+|\s+$/gm,"").length?N=ze:N=Wi();const P=Object.assign(M,{id:N});if(o.add(e,P),N===ze)return null;v&&v(e);let ee=!m;if(P.type===Y.Element){ee=ee&&!P.needBlock,delete P.needBlock;const O=K.shadowRoot(e);O&&Ue(O)&&(P.isShadowHost=!0)}if((P.type===Y.Document||P.type===Y.Element)&&ee){n.headWhitespace&&P.type===Y.Element&&P.tagName==="head"&&(A=!1);const O={doc:s,mirror:o,blockClass:i,blockSelector:a,needsMask:R,maskTextClass:h,maskTextSelector:p,skipChild:m,inlineStylesheet:f,maskInputOptions:r,maskTextFn:u,maskInputFn:l,slimDOMOptions:n,dataURLOptions:d,inlineImages:c,recordCanvas:g,preserveWhiteSpace:A,onSerialize:v,onIframeLoad:b,iframeLoadTimeout:S,onStylesheetLoad:x,stylesheetLoadTimeout:y,keepIframeSrcFn:w};if(!(P.type===Y.Element&&P.tagName==="textarea"&&P.attributes.value!==void 0))for(const T of Array.from(K.childNodes(e))){const $=Te(T,O);$&&P.childNodes.push($)}let Z=null;if(Fi(e)&&(Z=K.shadowRoot(e)))for(const T of Array.from(K.childNodes(Z))){const $=Te(T,O);$&&(Ue(Z)&&($.isShadow=!0),P.childNodes.push($))}}const te=K.parentNode(e);return te&&$e(te)&&Ue(te)&&(P.isShadow=!0),P.type===Y.Element&&P.tagName==="iframe"&&xo(e,()=>{const O=e.contentDocument;if(O&&b){const Z=Te(O,{doc:O,mirror:o,blockClass:i,blockSelector:a,needsMask:R,maskTextClass:h,maskTextSelector:p,skipChild:!1,inlineStylesheet:f,maskInputOptions:r,maskTextFn:u,maskInputFn:l,slimDOMOptions:n,dataURLOptions:d,inlineImages:c,recordCanvas:g,preserveWhiteSpace:A,onSerialize:v,onIframeLoad:b,iframeLoadTimeout:S,onStylesheetLoad:x,stylesheetLoadTimeout:y,keepIframeSrcFn:w});Z&&b(e,Z)}},S),P.type===Y.Element&&P.tagName==="link"&&typeof P.attributes.rel=="string"&&(P.attributes.rel==="stylesheet"||P.attributes.rel==="preload"&&typeof P.attributes.href=="string"&&Ui(P.attributes.href)==="css")&&Ro(e,()=>{if(x){const O=Te(e,{doc:s,mirror:o,blockClass:i,blockSelector:a,needsMask:R,maskTextClass:h,maskTextSelector:p,skipChild:!1,inlineStylesheet:f,maskInputOptions:r,maskTextFn:u,maskInputFn:l,slimDOMOptions:n,dataURLOptions:d,inlineImages:c,recordCanvas:g,preserveWhiteSpace:A,onSerialize:v,onIframeLoad:b,iframeLoadTimeout:S,onStylesheetLoad:x,stylesheetLoadTimeout:y,keepIframeSrcFn:w});O&&x(e,O)}},y),P}function No(e,t){const{mirror:s=new $i,blockClass:o="rr-block",blockSelector:i=null,maskTextClass:a="rr-mask",maskTextSelector:h=null,inlineStylesheet:p=!0,inlineImages:m=!1,recordCanvas:f=!1,maskAllInputs:r=!1,maskTextFn:u,maskInputFn:l,slimDOM:n=!1,dataURLOptions:d,preserveWhiteSpace:c,onSerialize:g,onIframeLoad:v,iframeLoadTimeout:b,onStylesheetLoad:S,stylesheetLoadTimeout:x,keepIframeSrcFn:y=()=>!1}=t||{};return Te(e,{doc:e,mirror:s,blockClass:o,blockSelector:i,maskTextClass:a,maskTextSelector:h,skipChild:!1,inlineStylesheet:p,maskInputOptions:r===!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}:r===!1?{password:!0}:r,maskTextFn:u,maskInputFn:l,slimDOMOptions:n===!0||n==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:n==="all",headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:n===!1?{}:n,dataURLOptions:d,inlineImages:m,recordCanvas:f,preserveWhiteSpace:c,onSerialize:g,onIframeLoad:v,iframeLoadTimeout:b,onStylesheetLoad:S,stylesheetLoadTimeout:x,keepIframeSrcFn:y,newlyAddedElement:!1})}function _o(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function ko(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var s=function o(){return this instanceof o?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};s.prototype=t.prototype}else s={};return Object.defineProperty(s,"__esModule",{value:!0}),Object.keys(e).forEach(function(o){var i=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(s,o,i.get?i:{enumerable:!0,get:function(){return e[o]}})}),s}var Qe={exports:{}},ds;function Do(){if(ds)return Qe.exports;ds=1;var e=String,t=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 Qe.exports=t(),Qe.exports.createColors=t,Qe.exports}const Lo={},To=Object.freeze(Object.defineProperty({__proto__:null,default:Lo},Symbol.toStringTag,{value:"Module"})),pe=ko(To);var Ot,ms;function Ur(){if(ms)return Ot;ms=1;let e=Do(),t=pe;class s extends Error{constructor(i,a,h,p,m,f){super(i),this.name="CssSyntaxError",this.reason=i,m&&(this.file=m),p&&(this.source=p),f&&(this.plugin=f),typeof a!="undefined"&&typeof h!="undefined"&&(typeof a=="number"?(this.line=a,this.column=h):(this.line=a.line,this.column=a.column,this.endLine=h.line,this.endColumn=h.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,s)}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(i){if(!this.source)return"";let a=this.source;i==null&&(i=e.isColorSupported);let h=n=>n,p=n=>n,m=n=>n;if(i){let{bold:n,gray:d,red:c}=e.createColors(!0);p=g=>n(c(g)),h=g=>d(g),t&&(m=g=>t(g))}let f=a.split(/\r?\n/),r=Math.max(this.line-3,0),u=Math.min(this.line+2,f.length),l=String(u).length;return f.slice(r,u).map((n,d)=>{let c=r+1+d,g=" "+(" "+c).slice(-l)+" | ";if(c===this.line){if(n.length>160){let b=20,S=Math.max(0,this.column-b),x=Math.max(this.column+b,this.endColumn+b),y=n.slice(S,x),w=h(g.replace(/\d/g," "))+n.slice(0,Math.min(this.column-1,b-1)).replace(/[^\t]/g," ");return p(">")+h(g)+m(y)+`
15
15
  `+w+p("^")}let v=h(g.replace(/\d/g," "))+n.slice(0,this.column-1).replace(/[^\t]/g," ");return p(">")+h(g)+m(n)+`
16
16
  `+v+p("^")}return" "+h(g)+m(n)}).join(`
17
17
  `)}toString(){let i=this.showSourceCode();return i&&(i=`
@@ -30,15 +30,15 @@ var module = { exports };
30
30
  `)&&(a=a.replace(/[^\n]+$/,"")),!1}),a&&(a=a.replace(/\S/g,"")),a}rawColon(i){let a;return i.walkDecls(h=>{if(typeof h.raws.between!="undefined")return a=h.raws.between.replace(/[^\s:]/g,""),!1}),a}rawEmptyBody(i){let a;return i.walk(h=>{if(h.nodes&&h.nodes.length===0&&(a=h.raws.after,typeof a!="undefined"))return!1}),a}rawIndent(i){if(i.raws.indent)return i.raws.indent;let a;return i.walk(h=>{let p=h.parent;if(p&&p!==i&&p.parent&&p.parent===i&&typeof h.raws.before!="undefined"){let m=h.raws.before.split(`
31
31
  `);return a=m[m.length-1],a=a.replace(/\S/g,""),!1}}),a}rawSemicolon(i){let a;return i.walk(h=>{if(h.nodes&&h.nodes.length&&h.last.type==="decl"&&(a=h.raws.semicolon,typeof a!="undefined"))return!1}),a}rawValue(i,a){let h=i[a],p=i.raws[a];return p&&p.value===h?p.raw:h}root(i){this.body(i),i.raws.after&&this.builder(i.raws.after)}rule(i){this.block(i,this.rawValue(i,"selector")),i.raws.ownSemicolon&&this.builder(i.raws.ownSemicolon,i,"end")}stringify(i,a){if(!this[i.type])throw new Error("Unknown AST node type "+i.type+". Maybe you need to change PostCSS stringifier.");this[i.type](i,a)}}return Mt=s,s.default=s,Mt}var It,ys;function pt(){if(ys)return It;ys=1;let e=Hi();function t(s,o){new e(o).stringify(s)}return It=t,t.default=t,It}var Xe={},ws;function Wr(){return ws||(ws=1,Xe.isClean=Symbol("isClean"),Xe.my=Symbol("my")),Xe}var Et,bs;function dt(){if(bs)return Et;bs=1;let e=Ur(),t=Hi(),s=pt(),{isClean:o,my:i}=Wr();function a(m,f){let r=new m.constructor;for(let u in m){if(!Object.prototype.hasOwnProperty.call(m,u)||u==="proxyCache")continue;let l=m[u],n=typeof l;u==="parent"&&n==="object"?f&&(r[u]=f):u==="source"?r[u]=l:Array.isArray(l)?r[u]=l.map(d=>a(d,r)):(n==="object"&&l!==null&&(l=a(l)),r[u]=l)}return r}function h(m,f){if(f&&typeof f.offset!="undefined")return f.offset;let r=1,u=1,l=0;for(let n=0;n<m.length;n++){if(u===f.line&&r===f.column){l=n;break}m[n]===`
32
32
  `?(r=1,u+=1):r+=1}return l}class p{constructor(f={}){this.raws={},this[o]=!1,this[i]=!0;for(let r in f)if(r==="nodes"){this.nodes=[];for(let u of f[r])typeof u.clone=="function"?this.append(u.clone()):this.append(u)}else this[r]=f[r]}addToError(f){if(f.postcssNode=this,f.stack&&this.source&&/\n\s{4}at /.test(f.stack)){let r=this.source;f.stack=f.stack.replace(/\n\s{4}at /,`$&${r.input.from}:${r.start.line}:${r.start.column}$&`)}return f}after(f){return this.parent.insertAfter(this,f),this}assign(f={}){for(let r in f)this[r]=f[r];return this}before(f){return this.parent.insertBefore(this,f),this}cleanRaws(f){delete this.raws.before,delete this.raws.after,f||delete this.raws.between}clone(f={}){let r=a(this);for(let u in f)r[u]=f[u];return r}cloneAfter(f={}){let r=this.clone(f);return this.parent.insertAfter(this,r),r}cloneBefore(f={}){let r=this.clone(f);return this.parent.insertBefore(this,r),r}error(f,r={}){if(this.source){let{end:u,start:l}=this.rangeBy(r);return this.source.input.error(f,{column:l.column,line:l.line},{column:u.column,line:u.line},r)}return new e(f)}getProxyProcessor(){return{get(f,r){return r==="proxyOf"?f:r==="root"?()=>f.root().toProxy():f[r]},set(f,r,u){return f[r]===u||(f[r]=u,(r==="prop"||r==="value"||r==="name"||r==="params"||r==="important"||r==="text")&&f.markDirty()),!0}}}markClean(){this[o]=!0}markDirty(){if(this[o]){this[o]=!1;let f=this;for(;f=f.parent;)f[o]=!1}}next(){if(!this.parent)return;let f=this.parent.index(this);return this.parent.nodes[f+1]}positionBy(f){let r=this.source.start;if(f.index)r=this.positionInside(f.index);else if(f.word){let u="document"in this.source.input?this.source.input.document:this.source.input.css,n=u.slice(h(u,this.source.start),h(u,this.source.end)).indexOf(f.word);n!==-1&&(r=this.positionInside(n))}return r}positionInside(f){let r=this.source.start.column,u=this.source.start.line,l="document"in this.source.input?this.source.input.document:this.source.input.css,n=h(l,this.source.start),d=n+f;for(let c=n;c<d;c++)l[c]===`
33
- `?(r=1,u+=1):r+=1;return{column:r,line:u}}prev(){if(!this.parent)return;let f=this.parent.index(this);return this.parent.nodes[f-1]}rangeBy(f){let r={column:this.source.start.column,line:this.source.start.line},u=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:r.column+1,line:r.line};if(f.word){let l="document"in this.source.input?this.source.input.document:this.source.input.css,d=l.slice(h(l,this.source.start),h(l,this.source.end)).indexOf(f.word);d!==-1&&(r=this.positionInside(d),u=this.positionInside(d+f.word.length))}else f.start?r={column:f.start.column,line:f.start.line}:f.index&&(r=this.positionInside(f.index)),f.end?u={column:f.end.column,line:f.end.line}:typeof f.endIndex=="number"?u=this.positionInside(f.endIndex):f.index&&(u=this.positionInside(f.index+1));return(u.line<r.line||u.line===r.line&&u.column<=r.column)&&(u={column:r.column+1,line:r.line}),{end:u,start:r}}raw(f,r){return new t().raw(this,f,r)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...f){if(this.parent){let r=this,u=!1;for(let l of f)l===this?u=!0:u?(this.parent.insertAfter(r,l),r=l):this.parent.insertBefore(r,l);u||this.remove()}return this}root(){let f=this;for(;f.parent&&f.parent.type!=="document";)f=f.parent;return f}toJSON(f,r){let u={},l=r==null;r=r||new Map;let n=0;for(let d in this){if(!Object.prototype.hasOwnProperty.call(this,d)||d==="parent"||d==="proxyCache")continue;let c=this[d];if(Array.isArray(c))u[d]=c.map(g=>typeof g=="object"&&g.toJSON?g.toJSON(null,r):g);else if(typeof c=="object"&&c.toJSON)u[d]=c.toJSON(null,r);else if(d==="source"){let g=r.get(c.input);g==null&&(g=n,r.set(c.input,n),n++),u[d]={end:c.end,inputId:g,start:c.start}}else u[d]=c}return l&&(u.inputs=[...r.keys()].map(d=>d.toJSON())),u}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(f=s){f.stringify&&(f=f.stringify);let r="";return f(this,u=>{r+=u}),r}warn(f,r,u){let l={node:this};for(let n in u)l[n]=u[n];return f.warn(r,l)}get proxyOf(){return this}}return Et=p,p.default=p,Et}var At,Ss;function je(){if(Ss)return At;Ss=1;let e=dt();class t extends e{constructor(o){super(o),this.type="comment"}}return At=t,t.default=t,At}var Pt,vs;function mt(){if(vs)return Pt;vs=1;let e=dt();class t extends e{constructor(o){o&&typeof o.value!="undefined"&&typeof o.value!="string"&&(o=le(D({},o),{value:String(o.value)})),super(o),this.type="decl"}get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}}return Pt=t,t.default=t,Pt}var Nt,Cs;function Me(){if(Cs)return Nt;Cs=1;let e=je(),t=mt(),s=dt(),{isClean:o,my:i}=Wr(),a,h,p,m;function f(l){return l.map(n=>(n.nodes&&(n.nodes=f(n.nodes)),delete n.source,n))}function r(l){if(l[o]=!1,l.proxyOf.nodes)for(let n of l.proxyOf.nodes)r(n)}class u extends s{append(...n){for(let d of n){let c=this.normalize(d,this.last);for(let g of c)this.proxyOf.nodes.push(g)}return this.markDirty(),this}cleanRaws(n){if(super.cleanRaws(n),this.nodes)for(let d of this.nodes)d.cleanRaws(n)}each(n){if(!this.proxyOf.nodes)return;let d=this.getIterator(),c,g;for(;this.indexes[d]<this.proxyOf.nodes.length&&(c=this.indexes[d],g=n(this.proxyOf.nodes[c],c),g!==!1);)this.indexes[d]+=1;return delete this.indexes[d],g}every(n){return this.nodes.every(n)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let n=this.lastEach;return this.indexes[n]=0,n}getProxyProcessor(){return{get(n,d){return d==="proxyOf"?n:n[d]?d==="each"||typeof d=="string"&&d.startsWith("walk")?(...c)=>n[d](...c.map(g=>typeof g=="function"?(v,b)=>g(v.toProxy(),b):g)):d==="every"||d==="some"?c=>n[d]((g,...v)=>c(g.toProxy(),...v)):d==="root"?()=>n.root().toProxy():d==="nodes"?n.nodes.map(c=>c.toProxy()):d==="first"||d==="last"?n[d].toProxy():n[d]:n[d]},set(n,d,c){return n[d]===c||(n[d]=c,(d==="name"||d==="params"||d==="selector")&&n.markDirty()),!0}}}index(n){return typeof n=="number"?n:(n.proxyOf&&(n=n.proxyOf),this.proxyOf.nodes.indexOf(n))}insertAfter(n,d){let c=this.index(n),g=this.normalize(d,this.proxyOf.nodes[c]).reverse();c=this.index(n);for(let b of g)this.proxyOf.nodes.splice(c+1,0,b);let v;for(let b in this.indexes)v=this.indexes[b],c<v&&(this.indexes[b]=v+g.length);return this.markDirty(),this}insertBefore(n,d){let c=this.index(n),g=c===0?"prepend":!1,v=this.normalize(d,this.proxyOf.nodes[c],g).reverse();c=this.index(n);for(let S of v)this.proxyOf.nodes.splice(c,0,S);let b;for(let S in this.indexes)b=this.indexes[S],c<=b&&(this.indexes[S]=b+v.length);return this.markDirty(),this}normalize(n,d){if(typeof n=="string")n=f(h(n).nodes);else if(typeof n=="undefined")n=[];else if(Array.isArray(n)){n=n.slice(0);for(let g of n)g.parent&&g.parent.removeChild(g,"ignore")}else if(n.type==="root"&&this.type!=="document"){n=n.nodes.slice(0);for(let g of n)g.parent&&g.parent.removeChild(g,"ignore")}else if(n.type)n=[n];else if(n.prop){if(typeof n.value=="undefined")throw new Error("Value field is missed in node creation");typeof n.value!="string"&&(n.value=String(n.value)),n=[new t(n)]}else if(n.selector||n.selectors)n=[new m(n)];else if(n.name)n=[new a(n)];else if(n.text)n=[new e(n)];else throw new Error("Unknown node type in node creation");return n.map(g=>(g[i]||u.rebuild(g),g=g.proxyOf,g.parent&&g.parent.removeChild(g),g[o]&&r(g),g.raws||(g.raws={}),typeof g.raws.before=="undefined"&&d&&typeof d.raws.before!="undefined"&&(g.raws.before=d.raws.before.replace(/\S/g,"")),g.parent=this.proxyOf,g))}prepend(...n){n=n.reverse();for(let d of n){let c=this.normalize(d,this.first,"prepend").reverse();for(let g of c)this.proxyOf.nodes.unshift(g);for(let g in this.indexes)this.indexes[g]=this.indexes[g]+c.length}return this.markDirty(),this}push(n){return n.parent=this,this.proxyOf.nodes.push(n),this}removeAll(){for(let n of this.proxyOf.nodes)n.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(n){n=this.index(n),this.proxyOf.nodes[n].parent=void 0,this.proxyOf.nodes.splice(n,1);let d;for(let c in this.indexes)d=this.indexes[c],d>=n&&(this.indexes[c]=d-1);return this.markDirty(),this}replaceValues(n,d,c){return c||(c=d,d={}),this.walkDecls(g=>{d.props&&!d.props.includes(g.prop)||d.fast&&!g.value.includes(d.fast)||(g.value=g.value.replace(n,c))}),this.markDirty(),this}some(n){return this.nodes.some(n)}walk(n){return this.each((d,c)=>{let g;try{g=n(d,c)}catch(v){throw d.addToError(v)}return g!==!1&&d.walk&&(g=d.walk(n)),g})}walkAtRules(n,d){return d?n instanceof RegExp?this.walk((c,g)=>{if(c.type==="atrule"&&n.test(c.name))return d(c,g)}):this.walk((c,g)=>{if(c.type==="atrule"&&c.name===n)return d(c,g)}):(d=n,this.walk((c,g)=>{if(c.type==="atrule")return d(c,g)}))}walkComments(n){return this.walk((d,c)=>{if(d.type==="comment")return n(d,c)})}walkDecls(n,d){return d?n instanceof RegExp?this.walk((c,g)=>{if(c.type==="decl"&&n.test(c.prop))return d(c,g)}):this.walk((c,g)=>{if(c.type==="decl"&&c.prop===n)return d(c,g)}):(d=n,this.walk((c,g)=>{if(c.type==="decl")return d(c,g)}))}walkRules(n,d){return d?n instanceof RegExp?this.walk((c,g)=>{if(c.type==="rule"&&n.test(c.selector))return d(c,g)}):this.walk((c,g)=>{if(c.type==="rule"&&c.selector===n)return d(c,g)}):(d=n,this.walk((c,g)=>{if(c.type==="rule")return d(c,g)}))}get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}}return u.registerParse=l=>{h=l},u.registerRule=l=>{m=l},u.registerAtRule=l=>{a=l},u.registerRoot=l=>{p=l},Nt=u,u.default=u,u.rebuild=l=>{l.type==="atrule"?Object.setPrototypeOf(l,a.prototype):l.type==="rule"?Object.setPrototypeOf(l,m.prototype):l.type==="decl"?Object.setPrototypeOf(l,t.prototype):l.type==="comment"?Object.setPrototypeOf(l,e.prototype):l.type==="root"&&Object.setPrototypeOf(l,p.prototype),l[i]=!0,l.nodes&&l.nodes.forEach(n=>{u.rebuild(n)})},Nt}var _t,xs;function zr(){if(xs)return _t;xs=1;let e=Me();class t 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 _t=t,t.default=t,e.registerAtRule(t),_t}var kt,Rs;function qr(){if(Rs)return kt;Rs=1;let e=Me(),t,s;class o extends e{constructor(a){super(D({type:"document"},a)),this.nodes||(this.nodes=[])}toResult(a={}){return new t(new s,this,a).stringify()}}return o.registerLazyResult=i=>{t=i},o.registerProcessor=i=>{s=i},kt=o,o.default=o,kt}var Dt,Os;function Fo(){if(Os)return Dt;Os=1;let e="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";return Dt={nanoid:(o=21)=>{let i="",a=o|0;for(;a--;)i+=e[Math.random()*64|0];return i},customAlphabet:(o,i=21)=>(a=i)=>{let h="",p=a|0;for(;p--;)h+=o[Math.random()*o.length|0];return h}},Dt}var Lt,Ms;function Vi(){if(Ms)return Lt;Ms=1;let{existsSync:e,readFileSync:t}=pe,{dirname:s,join:o}=pe,{SourceMapConsumer:i,SourceMapGenerator:a}=pe;function h(m){return Buffer?Buffer.from(m,"base64").toString():window.atob(m)}class p{constructor(f,r){if(r.map===!1)return;this.loadAnnotation(f),this.inline=this.startWith(this.annotation,"data:");let u=r.map?r.map.prev:void 0,l=this.loadMap(r.from,u);!this.mapFile&&r.from&&(this.mapFile=r.from),this.mapFile&&(this.root=s(this.mapFile)),l&&(this.text=l)}consumer(){return this.consumerCache||(this.consumerCache=new i(this.text)),this.consumerCache}decodeInline(f){let r=/^data:application\/json;charset=utf-?8;base64,/,u=/^data:application\/json;base64,/,l=/^data:application\/json;charset=utf-?8,/,n=/^data:application\/json,/,d=f.match(l)||f.match(n);if(d)return decodeURIComponent(f.substr(d[0].length));let c=f.match(r)||f.match(u);if(c)return h(f.substr(c[0].length));let g=f.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+g)}getAnnotationURL(f){return f.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(f){return typeof f!="object"?!1:typeof f.mappings=="string"||typeof f._mappings=="string"||Array.isArray(f.sections)}loadAnnotation(f){let r=f.match(/\/\*\s*# sourceMappingURL=/g);if(!r)return;let u=f.lastIndexOf(r.pop()),l=f.indexOf("*/",u);u>-1&&l>-1&&(this.annotation=this.getAnnotationURL(f.substring(u,l)))}loadFile(f){if(this.root=s(f),e(f))return this.mapFile=f,t(f,"utf-8").toString().trim()}loadMap(f,r){if(r===!1)return!1;if(r){if(typeof r=="string")return r;if(typeof r=="function"){let u=r(f);if(u){let l=this.loadFile(u);if(!l)throw new Error("Unable to load previous source map: "+u.toString());return l}}else{if(r instanceof i)return a.fromSourceMap(r).toString();if(r instanceof a)return r.toString();if(this.isMap(r))return JSON.stringify(r);throw new Error("Unsupported previous source map format: "+r.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let u=this.annotation;return f&&(u=o(s(f),u)),this.loadFile(u)}}}startWith(f,r){return f?f.substr(0,r.length)===r:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}}return Lt=p,p.default=p,Lt}var Tt,Is;function gt(){if(Is)return Tt;Is=1;let{nanoid:e}=Fo(),{isAbsolute:t,resolve:s}=pe,{SourceMapConsumer:o,SourceMapGenerator:i}=pe,{fileURLToPath:a,pathToFileURL:h}=pe,p=Ur(),m=Vi(),f=pe,r=Symbol("fromOffsetCache"),u=!!(o&&i),l=!!(s&&t);class n{constructor(c,g={}){if(c===null||typeof c=="undefined"||typeof c=="object"&&!c.toString)throw new Error(`PostCSS received ${c} instead of CSS string`);if(this.css=c.toString(),this.css[0]==="\uFEFF"||this.css[0]==="\uFFFE"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,this.document=this.css,g.document&&(this.document=g.document.toString()),g.from&&(!l||/^\w+:\/\//.test(g.from)||t(g.from)?this.file=g.from:this.file=s(g.from)),l&&u){let v=new m(this.css,g);if(v.text){this.map=v;let b=v.consumer().file;!this.file&&b&&(this.file=this.mapResolve(b))}}this.file||(this.id="<input css "+e(6)+">"),this.map&&(this.map.file=this.from)}error(c,g,v,b={}){let S,x,y;if(g&&typeof g=="object"){let C=g,R=v;if(typeof C.offset=="number"){let E=this.fromOffset(C.offset);g=E.line,v=E.col}else g=C.line,v=C.column;if(typeof R.offset=="number"){let E=this.fromOffset(R.offset);x=E.line,S=E.col}else x=R.line,S=R.column}else if(!v){let C=this.fromOffset(g);g=C.line,v=C.col}let w=this.origin(g,v,x,S);return w?y=new p(c,w.endLine===void 0?w.line:{column:w.column,line:w.line},w.endLine===void 0?w.column:{column:w.endColumn,line:w.endLine},w.source,w.file,b.plugin):y=new p(c,x===void 0?g:{column:v,line:g},x===void 0?v:{column:S,line:x},this.css,this.file,b.plugin),y.input={column:v,endColumn:S,endLine:x,line:g,source:this.css},this.file&&(h&&(y.input.url=h(this.file).toString()),y.input.file=this.file),y}fromOffset(c){let g,v;if(this[r])v=this[r];else{let S=this.css.split(`
34
- `);v=new Array(S.length);let x=0;for(let y=0,w=S.length;y<w;y++)v[y]=x,x+=S[y].length+1;this[r]=v}g=v[v.length-1];let b=0;if(c>=g)b=v.length-1;else{let S=v.length-2,x;for(;b<S;)if(x=b+(S-b>>1),c<v[x])S=x-1;else if(c>=v[x+1])b=x+1;else{b=x;break}}return{col:c-v[b]+1,line:b+1}}mapResolve(c){return/^\w+:\/\//.test(c)?c:s(this.map.consumer().sourceRoot||this.map.root||".",c)}origin(c,g,v,b){if(!this.map)return!1;let S=this.map.consumer(),x=S.originalPositionFor({column:g,line:c});if(!x.source)return!1;let y;typeof v=="number"&&(y=S.originalPositionFor({column:b,line:v}));let w;t(x.source)?w=h(x.source):w=new URL(x.source,this.map.consumer().sourceRoot||h(this.map.mapFile));let C={column:x.column,endColumn:y&&y.column,endLine:y&&y.line,line:x.line,url:w.toString()};if(w.protocol==="file:")if(a)C.file=a(w);else throw new Error("file: protocol is not available in this PostCSS build");let R=S.sourceContentFor(x.source);return R&&(C.source=R),C}toJSON(){let c={};for(let g of["hasBOM","css","file","id"])this[g]!=null&&(c[g]=this[g]);return this.map&&(c.map=D({},this.map),c.map.consumerCache&&(c.map.consumerCache=void 0)),c}get from(){return this.file||this.id}}return Tt=n,n.default=n,f&&f.registerInput&&f.registerInput(n),Tt}var Ft,Es;function He(){if(Es)return Ft;Es=1;let e=Me(),t,s;class o extends e{constructor(a){super(a),this.type="root",this.nodes||(this.nodes=[])}normalize(a,h,p){let m=super.normalize(a);if(h){if(p==="prepend")this.nodes.length>1?h.raws.before=this.nodes[1].raws.before:delete h.raws.before;else if(this.first!==h)for(let f of m)f.raws.before=h.raws.before}return m}removeChild(a,h){let p=this.index(a);return!h&&p===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[p].raws.before),super.removeChild(a)}toResult(a={}){return new t(new s,this,a).stringify()}}return o.registerLazyResult=i=>{t=i},o.registerProcessor=i=>{s=i},Ft=o,o.default=o,e.registerRoot(o),Ft}var $t,As;function Gi(){if(As)return $t;As=1;let e={comma(t){return e.split(t,[","],!0)},space(t){let s=[" ",`
35
- `," "];return e.split(t,s)},split(t,s,o){let i=[],a="",h=!1,p=0,m=!1,f="",r=!1;for(let u of t)r?r=!1:u==="\\"?r=!0:m?u===f&&(m=!1):u==='"'||u==="'"?(m=!0,f=u):u==="("?p+=1:u===")"?p>0&&(p-=1):p===0&&s.includes(u)&&(h=!0),h?(a!==""&&i.push(a.trim()),a="",h=!1):a+=u;return(o||a!=="")&&i.push(a.trim()),i}};return $t=e,e.default=e,$t}var Bt,Ps;function jr(){if(Ps)return Bt;Ps=1;let e=Me(),t=Gi();class s extends e{constructor(i){super(i),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return t.comma(this.selector)}set selectors(i){let a=this.selector?this.selector.match(/,\s*/):null,h=a?a[0]:","+this.raw("between","beforeOpen");this.selector=i.join(h)}}return Bt=s,s.default=s,e.registerRule(s),Bt}var Ut,Ns;function $o(){if(Ns)return Ut;Ns=1;let e=zr(),t=je(),s=mt(),o=gt(),i=Vi(),a=He(),h=jr();function p(m,f){if(Array.isArray(m))return m.map(d=>p(d));let l=m,{inputs:r}=l,u=Ne(l,["inputs"]);if(r){f=[];for(let d of r){let c=le(D({},d),{__proto__:o.prototype});c.map&&(c.map=le(D({},c.map),{__proto__:i.prototype})),f.push(c)}}if(u.nodes&&(u.nodes=m.nodes.map(d=>p(d,f))),u.source){let n=u.source,{inputId:d}=n,c=Ne(n,["inputId"]);u.source=c,d!=null&&(u.source.input=f[d])}if(u.type==="root")return new a(u);if(u.type==="decl")return new s(u);if(u.type==="rule")return new h(u);if(u.type==="comment")return new t(u);if(u.type==="atrule")return new e(u);throw new Error("Unknown node type: "+m.type)}return Ut=p,p.default=p,Ut}var Wt,_s;function Ji(){if(_s)return Wt;_s=1;let{dirname:e,relative:t,resolve:s,sep:o}=pe,{SourceMapConsumer:i,SourceMapGenerator:a}=pe,{pathToFileURL:h}=pe,p=gt(),m=!!(i&&a),f=!!(e&&s&&t&&o);class r{constructor(l,n,d,c){this.stringify=l,this.mapOpts=d.map||{},this.root=n,this.opts=d,this.css=c,this.originalCSS=c,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let l;this.isInline()?l="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?l=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?l=this.mapOpts.annotation(this.opts.to,this.root):l=this.outputFile()+".map";let n=`
33
+ `?(r=1,u+=1):r+=1;return{column:r,line:u}}prev(){if(!this.parent)return;let f=this.parent.index(this);return this.parent.nodes[f-1]}rangeBy(f){let r={column:this.source.start.column,line:this.source.start.line},u=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:r.column+1,line:r.line};if(f.word){let l="document"in this.source.input?this.source.input.document:this.source.input.css,d=l.slice(h(l,this.source.start),h(l,this.source.end)).indexOf(f.word);d!==-1&&(r=this.positionInside(d),u=this.positionInside(d+f.word.length))}else f.start?r={column:f.start.column,line:f.start.line}:f.index&&(r=this.positionInside(f.index)),f.end?u={column:f.end.column,line:f.end.line}:typeof f.endIndex=="number"?u=this.positionInside(f.endIndex):f.index&&(u=this.positionInside(f.index+1));return(u.line<r.line||u.line===r.line&&u.column<=r.column)&&(u={column:r.column+1,line:r.line}),{end:u,start:r}}raw(f,r){return new t().raw(this,f,r)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...f){if(this.parent){let r=this,u=!1;for(let l of f)l===this?u=!0:u?(this.parent.insertAfter(r,l),r=l):this.parent.insertBefore(r,l);u||this.remove()}return this}root(){let f=this;for(;f.parent&&f.parent.type!=="document";)f=f.parent;return f}toJSON(f,r){let u={},l=r==null;r=r||new Map;let n=0;for(let d in this){if(!Object.prototype.hasOwnProperty.call(this,d)||d==="parent"||d==="proxyCache")continue;let c=this[d];if(Array.isArray(c))u[d]=c.map(g=>typeof g=="object"&&g.toJSON?g.toJSON(null,r):g);else if(typeof c=="object"&&c.toJSON)u[d]=c.toJSON(null,r);else if(d==="source"){let g=r.get(c.input);g==null&&(g=n,r.set(c.input,n),n++),u[d]={end:c.end,inputId:g,start:c.start}}else u[d]=c}return l&&(u.inputs=[...r.keys()].map(d=>d.toJSON())),u}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(f=s){f.stringify&&(f=f.stringify);let r="";return f(this,u=>{r+=u}),r}warn(f,r,u){let l={node:this};for(let n in u)l[n]=u[n];return f.warn(r,l)}get proxyOf(){return this}}return Et=p,p.default=p,Et}var At,Ss;function je(){if(Ss)return At;Ss=1;let e=dt();class t extends e{constructor(o){super(o),this.type="comment"}}return At=t,t.default=t,At}var Pt,vs;function mt(){if(vs)return Pt;vs=1;let e=dt();class t extends e{constructor(o){o&&typeof o.value!="undefined"&&typeof o.value!="string"&&(o=le(D({},o),{value:String(o.value)})),super(o),this.type="decl"}get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}}return Pt=t,t.default=t,Pt}var Nt,Cs;function Me(){if(Cs)return Nt;Cs=1;let e=je(),t=mt(),s=dt(),{isClean:o,my:i}=Wr(),a,h,p,m;function f(l){return l.map(n=>(n.nodes&&(n.nodes=f(n.nodes)),delete n.source,n))}function r(l){if(l[o]=!1,l.proxyOf.nodes)for(let n of l.proxyOf.nodes)r(n)}class u extends s{append(...n){for(let d of n){let c=this.normalize(d,this.last);for(let g of c)this.proxyOf.nodes.push(g)}return this.markDirty(),this}cleanRaws(n){if(super.cleanRaws(n),this.nodes)for(let d of this.nodes)d.cleanRaws(n)}each(n){if(!this.proxyOf.nodes)return;let d=this.getIterator(),c,g;for(;this.indexes[d]<this.proxyOf.nodes.length&&(c=this.indexes[d],g=n(this.proxyOf.nodes[c],c),g!==!1);)this.indexes[d]+=1;return delete this.indexes[d],g}every(n){return this.nodes.every(n)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let n=this.lastEach;return this.indexes[n]=0,n}getProxyProcessor(){return{get(n,d){return d==="proxyOf"?n:n[d]?d==="each"||typeof d=="string"&&d.startsWith("walk")?(...c)=>n[d](...c.map(g=>typeof g=="function"?(v,b)=>g(v.toProxy(),b):g)):d==="every"||d==="some"?c=>n[d]((g,...v)=>c(g.toProxy(),...v)):d==="root"?()=>n.root().toProxy():d==="nodes"?n.nodes.map(c=>c.toProxy()):d==="first"||d==="last"?n[d].toProxy():n[d]:n[d]},set(n,d,c){return n[d]===c||(n[d]=c,(d==="name"||d==="params"||d==="selector")&&n.markDirty()),!0}}}index(n){return typeof n=="number"?n:(n.proxyOf&&(n=n.proxyOf),this.proxyOf.nodes.indexOf(n))}insertAfter(n,d){let c=this.index(n),g=this.normalize(d,this.proxyOf.nodes[c]).reverse();c=this.index(n);for(let b of g)this.proxyOf.nodes.splice(c+1,0,b);let v;for(let b in this.indexes)v=this.indexes[b],c<v&&(this.indexes[b]=v+g.length);return this.markDirty(),this}insertBefore(n,d){let c=this.index(n),g=c===0?"prepend":!1,v=this.normalize(d,this.proxyOf.nodes[c],g).reverse();c=this.index(n);for(let S of v)this.proxyOf.nodes.splice(c,0,S);let b;for(let S in this.indexes)b=this.indexes[S],c<=b&&(this.indexes[S]=b+v.length);return this.markDirty(),this}normalize(n,d){if(typeof n=="string")n=f(h(n).nodes);else if(typeof n=="undefined")n=[];else if(Array.isArray(n)){n=n.slice(0);for(let g of n)g.parent&&g.parent.removeChild(g,"ignore")}else if(n.type==="root"&&this.type!=="document"){n=n.nodes.slice(0);for(let g of n)g.parent&&g.parent.removeChild(g,"ignore")}else if(n.type)n=[n];else if(n.prop){if(typeof n.value=="undefined")throw new Error("Value field is missed in node creation");typeof n.value!="string"&&(n.value=String(n.value)),n=[new t(n)]}else if(n.selector||n.selectors)n=[new m(n)];else if(n.name)n=[new a(n)];else if(n.text)n=[new e(n)];else throw new Error("Unknown node type in node creation");return n.map(g=>(g[i]||u.rebuild(g),g=g.proxyOf,g.parent&&g.parent.removeChild(g),g[o]&&r(g),g.raws||(g.raws={}),typeof g.raws.before=="undefined"&&d&&typeof d.raws.before!="undefined"&&(g.raws.before=d.raws.before.replace(/\S/g,"")),g.parent=this.proxyOf,g))}prepend(...n){n=n.reverse();for(let d of n){let c=this.normalize(d,this.first,"prepend").reverse();for(let g of c)this.proxyOf.nodes.unshift(g);for(let g in this.indexes)this.indexes[g]=this.indexes[g]+c.length}return this.markDirty(),this}push(n){return n.parent=this,this.proxyOf.nodes.push(n),this}removeAll(){for(let n of this.proxyOf.nodes)n.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(n){n=this.index(n),this.proxyOf.nodes[n].parent=void 0,this.proxyOf.nodes.splice(n,1);let d;for(let c in this.indexes)d=this.indexes[c],d>=n&&(this.indexes[c]=d-1);return this.markDirty(),this}replaceValues(n,d,c){return c||(c=d,d={}),this.walkDecls(g=>{d.props&&!d.props.includes(g.prop)||d.fast&&!g.value.includes(d.fast)||(g.value=g.value.replace(n,c))}),this.markDirty(),this}some(n){return this.nodes.some(n)}walk(n){return this.each((d,c)=>{let g;try{g=n(d,c)}catch(v){throw d.addToError(v)}return g!==!1&&d.walk&&(g=d.walk(n)),g})}walkAtRules(n,d){return d?n instanceof RegExp?this.walk((c,g)=>{if(c.type==="atrule"&&n.test(c.name))return d(c,g)}):this.walk((c,g)=>{if(c.type==="atrule"&&c.name===n)return d(c,g)}):(d=n,this.walk((c,g)=>{if(c.type==="atrule")return d(c,g)}))}walkComments(n){return this.walk((d,c)=>{if(d.type==="comment")return n(d,c)})}walkDecls(n,d){return d?n instanceof RegExp?this.walk((c,g)=>{if(c.type==="decl"&&n.test(c.prop))return d(c,g)}):this.walk((c,g)=>{if(c.type==="decl"&&c.prop===n)return d(c,g)}):(d=n,this.walk((c,g)=>{if(c.type==="decl")return d(c,g)}))}walkRules(n,d){return d?n instanceof RegExp?this.walk((c,g)=>{if(c.type==="rule"&&n.test(c.selector))return d(c,g)}):this.walk((c,g)=>{if(c.type==="rule"&&c.selector===n)return d(c,g)}):(d=n,this.walk((c,g)=>{if(c.type==="rule")return d(c,g)}))}get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}}return u.registerParse=l=>{h=l},u.registerRule=l=>{m=l},u.registerAtRule=l=>{a=l},u.registerRoot=l=>{p=l},Nt=u,u.default=u,u.rebuild=l=>{l.type==="atrule"?Object.setPrototypeOf(l,a.prototype):l.type==="rule"?Object.setPrototypeOf(l,m.prototype):l.type==="decl"?Object.setPrototypeOf(l,t.prototype):l.type==="comment"?Object.setPrototypeOf(l,e.prototype):l.type==="root"&&Object.setPrototypeOf(l,p.prototype),l[i]=!0,l.nodes&&l.nodes.forEach(n=>{u.rebuild(n)})},Nt}var _t,xs;function zr(){if(xs)return _t;xs=1;let e=Me();class t 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 _t=t,t.default=t,e.registerAtRule(t),_t}var kt,Rs;function qr(){if(Rs)return kt;Rs=1;let e=Me(),t,s;class o extends e{constructor(a){super(D({type:"document"},a)),this.nodes||(this.nodes=[])}toResult(a={}){return new t(new s,this,a).stringify()}}return o.registerLazyResult=i=>{t=i},o.registerProcessor=i=>{s=i},kt=o,o.default=o,kt}var Dt,Os;function Fo(){if(Os)return Dt;Os=1;let e="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";return Dt={nanoid:(o=21)=>{let i="",a=o|0;for(;a--;)i+=e[Math.random()*64|0];return i},customAlphabet:(o,i=21)=>(a=i)=>{let h="",p=a|0;for(;p--;)h+=o[Math.random()*o.length|0];return h}},Dt}var Lt,Ms;function Vi(){if(Ms)return Lt;Ms=1;let{existsSync:e,readFileSync:t}=pe,{dirname:s,join:o}=pe,{SourceMapConsumer:i,SourceMapGenerator:a}=pe;function h(m){return Buffer?Buffer.from(m,"base64").toString():window.atob(m)}class p{constructor(f,r){if(r.map===!1)return;this.loadAnnotation(f),this.inline=this.startWith(this.annotation,"data:");let u=r.map?r.map.prev:void 0,l=this.loadMap(r.from,u);!this.mapFile&&r.from&&(this.mapFile=r.from),this.mapFile&&(this.root=s(this.mapFile)),l&&(this.text=l)}consumer(){return this.consumerCache||(this.consumerCache=new i(this.text)),this.consumerCache}decodeInline(f){let r=/^data:application\/json;charset=utf-?8;base64,/,u=/^data:application\/json;base64,/,l=/^data:application\/json;charset=utf-?8,/,n=/^data:application\/json,/,d=f.match(l)||f.match(n);if(d)return decodeURIComponent(f.substr(d[0].length));let c=f.match(r)||f.match(u);if(c)return h(f.substr(c[0].length));let g=f.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+g)}getAnnotationURL(f){return f.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(f){return typeof f!="object"?!1:typeof f.mappings=="string"||typeof f._mappings=="string"||Array.isArray(f.sections)}loadAnnotation(f){let r=f.match(/\/\*\s*# sourceMappingURL=/g);if(!r)return;let u=f.lastIndexOf(r.pop()),l=f.indexOf("*/",u);u>-1&&l>-1&&(this.annotation=this.getAnnotationURL(f.substring(u,l)))}loadFile(f){if(this.root=s(f),e(f))return this.mapFile=f,t(f,"utf-8").toString().trim()}loadMap(f,r){if(r===!1)return!1;if(r){if(typeof r=="string")return r;if(typeof r=="function"){let u=r(f);if(u){let l=this.loadFile(u);if(!l)throw new Error("Unable to load previous source map: "+u.toString());return l}}else{if(r instanceof i)return a.fromSourceMap(r).toString();if(r instanceof a)return r.toString();if(this.isMap(r))return JSON.stringify(r);throw new Error("Unsupported previous source map format: "+r.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let u=this.annotation;return f&&(u=o(s(f),u)),this.loadFile(u)}}}startWith(f,r){return f?f.substr(0,r.length)===r:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}}return Lt=p,p.default=p,Lt}var Tt,Is;function gt(){if(Is)return Tt;Is=1;let{nanoid:e}=Fo(),{isAbsolute:t,resolve:s}=pe,{SourceMapConsumer:o,SourceMapGenerator:i}=pe,{fileURLToPath:a,pathToFileURL:h}=pe,p=Ur(),m=Vi(),f=pe,r=Symbol("fromOffsetCache"),u=!!(o&&i),l=!!(s&&t);class n{constructor(c,g={}){if(c===null||typeof c=="undefined"||typeof c=="object"&&!c.toString)throw new Error(`PostCSS received ${c} instead of CSS string`);if(this.css=c.toString(),this.css[0]==="\uFEFF"||this.css[0]==="\uFFFE"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,this.document=this.css,g.document&&(this.document=g.document.toString()),g.from&&(!l||/^\w+:\/\//.test(g.from)||t(g.from)?this.file=g.from:this.file=s(g.from)),l&&u){let v=new m(this.css,g);if(v.text){this.map=v;let b=v.consumer().file;!this.file&&b&&(this.file=this.mapResolve(b))}}this.file||(this.id="<input css "+e(6)+">"),this.map&&(this.map.file=this.from)}error(c,g,v,b={}){let S,x,y;if(g&&typeof g=="object"){let C=g,R=v;if(typeof C.offset=="number"){let A=this.fromOffset(C.offset);g=A.line,v=A.col}else g=C.line,v=C.column;if(typeof R.offset=="number"){let A=this.fromOffset(R.offset);x=A.line,S=A.col}else x=R.line,S=R.column}else if(!v){let C=this.fromOffset(g);g=C.line,v=C.col}let w=this.origin(g,v,x,S);return w?y=new p(c,w.endLine===void 0?w.line:{column:w.column,line:w.line},w.endLine===void 0?w.column:{column:w.endColumn,line:w.endLine},w.source,w.file,b.plugin):y=new p(c,x===void 0?g:{column:v,line:g},x===void 0?v:{column:S,line:x},this.css,this.file,b.plugin),y.input={column:v,endColumn:S,endLine:x,line:g,source:this.css},this.file&&(h&&(y.input.url=h(this.file).toString()),y.input.file=this.file),y}fromOffset(c){let g,v;if(this[r])v=this[r];else{let S=this.css.split(`
34
+ `);v=new Array(S.length);let x=0;for(let y=0,w=S.length;y<w;y++)v[y]=x,x+=S[y].length+1;this[r]=v}g=v[v.length-1];let b=0;if(c>=g)b=v.length-1;else{let S=v.length-2,x;for(;b<S;)if(x=b+(S-b>>1),c<v[x])S=x-1;else if(c>=v[x+1])b=x+1;else{b=x;break}}return{col:c-v[b]+1,line:b+1}}mapResolve(c){return/^\w+:\/\//.test(c)?c:s(this.map.consumer().sourceRoot||this.map.root||".",c)}origin(c,g,v,b){if(!this.map)return!1;let S=this.map.consumer(),x=S.originalPositionFor({column:g,line:c});if(!x.source)return!1;let y;typeof v=="number"&&(y=S.originalPositionFor({column:b,line:v}));let w;t(x.source)?w=h(x.source):w=new URL(x.source,this.map.consumer().sourceRoot||h(this.map.mapFile));let C={column:x.column,endColumn:y&&y.column,endLine:y&&y.line,line:x.line,url:w.toString()};if(w.protocol==="file:")if(a)C.file=a(w);else throw new Error("file: protocol is not available in this PostCSS build");let R=S.sourceContentFor(x.source);return R&&(C.source=R),C}toJSON(){let c={};for(let g of["hasBOM","css","file","id"])this[g]!=null&&(c[g]=this[g]);return this.map&&(c.map=D({},this.map),c.map.consumerCache&&(c.map.consumerCache=void 0)),c}get from(){return this.file||this.id}}return Tt=n,n.default=n,f&&f.registerInput&&f.registerInput(n),Tt}var Ft,Es;function He(){if(Es)return Ft;Es=1;let e=Me(),t,s;class o extends e{constructor(a){super(a),this.type="root",this.nodes||(this.nodes=[])}normalize(a,h,p){let m=super.normalize(a);if(h){if(p==="prepend")this.nodes.length>1?h.raws.before=this.nodes[1].raws.before:delete h.raws.before;else if(this.first!==h)for(let f of m)f.raws.before=h.raws.before}return m}removeChild(a,h){let p=this.index(a);return!h&&p===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[p].raws.before),super.removeChild(a)}toResult(a={}){return new t(new s,this,a).stringify()}}return o.registerLazyResult=i=>{t=i},o.registerProcessor=i=>{s=i},Ft=o,o.default=o,e.registerRoot(o),Ft}var Bt,As;function Gi(){if(As)return Bt;As=1;let e={comma(t){return e.split(t,[","],!0)},space(t){let s=[" ",`
35
+ `," "];return e.split(t,s)},split(t,s,o){let i=[],a="",h=!1,p=0,m=!1,f="",r=!1;for(let u of t)r?r=!1:u==="\\"?r=!0:m?u===f&&(m=!1):u==='"'||u==="'"?(m=!0,f=u):u==="("?p+=1:u===")"?p>0&&(p-=1):p===0&&s.includes(u)&&(h=!0),h?(a!==""&&i.push(a.trim()),a="",h=!1):a+=u;return(o||a!=="")&&i.push(a.trim()),i}};return Bt=e,e.default=e,Bt}var $t,Ps;function jr(){if(Ps)return $t;Ps=1;let e=Me(),t=Gi();class s extends e{constructor(i){super(i),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return t.comma(this.selector)}set selectors(i){let a=this.selector?this.selector.match(/,\s*/):null,h=a?a[0]:","+this.raw("between","beforeOpen");this.selector=i.join(h)}}return $t=s,s.default=s,e.registerRule(s),$t}var Ut,Ns;function Bo(){if(Ns)return Ut;Ns=1;let e=zr(),t=je(),s=mt(),o=gt(),i=Vi(),a=He(),h=jr();function p(m,f){if(Array.isArray(m))return m.map(d=>p(d));let l=m,{inputs:r}=l,u=Ne(l,["inputs"]);if(r){f=[];for(let d of r){let c=le(D({},d),{__proto__:o.prototype});c.map&&(c.map=le(D({},c.map),{__proto__:i.prototype})),f.push(c)}}if(u.nodes&&(u.nodes=m.nodes.map(d=>p(d,f))),u.source){let n=u.source,{inputId:d}=n,c=Ne(n,["inputId"]);u.source=c,d!=null&&(u.source.input=f[d])}if(u.type==="root")return new a(u);if(u.type==="decl")return new s(u);if(u.type==="rule")return new h(u);if(u.type==="comment")return new t(u);if(u.type==="atrule")return new e(u);throw new Error("Unknown node type: "+m.type)}return Ut=p,p.default=p,Ut}var Wt,_s;function Ji(){if(_s)return Wt;_s=1;let{dirname:e,relative:t,resolve:s,sep:o}=pe,{SourceMapConsumer:i,SourceMapGenerator:a}=pe,{pathToFileURL:h}=pe,p=gt(),m=!!(i&&a),f=!!(e&&s&&t&&o);class r{constructor(l,n,d,c){this.stringify=l,this.mapOpts=d.map||{},this.root=n,this.opts=d,this.css=c,this.originalCSS=c,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let l;this.isInline()?l="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?l=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?l=this.mapOpts.annotation(this.opts.to,this.root):l=this.outputFile()+".map";let n=`
36
36
  `;this.css.includes(`\r
37
37
  `)&&(n=`\r
38
38
  `),this.css+=n+"/*# sourceMappingURL="+l+" */"}applyPrevMaps(){for(let l of this.previous()){let n=this.toUrl(this.path(l.file)),d=l.root||e(l.file),c;this.mapOpts.sourcesContent===!1?(c=new i(l.text),c.sourcesContent&&(c.sourcesContent=null)):c=l.consumer(),this.map.applySourceMap(c,n,this.toUrl(this.path(d)))}}clearAnnotation(){if(this.mapOpts.annotation!==!1)if(this.root){let l;for(let n=this.root.nodes.length-1;n>=0;n--)l=this.root.nodes[n],l.type==="comment"&&l.text.startsWith("# sourceMappingURL=")&&this.root.removeChild(n)}else this.css&&(this.css=this.css.replace(/\n*\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),f&&m&&this.isMap())return this.generateMap();{let l="";return this.stringify(this.root,n=>{l+=n}),[l]}}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let l=this.previous()[0].consumer();l.file=this.outputFile(),this.map=a.fromSourceMap(l,{ignoreInvalidMapping:!0})}else this.map=new a({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 a({file:this.outputFile(),ignoreInvalidMapping:!0});let l=1,n=1,d="<no source>",c={generated:{column:0,line:0},original:{column:0,line:0},source:""},g,v;this.stringify(this.root,(b,S,x)=>{if(this.css+=b,S&&x!=="end"&&(c.generated.line=l,c.generated.column=n-1,S.source&&S.source.start?(c.source=this.sourcePath(S),c.original.line=S.source.start.line,c.original.column=S.source.start.column-1,this.map.addMapping(c)):(c.source=d,c.original.line=1,c.original.column=0,this.map.addMapping(c))),v=b.match(/\n/g),v?(l+=v.length,g=b.lastIndexOf(`
39
- `),n=b.length-g):n+=b.length,S&&x!=="start"){let y=S.parent||{raws:{}};(!(S.type==="decl"||S.type==="atrule"&&!S.nodes)||S!==y.last||y.raws.semicolon)&&(S.source&&S.source.end?(c.source=this.sourcePath(S),c.original.line=S.source.end.line,c.original.column=S.source.end.column-1,c.generated.line=l,c.generated.column=n-2,this.map.addMapping(c)):(c.source=d,c.original.line=1,c.original.column=0,c.generated.line=l,c.generated.column=n-1,this.map.addMapping(c)))}})}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation!="undefined"?this.mapOpts.annotation:this.previous().length?this.previous().some(l=>l.annotation):!0}isInline(){if(typeof this.mapOpts.inline!="undefined")return this.mapOpts.inline;let l=this.mapOpts.annotation;return typeof l!="undefined"&&l!==!0?!1:this.previous().length?this.previous().some(n=>n.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(l=>l.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(l){if(this.mapOpts.absolute||l.charCodeAt(0)===60||/^\w+:\/\//.test(l))return l;let n=this.memoizedPaths.get(l);if(n)return n;let d=this.opts.to?e(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(d=e(s(d,this.mapOpts.annotation)));let c=t(d,l);return this.memoizedPaths.set(l,c),c}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(l=>{if(l.source&&l.source.input.map){let n=l.source.input.map;this.previousMaps.includes(n)||this.previousMaps.push(n)}});else{let l=new p(this.originalCSS,this.opts);l.map&&this.previousMaps.push(l.map)}return this.previousMaps}setSourcesContent(){let l={};if(this.root)this.root.walk(n=>{if(n.source){let d=n.source.input.from;if(d&&!l[d]){l[d]=!0;let c=this.usesFileUrls?this.toFileUrl(d):this.toUrl(this.path(d));this.map.setSourceContent(c,n.source.input.css)}}});else if(this.css){let n=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(n,this.css)}}sourcePath(l){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(l.source.input.from):this.toUrl(this.path(l.source.input.from))}toBase64(l){return Buffer?Buffer.from(l).toString("base64"):window.btoa(unescape(encodeURIComponent(l)))}toFileUrl(l){let n=this.memoizedFileURLs.get(l);if(n)return n;if(h){let d=h(l).toString();return this.memoizedFileURLs.set(l,d),d}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(l){let n=this.memoizedURLs.get(l);if(n)return n;o==="\\"&&(l=l.replace(/\\/g,"/"));let d=encodeURI(l).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(l,d),d}}return Wt=r,Wt}var zt,ks;function Yi(){if(ks)return zt;ks=1;const e=39,t=34,s=92,o=47,i=10,a=32,h=12,p=9,m=13,f=91,r=93,u=40,l=41,n=123,d=125,c=59,g=42,v=58,b=64,S=/[\t\n\f\r "#'()/;[\\\]{}]/g,x=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,y=/.[\r\n"'(/\\]/,w=/[\da-f]/i;return zt=function(R,E={}){let M=R.css.valueOf(),N=E.ignoreErrors,P,ee,te,O,Z,T,B,Q,H,be,me=M.length,I=0,oe=[],ae=[];function Ae(){return I}function ge(J){throw R.error("Unclosed "+J,I)}function he(){return ae.length===0&&I>=me}function ne(J){if(ae.length)return ae.pop();if(I>=me)return;let _=J?J.ignoreUnclosed:!1;switch(P=M.charCodeAt(I),P){case i:case a:case p:case m:case h:{O=I;do O+=1,P=M.charCodeAt(O);while(P===a||P===i||P===p||P===m||P===h);T=["space",M.slice(I,O)],I=O-1;break}case f:case r:case n:case d:case v:case c:case l:{let X=String.fromCharCode(P);T=[X,X,I];break}case u:{if(be=oe.length?oe.pop()[1]:"",H=M.charCodeAt(I+1),be==="url"&&H!==e&&H!==t&&H!==a&&H!==i&&H!==p&&H!==h&&H!==m){O=I;do{if(B=!1,O=M.indexOf(")",O+1),O===-1)if(N||_){O=I;break}else ge("bracket");for(Q=O;M.charCodeAt(Q-1)===s;)Q-=1,B=!B}while(B);T=["brackets",M.slice(I,O+1),I,O],I=O}else O=M.indexOf(")",I+1),ee=M.slice(I,O+1),O===-1||y.test(ee)?T=["(","(",I]:(T=["brackets",ee,I,O],I=O);break}case e:case t:{Z=P===e?"'":'"',O=I;do{if(B=!1,O=M.indexOf(Z,O+1),O===-1)if(N||_){O=I+1;break}else ge("string");for(Q=O;M.charCodeAt(Q-1)===s;)Q-=1,B=!B}while(B);T=["string",M.slice(I,O+1),I,O],I=O;break}case b:{S.lastIndex=I+1,S.test(M),S.lastIndex===0?O=M.length-1:O=S.lastIndex-2,T=["at-word",M.slice(I,O+1),I,O],I=O;break}case s:{for(O=I,te=!0;M.charCodeAt(O+1)===s;)O+=1,te=!te;if(P=M.charCodeAt(O+1),te&&P!==o&&P!==a&&P!==i&&P!==p&&P!==m&&P!==h&&(O+=1,w.test(M.charAt(O)))){for(;w.test(M.charAt(O+1));)O+=1;M.charCodeAt(O+1)===a&&(O+=1)}T=["word",M.slice(I,O+1),I,O],I=O;break}default:{P===o&&M.charCodeAt(I+1)===g?(O=M.indexOf("*/",I+2)+1,O===0&&(N||_?O=M.length:ge("comment")),T=["comment",M.slice(I,O+1),I,O],I=O):(x.lastIndex=I+1,x.test(M),x.lastIndex===0?O=M.length-1:O=x.lastIndex-2,T=["word",M.slice(I,O+1),I,O],oe.push(T),I=O);break}}return I++,T}function Re(J){ae.push(J)}return{back:Re,endOfFile:he,nextToken:ne,position:Ae}},zt}var qt,Ds;function Zi(){if(Ds)return qt;Ds=1;let e=zr(),t=je(),s=mt(),o=He(),i=jr(),a=Yi();const h={empty:!0,space:!0};function p(f){for(let r=f.length-1;r>=0;r--){let u=f[r],l=u[3]||u[2];if(l)return l}}class m{constructor(r){this.input=r,this.root=new o,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:r,start:{column:1,line:1,offset:0}}}atrule(r){let u=new e;u.name=r[1].slice(1),u.name===""&&this.unnamedAtrule(u,r),this.init(u,r[2]);let l,n,d,c=!1,g=!1,v=[],b=[];for(;!this.tokenizer.endOfFile();){if(r=this.tokenizer.nextToken(),l=r[0],l==="("||l==="["?b.push(l==="("?")":"]"):l==="{"&&b.length>0?b.push("}"):l===b[b.length-1]&&b.pop(),b.length===0)if(l===";"){u.source.end=this.getPosition(r[2]),u.source.end.offset++,this.semicolon=!0;break}else if(l==="{"){g=!0;break}else if(l==="}"){if(v.length>0){for(d=v.length-1,n=v[d];n&&n[0]==="space";)n=v[--d];n&&(u.source.end=this.getPosition(n[3]||n[2]),u.source.end.offset++)}this.end(r);break}else v.push(r);else v.push(r);if(this.tokenizer.endOfFile()){c=!0;break}}u.raws.between=this.spacesAndCommentsFromEnd(v),v.length?(u.raws.afterName=this.spacesAndCommentsFromStart(v),this.raw(u,"params",v),c&&(r=v[v.length-1],u.source.end=this.getPosition(r[3]||r[2]),u.source.end.offset++,this.spaces=u.raws.between,u.raws.between="")):(u.raws.afterName="",u.params=""),g&&(u.nodes=[],this.current=u)}checkMissedSemicolon(r){let u=this.colon(r);if(u===!1)return;let l=0,n;for(let d=u-1;d>=0&&(n=r[d],!(n[0]!=="space"&&(l+=1,l===2)));d--);throw this.input.error("Missed semicolon",n[0]==="word"?n[3]+1:n[2])}colon(r){let u=0,l,n,d;for(let[c,g]of r.entries()){if(n=g,d=n[0],d==="("&&(u+=1),d===")"&&(u-=1),u===0&&d===":")if(!l)this.doubleColon(n);else{if(l[0]==="word"&&l[1]==="progid")continue;return c}l=n}return!1}comment(r){let u=new t;this.init(u,r[2]),u.source.end=this.getPosition(r[3]||r[2]),u.source.end.offset++;let l=r[1].slice(2,-2);if(/^\s*$/.test(l))u.text="",u.raws.left=l,u.raws.right="";else{let n=l.match(/^(\s*)([^]*\S)(\s*)$/);u.text=n[2],u.raws.left=n[1],u.raws.right=n[3]}}createTokenizer(){this.tokenizer=a(this.input)}decl(r,u){let l=new s;this.init(l,r[0][2]);let n=r[r.length-1];for(n[0]===";"&&(this.semicolon=!0,r.pop()),l.source.end=this.getPosition(n[3]||n[2]||p(r)),l.source.end.offset++;r[0][0]!=="word";)r.length===1&&this.unknownWord(r),l.raws.before+=r.shift()[1];for(l.source.start=this.getPosition(r[0][2]),l.prop="";r.length;){let b=r[0][0];if(b===":"||b==="space"||b==="comment")break;l.prop+=r.shift()[1]}l.raws.between="";let d;for(;r.length;)if(d=r.shift(),d[0]===":"){l.raws.between+=d[1];break}else d[0]==="word"&&/\w/.test(d[1])&&this.unknownWord([d]),l.raws.between+=d[1];(l.prop[0]==="_"||l.prop[0]==="*")&&(l.raws.before+=l.prop[0],l.prop=l.prop.slice(1));let c=[],g;for(;r.length&&(g=r[0][0],!(g!=="space"&&g!=="comment"));)c.push(r.shift());this.precheckMissedSemicolon(r);for(let b=r.length-1;b>=0;b--){if(d=r[b],d[1].toLowerCase()==="!important"){l.important=!0;let S=this.stringFrom(r,b);S=this.spacesFromEnd(r)+S,S!==" !important"&&(l.raws.important=S);break}else if(d[1].toLowerCase()==="important"){let S=r.slice(0),x="";for(let y=b;y>0;y--){let w=S[y][0];if(x.trim().startsWith("!")&&w!=="space")break;x=S.pop()[1]+x}x.trim().startsWith("!")&&(l.important=!0,l.raws.important=x,r=S)}if(d[0]!=="space"&&d[0]!=="comment")break}r.some(b=>b[0]!=="space"&&b[0]!=="comment")&&(l.raws.between+=c.map(b=>b[1]).join(""),c=[]),this.raw(l,"value",c.concat(r),u),l.value.includes(":")&&!u&&this.checkMissedSemicolon(r)}doubleColon(r){throw this.input.error("Double colon",{offset:r[2]},{offset:r[2]+r[1].length})}emptyRule(r){let u=new i;this.init(u,r[2]),u.selector="",u.raws.between="",this.current=u}end(r){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(r[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(r)}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(r){if(this.spaces+=r[1],this.current.nodes){let u=this.current.nodes[this.current.nodes.length-1];u&&u.type==="rule"&&!u.raws.ownSemicolon&&(u.raws.ownSemicolon=this.spaces,this.spaces="")}}getPosition(r){let u=this.input.fromOffset(r);return{column:u.col,line:u.line,offset:r}}init(r,u){this.current.push(r),r.source={input:this.input,start:this.getPosition(u)},r.raws.before=this.spaces,this.spaces="",r.type!=="comment"&&(this.semicolon=!1)}other(r){let u=!1,l=null,n=!1,d=null,c=[],g=r[1].startsWith("--"),v=[],b=r;for(;b;){if(l=b[0],v.push(b),l==="("||l==="[")d||(d=b),c.push(l==="("?")":"]");else if(g&&n&&l==="{")d||(d=b),c.push("}");else if(c.length===0)if(l===";")if(n){this.decl(v,g);return}else break;else if(l==="{"){this.rule(v);return}else if(l==="}"){this.tokenizer.back(v.pop()),u=!0;break}else l===":"&&(n=!0);else l===c[c.length-1]&&(c.pop(),c.length===0&&(d=null));b=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(u=!0),c.length>0&&this.unclosedBracket(d),u&&n){if(!g)for(;v.length&&(b=v[v.length-1][0],!(b!=="space"&&b!=="comment"));)this.tokenizer.back(v.pop());this.decl(v,g)}else this.unknownWord(v)}parse(){let r;for(;!this.tokenizer.endOfFile();)switch(r=this.tokenizer.nextToken(),r[0]){case"space":this.spaces+=r[1];break;case";":this.freeSemicolon(r);break;case"}":this.end(r);break;case"comment":this.comment(r);break;case"at-word":this.atrule(r);break;case"{":this.emptyRule(r);break;default:this.other(r);break}this.endFile()}precheckMissedSemicolon(){}raw(r,u,l,n){let d,c,g=l.length,v="",b=!0,S,x;for(let y=0;y<g;y+=1)d=l[y],c=d[0],c==="space"&&y===g-1&&!n?b=!1:c==="comment"?(x=l[y-1]?l[y-1][0]:"empty",S=l[y+1]?l[y+1][0]:"empty",!h[x]&&!h[S]?v.slice(-1)===","?b=!1:v+=d[1]:b=!1):v+=d[1];if(!b){let y=l.reduce((w,C)=>w+C[1],"");r.raws[u]={raw:y,value:v}}r[u]=v}rule(r){r.pop();let u=new i;this.init(u,r[0][2]),u.raws.between=this.spacesAndCommentsFromEnd(r),this.raw(u,"selector",r),this.current=u}spacesAndCommentsFromEnd(r){let u,l="";for(;r.length&&(u=r[r.length-1][0],!(u!=="space"&&u!=="comment"));)l=r.pop()[1]+l;return l}spacesAndCommentsFromStart(r){let u,l="";for(;r.length&&(u=r[0][0],!(u!=="space"&&u!=="comment"));)l+=r.shift()[1];return l}spacesFromEnd(r){let u,l="";for(;r.length&&(u=r[r.length-1][0],u==="space");)l=r.pop()[1]+l;return l}stringFrom(r,u){let l="";for(let n=u;n<r.length;n++)l+=r[n][1];return r.splice(u,r.length-u),l}unclosedBlock(){let r=this.current.source.start;throw this.input.error("Unclosed block",r.line,r.column)}unclosedBracket(r){throw this.input.error("Unclosed bracket",{offset:r[2]},{offset:r[2]+1})}unexpectedClose(r){throw this.input.error("Unexpected }",{offset:r[2]},{offset:r[2]+1})}unknownWord(r){throw this.input.error("Unknown word",{offset:r[0][2]},{offset:r[0][2]+r[0][1].length})}unnamedAtrule(r,u){throw this.input.error("At-rule without name",{offset:u[2]},{offset:u[2]+u[1].length})}}return qt=m,qt}var jt,Ls;function Hr(){if(Ls)return jt;Ls=1;let e=Me(),t=gt(),s=Zi();function o(i,a){let h=new t(i,a),p=new s(h);try{p.parse()}catch(m){throw m}return p.root}return jt=o,o.default=o,e.registerParse(o),jt}var Ht,Ts;function Qi(){if(Ts)return Ht;Ts=1;class e{constructor(s,o={}){if(this.type="warning",this.text=s,o.node&&o.node.source){let i=o.node.rangeBy(o);this.line=i.start.line,this.column=i.start.column,this.endLine=i.end.line,this.endColumn=i.end.column}for(let i in o)this[i]=o[i]}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 Ht=e,e.default=e,Ht}var Vt,Fs;function Vr(){if(Fs)return Vt;Fs=1;let e=Qi();class t{constructor(o,i,a){this.processor=o,this.messages=[],this.root=i,this.opts=a,this.css=void 0,this.map=void 0}toString(){return this.css}warn(o,i={}){i.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(i.plugin=this.lastPlugin.postcssPlugin);let a=new e(o,i);return this.messages.push(a),a}warnings(){return this.messages.filter(o=>o.type==="warning")}get content(){return this.css}}return Vt=t,t.default=t,Vt}var Gt,$s;function Xi(){if($s)return Gt;$s=1;let e={};return Gt=function(s){e[s]||(e[s]=!0,typeof console!="undefined"&&console.warn&&console.warn(s))},Gt}var Jt,Bs;function Ki(){if(Bs)return Jt;Bs=1;let e=Me(),t=qr(),s=Ji(),o=Hr(),i=Vr(),a=He(),h=pt(),{isClean:p,my:m}=Wr(),f=Xi();const r={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},u={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},l={Once:!0,postcssPlugin:!0,prepare:!0},n=0;function d(x){return typeof x=="object"&&typeof x.then=="function"}function c(x){let y=!1,w=r[x.type];return x.type==="decl"?y=x.prop.toLowerCase():x.type==="atrule"&&(y=x.name.toLowerCase()),y&&x.append?[w,w+"-"+y,n,w+"Exit",w+"Exit-"+y]:y?[w,w+"-"+y,w+"Exit",w+"Exit-"+y]:x.append?[w,n,w+"Exit"]:[w,w+"Exit"]}function g(x){let y;return x.type==="document"?y=["Document",n,"DocumentExit"]:x.type==="root"?y=["Root",n,"RootExit"]:y=c(x),{eventIndex:0,events:y,iterator:0,node:x,visitorIndex:0,visitors:[]}}function v(x){return x[p]=!1,x.nodes&&x.nodes.forEach(y=>v(y)),x}let b={};class S{constructor(y,w,C){this.stringified=!1,this.processed=!1;let R;if(typeof w=="object"&&w!==null&&(w.type==="root"||w.type==="document"))R=v(w);else if(w instanceof S||w instanceof i)R=v(w.root),w.map&&(typeof C.map=="undefined"&&(C.map={}),C.map.inline||(C.map.inline=!1),C.map.prev=w.map);else{let E=o;C.syntax&&(E=C.syntax.parse),C.parser&&(E=C.parser),E.parse&&(E=E.parse);try{R=E(w,C)}catch(M){this.processed=!0,this.error=M}R&&!R[m]&&e.rebuild(R)}this.result=new i(y,R,C),this.helpers=le(D({},b),{postcss:b,result:this.result}),this.plugins=this.processor.plugins.map(E=>typeof E=="object"&&E.prepare?D(D({},E),E.prepare(this.result)):E)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(y){return this.async().catch(y)}finally(y){return this.async().then(y,y)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(y,w){let C=this.result.lastPlugin;try{w&&w.addToError(y),this.error=y,y.name==="CssSyntaxError"&&!y.plugin?(y.plugin=C.postcssPlugin,y.setMessage()):C.postcssVersion}catch(R){console&&console.error&&console.error(R)}return y}prepareVisitors(){this.listeners={};let y=(w,C,R)=>{this.listeners[C]||(this.listeners[C]=[]),this.listeners[C].push([w,R])};for(let w of this.plugins)if(typeof w=="object")for(let C in w){if(!u[C]&&/^[A-Z]/.test(C))throw new Error(`Unknown event ${C} in ${w.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!l[C])if(typeof w[C]=="object")for(let R in w[C])R==="*"?y(w,C,w[C][R]):y(w,C+"-"+R.toLowerCase(),w[C][R]);else typeof w[C]=="function"&&y(w,C,w[C])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let y=0;y<this.plugins.length;y++){let w=this.plugins[y],C=this.runOnRoot(w);if(d(C))try{await C}catch(R){throw this.handleError(R)}}if(this.prepareVisitors(),this.hasListener){let y=this.result.root;for(;!y[p];){y[p]=!0;let w=[g(y)];for(;w.length>0;){let C=this.visitTick(w);if(d(C))try{await C}catch(R){let E=w[w.length-1].node;throw this.handleError(R,E)}}}if(this.listeners.OnceExit)for(let[w,C]of this.listeners.OnceExit){this.result.lastPlugin=w;try{if(y.type==="document"){let R=y.nodes.map(E=>C(E,this.helpers));await Promise.all(R)}else await C(y,this.helpers)}catch(R){throw this.handleError(R)}}}return this.processed=!0,this.stringify()}runOnRoot(y){this.result.lastPlugin=y;try{if(typeof y=="object"&&y.Once){if(this.result.root.type==="document"){let w=this.result.root.nodes.map(C=>y.Once(C,this.helpers));return d(w[0])?Promise.all(w):w}return y.Once(this.result.root,this.helpers)}else if(typeof y=="function")return y(this.result.root,this.result)}catch(w){throw this.handleError(w)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let y=this.result.opts,w=h;y.syntax&&(w=y.syntax.stringify),y.stringifier&&(w=y.stringifier),w.stringify&&(w=w.stringify);let R=new s(w,this.result.root,this.result.opts).generate();return this.result.css=R[0],this.result.map=R[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let y of this.plugins){let w=this.runOnRoot(y);if(d(w))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let y=this.result.root;for(;!y[p];)y[p]=!0,this.walkSync(y);if(this.listeners.OnceExit)if(y.type==="document")for(let w of y.nodes)this.visitSync(this.listeners.OnceExit,w);else this.visitSync(this.listeners.OnceExit,y)}return this.result}then(y,w){return this.async().then(y,w)}toString(){return this.css}visitSync(y,w){for(let[C,R]of y){this.result.lastPlugin=C;let E;try{E=R(w,this.helpers)}catch(M){throw this.handleError(M,w.proxyOf)}if(w.type!=="root"&&w.type!=="document"&&!w.parent)return!0;if(d(E))throw this.getAsyncError()}}visitTick(y){let w=y[y.length-1],{node:C,visitors:R}=w;if(C.type!=="root"&&C.type!=="document"&&!C.parent){y.pop();return}if(R.length>0&&w.visitorIndex<R.length){let[M,N]=R[w.visitorIndex];w.visitorIndex+=1,w.visitorIndex===R.length&&(w.visitors=[],w.visitorIndex=0),this.result.lastPlugin=M;try{return N(C.toProxy(),this.helpers)}catch(P){throw this.handleError(P,C)}}if(w.iterator!==0){let M=w.iterator,N;for(;N=C.nodes[C.indexes[M]];)if(C.indexes[M]+=1,!N[p]){N[p]=!0,y.push(g(N));return}w.iterator=0,delete C.indexes[M]}let E=w.events;for(;w.eventIndex<E.length;){let M=E[w.eventIndex];if(w.eventIndex+=1,M===n){C.nodes&&C.nodes.length&&(C[p]=!0,w.iterator=C.getIterator());return}else if(this.listeners[M]){w.visitors=this.listeners[M];return}}y.pop()}walkSync(y){y[p]=!0;let w=c(y);for(let C of w)if(C===n)y.nodes&&y.each(R=>{R[p]||this.walkSync(R)});else{let R=this.listeners[C];if(R&&this.visitSync(R,y.toProxy()))return}}warnings(){return this.sync().warnings()}get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}}return S.registerPostcss=x=>{b=x},Jt=S,S.default=S,a.registerLazyResult(S),t.registerLazyResult(S),Jt}var Yt,Us;function Bo(){if(Us)return Yt;Us=1;let e=Ji(),t=Hr();const s=Vr();let o=pt(),i=Xi();class a{constructor(p,m,f){m=m.toString(),this.stringified=!1,this._processor=p,this._css=m,this._opts=f,this._map=void 0;let r,u=o;this.result=new s(this._processor,r,this._opts),this.result.css=m;let l=this;Object.defineProperty(this.result,"root",{get(){return l.root}});let n=new e(u,r,this._opts,m);if(n.isMap()){let[d,c]=n.generate();d&&(this.result.css=d),c&&(this.result.map=c)}else n.clearAnnotation(),this.result.css=n.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(p){return this.async().catch(p)}finally(p){return this.async().then(p,p)}sync(){if(this.error)throw this.error;return this.result}then(p,m){return this.async().then(p,m)}toString(){return this._css}warnings(){return[]}get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let p,m=t;try{p=m(this._css,this._opts)}catch(f){this.error=f}if(this.error)throw this.error;return this._root=p,p}get[Symbol.toStringTag](){return"NoWorkResult"}}return Yt=a,a.default=a,Yt}var Zt,Ws;function Uo(){if(Ws)return Zt;Ws=1;let e=qr(),t=Ki(),s=Bo(),o=He();class i{constructor(h=[]){this.version="8.5.1",this.plugins=this.normalize(h)}normalize(h){let p=[];for(let m of h)if(m.postcss===!0?m=m():m.postcss&&(m=m.postcss),typeof m=="object"&&Array.isArray(m.plugins))p=p.concat(m.plugins);else if(typeof m=="object"&&m.postcssPlugin)p.push(m);else if(typeof m=="function")p.push(m);else if(!(typeof m=="object"&&(m.parse||m.stringify)))throw new Error(m+" is not a PostCSS plugin");return p}process(h,p={}){return!this.plugins.length&&!p.parser&&!p.stringifier&&!p.syntax?new s(this,h,p):new t(this,h,p)}use(h){return this.plugins=this.plugins.concat(this.normalize([h])),this}}return Zt=i,i.default=i,o.registerProcessor(i),e.registerProcessor(i),Zt}var Qt,zs;function en(){if(zs)return Qt;zs=1;let e=zr(),t=je(),s=Me(),o=Ur(),i=mt(),a=qr(),h=$o(),p=gt(),m=Ki(),f=Gi(),r=dt(),u=Hr(),l=Uo(),n=Vr(),d=He(),c=jr(),g=pt(),v=Qi();function b(...S){return S.length===1&&Array.isArray(S[0])&&(S=S[0]),new l(S)}return b.plugin=function(x,y){let w=!1;function C(...E){console&&console.warn&&!w&&(w=!0,console.warn(x+`: postcss.plugin was deprecated. Migration guide:
39
+ `),n=b.length-g):n+=b.length,S&&x!=="start"){let y=S.parent||{raws:{}};(!(S.type==="decl"||S.type==="atrule"&&!S.nodes)||S!==y.last||y.raws.semicolon)&&(S.source&&S.source.end?(c.source=this.sourcePath(S),c.original.line=S.source.end.line,c.original.column=S.source.end.column-1,c.generated.line=l,c.generated.column=n-2,this.map.addMapping(c)):(c.source=d,c.original.line=1,c.original.column=0,c.generated.line=l,c.generated.column=n-1,this.map.addMapping(c)))}})}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation!="undefined"?this.mapOpts.annotation:this.previous().length?this.previous().some(l=>l.annotation):!0}isInline(){if(typeof this.mapOpts.inline!="undefined")return this.mapOpts.inline;let l=this.mapOpts.annotation;return typeof l!="undefined"&&l!==!0?!1:this.previous().length?this.previous().some(n=>n.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(l=>l.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(l){if(this.mapOpts.absolute||l.charCodeAt(0)===60||/^\w+:\/\//.test(l))return l;let n=this.memoizedPaths.get(l);if(n)return n;let d=this.opts.to?e(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(d=e(s(d,this.mapOpts.annotation)));let c=t(d,l);return this.memoizedPaths.set(l,c),c}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(l=>{if(l.source&&l.source.input.map){let n=l.source.input.map;this.previousMaps.includes(n)||this.previousMaps.push(n)}});else{let l=new p(this.originalCSS,this.opts);l.map&&this.previousMaps.push(l.map)}return this.previousMaps}setSourcesContent(){let l={};if(this.root)this.root.walk(n=>{if(n.source){let d=n.source.input.from;if(d&&!l[d]){l[d]=!0;let c=this.usesFileUrls?this.toFileUrl(d):this.toUrl(this.path(d));this.map.setSourceContent(c,n.source.input.css)}}});else if(this.css){let n=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(n,this.css)}}sourcePath(l){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(l.source.input.from):this.toUrl(this.path(l.source.input.from))}toBase64(l){return Buffer?Buffer.from(l).toString("base64"):window.btoa(unescape(encodeURIComponent(l)))}toFileUrl(l){let n=this.memoizedFileURLs.get(l);if(n)return n;if(h){let d=h(l).toString();return this.memoizedFileURLs.set(l,d),d}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(l){let n=this.memoizedURLs.get(l);if(n)return n;o==="\\"&&(l=l.replace(/\\/g,"/"));let d=encodeURI(l).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(l,d),d}}return Wt=r,Wt}var zt,ks;function Yi(){if(ks)return zt;ks=1;const e=39,t=34,s=92,o=47,i=10,a=32,h=12,p=9,m=13,f=91,r=93,u=40,l=41,n=123,d=125,c=59,g=42,v=58,b=64,S=/[\t\n\f\r "#'()/;[\\\]{}]/g,x=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,y=/.[\r\n"'(/\\]/,w=/[\da-f]/i;return zt=function(R,A={}){let M=R.css.valueOf(),N=A.ignoreErrors,P,ee,te,O,Z,T,$,Q,H,be,me=M.length,I=0,oe=[],ae=[];function Ae(){return I}function ge(J){throw R.error("Unclosed "+J,I)}function he(){return ae.length===0&&I>=me}function ie(J){if(ae.length)return ae.pop();if(I>=me)return;let _=J?J.ignoreUnclosed:!1;switch(P=M.charCodeAt(I),P){case i:case a:case p:case m:case h:{O=I;do O+=1,P=M.charCodeAt(O);while(P===a||P===i||P===p||P===m||P===h);T=["space",M.slice(I,O)],I=O-1;break}case f:case r:case n:case d:case v:case c:case l:{let X=String.fromCharCode(P);T=[X,X,I];break}case u:{if(be=oe.length?oe.pop()[1]:"",H=M.charCodeAt(I+1),be==="url"&&H!==e&&H!==t&&H!==a&&H!==i&&H!==p&&H!==h&&H!==m){O=I;do{if($=!1,O=M.indexOf(")",O+1),O===-1)if(N||_){O=I;break}else ge("bracket");for(Q=O;M.charCodeAt(Q-1)===s;)Q-=1,$=!$}while($);T=["brackets",M.slice(I,O+1),I,O],I=O}else O=M.indexOf(")",I+1),ee=M.slice(I,O+1),O===-1||y.test(ee)?T=["(","(",I]:(T=["brackets",ee,I,O],I=O);break}case e:case t:{Z=P===e?"'":'"',O=I;do{if($=!1,O=M.indexOf(Z,O+1),O===-1)if(N||_){O=I+1;break}else ge("string");for(Q=O;M.charCodeAt(Q-1)===s;)Q-=1,$=!$}while($);T=["string",M.slice(I,O+1),I,O],I=O;break}case b:{S.lastIndex=I+1,S.test(M),S.lastIndex===0?O=M.length-1:O=S.lastIndex-2,T=["at-word",M.slice(I,O+1),I,O],I=O;break}case s:{for(O=I,te=!0;M.charCodeAt(O+1)===s;)O+=1,te=!te;if(P=M.charCodeAt(O+1),te&&P!==o&&P!==a&&P!==i&&P!==p&&P!==m&&P!==h&&(O+=1,w.test(M.charAt(O)))){for(;w.test(M.charAt(O+1));)O+=1;M.charCodeAt(O+1)===a&&(O+=1)}T=["word",M.slice(I,O+1),I,O],I=O;break}default:{P===o&&M.charCodeAt(I+1)===g?(O=M.indexOf("*/",I+2)+1,O===0&&(N||_?O=M.length:ge("comment")),T=["comment",M.slice(I,O+1),I,O],I=O):(x.lastIndex=I+1,x.test(M),x.lastIndex===0?O=M.length-1:O=x.lastIndex-2,T=["word",M.slice(I,O+1),I,O],oe.push(T),I=O);break}}return I++,T}function Re(J){ae.push(J)}return{back:Re,endOfFile:he,nextToken:ie,position:Ae}},zt}var qt,Ds;function Zi(){if(Ds)return qt;Ds=1;let e=zr(),t=je(),s=mt(),o=He(),i=jr(),a=Yi();const h={empty:!0,space:!0};function p(f){for(let r=f.length-1;r>=0;r--){let u=f[r],l=u[3]||u[2];if(l)return l}}class m{constructor(r){this.input=r,this.root=new o,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:r,start:{column:1,line:1,offset:0}}}atrule(r){let u=new e;u.name=r[1].slice(1),u.name===""&&this.unnamedAtrule(u,r),this.init(u,r[2]);let l,n,d,c=!1,g=!1,v=[],b=[];for(;!this.tokenizer.endOfFile();){if(r=this.tokenizer.nextToken(),l=r[0],l==="("||l==="["?b.push(l==="("?")":"]"):l==="{"&&b.length>0?b.push("}"):l===b[b.length-1]&&b.pop(),b.length===0)if(l===";"){u.source.end=this.getPosition(r[2]),u.source.end.offset++,this.semicolon=!0;break}else if(l==="{"){g=!0;break}else if(l==="}"){if(v.length>0){for(d=v.length-1,n=v[d];n&&n[0]==="space";)n=v[--d];n&&(u.source.end=this.getPosition(n[3]||n[2]),u.source.end.offset++)}this.end(r);break}else v.push(r);else v.push(r);if(this.tokenizer.endOfFile()){c=!0;break}}u.raws.between=this.spacesAndCommentsFromEnd(v),v.length?(u.raws.afterName=this.spacesAndCommentsFromStart(v),this.raw(u,"params",v),c&&(r=v[v.length-1],u.source.end=this.getPosition(r[3]||r[2]),u.source.end.offset++,this.spaces=u.raws.between,u.raws.between="")):(u.raws.afterName="",u.params=""),g&&(u.nodes=[],this.current=u)}checkMissedSemicolon(r){let u=this.colon(r);if(u===!1)return;let l=0,n;for(let d=u-1;d>=0&&(n=r[d],!(n[0]!=="space"&&(l+=1,l===2)));d--);throw this.input.error("Missed semicolon",n[0]==="word"?n[3]+1:n[2])}colon(r){let u=0,l,n,d;for(let[c,g]of r.entries()){if(n=g,d=n[0],d==="("&&(u+=1),d===")"&&(u-=1),u===0&&d===":")if(!l)this.doubleColon(n);else{if(l[0]==="word"&&l[1]==="progid")continue;return c}l=n}return!1}comment(r){let u=new t;this.init(u,r[2]),u.source.end=this.getPosition(r[3]||r[2]),u.source.end.offset++;let l=r[1].slice(2,-2);if(/^\s*$/.test(l))u.text="",u.raws.left=l,u.raws.right="";else{let n=l.match(/^(\s*)([^]*\S)(\s*)$/);u.text=n[2],u.raws.left=n[1],u.raws.right=n[3]}}createTokenizer(){this.tokenizer=a(this.input)}decl(r,u){let l=new s;this.init(l,r[0][2]);let n=r[r.length-1];for(n[0]===";"&&(this.semicolon=!0,r.pop()),l.source.end=this.getPosition(n[3]||n[2]||p(r)),l.source.end.offset++;r[0][0]!=="word";)r.length===1&&this.unknownWord(r),l.raws.before+=r.shift()[1];for(l.source.start=this.getPosition(r[0][2]),l.prop="";r.length;){let b=r[0][0];if(b===":"||b==="space"||b==="comment")break;l.prop+=r.shift()[1]}l.raws.between="";let d;for(;r.length;)if(d=r.shift(),d[0]===":"){l.raws.between+=d[1];break}else d[0]==="word"&&/\w/.test(d[1])&&this.unknownWord([d]),l.raws.between+=d[1];(l.prop[0]==="_"||l.prop[0]==="*")&&(l.raws.before+=l.prop[0],l.prop=l.prop.slice(1));let c=[],g;for(;r.length&&(g=r[0][0],!(g!=="space"&&g!=="comment"));)c.push(r.shift());this.precheckMissedSemicolon(r);for(let b=r.length-1;b>=0;b--){if(d=r[b],d[1].toLowerCase()==="!important"){l.important=!0;let S=this.stringFrom(r,b);S=this.spacesFromEnd(r)+S,S!==" !important"&&(l.raws.important=S);break}else if(d[1].toLowerCase()==="important"){let S=r.slice(0),x="";for(let y=b;y>0;y--){let w=S[y][0];if(x.trim().startsWith("!")&&w!=="space")break;x=S.pop()[1]+x}x.trim().startsWith("!")&&(l.important=!0,l.raws.important=x,r=S)}if(d[0]!=="space"&&d[0]!=="comment")break}r.some(b=>b[0]!=="space"&&b[0]!=="comment")&&(l.raws.between+=c.map(b=>b[1]).join(""),c=[]),this.raw(l,"value",c.concat(r),u),l.value.includes(":")&&!u&&this.checkMissedSemicolon(r)}doubleColon(r){throw this.input.error("Double colon",{offset:r[2]},{offset:r[2]+r[1].length})}emptyRule(r){let u=new i;this.init(u,r[2]),u.selector="",u.raws.between="",this.current=u}end(r){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(r[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(r)}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(r){if(this.spaces+=r[1],this.current.nodes){let u=this.current.nodes[this.current.nodes.length-1];u&&u.type==="rule"&&!u.raws.ownSemicolon&&(u.raws.ownSemicolon=this.spaces,this.spaces="")}}getPosition(r){let u=this.input.fromOffset(r);return{column:u.col,line:u.line,offset:r}}init(r,u){this.current.push(r),r.source={input:this.input,start:this.getPosition(u)},r.raws.before=this.spaces,this.spaces="",r.type!=="comment"&&(this.semicolon=!1)}other(r){let u=!1,l=null,n=!1,d=null,c=[],g=r[1].startsWith("--"),v=[],b=r;for(;b;){if(l=b[0],v.push(b),l==="("||l==="[")d||(d=b),c.push(l==="("?")":"]");else if(g&&n&&l==="{")d||(d=b),c.push("}");else if(c.length===0)if(l===";")if(n){this.decl(v,g);return}else break;else if(l==="{"){this.rule(v);return}else if(l==="}"){this.tokenizer.back(v.pop()),u=!0;break}else l===":"&&(n=!0);else l===c[c.length-1]&&(c.pop(),c.length===0&&(d=null));b=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(u=!0),c.length>0&&this.unclosedBracket(d),u&&n){if(!g)for(;v.length&&(b=v[v.length-1][0],!(b!=="space"&&b!=="comment"));)this.tokenizer.back(v.pop());this.decl(v,g)}else this.unknownWord(v)}parse(){let r;for(;!this.tokenizer.endOfFile();)switch(r=this.tokenizer.nextToken(),r[0]){case"space":this.spaces+=r[1];break;case";":this.freeSemicolon(r);break;case"}":this.end(r);break;case"comment":this.comment(r);break;case"at-word":this.atrule(r);break;case"{":this.emptyRule(r);break;default:this.other(r);break}this.endFile()}precheckMissedSemicolon(){}raw(r,u,l,n){let d,c,g=l.length,v="",b=!0,S,x;for(let y=0;y<g;y+=1)d=l[y],c=d[0],c==="space"&&y===g-1&&!n?b=!1:c==="comment"?(x=l[y-1]?l[y-1][0]:"empty",S=l[y+1]?l[y+1][0]:"empty",!h[x]&&!h[S]?v.slice(-1)===","?b=!1:v+=d[1]:b=!1):v+=d[1];if(!b){let y=l.reduce((w,C)=>w+C[1],"");r.raws[u]={raw:y,value:v}}r[u]=v}rule(r){r.pop();let u=new i;this.init(u,r[0][2]),u.raws.between=this.spacesAndCommentsFromEnd(r),this.raw(u,"selector",r),this.current=u}spacesAndCommentsFromEnd(r){let u,l="";for(;r.length&&(u=r[r.length-1][0],!(u!=="space"&&u!=="comment"));)l=r.pop()[1]+l;return l}spacesAndCommentsFromStart(r){let u,l="";for(;r.length&&(u=r[0][0],!(u!=="space"&&u!=="comment"));)l+=r.shift()[1];return l}spacesFromEnd(r){let u,l="";for(;r.length&&(u=r[r.length-1][0],u==="space");)l=r.pop()[1]+l;return l}stringFrom(r,u){let l="";for(let n=u;n<r.length;n++)l+=r[n][1];return r.splice(u,r.length-u),l}unclosedBlock(){let r=this.current.source.start;throw this.input.error("Unclosed block",r.line,r.column)}unclosedBracket(r){throw this.input.error("Unclosed bracket",{offset:r[2]},{offset:r[2]+1})}unexpectedClose(r){throw this.input.error("Unexpected }",{offset:r[2]},{offset:r[2]+1})}unknownWord(r){throw this.input.error("Unknown word",{offset:r[0][2]},{offset:r[0][2]+r[0][1].length})}unnamedAtrule(r,u){throw this.input.error("At-rule without name",{offset:u[2]},{offset:u[2]+u[1].length})}}return qt=m,qt}var jt,Ls;function Hr(){if(Ls)return jt;Ls=1;let e=Me(),t=gt(),s=Zi();function o(i,a){let h=new t(i,a),p=new s(h);try{p.parse()}catch(m){throw m}return p.root}return jt=o,o.default=o,e.registerParse(o),jt}var Ht,Ts;function Qi(){if(Ts)return Ht;Ts=1;class e{constructor(s,o={}){if(this.type="warning",this.text=s,o.node&&o.node.source){let i=o.node.rangeBy(o);this.line=i.start.line,this.column=i.start.column,this.endLine=i.end.line,this.endColumn=i.end.column}for(let i in o)this[i]=o[i]}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 Ht=e,e.default=e,Ht}var Vt,Fs;function Vr(){if(Fs)return Vt;Fs=1;let e=Qi();class t{constructor(o,i,a){this.processor=o,this.messages=[],this.root=i,this.opts=a,this.css=void 0,this.map=void 0}toString(){return this.css}warn(o,i={}){i.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(i.plugin=this.lastPlugin.postcssPlugin);let a=new e(o,i);return this.messages.push(a),a}warnings(){return this.messages.filter(o=>o.type==="warning")}get content(){return this.css}}return Vt=t,t.default=t,Vt}var Gt,Bs;function Xi(){if(Bs)return Gt;Bs=1;let e={};return Gt=function(s){e[s]||(e[s]=!0,typeof console!="undefined"&&console.warn&&console.warn(s))},Gt}var Jt,$s;function Ki(){if($s)return Jt;$s=1;let e=Me(),t=qr(),s=Ji(),o=Hr(),i=Vr(),a=He(),h=pt(),{isClean:p,my:m}=Wr(),f=Xi();const r={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},u={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},l={Once:!0,postcssPlugin:!0,prepare:!0},n=0;function d(x){return typeof x=="object"&&typeof x.then=="function"}function c(x){let y=!1,w=r[x.type];return x.type==="decl"?y=x.prop.toLowerCase():x.type==="atrule"&&(y=x.name.toLowerCase()),y&&x.append?[w,w+"-"+y,n,w+"Exit",w+"Exit-"+y]:y?[w,w+"-"+y,w+"Exit",w+"Exit-"+y]:x.append?[w,n,w+"Exit"]:[w,w+"Exit"]}function g(x){let y;return x.type==="document"?y=["Document",n,"DocumentExit"]:x.type==="root"?y=["Root",n,"RootExit"]:y=c(x),{eventIndex:0,events:y,iterator:0,node:x,visitorIndex:0,visitors:[]}}function v(x){return x[p]=!1,x.nodes&&x.nodes.forEach(y=>v(y)),x}let b={};class S{constructor(y,w,C){this.stringified=!1,this.processed=!1;let R;if(typeof w=="object"&&w!==null&&(w.type==="root"||w.type==="document"))R=v(w);else if(w instanceof S||w instanceof i)R=v(w.root),w.map&&(typeof C.map=="undefined"&&(C.map={}),C.map.inline||(C.map.inline=!1),C.map.prev=w.map);else{let A=o;C.syntax&&(A=C.syntax.parse),C.parser&&(A=C.parser),A.parse&&(A=A.parse);try{R=A(w,C)}catch(M){this.processed=!0,this.error=M}R&&!R[m]&&e.rebuild(R)}this.result=new i(y,R,C),this.helpers=le(D({},b),{postcss:b,result:this.result}),this.plugins=this.processor.plugins.map(A=>typeof A=="object"&&A.prepare?D(D({},A),A.prepare(this.result)):A)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(y){return this.async().catch(y)}finally(y){return this.async().then(y,y)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(y,w){let C=this.result.lastPlugin;try{w&&w.addToError(y),this.error=y,y.name==="CssSyntaxError"&&!y.plugin?(y.plugin=C.postcssPlugin,y.setMessage()):C.postcssVersion}catch(R){console&&console.error&&console.error(R)}return y}prepareVisitors(){this.listeners={};let y=(w,C,R)=>{this.listeners[C]||(this.listeners[C]=[]),this.listeners[C].push([w,R])};for(let w of this.plugins)if(typeof w=="object")for(let C in w){if(!u[C]&&/^[A-Z]/.test(C))throw new Error(`Unknown event ${C} in ${w.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!l[C])if(typeof w[C]=="object")for(let R in w[C])R==="*"?y(w,C,w[C][R]):y(w,C+"-"+R.toLowerCase(),w[C][R]);else typeof w[C]=="function"&&y(w,C,w[C])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let y=0;y<this.plugins.length;y++){let w=this.plugins[y],C=this.runOnRoot(w);if(d(C))try{await C}catch(R){throw this.handleError(R)}}if(this.prepareVisitors(),this.hasListener){let y=this.result.root;for(;!y[p];){y[p]=!0;let w=[g(y)];for(;w.length>0;){let C=this.visitTick(w);if(d(C))try{await C}catch(R){let A=w[w.length-1].node;throw this.handleError(R,A)}}}if(this.listeners.OnceExit)for(let[w,C]of this.listeners.OnceExit){this.result.lastPlugin=w;try{if(y.type==="document"){let R=y.nodes.map(A=>C(A,this.helpers));await Promise.all(R)}else await C(y,this.helpers)}catch(R){throw this.handleError(R)}}}return this.processed=!0,this.stringify()}runOnRoot(y){this.result.lastPlugin=y;try{if(typeof y=="object"&&y.Once){if(this.result.root.type==="document"){let w=this.result.root.nodes.map(C=>y.Once(C,this.helpers));return d(w[0])?Promise.all(w):w}return y.Once(this.result.root,this.helpers)}else if(typeof y=="function")return y(this.result.root,this.result)}catch(w){throw this.handleError(w)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let y=this.result.opts,w=h;y.syntax&&(w=y.syntax.stringify),y.stringifier&&(w=y.stringifier),w.stringify&&(w=w.stringify);let R=new s(w,this.result.root,this.result.opts).generate();return this.result.css=R[0],this.result.map=R[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let y of this.plugins){let w=this.runOnRoot(y);if(d(w))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let y=this.result.root;for(;!y[p];)y[p]=!0,this.walkSync(y);if(this.listeners.OnceExit)if(y.type==="document")for(let w of y.nodes)this.visitSync(this.listeners.OnceExit,w);else this.visitSync(this.listeners.OnceExit,y)}return this.result}then(y,w){return this.async().then(y,w)}toString(){return this.css}visitSync(y,w){for(let[C,R]of y){this.result.lastPlugin=C;let A;try{A=R(w,this.helpers)}catch(M){throw this.handleError(M,w.proxyOf)}if(w.type!=="root"&&w.type!=="document"&&!w.parent)return!0;if(d(A))throw this.getAsyncError()}}visitTick(y){let w=y[y.length-1],{node:C,visitors:R}=w;if(C.type!=="root"&&C.type!=="document"&&!C.parent){y.pop();return}if(R.length>0&&w.visitorIndex<R.length){let[M,N]=R[w.visitorIndex];w.visitorIndex+=1,w.visitorIndex===R.length&&(w.visitors=[],w.visitorIndex=0),this.result.lastPlugin=M;try{return N(C.toProxy(),this.helpers)}catch(P){throw this.handleError(P,C)}}if(w.iterator!==0){let M=w.iterator,N;for(;N=C.nodes[C.indexes[M]];)if(C.indexes[M]+=1,!N[p]){N[p]=!0,y.push(g(N));return}w.iterator=0,delete C.indexes[M]}let A=w.events;for(;w.eventIndex<A.length;){let M=A[w.eventIndex];if(w.eventIndex+=1,M===n){C.nodes&&C.nodes.length&&(C[p]=!0,w.iterator=C.getIterator());return}else if(this.listeners[M]){w.visitors=this.listeners[M];return}}y.pop()}walkSync(y){y[p]=!0;let w=c(y);for(let C of w)if(C===n)y.nodes&&y.each(R=>{R[p]||this.walkSync(R)});else{let R=this.listeners[C];if(R&&this.visitSync(R,y.toProxy()))return}}warnings(){return this.sync().warnings()}get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}}return S.registerPostcss=x=>{b=x},Jt=S,S.default=S,a.registerLazyResult(S),t.registerLazyResult(S),Jt}var Yt,Us;function $o(){if(Us)return Yt;Us=1;let e=Ji(),t=Hr();const s=Vr();let o=pt(),i=Xi();class a{constructor(p,m,f){m=m.toString(),this.stringified=!1,this._processor=p,this._css=m,this._opts=f,this._map=void 0;let r,u=o;this.result=new s(this._processor,r,this._opts),this.result.css=m;let l=this;Object.defineProperty(this.result,"root",{get(){return l.root}});let n=new e(u,r,this._opts,m);if(n.isMap()){let[d,c]=n.generate();d&&(this.result.css=d),c&&(this.result.map=c)}else n.clearAnnotation(),this.result.css=n.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(p){return this.async().catch(p)}finally(p){return this.async().then(p,p)}sync(){if(this.error)throw this.error;return this.result}then(p,m){return this.async().then(p,m)}toString(){return this._css}warnings(){return[]}get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let p,m=t;try{p=m(this._css,this._opts)}catch(f){this.error=f}if(this.error)throw this.error;return this._root=p,p}get[Symbol.toStringTag](){return"NoWorkResult"}}return Yt=a,a.default=a,Yt}var Zt,Ws;function Uo(){if(Ws)return Zt;Ws=1;let e=qr(),t=Ki(),s=$o(),o=He();class i{constructor(h=[]){this.version="8.5.1",this.plugins=this.normalize(h)}normalize(h){let p=[];for(let m of h)if(m.postcss===!0?m=m():m.postcss&&(m=m.postcss),typeof m=="object"&&Array.isArray(m.plugins))p=p.concat(m.plugins);else if(typeof m=="object"&&m.postcssPlugin)p.push(m);else if(typeof m=="function")p.push(m);else if(!(typeof m=="object"&&(m.parse||m.stringify)))throw new Error(m+" is not a PostCSS plugin");return p}process(h,p={}){return!this.plugins.length&&!p.parser&&!p.stringifier&&!p.syntax?new s(this,h,p):new t(this,h,p)}use(h){return this.plugins=this.plugins.concat(this.normalize([h])),this}}return Zt=i,i.default=i,o.registerProcessor(i),e.registerProcessor(i),Zt}var Qt,zs;function en(){if(zs)return Qt;zs=1;let e=zr(),t=je(),s=Me(),o=Ur(),i=mt(),a=qr(),h=Bo(),p=gt(),m=Ki(),f=Gi(),r=dt(),u=Hr(),l=Uo(),n=Vr(),d=He(),c=jr(),g=pt(),v=Qi();function b(...S){return S.length===1&&Array.isArray(S[0])&&(S=S[0]),new l(S)}return b.plugin=function(x,y){let w=!1;function C(...A){console&&console.warn&&!w&&(w=!0,console.warn(x+`: postcss.plugin was deprecated. Migration guide:
40
40
  https://evilmartians.com/chronicles/postcss-8-plugin-migration`),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(x+`: \u91CC\u9762 postcss.plugin \u88AB\u5F03\u7528. \u8FC1\u79FB\u6307\u5357:
41
- https://www.w3ctech.com/topic/2226`));let M=y(...E);return M.postcssPlugin=x,M.postcssVersion=new l().version,M}let R;return Object.defineProperty(C,"postcss",{get(){return R||(R=C()),R}}),C.process=function(E,M,N){return b([C(N)]).process(E,M)},C},b.stringify=g,b.parse=u,b.fromJSON=h,b.list=f,b.comment=S=>new t(S),b.atRule=S=>new e(S),b.decl=S=>new i(S),b.rule=S=>new c(S),b.root=S=>new d(S),b.document=S=>new a(S),b.CssSyntaxError=o,b.Declaration=i,b.Container=s,b.Processor=l,b.Document=a,b.Comment=t,b.Warning=v,b.AtRule=e,b.Result=n,b.Input=p,b.Rule=c,b.Root=d,b.Node=r,m.registerPostcss(b),Qt=b,b.default=b,Qt}var Xt,qs;function Wo(){if(qs)return Xt;qs=1;let e=je(),t=Zi(),s=Yi();class o extends t{checkMissedSemicolon(){}comment(a){let h=new e;this.init(h,a[2]);let p=this.input.fromOffset(a[3])||this.input.fromOffset(this.input.css.length-1);h.source.end={column:p.col,line:p.line,offset:a[3]+1};let m=a[1].slice(2);if(m.slice(-2)==="*/"&&(m=m.slice(0,-2)),/^\s*$/.test(m))h.text="",h.raws.left=m,h.raws.right="";else{let f=m.match(/^(\s*)([^]*\S)(\s*)$/);h.text=f[2],h.raws.left=f[1],h.raws.right=f[3]}}createTokenizer(){this.tokenizer=s(this.input,{ignoreErrors:!0})}decl(a){a.length>1&&a.some(h=>h[0]==="word")&&super.decl(a)}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(a){let h=this.colon(a);if(h===!1)return;let p,m;for(p=h-1;p>=0&&a[p][0]!=="word";p--);if(p===0||p<0)return;for(m=p-1;m>=0;m--)if(a[m][0]!=="space"){m+=1;break}let f=a.slice(p),r=a.slice(m,p);a.splice(m,a.length-m),this.spaces=r.map(u=>u[1]).join(""),this.decl(f)}unclosedBracket(){}unexpectedClose(){this.current.raws.after+="}"}unknownWord(a){this.spaces+=a.map(h=>h[1]).join("")}unnamedAtrule(a){a.name=""}}return Xt=o,Xt}var Kt,js;function zo(){if(js)return Kt;js=1;let{Input:e}=en(),t=Wo();return Kt=function(o,i){let a=new e(o,i),h=new t(a);return h.parse(),h.root},Kt}zo();var qo=en();const z=_o(qo);z.stringify;z.fromJSON;z.plugin;z.parse;z.list;z.document;z.comment;z.atRule;z.rule;z.decl;z.root;z.CssSyntaxError;z.Declaration;z.Container;z.Processor;z.Document;z.Comment;z.Warning;z.AtRule;z.Result;z.Input;z.Rule;z.Root;z.Node;var jo=Object.defineProperty,Ho=(e,t,s)=>t in e?jo(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s,ue=(e,t,s)=>Ho(e,typeof t!="symbol"?t+"":t,s);function Vo(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Go(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var s=function o(){return this instanceof o?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};s.prototype=t.prototype}else s={};return Object.defineProperty(s,"__esModule",{value:!0}),Object.keys(e).forEach(function(o){var i=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(s,o,i.get?i:{enumerable:!0,get:function(){return e[o]}})}),s}var Ke={exports:{}},Hs;function Jo(){if(Hs)return Ke.exports;Hs=1;var e=String,t=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 Ke.exports=t(),Ke.exports.createColors=t,Ke.exports}const Yo={},Zo=Object.freeze(Object.defineProperty({__proto__:null,default:Yo},Symbol.toStringTag,{value:"Module"})),de=Go(Zo);var er,Vs;function Gr(){if(Vs)return er;Vs=1;let e=Jo(),t=de;class s extends Error{constructor(i,a,h,p,m,f){super(i),this.name="CssSyntaxError",this.reason=i,m&&(this.file=m),p&&(this.source=p),f&&(this.plugin=f),typeof a!="undefined"&&typeof h!="undefined"&&(typeof a=="number"?(this.line=a,this.column=h):(this.line=a.line,this.column=a.column,this.endLine=h.line,this.endColumn=h.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,s)}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(i){if(!this.source)return"";let a=this.source;i==null&&(i=e.isColorSupported);let h=n=>n,p=n=>n,m=n=>n;if(i){let{bold:n,gray:d,red:c}=e.createColors(!0);p=g=>n(c(g)),h=g=>d(g),t&&(m=g=>t(g))}let f=a.split(/\r?\n/),r=Math.max(this.line-3,0),u=Math.min(this.line+2,f.length),l=String(u).length;return f.slice(r,u).map((n,d)=>{let c=r+1+d,g=" "+(" "+c).slice(-l)+" | ";if(c===this.line){if(n.length>160){let b=20,S=Math.max(0,this.column-b),x=Math.max(this.column+b,this.endColumn+b),y=n.slice(S,x),w=h(g.replace(/\d/g," "))+n.slice(0,Math.min(this.column-1,b-1)).replace(/[^\t]/g," ");return p(">")+h(g)+m(y)+`
41
+ https://www.w3ctech.com/topic/2226`));let M=y(...A);return M.postcssPlugin=x,M.postcssVersion=new l().version,M}let R;return Object.defineProperty(C,"postcss",{get(){return R||(R=C()),R}}),C.process=function(A,M,N){return b([C(N)]).process(A,M)},C},b.stringify=g,b.parse=u,b.fromJSON=h,b.list=f,b.comment=S=>new t(S),b.atRule=S=>new e(S),b.decl=S=>new i(S),b.rule=S=>new c(S),b.root=S=>new d(S),b.document=S=>new a(S),b.CssSyntaxError=o,b.Declaration=i,b.Container=s,b.Processor=l,b.Document=a,b.Comment=t,b.Warning=v,b.AtRule=e,b.Result=n,b.Input=p,b.Rule=c,b.Root=d,b.Node=r,m.registerPostcss(b),Qt=b,b.default=b,Qt}var Xt,qs;function Wo(){if(qs)return Xt;qs=1;let e=je(),t=Zi(),s=Yi();class o extends t{checkMissedSemicolon(){}comment(a){let h=new e;this.init(h,a[2]);let p=this.input.fromOffset(a[3])||this.input.fromOffset(this.input.css.length-1);h.source.end={column:p.col,line:p.line,offset:a[3]+1};let m=a[1].slice(2);if(m.slice(-2)==="*/"&&(m=m.slice(0,-2)),/^\s*$/.test(m))h.text="",h.raws.left=m,h.raws.right="";else{let f=m.match(/^(\s*)([^]*\S)(\s*)$/);h.text=f[2],h.raws.left=f[1],h.raws.right=f[3]}}createTokenizer(){this.tokenizer=s(this.input,{ignoreErrors:!0})}decl(a){a.length>1&&a.some(h=>h[0]==="word")&&super.decl(a)}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(a){let h=this.colon(a);if(h===!1)return;let p,m;for(p=h-1;p>=0&&a[p][0]!=="word";p--);if(p===0||p<0)return;for(m=p-1;m>=0;m--)if(a[m][0]!=="space"){m+=1;break}let f=a.slice(p),r=a.slice(m,p);a.splice(m,a.length-m),this.spaces=r.map(u=>u[1]).join(""),this.decl(f)}unclosedBracket(){}unexpectedClose(){this.current.raws.after+="}"}unknownWord(a){this.spaces+=a.map(h=>h[1]).join("")}unnamedAtrule(a){a.name=""}}return Xt=o,Xt}var Kt,js;function zo(){if(js)return Kt;js=1;let{Input:e}=en(),t=Wo();return Kt=function(o,i){let a=new e(o,i),h=new t(a);return h.parse(),h.root},Kt}zo();var qo=en();const z=_o(qo);z.stringify;z.fromJSON;z.plugin;z.parse;z.list;z.document;z.comment;z.atRule;z.rule;z.decl;z.root;z.CssSyntaxError;z.Declaration;z.Container;z.Processor;z.Document;z.Comment;z.Warning;z.AtRule;z.Result;z.Input;z.Rule;z.Root;z.Node;var jo=Object.defineProperty,Ho=(e,t,s)=>t in e?jo(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s,ue=(e,t,s)=>Ho(e,typeof t!="symbol"?t+"":t,s);function Vo(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Go(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var s=function o(){return this instanceof o?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};s.prototype=t.prototype}else s={};return Object.defineProperty(s,"__esModule",{value:!0}),Object.keys(e).forEach(function(o){var i=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(s,o,i.get?i:{enumerable:!0,get:function(){return e[o]}})}),s}var Ke={exports:{}},Hs;function Jo(){if(Hs)return Ke.exports;Hs=1;var e=String,t=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 Ke.exports=t(),Ke.exports.createColors=t,Ke.exports}const Yo={},Zo=Object.freeze(Object.defineProperty({__proto__:null,default:Yo},Symbol.toStringTag,{value:"Module"})),de=Go(Zo);var er,Vs;function Gr(){if(Vs)return er;Vs=1;let e=Jo(),t=de;class s extends Error{constructor(i,a,h,p,m,f){super(i),this.name="CssSyntaxError",this.reason=i,m&&(this.file=m),p&&(this.source=p),f&&(this.plugin=f),typeof a!="undefined"&&typeof h!="undefined"&&(typeof a=="number"?(this.line=a,this.column=h):(this.line=a.line,this.column=a.column,this.endLine=h.line,this.endColumn=h.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,s)}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(i){if(!this.source)return"";let a=this.source;i==null&&(i=e.isColorSupported);let h=n=>n,p=n=>n,m=n=>n;if(i){let{bold:n,gray:d,red:c}=e.createColors(!0);p=g=>n(c(g)),h=g=>d(g),t&&(m=g=>t(g))}let f=a.split(/\r?\n/),r=Math.max(this.line-3,0),u=Math.min(this.line+2,f.length),l=String(u).length;return f.slice(r,u).map((n,d)=>{let c=r+1+d,g=" "+(" "+c).slice(-l)+" | ";if(c===this.line){if(n.length>160){let b=20,S=Math.max(0,this.column-b),x=Math.max(this.column+b,this.endColumn+b),y=n.slice(S,x),w=h(g.replace(/\d/g," "))+n.slice(0,Math.min(this.column-1,b-1)).replace(/[^\t]/g," ");return p(">")+h(g)+m(y)+`
42
42
  `+w+p("^")}let v=h(g.replace(/\d/g," "))+n.slice(0,this.column-1).replace(/[^\t]/g," ");return p(">")+h(g)+m(n)+`
43
43
  `+v+p("^")}return" "+h(g)+m(n)}).join(`
44
44
  `)}toString(){let i=this.showSourceCode();return i&&(i=`
@@ -57,17 +57,17 @@ https://www.w3ctech.com/topic/2226`));let M=y(...E);return M.postcssPlugin=x,M.p
57
57
  `)&&(a=a.replace(/[^\n]+$/,"")),!1}),a&&(a=a.replace(/\S/g,"")),a}rawColon(i){let a;return i.walkDecls(h=>{if(typeof h.raws.between!="undefined")return a=h.raws.between.replace(/[^\s:]/g,""),!1}),a}rawEmptyBody(i){let a;return i.walk(h=>{if(h.nodes&&h.nodes.length===0&&(a=h.raws.after,typeof a!="undefined"))return!1}),a}rawIndent(i){if(i.raws.indent)return i.raws.indent;let a;return i.walk(h=>{let p=h.parent;if(p&&p!==i&&p.parent&&p.parent===i&&typeof h.raws.before!="undefined"){let m=h.raws.before.split(`
58
58
  `);return a=m[m.length-1],a=a.replace(/\S/g,""),!1}}),a}rawSemicolon(i){let a;return i.walk(h=>{if(h.nodes&&h.nodes.length&&h.last.type==="decl"&&(a=h.raws.semicolon,typeof a!="undefined"))return!1}),a}rawValue(i,a){let h=i[a],p=i.raws[a];return p&&p.value===h?p.raw:h}root(i){this.body(i),i.raws.after&&this.builder(i.raws.after)}rule(i){this.block(i,this.rawValue(i,"selector")),i.raws.ownSemicolon&&this.builder(i.raws.ownSemicolon,i,"end")}stringify(i,a){if(!this[i.type])throw new Error("Unknown AST node type "+i.type+". Maybe you need to change PostCSS stringifier.");this[i.type](i,a)}}return tr=s,s.default=s,tr}var rr,Js;function yt(){if(Js)return rr;Js=1;let e=tn();function t(s,o){new e(o).stringify(s)}return rr=t,t.default=t,rr}var et={},Ys;function Jr(){return Ys||(Ys=1,et.isClean=Symbol("isClean"),et.my=Symbol("my")),et}var sr,Zs;function wt(){if(Zs)return sr;Zs=1;let e=Gr(),t=tn(),s=yt(),{isClean:o,my:i}=Jr();function a(m,f){let r=new m.constructor;for(let u in m){if(!Object.prototype.hasOwnProperty.call(m,u)||u==="proxyCache")continue;let l=m[u],n=typeof l;u==="parent"&&n==="object"?f&&(r[u]=f):u==="source"?r[u]=l:Array.isArray(l)?r[u]=l.map(d=>a(d,r)):(n==="object"&&l!==null&&(l=a(l)),r[u]=l)}return r}function h(m,f){if(f&&typeof f.offset!="undefined")return f.offset;let r=1,u=1,l=0;for(let n=0;n<m.length;n++){if(u===f.line&&r===f.column){l=n;break}m[n]===`
59
59
  `?(r=1,u+=1):r+=1}return l}class p{constructor(f={}){this.raws={},this[o]=!1,this[i]=!0;for(let r in f)if(r==="nodes"){this.nodes=[];for(let u of f[r])typeof u.clone=="function"?this.append(u.clone()):this.append(u)}else this[r]=f[r]}addToError(f){if(f.postcssNode=this,f.stack&&this.source&&/\n\s{4}at /.test(f.stack)){let r=this.source;f.stack=f.stack.replace(/\n\s{4}at /,`$&${r.input.from}:${r.start.line}:${r.start.column}$&`)}return f}after(f){return this.parent.insertAfter(this,f),this}assign(f={}){for(let r in f)this[r]=f[r];return this}before(f){return this.parent.insertBefore(this,f),this}cleanRaws(f){delete this.raws.before,delete this.raws.after,f||delete this.raws.between}clone(f={}){let r=a(this);for(let u in f)r[u]=f[u];return r}cloneAfter(f={}){let r=this.clone(f);return this.parent.insertAfter(this,r),r}cloneBefore(f={}){let r=this.clone(f);return this.parent.insertBefore(this,r),r}error(f,r={}){if(this.source){let{end:u,start:l}=this.rangeBy(r);return this.source.input.error(f,{column:l.column,line:l.line},{column:u.column,line:u.line},r)}return new e(f)}getProxyProcessor(){return{get(f,r){return r==="proxyOf"?f:r==="root"?()=>f.root().toProxy():f[r]},set(f,r,u){return f[r]===u||(f[r]=u,(r==="prop"||r==="value"||r==="name"||r==="params"||r==="important"||r==="text")&&f.markDirty()),!0}}}markClean(){this[o]=!0}markDirty(){if(this[o]){this[o]=!1;let f=this;for(;f=f.parent;)f[o]=!1}}next(){if(!this.parent)return;let f=this.parent.index(this);return this.parent.nodes[f+1]}positionBy(f){let r=this.source.start;if(f.index)r=this.positionInside(f.index);else if(f.word){let u="document"in this.source.input?this.source.input.document:this.source.input.css,n=u.slice(h(u,this.source.start),h(u,this.source.end)).indexOf(f.word);n!==-1&&(r=this.positionInside(n))}return r}positionInside(f){let r=this.source.start.column,u=this.source.start.line,l="document"in this.source.input?this.source.input.document:this.source.input.css,n=h(l,this.source.start),d=n+f;for(let c=n;c<d;c++)l[c]===`
60
- `?(r=1,u+=1):r+=1;return{column:r,line:u}}prev(){if(!this.parent)return;let f=this.parent.index(this);return this.parent.nodes[f-1]}rangeBy(f){let r={column:this.source.start.column,line:this.source.start.line},u=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:r.column+1,line:r.line};if(f.word){let l="document"in this.source.input?this.source.input.document:this.source.input.css,d=l.slice(h(l,this.source.start),h(l,this.source.end)).indexOf(f.word);d!==-1&&(r=this.positionInside(d),u=this.positionInside(d+f.word.length))}else f.start?r={column:f.start.column,line:f.start.line}:f.index&&(r=this.positionInside(f.index)),f.end?u={column:f.end.column,line:f.end.line}:typeof f.endIndex=="number"?u=this.positionInside(f.endIndex):f.index&&(u=this.positionInside(f.index+1));return(u.line<r.line||u.line===r.line&&u.column<=r.column)&&(u={column:r.column+1,line:r.line}),{end:u,start:r}}raw(f,r){return new t().raw(this,f,r)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...f){if(this.parent){let r=this,u=!1;for(let l of f)l===this?u=!0:u?(this.parent.insertAfter(r,l),r=l):this.parent.insertBefore(r,l);u||this.remove()}return this}root(){let f=this;for(;f.parent&&f.parent.type!=="document";)f=f.parent;return f}toJSON(f,r){let u={},l=r==null;r=r||new Map;let n=0;for(let d in this){if(!Object.prototype.hasOwnProperty.call(this,d)||d==="parent"||d==="proxyCache")continue;let c=this[d];if(Array.isArray(c))u[d]=c.map(g=>typeof g=="object"&&g.toJSON?g.toJSON(null,r):g);else if(typeof c=="object"&&c.toJSON)u[d]=c.toJSON(null,r);else if(d==="source"){let g=r.get(c.input);g==null&&(g=n,r.set(c.input,n),n++),u[d]={end:c.end,inputId:g,start:c.start}}else u[d]=c}return l&&(u.inputs=[...r.keys()].map(d=>d.toJSON())),u}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(f=s){f.stringify&&(f=f.stringify);let r="";return f(this,u=>{r+=u}),r}warn(f,r,u){let l={node:this};for(let n in u)l[n]=u[n];return f.warn(r,l)}get proxyOf(){return this}}return sr=p,p.default=p,sr}var ir,Qs;function Ve(){if(Qs)return ir;Qs=1;let e=wt();class t extends e{constructor(o){super(o),this.type="comment"}}return ir=t,t.default=t,ir}var nr,Xs;function bt(){if(Xs)return nr;Xs=1;let e=wt();class t extends e{constructor(o){o&&typeof o.value!="undefined"&&typeof o.value!="string"&&(o=le(D({},o),{value:String(o.value)})),super(o),this.type="decl"}get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}}return nr=t,t.default=t,nr}var or,Ks;function Ie(){if(Ks)return or;Ks=1;let e=Ve(),t=bt(),s=wt(),{isClean:o,my:i}=Jr(),a,h,p,m;function f(l){return l.map(n=>(n.nodes&&(n.nodes=f(n.nodes)),delete n.source,n))}function r(l){if(l[o]=!1,l.proxyOf.nodes)for(let n of l.proxyOf.nodes)r(n)}class u extends s{append(...n){for(let d of n){let c=this.normalize(d,this.last);for(let g of c)this.proxyOf.nodes.push(g)}return this.markDirty(),this}cleanRaws(n){if(super.cleanRaws(n),this.nodes)for(let d of this.nodes)d.cleanRaws(n)}each(n){if(!this.proxyOf.nodes)return;let d=this.getIterator(),c,g;for(;this.indexes[d]<this.proxyOf.nodes.length&&(c=this.indexes[d],g=n(this.proxyOf.nodes[c],c),g!==!1);)this.indexes[d]+=1;return delete this.indexes[d],g}every(n){return this.nodes.every(n)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let n=this.lastEach;return this.indexes[n]=0,n}getProxyProcessor(){return{get(n,d){return d==="proxyOf"?n:n[d]?d==="each"||typeof d=="string"&&d.startsWith("walk")?(...c)=>n[d](...c.map(g=>typeof g=="function"?(v,b)=>g(v.toProxy(),b):g)):d==="every"||d==="some"?c=>n[d]((g,...v)=>c(g.toProxy(),...v)):d==="root"?()=>n.root().toProxy():d==="nodes"?n.nodes.map(c=>c.toProxy()):d==="first"||d==="last"?n[d].toProxy():n[d]:n[d]},set(n,d,c){return n[d]===c||(n[d]=c,(d==="name"||d==="params"||d==="selector")&&n.markDirty()),!0}}}index(n){return typeof n=="number"?n:(n.proxyOf&&(n=n.proxyOf),this.proxyOf.nodes.indexOf(n))}insertAfter(n,d){let c=this.index(n),g=this.normalize(d,this.proxyOf.nodes[c]).reverse();c=this.index(n);for(let b of g)this.proxyOf.nodes.splice(c+1,0,b);let v;for(let b in this.indexes)v=this.indexes[b],c<v&&(this.indexes[b]=v+g.length);return this.markDirty(),this}insertBefore(n,d){let c=this.index(n),g=c===0?"prepend":!1,v=this.normalize(d,this.proxyOf.nodes[c],g).reverse();c=this.index(n);for(let S of v)this.proxyOf.nodes.splice(c,0,S);let b;for(let S in this.indexes)b=this.indexes[S],c<=b&&(this.indexes[S]=b+v.length);return this.markDirty(),this}normalize(n,d){if(typeof n=="string")n=f(h(n).nodes);else if(typeof n=="undefined")n=[];else if(Array.isArray(n)){n=n.slice(0);for(let g of n)g.parent&&g.parent.removeChild(g,"ignore")}else if(n.type==="root"&&this.type!=="document"){n=n.nodes.slice(0);for(let g of n)g.parent&&g.parent.removeChild(g,"ignore")}else if(n.type)n=[n];else if(n.prop){if(typeof n.value=="undefined")throw new Error("Value field is missed in node creation");typeof n.value!="string"&&(n.value=String(n.value)),n=[new t(n)]}else if(n.selector||n.selectors)n=[new m(n)];else if(n.name)n=[new a(n)];else if(n.text)n=[new e(n)];else throw new Error("Unknown node type in node creation");return n.map(g=>(g[i]||u.rebuild(g),g=g.proxyOf,g.parent&&g.parent.removeChild(g),g[o]&&r(g),g.raws||(g.raws={}),typeof g.raws.before=="undefined"&&d&&typeof d.raws.before!="undefined"&&(g.raws.before=d.raws.before.replace(/\S/g,"")),g.parent=this.proxyOf,g))}prepend(...n){n=n.reverse();for(let d of n){let c=this.normalize(d,this.first,"prepend").reverse();for(let g of c)this.proxyOf.nodes.unshift(g);for(let g in this.indexes)this.indexes[g]=this.indexes[g]+c.length}return this.markDirty(),this}push(n){return n.parent=this,this.proxyOf.nodes.push(n),this}removeAll(){for(let n of this.proxyOf.nodes)n.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(n){n=this.index(n),this.proxyOf.nodes[n].parent=void 0,this.proxyOf.nodes.splice(n,1);let d;for(let c in this.indexes)d=this.indexes[c],d>=n&&(this.indexes[c]=d-1);return this.markDirty(),this}replaceValues(n,d,c){return c||(c=d,d={}),this.walkDecls(g=>{d.props&&!d.props.includes(g.prop)||d.fast&&!g.value.includes(d.fast)||(g.value=g.value.replace(n,c))}),this.markDirty(),this}some(n){return this.nodes.some(n)}walk(n){return this.each((d,c)=>{let g;try{g=n(d,c)}catch(v){throw d.addToError(v)}return g!==!1&&d.walk&&(g=d.walk(n)),g})}walkAtRules(n,d){return d?n instanceof RegExp?this.walk((c,g)=>{if(c.type==="atrule"&&n.test(c.name))return d(c,g)}):this.walk((c,g)=>{if(c.type==="atrule"&&c.name===n)return d(c,g)}):(d=n,this.walk((c,g)=>{if(c.type==="atrule")return d(c,g)}))}walkComments(n){return this.walk((d,c)=>{if(d.type==="comment")return n(d,c)})}walkDecls(n,d){return d?n instanceof RegExp?this.walk((c,g)=>{if(c.type==="decl"&&n.test(c.prop))return d(c,g)}):this.walk((c,g)=>{if(c.type==="decl"&&c.prop===n)return d(c,g)}):(d=n,this.walk((c,g)=>{if(c.type==="decl")return d(c,g)}))}walkRules(n,d){return d?n instanceof RegExp?this.walk((c,g)=>{if(c.type==="rule"&&n.test(c.selector))return d(c,g)}):this.walk((c,g)=>{if(c.type==="rule"&&c.selector===n)return d(c,g)}):(d=n,this.walk((c,g)=>{if(c.type==="rule")return d(c,g)}))}get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}}return u.registerParse=l=>{h=l},u.registerRule=l=>{m=l},u.registerAtRule=l=>{a=l},u.registerRoot=l=>{p=l},or=u,u.default=u,u.rebuild=l=>{l.type==="atrule"?Object.setPrototypeOf(l,a.prototype):l.type==="rule"?Object.setPrototypeOf(l,m.prototype):l.type==="decl"?Object.setPrototypeOf(l,t.prototype):l.type==="comment"?Object.setPrototypeOf(l,e.prototype):l.type==="root"&&Object.setPrototypeOf(l,p.prototype),l[i]=!0,l.nodes&&l.nodes.forEach(n=>{u.rebuild(n)})},or}var ar,ei;function Yr(){if(ei)return ar;ei=1;let e=Ie();class t 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 ar=t,t.default=t,e.registerAtRule(t),ar}var lr,ti;function Zr(){if(ti)return lr;ti=1;let e=Ie(),t,s;class o extends e{constructor(a){super(D({type:"document"},a)),this.nodes||(this.nodes=[])}toResult(a={}){return new t(new s,this,a).stringify()}}return o.registerLazyResult=i=>{t=i},o.registerProcessor=i=>{s=i},lr=o,o.default=o,lr}var ur,ri;function Qo(){if(ri)return ur;ri=1;let e="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";return ur={nanoid:(o=21)=>{let i="",a=o|0;for(;a--;)i+=e[Math.random()*64|0];return i},customAlphabet:(o,i=21)=>(a=i)=>{let h="",p=a|0;for(;p--;)h+=o[Math.random()*o.length|0];return h}},ur}var cr,si;function rn(){if(si)return cr;si=1;let{existsSync:e,readFileSync:t}=de,{dirname:s,join:o}=de,{SourceMapConsumer:i,SourceMapGenerator:a}=de;function h(m){return Buffer?Buffer.from(m,"base64").toString():window.atob(m)}class p{constructor(f,r){if(r.map===!1)return;this.loadAnnotation(f),this.inline=this.startWith(this.annotation,"data:");let u=r.map?r.map.prev:void 0,l=this.loadMap(r.from,u);!this.mapFile&&r.from&&(this.mapFile=r.from),this.mapFile&&(this.root=s(this.mapFile)),l&&(this.text=l)}consumer(){return this.consumerCache||(this.consumerCache=new i(this.text)),this.consumerCache}decodeInline(f){let r=/^data:application\/json;charset=utf-?8;base64,/,u=/^data:application\/json;base64,/,l=/^data:application\/json;charset=utf-?8,/,n=/^data:application\/json,/,d=f.match(l)||f.match(n);if(d)return decodeURIComponent(f.substr(d[0].length));let c=f.match(r)||f.match(u);if(c)return h(f.substr(c[0].length));let g=f.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+g)}getAnnotationURL(f){return f.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(f){return typeof f!="object"?!1:typeof f.mappings=="string"||typeof f._mappings=="string"||Array.isArray(f.sections)}loadAnnotation(f){let r=f.match(/\/\*\s*# sourceMappingURL=/g);if(!r)return;let u=f.lastIndexOf(r.pop()),l=f.indexOf("*/",u);u>-1&&l>-1&&(this.annotation=this.getAnnotationURL(f.substring(u,l)))}loadFile(f){if(this.root=s(f),e(f))return this.mapFile=f,t(f,"utf-8").toString().trim()}loadMap(f,r){if(r===!1)return!1;if(r){if(typeof r=="string")return r;if(typeof r=="function"){let u=r(f);if(u){let l=this.loadFile(u);if(!l)throw new Error("Unable to load previous source map: "+u.toString());return l}}else{if(r instanceof i)return a.fromSourceMap(r).toString();if(r instanceof a)return r.toString();if(this.isMap(r))return JSON.stringify(r);throw new Error("Unsupported previous source map format: "+r.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let u=this.annotation;return f&&(u=o(s(f),u)),this.loadFile(u)}}}startWith(f,r){return f?f.substr(0,r.length)===r:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}}return cr=p,p.default=p,cr}var hr,ii;function St(){if(ii)return hr;ii=1;let{nanoid:e}=Qo(),{isAbsolute:t,resolve:s}=de,{SourceMapConsumer:o,SourceMapGenerator:i}=de,{fileURLToPath:a,pathToFileURL:h}=de,p=Gr(),m=rn(),f=de,r=Symbol("fromOffsetCache"),u=!!(o&&i),l=!!(s&&t);class n{constructor(c,g={}){if(c===null||typeof c=="undefined"||typeof c=="object"&&!c.toString)throw new Error(`PostCSS received ${c} instead of CSS string`);if(this.css=c.toString(),this.css[0]==="\uFEFF"||this.css[0]==="\uFFFE"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,this.document=this.css,g.document&&(this.document=g.document.toString()),g.from&&(!l||/^\w+:\/\//.test(g.from)||t(g.from)?this.file=g.from:this.file=s(g.from)),l&&u){let v=new m(this.css,g);if(v.text){this.map=v;let b=v.consumer().file;!this.file&&b&&(this.file=this.mapResolve(b))}}this.file||(this.id="<input css "+e(6)+">"),this.map&&(this.map.file=this.from)}error(c,g,v,b={}){let S,x,y;if(g&&typeof g=="object"){let C=g,R=v;if(typeof C.offset=="number"){let E=this.fromOffset(C.offset);g=E.line,v=E.col}else g=C.line,v=C.column;if(typeof R.offset=="number"){let E=this.fromOffset(R.offset);x=E.line,S=E.col}else x=R.line,S=R.column}else if(!v){let C=this.fromOffset(g);g=C.line,v=C.col}let w=this.origin(g,v,x,S);return w?y=new p(c,w.endLine===void 0?w.line:{column:w.column,line:w.line},w.endLine===void 0?w.column:{column:w.endColumn,line:w.endLine},w.source,w.file,b.plugin):y=new p(c,x===void 0?g:{column:v,line:g},x===void 0?v:{column:S,line:x},this.css,this.file,b.plugin),y.input={column:v,endColumn:S,endLine:x,line:g,source:this.css},this.file&&(h&&(y.input.url=h(this.file).toString()),y.input.file=this.file),y}fromOffset(c){let g,v;if(this[r])v=this[r];else{let S=this.css.split(`
60
+ `?(r=1,u+=1):r+=1;return{column:r,line:u}}prev(){if(!this.parent)return;let f=this.parent.index(this);return this.parent.nodes[f-1]}rangeBy(f){let r={column:this.source.start.column,line:this.source.start.line},u=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:r.column+1,line:r.line};if(f.word){let l="document"in this.source.input?this.source.input.document:this.source.input.css,d=l.slice(h(l,this.source.start),h(l,this.source.end)).indexOf(f.word);d!==-1&&(r=this.positionInside(d),u=this.positionInside(d+f.word.length))}else f.start?r={column:f.start.column,line:f.start.line}:f.index&&(r=this.positionInside(f.index)),f.end?u={column:f.end.column,line:f.end.line}:typeof f.endIndex=="number"?u=this.positionInside(f.endIndex):f.index&&(u=this.positionInside(f.index+1));return(u.line<r.line||u.line===r.line&&u.column<=r.column)&&(u={column:r.column+1,line:r.line}),{end:u,start:r}}raw(f,r){return new t().raw(this,f,r)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...f){if(this.parent){let r=this,u=!1;for(let l of f)l===this?u=!0:u?(this.parent.insertAfter(r,l),r=l):this.parent.insertBefore(r,l);u||this.remove()}return this}root(){let f=this;for(;f.parent&&f.parent.type!=="document";)f=f.parent;return f}toJSON(f,r){let u={},l=r==null;r=r||new Map;let n=0;for(let d in this){if(!Object.prototype.hasOwnProperty.call(this,d)||d==="parent"||d==="proxyCache")continue;let c=this[d];if(Array.isArray(c))u[d]=c.map(g=>typeof g=="object"&&g.toJSON?g.toJSON(null,r):g);else if(typeof c=="object"&&c.toJSON)u[d]=c.toJSON(null,r);else if(d==="source"){let g=r.get(c.input);g==null&&(g=n,r.set(c.input,n),n++),u[d]={end:c.end,inputId:g,start:c.start}}else u[d]=c}return l&&(u.inputs=[...r.keys()].map(d=>d.toJSON())),u}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(f=s){f.stringify&&(f=f.stringify);let r="";return f(this,u=>{r+=u}),r}warn(f,r,u){let l={node:this};for(let n in u)l[n]=u[n];return f.warn(r,l)}get proxyOf(){return this}}return sr=p,p.default=p,sr}var ir,Qs;function Ve(){if(Qs)return ir;Qs=1;let e=wt();class t extends e{constructor(o){super(o),this.type="comment"}}return ir=t,t.default=t,ir}var nr,Xs;function bt(){if(Xs)return nr;Xs=1;let e=wt();class t extends e{constructor(o){o&&typeof o.value!="undefined"&&typeof o.value!="string"&&(o=le(D({},o),{value:String(o.value)})),super(o),this.type="decl"}get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}}return nr=t,t.default=t,nr}var or,Ks;function Ie(){if(Ks)return or;Ks=1;let e=Ve(),t=bt(),s=wt(),{isClean:o,my:i}=Jr(),a,h,p,m;function f(l){return l.map(n=>(n.nodes&&(n.nodes=f(n.nodes)),delete n.source,n))}function r(l){if(l[o]=!1,l.proxyOf.nodes)for(let n of l.proxyOf.nodes)r(n)}class u extends s{append(...n){for(let d of n){let c=this.normalize(d,this.last);for(let g of c)this.proxyOf.nodes.push(g)}return this.markDirty(),this}cleanRaws(n){if(super.cleanRaws(n),this.nodes)for(let d of this.nodes)d.cleanRaws(n)}each(n){if(!this.proxyOf.nodes)return;let d=this.getIterator(),c,g;for(;this.indexes[d]<this.proxyOf.nodes.length&&(c=this.indexes[d],g=n(this.proxyOf.nodes[c],c),g!==!1);)this.indexes[d]+=1;return delete this.indexes[d],g}every(n){return this.nodes.every(n)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let n=this.lastEach;return this.indexes[n]=0,n}getProxyProcessor(){return{get(n,d){return d==="proxyOf"?n:n[d]?d==="each"||typeof d=="string"&&d.startsWith("walk")?(...c)=>n[d](...c.map(g=>typeof g=="function"?(v,b)=>g(v.toProxy(),b):g)):d==="every"||d==="some"?c=>n[d]((g,...v)=>c(g.toProxy(),...v)):d==="root"?()=>n.root().toProxy():d==="nodes"?n.nodes.map(c=>c.toProxy()):d==="first"||d==="last"?n[d].toProxy():n[d]:n[d]},set(n,d,c){return n[d]===c||(n[d]=c,(d==="name"||d==="params"||d==="selector")&&n.markDirty()),!0}}}index(n){return typeof n=="number"?n:(n.proxyOf&&(n=n.proxyOf),this.proxyOf.nodes.indexOf(n))}insertAfter(n,d){let c=this.index(n),g=this.normalize(d,this.proxyOf.nodes[c]).reverse();c=this.index(n);for(let b of g)this.proxyOf.nodes.splice(c+1,0,b);let v;for(let b in this.indexes)v=this.indexes[b],c<v&&(this.indexes[b]=v+g.length);return this.markDirty(),this}insertBefore(n,d){let c=this.index(n),g=c===0?"prepend":!1,v=this.normalize(d,this.proxyOf.nodes[c],g).reverse();c=this.index(n);for(let S of v)this.proxyOf.nodes.splice(c,0,S);let b;for(let S in this.indexes)b=this.indexes[S],c<=b&&(this.indexes[S]=b+v.length);return this.markDirty(),this}normalize(n,d){if(typeof n=="string")n=f(h(n).nodes);else if(typeof n=="undefined")n=[];else if(Array.isArray(n)){n=n.slice(0);for(let g of n)g.parent&&g.parent.removeChild(g,"ignore")}else if(n.type==="root"&&this.type!=="document"){n=n.nodes.slice(0);for(let g of n)g.parent&&g.parent.removeChild(g,"ignore")}else if(n.type)n=[n];else if(n.prop){if(typeof n.value=="undefined")throw new Error("Value field is missed in node creation");typeof n.value!="string"&&(n.value=String(n.value)),n=[new t(n)]}else if(n.selector||n.selectors)n=[new m(n)];else if(n.name)n=[new a(n)];else if(n.text)n=[new e(n)];else throw new Error("Unknown node type in node creation");return n.map(g=>(g[i]||u.rebuild(g),g=g.proxyOf,g.parent&&g.parent.removeChild(g),g[o]&&r(g),g.raws||(g.raws={}),typeof g.raws.before=="undefined"&&d&&typeof d.raws.before!="undefined"&&(g.raws.before=d.raws.before.replace(/\S/g,"")),g.parent=this.proxyOf,g))}prepend(...n){n=n.reverse();for(let d of n){let c=this.normalize(d,this.first,"prepend").reverse();for(let g of c)this.proxyOf.nodes.unshift(g);for(let g in this.indexes)this.indexes[g]=this.indexes[g]+c.length}return this.markDirty(),this}push(n){return n.parent=this,this.proxyOf.nodes.push(n),this}removeAll(){for(let n of this.proxyOf.nodes)n.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(n){n=this.index(n),this.proxyOf.nodes[n].parent=void 0,this.proxyOf.nodes.splice(n,1);let d;for(let c in this.indexes)d=this.indexes[c],d>=n&&(this.indexes[c]=d-1);return this.markDirty(),this}replaceValues(n,d,c){return c||(c=d,d={}),this.walkDecls(g=>{d.props&&!d.props.includes(g.prop)||d.fast&&!g.value.includes(d.fast)||(g.value=g.value.replace(n,c))}),this.markDirty(),this}some(n){return this.nodes.some(n)}walk(n){return this.each((d,c)=>{let g;try{g=n(d,c)}catch(v){throw d.addToError(v)}return g!==!1&&d.walk&&(g=d.walk(n)),g})}walkAtRules(n,d){return d?n instanceof RegExp?this.walk((c,g)=>{if(c.type==="atrule"&&n.test(c.name))return d(c,g)}):this.walk((c,g)=>{if(c.type==="atrule"&&c.name===n)return d(c,g)}):(d=n,this.walk((c,g)=>{if(c.type==="atrule")return d(c,g)}))}walkComments(n){return this.walk((d,c)=>{if(d.type==="comment")return n(d,c)})}walkDecls(n,d){return d?n instanceof RegExp?this.walk((c,g)=>{if(c.type==="decl"&&n.test(c.prop))return d(c,g)}):this.walk((c,g)=>{if(c.type==="decl"&&c.prop===n)return d(c,g)}):(d=n,this.walk((c,g)=>{if(c.type==="decl")return d(c,g)}))}walkRules(n,d){return d?n instanceof RegExp?this.walk((c,g)=>{if(c.type==="rule"&&n.test(c.selector))return d(c,g)}):this.walk((c,g)=>{if(c.type==="rule"&&c.selector===n)return d(c,g)}):(d=n,this.walk((c,g)=>{if(c.type==="rule")return d(c,g)}))}get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}}return u.registerParse=l=>{h=l},u.registerRule=l=>{m=l},u.registerAtRule=l=>{a=l},u.registerRoot=l=>{p=l},or=u,u.default=u,u.rebuild=l=>{l.type==="atrule"?Object.setPrototypeOf(l,a.prototype):l.type==="rule"?Object.setPrototypeOf(l,m.prototype):l.type==="decl"?Object.setPrototypeOf(l,t.prototype):l.type==="comment"?Object.setPrototypeOf(l,e.prototype):l.type==="root"&&Object.setPrototypeOf(l,p.prototype),l[i]=!0,l.nodes&&l.nodes.forEach(n=>{u.rebuild(n)})},or}var ar,ei;function Yr(){if(ei)return ar;ei=1;let e=Ie();class t 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 ar=t,t.default=t,e.registerAtRule(t),ar}var lr,ti;function Zr(){if(ti)return lr;ti=1;let e=Ie(),t,s;class o extends e{constructor(a){super(D({type:"document"},a)),this.nodes||(this.nodes=[])}toResult(a={}){return new t(new s,this,a).stringify()}}return o.registerLazyResult=i=>{t=i},o.registerProcessor=i=>{s=i},lr=o,o.default=o,lr}var ur,ri;function Qo(){if(ri)return ur;ri=1;let e="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";return ur={nanoid:(o=21)=>{let i="",a=o|0;for(;a--;)i+=e[Math.random()*64|0];return i},customAlphabet:(o,i=21)=>(a=i)=>{let h="",p=a|0;for(;p--;)h+=o[Math.random()*o.length|0];return h}},ur}var cr,si;function rn(){if(si)return cr;si=1;let{existsSync:e,readFileSync:t}=de,{dirname:s,join:o}=de,{SourceMapConsumer:i,SourceMapGenerator:a}=de;function h(m){return Buffer?Buffer.from(m,"base64").toString():window.atob(m)}class p{constructor(f,r){if(r.map===!1)return;this.loadAnnotation(f),this.inline=this.startWith(this.annotation,"data:");let u=r.map?r.map.prev:void 0,l=this.loadMap(r.from,u);!this.mapFile&&r.from&&(this.mapFile=r.from),this.mapFile&&(this.root=s(this.mapFile)),l&&(this.text=l)}consumer(){return this.consumerCache||(this.consumerCache=new i(this.text)),this.consumerCache}decodeInline(f){let r=/^data:application\/json;charset=utf-?8;base64,/,u=/^data:application\/json;base64,/,l=/^data:application\/json;charset=utf-?8,/,n=/^data:application\/json,/,d=f.match(l)||f.match(n);if(d)return decodeURIComponent(f.substr(d[0].length));let c=f.match(r)||f.match(u);if(c)return h(f.substr(c[0].length));let g=f.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+g)}getAnnotationURL(f){return f.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(f){return typeof f!="object"?!1:typeof f.mappings=="string"||typeof f._mappings=="string"||Array.isArray(f.sections)}loadAnnotation(f){let r=f.match(/\/\*\s*# sourceMappingURL=/g);if(!r)return;let u=f.lastIndexOf(r.pop()),l=f.indexOf("*/",u);u>-1&&l>-1&&(this.annotation=this.getAnnotationURL(f.substring(u,l)))}loadFile(f){if(this.root=s(f),e(f))return this.mapFile=f,t(f,"utf-8").toString().trim()}loadMap(f,r){if(r===!1)return!1;if(r){if(typeof r=="string")return r;if(typeof r=="function"){let u=r(f);if(u){let l=this.loadFile(u);if(!l)throw new Error("Unable to load previous source map: "+u.toString());return l}}else{if(r instanceof i)return a.fromSourceMap(r).toString();if(r instanceof a)return r.toString();if(this.isMap(r))return JSON.stringify(r);throw new Error("Unsupported previous source map format: "+r.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let u=this.annotation;return f&&(u=o(s(f),u)),this.loadFile(u)}}}startWith(f,r){return f?f.substr(0,r.length)===r:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}}return cr=p,p.default=p,cr}var hr,ii;function St(){if(ii)return hr;ii=1;let{nanoid:e}=Qo(),{isAbsolute:t,resolve:s}=de,{SourceMapConsumer:o,SourceMapGenerator:i}=de,{fileURLToPath:a,pathToFileURL:h}=de,p=Gr(),m=rn(),f=de,r=Symbol("fromOffsetCache"),u=!!(o&&i),l=!!(s&&t);class n{constructor(c,g={}){if(c===null||typeof c=="undefined"||typeof c=="object"&&!c.toString)throw new Error(`PostCSS received ${c} instead of CSS string`);if(this.css=c.toString(),this.css[0]==="\uFEFF"||this.css[0]==="\uFFFE"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,this.document=this.css,g.document&&(this.document=g.document.toString()),g.from&&(!l||/^\w+:\/\//.test(g.from)||t(g.from)?this.file=g.from:this.file=s(g.from)),l&&u){let v=new m(this.css,g);if(v.text){this.map=v;let b=v.consumer().file;!this.file&&b&&(this.file=this.mapResolve(b))}}this.file||(this.id="<input css "+e(6)+">"),this.map&&(this.map.file=this.from)}error(c,g,v,b={}){let S,x,y;if(g&&typeof g=="object"){let C=g,R=v;if(typeof C.offset=="number"){let A=this.fromOffset(C.offset);g=A.line,v=A.col}else g=C.line,v=C.column;if(typeof R.offset=="number"){let A=this.fromOffset(R.offset);x=A.line,S=A.col}else x=R.line,S=R.column}else if(!v){let C=this.fromOffset(g);g=C.line,v=C.col}let w=this.origin(g,v,x,S);return w?y=new p(c,w.endLine===void 0?w.line:{column:w.column,line:w.line},w.endLine===void 0?w.column:{column:w.endColumn,line:w.endLine},w.source,w.file,b.plugin):y=new p(c,x===void 0?g:{column:v,line:g},x===void 0?v:{column:S,line:x},this.css,this.file,b.plugin),y.input={column:v,endColumn:S,endLine:x,line:g,source:this.css},this.file&&(h&&(y.input.url=h(this.file).toString()),y.input.file=this.file),y}fromOffset(c){let g,v;if(this[r])v=this[r];else{let S=this.css.split(`
61
61
  `);v=new Array(S.length);let x=0;for(let y=0,w=S.length;y<w;y++)v[y]=x,x+=S[y].length+1;this[r]=v}g=v[v.length-1];let b=0;if(c>=g)b=v.length-1;else{let S=v.length-2,x;for(;b<S;)if(x=b+(S-b>>1),c<v[x])S=x-1;else if(c>=v[x+1])b=x+1;else{b=x;break}}return{col:c-v[b]+1,line:b+1}}mapResolve(c){return/^\w+:\/\//.test(c)?c:s(this.map.consumer().sourceRoot||this.map.root||".",c)}origin(c,g,v,b){if(!this.map)return!1;let S=this.map.consumer(),x=S.originalPositionFor({column:g,line:c});if(!x.source)return!1;let y;typeof v=="number"&&(y=S.originalPositionFor({column:b,line:v}));let w;t(x.source)?w=h(x.source):w=new URL(x.source,this.map.consumer().sourceRoot||h(this.map.mapFile));let C={column:x.column,endColumn:y&&y.column,endLine:y&&y.line,line:x.line,url:w.toString()};if(w.protocol==="file:")if(a)C.file=a(w);else throw new Error("file: protocol is not available in this PostCSS build");let R=S.sourceContentFor(x.source);return R&&(C.source=R),C}toJSON(){let c={};for(let g of["hasBOM","css","file","id"])this[g]!=null&&(c[g]=this[g]);return this.map&&(c.map=D({},this.map),c.map.consumerCache&&(c.map.consumerCache=void 0)),c}get from(){return this.file||this.id}}return hr=n,n.default=n,f&&f.registerInput&&f.registerInput(n),hr}var fr,ni;function Ge(){if(ni)return fr;ni=1;let e=Ie(),t,s;class o extends e{constructor(a){super(a),this.type="root",this.nodes||(this.nodes=[])}normalize(a,h,p){let m=super.normalize(a);if(h){if(p==="prepend")this.nodes.length>1?h.raws.before=this.nodes[1].raws.before:delete h.raws.before;else if(this.first!==h)for(let f of m)f.raws.before=h.raws.before}return m}removeChild(a,h){let p=this.index(a);return!h&&p===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[p].raws.before),super.removeChild(a)}toResult(a={}){return new t(new s,this,a).stringify()}}return o.registerLazyResult=i=>{t=i},o.registerProcessor=i=>{s=i},fr=o,o.default=o,e.registerRoot(o),fr}var pr,oi;function sn(){if(oi)return pr;oi=1;let e={comma(t){return e.split(t,[","],!0)},space(t){let s=[" ",`
62
62
  `," "];return e.split(t,s)},split(t,s,o){let i=[],a="",h=!1,p=0,m=!1,f="",r=!1;for(let u of t)r?r=!1:u==="\\"?r=!0:m?u===f&&(m=!1):u==='"'||u==="'"?(m=!0,f=u):u==="("?p+=1:u===")"?p>0&&(p-=1):p===0&&s.includes(u)&&(h=!0),h?(a!==""&&i.push(a.trim()),a="",h=!1):a+=u;return(o||a!=="")&&i.push(a.trim()),i}};return pr=e,e.default=e,pr}var dr,ai;function Qr(){if(ai)return dr;ai=1;let e=Ie(),t=sn();class s extends e{constructor(i){super(i),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return t.comma(this.selector)}set selectors(i){let a=this.selector?this.selector.match(/,\s*/):null,h=a?a[0]:","+this.raw("between","beforeOpen");this.selector=i.join(h)}}return dr=s,s.default=s,e.registerRule(s),dr}var mr,li;function Xo(){if(li)return mr;li=1;let e=Yr(),t=Ve(),s=bt(),o=St(),i=rn(),a=Ge(),h=Qr();function p(m,f){if(Array.isArray(m))return m.map(d=>p(d));let l=m,{inputs:r}=l,u=Ne(l,["inputs"]);if(r){f=[];for(let d of r){let c=le(D({},d),{__proto__:o.prototype});c.map&&(c.map=le(D({},c.map),{__proto__:i.prototype})),f.push(c)}}if(u.nodes&&(u.nodes=m.nodes.map(d=>p(d,f))),u.source){let n=u.source,{inputId:d}=n,c=Ne(n,["inputId"]);u.source=c,d!=null&&(u.source.input=f[d])}if(u.type==="root")return new a(u);if(u.type==="decl")return new s(u);if(u.type==="rule")return new h(u);if(u.type==="comment")return new t(u);if(u.type==="atrule")return new e(u);throw new Error("Unknown node type: "+m.type)}return mr=p,p.default=p,mr}var gr,ui;function nn(){if(ui)return gr;ui=1;let{dirname:e,relative:t,resolve:s,sep:o}=de,{SourceMapConsumer:i,SourceMapGenerator:a}=de,{pathToFileURL:h}=de,p=St(),m=!!(i&&a),f=!!(e&&s&&t&&o);class r{constructor(l,n,d,c){this.stringify=l,this.mapOpts=d.map||{},this.root=n,this.opts=d,this.css=c,this.originalCSS=c,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let l;this.isInline()?l="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?l=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?l=this.mapOpts.annotation(this.opts.to,this.root):l=this.outputFile()+".map";let n=`
63
63
  `;this.css.includes(`\r
64
64
  `)&&(n=`\r
65
65
  `),this.css+=n+"/*# sourceMappingURL="+l+" */"}applyPrevMaps(){for(let l of this.previous()){let n=this.toUrl(this.path(l.file)),d=l.root||e(l.file),c;this.mapOpts.sourcesContent===!1?(c=new i(l.text),c.sourcesContent&&(c.sourcesContent=null)):c=l.consumer(),this.map.applySourceMap(c,n,this.toUrl(this.path(d)))}}clearAnnotation(){if(this.mapOpts.annotation!==!1)if(this.root){let l;for(let n=this.root.nodes.length-1;n>=0;n--)l=this.root.nodes[n],l.type==="comment"&&l.text.startsWith("# sourceMappingURL=")&&this.root.removeChild(n)}else this.css&&(this.css=this.css.replace(/\n*\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),f&&m&&this.isMap())return this.generateMap();{let l="";return this.stringify(this.root,n=>{l+=n}),[l]}}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let l=this.previous()[0].consumer();l.file=this.outputFile(),this.map=a.fromSourceMap(l,{ignoreInvalidMapping:!0})}else this.map=new a({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 a({file:this.outputFile(),ignoreInvalidMapping:!0});let l=1,n=1,d="<no source>",c={generated:{column:0,line:0},original:{column:0,line:0},source:""},g,v;this.stringify(this.root,(b,S,x)=>{if(this.css+=b,S&&x!=="end"&&(c.generated.line=l,c.generated.column=n-1,S.source&&S.source.start?(c.source=this.sourcePath(S),c.original.line=S.source.start.line,c.original.column=S.source.start.column-1,this.map.addMapping(c)):(c.source=d,c.original.line=1,c.original.column=0,this.map.addMapping(c))),v=b.match(/\n/g),v?(l+=v.length,g=b.lastIndexOf(`
66
- `),n=b.length-g):n+=b.length,S&&x!=="start"){let y=S.parent||{raws:{}};(!(S.type==="decl"||S.type==="atrule"&&!S.nodes)||S!==y.last||y.raws.semicolon)&&(S.source&&S.source.end?(c.source=this.sourcePath(S),c.original.line=S.source.end.line,c.original.column=S.source.end.column-1,c.generated.line=l,c.generated.column=n-2,this.map.addMapping(c)):(c.source=d,c.original.line=1,c.original.column=0,c.generated.line=l,c.generated.column=n-1,this.map.addMapping(c)))}})}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation!="undefined"?this.mapOpts.annotation:this.previous().length?this.previous().some(l=>l.annotation):!0}isInline(){if(typeof this.mapOpts.inline!="undefined")return this.mapOpts.inline;let l=this.mapOpts.annotation;return typeof l!="undefined"&&l!==!0?!1:this.previous().length?this.previous().some(n=>n.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(l=>l.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(l){if(this.mapOpts.absolute||l.charCodeAt(0)===60||/^\w+:\/\//.test(l))return l;let n=this.memoizedPaths.get(l);if(n)return n;let d=this.opts.to?e(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(d=e(s(d,this.mapOpts.annotation)));let c=t(d,l);return this.memoizedPaths.set(l,c),c}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(l=>{if(l.source&&l.source.input.map){let n=l.source.input.map;this.previousMaps.includes(n)||this.previousMaps.push(n)}});else{let l=new p(this.originalCSS,this.opts);l.map&&this.previousMaps.push(l.map)}return this.previousMaps}setSourcesContent(){let l={};if(this.root)this.root.walk(n=>{if(n.source){let d=n.source.input.from;if(d&&!l[d]){l[d]=!0;let c=this.usesFileUrls?this.toFileUrl(d):this.toUrl(this.path(d));this.map.setSourceContent(c,n.source.input.css)}}});else if(this.css){let n=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(n,this.css)}}sourcePath(l){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(l.source.input.from):this.toUrl(this.path(l.source.input.from))}toBase64(l){return Buffer?Buffer.from(l).toString("base64"):window.btoa(unescape(encodeURIComponent(l)))}toFileUrl(l){let n=this.memoizedFileURLs.get(l);if(n)return n;if(h){let d=h(l).toString();return this.memoizedFileURLs.set(l,d),d}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(l){let n=this.memoizedURLs.get(l);if(n)return n;o==="\\"&&(l=l.replace(/\\/g,"/"));let d=encodeURI(l).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(l,d),d}}return gr=r,gr}var yr,ci;function on(){if(ci)return yr;ci=1;const e=39,t=34,s=92,o=47,i=10,a=32,h=12,p=9,m=13,f=91,r=93,u=40,l=41,n=123,d=125,c=59,g=42,v=58,b=64,S=/[\t\n\f\r "#'()/;[\\\]{}]/g,x=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,y=/.[\r\n"'(/\\]/,w=/[\da-f]/i;return yr=function(R,E={}){let M=R.css.valueOf(),N=E.ignoreErrors,P,ee,te,O,Z,T,B,Q,H,be,me=M.length,I=0,oe=[],ae=[];function Ae(){return I}function ge(J){throw R.error("Unclosed "+J,I)}function he(){return ae.length===0&&I>=me}function ne(J){if(ae.length)return ae.pop();if(I>=me)return;let _=J?J.ignoreUnclosed:!1;switch(P=M.charCodeAt(I),P){case i:case a:case p:case m:case h:{O=I;do O+=1,P=M.charCodeAt(O);while(P===a||P===i||P===p||P===m||P===h);T=["space",M.slice(I,O)],I=O-1;break}case f:case r:case n:case d:case v:case c:case l:{let X=String.fromCharCode(P);T=[X,X,I];break}case u:{if(be=oe.length?oe.pop()[1]:"",H=M.charCodeAt(I+1),be==="url"&&H!==e&&H!==t&&H!==a&&H!==i&&H!==p&&H!==h&&H!==m){O=I;do{if(B=!1,O=M.indexOf(")",O+1),O===-1)if(N||_){O=I;break}else ge("bracket");for(Q=O;M.charCodeAt(Q-1)===s;)Q-=1,B=!B}while(B);T=["brackets",M.slice(I,O+1),I,O],I=O}else O=M.indexOf(")",I+1),ee=M.slice(I,O+1),O===-1||y.test(ee)?T=["(","(",I]:(T=["brackets",ee,I,O],I=O);break}case e:case t:{Z=P===e?"'":'"',O=I;do{if(B=!1,O=M.indexOf(Z,O+1),O===-1)if(N||_){O=I+1;break}else ge("string");for(Q=O;M.charCodeAt(Q-1)===s;)Q-=1,B=!B}while(B);T=["string",M.slice(I,O+1),I,O],I=O;break}case b:{S.lastIndex=I+1,S.test(M),S.lastIndex===0?O=M.length-1:O=S.lastIndex-2,T=["at-word",M.slice(I,O+1),I,O],I=O;break}case s:{for(O=I,te=!0;M.charCodeAt(O+1)===s;)O+=1,te=!te;if(P=M.charCodeAt(O+1),te&&P!==o&&P!==a&&P!==i&&P!==p&&P!==m&&P!==h&&(O+=1,w.test(M.charAt(O)))){for(;w.test(M.charAt(O+1));)O+=1;M.charCodeAt(O+1)===a&&(O+=1)}T=["word",M.slice(I,O+1),I,O],I=O;break}default:{P===o&&M.charCodeAt(I+1)===g?(O=M.indexOf("*/",I+2)+1,O===0&&(N||_?O=M.length:ge("comment")),T=["comment",M.slice(I,O+1),I,O],I=O):(x.lastIndex=I+1,x.test(M),x.lastIndex===0?O=M.length-1:O=x.lastIndex-2,T=["word",M.slice(I,O+1),I,O],oe.push(T),I=O);break}}return I++,T}function Re(J){ae.push(J)}return{back:Re,endOfFile:he,nextToken:ne,position:Ae}},yr}var wr,hi;function an(){if(hi)return wr;hi=1;let e=Yr(),t=Ve(),s=bt(),o=Ge(),i=Qr(),a=on();const h={empty:!0,space:!0};function p(f){for(let r=f.length-1;r>=0;r--){let u=f[r],l=u[3]||u[2];if(l)return l}}class m{constructor(r){this.input=r,this.root=new o,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:r,start:{column:1,line:1,offset:0}}}atrule(r){let u=new e;u.name=r[1].slice(1),u.name===""&&this.unnamedAtrule(u,r),this.init(u,r[2]);let l,n,d,c=!1,g=!1,v=[],b=[];for(;!this.tokenizer.endOfFile();){if(r=this.tokenizer.nextToken(),l=r[0],l==="("||l==="["?b.push(l==="("?")":"]"):l==="{"&&b.length>0?b.push("}"):l===b[b.length-1]&&b.pop(),b.length===0)if(l===";"){u.source.end=this.getPosition(r[2]),u.source.end.offset++,this.semicolon=!0;break}else if(l==="{"){g=!0;break}else if(l==="}"){if(v.length>0){for(d=v.length-1,n=v[d];n&&n[0]==="space";)n=v[--d];n&&(u.source.end=this.getPosition(n[3]||n[2]),u.source.end.offset++)}this.end(r);break}else v.push(r);else v.push(r);if(this.tokenizer.endOfFile()){c=!0;break}}u.raws.between=this.spacesAndCommentsFromEnd(v),v.length?(u.raws.afterName=this.spacesAndCommentsFromStart(v),this.raw(u,"params",v),c&&(r=v[v.length-1],u.source.end=this.getPosition(r[3]||r[2]),u.source.end.offset++,this.spaces=u.raws.between,u.raws.between="")):(u.raws.afterName="",u.params=""),g&&(u.nodes=[],this.current=u)}checkMissedSemicolon(r){let u=this.colon(r);if(u===!1)return;let l=0,n;for(let d=u-1;d>=0&&(n=r[d],!(n[0]!=="space"&&(l+=1,l===2)));d--);throw this.input.error("Missed semicolon",n[0]==="word"?n[3]+1:n[2])}colon(r){let u=0,l,n,d;for(let[c,g]of r.entries()){if(n=g,d=n[0],d==="("&&(u+=1),d===")"&&(u-=1),u===0&&d===":")if(!l)this.doubleColon(n);else{if(l[0]==="word"&&l[1]==="progid")continue;return c}l=n}return!1}comment(r){let u=new t;this.init(u,r[2]),u.source.end=this.getPosition(r[3]||r[2]),u.source.end.offset++;let l=r[1].slice(2,-2);if(/^\s*$/.test(l))u.text="",u.raws.left=l,u.raws.right="";else{let n=l.match(/^(\s*)([^]*\S)(\s*)$/);u.text=n[2],u.raws.left=n[1],u.raws.right=n[3]}}createTokenizer(){this.tokenizer=a(this.input)}decl(r,u){let l=new s;this.init(l,r[0][2]);let n=r[r.length-1];for(n[0]===";"&&(this.semicolon=!0,r.pop()),l.source.end=this.getPosition(n[3]||n[2]||p(r)),l.source.end.offset++;r[0][0]!=="word";)r.length===1&&this.unknownWord(r),l.raws.before+=r.shift()[1];for(l.source.start=this.getPosition(r[0][2]),l.prop="";r.length;){let b=r[0][0];if(b===":"||b==="space"||b==="comment")break;l.prop+=r.shift()[1]}l.raws.between="";let d;for(;r.length;)if(d=r.shift(),d[0]===":"){l.raws.between+=d[1];break}else d[0]==="word"&&/\w/.test(d[1])&&this.unknownWord([d]),l.raws.between+=d[1];(l.prop[0]==="_"||l.prop[0]==="*")&&(l.raws.before+=l.prop[0],l.prop=l.prop.slice(1));let c=[],g;for(;r.length&&(g=r[0][0],!(g!=="space"&&g!=="comment"));)c.push(r.shift());this.precheckMissedSemicolon(r);for(let b=r.length-1;b>=0;b--){if(d=r[b],d[1].toLowerCase()==="!important"){l.important=!0;let S=this.stringFrom(r,b);S=this.spacesFromEnd(r)+S,S!==" !important"&&(l.raws.important=S);break}else if(d[1].toLowerCase()==="important"){let S=r.slice(0),x="";for(let y=b;y>0;y--){let w=S[y][0];if(x.trim().startsWith("!")&&w!=="space")break;x=S.pop()[1]+x}x.trim().startsWith("!")&&(l.important=!0,l.raws.important=x,r=S)}if(d[0]!=="space"&&d[0]!=="comment")break}r.some(b=>b[0]!=="space"&&b[0]!=="comment")&&(l.raws.between+=c.map(b=>b[1]).join(""),c=[]),this.raw(l,"value",c.concat(r),u),l.value.includes(":")&&!u&&this.checkMissedSemicolon(r)}doubleColon(r){throw this.input.error("Double colon",{offset:r[2]},{offset:r[2]+r[1].length})}emptyRule(r){let u=new i;this.init(u,r[2]),u.selector="",u.raws.between="",this.current=u}end(r){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(r[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(r)}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(r){if(this.spaces+=r[1],this.current.nodes){let u=this.current.nodes[this.current.nodes.length-1];u&&u.type==="rule"&&!u.raws.ownSemicolon&&(u.raws.ownSemicolon=this.spaces,this.spaces="")}}getPosition(r){let u=this.input.fromOffset(r);return{column:u.col,line:u.line,offset:r}}init(r,u){this.current.push(r),r.source={input:this.input,start:this.getPosition(u)},r.raws.before=this.spaces,this.spaces="",r.type!=="comment"&&(this.semicolon=!1)}other(r){let u=!1,l=null,n=!1,d=null,c=[],g=r[1].startsWith("--"),v=[],b=r;for(;b;){if(l=b[0],v.push(b),l==="("||l==="[")d||(d=b),c.push(l==="("?")":"]");else if(g&&n&&l==="{")d||(d=b),c.push("}");else if(c.length===0)if(l===";")if(n){this.decl(v,g);return}else break;else if(l==="{"){this.rule(v);return}else if(l==="}"){this.tokenizer.back(v.pop()),u=!0;break}else l===":"&&(n=!0);else l===c[c.length-1]&&(c.pop(),c.length===0&&(d=null));b=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(u=!0),c.length>0&&this.unclosedBracket(d),u&&n){if(!g)for(;v.length&&(b=v[v.length-1][0],!(b!=="space"&&b!=="comment"));)this.tokenizer.back(v.pop());this.decl(v,g)}else this.unknownWord(v)}parse(){let r;for(;!this.tokenizer.endOfFile();)switch(r=this.tokenizer.nextToken(),r[0]){case"space":this.spaces+=r[1];break;case";":this.freeSemicolon(r);break;case"}":this.end(r);break;case"comment":this.comment(r);break;case"at-word":this.atrule(r);break;case"{":this.emptyRule(r);break;default:this.other(r);break}this.endFile()}precheckMissedSemicolon(){}raw(r,u,l,n){let d,c,g=l.length,v="",b=!0,S,x;for(let y=0;y<g;y+=1)d=l[y],c=d[0],c==="space"&&y===g-1&&!n?b=!1:c==="comment"?(x=l[y-1]?l[y-1][0]:"empty",S=l[y+1]?l[y+1][0]:"empty",!h[x]&&!h[S]?v.slice(-1)===","?b=!1:v+=d[1]:b=!1):v+=d[1];if(!b){let y=l.reduce((w,C)=>w+C[1],"");r.raws[u]={raw:y,value:v}}r[u]=v}rule(r){r.pop();let u=new i;this.init(u,r[0][2]),u.raws.between=this.spacesAndCommentsFromEnd(r),this.raw(u,"selector",r),this.current=u}spacesAndCommentsFromEnd(r){let u,l="";for(;r.length&&(u=r[r.length-1][0],!(u!=="space"&&u!=="comment"));)l=r.pop()[1]+l;return l}spacesAndCommentsFromStart(r){let u,l="";for(;r.length&&(u=r[0][0],!(u!=="space"&&u!=="comment"));)l+=r.shift()[1];return l}spacesFromEnd(r){let u,l="";for(;r.length&&(u=r[r.length-1][0],u==="space");)l=r.pop()[1]+l;return l}stringFrom(r,u){let l="";for(let n=u;n<r.length;n++)l+=r[n][1];return r.splice(u,r.length-u),l}unclosedBlock(){let r=this.current.source.start;throw this.input.error("Unclosed block",r.line,r.column)}unclosedBracket(r){throw this.input.error("Unclosed bracket",{offset:r[2]},{offset:r[2]+1})}unexpectedClose(r){throw this.input.error("Unexpected }",{offset:r[2]},{offset:r[2]+1})}unknownWord(r){throw this.input.error("Unknown word",{offset:r[0][2]},{offset:r[0][2]+r[0][1].length})}unnamedAtrule(r,u){throw this.input.error("At-rule without name",{offset:u[2]},{offset:u[2]+u[1].length})}}return wr=m,wr}var br,fi;function Xr(){if(fi)return br;fi=1;let e=Ie(),t=St(),s=an();function o(i,a){let h=new t(i,a),p=new s(h);try{p.parse()}catch(m){throw m}return p.root}return br=o,o.default=o,e.registerParse(o),br}var Sr,pi;function ln(){if(pi)return Sr;pi=1;class e{constructor(s,o={}){if(this.type="warning",this.text=s,o.node&&o.node.source){let i=o.node.rangeBy(o);this.line=i.start.line,this.column=i.start.column,this.endLine=i.end.line,this.endColumn=i.end.column}for(let i in o)this[i]=o[i]}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 Sr=e,e.default=e,Sr}var vr,di;function Kr(){if(di)return vr;di=1;let e=ln();class t{constructor(o,i,a){this.processor=o,this.messages=[],this.root=i,this.opts=a,this.css=void 0,this.map=void 0}toString(){return this.css}warn(o,i={}){i.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(i.plugin=this.lastPlugin.postcssPlugin);let a=new e(o,i);return this.messages.push(a),a}warnings(){return this.messages.filter(o=>o.type==="warning")}get content(){return this.css}}return vr=t,t.default=t,vr}var Cr,mi;function un(){if(mi)return Cr;mi=1;let e={};return Cr=function(s){e[s]||(e[s]=!0,typeof console!="undefined"&&console.warn&&console.warn(s))},Cr}var xr,gi;function cn(){if(gi)return xr;gi=1;let e=Ie(),t=Zr(),s=nn(),o=Xr(),i=Kr(),a=Ge(),h=yt(),{isClean:p,my:m}=Jr(),f=un();const r={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},u={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},l={Once:!0,postcssPlugin:!0,prepare:!0},n=0;function d(x){return typeof x=="object"&&typeof x.then=="function"}function c(x){let y=!1,w=r[x.type];return x.type==="decl"?y=x.prop.toLowerCase():x.type==="atrule"&&(y=x.name.toLowerCase()),y&&x.append?[w,w+"-"+y,n,w+"Exit",w+"Exit-"+y]:y?[w,w+"-"+y,w+"Exit",w+"Exit-"+y]:x.append?[w,n,w+"Exit"]:[w,w+"Exit"]}function g(x){let y;return x.type==="document"?y=["Document",n,"DocumentExit"]:x.type==="root"?y=["Root",n,"RootExit"]:y=c(x),{eventIndex:0,events:y,iterator:0,node:x,visitorIndex:0,visitors:[]}}function v(x){return x[p]=!1,x.nodes&&x.nodes.forEach(y=>v(y)),x}let b={};class S{constructor(y,w,C){this.stringified=!1,this.processed=!1;let R;if(typeof w=="object"&&w!==null&&(w.type==="root"||w.type==="document"))R=v(w);else if(w instanceof S||w instanceof i)R=v(w.root),w.map&&(typeof C.map=="undefined"&&(C.map={}),C.map.inline||(C.map.inline=!1),C.map.prev=w.map);else{let E=o;C.syntax&&(E=C.syntax.parse),C.parser&&(E=C.parser),E.parse&&(E=E.parse);try{R=E(w,C)}catch(M){this.processed=!0,this.error=M}R&&!R[m]&&e.rebuild(R)}this.result=new i(y,R,C),this.helpers=le(D({},b),{postcss:b,result:this.result}),this.plugins=this.processor.plugins.map(E=>typeof E=="object"&&E.prepare?D(D({},E),E.prepare(this.result)):E)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(y){return this.async().catch(y)}finally(y){return this.async().then(y,y)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(y,w){let C=this.result.lastPlugin;try{w&&w.addToError(y),this.error=y,y.name==="CssSyntaxError"&&!y.plugin?(y.plugin=C.postcssPlugin,y.setMessage()):C.postcssVersion}catch(R){console&&console.error&&console.error(R)}return y}prepareVisitors(){this.listeners={};let y=(w,C,R)=>{this.listeners[C]||(this.listeners[C]=[]),this.listeners[C].push([w,R])};for(let w of this.plugins)if(typeof w=="object")for(let C in w){if(!u[C]&&/^[A-Z]/.test(C))throw new Error(`Unknown event ${C} in ${w.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!l[C])if(typeof w[C]=="object")for(let R in w[C])R==="*"?y(w,C,w[C][R]):y(w,C+"-"+R.toLowerCase(),w[C][R]);else typeof w[C]=="function"&&y(w,C,w[C])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let y=0;y<this.plugins.length;y++){let w=this.plugins[y],C=this.runOnRoot(w);if(d(C))try{await C}catch(R){throw this.handleError(R)}}if(this.prepareVisitors(),this.hasListener){let y=this.result.root;for(;!y[p];){y[p]=!0;let w=[g(y)];for(;w.length>0;){let C=this.visitTick(w);if(d(C))try{await C}catch(R){let E=w[w.length-1].node;throw this.handleError(R,E)}}}if(this.listeners.OnceExit)for(let[w,C]of this.listeners.OnceExit){this.result.lastPlugin=w;try{if(y.type==="document"){let R=y.nodes.map(E=>C(E,this.helpers));await Promise.all(R)}else await C(y,this.helpers)}catch(R){throw this.handleError(R)}}}return this.processed=!0,this.stringify()}runOnRoot(y){this.result.lastPlugin=y;try{if(typeof y=="object"&&y.Once){if(this.result.root.type==="document"){let w=this.result.root.nodes.map(C=>y.Once(C,this.helpers));return d(w[0])?Promise.all(w):w}return y.Once(this.result.root,this.helpers)}else if(typeof y=="function")return y(this.result.root,this.result)}catch(w){throw this.handleError(w)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let y=this.result.opts,w=h;y.syntax&&(w=y.syntax.stringify),y.stringifier&&(w=y.stringifier),w.stringify&&(w=w.stringify);let R=new s(w,this.result.root,this.result.opts).generate();return this.result.css=R[0],this.result.map=R[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let y of this.plugins){let w=this.runOnRoot(y);if(d(w))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let y=this.result.root;for(;!y[p];)y[p]=!0,this.walkSync(y);if(this.listeners.OnceExit)if(y.type==="document")for(let w of y.nodes)this.visitSync(this.listeners.OnceExit,w);else this.visitSync(this.listeners.OnceExit,y)}return this.result}then(y,w){return this.async().then(y,w)}toString(){return this.css}visitSync(y,w){for(let[C,R]of y){this.result.lastPlugin=C;let E;try{E=R(w,this.helpers)}catch(M){throw this.handleError(M,w.proxyOf)}if(w.type!=="root"&&w.type!=="document"&&!w.parent)return!0;if(d(E))throw this.getAsyncError()}}visitTick(y){let w=y[y.length-1],{node:C,visitors:R}=w;if(C.type!=="root"&&C.type!=="document"&&!C.parent){y.pop();return}if(R.length>0&&w.visitorIndex<R.length){let[M,N]=R[w.visitorIndex];w.visitorIndex+=1,w.visitorIndex===R.length&&(w.visitors=[],w.visitorIndex=0),this.result.lastPlugin=M;try{return N(C.toProxy(),this.helpers)}catch(P){throw this.handleError(P,C)}}if(w.iterator!==0){let M=w.iterator,N;for(;N=C.nodes[C.indexes[M]];)if(C.indexes[M]+=1,!N[p]){N[p]=!0,y.push(g(N));return}w.iterator=0,delete C.indexes[M]}let E=w.events;for(;w.eventIndex<E.length;){let M=E[w.eventIndex];if(w.eventIndex+=1,M===n){C.nodes&&C.nodes.length&&(C[p]=!0,w.iterator=C.getIterator());return}else if(this.listeners[M]){w.visitors=this.listeners[M];return}}y.pop()}walkSync(y){y[p]=!0;let w=c(y);for(let C of w)if(C===n)y.nodes&&y.each(R=>{R[p]||this.walkSync(R)});else{let R=this.listeners[C];if(R&&this.visitSync(R,y.toProxy()))return}}warnings(){return this.sync().warnings()}get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}}return S.registerPostcss=x=>{b=x},xr=S,S.default=S,a.registerLazyResult(S),t.registerLazyResult(S),xr}var Rr,yi;function Ko(){if(yi)return Rr;yi=1;let e=nn(),t=Xr();const s=Kr();let o=yt(),i=un();class a{constructor(p,m,f){m=m.toString(),this.stringified=!1,this._processor=p,this._css=m,this._opts=f,this._map=void 0;let r,u=o;this.result=new s(this._processor,r,this._opts),this.result.css=m;let l=this;Object.defineProperty(this.result,"root",{get(){return l.root}});let n=new e(u,r,this._opts,m);if(n.isMap()){let[d,c]=n.generate();d&&(this.result.css=d),c&&(this.result.map=c)}else n.clearAnnotation(),this.result.css=n.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(p){return this.async().catch(p)}finally(p){return this.async().then(p,p)}sync(){if(this.error)throw this.error;return this.result}then(p,m){return this.async().then(p,m)}toString(){return this._css}warnings(){return[]}get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let p,m=t;try{p=m(this._css,this._opts)}catch(f){this.error=f}if(this.error)throw this.error;return this._root=p,p}get[Symbol.toStringTag](){return"NoWorkResult"}}return Rr=a,a.default=a,Rr}var Or,wi;function ea(){if(wi)return Or;wi=1;let e=Zr(),t=cn(),s=Ko(),o=Ge();class i{constructor(h=[]){this.version="8.5.1",this.plugins=this.normalize(h)}normalize(h){let p=[];for(let m of h)if(m.postcss===!0?m=m():m.postcss&&(m=m.postcss),typeof m=="object"&&Array.isArray(m.plugins))p=p.concat(m.plugins);else if(typeof m=="object"&&m.postcssPlugin)p.push(m);else if(typeof m=="function")p.push(m);else if(!(typeof m=="object"&&(m.parse||m.stringify)))throw new Error(m+" is not a PostCSS plugin");return p}process(h,p={}){return!this.plugins.length&&!p.parser&&!p.stringifier&&!p.syntax?new s(this,h,p):new t(this,h,p)}use(h){return this.plugins=this.plugins.concat(this.normalize([h])),this}}return Or=i,i.default=i,o.registerProcessor(i),e.registerProcessor(i),Or}var Mr,bi;function hn(){if(bi)return Mr;bi=1;let e=Yr(),t=Ve(),s=Ie(),o=Gr(),i=bt(),a=Zr(),h=Xo(),p=St(),m=cn(),f=sn(),r=wt(),u=Xr(),l=ea(),n=Kr(),d=Ge(),c=Qr(),g=yt(),v=ln();function b(...S){return S.length===1&&Array.isArray(S[0])&&(S=S[0]),new l(S)}return b.plugin=function(x,y){let w=!1;function C(...E){console&&console.warn&&!w&&(w=!0,console.warn(x+`: postcss.plugin was deprecated. Migration guide:
66
+ `),n=b.length-g):n+=b.length,S&&x!=="start"){let y=S.parent||{raws:{}};(!(S.type==="decl"||S.type==="atrule"&&!S.nodes)||S!==y.last||y.raws.semicolon)&&(S.source&&S.source.end?(c.source=this.sourcePath(S),c.original.line=S.source.end.line,c.original.column=S.source.end.column-1,c.generated.line=l,c.generated.column=n-2,this.map.addMapping(c)):(c.source=d,c.original.line=1,c.original.column=0,c.generated.line=l,c.generated.column=n-1,this.map.addMapping(c)))}})}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation!="undefined"?this.mapOpts.annotation:this.previous().length?this.previous().some(l=>l.annotation):!0}isInline(){if(typeof this.mapOpts.inline!="undefined")return this.mapOpts.inline;let l=this.mapOpts.annotation;return typeof l!="undefined"&&l!==!0?!1:this.previous().length?this.previous().some(n=>n.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(l=>l.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(l){if(this.mapOpts.absolute||l.charCodeAt(0)===60||/^\w+:\/\//.test(l))return l;let n=this.memoizedPaths.get(l);if(n)return n;let d=this.opts.to?e(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(d=e(s(d,this.mapOpts.annotation)));let c=t(d,l);return this.memoizedPaths.set(l,c),c}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(l=>{if(l.source&&l.source.input.map){let n=l.source.input.map;this.previousMaps.includes(n)||this.previousMaps.push(n)}});else{let l=new p(this.originalCSS,this.opts);l.map&&this.previousMaps.push(l.map)}return this.previousMaps}setSourcesContent(){let l={};if(this.root)this.root.walk(n=>{if(n.source){let d=n.source.input.from;if(d&&!l[d]){l[d]=!0;let c=this.usesFileUrls?this.toFileUrl(d):this.toUrl(this.path(d));this.map.setSourceContent(c,n.source.input.css)}}});else if(this.css){let n=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(n,this.css)}}sourcePath(l){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(l.source.input.from):this.toUrl(this.path(l.source.input.from))}toBase64(l){return Buffer?Buffer.from(l).toString("base64"):window.btoa(unescape(encodeURIComponent(l)))}toFileUrl(l){let n=this.memoizedFileURLs.get(l);if(n)return n;if(h){let d=h(l).toString();return this.memoizedFileURLs.set(l,d),d}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(l){let n=this.memoizedURLs.get(l);if(n)return n;o==="\\"&&(l=l.replace(/\\/g,"/"));let d=encodeURI(l).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(l,d),d}}return gr=r,gr}var yr,ci;function on(){if(ci)return yr;ci=1;const e=39,t=34,s=92,o=47,i=10,a=32,h=12,p=9,m=13,f=91,r=93,u=40,l=41,n=123,d=125,c=59,g=42,v=58,b=64,S=/[\t\n\f\r "#'()/;[\\\]{}]/g,x=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,y=/.[\r\n"'(/\\]/,w=/[\da-f]/i;return yr=function(R,A={}){let M=R.css.valueOf(),N=A.ignoreErrors,P,ee,te,O,Z,T,$,Q,H,be,me=M.length,I=0,oe=[],ae=[];function Ae(){return I}function ge(J){throw R.error("Unclosed "+J,I)}function he(){return ae.length===0&&I>=me}function ie(J){if(ae.length)return ae.pop();if(I>=me)return;let _=J?J.ignoreUnclosed:!1;switch(P=M.charCodeAt(I),P){case i:case a:case p:case m:case h:{O=I;do O+=1,P=M.charCodeAt(O);while(P===a||P===i||P===p||P===m||P===h);T=["space",M.slice(I,O)],I=O-1;break}case f:case r:case n:case d:case v:case c:case l:{let X=String.fromCharCode(P);T=[X,X,I];break}case u:{if(be=oe.length?oe.pop()[1]:"",H=M.charCodeAt(I+1),be==="url"&&H!==e&&H!==t&&H!==a&&H!==i&&H!==p&&H!==h&&H!==m){O=I;do{if($=!1,O=M.indexOf(")",O+1),O===-1)if(N||_){O=I;break}else ge("bracket");for(Q=O;M.charCodeAt(Q-1)===s;)Q-=1,$=!$}while($);T=["brackets",M.slice(I,O+1),I,O],I=O}else O=M.indexOf(")",I+1),ee=M.slice(I,O+1),O===-1||y.test(ee)?T=["(","(",I]:(T=["brackets",ee,I,O],I=O);break}case e:case t:{Z=P===e?"'":'"',O=I;do{if($=!1,O=M.indexOf(Z,O+1),O===-1)if(N||_){O=I+1;break}else ge("string");for(Q=O;M.charCodeAt(Q-1)===s;)Q-=1,$=!$}while($);T=["string",M.slice(I,O+1),I,O],I=O;break}case b:{S.lastIndex=I+1,S.test(M),S.lastIndex===0?O=M.length-1:O=S.lastIndex-2,T=["at-word",M.slice(I,O+1),I,O],I=O;break}case s:{for(O=I,te=!0;M.charCodeAt(O+1)===s;)O+=1,te=!te;if(P=M.charCodeAt(O+1),te&&P!==o&&P!==a&&P!==i&&P!==p&&P!==m&&P!==h&&(O+=1,w.test(M.charAt(O)))){for(;w.test(M.charAt(O+1));)O+=1;M.charCodeAt(O+1)===a&&(O+=1)}T=["word",M.slice(I,O+1),I,O],I=O;break}default:{P===o&&M.charCodeAt(I+1)===g?(O=M.indexOf("*/",I+2)+1,O===0&&(N||_?O=M.length:ge("comment")),T=["comment",M.slice(I,O+1),I,O],I=O):(x.lastIndex=I+1,x.test(M),x.lastIndex===0?O=M.length-1:O=x.lastIndex-2,T=["word",M.slice(I,O+1),I,O],oe.push(T),I=O);break}}return I++,T}function Re(J){ae.push(J)}return{back:Re,endOfFile:he,nextToken:ie,position:Ae}},yr}var wr,hi;function an(){if(hi)return wr;hi=1;let e=Yr(),t=Ve(),s=bt(),o=Ge(),i=Qr(),a=on();const h={empty:!0,space:!0};function p(f){for(let r=f.length-1;r>=0;r--){let u=f[r],l=u[3]||u[2];if(l)return l}}class m{constructor(r){this.input=r,this.root=new o,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:r,start:{column:1,line:1,offset:0}}}atrule(r){let u=new e;u.name=r[1].slice(1),u.name===""&&this.unnamedAtrule(u,r),this.init(u,r[2]);let l,n,d,c=!1,g=!1,v=[],b=[];for(;!this.tokenizer.endOfFile();){if(r=this.tokenizer.nextToken(),l=r[0],l==="("||l==="["?b.push(l==="("?")":"]"):l==="{"&&b.length>0?b.push("}"):l===b[b.length-1]&&b.pop(),b.length===0)if(l===";"){u.source.end=this.getPosition(r[2]),u.source.end.offset++,this.semicolon=!0;break}else if(l==="{"){g=!0;break}else if(l==="}"){if(v.length>0){for(d=v.length-1,n=v[d];n&&n[0]==="space";)n=v[--d];n&&(u.source.end=this.getPosition(n[3]||n[2]),u.source.end.offset++)}this.end(r);break}else v.push(r);else v.push(r);if(this.tokenizer.endOfFile()){c=!0;break}}u.raws.between=this.spacesAndCommentsFromEnd(v),v.length?(u.raws.afterName=this.spacesAndCommentsFromStart(v),this.raw(u,"params",v),c&&(r=v[v.length-1],u.source.end=this.getPosition(r[3]||r[2]),u.source.end.offset++,this.spaces=u.raws.between,u.raws.between="")):(u.raws.afterName="",u.params=""),g&&(u.nodes=[],this.current=u)}checkMissedSemicolon(r){let u=this.colon(r);if(u===!1)return;let l=0,n;for(let d=u-1;d>=0&&(n=r[d],!(n[0]!=="space"&&(l+=1,l===2)));d--);throw this.input.error("Missed semicolon",n[0]==="word"?n[3]+1:n[2])}colon(r){let u=0,l,n,d;for(let[c,g]of r.entries()){if(n=g,d=n[0],d==="("&&(u+=1),d===")"&&(u-=1),u===0&&d===":")if(!l)this.doubleColon(n);else{if(l[0]==="word"&&l[1]==="progid")continue;return c}l=n}return!1}comment(r){let u=new t;this.init(u,r[2]),u.source.end=this.getPosition(r[3]||r[2]),u.source.end.offset++;let l=r[1].slice(2,-2);if(/^\s*$/.test(l))u.text="",u.raws.left=l,u.raws.right="";else{let n=l.match(/^(\s*)([^]*\S)(\s*)$/);u.text=n[2],u.raws.left=n[1],u.raws.right=n[3]}}createTokenizer(){this.tokenizer=a(this.input)}decl(r,u){let l=new s;this.init(l,r[0][2]);let n=r[r.length-1];for(n[0]===";"&&(this.semicolon=!0,r.pop()),l.source.end=this.getPosition(n[3]||n[2]||p(r)),l.source.end.offset++;r[0][0]!=="word";)r.length===1&&this.unknownWord(r),l.raws.before+=r.shift()[1];for(l.source.start=this.getPosition(r[0][2]),l.prop="";r.length;){let b=r[0][0];if(b===":"||b==="space"||b==="comment")break;l.prop+=r.shift()[1]}l.raws.between="";let d;for(;r.length;)if(d=r.shift(),d[0]===":"){l.raws.between+=d[1];break}else d[0]==="word"&&/\w/.test(d[1])&&this.unknownWord([d]),l.raws.between+=d[1];(l.prop[0]==="_"||l.prop[0]==="*")&&(l.raws.before+=l.prop[0],l.prop=l.prop.slice(1));let c=[],g;for(;r.length&&(g=r[0][0],!(g!=="space"&&g!=="comment"));)c.push(r.shift());this.precheckMissedSemicolon(r);for(let b=r.length-1;b>=0;b--){if(d=r[b],d[1].toLowerCase()==="!important"){l.important=!0;let S=this.stringFrom(r,b);S=this.spacesFromEnd(r)+S,S!==" !important"&&(l.raws.important=S);break}else if(d[1].toLowerCase()==="important"){let S=r.slice(0),x="";for(let y=b;y>0;y--){let w=S[y][0];if(x.trim().startsWith("!")&&w!=="space")break;x=S.pop()[1]+x}x.trim().startsWith("!")&&(l.important=!0,l.raws.important=x,r=S)}if(d[0]!=="space"&&d[0]!=="comment")break}r.some(b=>b[0]!=="space"&&b[0]!=="comment")&&(l.raws.between+=c.map(b=>b[1]).join(""),c=[]),this.raw(l,"value",c.concat(r),u),l.value.includes(":")&&!u&&this.checkMissedSemicolon(r)}doubleColon(r){throw this.input.error("Double colon",{offset:r[2]},{offset:r[2]+r[1].length})}emptyRule(r){let u=new i;this.init(u,r[2]),u.selector="",u.raws.between="",this.current=u}end(r){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(r[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(r)}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(r){if(this.spaces+=r[1],this.current.nodes){let u=this.current.nodes[this.current.nodes.length-1];u&&u.type==="rule"&&!u.raws.ownSemicolon&&(u.raws.ownSemicolon=this.spaces,this.spaces="")}}getPosition(r){let u=this.input.fromOffset(r);return{column:u.col,line:u.line,offset:r}}init(r,u){this.current.push(r),r.source={input:this.input,start:this.getPosition(u)},r.raws.before=this.spaces,this.spaces="",r.type!=="comment"&&(this.semicolon=!1)}other(r){let u=!1,l=null,n=!1,d=null,c=[],g=r[1].startsWith("--"),v=[],b=r;for(;b;){if(l=b[0],v.push(b),l==="("||l==="[")d||(d=b),c.push(l==="("?")":"]");else if(g&&n&&l==="{")d||(d=b),c.push("}");else if(c.length===0)if(l===";")if(n){this.decl(v,g);return}else break;else if(l==="{"){this.rule(v);return}else if(l==="}"){this.tokenizer.back(v.pop()),u=!0;break}else l===":"&&(n=!0);else l===c[c.length-1]&&(c.pop(),c.length===0&&(d=null));b=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(u=!0),c.length>0&&this.unclosedBracket(d),u&&n){if(!g)for(;v.length&&(b=v[v.length-1][0],!(b!=="space"&&b!=="comment"));)this.tokenizer.back(v.pop());this.decl(v,g)}else this.unknownWord(v)}parse(){let r;for(;!this.tokenizer.endOfFile();)switch(r=this.tokenizer.nextToken(),r[0]){case"space":this.spaces+=r[1];break;case";":this.freeSemicolon(r);break;case"}":this.end(r);break;case"comment":this.comment(r);break;case"at-word":this.atrule(r);break;case"{":this.emptyRule(r);break;default:this.other(r);break}this.endFile()}precheckMissedSemicolon(){}raw(r,u,l,n){let d,c,g=l.length,v="",b=!0,S,x;for(let y=0;y<g;y+=1)d=l[y],c=d[0],c==="space"&&y===g-1&&!n?b=!1:c==="comment"?(x=l[y-1]?l[y-1][0]:"empty",S=l[y+1]?l[y+1][0]:"empty",!h[x]&&!h[S]?v.slice(-1)===","?b=!1:v+=d[1]:b=!1):v+=d[1];if(!b){let y=l.reduce((w,C)=>w+C[1],"");r.raws[u]={raw:y,value:v}}r[u]=v}rule(r){r.pop();let u=new i;this.init(u,r[0][2]),u.raws.between=this.spacesAndCommentsFromEnd(r),this.raw(u,"selector",r),this.current=u}spacesAndCommentsFromEnd(r){let u,l="";for(;r.length&&(u=r[r.length-1][0],!(u!=="space"&&u!=="comment"));)l=r.pop()[1]+l;return l}spacesAndCommentsFromStart(r){let u,l="";for(;r.length&&(u=r[0][0],!(u!=="space"&&u!=="comment"));)l+=r.shift()[1];return l}spacesFromEnd(r){let u,l="";for(;r.length&&(u=r[r.length-1][0],u==="space");)l=r.pop()[1]+l;return l}stringFrom(r,u){let l="";for(let n=u;n<r.length;n++)l+=r[n][1];return r.splice(u,r.length-u),l}unclosedBlock(){let r=this.current.source.start;throw this.input.error("Unclosed block",r.line,r.column)}unclosedBracket(r){throw this.input.error("Unclosed bracket",{offset:r[2]},{offset:r[2]+1})}unexpectedClose(r){throw this.input.error("Unexpected }",{offset:r[2]},{offset:r[2]+1})}unknownWord(r){throw this.input.error("Unknown word",{offset:r[0][2]},{offset:r[0][2]+r[0][1].length})}unnamedAtrule(r,u){throw this.input.error("At-rule without name",{offset:u[2]},{offset:u[2]+u[1].length})}}return wr=m,wr}var br,fi;function Xr(){if(fi)return br;fi=1;let e=Ie(),t=St(),s=an();function o(i,a){let h=new t(i,a),p=new s(h);try{p.parse()}catch(m){throw m}return p.root}return br=o,o.default=o,e.registerParse(o),br}var Sr,pi;function ln(){if(pi)return Sr;pi=1;class e{constructor(s,o={}){if(this.type="warning",this.text=s,o.node&&o.node.source){let i=o.node.rangeBy(o);this.line=i.start.line,this.column=i.start.column,this.endLine=i.end.line,this.endColumn=i.end.column}for(let i in o)this[i]=o[i]}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 Sr=e,e.default=e,Sr}var vr,di;function Kr(){if(di)return vr;di=1;let e=ln();class t{constructor(o,i,a){this.processor=o,this.messages=[],this.root=i,this.opts=a,this.css=void 0,this.map=void 0}toString(){return this.css}warn(o,i={}){i.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(i.plugin=this.lastPlugin.postcssPlugin);let a=new e(o,i);return this.messages.push(a),a}warnings(){return this.messages.filter(o=>o.type==="warning")}get content(){return this.css}}return vr=t,t.default=t,vr}var Cr,mi;function un(){if(mi)return Cr;mi=1;let e={};return Cr=function(s){e[s]||(e[s]=!0,typeof console!="undefined"&&console.warn&&console.warn(s))},Cr}var xr,gi;function cn(){if(gi)return xr;gi=1;let e=Ie(),t=Zr(),s=nn(),o=Xr(),i=Kr(),a=Ge(),h=yt(),{isClean:p,my:m}=Jr(),f=un();const r={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},u={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},l={Once:!0,postcssPlugin:!0,prepare:!0},n=0;function d(x){return typeof x=="object"&&typeof x.then=="function"}function c(x){let y=!1,w=r[x.type];return x.type==="decl"?y=x.prop.toLowerCase():x.type==="atrule"&&(y=x.name.toLowerCase()),y&&x.append?[w,w+"-"+y,n,w+"Exit",w+"Exit-"+y]:y?[w,w+"-"+y,w+"Exit",w+"Exit-"+y]:x.append?[w,n,w+"Exit"]:[w,w+"Exit"]}function g(x){let y;return x.type==="document"?y=["Document",n,"DocumentExit"]:x.type==="root"?y=["Root",n,"RootExit"]:y=c(x),{eventIndex:0,events:y,iterator:0,node:x,visitorIndex:0,visitors:[]}}function v(x){return x[p]=!1,x.nodes&&x.nodes.forEach(y=>v(y)),x}let b={};class S{constructor(y,w,C){this.stringified=!1,this.processed=!1;let R;if(typeof w=="object"&&w!==null&&(w.type==="root"||w.type==="document"))R=v(w);else if(w instanceof S||w instanceof i)R=v(w.root),w.map&&(typeof C.map=="undefined"&&(C.map={}),C.map.inline||(C.map.inline=!1),C.map.prev=w.map);else{let A=o;C.syntax&&(A=C.syntax.parse),C.parser&&(A=C.parser),A.parse&&(A=A.parse);try{R=A(w,C)}catch(M){this.processed=!0,this.error=M}R&&!R[m]&&e.rebuild(R)}this.result=new i(y,R,C),this.helpers=le(D({},b),{postcss:b,result:this.result}),this.plugins=this.processor.plugins.map(A=>typeof A=="object"&&A.prepare?D(D({},A),A.prepare(this.result)):A)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(y){return this.async().catch(y)}finally(y){return this.async().then(y,y)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(y,w){let C=this.result.lastPlugin;try{w&&w.addToError(y),this.error=y,y.name==="CssSyntaxError"&&!y.plugin?(y.plugin=C.postcssPlugin,y.setMessage()):C.postcssVersion}catch(R){console&&console.error&&console.error(R)}return y}prepareVisitors(){this.listeners={};let y=(w,C,R)=>{this.listeners[C]||(this.listeners[C]=[]),this.listeners[C].push([w,R])};for(let w of this.plugins)if(typeof w=="object")for(let C in w){if(!u[C]&&/^[A-Z]/.test(C))throw new Error(`Unknown event ${C} in ${w.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!l[C])if(typeof w[C]=="object")for(let R in w[C])R==="*"?y(w,C,w[C][R]):y(w,C+"-"+R.toLowerCase(),w[C][R]);else typeof w[C]=="function"&&y(w,C,w[C])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let y=0;y<this.plugins.length;y++){let w=this.plugins[y],C=this.runOnRoot(w);if(d(C))try{await C}catch(R){throw this.handleError(R)}}if(this.prepareVisitors(),this.hasListener){let y=this.result.root;for(;!y[p];){y[p]=!0;let w=[g(y)];for(;w.length>0;){let C=this.visitTick(w);if(d(C))try{await C}catch(R){let A=w[w.length-1].node;throw this.handleError(R,A)}}}if(this.listeners.OnceExit)for(let[w,C]of this.listeners.OnceExit){this.result.lastPlugin=w;try{if(y.type==="document"){let R=y.nodes.map(A=>C(A,this.helpers));await Promise.all(R)}else await C(y,this.helpers)}catch(R){throw this.handleError(R)}}}return this.processed=!0,this.stringify()}runOnRoot(y){this.result.lastPlugin=y;try{if(typeof y=="object"&&y.Once){if(this.result.root.type==="document"){let w=this.result.root.nodes.map(C=>y.Once(C,this.helpers));return d(w[0])?Promise.all(w):w}return y.Once(this.result.root,this.helpers)}else if(typeof y=="function")return y(this.result.root,this.result)}catch(w){throw this.handleError(w)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let y=this.result.opts,w=h;y.syntax&&(w=y.syntax.stringify),y.stringifier&&(w=y.stringifier),w.stringify&&(w=w.stringify);let R=new s(w,this.result.root,this.result.opts).generate();return this.result.css=R[0],this.result.map=R[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let y of this.plugins){let w=this.runOnRoot(y);if(d(w))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let y=this.result.root;for(;!y[p];)y[p]=!0,this.walkSync(y);if(this.listeners.OnceExit)if(y.type==="document")for(let w of y.nodes)this.visitSync(this.listeners.OnceExit,w);else this.visitSync(this.listeners.OnceExit,y)}return this.result}then(y,w){return this.async().then(y,w)}toString(){return this.css}visitSync(y,w){for(let[C,R]of y){this.result.lastPlugin=C;let A;try{A=R(w,this.helpers)}catch(M){throw this.handleError(M,w.proxyOf)}if(w.type!=="root"&&w.type!=="document"&&!w.parent)return!0;if(d(A))throw this.getAsyncError()}}visitTick(y){let w=y[y.length-1],{node:C,visitors:R}=w;if(C.type!=="root"&&C.type!=="document"&&!C.parent){y.pop();return}if(R.length>0&&w.visitorIndex<R.length){let[M,N]=R[w.visitorIndex];w.visitorIndex+=1,w.visitorIndex===R.length&&(w.visitors=[],w.visitorIndex=0),this.result.lastPlugin=M;try{return N(C.toProxy(),this.helpers)}catch(P){throw this.handleError(P,C)}}if(w.iterator!==0){let M=w.iterator,N;for(;N=C.nodes[C.indexes[M]];)if(C.indexes[M]+=1,!N[p]){N[p]=!0,y.push(g(N));return}w.iterator=0,delete C.indexes[M]}let A=w.events;for(;w.eventIndex<A.length;){let M=A[w.eventIndex];if(w.eventIndex+=1,M===n){C.nodes&&C.nodes.length&&(C[p]=!0,w.iterator=C.getIterator());return}else if(this.listeners[M]){w.visitors=this.listeners[M];return}}y.pop()}walkSync(y){y[p]=!0;let w=c(y);for(let C of w)if(C===n)y.nodes&&y.each(R=>{R[p]||this.walkSync(R)});else{let R=this.listeners[C];if(R&&this.visitSync(R,y.toProxy()))return}}warnings(){return this.sync().warnings()}get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}}return S.registerPostcss=x=>{b=x},xr=S,S.default=S,a.registerLazyResult(S),t.registerLazyResult(S),xr}var Rr,yi;function Ko(){if(yi)return Rr;yi=1;let e=nn(),t=Xr();const s=Kr();let o=yt(),i=un();class a{constructor(p,m,f){m=m.toString(),this.stringified=!1,this._processor=p,this._css=m,this._opts=f,this._map=void 0;let r,u=o;this.result=new s(this._processor,r,this._opts),this.result.css=m;let l=this;Object.defineProperty(this.result,"root",{get(){return l.root}});let n=new e(u,r,this._opts,m);if(n.isMap()){let[d,c]=n.generate();d&&(this.result.css=d),c&&(this.result.map=c)}else n.clearAnnotation(),this.result.css=n.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(p){return this.async().catch(p)}finally(p){return this.async().then(p,p)}sync(){if(this.error)throw this.error;return this.result}then(p,m){return this.async().then(p,m)}toString(){return this._css}warnings(){return[]}get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let p,m=t;try{p=m(this._css,this._opts)}catch(f){this.error=f}if(this.error)throw this.error;return this._root=p,p}get[Symbol.toStringTag](){return"NoWorkResult"}}return Rr=a,a.default=a,Rr}var Or,wi;function ea(){if(wi)return Or;wi=1;let e=Zr(),t=cn(),s=Ko(),o=Ge();class i{constructor(h=[]){this.version="8.5.1",this.plugins=this.normalize(h)}normalize(h){let p=[];for(let m of h)if(m.postcss===!0?m=m():m.postcss&&(m=m.postcss),typeof m=="object"&&Array.isArray(m.plugins))p=p.concat(m.plugins);else if(typeof m=="object"&&m.postcssPlugin)p.push(m);else if(typeof m=="function")p.push(m);else if(!(typeof m=="object"&&(m.parse||m.stringify)))throw new Error(m+" is not a PostCSS plugin");return p}process(h,p={}){return!this.plugins.length&&!p.parser&&!p.stringifier&&!p.syntax?new s(this,h,p):new t(this,h,p)}use(h){return this.plugins=this.plugins.concat(this.normalize([h])),this}}return Or=i,i.default=i,o.registerProcessor(i),e.registerProcessor(i),Or}var Mr,bi;function hn(){if(bi)return Mr;bi=1;let e=Yr(),t=Ve(),s=Ie(),o=Gr(),i=bt(),a=Zr(),h=Xo(),p=St(),m=cn(),f=sn(),r=wt(),u=Xr(),l=ea(),n=Kr(),d=Ge(),c=Qr(),g=yt(),v=ln();function b(...S){return S.length===1&&Array.isArray(S[0])&&(S=S[0]),new l(S)}return b.plugin=function(x,y){let w=!1;function C(...A){console&&console.warn&&!w&&(w=!0,console.warn(x+`: postcss.plugin was deprecated. Migration guide:
67
67
  https://evilmartians.com/chronicles/postcss-8-plugin-migration`),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(x+`: \u91CC\u9762 postcss.plugin \u88AB\u5F03\u7528. \u8FC1\u79FB\u6307\u5357:
68
- https://www.w3ctech.com/topic/2226`));let M=y(...E);return M.postcssPlugin=x,M.postcssVersion=new l().version,M}let R;return Object.defineProperty(C,"postcss",{get(){return R||(R=C()),R}}),C.process=function(E,M,N){return b([C(N)]).process(E,M)},C},b.stringify=g,b.parse=u,b.fromJSON=h,b.list=f,b.comment=S=>new t(S),b.atRule=S=>new e(S),b.decl=S=>new i(S),b.rule=S=>new c(S),b.root=S=>new d(S),b.document=S=>new a(S),b.CssSyntaxError=o,b.Declaration=i,b.Container=s,b.Processor=l,b.Document=a,b.Comment=t,b.Warning=v,b.AtRule=e,b.Result=n,b.Input=p,b.Rule=c,b.Root=d,b.Node=r,m.registerPostcss(b),Mr=b,b.default=b,Mr}var Ir,Si;function ta(){if(Si)return Ir;Si=1;let e=Ve(),t=an(),s=on();class o extends t{checkMissedSemicolon(){}comment(a){let h=new e;this.init(h,a[2]);let p=this.input.fromOffset(a[3])||this.input.fromOffset(this.input.css.length-1);h.source.end={column:p.col,line:p.line,offset:a[3]+1};let m=a[1].slice(2);if(m.slice(-2)==="*/"&&(m=m.slice(0,-2)),/^\s*$/.test(m))h.text="",h.raws.left=m,h.raws.right="";else{let f=m.match(/^(\s*)([^]*\S)(\s*)$/);h.text=f[2],h.raws.left=f[1],h.raws.right=f[3]}}createTokenizer(){this.tokenizer=s(this.input,{ignoreErrors:!0})}decl(a){a.length>1&&a.some(h=>h[0]==="word")&&super.decl(a)}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(a){let h=this.colon(a);if(h===!1)return;let p,m;for(p=h-1;p>=0&&a[p][0]!=="word";p--);if(p===0||p<0)return;for(m=p-1;m>=0;m--)if(a[m][0]!=="space"){m+=1;break}let f=a.slice(p),r=a.slice(m,p);a.splice(m,a.length-m),this.spaces=r.map(u=>u[1]).join(""),this.decl(f)}unclosedBracket(){}unexpectedClose(){this.current.raws.after+="}"}unknownWord(a){this.spaces+=a.map(h=>h[1]).join("")}unnamedAtrule(a){a.name=""}}return Ir=o,Ir}var Er,vi;function ra(){if(vi)return Er;vi=1;let{Input:e}=hn(),t=ta();return Er=function(o,i){let a=new e(o,i),h=new t(a);return h.parse(),h.root},Er}ra();var sa=hn();const q=Vo(sa);q.stringify;q.fromJSON;q.plugin;q.parse;q.list;q.document;q.comment;q.atRule;q.rule;q.decl;q.root;q.CssSyntaxError;q.Declaration;q.Container;q.Processor;q.Document;q.Comment;q.Warning;q.AtRule;q.Result;q.Input;q.Rule;q.Root;q.Node;class es{constructor(...t){ue(this,"parentElement",null),ue(this,"parentNode",null),ue(this,"ownerDocument"),ue(this,"firstChild",null),ue(this,"lastChild",null),ue(this,"previousSibling",null),ue(this,"nextSibling",null),ue(this,"ELEMENT_NODE",1),ue(this,"TEXT_NODE",3),ue(this,"nodeType"),ue(this,"nodeName"),ue(this,"RRNodeType")}get childNodes(){const t=[];let s=this.firstChild;for(;s;)t.push(s),s=s.nextSibling;return t}contains(t){if(t instanceof es){if(t.ownerDocument!==this.ownerDocument)return!1;if(t===this)return!0}else return!1;for(;t.parentNode;){if(t.parentNode===this)return!0;t=t.parentNode}return!1}appendChild(t){throw new Error("RRDomException: Failed to execute 'appendChild' on 'RRNode': This RRNode type does not support this method.")}insertBefore(t,s){throw new Error("RRDomException: Failed to execute 'insertBefore' on 'RRNode': This RRNode type does not support this method.")}removeChild(t){throw new Error("RRDomException: Failed to execute 'removeChild' on 'RRNode': This RRNode type does not support this method.")}toString(){return"RRNode"}}const Ci={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},xi={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},tt={};function ia(e){var t,s;const o=(s=(t=globalThis==null?void 0:globalThis.Zone)==null?void 0:t.__symbol__)==null?void 0:s.call(t,e);if(o&&globalThis[o])return globalThis[o]}function ts(e){if(tt[e])return tt[e];const t=ia(e)||globalThis[e],s=t.prototype,o=e in Ci?Ci[e]:void 0,i=!!(o&&o.every(p=>{var m,f;return!!((f=(m=Object.getOwnPropertyDescriptor(s,p))==null?void 0:m.get)!=null&&f.toString().includes("[native code]"))})),a=e in xi?xi[e]:void 0,h=!!(a&&a.every(p=>{var m;return typeof s[p]=="function"&&((m=s[p])==null?void 0:m.toString().includes("[native code]"))}));if(i&&h)return tt[e]=t.prototype,t.prototype;try{const p=document.createElement("iframe");document.body.appendChild(p);const m=p.contentWindow;if(!m)return t.prototype;const f=m[e].prototype;return document.body.removeChild(p),f?tt[e]=f:s}catch(p){return s}}const Ar={};function Ce(e,t,s){var o;const i=`${e}.${String(s)}`;if(Ar[i])return Ar[i].call(t);const a=ts(e),h=(o=Object.getOwnPropertyDescriptor(a,s))==null?void 0:o.get;return h?(Ar[i]=h,h.call(t)):t[s]}const Pr={};function fn(e,t,s){const o=`${e}.${String(s)}`;if(Pr[o])return Pr[o].bind(t);const a=ts(e)[s];return typeof a!="function"?t[s]:(Pr[o]=a,a.bind(t))}function na(e){return Ce("Node",e,"childNodes")}function oa(e){return Ce("Node",e,"parentNode")}function aa(e){return Ce("Node",e,"parentElement")}function la(e){return Ce("Node",e,"textContent")}function ua(e,t){return fn("Node",e,"contains")(t)}function ca(e){return fn("Node",e,"getRootNode")()}function ha(e){return!e||!("host"in e)?null:Ce("ShadowRoot",e,"host")}function fa(e){return e.styleSheets}function pa(e){return!e||!("shadowRoot"in e)?null:Ce("Element",e,"shadowRoot")}function da(e,t){return Ce("Element",e,"querySelector")(t)}function ma(e,t){return Ce("Element",e,"querySelectorAll")(t)}function pn(){return ts("MutationObserver").constructor}function Ee(e,t,s){try{if(!(t in e))return()=>{};const o=e[t],i=s(o);return typeof i=="function"&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:o}})),e[t]=i,()=>{e[t]=o}}catch(o){return()=>{}}}const k={childNodes:na,parentNode:oa,parentElement:aa,textContent:la,contains:ua,getRootNode:ca,host:ha,styleSheets:fa,shadowRoot:pa,querySelector:da,querySelectorAll:ma,mutationObserver:pn,patch:Ee};function re(e,t,s=document){const o={capture:!0,passive:!0};return s.addEventListener(e,t,o),()=>s.removeEventListener(e,t,o)}const ke=`Please stop import mirror directly. Instead of that,\r
68
+ https://www.w3ctech.com/topic/2226`));let M=y(...A);return M.postcssPlugin=x,M.postcssVersion=new l().version,M}let R;return Object.defineProperty(C,"postcss",{get(){return R||(R=C()),R}}),C.process=function(A,M,N){return b([C(N)]).process(A,M)},C},b.stringify=g,b.parse=u,b.fromJSON=h,b.list=f,b.comment=S=>new t(S),b.atRule=S=>new e(S),b.decl=S=>new i(S),b.rule=S=>new c(S),b.root=S=>new d(S),b.document=S=>new a(S),b.CssSyntaxError=o,b.Declaration=i,b.Container=s,b.Processor=l,b.Document=a,b.Comment=t,b.Warning=v,b.AtRule=e,b.Result=n,b.Input=p,b.Rule=c,b.Root=d,b.Node=r,m.registerPostcss(b),Mr=b,b.default=b,Mr}var Ir,Si;function ta(){if(Si)return Ir;Si=1;let e=Ve(),t=an(),s=on();class o extends t{checkMissedSemicolon(){}comment(a){let h=new e;this.init(h,a[2]);let p=this.input.fromOffset(a[3])||this.input.fromOffset(this.input.css.length-1);h.source.end={column:p.col,line:p.line,offset:a[3]+1};let m=a[1].slice(2);if(m.slice(-2)==="*/"&&(m=m.slice(0,-2)),/^\s*$/.test(m))h.text="",h.raws.left=m,h.raws.right="";else{let f=m.match(/^(\s*)([^]*\S)(\s*)$/);h.text=f[2],h.raws.left=f[1],h.raws.right=f[3]}}createTokenizer(){this.tokenizer=s(this.input,{ignoreErrors:!0})}decl(a){a.length>1&&a.some(h=>h[0]==="word")&&super.decl(a)}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(a){let h=this.colon(a);if(h===!1)return;let p,m;for(p=h-1;p>=0&&a[p][0]!=="word";p--);if(p===0||p<0)return;for(m=p-1;m>=0;m--)if(a[m][0]!=="space"){m+=1;break}let f=a.slice(p),r=a.slice(m,p);a.splice(m,a.length-m),this.spaces=r.map(u=>u[1]).join(""),this.decl(f)}unclosedBracket(){}unexpectedClose(){this.current.raws.after+="}"}unknownWord(a){this.spaces+=a.map(h=>h[1]).join("")}unnamedAtrule(a){a.name=""}}return Ir=o,Ir}var Er,vi;function ra(){if(vi)return Er;vi=1;let{Input:e}=hn(),t=ta();return Er=function(o,i){let a=new e(o,i),h=new t(a);return h.parse(),h.root},Er}ra();var sa=hn();const q=Vo(sa);q.stringify;q.fromJSON;q.plugin;q.parse;q.list;q.document;q.comment;q.atRule;q.rule;q.decl;q.root;q.CssSyntaxError;q.Declaration;q.Container;q.Processor;q.Document;q.Comment;q.Warning;q.AtRule;q.Result;q.Input;q.Rule;q.Root;q.Node;class es{constructor(...t){ue(this,"parentElement",null),ue(this,"parentNode",null),ue(this,"ownerDocument"),ue(this,"firstChild",null),ue(this,"lastChild",null),ue(this,"previousSibling",null),ue(this,"nextSibling",null),ue(this,"ELEMENT_NODE",1),ue(this,"TEXT_NODE",3),ue(this,"nodeType"),ue(this,"nodeName"),ue(this,"RRNodeType")}get childNodes(){const t=[];let s=this.firstChild;for(;s;)t.push(s),s=s.nextSibling;return t}contains(t){if(t instanceof es){if(t.ownerDocument!==this.ownerDocument)return!1;if(t===this)return!0}else return!1;for(;t.parentNode;){if(t.parentNode===this)return!0;t=t.parentNode}return!1}appendChild(t){throw new Error("RRDomException: Failed to execute 'appendChild' on 'RRNode': This RRNode type does not support this method.")}insertBefore(t,s){throw new Error("RRDomException: Failed to execute 'insertBefore' on 'RRNode': This RRNode type does not support this method.")}removeChild(t){throw new Error("RRDomException: Failed to execute 'removeChild' on 'RRNode': This RRNode type does not support this method.")}toString(){return"RRNode"}}const Ci={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},xi={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},tt={};function ia(e){var t,s;const o=(s=(t=globalThis==null?void 0:globalThis.Zone)==null?void 0:t.__symbol__)==null?void 0:s.call(t,e);if(o&&globalThis[o])return globalThis[o]}function ts(e){if(tt[e])return tt[e];const t=ia(e)||globalThis[e],s=t.prototype,o=e in Ci?Ci[e]:void 0,i=!!(o&&o.every(p=>{var m,f;return!!((f=(m=Object.getOwnPropertyDescriptor(s,p))==null?void 0:m.get)!=null&&f.toString().includes("[native code]"))})),a=e in xi?xi[e]:void 0,h=!!(a&&a.every(p=>{var m;return typeof s[p]=="function"&&((m=s[p])==null?void 0:m.toString().includes("[native code]"))}));if(i&&h)return tt[e]=t.prototype,t.prototype;try{const p=document.createElement("iframe");document.body.appendChild(p);const m=p.contentWindow;if(!m)return t.prototype;const f=m[e].prototype;return document.body.removeChild(p),f?tt[e]=f:s}catch(p){return s}}const Ar={};function Ce(e,t,s){var o;const i=`${e}.${String(s)}`;if(Ar[i])return Ar[i].call(t);const a=ts(e),h=(o=Object.getOwnPropertyDescriptor(a,s))==null?void 0:o.get;return h?(Ar[i]=h,h.call(t)):t[s]}const Pr={};function fn(e,t,s){const o=`${e}.${String(s)}`;if(Pr[o])return Pr[o].bind(t);const a=ts(e)[s];return typeof a!="function"?t[s]:(Pr[o]=a,a.bind(t))}function na(e){return Ce("Node",e,"childNodes")}function oa(e){return Ce("Node",e,"parentNode")}function aa(e){return Ce("Node",e,"parentElement")}function la(e){return Ce("Node",e,"textContent")}function ua(e,t){return fn("Node",e,"contains")(t)}function ca(e){return fn("Node",e,"getRootNode")()}function ha(e){return!e||!("host"in e)?null:Ce("ShadowRoot",e,"host")}function fa(e){return e.styleSheets}function pa(e){return!e||!("shadowRoot"in e)?null:Ce("Element",e,"shadowRoot")}function da(e,t){return Ce("Element",e,"querySelector")(t)}function ma(e,t){return Ce("Element",e,"querySelectorAll")(t)}function pn(){return ts("MutationObserver").constructor}function Ee(e,t,s){try{if(!(t in e))return()=>{};const o=e[t],i=s(o);return typeof i=="function"&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:o}})),e[t]=i,()=>{e[t]=o}}catch(o){return()=>{}}}const k={childNodes:na,parentNode:oa,parentElement:aa,textContent:la,contains:ua,getRootNode:ca,host:ha,styleSheets:fa,shadowRoot:pa,querySelector:da,querySelectorAll:ma,mutationObserver:pn,patch:Ee};function re(e,t,s=document){const o={capture:!0,passive:!0};return s.addEventListener(e,t,o),()=>s.removeEventListener(e,t,o)}const ke=`Please stop import mirror directly. Instead of that,\r
69
69
  now you can use replayer.getMirror() to access the mirror instance of a replayer,\r
70
- or you can use record.mirror to access the mirror instance during recording.`;let Ri={map:{},getId(){return console.error(ke),-1},getNode(){return console.error(ke),null},removeNodeFromMap(){console.error(ke)},has(){return console.error(ke),!1},reset(){console.error(ke)}};typeof window!="undefined"&&window.Proxy&&window.Reflect&&(Ri=new Proxy(Ri,{get(e,t,s){return t==="map"&&console.error(ke),Reflect.get(e,t,s)}}));function qe(e,t,s={}){let o=null,i=0;return function(...a){const h=Date.now();!i&&s.leading===!1&&(i=h);const p=t-(h-i),m=this;p<=0||p>t?(o&&(clearTimeout(o),o=null),i=h,e.apply(m,a)):!o&&s.trailing!==!1&&(o=setTimeout(()=>{i=s.leading===!1?0:Date.now(),o=null,e.apply(m,a)},p))}}function vt(e,t,s,o,i=window){const a=i.Object.getOwnPropertyDescriptor(e,t);return i.Object.defineProperty(e,t,o?s:{set(h){setTimeout(()=>{s.set.call(this,h)},0),a&&a.set&&a.set.call(this,h)}}),()=>vt(e,t,a||{},!0)}let ct=Date.now;/[1-9][0-9]{12}/.test(Date.now().toString())||(ct=()=>new Date().getTime());function dn(e){var t,s,o,i;const a=e.document;return{left:a.scrollingElement?a.scrollingElement.scrollLeft:e.pageXOffset!==void 0?e.pageXOffset:a.documentElement.scrollLeft||(a==null?void 0:a.body)&&((t=k.parentElement(a.body))==null?void 0:t.scrollLeft)||((s=a==null?void 0:a.body)==null?void 0:s.scrollLeft)||0,top:a.scrollingElement?a.scrollingElement.scrollTop:e.pageYOffset!==void 0?e.pageYOffset:(a==null?void 0:a.documentElement.scrollTop)||(a==null?void 0:a.body)&&((o=k.parentElement(a.body))==null?void 0:o.scrollTop)||((i=a==null?void 0:a.body)==null?void 0:i.scrollTop)||0}}function mn(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function gn(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function yn(e){return e?e.nodeType===e.ELEMENT_NODE?e:k.parentElement(e):null}function se(e,t,s,o){if(!e)return!1;const i=yn(e);if(!i)return!1;try{if(typeof t=="string"){if(i.classList.contains(t)||o&&i.closest("."+t)!==null)return!0}else if(ut(i,t,o))return!0}catch(a){}return!!(s&&(i.matches(s)||o&&i.closest(s)!==null))}function ga(e,t){return t.getId(e)!==-1}function Nr(e,t,s){return e.tagName==="TITLE"&&s.headTitleMutations?!0:t.getId(e)===ze}function wn(e,t){if(Be(e))return!1;const s=t.getId(e);if(!t.has(s))return!0;const o=k.parentNode(e);return o&&o.nodeType===e.DOCUMENT_NODE?!1:o?wn(o,t):!0}function kr(e){return!!e.changedTouches}function ya(e=window){"NodeList"in e&&!e.NodeList.prototype.forEach&&(e.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in e&&!e.DOMTokenList.prototype.forEach&&(e.DOMTokenList.prototype.forEach=Array.prototype.forEach)}function bn(e,t){return!!(e.nodeName==="IFRAME"&&t.getMeta(e))}function Sn(e,t){return!!(e.nodeName==="LINK"&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&e.getAttribute("rel")==="stylesheet"&&t.getMeta(e))}function Dr(e){return e?e instanceof es&&"shadowRoot"in e?!!e.shadowRoot:!!k.shadowRoot(e):!1}class wa{constructor(){A(this,"id",1),A(this,"styleIDMap",new WeakMap),A(this,"idStyleMap",new Map)}getId(t){var s;return(s=this.styleIDMap.get(t))!=null?s:-1}has(t){return this.styleIDMap.has(t)}add(t,s){if(this.has(t))return this.getId(t);let o;return s===void 0?o=this.id++:o=s,this.styleIDMap.set(t,o),this.idStyleMap.set(o,t),o}getStyle(t){return this.idStyleMap.get(t)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}}function vn(e){var t;let s=null;return"getRootNode"in e&&((t=k.getRootNode(e))==null?void 0:t.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&k.host(k.getRootNode(e))&&(s=k.host(k.getRootNode(e))),s}function ba(e){let t=e,s;for(;s=vn(t);)t=s;return t}function Sa(e){const t=e.ownerDocument;if(!t)return!1;const s=ba(e);return k.contains(t,s)}function Cn(e){const t=e.ownerDocument;return t?k.contains(t,e)||Sa(e):!1}var $=(e=>(e[e.DomContentLoaded=0]="DomContentLoaded",e[e.Load=1]="Load",e[e.FullSnapshot=2]="FullSnapshot",e[e.IncrementalSnapshot=3]="IncrementalSnapshot",e[e.Meta=4]="Meta",e[e.Custom=5]="Custom",e[e.Plugin=6]="Plugin",e))($||{}),L=(e=>(e[e.Mutation=0]="Mutation",e[e.MouseMove=1]="MouseMove",e[e.MouseInteraction=2]="MouseInteraction",e[e.Scroll=3]="Scroll",e[e.ViewportResize=4]="ViewportResize",e[e.Input=5]="Input",e[e.TouchMove=6]="TouchMove",e[e.MediaInteraction=7]="MediaInteraction",e[e.StyleSheetRule=8]="StyleSheetRule",e[e.CanvasMutation=9]="CanvasMutation",e[e.Font=10]="Font",e[e.Log=11]="Log",e[e.Drag=12]="Drag",e[e.StyleDeclaration=13]="StyleDeclaration",e[e.Selection=14]="Selection",e[e.AdoptedStyleSheet=15]="AdoptedStyleSheet",e[e.CustomElement=16]="CustomElement",e))(L||{}),ie=(e=>(e[e.MouseUp=0]="MouseUp",e[e.MouseDown=1]="MouseDown",e[e.Click=2]="Click",e[e.ContextMenu=3]="ContextMenu",e[e.DblClick=4]="DblClick",e[e.Focus=5]="Focus",e[e.Blur=6]="Blur",e[e.TouchStart=7]="TouchStart",e[e.TouchMove_Departed=8]="TouchMove_Departed",e[e.TouchEnd=9]="TouchEnd",e[e.TouchCancel=10]="TouchCancel",e))(ie||{}),ye=(e=>(e[e.Mouse=0]="Mouse",e[e.Pen=1]="Pen",e[e.Touch=2]="Touch",e))(ye||{}),$e=(e=>(e[e["2D"]=0]="2D",e[e.WebGL=1]="WebGL",e[e.WebGL2=2]="WebGL2",e))($e||{}),De=(e=>(e[e.Play=0]="Play",e[e.Pause=1]="Pause",e[e.Seeked=2]="Seeked",e[e.VolumeChange=3]="VolumeChange",e[e.RateChange=4]="RateChange",e))(De||{}),xn=(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))(xn||{});function Oi(e){return"__ln"in e}class va{constructor(){A(this,"length",0),A(this,"head",null),A(this,"tail",null)}get(t){if(t>=this.length)throw new Error("Position outside of list range");let s=this.head;for(let o=0;o<t;o++)s=(s==null?void 0:s.next)||null;return s}addNode(t){const s={value:t,previous:null,next:null};if(t.__ln=s,t.previousSibling&&Oi(t.previousSibling)){const o=t.previousSibling.__ln.next;s.next=o,s.previous=t.previousSibling.__ln,t.previousSibling.__ln.next=s,o&&(o.previous=s)}else if(t.nextSibling&&Oi(t.nextSibling)&&t.nextSibling.__ln.previous){const o=t.nextSibling.__ln.previous;s.previous=o,s.next=t.nextSibling.__ln,t.nextSibling.__ln.previous=s,o&&(o.next=s)}else this.head&&(this.head.previous=s),s.next=this.head,this.head=s;s.next===null&&(this.tail=s),this.length++}removeNode(t){const s=t.__ln;this.head&&(s.previous?(s.previous.next=s.next,s.next?s.next.previous=s.previous:this.tail=s.previous):(this.head=s.next,this.head?this.head.previous=null:this.tail=null),t.__ln&&delete t.__ln,this.length--)}}const Mi=(e,t)=>`${e}@${t}`;class Ca{constructor(){A(this,"frozen",!1),A(this,"locked",!1),A(this,"texts",[]),A(this,"attributes",[]),A(this,"attributeMap",new WeakMap),A(this,"removes",[]),A(this,"mapRemoves",[]),A(this,"movedMap",{}),A(this,"addedSet",new Set),A(this,"movedSet",new Set),A(this,"droppedSet",new Set),A(this,"removesSubTreeCache",new Set),A(this,"mutationCb"),A(this,"blockClass"),A(this,"blockSelector"),A(this,"maskTextClass"),A(this,"maskTextSelector"),A(this,"inlineStylesheet"),A(this,"maskInputOptions"),A(this,"maskTextFn"),A(this,"maskInputFn"),A(this,"keepIframeSrcFn"),A(this,"recordCanvas"),A(this,"inlineImages"),A(this,"slimDOMOptions"),A(this,"dataURLOptions"),A(this,"doc"),A(this,"mirror"),A(this,"iframeManager"),A(this,"stylesheetManager"),A(this,"shadowDomManager"),A(this,"canvasManager"),A(this,"processedNodeManager"),A(this,"unattachedDoc"),A(this,"processMutations",t=>{t.forEach(this.processMutation),this.emit()}),A(this,"emit",()=>{if(this.frozen||this.locked)return;const t=[],s=new Set,o=new va,i=m=>{let f=m,r=ze;for(;r===ze;)f=f&&f.nextSibling,r=f&&this.mirror.getId(f);return r},a=m=>{const f=k.parentNode(m);if(!f||!Cn(m)||f.tagName==="TEXTAREA")return;const r=Be(f)?this.mirror.getId(vn(m)):this.mirror.getId(f),u=i(m);if(r===-1||u===-1)return o.addNode(m);const l=Te(m,{doc:this.doc,mirror:this.mirror,blockClass:this.blockClass,blockSelector:this.blockSelector,maskTextClass:this.maskTextClass,maskTextSelector:this.maskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:this.inlineStylesheet,maskInputOptions:this.maskInputOptions,maskTextFn:this.maskTextFn,maskInputFn:this.maskInputFn,slimDOMOptions:this.slimDOMOptions,dataURLOptions:this.dataURLOptions,recordCanvas:this.recordCanvas,inlineImages:this.inlineImages,onSerialize:n=>{bn(n,this.mirror)&&this.iframeManager.addIframe(n),Sn(n,this.mirror)&&this.stylesheetManager.trackLinkElement(n),Dr(m)&&this.shadowDomManager.addShadowRoot(k.shadowRoot(m),this.doc)},onIframeLoad:(n,d)=>{this.iframeManager.attachIframe(n,d),this.shadowDomManager.observeAttachShadow(n)},onStylesheetLoad:(n,d)=>{this.stylesheetManager.attachLinkElement(n,d)}});l&&(t.push({parentId:r,nextId:u,node:l}),s.add(l.id))};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(const m of this.movedSet)Ii(this.removesSubTreeCache,m,this.mirror)&&!this.movedSet.has(k.parentNode(m))||a(m);for(const m of this.addedSet)!Ei(this.droppedSet,m)&&!Ii(this.removesSubTreeCache,m,this.mirror)||Ei(this.movedSet,m)?a(m):this.droppedSet.add(m);let h=null;for(;o.length;){let m=null;if(h){const f=this.mirror.getId(k.parentNode(h.value)),r=i(h.value);f!==-1&&r!==-1&&(m=h)}if(!m){let f=o.tail;for(;f;){const r=f;if(f=f.previous,r){const u=this.mirror.getId(k.parentNode(r.value));if(i(r.value)===-1)continue;if(u!==-1){m=r;break}else{const n=r.value,d=k.parentNode(n);if(d&&d.nodeType===Node.DOCUMENT_FRAGMENT_NODE){const c=k.host(d);if(this.mirror.getId(c)!==-1){m=r;break}}}}}}if(!m){for(;o.head;)o.removeNode(o.head.value);break}h=m.previous,o.removeNode(m.value),a(m.value)}const p={texts:this.texts.map(m=>{const f=m.node,r=k.parentNode(f);return r&&r.tagName==="TEXTAREA"&&this.genTextAreaValueMutation(r),{id:this.mirror.getId(f),value:m.value}}).filter(m=>!s.has(m.id)).filter(m=>this.mirror.has(m.id)),attributes:this.attributes.map(m=>{const{attributes:f}=m;if(typeof f.style=="string"){const r=JSON.stringify(m.styleDiff),u=JSON.stringify(m._unchangedStyles);r.length<f.style.length&&(r+u).split("var(").length===f.style.split("var(").length&&(f.style=m.styleDiff)}return{id:this.mirror.getId(m.node),attributes:f}}).filter(m=>!s.has(m.id)).filter(m=>this.mirror.has(m.id)),removes:this.removes,adds:t};!p.texts.length&&!p.attributes.length&&!p.removes.length&&!p.adds.length||(this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.removesSubTreeCache=new Set,this.movedMap={},this.mutationCb(p))}),A(this,"genTextAreaValueMutation",t=>{let s=this.attributeMap.get(t);s||(s={node:t,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(s),this.attributeMap.set(t,s)),s.attributes.value=Array.from(k.childNodes(t),o=>k.textContent(o)||"").join("")}),A(this,"processMutation",t=>{if(!Nr(t.target,this.mirror,this.slimDOMOptions))switch(t.type){case"characterData":{const s=k.textContent(t.target);!se(t.target,this.blockClass,this.blockSelector,!1)&&s!==t.oldValue&&this.texts.push({value:ji(t.target,this.maskTextClass,this.maskTextSelector,!0)&&s?this.maskTextFn?this.maskTextFn(s,yn(t.target)):s.replace(/[\S]/g,"*"):s,node:t.target});break}case"attributes":{const s=t.target;let o=t.attributeName,i=t.target.getAttribute(o);if(o==="value"){const h=$r(s);i=Fr({element:s,maskInputOptions:this.maskInputOptions,tagName:s.tagName,type:h,value:i,maskInputFn:this.maskInputFn})}if(se(t.target,this.blockClass,this.blockSelector,!1)||i===t.oldValue)return;let a=this.attributeMap.get(t.target);if(s.tagName==="IFRAME"&&o==="src"&&!this.keepIframeSrcFn(i))if(!s.contentDocument)o="rr_src";else return;if(a||(a={node:t.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(a),this.attributeMap.set(t.target,a)),o==="type"&&s.tagName==="INPUT"&&(t.oldValue||"").toLowerCase()==="password"&&s.setAttribute("data-rr-is-password","true"),!qi(s.tagName,o))if(a.attributes[o]=zi(this.doc,Oe(s.tagName),Oe(o),i,s,this.dataURLOptions),o==="style"){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch(p){this.unattachedDoc=this.doc}const h=this.unattachedDoc.createElement("span");t.oldValue&&h.setAttribute("style",t.oldValue);for(const p of Array.from(s.style)){const m=s.style.getPropertyValue(p),f=s.style.getPropertyPriority(p);m!==h.style.getPropertyValue(p)||f!==h.style.getPropertyPriority(p)?f===""?a.styleDiff[p]=m:a.styleDiff[p]=[m,f]:a._unchangedStyles[p]=[m,f]}for(const p of Array.from(h.style))s.style.getPropertyValue(p)===""&&(a.styleDiff[p]=!1)}else o==="open"&&s.tagName==="DIALOG"&&(s.matches("dialog:modal")?a.attributes.rr_open_mode="modal":a.attributes.rr_open_mode="non-modal");break}case"childList":{if(se(t.target,this.blockClass,this.blockSelector,!0))return;if(t.target.tagName==="TEXTAREA"){this.genTextAreaValueMutation(t.target);return}t.addedNodes.forEach(s=>this.genAdds(s,t.target)),t.removedNodes.forEach(s=>{const o=this.mirror.getId(s),i=Be(t.target)?this.mirror.getId(k.host(t.target)):this.mirror.getId(t.target);se(t.target,this.blockClass,this.blockSelector,!1)||Nr(s,this.mirror,this.slimDOMOptions)||!ga(s,this.mirror)||(this.addedSet.has(s)?(Lr(this.addedSet,s),this.droppedSet.add(s)):this.addedSet.has(t.target)&&o===-1||wn(t.target,this.mirror)||(this.movedSet.has(s)&&this.movedMap[Mi(o,i)]?Lr(this.movedSet,s):(this.removes.push({parentId:i,id:o,isShadow:Be(t.target)&&Ue(t.target)?!0:void 0}),xa(s,this.removesSubTreeCache))),this.mapRemoves.push(s))});break}}}),A(this,"genAdds",(t,s)=>{if(!this.processedNodeManager.inOtherBuffer(t,this)&&!(this.addedSet.has(t)||this.movedSet.has(t))){if(this.mirror.hasNode(t)){if(Nr(t,this.mirror,this.slimDOMOptions))return;this.movedSet.add(t);let o=null;s&&this.mirror.hasNode(s)&&(o=this.mirror.getId(s)),o&&o!==-1&&(this.movedMap[Mi(this.mirror.getId(t),o)]=!0)}else this.addedSet.add(t),this.droppedSet.delete(t);se(t,this.blockClass,this.blockSelector,!1)||(k.childNodes(t).forEach(o=>this.genAdds(o)),Dr(t)&&k.childNodes(k.shadowRoot(t)).forEach(o=>{this.processedNodeManager.add(o,this),this.genAdds(o,t)}))}})}init(t){["mutationCb","blockClass","blockSelector","maskTextClass","maskTextSelector","inlineStylesheet","maskInputOptions","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager"].forEach(s=>{this[s]=t[s]})}freeze(){this.frozen=!0,this.canvasManager.freeze()}unfreeze(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()}isFrozen(){return this.frozen}lock(){this.locked=!0,this.canvasManager.lock()}unlock(){this.locked=!1,this.canvasManager.unlock(),this.emit()}reset(){this.shadowDomManager.reset(),this.canvasManager.reset()}destroy(){for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift())}}function Lr(e,t){e.delete(t),k.childNodes(t).forEach(s=>Lr(e,s))}function xa(e,t){const s=[e];for(;s.length;){const o=s.pop();t.has(o)||(t.add(o),k.childNodes(o).forEach(i=>s.push(i)))}}function Ii(e,t,s){return e.size===0?!1:Ra(e,t)}function Ra(e,t,s){const o=k.parentNode(t);return o?e.has(o):!1}function Ei(e,t){return e.size===0?!1:Rn(e,t)}function Rn(e,t){const s=k.parentNode(t);return s?e.has(s)?!0:Rn(e,s):!1}let We;function Oa(e){We=e}function Ma(){We=void 0}const F=e=>We?(...s)=>{try{return e(...s)}catch(o){if(We&&We(o)===!0)return;throw o}}:e,we=[];function Je(e){try{if("composedPath"in e){const t=e.composedPath();if(t.length)return t[0]}else if("path"in e&&e.path.length)return e.path[0]}catch(t){}return e&&e.target}function On(e,t){const s=new Ca;we.push(s),s.init(e);const o=new(pn())(F(s.processMutations.bind(s)));return o.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),o}function Ia({mousemoveCb:e,sampling:t,doc:s,mirror:o}){if(t.mousemove===!1)return()=>{};const i=typeof t.mousemove=="number"?t.mousemove:50,a=typeof t.mousemoveCallback=="number"?t.mousemoveCallback:500;let h=[],p;const m=qe(F(u=>{const l=Date.now()-p;e(h.map(n=>(n.timeOffset-=l,n)),u),h=[],p=null}),a),f=F(qe(F(u=>{const l=Je(u),{clientX:n,clientY:d}=kr(u)?u.changedTouches[0]:u;p||(p=ct()),h.push({x:n,y:d,id:o.getId(l),timeOffset:ct()-p}),m(typeof DragEvent!="undefined"&&u instanceof DragEvent?L.Drag:u instanceof MouseEvent?L.MouseMove:L.TouchMove)}),i,{trailing:!1})),r=[re("mousemove",f,s),re("touchmove",f,s),re("drag",f,s)];return F(()=>{r.forEach(u=>u())})}function Ea({mouseInteractionCb:e,doc:t,mirror:s,blockClass:o,blockSelector:i,sampling:a}){if(a.mouseInteraction===!1)return()=>{};const h=a.mouseInteraction===!0||a.mouseInteraction===void 0?{}:a.mouseInteraction,p=[];let m=null;const f=r=>u=>{const l=Je(u);if(se(l,o,i,!0))return;let n=null,d=r;if("pointerType"in u){switch(u.pointerType){case"mouse":n=ye.Mouse;break;case"touch":n=ye.Touch;break;case"pen":n=ye.Pen;break}n===ye.Touch?ie[r]===ie.MouseDown?d="TouchStart":ie[r]===ie.MouseUp&&(d="TouchEnd"):ye.Pen}else kr(u)&&(n=ye.Touch);n!==null?(m=n,(d.startsWith("Touch")&&n===ye.Touch||d.startsWith("Mouse")&&n===ye.Mouse)&&(n=null)):ie[r]===ie.Click&&(n=m,m=null);const c=kr(u)?u.changedTouches[0]:u;if(!c)return;const g=s.getId(l),{clientX:v,clientY:b}=c;F(e)(D({type:ie[d],id:g,x:v,y:b},n!==null&&{pointerType:n}))};return Object.keys(ie).filter(r=>Number.isNaN(Number(r))&&!r.endsWith("_Departed")&&h[r]!==!1).forEach(r=>{let u=Oe(r);const l=f(r);if(window.PointerEvent)switch(ie[r]){case ie.MouseDown:case ie.MouseUp:u=u.replace("mouse","pointer");break;case ie.TouchStart:case ie.TouchEnd:return}p.push(re(u,l,t))}),F(()=>{p.forEach(r=>r())})}function Mn({scrollCb:e,doc:t,mirror:s,blockClass:o,blockSelector:i,sampling:a}){const h=F(qe(F(p=>{const m=Je(p);if(!m||se(m,o,i,!0))return;const f=s.getId(m);if(m===t&&t.defaultView){const r=dn(t.defaultView);e({id:f,x:r.left,y:r.top})}else e({id:f,x:m.scrollLeft,y:m.scrollTop})}),a.scroll||100));return re("scroll",h,t)}function Aa({viewportResizeCb:e},{win:t}){let s=-1,o=-1;const i=F(qe(F(()=>{const a=mn(),h=gn();(s!==a||o!==h)&&(e({width:Number(h),height:Number(a)}),s=a,o=h)}),200));return re("resize",i,t)}const Pa=["INPUT","TEXTAREA","SELECT"],Ai=new WeakMap;function Na({inputCb:e,doc:t,mirror:s,blockClass:o,blockSelector:i,ignoreClass:a,ignoreSelector:h,maskInputOptions:p,maskInputFn:m,sampling:f,userTriggeredOnInput:r}){function u(b){let S=Je(b);const x=b.isTrusted,y=S&&S.tagName;if(S&&y==="OPTION"&&(S=k.parentElement(S)),!S||!y||Pa.indexOf(y)<0||se(S,o,i,!0)||S.classList.contains(a)||h&&S.matches(h))return;let w=S.value,C=!1;const R=$r(S)||"";R==="radio"||R==="checkbox"?C=S.checked:(p[y.toLowerCase()]||p[R])&&(w=Fr({element:S,maskInputOptions:p,tagName:y,type:R,value:w,maskInputFn:m})),l(S,r?{text:w,isChecked:C,userTriggered:x}:{text:w,isChecked:C});const E=S.name;R==="radio"&&E&&C&&t.querySelectorAll(`input[type="radio"][name="${E}"]`).forEach(M=>{if(M!==S){const N=M.value;l(M,r?{text:N,isChecked:!C,userTriggered:!1}:{text:N,isChecked:!C})}})}function l(b,S){const x=Ai.get(b);if(!x||x.text!==S.text||x.isChecked!==S.isChecked){Ai.set(b,S);const y=s.getId(b);F(e)(le(D({},S),{id:y}))}}const d=(f.input==="last"?["change"]:["input","change"]).map(b=>re(b,F(u),t)),c=t.defaultView;if(!c)return()=>{d.forEach(b=>b())};const g=c.Object.getOwnPropertyDescriptor(c.HTMLInputElement.prototype,"value"),v=[[c.HTMLInputElement.prototype,"value"],[c.HTMLInputElement.prototype,"checked"],[c.HTMLSelectElement.prototype,"value"],[c.HTMLTextAreaElement.prototype,"value"],[c.HTMLSelectElement.prototype,"selectedIndex"],[c.HTMLOptionElement.prototype,"selected"]];return g&&g.set&&d.push(...v.map(b=>vt(b[0],b[1],{set(){F(u)({target:this,isTrusted:!1})}},!1,c))),F(()=>{d.forEach(b=>b())})}function ht(e){const t=[];function s(o,i){if(rt("CSSGroupingRule")&&o.parentRule instanceof CSSGroupingRule||rt("CSSMediaRule")&&o.parentRule instanceof CSSMediaRule||rt("CSSSupportsRule")&&o.parentRule instanceof CSSSupportsRule||rt("CSSConditionRule")&&o.parentRule instanceof CSSConditionRule){const h=Array.from(o.parentRule.cssRules).indexOf(o);i.unshift(h)}else if(o.parentStyleSheet){const h=Array.from(o.parentStyleSheet.cssRules).indexOf(o);i.unshift(h)}return i}return s(e,t)}function Se(e,t,s){let o,i;return e?(e.ownerNode?o=t.getId(e.ownerNode):i=s.getId(e),{styleId:i,id:o}):{}}function _a({styleSheetRuleCb:e,mirror:t,stylesheetManager:s},{win:o}){if(!o.CSSStyleSheet||!o.CSSStyleSheet.prototype)return()=>{};const i=o.CSSStyleSheet.prototype.insertRule;o.CSSStyleSheet.prototype.insertRule=new Proxy(i,{apply:F((r,u,l)=>{const[n,d]=l,{id:c,styleId:g}=Se(u,t,s.styleMirror);return(c&&c!==-1||g&&g!==-1)&&e({id:c,styleId:g,adds:[{rule:n,index:d}]}),r.apply(u,l)})}),o.CSSStyleSheet.prototype.addRule=function(r,u,l=this.cssRules.length){const n=`${r} { ${u} }`;return o.CSSStyleSheet.prototype.insertRule.apply(this,[n,l])};const a=o.CSSStyleSheet.prototype.deleteRule;o.CSSStyleSheet.prototype.deleteRule=new Proxy(a,{apply:F((r,u,l)=>{const[n]=l,{id:d,styleId:c}=Se(u,t,s.styleMirror);return(d&&d!==-1||c&&c!==-1)&&e({id:d,styleId:c,removes:[{index:n}]}),r.apply(u,l)})}),o.CSSStyleSheet.prototype.removeRule=function(r){return o.CSSStyleSheet.prototype.deleteRule.apply(this,[r])};let h;o.CSSStyleSheet.prototype.replace&&(h=o.CSSStyleSheet.prototype.replace,o.CSSStyleSheet.prototype.replace=new Proxy(h,{apply:F((r,u,l)=>{const[n]=l,{id:d,styleId:c}=Se(u,t,s.styleMirror);return(d&&d!==-1||c&&c!==-1)&&e({id:d,styleId:c,replace:n}),r.apply(u,l)})}));let p;o.CSSStyleSheet.prototype.replaceSync&&(p=o.CSSStyleSheet.prototype.replaceSync,o.CSSStyleSheet.prototype.replaceSync=new Proxy(p,{apply:F((r,u,l)=>{const[n]=l,{id:d,styleId:c}=Se(u,t,s.styleMirror);return(d&&d!==-1||c&&c!==-1)&&e({id:d,styleId:c,replaceSync:n}),r.apply(u,l)})}));const m={};st("CSSGroupingRule")?m.CSSGroupingRule=o.CSSGroupingRule:(st("CSSMediaRule")&&(m.CSSMediaRule=o.CSSMediaRule),st("CSSConditionRule")&&(m.CSSConditionRule=o.CSSConditionRule),st("CSSSupportsRule")&&(m.CSSSupportsRule=o.CSSSupportsRule));const f={};return Object.entries(m).forEach(([r,u])=>{f[r]={insertRule:u.prototype.insertRule,deleteRule:u.prototype.deleteRule},u.prototype.insertRule=new Proxy(f[r].insertRule,{apply:F((l,n,d)=>{const[c,g]=d,{id:v,styleId:b}=Se(n.parentStyleSheet,t,s.styleMirror);return(v&&v!==-1||b&&b!==-1)&&e({id:v,styleId:b,adds:[{rule:c,index:[...ht(n),g||0]}]}),l.apply(n,d)})}),u.prototype.deleteRule=new Proxy(f[r].deleteRule,{apply:F((l,n,d)=>{const[c]=d,{id:g,styleId:v}=Se(n.parentStyleSheet,t,s.styleMirror);return(g&&g!==-1||v&&v!==-1)&&e({id:g,styleId:v,removes:[{index:[...ht(n),c]}]}),l.apply(n,d)})})}),F(()=>{o.CSSStyleSheet.prototype.insertRule=i,o.CSSStyleSheet.prototype.deleteRule=a,h&&(o.CSSStyleSheet.prototype.replace=h),p&&(o.CSSStyleSheet.prototype.replaceSync=p),Object.entries(m).forEach(([r,u])=>{u.prototype.insertRule=f[r].insertRule,u.prototype.deleteRule=f[r].deleteRule})})}function In({mirror:e,stylesheetManager:t},s){var o,i,a;let h=null;s.nodeName==="#document"?h=e.getId(s):h=e.getId(k.host(s));const p=s.nodeName==="#document"?(o=s.defaultView)==null?void 0:o.Document:(a=(i=s.ownerDocument)==null?void 0:i.defaultView)==null?void 0:a.ShadowRoot,m=p!=null&&p.prototype?Object.getOwnPropertyDescriptor(p==null?void 0:p.prototype,"adoptedStyleSheets"):void 0;return h===null||h===-1||!p||!m?()=>{}:(Object.defineProperty(s,"adoptedStyleSheets",{configurable:m.configurable,enumerable:m.enumerable,get(){var f;return(f=m.get)==null?void 0:f.call(this)},set(f){var r;const u=(r=m.set)==null?void 0:r.call(this,f);if(h!==null&&h!==-1)try{t.adoptStyleSheets(f,h)}catch(l){}return u}}),F(()=>{Object.defineProperty(s,"adoptedStyleSheets",{configurable:m.configurable,enumerable:m.enumerable,get:m.get,set:m.set})}))}function ka({styleDeclarationCb:e,mirror:t,ignoreCSSAttributes:s,stylesheetManager:o},{win:i}){const a=i.CSSStyleDeclaration.prototype.setProperty;i.CSSStyleDeclaration.prototype.setProperty=new Proxy(a,{apply:F((p,m,f)=>{var r;const[u,l,n]=f;if(s.has(u))return a.apply(m,[u,l,n]);const{id:d,styleId:c}=Se((r=m.parentRule)==null?void 0:r.parentStyleSheet,t,o.styleMirror);return(d&&d!==-1||c&&c!==-1)&&e({id:d,styleId:c,set:{property:u,value:l,priority:n},index:ht(m.parentRule)}),p.apply(m,f)})});const h=i.CSSStyleDeclaration.prototype.removeProperty;return i.CSSStyleDeclaration.prototype.removeProperty=new Proxy(h,{apply:F((p,m,f)=>{var r;const[u]=f;if(s.has(u))return h.apply(m,[u]);const{id:l,styleId:n}=Se((r=m.parentRule)==null?void 0:r.parentStyleSheet,t,o.styleMirror);return(l&&l!==-1||n&&n!==-1)&&e({id:l,styleId:n,remove:{property:u},index:ht(m.parentRule)}),p.apply(m,f)})}),F(()=>{i.CSSStyleDeclaration.prototype.setProperty=a,i.CSSStyleDeclaration.prototype.removeProperty=h})}function Da({mediaInteractionCb:e,blockClass:t,blockSelector:s,mirror:o,sampling:i,doc:a}){const h=F(m=>qe(F(f=>{const r=Je(f);if(!r||se(r,t,s,!0))return;const{currentTime:u,volume:l,muted:n,playbackRate:d,loop:c}=r;e({type:m,id:o.getId(r),currentTime:u,volume:l,muted:n,playbackRate:d,loop:c})}),i.media||500)),p=[re("play",h(De.Play),a),re("pause",h(De.Pause),a),re("seeked",h(De.Seeked),a),re("volumechange",h(De.VolumeChange),a),re("ratechange",h(De.RateChange),a)];return F(()=>{p.forEach(m=>m())})}function La({fontCb:e,doc:t}){const s=t.defaultView;if(!s)return()=>{};const o=[],i=new WeakMap,a=s.FontFace;s.FontFace=function(m,f,r){const u=new a(m,f,r);return i.set(u,{family:m,buffer:typeof f!="string",descriptors:r,fontSource:typeof f=="string"?f:JSON.stringify(Array.from(new Uint8Array(f)))}),u};const h=Ee(t.fonts,"add",function(p){return function(m){return setTimeout(F(()=>{const f=i.get(m);f&&(e(f),i.delete(m))}),0),p.apply(this,[m])}});return o.push(()=>{s.FontFace=a}),o.push(h),F(()=>{o.forEach(p=>p())})}function Ta(e){const{doc:t,mirror:s,blockClass:o,blockSelector:i,selectionCb:a}=e;let h=!0;const p=F(()=>{const m=t.getSelection();if(!m||h&&(m!=null&&m.isCollapsed))return;h=m.isCollapsed||!1;const f=[],r=m.rangeCount||0;for(let u=0;u<r;u++){const l=m.getRangeAt(u),{startContainer:n,startOffset:d,endContainer:c,endOffset:g}=l;se(n,o,i,!0)||se(c,o,i,!0)||f.push({start:s.getId(n),startOffset:d,end:s.getId(c),endOffset:g})}a({ranges:f})});return p(),re("selectionchange",p)}function Fa({doc:e,customElementCb:t}){const s=e.defaultView;return!s||!s.customElements?()=>{}:Ee(s.customElements,"define",function(i){return function(a,h,p){try{t({define:{name:a}})}catch(m){console.warn(`Custom element callback failed for ${a}`)}return i.apply(this,[a,h,p])}})}function $a(e,t){const{mutationCb:s,mousemoveCb:o,mouseInteractionCb:i,scrollCb:a,viewportResizeCb:h,inputCb:p,mediaInteractionCb:m,styleSheetRuleCb:f,styleDeclarationCb:r,canvasMutationCb:u,fontCb:l,selectionCb:n,customElementCb:d}=e;e.mutationCb=(...c)=>{t.mutation&&t.mutation(...c),s(...c)},e.mousemoveCb=(...c)=>{t.mousemove&&t.mousemove(...c),o(...c)},e.mouseInteractionCb=(...c)=>{t.mouseInteraction&&t.mouseInteraction(...c),i(...c)},e.scrollCb=(...c)=>{t.scroll&&t.scroll(...c),a(...c)},e.viewportResizeCb=(...c)=>{t.viewportResize&&t.viewportResize(...c),h(...c)},e.inputCb=(...c)=>{t.input&&t.input(...c),p(...c)},e.mediaInteractionCb=(...c)=>{t.mediaInteaction&&t.mediaInteaction(...c),m(...c)},e.styleSheetRuleCb=(...c)=>{t.styleSheetRule&&t.styleSheetRule(...c),f(...c)},e.styleDeclarationCb=(...c)=>{t.styleDeclaration&&t.styleDeclaration(...c),r(...c)},e.canvasMutationCb=(...c)=>{t.canvasMutation&&t.canvasMutation(...c),u(...c)},e.fontCb=(...c)=>{t.font&&t.font(...c),l(...c)},e.selectionCb=(...c)=>{t.selection&&t.selection(...c),n(...c)},e.customElementCb=(...c)=>{t.customElement&&t.customElement(...c),d(...c)}}function Ba(e,t={}){const s=e.doc.defaultView;if(!s)return()=>{};$a(e,t);let o;e.recordDOM&&(o=On(e,e.doc));const i=Ia(e),a=Ea(e),h=Mn(e),p=Aa(e,{win:s}),m=Na(e),f=Da(e);let r=()=>{},u=()=>{},l=()=>{},n=()=>{};e.recordDOM&&(r=_a(e,{win:s}),u=In(e,e.doc),l=ka(e,{win:s}),e.collectFonts&&(n=La(e)));const d=Ta(e),c=Fa(e),g=[];for(const v of e.plugins)g.push(v.observer(v.callback,s,v.options));return F(()=>{we.forEach(v=>v.destroy()),we.forEach(v=>v.reset()),o==null||o.disconnect(),i(),a(),h(),p(),m(),f(),r(),u(),l(),n(),d(),c(),g.forEach(v=>v()),we.length=0})}function rt(e){return typeof window[e]!="undefined"}function st(e){return!!(typeof window[e]!="undefined"&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}class Pi{constructor(t){A(this,"iframeIdToRemoteIdMap",new WeakMap),A(this,"iframeRemoteIdToIdMap",new WeakMap),this.generateIdFn=t}getId(t,s,o,i){const a=o||this.getIdToRemoteIdMap(t),h=i||this.getRemoteIdToIdMap(t);let p=a.get(s);return p||(p=this.generateIdFn(),a.set(s,p),h.set(p,s)),p}getIds(t,s){const o=this.getIdToRemoteIdMap(t),i=this.getRemoteIdToIdMap(t);return s.map(a=>this.getId(t,a,o,i))}getRemoteId(t,s,o){const i=o||this.getRemoteIdToIdMap(t);if(typeof s!="number")return s;const a=i.get(s);return a||-1}getRemoteIds(t,s){const o=this.getRemoteIdToIdMap(t);return s.map(i=>this.getRemoteId(t,i,o))}reset(t){if(!t){this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap;return}this.iframeIdToRemoteIdMap.delete(t),this.iframeRemoteIdToIdMap.delete(t)}getIdToRemoteIdMap(t){let s=this.iframeIdToRemoteIdMap.get(t);return s||(s=new Map,this.iframeIdToRemoteIdMap.set(t,s)),s}getRemoteIdToIdMap(t){let s=this.iframeRemoteIdToIdMap.get(t);return s||(s=new Map,this.iframeRemoteIdToIdMap.set(t,s)),s}}class Ua{constructor(t){A(this,"iframes",new WeakMap),A(this,"crossOriginIframeMap",new WeakMap),A(this,"crossOriginIframeMirror",new Pi(Wi)),A(this,"crossOriginIframeStyleMirror"),A(this,"crossOriginIframeRootIdMap",new WeakMap),A(this,"mirror"),A(this,"mutationCb"),A(this,"wrappedEmit"),A(this,"loadListener"),A(this,"stylesheetManager"),A(this,"recordCrossOriginIframes"),A(this,"messageHandler"),A(this,"nestedIframeListeners",new Map),this.mutationCb=t.mutationCb,this.wrappedEmit=t.wrappedEmit,this.stylesheetManager=t.stylesheetManager,this.recordCrossOriginIframes=t.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new Pi(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=t.mirror,this.messageHandler=this.handleMessage.bind(this),this.recordCrossOriginIframes&&window.addEventListener("message",this.messageHandler)}addIframe(t){this.iframes.set(t,!0),t.contentWindow&&this.crossOriginIframeMap.set(t.contentWindow,t)}addLoadListener(t){this.loadListener=t}removeLoadListener(){this.loadListener=void 0}attachIframe(t,s){var o;this.mutationCb({adds:[{parentId:this.mirror.getId(t),nextId:null,node:s}],removes:[],texts:[],attributes:[],isAttachIframe:!0});const i=t.contentWindow;if(this.recordCrossOriginIframes&&i&&!this.nestedIframeListeners.has(i)){const a=this.handleMessage.bind(this);this.nestedIframeListeners.set(i,a),i.addEventListener("message",a)}(o=this.loadListener)==null||o.call(this,t),t.contentDocument&&t.contentDocument.adoptedStyleSheets&&t.contentDocument.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(t.contentDocument.adoptedStyleSheets,this.mirror.getId(t.contentDocument))}handleMessage(t){const s=t;if(s.data.type!=="rrweb"||s.origin!==s.data.origin||!t.source)return;const i=this.crossOriginIframeMap.get(t.source);if(!i)return;const a=this.transformCrossOriginEvent(i,s.data.event);a&&this.wrappedEmit(a,s.data.isCheckout)}transformCrossOriginEvent(t,s){var o;switch(s.type){case $.FullSnapshot:{this.crossOriginIframeMirror.reset(t),this.crossOriginIframeStyleMirror.reset(t),this.replaceIdOnNode(s.data.node,t);const i=s.data.node.id;return this.crossOriginIframeRootIdMap.set(t,i),this.patchRootIdOnNode(s.data.node,i),{timestamp:s.timestamp,type:$.IncrementalSnapshot,data:{source:L.Mutation,adds:[{parentId:this.mirror.getId(t),nextId:null,node:s.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case $.Meta:case $.Load:case $.DomContentLoaded:return!1;case $.Plugin:return s;case $.Custom:return this.replaceIds(s.data.payload,t,["id","parentId","previousId","nextId"]),s;case $.IncrementalSnapshot:switch(s.data.source){case L.Mutation:return s.data.adds.forEach(i=>{this.replaceIds(i,t,["parentId","nextId","previousId"]),this.replaceIdOnNode(i.node,t);const a=this.crossOriginIframeRootIdMap.get(t);a&&this.patchRootIdOnNode(i.node,a)}),s.data.removes.forEach(i=>{this.replaceIds(i,t,["parentId","id"])}),s.data.attributes.forEach(i=>{this.replaceIds(i,t,["id"])}),s.data.texts.forEach(i=>{this.replaceIds(i,t,["id"])}),s;case L.Drag:case L.TouchMove:case L.MouseMove:return s.data.positions.forEach(i=>{this.replaceIds(i,t,["id"])}),s;case L.ViewportResize:return!1;case L.MediaInteraction:case L.MouseInteraction:case L.Scroll:case L.CanvasMutation:case L.Input:return this.replaceIds(s.data,t,["id"]),s;case L.StyleSheetRule:case L.StyleDeclaration:return this.replaceIds(s.data,t,["id"]),this.replaceStyleIds(s.data,t,["styleId"]),s;case L.Font:return s;case L.Selection:return s.data.ranges.forEach(i=>{this.replaceIds(i,t,["start","end"])}),s;case L.AdoptedStyleSheet:return this.replaceIds(s.data,t,["id"]),this.replaceStyleIds(s.data,t,["styleIds"]),(o=s.data.styles)==null||o.forEach(i=>{this.replaceStyleIds(i,t,["styleId"])}),s}}return!1}replace(t,s,o,i){for(const a of i)!Array.isArray(s[a])&&typeof s[a]!="number"||(Array.isArray(s[a])?s[a]=t.getIds(o,s[a]):s[a]=t.getId(o,s[a]));return s}replaceIds(t,s,o){return this.replace(this.crossOriginIframeMirror,t,s,o)}replaceStyleIds(t,s,o){return this.replace(this.crossOriginIframeStyleMirror,t,s,o)}replaceIdOnNode(t,s){this.replaceIds(t,s,["id","rootId"]),"childNodes"in t&&t.childNodes.forEach(o=>{this.replaceIdOnNode(o,s)})}patchRootIdOnNode(t,s){t.type!==xn.Document&&!t.rootId&&(t.rootId=s),"childNodes"in t&&t.childNodes.forEach(o=>{this.patchRootIdOnNode(o,s)})}destroy(){this.recordCrossOriginIframes&&window.removeEventListener("message",this.messageHandler),this.nestedIframeListeners.forEach((t,s)=>{s.removeEventListener("message",t)}),this.nestedIframeListeners.clear(),this.crossOriginIframeMirror.reset(),this.crossOriginIframeStyleMirror.reset()}}class Wa{constructor(t){A(this,"shadowDoms",new WeakSet),A(this,"mutationCb"),A(this,"scrollCb"),A(this,"bypassOptions"),A(this,"mirror"),A(this,"restoreHandlers",[]),this.mutationCb=t.mutationCb,this.scrollCb=t.scrollCb,this.bypassOptions=t.bypassOptions,this.mirror=t.mirror,this.init()}init(){this.reset(),this.patchAttachShadow(Element,document)}addShadowRoot(t,s){if(!Ue(t)||this.shadowDoms.has(t))return;this.shadowDoms.add(t);const o=On(le(D({},this.bypassOptions),{doc:s,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this}),t);this.restoreHandlers.push(()=>o.disconnect()),this.restoreHandlers.push(Mn(le(D({},this.bypassOptions),{scrollCb:this.scrollCb,doc:t,mirror:this.mirror}))),setTimeout(()=>{t.adoptedStyleSheets&&t.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(t.adoptedStyleSheets,this.mirror.getId(k.host(t))),this.restoreHandlers.push(In({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},t))},0)}observeAttachShadow(t){!t.contentWindow||!t.contentDocument||this.patchAttachShadow(t.contentWindow.Element,t.contentDocument)}patchAttachShadow(t,s){const o=this;this.restoreHandlers.push(Ee(t.prototype,"attachShadow",function(i){return function(a){const h=i.call(this,a),p=k.shadowRoot(this);return p&&Cn(this)&&o.addShadowRoot(p,s),h}}))}reset(){this.restoreHandlers.forEach(t=>{try{t()}catch(s){}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet}}var Fe="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",za=typeof Uint8Array=="undefined"?[]:new Uint8Array(256);for(var it=0;it<Fe.length;it++)za[Fe.charCodeAt(it)]=it;var qa=function(e){var t=new Uint8Array(e),s,o=t.length,i="";for(s=0;s<o;s+=3)i+=Fe[t[s]>>2],i+=Fe[(t[s]&3)<<4|t[s+1]>>4],i+=Fe[(t[s+1]&15)<<2|t[s+2]>>6],i+=Fe[t[s+2]&63];return o%3===2?i=i.substring(0,i.length-1)+"=":o%3===1&&(i=i.substring(0,i.length-2)+"=="),i};const Ni=new Map;function ja(e,t){let s=Ni.get(e);return s||(s=new Map,Ni.set(e,s)),s.has(t)||s.set(t,[]),s.get(t)}const En=(e,t,s)=>{if(!e||!(Pn(e,t)||typeof e=="object"))return;const o=e.constructor.name,i=ja(s,o);let a=i.indexOf(e);return a===-1&&(a=i.length,i.push(e)),a};function nt(e,t,s,o){if(e instanceof Array)return e.map(i=>nt(i,t,s,o));if(e===null)return e;if(e instanceof Float32Array||e instanceof Float64Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Uint8Array||e instanceof Uint16Array||e instanceof Int16Array||e instanceof Int8Array||e instanceof Uint8ClampedArray)return{rr_type:e.constructor.name,args:[Object.values(e)]};if(e instanceof ArrayBuffer){const i=e.constructor.name,a=qa(e);return{rr_type:i,base64:a}}else{if(e instanceof DataView)return{rr_type:e.constructor.name,args:[nt(e.buffer,t,s,o),e.byteOffset,e.byteLength]};if(e instanceof HTMLImageElement){const i=e.constructor.name,{src:a}=e;return{rr_type:i,src:a}}else if(e instanceof HTMLCanvasElement){const i="HTMLImageElement",a=e.toDataURL(o.type,o.quality);return{rr_type:i,src:a}}else{if(e instanceof ImageData)return{rr_type:e.constructor.name,args:[nt(e.data,t,s,o),e.width,e.height]};if(Pn(e,t)||typeof e=="object"){const i=e.constructor.name,a=En(e,t,s);return{rr_type:i,index:a}}}}return e}const An=(e,t,s,o)=>e.map(i=>nt(i,t,s,o)),Pn=(e,t)=>!!["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"].filter(i=>typeof t[i]=="function").find(i=>e instanceof t[i]);function Ha(e,t,s,o,i){const a=[],h=Object.getOwnPropertyNames(t.CanvasRenderingContext2D.prototype);for(const p of h)try{if(typeof t.CanvasRenderingContext2D.prototype[p]!="function")continue;const m=Ee(t.CanvasRenderingContext2D.prototype,p,function(f){return function(...r){return se(this.canvas,s,o,!0)||setTimeout(()=>{const u=An(r,t,this,i);e(this.canvas,{type:$e["2D"],property:p,args:u})},0),f.apply(this,r)}});a.push(m)}catch(m){const f=vt(t.CanvasRenderingContext2D.prototype,p,{set(r){e(this.canvas,{type:$e["2D"],property:p,args:[r],setter:!0})}});a.push(f)}return()=>{a.forEach(p=>p())}}function Va(e){return e==="experimental-webgl"?"webgl":e}function _i(e,t,s,o){const i=[];try{const a=Ee(e.HTMLCanvasElement.prototype,"getContext",function(h){return function(p,...m){if(!se(this,t,s,!0)){const f=Va(p);if("__context"in this||(this.__context=f),o&&["webgl","webgl2"].includes(f))if(m[0]&&typeof m[0]=="object"){const r=m[0];r.preserveDrawingBuffer||(r.preserveDrawingBuffer=!0)}else m.splice(0,1,{preserveDrawingBuffer:!0})}return h.apply(this,[p,...m])}});i.push(a)}catch(a){console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return()=>{i.forEach(a=>a())}}function ki(e,t,s,o,i,a,h){const p=[],m=Object.getOwnPropertyNames(e);for(const f of m)if(!["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(f))try{if(typeof e[f]!="function")continue;const r=Ee(e,f,function(u){return function(...l){const n=u.apply(this,l);if(En(n,a,this),"tagName"in this.canvas&&!se(this.canvas,o,i,!0)){const d=An(l,a,this,h),c={type:t,property:f,args:d};s(this.canvas,c)}return n}});p.push(r)}catch(r){const u=vt(e,f,{set(l){s(this.canvas,{type:t,property:f,args:[l],setter:!0})}});p.push(u)}return p}function Ga(e,t,s,o,i){const a=[];return a.push(...ki(t.WebGLRenderingContext.prototype,$e.WebGL,e,s,o,t,i)),typeof t.WebGL2RenderingContext!="undefined"&&a.push(...ki(t.WebGL2RenderingContext.prototype,$e.WebGL2,e,s,o,t,i)),()=>{a.forEach(h=>h())}}const Nn=`(function() {
70
+ or you can use record.mirror to access the mirror instance during recording.`;let Ri={map:{},getId(){return console.error(ke),-1},getNode(){return console.error(ke),null},removeNodeFromMap(){console.error(ke)},has(){return console.error(ke),!1},reset(){console.error(ke)}};typeof window!="undefined"&&window.Proxy&&window.Reflect&&(Ri=new Proxy(Ri,{get(e,t,s){return t==="map"&&console.error(ke),Reflect.get(e,t,s)}}));function qe(e,t,s={}){let o=null,i=0;return function(...a){const h=Date.now();!i&&s.leading===!1&&(i=h);const p=t-(h-i),m=this;p<=0||p>t?(o&&(clearTimeout(o),o=null),i=h,e.apply(m,a)):!o&&s.trailing!==!1&&(o=setTimeout(()=>{i=s.leading===!1?0:Date.now(),o=null,e.apply(m,a)},p))}}function vt(e,t,s,o,i=window){const a=i.Object.getOwnPropertyDescriptor(e,t);return i.Object.defineProperty(e,t,o?s:{set(h){setTimeout(()=>{s.set.call(this,h)},0),a&&a.set&&a.set.call(this,h)}}),()=>vt(e,t,a||{},!0)}let ct=Date.now;/[1-9][0-9]{12}/.test(Date.now().toString())||(ct=()=>new Date().getTime());function dn(e){var t,s,o,i;const a=e.document;return{left:a.scrollingElement?a.scrollingElement.scrollLeft:e.pageXOffset!==void 0?e.pageXOffset:a.documentElement.scrollLeft||(a==null?void 0:a.body)&&((t=k.parentElement(a.body))==null?void 0:t.scrollLeft)||((s=a==null?void 0:a.body)==null?void 0:s.scrollLeft)||0,top:a.scrollingElement?a.scrollingElement.scrollTop:e.pageYOffset!==void 0?e.pageYOffset:(a==null?void 0:a.documentElement.scrollTop)||(a==null?void 0:a.body)&&((o=k.parentElement(a.body))==null?void 0:o.scrollTop)||((i=a==null?void 0:a.body)==null?void 0:i.scrollTop)||0}}function mn(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function gn(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function yn(e){return e?e.nodeType===e.ELEMENT_NODE?e:k.parentElement(e):null}function se(e,t,s,o){if(!e)return!1;const i=yn(e);if(!i)return!1;try{if(typeof t=="string"){if(i.classList.contains(t)||o&&i.closest("."+t)!==null)return!0}else if(ut(i,t,o))return!0}catch(a){}return!!(s&&(i.matches(s)||o&&i.closest(s)!==null))}function ga(e,t){return t.getId(e)!==-1}function Nr(e,t,s){return e.tagName==="TITLE"&&s.headTitleMutations?!0:t.getId(e)===ze}function wn(e,t){if($e(e))return!1;const s=t.getId(e);if(!t.has(s))return!0;const o=k.parentNode(e);return o&&o.nodeType===e.DOCUMENT_NODE?!1:o?wn(o,t):!0}function kr(e){return!!e.changedTouches}function ya(e=window){"NodeList"in e&&!e.NodeList.prototype.forEach&&(e.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in e&&!e.DOMTokenList.prototype.forEach&&(e.DOMTokenList.prototype.forEach=Array.prototype.forEach)}function bn(e,t){return!!(e.nodeName==="IFRAME"&&t.getMeta(e))}function Sn(e,t){return!!(e.nodeName==="LINK"&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&e.getAttribute("rel")==="stylesheet"&&t.getMeta(e))}function Dr(e){return e?e instanceof es&&"shadowRoot"in e?!!e.shadowRoot:!!k.shadowRoot(e):!1}class wa{constructor(){E(this,"id",1),E(this,"styleIDMap",new WeakMap),E(this,"idStyleMap",new Map)}getId(t){var s;return(s=this.styleIDMap.get(t))!=null?s:-1}has(t){return this.styleIDMap.has(t)}add(t,s){if(this.has(t))return this.getId(t);let o;return s===void 0?o=this.id++:o=s,this.styleIDMap.set(t,o),this.idStyleMap.set(o,t),o}getStyle(t){return this.idStyleMap.get(t)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}}function vn(e){var t;let s=null;return"getRootNode"in e&&((t=k.getRootNode(e))==null?void 0:t.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&k.host(k.getRootNode(e))&&(s=k.host(k.getRootNode(e))),s}function ba(e){let t=e,s;for(;s=vn(t);)t=s;return t}function Sa(e){const t=e.ownerDocument;if(!t)return!1;const s=ba(e);return k.contains(t,s)}function Cn(e){const t=e.ownerDocument;return t?k.contains(t,e)||Sa(e):!1}var B=(e=>(e[e.DomContentLoaded=0]="DomContentLoaded",e[e.Load=1]="Load",e[e.FullSnapshot=2]="FullSnapshot",e[e.IncrementalSnapshot=3]="IncrementalSnapshot",e[e.Meta=4]="Meta",e[e.Custom=5]="Custom",e[e.Plugin=6]="Plugin",e))(B||{}),L=(e=>(e[e.Mutation=0]="Mutation",e[e.MouseMove=1]="MouseMove",e[e.MouseInteraction=2]="MouseInteraction",e[e.Scroll=3]="Scroll",e[e.ViewportResize=4]="ViewportResize",e[e.Input=5]="Input",e[e.TouchMove=6]="TouchMove",e[e.MediaInteraction=7]="MediaInteraction",e[e.StyleSheetRule=8]="StyleSheetRule",e[e.CanvasMutation=9]="CanvasMutation",e[e.Font=10]="Font",e[e.Log=11]="Log",e[e.Drag=12]="Drag",e[e.StyleDeclaration=13]="StyleDeclaration",e[e.Selection=14]="Selection",e[e.AdoptedStyleSheet=15]="AdoptedStyleSheet",e[e.CustomElement=16]="CustomElement",e))(L||{}),ne=(e=>(e[e.MouseUp=0]="MouseUp",e[e.MouseDown=1]="MouseDown",e[e.Click=2]="Click",e[e.ContextMenu=3]="ContextMenu",e[e.DblClick=4]="DblClick",e[e.Focus=5]="Focus",e[e.Blur=6]="Blur",e[e.TouchStart=7]="TouchStart",e[e.TouchMove_Departed=8]="TouchMove_Departed",e[e.TouchEnd=9]="TouchEnd",e[e.TouchCancel=10]="TouchCancel",e))(ne||{}),ye=(e=>(e[e.Mouse=0]="Mouse",e[e.Pen=1]="Pen",e[e.Touch=2]="Touch",e))(ye||{}),Be=(e=>(e[e["2D"]=0]="2D",e[e.WebGL=1]="WebGL",e[e.WebGL2=2]="WebGL2",e))(Be||{}),De=(e=>(e[e.Play=0]="Play",e[e.Pause=1]="Pause",e[e.Seeked=2]="Seeked",e[e.VolumeChange=3]="VolumeChange",e[e.RateChange=4]="RateChange",e))(De||{}),xn=(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))(xn||{});function Oi(e){return"__ln"in e}class va{constructor(){E(this,"length",0),E(this,"head",null),E(this,"tail",null)}get(t){if(t>=this.length)throw new Error("Position outside of list range");let s=this.head;for(let o=0;o<t;o++)s=(s==null?void 0:s.next)||null;return s}addNode(t){const s={value:t,previous:null,next:null};if(t.__ln=s,t.previousSibling&&Oi(t.previousSibling)){const o=t.previousSibling.__ln.next;s.next=o,s.previous=t.previousSibling.__ln,t.previousSibling.__ln.next=s,o&&(o.previous=s)}else if(t.nextSibling&&Oi(t.nextSibling)&&t.nextSibling.__ln.previous){const o=t.nextSibling.__ln.previous;s.previous=o,s.next=t.nextSibling.__ln,t.nextSibling.__ln.previous=s,o&&(o.next=s)}else this.head&&(this.head.previous=s),s.next=this.head,this.head=s;s.next===null&&(this.tail=s),this.length++}removeNode(t){const s=t.__ln;this.head&&(s.previous?(s.previous.next=s.next,s.next?s.next.previous=s.previous:this.tail=s.previous):(this.head=s.next,this.head?this.head.previous=null:this.tail=null),t.__ln&&delete t.__ln,this.length--)}}const Mi=(e,t)=>`${e}@${t}`;class Ca{constructor(){E(this,"frozen",!1),E(this,"locked",!1),E(this,"texts",[]),E(this,"attributes",[]),E(this,"attributeMap",new WeakMap),E(this,"removes",[]),E(this,"mapRemoves",[]),E(this,"movedMap",{}),E(this,"addedSet",new Set),E(this,"movedSet",new Set),E(this,"droppedSet",new Set),E(this,"removesSubTreeCache",new Set),E(this,"mutationCb"),E(this,"blockClass"),E(this,"blockSelector"),E(this,"maskTextClass"),E(this,"maskTextSelector"),E(this,"inlineStylesheet"),E(this,"maskInputOptions"),E(this,"maskTextFn"),E(this,"maskInputFn"),E(this,"keepIframeSrcFn"),E(this,"recordCanvas"),E(this,"inlineImages"),E(this,"slimDOMOptions"),E(this,"dataURLOptions"),E(this,"doc"),E(this,"mirror"),E(this,"iframeManager"),E(this,"stylesheetManager"),E(this,"shadowDomManager"),E(this,"canvasManager"),E(this,"processedNodeManager"),E(this,"unattachedDoc"),E(this,"processMutations",t=>{t.forEach(this.processMutation),this.emit()}),E(this,"emit",()=>{if(this.frozen||this.locked)return;const t=[],s=new Set,o=new va,i=m=>{let f=m,r=ze;for(;r===ze;)f=f&&f.nextSibling,r=f&&this.mirror.getId(f);return r},a=m=>{const f=k.parentNode(m);if(!f||!Cn(m)||f.tagName==="TEXTAREA")return;const r=$e(f)?this.mirror.getId(vn(m)):this.mirror.getId(f),u=i(m);if(r===-1||u===-1)return o.addNode(m);const l=Te(m,{doc:this.doc,mirror:this.mirror,blockClass:this.blockClass,blockSelector:this.blockSelector,maskTextClass:this.maskTextClass,maskTextSelector:this.maskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:this.inlineStylesheet,maskInputOptions:this.maskInputOptions,maskTextFn:this.maskTextFn,maskInputFn:this.maskInputFn,slimDOMOptions:this.slimDOMOptions,dataURLOptions:this.dataURLOptions,recordCanvas:this.recordCanvas,inlineImages:this.inlineImages,onSerialize:n=>{bn(n,this.mirror)&&this.iframeManager.addIframe(n),Sn(n,this.mirror)&&this.stylesheetManager.trackLinkElement(n),Dr(m)&&this.shadowDomManager.addShadowRoot(k.shadowRoot(m),this.doc)},onIframeLoad:(n,d)=>{this.iframeManager.attachIframe(n,d),this.shadowDomManager.observeAttachShadow(n)},onStylesheetLoad:(n,d)=>{this.stylesheetManager.attachLinkElement(n,d)}});l&&(t.push({parentId:r,nextId:u,node:l}),s.add(l.id))};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(const m of this.movedSet)Ii(this.removesSubTreeCache,m,this.mirror)&&!this.movedSet.has(k.parentNode(m))||a(m);for(const m of this.addedSet)!Ei(this.droppedSet,m)&&!Ii(this.removesSubTreeCache,m,this.mirror)||Ei(this.movedSet,m)?a(m):this.droppedSet.add(m);let h=null;for(;o.length;){let m=null;if(h){const f=this.mirror.getId(k.parentNode(h.value)),r=i(h.value);f!==-1&&r!==-1&&(m=h)}if(!m){let f=o.tail;for(;f;){const r=f;if(f=f.previous,r){const u=this.mirror.getId(k.parentNode(r.value));if(i(r.value)===-1)continue;if(u!==-1){m=r;break}else{const n=r.value,d=k.parentNode(n);if(d&&d.nodeType===Node.DOCUMENT_FRAGMENT_NODE){const c=k.host(d);if(this.mirror.getId(c)!==-1){m=r;break}}}}}}if(!m){for(;o.head;)o.removeNode(o.head.value);break}h=m.previous,o.removeNode(m.value),a(m.value)}const p={texts:this.texts.map(m=>{const f=m.node,r=k.parentNode(f);return r&&r.tagName==="TEXTAREA"&&this.genTextAreaValueMutation(r),{id:this.mirror.getId(f),value:m.value}}).filter(m=>!s.has(m.id)).filter(m=>this.mirror.has(m.id)),attributes:this.attributes.map(m=>{const{attributes:f}=m;if(typeof f.style=="string"){const r=JSON.stringify(m.styleDiff),u=JSON.stringify(m._unchangedStyles);r.length<f.style.length&&(r+u).split("var(").length===f.style.split("var(").length&&(f.style=m.styleDiff)}return{id:this.mirror.getId(m.node),attributes:f}}).filter(m=>!s.has(m.id)).filter(m=>this.mirror.has(m.id)),removes:this.removes,adds:t};!p.texts.length&&!p.attributes.length&&!p.removes.length&&!p.adds.length||(this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.removesSubTreeCache=new Set,this.movedMap={},this.mutationCb(p))}),E(this,"genTextAreaValueMutation",t=>{let s=this.attributeMap.get(t);s||(s={node:t,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(s),this.attributeMap.set(t,s)),s.attributes.value=Array.from(k.childNodes(t),o=>k.textContent(o)||"").join("")}),E(this,"processMutation",t=>{if(!Nr(t.target,this.mirror,this.slimDOMOptions))switch(t.type){case"characterData":{const s=k.textContent(t.target);!se(t.target,this.blockClass,this.blockSelector,!1)&&s!==t.oldValue&&this.texts.push({value:ji(t.target,this.maskTextClass,this.maskTextSelector,!0)&&s?this.maskTextFn?this.maskTextFn(s,yn(t.target)):s.replace(/[\S]/g,"*"):s,node:t.target});break}case"attributes":{const s=t.target;let o=t.attributeName,i=t.target.getAttribute(o);if(o==="value"){const h=Br(s);i=Fr({element:s,maskInputOptions:this.maskInputOptions,tagName:s.tagName,type:h,value:i,maskInputFn:this.maskInputFn})}if(se(t.target,this.blockClass,this.blockSelector,!1)||i===t.oldValue)return;let a=this.attributeMap.get(t.target);if(s.tagName==="IFRAME"&&o==="src"&&!this.keepIframeSrcFn(i))if(!s.contentDocument)o="rr_src";else return;if(a||(a={node:t.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(a),this.attributeMap.set(t.target,a)),o==="type"&&s.tagName==="INPUT"&&(t.oldValue||"").toLowerCase()==="password"&&s.setAttribute("data-rr-is-password","true"),!qi(s.tagName,o))if(a.attributes[o]=zi(this.doc,Oe(s.tagName),Oe(o),i,s,this.dataURLOptions),o==="style"){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch(p){this.unattachedDoc=this.doc}const h=this.unattachedDoc.createElement("span");t.oldValue&&h.setAttribute("style",t.oldValue);for(const p of Array.from(s.style)){const m=s.style.getPropertyValue(p),f=s.style.getPropertyPriority(p);m!==h.style.getPropertyValue(p)||f!==h.style.getPropertyPriority(p)?f===""?a.styleDiff[p]=m:a.styleDiff[p]=[m,f]:a._unchangedStyles[p]=[m,f]}for(const p of Array.from(h.style))s.style.getPropertyValue(p)===""&&(a.styleDiff[p]=!1)}else o==="open"&&s.tagName==="DIALOG"&&(s.matches("dialog:modal")?a.attributes.rr_open_mode="modal":a.attributes.rr_open_mode="non-modal");break}case"childList":{if(se(t.target,this.blockClass,this.blockSelector,!0))return;if(t.target.tagName==="TEXTAREA"){this.genTextAreaValueMutation(t.target);return}t.addedNodes.forEach(s=>this.genAdds(s,t.target)),t.removedNodes.forEach(s=>{const o=this.mirror.getId(s),i=$e(t.target)?this.mirror.getId(k.host(t.target)):this.mirror.getId(t.target);se(t.target,this.blockClass,this.blockSelector,!1)||Nr(s,this.mirror,this.slimDOMOptions)||!ga(s,this.mirror)||(this.addedSet.has(s)?(Lr(this.addedSet,s),this.droppedSet.add(s)):this.addedSet.has(t.target)&&o===-1||wn(t.target,this.mirror)||(this.movedSet.has(s)&&this.movedMap[Mi(o,i)]?Lr(this.movedSet,s):(this.removes.push({parentId:i,id:o,isShadow:$e(t.target)&&Ue(t.target)?!0:void 0}),xa(s,this.removesSubTreeCache))),this.mapRemoves.push(s))});break}}}),E(this,"genAdds",(t,s)=>{if(!this.processedNodeManager.inOtherBuffer(t,this)&&!(this.addedSet.has(t)||this.movedSet.has(t))){if(this.mirror.hasNode(t)){if(Nr(t,this.mirror,this.slimDOMOptions))return;this.movedSet.add(t);let o=null;s&&this.mirror.hasNode(s)&&(o=this.mirror.getId(s)),o&&o!==-1&&(this.movedMap[Mi(this.mirror.getId(t),o)]=!0)}else this.addedSet.add(t),this.droppedSet.delete(t);se(t,this.blockClass,this.blockSelector,!1)||(k.childNodes(t).forEach(o=>this.genAdds(o)),Dr(t)&&k.childNodes(k.shadowRoot(t)).forEach(o=>{this.processedNodeManager.add(o,this),this.genAdds(o,t)}))}})}init(t){["mutationCb","blockClass","blockSelector","maskTextClass","maskTextSelector","inlineStylesheet","maskInputOptions","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager"].forEach(s=>{this[s]=t[s]})}freeze(){this.frozen=!0,this.canvasManager.freeze()}unfreeze(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()}isFrozen(){return this.frozen}lock(){this.locked=!0,this.canvasManager.lock()}unlock(){this.locked=!1,this.canvasManager.unlock(),this.emit()}reset(){this.shadowDomManager.reset(),this.canvasManager.reset()}destroy(){for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift())}}function Lr(e,t){e.delete(t),k.childNodes(t).forEach(s=>Lr(e,s))}function xa(e,t){const s=[e];for(;s.length;){const o=s.pop();t.has(o)||(t.add(o),k.childNodes(o).forEach(i=>s.push(i)))}}function Ii(e,t,s){return e.size===0?!1:Ra(e,t)}function Ra(e,t,s){const o=k.parentNode(t);return o?e.has(o):!1}function Ei(e,t){return e.size===0?!1:Rn(e,t)}function Rn(e,t){const s=k.parentNode(t);return s?e.has(s)?!0:Rn(e,s):!1}let We;function Oa(e){We=e}function Ma(){We=void 0}const F=e=>We?(...s)=>{try{return e(...s)}catch(o){if(We&&We(o)===!0)return;throw o}}:e,we=[];function Je(e){try{if("composedPath"in e){const t=e.composedPath();if(t.length)return t[0]}else if("path"in e&&e.path.length)return e.path[0]}catch(t){}return e&&e.target}function On(e,t){const s=new Ca;we.push(s),s.init(e);const o=new(pn())(F(s.processMutations.bind(s)));return o.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),o}function Ia({mousemoveCb:e,sampling:t,doc:s,mirror:o}){if(t.mousemove===!1)return()=>{};const i=typeof t.mousemove=="number"?t.mousemove:50,a=typeof t.mousemoveCallback=="number"?t.mousemoveCallback:500;let h=[],p;const m=qe(F(u=>{const l=Date.now()-p;e(h.map(n=>(n.timeOffset-=l,n)),u),h=[],p=null}),a),f=F(qe(F(u=>{const l=Je(u),{clientX:n,clientY:d}=kr(u)?u.changedTouches[0]:u;p||(p=ct()),h.push({x:n,y:d,id:o.getId(l),timeOffset:ct()-p}),m(typeof DragEvent!="undefined"&&u instanceof DragEvent?L.Drag:u instanceof MouseEvent?L.MouseMove:L.TouchMove)}),i,{trailing:!1})),r=[re("mousemove",f,s),re("touchmove",f,s),re("drag",f,s)];return F(()=>{r.forEach(u=>u())})}function Ea({mouseInteractionCb:e,doc:t,mirror:s,blockClass:o,blockSelector:i,sampling:a}){if(a.mouseInteraction===!1)return()=>{};const h=a.mouseInteraction===!0||a.mouseInteraction===void 0?{}:a.mouseInteraction,p=[];let m=null;const f=r=>u=>{const l=Je(u);if(se(l,o,i,!0))return;let n=null,d=r;if("pointerType"in u){switch(u.pointerType){case"mouse":n=ye.Mouse;break;case"touch":n=ye.Touch;break;case"pen":n=ye.Pen;break}n===ye.Touch?ne[r]===ne.MouseDown?d="TouchStart":ne[r]===ne.MouseUp&&(d="TouchEnd"):ye.Pen}else kr(u)&&(n=ye.Touch);n!==null?(m=n,(d.startsWith("Touch")&&n===ye.Touch||d.startsWith("Mouse")&&n===ye.Mouse)&&(n=null)):ne[r]===ne.Click&&(n=m,m=null);const c=kr(u)?u.changedTouches[0]:u;if(!c)return;const g=s.getId(l),{clientX:v,clientY:b}=c;F(e)(D({type:ne[d],id:g,x:v,y:b},n!==null&&{pointerType:n}))};return Object.keys(ne).filter(r=>Number.isNaN(Number(r))&&!r.endsWith("_Departed")&&h[r]!==!1).forEach(r=>{let u=Oe(r);const l=f(r);if(window.PointerEvent)switch(ne[r]){case ne.MouseDown:case ne.MouseUp:u=u.replace("mouse","pointer");break;case ne.TouchStart:case ne.TouchEnd:return}p.push(re(u,l,t))}),F(()=>{p.forEach(r=>r())})}function Mn({scrollCb:e,doc:t,mirror:s,blockClass:o,blockSelector:i,sampling:a}){const h=F(qe(F(p=>{const m=Je(p);if(!m||se(m,o,i,!0))return;const f=s.getId(m);if(m===t&&t.defaultView){const r=dn(t.defaultView);e({id:f,x:r.left,y:r.top})}else e({id:f,x:m.scrollLeft,y:m.scrollTop})}),a.scroll||100));return re("scroll",h,t)}function Aa({viewportResizeCb:e},{win:t}){let s=-1,o=-1;const i=F(qe(F(()=>{const a=mn(),h=gn();(s!==a||o!==h)&&(e({width:Number(h),height:Number(a)}),s=a,o=h)}),200));return re("resize",i,t)}const Pa=["INPUT","TEXTAREA","SELECT"],Ai=new WeakMap;function Na({inputCb:e,doc:t,mirror:s,blockClass:o,blockSelector:i,ignoreClass:a,ignoreSelector:h,maskInputOptions:p,maskInputFn:m,sampling:f,userTriggeredOnInput:r}){function u(b){let S=Je(b);const x=b.isTrusted,y=S&&S.tagName;if(S&&y==="OPTION"&&(S=k.parentElement(S)),!S||!y||Pa.indexOf(y)<0||se(S,o,i,!0)||S.classList.contains(a)||h&&S.matches(h))return;let w=S.value,C=!1;const R=Br(S)||"";R==="radio"||R==="checkbox"?C=S.checked:(p[y.toLowerCase()]||p[R])&&(w=Fr({element:S,maskInputOptions:p,tagName:y,type:R,value:w,maskInputFn:m})),l(S,r?{text:w,isChecked:C,userTriggered:x}:{text:w,isChecked:C});const A=S.name;R==="radio"&&A&&C&&t.querySelectorAll(`input[type="radio"][name="${A}"]`).forEach(M=>{if(M!==S){const N=M.value;l(M,r?{text:N,isChecked:!C,userTriggered:!1}:{text:N,isChecked:!C})}})}function l(b,S){const x=Ai.get(b);if(!x||x.text!==S.text||x.isChecked!==S.isChecked){Ai.set(b,S);const y=s.getId(b);F(e)(le(D({},S),{id:y}))}}const d=(f.input==="last"?["change"]:["input","change"]).map(b=>re(b,F(u),t)),c=t.defaultView;if(!c)return()=>{d.forEach(b=>b())};const g=c.Object.getOwnPropertyDescriptor(c.HTMLInputElement.prototype,"value"),v=[[c.HTMLInputElement.prototype,"value"],[c.HTMLInputElement.prototype,"checked"],[c.HTMLSelectElement.prototype,"value"],[c.HTMLTextAreaElement.prototype,"value"],[c.HTMLSelectElement.prototype,"selectedIndex"],[c.HTMLOptionElement.prototype,"selected"]];return g&&g.set&&d.push(...v.map(b=>vt(b[0],b[1],{set(){F(u)({target:this,isTrusted:!1})}},!1,c))),F(()=>{d.forEach(b=>b())})}function ht(e){const t=[];function s(o,i){if(rt("CSSGroupingRule")&&o.parentRule instanceof CSSGroupingRule||rt("CSSMediaRule")&&o.parentRule instanceof CSSMediaRule||rt("CSSSupportsRule")&&o.parentRule instanceof CSSSupportsRule||rt("CSSConditionRule")&&o.parentRule instanceof CSSConditionRule){const h=Array.from(o.parentRule.cssRules).indexOf(o);i.unshift(h)}else if(o.parentStyleSheet){const h=Array.from(o.parentStyleSheet.cssRules).indexOf(o);i.unshift(h)}return i}return s(e,t)}function Se(e,t,s){let o,i;return e?(e.ownerNode?o=t.getId(e.ownerNode):i=s.getId(e),{styleId:i,id:o}):{}}function _a({styleSheetRuleCb:e,mirror:t,stylesheetManager:s},{win:o}){if(!o.CSSStyleSheet||!o.CSSStyleSheet.prototype)return()=>{};const i=o.CSSStyleSheet.prototype.insertRule;o.CSSStyleSheet.prototype.insertRule=new Proxy(i,{apply:F((r,u,l)=>{const[n,d]=l,{id:c,styleId:g}=Se(u,t,s.styleMirror);return(c&&c!==-1||g&&g!==-1)&&e({id:c,styleId:g,adds:[{rule:n,index:d}]}),r.apply(u,l)})}),o.CSSStyleSheet.prototype.addRule=function(r,u,l=this.cssRules.length){const n=`${r} { ${u} }`;return o.CSSStyleSheet.prototype.insertRule.apply(this,[n,l])};const a=o.CSSStyleSheet.prototype.deleteRule;o.CSSStyleSheet.prototype.deleteRule=new Proxy(a,{apply:F((r,u,l)=>{const[n]=l,{id:d,styleId:c}=Se(u,t,s.styleMirror);return(d&&d!==-1||c&&c!==-1)&&e({id:d,styleId:c,removes:[{index:n}]}),r.apply(u,l)})}),o.CSSStyleSheet.prototype.removeRule=function(r){return o.CSSStyleSheet.prototype.deleteRule.apply(this,[r])};let h;o.CSSStyleSheet.prototype.replace&&(h=o.CSSStyleSheet.prototype.replace,o.CSSStyleSheet.prototype.replace=new Proxy(h,{apply:F((r,u,l)=>{const[n]=l,{id:d,styleId:c}=Se(u,t,s.styleMirror);return(d&&d!==-1||c&&c!==-1)&&e({id:d,styleId:c,replace:n}),r.apply(u,l)})}));let p;o.CSSStyleSheet.prototype.replaceSync&&(p=o.CSSStyleSheet.prototype.replaceSync,o.CSSStyleSheet.prototype.replaceSync=new Proxy(p,{apply:F((r,u,l)=>{const[n]=l,{id:d,styleId:c}=Se(u,t,s.styleMirror);return(d&&d!==-1||c&&c!==-1)&&e({id:d,styleId:c,replaceSync:n}),r.apply(u,l)})}));const m={};st("CSSGroupingRule")?m.CSSGroupingRule=o.CSSGroupingRule:(st("CSSMediaRule")&&(m.CSSMediaRule=o.CSSMediaRule),st("CSSConditionRule")&&(m.CSSConditionRule=o.CSSConditionRule),st("CSSSupportsRule")&&(m.CSSSupportsRule=o.CSSSupportsRule));const f={};return Object.entries(m).forEach(([r,u])=>{f[r]={insertRule:u.prototype.insertRule,deleteRule:u.prototype.deleteRule},u.prototype.insertRule=new Proxy(f[r].insertRule,{apply:F((l,n,d)=>{const[c,g]=d,{id:v,styleId:b}=Se(n.parentStyleSheet,t,s.styleMirror);return(v&&v!==-1||b&&b!==-1)&&e({id:v,styleId:b,adds:[{rule:c,index:[...ht(n),g||0]}]}),l.apply(n,d)})}),u.prototype.deleteRule=new Proxy(f[r].deleteRule,{apply:F((l,n,d)=>{const[c]=d,{id:g,styleId:v}=Se(n.parentStyleSheet,t,s.styleMirror);return(g&&g!==-1||v&&v!==-1)&&e({id:g,styleId:v,removes:[{index:[...ht(n),c]}]}),l.apply(n,d)})})}),F(()=>{o.CSSStyleSheet.prototype.insertRule=i,o.CSSStyleSheet.prototype.deleteRule=a,h&&(o.CSSStyleSheet.prototype.replace=h),p&&(o.CSSStyleSheet.prototype.replaceSync=p),Object.entries(m).forEach(([r,u])=>{u.prototype.insertRule=f[r].insertRule,u.prototype.deleteRule=f[r].deleteRule})})}function In({mirror:e,stylesheetManager:t},s){var o,i,a;let h=null;s.nodeName==="#document"?h=e.getId(s):h=e.getId(k.host(s));const p=s.nodeName==="#document"?(o=s.defaultView)==null?void 0:o.Document:(a=(i=s.ownerDocument)==null?void 0:i.defaultView)==null?void 0:a.ShadowRoot,m=p!=null&&p.prototype?Object.getOwnPropertyDescriptor(p==null?void 0:p.prototype,"adoptedStyleSheets"):void 0;return h===null||h===-1||!p||!m?()=>{}:(Object.defineProperty(s,"adoptedStyleSheets",{configurable:m.configurable,enumerable:m.enumerable,get(){var f;return(f=m.get)==null?void 0:f.call(this)},set(f){var r;const u=(r=m.set)==null?void 0:r.call(this,f);if(h!==null&&h!==-1)try{t.adoptStyleSheets(f,h)}catch(l){}return u}}),F(()=>{Object.defineProperty(s,"adoptedStyleSheets",{configurable:m.configurable,enumerable:m.enumerable,get:m.get,set:m.set})}))}function ka({styleDeclarationCb:e,mirror:t,ignoreCSSAttributes:s,stylesheetManager:o},{win:i}){const a=i.CSSStyleDeclaration.prototype.setProperty;i.CSSStyleDeclaration.prototype.setProperty=new Proxy(a,{apply:F((p,m,f)=>{var r;const[u,l,n]=f;if(s.has(u))return a.apply(m,[u,l,n]);const{id:d,styleId:c}=Se((r=m.parentRule)==null?void 0:r.parentStyleSheet,t,o.styleMirror);return(d&&d!==-1||c&&c!==-1)&&e({id:d,styleId:c,set:{property:u,value:l,priority:n},index:ht(m.parentRule)}),p.apply(m,f)})});const h=i.CSSStyleDeclaration.prototype.removeProperty;return i.CSSStyleDeclaration.prototype.removeProperty=new Proxy(h,{apply:F((p,m,f)=>{var r;const[u]=f;if(s.has(u))return h.apply(m,[u]);const{id:l,styleId:n}=Se((r=m.parentRule)==null?void 0:r.parentStyleSheet,t,o.styleMirror);return(l&&l!==-1||n&&n!==-1)&&e({id:l,styleId:n,remove:{property:u},index:ht(m.parentRule)}),p.apply(m,f)})}),F(()=>{i.CSSStyleDeclaration.prototype.setProperty=a,i.CSSStyleDeclaration.prototype.removeProperty=h})}function Da({mediaInteractionCb:e,blockClass:t,blockSelector:s,mirror:o,sampling:i,doc:a}){const h=F(m=>qe(F(f=>{const r=Je(f);if(!r||se(r,t,s,!0))return;const{currentTime:u,volume:l,muted:n,playbackRate:d,loop:c}=r;e({type:m,id:o.getId(r),currentTime:u,volume:l,muted:n,playbackRate:d,loop:c})}),i.media||500)),p=[re("play",h(De.Play),a),re("pause",h(De.Pause),a),re("seeked",h(De.Seeked),a),re("volumechange",h(De.VolumeChange),a),re("ratechange",h(De.RateChange),a)];return F(()=>{p.forEach(m=>m())})}function La({fontCb:e,doc:t}){const s=t.defaultView;if(!s)return()=>{};const o=[],i=new WeakMap,a=s.FontFace;s.FontFace=function(m,f,r){const u=new a(m,f,r);return i.set(u,{family:m,buffer:typeof f!="string",descriptors:r,fontSource:typeof f=="string"?f:JSON.stringify(Array.from(new Uint8Array(f)))}),u};const h=Ee(t.fonts,"add",function(p){return function(m){return setTimeout(F(()=>{const f=i.get(m);f&&(e(f),i.delete(m))}),0),p.apply(this,[m])}});return o.push(()=>{s.FontFace=a}),o.push(h),F(()=>{o.forEach(p=>p())})}function Ta(e){const{doc:t,mirror:s,blockClass:o,blockSelector:i,selectionCb:a}=e;let h=!0;const p=F(()=>{const m=t.getSelection();if(!m||h&&(m!=null&&m.isCollapsed))return;h=m.isCollapsed||!1;const f=[],r=m.rangeCount||0;for(let u=0;u<r;u++){const l=m.getRangeAt(u),{startContainer:n,startOffset:d,endContainer:c,endOffset:g}=l;se(n,o,i,!0)||se(c,o,i,!0)||f.push({start:s.getId(n),startOffset:d,end:s.getId(c),endOffset:g})}a({ranges:f})});return p(),re("selectionchange",p)}function Fa({doc:e,customElementCb:t}){const s=e.defaultView;return!s||!s.customElements?()=>{}:Ee(s.customElements,"define",function(i){return function(a,h,p){try{t({define:{name:a}})}catch(m){console.warn(`Custom element callback failed for ${a}`)}return i.apply(this,[a,h,p])}})}function Ba(e,t){const{mutationCb:s,mousemoveCb:o,mouseInteractionCb:i,scrollCb:a,viewportResizeCb:h,inputCb:p,mediaInteractionCb:m,styleSheetRuleCb:f,styleDeclarationCb:r,canvasMutationCb:u,fontCb:l,selectionCb:n,customElementCb:d}=e;e.mutationCb=(...c)=>{t.mutation&&t.mutation(...c),s(...c)},e.mousemoveCb=(...c)=>{t.mousemove&&t.mousemove(...c),o(...c)},e.mouseInteractionCb=(...c)=>{t.mouseInteraction&&t.mouseInteraction(...c),i(...c)},e.scrollCb=(...c)=>{t.scroll&&t.scroll(...c),a(...c)},e.viewportResizeCb=(...c)=>{t.viewportResize&&t.viewportResize(...c),h(...c)},e.inputCb=(...c)=>{t.input&&t.input(...c),p(...c)},e.mediaInteractionCb=(...c)=>{t.mediaInteaction&&t.mediaInteaction(...c),m(...c)},e.styleSheetRuleCb=(...c)=>{t.styleSheetRule&&t.styleSheetRule(...c),f(...c)},e.styleDeclarationCb=(...c)=>{t.styleDeclaration&&t.styleDeclaration(...c),r(...c)},e.canvasMutationCb=(...c)=>{t.canvasMutation&&t.canvasMutation(...c),u(...c)},e.fontCb=(...c)=>{t.font&&t.font(...c),l(...c)},e.selectionCb=(...c)=>{t.selection&&t.selection(...c),n(...c)},e.customElementCb=(...c)=>{t.customElement&&t.customElement(...c),d(...c)}}function $a(e,t={}){const s=e.doc.defaultView;if(!s)return()=>{};Ba(e,t);let o;e.recordDOM&&(o=On(e,e.doc));const i=Ia(e),a=Ea(e),h=Mn(e),p=Aa(e,{win:s}),m=Na(e),f=Da(e);let r=()=>{},u=()=>{},l=()=>{},n=()=>{};e.recordDOM&&(r=_a(e,{win:s}),u=In(e,e.doc),l=ka(e,{win:s}),e.collectFonts&&(n=La(e)));const d=Ta(e),c=Fa(e),g=[];for(const v of e.plugins)g.push(v.observer(v.callback,s,v.options));return F(()=>{we.forEach(v=>v.destroy()),we.forEach(v=>v.reset()),o==null||o.disconnect(),i(),a(),h(),p(),m(),f(),r(),u(),l(),n(),d(),c(),g.forEach(v=>v()),we.length=0})}function rt(e){return typeof window[e]!="undefined"}function st(e){return!!(typeof window[e]!="undefined"&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}class Pi{constructor(t){E(this,"iframeIdToRemoteIdMap",new WeakMap),E(this,"iframeRemoteIdToIdMap",new WeakMap),this.generateIdFn=t}getId(t,s,o,i){const a=o||this.getIdToRemoteIdMap(t),h=i||this.getRemoteIdToIdMap(t);let p=a.get(s);return p||(p=this.generateIdFn(),a.set(s,p),h.set(p,s)),p}getIds(t,s){const o=this.getIdToRemoteIdMap(t),i=this.getRemoteIdToIdMap(t);return s.map(a=>this.getId(t,a,o,i))}getRemoteId(t,s,o){const i=o||this.getRemoteIdToIdMap(t);if(typeof s!="number")return s;const a=i.get(s);return a||-1}getRemoteIds(t,s){const o=this.getRemoteIdToIdMap(t);return s.map(i=>this.getRemoteId(t,i,o))}reset(t){if(!t){this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap;return}this.iframeIdToRemoteIdMap.delete(t),this.iframeRemoteIdToIdMap.delete(t)}getIdToRemoteIdMap(t){let s=this.iframeIdToRemoteIdMap.get(t);return s||(s=new Map,this.iframeIdToRemoteIdMap.set(t,s)),s}getRemoteIdToIdMap(t){let s=this.iframeRemoteIdToIdMap.get(t);return s||(s=new Map,this.iframeRemoteIdToIdMap.set(t,s)),s}}class Ua{constructor(t){E(this,"iframes",new WeakMap),E(this,"crossOriginIframeMap",new WeakMap),E(this,"crossOriginIframeMirror",new Pi(Wi)),E(this,"crossOriginIframeStyleMirror"),E(this,"crossOriginIframeRootIdMap",new WeakMap),E(this,"mirror"),E(this,"mutationCb"),E(this,"wrappedEmit"),E(this,"loadListener"),E(this,"stylesheetManager"),E(this,"recordCrossOriginIframes"),E(this,"messageHandler"),E(this,"nestedIframeListeners",new Map),E(this,"attachedIframes",new Map),this.mutationCb=t.mutationCb,this.wrappedEmit=t.wrappedEmit,this.stylesheetManager=t.stylesheetManager,this.recordCrossOriginIframes=t.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new Pi(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=t.mirror,this.messageHandler=this.handleMessage.bind(this),this.recordCrossOriginIframes&&window.addEventListener("message",this.messageHandler)}addIframe(t){this.iframes.set(t,!0),t.contentWindow&&this.crossOriginIframeMap.set(t.contentWindow,t)}addLoadListener(t){this.loadListener=t}removeLoadListener(){this.loadListener=void 0}attachIframe(t,s){var o;this.attachedIframes.set(t,s),this.mutationCb({adds:[{parentId:this.mirror.getId(t),nextId:null,node:s}],removes:[],texts:[],attributes:[],isAttachIframe:!0});const i=t.contentWindow;if(this.recordCrossOriginIframes&&i&&!this.nestedIframeListeners.has(i)){const a=this.handleMessage.bind(this);this.nestedIframeListeners.set(i,a),i.addEventListener("message",a)}(o=this.loadListener)==null||o.call(this,t),t.contentDocument&&t.contentDocument.adoptedStyleSheets&&t.contentDocument.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(t.contentDocument.adoptedStyleSheets,this.mirror.getId(t.contentDocument))}handleMessage(t){const s=t;if(s.data.type!=="rrweb"||s.origin!==s.data.origin||!t.source)return;const i=this.crossOriginIframeMap.get(t.source);if(!i)return;const a=this.transformCrossOriginEvent(i,s.data.event);a&&this.wrappedEmit(a,s.data.isCheckout)}transformCrossOriginEvent(t,s){var o;switch(s.type){case B.FullSnapshot:{this.crossOriginIframeMirror.reset(t),this.crossOriginIframeStyleMirror.reset(t),this.replaceIdOnNode(s.data.node,t);const i=s.data.node.id;return this.crossOriginIframeRootIdMap.set(t,i),this.patchRootIdOnNode(s.data.node,i),this.attachedIframes.set(t,s.data.node),{timestamp:s.timestamp,type:B.IncrementalSnapshot,data:{source:L.Mutation,adds:[{parentId:this.mirror.getId(t),nextId:null,node:s.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case B.Meta:case B.Load:case B.DomContentLoaded:return!1;case B.Plugin:return s;case B.Custom:return this.replaceIds(s.data.payload,t,["id","parentId","previousId","nextId"]),s;case B.IncrementalSnapshot:switch(s.data.source){case L.Mutation:return s.data.adds.forEach(i=>{this.replaceIds(i,t,["parentId","nextId","previousId"]),this.replaceIdOnNode(i.node,t);const a=this.crossOriginIframeRootIdMap.get(t);a&&this.patchRootIdOnNode(i.node,a)}),s.data.removes.forEach(i=>{this.replaceIds(i,t,["parentId","id"])}),s.data.attributes.forEach(i=>{this.replaceIds(i,t,["id"])}),s.data.texts.forEach(i=>{this.replaceIds(i,t,["id"])}),s;case L.Drag:case L.TouchMove:case L.MouseMove:return s.data.positions.forEach(i=>{this.replaceIds(i,t,["id"])}),s;case L.ViewportResize:return!1;case L.MediaInteraction:case L.MouseInteraction:case L.Scroll:case L.CanvasMutation:case L.Input:return this.replaceIds(s.data,t,["id"]),s;case L.StyleSheetRule:case L.StyleDeclaration:return this.replaceIds(s.data,t,["id"]),this.replaceStyleIds(s.data,t,["styleId"]),s;case L.Font:return s;case L.Selection:return s.data.ranges.forEach(i=>{this.replaceIds(i,t,["start","end"])}),s;case L.AdoptedStyleSheet:return this.replaceIds(s.data,t,["id"]),this.replaceStyleIds(s.data,t,["styleIds"]),(o=s.data.styles)==null||o.forEach(i=>{this.replaceStyleIds(i,t,["styleId"])}),s}}return!1}replace(t,s,o,i){for(const a of i)!Array.isArray(s[a])&&typeof s[a]!="number"||(Array.isArray(s[a])?s[a]=t.getIds(o,s[a]):s[a]=t.getId(o,s[a]));return s}replaceIds(t,s,o){return this.replace(this.crossOriginIframeMirror,t,s,o)}replaceStyleIds(t,s,o){return this.replace(this.crossOriginIframeStyleMirror,t,s,o)}replaceIdOnNode(t,s){this.replaceIds(t,s,["id","rootId"]),"childNodes"in t&&t.childNodes.forEach(o=>{this.replaceIdOnNode(o,s)})}patchRootIdOnNode(t,s){t.type!==xn.Document&&!t.rootId&&(t.rootId=s),"childNodes"in t&&t.childNodes.forEach(o=>{this.patchRootIdOnNode(o,s)})}reattachIframes(){this.attachedIframes.forEach((t,s)=>{if(!s.isConnected){this.attachedIframes.delete(s);return}const o=this.mirror.getId(s);if(o===-1){this.attachedIframes.delete(s);return}this.mutationCb({adds:[{parentId:o,nextId:null,node:t}],removes:[],texts:[],attributes:[],isAttachIframe:!0})})}destroy(){this.recordCrossOriginIframes&&window.removeEventListener("message",this.messageHandler),this.nestedIframeListeners.forEach((t,s)=>{s.removeEventListener("message",t)}),this.nestedIframeListeners.clear(),this.crossOriginIframeMirror.reset(),this.crossOriginIframeStyleMirror.reset(),this.attachedIframes.clear()}}class Wa{constructor(t){E(this,"shadowDoms",new WeakSet),E(this,"mutationCb"),E(this,"scrollCb"),E(this,"bypassOptions"),E(this,"mirror"),E(this,"restoreHandlers",[]),this.mutationCb=t.mutationCb,this.scrollCb=t.scrollCb,this.bypassOptions=t.bypassOptions,this.mirror=t.mirror,this.init()}init(){this.reset(),this.patchAttachShadow(Element,document)}addShadowRoot(t,s){if(!Ue(t)||this.shadowDoms.has(t))return;this.shadowDoms.add(t);const o=On(le(D({},this.bypassOptions),{doc:s,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this}),t);this.restoreHandlers.push(()=>o.disconnect()),this.restoreHandlers.push(Mn(le(D({},this.bypassOptions),{scrollCb:this.scrollCb,doc:t,mirror:this.mirror}))),setTimeout(()=>{t.adoptedStyleSheets&&t.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(t.adoptedStyleSheets,this.mirror.getId(k.host(t))),this.restoreHandlers.push(In({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},t))},0)}observeAttachShadow(t){!t.contentWindow||!t.contentDocument||this.patchAttachShadow(t.contentWindow.Element,t.contentDocument)}patchAttachShadow(t,s){const o=this;this.restoreHandlers.push(Ee(t.prototype,"attachShadow",function(i){return function(a){const h=i.call(this,a),p=k.shadowRoot(this);return p&&Cn(this)&&o.addShadowRoot(p,s),h}}))}reset(){this.restoreHandlers.forEach(t=>{try{t()}catch(s){}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet}}var Fe="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",za=typeof Uint8Array=="undefined"?[]:new Uint8Array(256);for(var it=0;it<Fe.length;it++)za[Fe.charCodeAt(it)]=it;var qa=function(e){var t=new Uint8Array(e),s,o=t.length,i="";for(s=0;s<o;s+=3)i+=Fe[t[s]>>2],i+=Fe[(t[s]&3)<<4|t[s+1]>>4],i+=Fe[(t[s+1]&15)<<2|t[s+2]>>6],i+=Fe[t[s+2]&63];return o%3===2?i=i.substring(0,i.length-1)+"=":o%3===1&&(i=i.substring(0,i.length-2)+"=="),i};const Ni=new Map;function ja(e,t){let s=Ni.get(e);return s||(s=new Map,Ni.set(e,s)),s.has(t)||s.set(t,[]),s.get(t)}const En=(e,t,s)=>{if(!e||!(Pn(e,t)||typeof e=="object"))return;const o=e.constructor.name,i=ja(s,o);let a=i.indexOf(e);return a===-1&&(a=i.length,i.push(e)),a};function nt(e,t,s,o){if(e instanceof Array)return e.map(i=>nt(i,t,s,o));if(e===null)return e;if(e instanceof Float32Array||e instanceof Float64Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Uint8Array||e instanceof Uint16Array||e instanceof Int16Array||e instanceof Int8Array||e instanceof Uint8ClampedArray)return{rr_type:e.constructor.name,args:[Object.values(e)]};if(e instanceof ArrayBuffer){const i=e.constructor.name,a=qa(e);return{rr_type:i,base64:a}}else{if(e instanceof DataView)return{rr_type:e.constructor.name,args:[nt(e.buffer,t,s,o),e.byteOffset,e.byteLength]};if(e instanceof HTMLImageElement){const i=e.constructor.name,{src:a}=e;return{rr_type:i,src:a}}else if(e instanceof HTMLCanvasElement){const i="HTMLImageElement",a=e.toDataURL(o.type,o.quality);return{rr_type:i,src:a}}else{if(e instanceof ImageData)return{rr_type:e.constructor.name,args:[nt(e.data,t,s,o),e.width,e.height]};if(Pn(e,t)||typeof e=="object"){const i=e.constructor.name,a=En(e,t,s);return{rr_type:i,index:a}}}}return e}const An=(e,t,s,o)=>e.map(i=>nt(i,t,s,o)),Pn=(e,t)=>!!["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"].filter(i=>typeof t[i]=="function").find(i=>e instanceof t[i]);function Ha(e,t,s,o,i){const a=[],h=Object.getOwnPropertyNames(t.CanvasRenderingContext2D.prototype);for(const p of h)try{if(typeof t.CanvasRenderingContext2D.prototype[p]!="function")continue;const m=Ee(t.CanvasRenderingContext2D.prototype,p,function(f){return function(...r){return se(this.canvas,s,o,!0)||setTimeout(()=>{const u=An(r,t,this,i);e(this.canvas,{type:Be["2D"],property:p,args:u})},0),f.apply(this,r)}});a.push(m)}catch(m){const f=vt(t.CanvasRenderingContext2D.prototype,p,{set(r){e(this.canvas,{type:Be["2D"],property:p,args:[r],setter:!0})}});a.push(f)}return()=>{a.forEach(p=>p())}}function Va(e){return e==="experimental-webgl"?"webgl":e}function _i(e,t,s,o){const i=[];try{const a=Ee(e.HTMLCanvasElement.prototype,"getContext",function(h){return function(p,...m){if(!se(this,t,s,!0)){const f=Va(p);if("__context"in this||(this.__context=f),o&&["webgl","webgl2"].includes(f))if(m[0]&&typeof m[0]=="object"){const r=m[0];r.preserveDrawingBuffer||(r.preserveDrawingBuffer=!0)}else m.splice(0,1,{preserveDrawingBuffer:!0})}return h.apply(this,[p,...m])}});i.push(a)}catch(a){console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return()=>{i.forEach(a=>a())}}function ki(e,t,s,o,i,a,h){const p=[],m=Object.getOwnPropertyNames(e);for(const f of m)if(!["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(f))try{if(typeof e[f]!="function")continue;const r=Ee(e,f,function(u){return function(...l){const n=u.apply(this,l);if(En(n,a,this),"tagName"in this.canvas&&!se(this.canvas,o,i,!0)){const d=An(l,a,this,h),c={type:t,property:f,args:d};s(this.canvas,c)}return n}});p.push(r)}catch(r){const u=vt(e,f,{set(l){s(this.canvas,{type:t,property:f,args:[l],setter:!0})}});p.push(u)}return p}function Ga(e,t,s,o,i){const a=[];return a.push(...ki(t.WebGLRenderingContext.prototype,Be.WebGL,e,s,o,t,i)),typeof t.WebGL2RenderingContext!="undefined"&&a.push(...ki(t.WebGL2RenderingContext.prototype,Be.WebGL2,e,s,o,t,i)),()=>{a.forEach(h=>h())}}const Nn=`(function() {
71
71
  "use strict";
72
72
  var chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
73
73
  var lookup = typeof Uint8Array === "undefined" ? [] : new Uint8Array(256);
@@ -142,7 +142,7 @@ or you can use record.mirror to access the mirror instance during recording.`;le
142
142
  };
143
143
  })();
144
144
  //# sourceMappingURL=image-bitmap-data-url-worker-IJpC7g_b.js.map
145
- `,Di=typeof self!="undefined"&&self.Blob&&new Blob([Nn],{type:"text/javascript;charset=utf-8"});function Ja(e){let t;try{if(t=Di&&(self.URL||self.webkitURL).createObjectURL(Di),!t)throw"";const s=new Worker(t,{name:e==null?void 0:e.name});return s.addEventListener("error",()=>{(self.URL||self.webkitURL).revokeObjectURL(t)}),s}catch(s){return new Worker("data:text/javascript;charset=utf-8,"+encodeURIComponent(Nn),{name:e==null?void 0:e.name})}finally{t&&(self.URL||self.webkitURL).revokeObjectURL(t)}}class Ya{constructor(t){A(this,"pendingCanvasMutations",new Map),A(this,"rafStamps",{latestId:0,invokeId:null}),A(this,"mirror"),A(this,"mutationCb"),A(this,"resetObservers"),A(this,"frozen",!1),A(this,"locked",!1),A(this,"rafIdTimestamp",null),A(this,"rafIdFlush",null),A(this,"processMutation",(m,f)=>{(this.rafStamps.invokeId&&this.rafStamps.latestId!==this.rafStamps.invokeId||!this.rafStamps.invokeId)&&(this.rafStamps.invokeId=this.rafStamps.latestId),this.pendingCanvasMutations.has(m)||this.pendingCanvasMutations.set(m,[]),this.pendingCanvasMutations.get(m).push(f)});const{sampling:s="all",win:o,blockClass:i,blockSelector:a,recordCanvas:h,dataURLOptions:p}=t;this.mutationCb=t.mutationCb,this.mirror=t.mirror,h&&s==="all"&&this.initCanvasMutationObserver(o,i,a,p),h&&typeof s=="number"&&this.initCanvasFPSObserver(s,o,i,a,{dataURLOptions:p})}reset(){this.pendingCanvasMutations.clear(),this.resetObservers&&this.resetObservers(),this.rafIdTimestamp!==null&&(cancelAnimationFrame(this.rafIdTimestamp),this.rafIdTimestamp=null),this.rafIdFlush!==null&&(cancelAnimationFrame(this.rafIdFlush),this.rafIdFlush=null)}freeze(){this.frozen=!0}unfreeze(){this.frozen=!1}lock(){this.locked=!0}unlock(){this.locked=!1}initCanvasFPSObserver(t,s,o,i,a){const h=_i(s,o,i,!0),p=new Map,m=new Ja;m.onmessage=d=>{const{id:c}=d.data;if(p.set(c,!1),!("base64"in d.data))return;const{base64:g,type:v,width:b,height:S}=d.data;this.mutationCb({id:c,type:$e["2D"],commands:[{property:"clearRect",args:[0,0,b,S]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:g}],type:v}]},0,0]}]})};const f=1e3/t;let r=0,u;const l=()=>{const d=[],c=g=>{g.querySelectorAll("canvas").forEach(v=>{se(v,o,i,!0)||d.push(v)}),g.querySelectorAll("*").forEach(v=>{v.shadowRoot&&c(v.shadowRoot)})};return c(s.document),d},n=d=>{if(r&&d-r<f){u=requestAnimationFrame(n);return}r=d,l().forEach(async c=>{var g;const v=this.mirror.getId(c);if(p.get(v)||c.width===0||c.height===0)return;if(p.set(v,!0),["webgl","webgl2"].includes(c.__context)){const y=c.getContext(c.__context);((g=y==null?void 0:y.getContextAttributes())==null?void 0:g.preserveDrawingBuffer)===!1&&y.clear(y.COLOR_BUFFER_BIT)}const b=c.clientWidth||c.width,S=c.clientHeight||c.height,x=await createImageBitmap(c,{resizeWidth:b,resizeHeight:S});m.postMessage({id:v,bitmap:x,width:b,height:S,dataURLOptions:a.dataURLOptions},[x])}),u=requestAnimationFrame(n)};u=requestAnimationFrame(n),this.resetObservers=()=>{h(),cancelAnimationFrame(u)}}initCanvasMutationObserver(t,s,o,i){this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher();const a=_i(t,s,o,!1),h=Ha(this.processMutation.bind(this),t,s,o,i),p=Ga(this.processMutation.bind(this),t,s,o,i);this.resetObservers=()=>{a(),h(),p()}}startPendingCanvasMutationFlusher(){this.rafIdFlush=requestAnimationFrame(()=>this.flushPendingCanvasMutations())}startRAFTimestamping(){const t=s=>{this.rafStamps.latestId=s,this.rafIdTimestamp=requestAnimationFrame(t)};this.rafIdTimestamp=requestAnimationFrame(t)}flushPendingCanvasMutations(){this.pendingCanvasMutations.forEach((t,s)=>{const o=this.mirror.getId(s);this.flushPendingCanvasMutationFor(s,o)}),this.rafIdFlush=requestAnimationFrame(()=>this.flushPendingCanvasMutations())}flushPendingCanvasMutationFor(t,s){if(this.frozen||this.locked)return;const o=this.pendingCanvasMutations.get(t);if(!o||s===-1)return;const i=o.map(h=>{const f=h,{type:p}=f;return Ne(f,["type"])}),{type:a}=o[0];this.mutationCb({id:s,type:a,commands:i}),this.pendingCanvasMutations.delete(t)}}class Za{constructor(t){A(this,"trackedLinkElements",new WeakSet),A(this,"mutationCb"),A(this,"adoptedStyleSheetCb"),A(this,"styleMirror",new wa),this.mutationCb=t.mutationCb,this.adoptedStyleSheetCb=t.adoptedStyleSheetCb}attachLinkElement(t,s){"_cssText"in s.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:s.id,attributes:s.attributes}]}),this.trackLinkElement(t)}trackLinkElement(t){this.trackedLinkElements.has(t)||(this.trackedLinkElements.add(t),this.trackStylesheetInLinkElement(t))}adoptStyleSheets(t,s){if(t.length===0)return;const o={id:s,styleIds:[]},i=[];for(const a of t){let h;this.styleMirror.has(a)?h=this.styleMirror.getId(a):(h=this.styleMirror.add(a),i.push({styleId:h,rules:Array.from(a.rules||CSSRule,(p,m)=>({rule:$i(p,a.href),index:m}))})),o.styleIds.push(h)}i.length>0&&(o.styles=i),this.adoptedStyleSheetCb(o)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(t){}}class Qa{constructor(){A(this,"nodeMap",new WeakMap),A(this,"active",!1)}inOtherBuffer(t,s){const o=this.nodeMap.get(t);return o&&Array.from(o).some(i=>i!==s)}add(t,s){this.active||(this.active=!0,requestAnimationFrame(()=>{this.nodeMap=new WeakMap,this.active=!1})),this.nodeMap.set(t,(this.nodeMap.get(t)||new Set).add(s))}destroy(){}}let j,ot,_r,ft=!1;try{if(Array.from([1],e=>e*2)[0]!==2){const e=document.createElement("iframe");document.body.appendChild(e),Array.from=((ns=e.contentWindow)==null?void 0:ns.Array.from)||Array.from,document.body.removeChild(e)}}catch(e){console.debug("Unable to override Array.from",e)}const ce=io();function xe(e={}){const{emit:t,checkoutEveryNms:s,checkoutEveryNth:o,blockClass:i="rr-block",blockSelector:a=null,ignoreClass:h="rr-ignore",ignoreSelector:p=null,maskTextClass:m="rr-mask",maskTextSelector:f=null,inlineStylesheet:r=!0,maskAllInputs:u,maskInputOptions:l,slimDOMOptions:n,maskInputFn:d,maskTextFn:c,hooks:g,packFn:v,sampling:b={},dataURLOptions:S={},mousemoveWait:x,recordDOM:y=!0,recordCanvas:w=!1,recordCrossOriginIframes:C=!1,recordAfter:R=e.recordAfter==="DOMContentLoaded"?e.recordAfter:"load",userTriggeredOnInput:E=!1,collectFonts:M=!1,inlineImages:N=!1,plugins:P,keepIframeSrcFn:ee=()=>!1,ignoreCSSAttributes:te=new Set([]),errorHandler:O}=e;Oa(O);const Z=D({type:"image/webp",quality:.4,maxBase64ImageLength:1048576},S),T=C?window.parent===window:!0;let B=!1;if(!T)try{window.parent.document&&(B=!1)}catch(_){B=!0}if(T&&!t)throw new Error("emit function is required");if(!T&&!B)return()=>{};x!==void 0&&b.mousemove===void 0&&(b.mousemove=x),ce.reset();const Q=u===!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}:l!==void 0?l:{password:!0},H=n===!0||n==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:n==="all",headMetaDescKeywords:n==="all",headTitleMutations:n==="all"}:n||{};ya();let be,me=0;const I=_=>{for(const X of P||[])X.eventProcessor&&(_=X.eventProcessor(_));return v&&!B&&(_=v(_)),_};j=(_,X)=>{var V;const G=_;if(G.timestamp=ct(),(V=we[0])!=null&&V.isFrozen()&&G.type!==$.FullSnapshot&&!(G.type===$.IncrementalSnapshot&&G.data.source===L.Mutation)&&we.forEach(fe=>fe.unfreeze()),T)t==null||t(I(G),X);else if(B){const fe={type:"rrweb",event:I(G),origin:window.location.origin,isCheckout:X};window.parent.postMessage(fe,"*")}if(G.type===$.FullSnapshot)be=G,me=0;else if(G.type===$.IncrementalSnapshot){if(G.data.source===L.Mutation&&G.data.isAttachIframe)return;me++;const fe=o&&me>=o,Pe=s&&G.timestamp-be.timestamp>s;(fe||Pe)&&ot(!0)}};const oe=_=>{j({type:$.IncrementalSnapshot,data:D({source:L.Mutation},_)})},ae=_=>j({type:$.IncrementalSnapshot,data:D({source:L.Scroll},_)}),Ae=_=>j({type:$.IncrementalSnapshot,data:D({source:L.CanvasMutation},_)}),ge=_=>j({type:$.IncrementalSnapshot,data:D({source:L.AdoptedStyleSheet},_)}),he=new Za({mutationCb:oe,adoptedStyleSheetCb:ge}),ne=new Ua({mirror:ce,mutationCb:oe,stylesheetManager:he,recordCrossOriginIframes:C,wrappedEmit:j});for(const _ of P||[])_.getMirror&&_.getMirror({nodeMirror:ce,crossOriginIframeMirror:ne.crossOriginIframeMirror,crossOriginIframeStyleMirror:ne.crossOriginIframeStyleMirror});const Re=new Qa;_r=new Ya({recordCanvas:w,mutationCb:Ae,win:window,blockClass:i,blockSelector:a,mirror:ce,sampling:b.canvas,dataURLOptions:Z});const J=new Wa({mutationCb:oe,scrollCb:ae,bypassOptions:{blockClass:i,blockSelector:a,maskTextClass:m,maskTextSelector:f,inlineStylesheet:r,maskInputOptions:Q,dataURLOptions:Z,maskTextFn:c,maskInputFn:d,recordCanvas:w,inlineImages:N,sampling:b,slimDOMOptions:H,iframeManager:ne,stylesheetManager:he,canvasManager:_r,keepIframeSrcFn:ee,processedNodeManager:Re},mirror:ce});ot=(_=!1)=>{if(!y)return;j({type:$.Meta,data:{href:window.location.href,width:gn(),height:mn()}},_),he.reset(),J.init(),we.forEach(V=>V.lock());const X=No(document,{mirror:ce,blockClass:i,blockSelector:a,maskTextClass:m,maskTextSelector:f,inlineStylesheet:r,maskAllInputs:Q,maskTextFn:c,maskInputFn:d,slimDOM:H,dataURLOptions:Z,recordCanvas:w,inlineImages:N,onSerialize:V=>{bn(V,ce)&&ne.addIframe(V),Sn(V,ce)&&he.trackLinkElement(V),Dr(V)&&J.addShadowRoot(k.shadowRoot(V),document)},onIframeLoad:(V,G)=>{ne.attachIframe(V,G),J.observeAttachShadow(V)},onStylesheetLoad:(V,G)=>{he.attachLinkElement(V,G)},keepIframeSrcFn:ee});if(!X)return console.warn("Failed to snapshot the document");j({type:$.FullSnapshot,data:{node:X,initialOffset:dn(window)}},_),we.forEach(V=>V.unlock()),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&he.adoptStyleSheets(document.adoptedStyleSheets,ce.getId(document))};try{const _=[],X=fe=>{var Pe;return F(Ba)({mutationCb:oe,mousemoveCb:(W,Ct)=>j({type:$.IncrementalSnapshot,data:{source:Ct,positions:W}}),mouseInteractionCb:W=>j({type:$.IncrementalSnapshot,data:D({source:L.MouseInteraction},W)}),scrollCb:ae,viewportResizeCb:W=>j({type:$.IncrementalSnapshot,data:D({source:L.ViewportResize},W)}),inputCb:W=>j({type:$.IncrementalSnapshot,data:D({source:L.Input},W)}),mediaInteractionCb:W=>j({type:$.IncrementalSnapshot,data:D({source:L.MediaInteraction},W)}),styleSheetRuleCb:W=>j({type:$.IncrementalSnapshot,data:D({source:L.StyleSheetRule},W)}),styleDeclarationCb:W=>j({type:$.IncrementalSnapshot,data:D({source:L.StyleDeclaration},W)}),canvasMutationCb:Ae,fontCb:W=>j({type:$.IncrementalSnapshot,data:D({source:L.Font},W)}),selectionCb:W=>{j({type:$.IncrementalSnapshot,data:D({source:L.Selection},W)})},customElementCb:W=>{j({type:$.IncrementalSnapshot,data:D({source:L.CustomElement},W)})},blockClass:i,ignoreClass:h,ignoreSelector:p,maskTextClass:m,maskTextSelector:f,maskInputOptions:Q,inlineStylesheet:r,sampling:b,recordDOM:y,recordCanvas:w,inlineImages:N,userTriggeredOnInput:E,collectFonts:M,doc:fe,maskInputFn:d,maskTextFn:c,keepIframeSrcFn:ee,blockSelector:a,slimDOMOptions:H,dataURLOptions:Z,mirror:ce,iframeManager:ne,stylesheetManager:he,shadowDomManager:J,processedNodeManager:Re,canvasManager:_r,ignoreCSSAttributes:te,plugins:((Pe=P==null?void 0:P.filter(W=>W.observer))==null?void 0:Pe.map(W=>({observer:W.observer,options:W.options,callback:Ct=>j({type:$.Plugin,data:{plugin:W.name,payload:Ct}})})))||[]},g)},V=fe=>{try{_.push(X(fe.contentDocument))}catch(Pe){console.warn(Pe)}};ne.addLoadListener(V);const G=()=>{ot(),_.push(X(document)),ft=!0};return document.readyState==="interactive"||document.readyState==="complete"?G():(_.push(re("DOMContentLoaded",()=>{j({type:$.DomContentLoaded,data:{}}),R==="DOMContentLoaded"&&G()})),_.push(re("load",()=>{j({type:$.Load,data:{}}),R==="load"&&G()},window))),()=>{_.forEach(fe=>fe()),Re.destroy(),ne.removeLoadListener(),ne.destroy(),ce.reset(),ft=!1,Ma()}}catch(_){console.warn(_)}}xe.addCustomEvent=(e,t)=>{if(!ft)throw new Error("please add custom event after start recording");j({type:$.Custom,data:{tag:e,payload:t}})};xe.freezePage=()=>{we.forEach(e=>e.freeze())};xe.takeFullSnapshot=e=>{if(!ft)throw new Error("please take full snapshot after start recording");ot(e)};xe.mirror=ce;var Li;(function(e){e[e.NotStarted=0]="NotStarted",e[e.Running=1]="Running",e[e.Stopped=2]="Stopped"})(Li||(Li={}));const{addCustomEvent:Ka}=xe,{freezePage:el}=xe,{takeFullSnapshot:tl}=xe;exports.record=xe;
145
+ `,Di=typeof self!="undefined"&&self.Blob&&new Blob([Nn],{type:"text/javascript;charset=utf-8"});function Ja(e){let t;try{if(t=Di&&(self.URL||self.webkitURL).createObjectURL(Di),!t)throw"";const s=new Worker(t,{name:e==null?void 0:e.name});return s.addEventListener("error",()=>{(self.URL||self.webkitURL).revokeObjectURL(t)}),s}catch(s){return new Worker("data:text/javascript;charset=utf-8,"+encodeURIComponent(Nn),{name:e==null?void 0:e.name})}finally{t&&(self.URL||self.webkitURL).revokeObjectURL(t)}}class Ya{constructor(t){E(this,"pendingCanvasMutations",new Map),E(this,"rafStamps",{latestId:0,invokeId:null}),E(this,"mirror"),E(this,"mutationCb"),E(this,"resetObservers"),E(this,"frozen",!1),E(this,"locked",!1),E(this,"rafIdTimestamp",null),E(this,"rafIdFlush",null),E(this,"processMutation",(m,f)=>{(this.rafStamps.invokeId&&this.rafStamps.latestId!==this.rafStamps.invokeId||!this.rafStamps.invokeId)&&(this.rafStamps.invokeId=this.rafStamps.latestId),this.pendingCanvasMutations.has(m)||this.pendingCanvasMutations.set(m,[]),this.pendingCanvasMutations.get(m).push(f)});const{sampling:s="all",win:o,blockClass:i,blockSelector:a,recordCanvas:h,dataURLOptions:p}=t;this.mutationCb=t.mutationCb,this.mirror=t.mirror,h&&s==="all"&&this.initCanvasMutationObserver(o,i,a,p),h&&typeof s=="number"&&this.initCanvasFPSObserver(s,o,i,a,{dataURLOptions:p})}reset(){this.pendingCanvasMutations.clear(),this.resetObservers&&this.resetObservers(),this.rafIdTimestamp!==null&&(cancelAnimationFrame(this.rafIdTimestamp),this.rafIdTimestamp=null),this.rafIdFlush!==null&&(cancelAnimationFrame(this.rafIdFlush),this.rafIdFlush=null)}freeze(){this.frozen=!0}unfreeze(){this.frozen=!1}lock(){this.locked=!0}unlock(){this.locked=!1}initCanvasFPSObserver(t,s,o,i,a){const h=_i(s,o,i,!0),p=new Map,m=new Ja;m.onmessage=d=>{const{id:c}=d.data;if(p.set(c,!1),!("base64"in d.data))return;const{base64:g,type:v,width:b,height:S}=d.data;this.mutationCb({id:c,type:Be["2D"],commands:[{property:"clearRect",args:[0,0,b,S]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:g}],type:v}]},0,0]}]})};const f=1e3/t;let r=0,u;const l=()=>{const d=[],c=g=>{g.querySelectorAll("canvas").forEach(v=>{se(v,o,i,!0)||d.push(v)}),g.querySelectorAll("*").forEach(v=>{v.shadowRoot&&c(v.shadowRoot)})};return c(s.document),d},n=d=>{if(r&&d-r<f){u=requestAnimationFrame(n);return}r=d,l().forEach(async c=>{var g;const v=this.mirror.getId(c);if(p.get(v)||c.width===0||c.height===0)return;if(p.set(v,!0),["webgl","webgl2"].includes(c.__context)){const y=c.getContext(c.__context);((g=y==null?void 0:y.getContextAttributes())==null?void 0:g.preserveDrawingBuffer)===!1&&y.clear(y.COLOR_BUFFER_BIT)}const b=c.clientWidth||c.width,S=c.clientHeight||c.height,x=await createImageBitmap(c,{resizeWidth:b,resizeHeight:S});m.postMessage({id:v,bitmap:x,width:b,height:S,dataURLOptions:a.dataURLOptions},[x])}),u=requestAnimationFrame(n)};u=requestAnimationFrame(n),this.resetObservers=()=>{h(),cancelAnimationFrame(u)}}initCanvasMutationObserver(t,s,o,i){this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher();const a=_i(t,s,o,!1),h=Ha(this.processMutation.bind(this),t,s,o,i),p=Ga(this.processMutation.bind(this),t,s,o,i);this.resetObservers=()=>{a(),h(),p()}}startPendingCanvasMutationFlusher(){this.rafIdFlush=requestAnimationFrame(()=>this.flushPendingCanvasMutations())}startRAFTimestamping(){const t=s=>{this.rafStamps.latestId=s,this.rafIdTimestamp=requestAnimationFrame(t)};this.rafIdTimestamp=requestAnimationFrame(t)}flushPendingCanvasMutations(){this.pendingCanvasMutations.forEach((t,s)=>{const o=this.mirror.getId(s);this.flushPendingCanvasMutationFor(s,o)}),this.rafIdFlush=requestAnimationFrame(()=>this.flushPendingCanvasMutations())}flushPendingCanvasMutationFor(t,s){if(this.frozen||this.locked)return;const o=this.pendingCanvasMutations.get(t);if(!o||s===-1)return;const i=o.map(h=>{const f=h,{type:p}=f;return Ne(f,["type"])}),{type:a}=o[0];this.mutationCb({id:s,type:a,commands:i}),this.pendingCanvasMutations.delete(t)}}class Za{constructor(t){E(this,"trackedLinkElements",new WeakSet),E(this,"mutationCb"),E(this,"adoptedStyleSheetCb"),E(this,"styleMirror",new wa),this.mutationCb=t.mutationCb,this.adoptedStyleSheetCb=t.adoptedStyleSheetCb}attachLinkElement(t,s){"_cssText"in s.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:s.id,attributes:s.attributes}]}),this.trackLinkElement(t)}trackLinkElement(t){this.trackedLinkElements.has(t)||(this.trackedLinkElements.add(t),this.trackStylesheetInLinkElement(t))}adoptStyleSheets(t,s){if(t.length===0)return;const o={id:s,styleIds:[]},i=[];for(const a of t){let h;this.styleMirror.has(a)?h=this.styleMirror.getId(a):(h=this.styleMirror.add(a),i.push({styleId:h,rules:Array.from(a.rules||CSSRule,(p,m)=>({rule:Bi(p,a.href),index:m}))})),o.styleIds.push(h)}i.length>0&&(o.styles=i),this.adoptedStyleSheetCb(o)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(t){}}class Qa{constructor(){E(this,"nodeMap",new WeakMap),E(this,"active",!1)}inOtherBuffer(t,s){const o=this.nodeMap.get(t);return o&&Array.from(o).some(i=>i!==s)}add(t,s){this.active||(this.active=!0,requestAnimationFrame(()=>{this.nodeMap=new WeakMap,this.active=!1})),this.nodeMap.set(t,(this.nodeMap.get(t)||new Set).add(s))}destroy(){}}let j,ot,_r,ft=!1;try{if(Array.from([1],e=>e*2)[0]!==2){const e=document.createElement("iframe");document.body.appendChild(e),Array.from=((ns=e.contentWindow)==null?void 0:ns.Array.from)||Array.from,document.body.removeChild(e)}}catch(e){console.debug("Unable to override Array.from",e)}const ce=io();function xe(e={}){const{emit:t,checkoutEveryNms:s,checkoutEveryNth:o,blockClass:i="rr-block",blockSelector:a=null,ignoreClass:h="rr-ignore",ignoreSelector:p=null,maskTextClass:m="rr-mask",maskTextSelector:f=null,inlineStylesheet:r=!0,maskAllInputs:u,maskInputOptions:l,slimDOMOptions:n,maskInputFn:d,maskTextFn:c,hooks:g,packFn:v,sampling:b={},dataURLOptions:S={},mousemoveWait:x,recordDOM:y=!0,recordCanvas:w=!1,recordCrossOriginIframes:C=!1,recordAfter:R=e.recordAfter==="DOMContentLoaded"?e.recordAfter:"load",userTriggeredOnInput:A=!1,collectFonts:M=!1,inlineImages:N=!1,plugins:P,keepIframeSrcFn:ee=()=>!1,ignoreCSSAttributes:te=new Set([]),errorHandler:O}=e;Oa(O);const Z=D({type:"image/webp",quality:.4,maxBase64ImageLength:1048576},S),T=C?window.parent===window:!0;let $=!1;if(!T)try{window.parent.document&&($=!1)}catch(_){$=!0}if(T&&!t)throw new Error("emit function is required");if(!T&&!$)return()=>{};x!==void 0&&b.mousemove===void 0&&(b.mousemove=x),ce.reset();const Q=u===!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}:l!==void 0?l:{password:!0},H=n===!0||n==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:n==="all",headMetaDescKeywords:n==="all",headTitleMutations:n==="all"}:n||{};ya();let be,me=0;const I=_=>{for(const X of P||[])X.eventProcessor&&(_=X.eventProcessor(_));return v&&!$&&(_=v(_)),_};j=(_,X)=>{var V;const G=_;if(G.timestamp=ct(),(V=we[0])!=null&&V.isFrozen()&&G.type!==B.FullSnapshot&&!(G.type===B.IncrementalSnapshot&&G.data.source===L.Mutation)&&we.forEach(fe=>fe.unfreeze()),T)t==null||t(I(G),X);else if($){const fe={type:"rrweb",event:I(G),origin:window.location.origin,isCheckout:X};window.parent.postMessage(fe,"*")}if(G.type===B.FullSnapshot)be=G,me=0;else if(G.type===B.IncrementalSnapshot){if(G.data.source===L.Mutation&&G.data.isAttachIframe)return;me++;const fe=o&&me>=o,Pe=s&&G.timestamp-be.timestamp>s;(fe||Pe)&&ot(!0)}};const oe=_=>{j({type:B.IncrementalSnapshot,data:D({source:L.Mutation},_)})},ae=_=>j({type:B.IncrementalSnapshot,data:D({source:L.Scroll},_)}),Ae=_=>j({type:B.IncrementalSnapshot,data:D({source:L.CanvasMutation},_)}),ge=_=>j({type:B.IncrementalSnapshot,data:D({source:L.AdoptedStyleSheet},_)}),he=new Za({mutationCb:oe,adoptedStyleSheetCb:ge}),ie=new Ua({mirror:ce,mutationCb:oe,stylesheetManager:he,recordCrossOriginIframes:C,wrappedEmit:j});for(const _ of P||[])_.getMirror&&_.getMirror({nodeMirror:ce,crossOriginIframeMirror:ie.crossOriginIframeMirror,crossOriginIframeStyleMirror:ie.crossOriginIframeStyleMirror});const Re=new Qa;_r=new Ya({recordCanvas:w,mutationCb:Ae,win:window,blockClass:i,blockSelector:a,mirror:ce,sampling:b.canvas,dataURLOptions:Z});const J=new Wa({mutationCb:oe,scrollCb:ae,bypassOptions:{blockClass:i,blockSelector:a,maskTextClass:m,maskTextSelector:f,inlineStylesheet:r,maskInputOptions:Q,dataURLOptions:Z,maskTextFn:c,maskInputFn:d,recordCanvas:w,inlineImages:N,sampling:b,slimDOMOptions:H,iframeManager:ie,stylesheetManager:he,canvasManager:_r,keepIframeSrcFn:ee,processedNodeManager:Re},mirror:ce});ot=(_=!1)=>{if(!y)return;j({type:B.Meta,data:{href:window.location.href,width:gn(),height:mn()}},_),he.reset(),J.init(),we.forEach(V=>V.lock());const X=No(document,{mirror:ce,blockClass:i,blockSelector:a,maskTextClass:m,maskTextSelector:f,inlineStylesheet:r,maskAllInputs:Q,maskTextFn:c,maskInputFn:d,slimDOM:H,dataURLOptions:Z,recordCanvas:w,inlineImages:N,onSerialize:V=>{bn(V,ce)&&ie.addIframe(V),Sn(V,ce)&&he.trackLinkElement(V),Dr(V)&&J.addShadowRoot(k.shadowRoot(V),document)},onIframeLoad:(V,G)=>{ie.attachIframe(V,G),J.observeAttachShadow(V)},onStylesheetLoad:(V,G)=>{he.attachLinkElement(V,G)},keepIframeSrcFn:ee});if(!X)return console.warn("Failed to snapshot the document");j({type:B.FullSnapshot,data:{node:X,initialOffset:dn(window)}},_),we.forEach(V=>V.unlock()),C&&ie.reattachIframes(),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&he.adoptStyleSheets(document.adoptedStyleSheets,ce.getId(document))};try{const _=[],X=fe=>{var Pe;return F($a)({mutationCb:oe,mousemoveCb:(W,Ct)=>j({type:B.IncrementalSnapshot,data:{source:Ct,positions:W}}),mouseInteractionCb:W=>j({type:B.IncrementalSnapshot,data:D({source:L.MouseInteraction},W)}),scrollCb:ae,viewportResizeCb:W=>j({type:B.IncrementalSnapshot,data:D({source:L.ViewportResize},W)}),inputCb:W=>j({type:B.IncrementalSnapshot,data:D({source:L.Input},W)}),mediaInteractionCb:W=>j({type:B.IncrementalSnapshot,data:D({source:L.MediaInteraction},W)}),styleSheetRuleCb:W=>j({type:B.IncrementalSnapshot,data:D({source:L.StyleSheetRule},W)}),styleDeclarationCb:W=>j({type:B.IncrementalSnapshot,data:D({source:L.StyleDeclaration},W)}),canvasMutationCb:Ae,fontCb:W=>j({type:B.IncrementalSnapshot,data:D({source:L.Font},W)}),selectionCb:W=>{j({type:B.IncrementalSnapshot,data:D({source:L.Selection},W)})},customElementCb:W=>{j({type:B.IncrementalSnapshot,data:D({source:L.CustomElement},W)})},blockClass:i,ignoreClass:h,ignoreSelector:p,maskTextClass:m,maskTextSelector:f,maskInputOptions:Q,inlineStylesheet:r,sampling:b,recordDOM:y,recordCanvas:w,inlineImages:N,userTriggeredOnInput:A,collectFonts:M,doc:fe,maskInputFn:d,maskTextFn:c,keepIframeSrcFn:ee,blockSelector:a,slimDOMOptions:H,dataURLOptions:Z,mirror:ce,iframeManager:ie,stylesheetManager:he,shadowDomManager:J,processedNodeManager:Re,canvasManager:_r,ignoreCSSAttributes:te,plugins:((Pe=P==null?void 0:P.filter(W=>W.observer))==null?void 0:Pe.map(W=>({observer:W.observer,options:W.options,callback:Ct=>j({type:B.Plugin,data:{plugin:W.name,payload:Ct}})})))||[]},g)},V=fe=>{try{_.push(X(fe.contentDocument))}catch(Pe){console.warn(Pe)}};ie.addLoadListener(V);const G=()=>{ot(),_.push(X(document)),ft=!0};return document.readyState==="interactive"||document.readyState==="complete"?G():(_.push(re("DOMContentLoaded",()=>{j({type:B.DomContentLoaded,data:{}}),R==="DOMContentLoaded"&&G()})),_.push(re("load",()=>{j({type:B.Load,data:{}}),R==="load"&&G()},window))),()=>{_.forEach(fe=>fe()),Re.destroy(),ie.removeLoadListener(),ie.destroy(),ce.reset(),ft=!1,Ma()}}catch(_){console.warn(_)}}xe.addCustomEvent=(e,t)=>{if(!ft)throw new Error("please add custom event after start recording");j({type:B.Custom,data:{tag:e,payload:t}})};xe.freezePage=()=>{we.forEach(e=>e.freeze())};xe.takeFullSnapshot=e=>{if(!ft)throw new Error("please take full snapshot after start recording");ot(e)};xe.mirror=ce;var Li;(function(e){e[e.NotStarted=0]="NotStarted",e[e.Running=1]="Running",e[e.Stopped=2]="Stopped"})(Li||(Li={}));const{addCustomEvent:Ka}=xe,{freezePage:el}=xe,{takeFullSnapshot:tl}=xe;exports.record=xe;
146
146
  if (typeof module.exports == "object" && typeof exports == "object") {
147
147
  var __cp = (to, from, except, desc) => {
148
148
  if ((from && typeof from === "object") || typeof from === "function") {