flowsery 1.0.5 → 1.1.0
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.
- package/README.md +41 -13
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +1 -1
- package/dist/main.hash.js +1 -1
- package/dist/main.js +1 -1
- package/dist/recording.hash.js +73 -0
- package/dist/recording.js +73 -0
- package/dist/script.hash.js +1 -1
- package/dist/script.js +1 -1
- package/package.json +10 -3
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
(()=>{var{defineProperty:x9,getOwnPropertyNames:g8,getOwnPropertyDescriptor:m8}=Object,u8=Object.prototype.hasOwnProperty;function c8(X){return this[X]}var p8=(X)=>{var Z=(LJ??=new WeakMap).get(X),J;if(Z)return Z;if(Z=x9({},"__esModule",{value:!0}),X&&typeof X==="object"||typeof X==="function"){for(var Y of g8(X))if(!u8.call(Z,Y))x9(Z,Y,{get:c8.bind(X,Y),enumerable:!(J=m8(X,Y))||J.enumerable})}return LJ.set(X,Z),Z},LJ;var l8=(X)=>X;function d8(X,Z){this[X]=l8.bind(null,Z)}var i8=(X,Z)=>{for(var J in Z)x9(X,J,{get:Z[J],enumerable:!0,configurable:!0,set:d8.bind(Z,J)})};var hG={};i8(hG,{initRecording:()=>WJ});var a0=()=>{return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(X)=>{let Z=Math.random()*16|0;return(X==="x"?Z:Z&3|8).toString(16)})},PJ=()=>{if(typeof navigator>"u")return!0;return"webdriver"in navigator&&navigator.webdriver===!0};var L0=()=>{return window.__flowsery_config||null},O0=()=>{return document.querySelector("script[data-fl-website-id]")},r0=()=>{let X=L0();if(X)return X.websiteId;return O0()?.getAttribute("data-fl-website-id")||""},_1=()=>{return L0()?.apiUrl??null},o0=()=>{let X=L0();if(X?.apiBase)return X.apiBase;let Z=O0(),J=Z?.getAttribute("data-api");if(J)return J;let Y=Z?.src??"",Q=Y.replace(/\/js\/(?:script|main|recording)(?:\.hash)?\.js.*/,"");return Q===Y?"":Q},n0=()=>{return"https://analytics.flowsery.com/analytics"},DJ=()=>{let X=L0();if(X?.domain)return X.domain;return O0()?.getAttribute("data-domain")||location.hostname},b9=()=>{let X=L0();if(X)return!!X.cookieless;return O0()?.hasAttribute("data-cookieless")??!1},s8=new Set(["localhost","127.0.0.1","[::1]"]),FJ=()=>{return s8.has(location.hostname)||location.hostname.endsWith(".local")},AJ=()=>{let X=L0();if(X)return!!X.local;return O0()?.hasAttribute("data-local")??!1},OJ=()=>{return location.protocol==="file:"},MJ=()=>{let X=L0();if(X)return!!X.allowFileProtocol;return O0()?.hasAttribute("data-allow-file-protocol")??!1},wJ=()=>{try{return window.self!==window.top}catch{return!0}},_J=()=>{let X=L0();if(X)return!!X.allowIframe;return O0()?.hasAttribute("data-allow-iframe")??!1};var CJ=()=>{try{return localStorage.getItem("flowsery_ignore")==="true"}catch{return!1}};var a8=Object.defineProperty,r8=(X,Z,J)=>(Z in X)?a8(X,Z,{enumerable:!0,configurable:!0,writable:!0,value:J}):X[Z]=J,F=(X,Z,J)=>r8(X,typeof Z!=="symbol"?Z+"":Z,J),RJ,o8=Object.defineProperty,n8=(X,Z,J)=>(Z in X)?o8(X,Z,{enumerable:!0,configurable:!0,writable:!0,value:J}):X[Z]=J,EJ=(X,Z,J)=>n8(X,typeof Z!=="symbol"?Z+"":Z,J),d=((X)=>{return X[X.Document=0]="Document",X[X.DocumentType=1]="DocumentType",X[X.Element=2]="Element",X[X.Text=3]="Text",X[X.CDATA=4]="CDATA",X[X.Comment=5]="Comment",X})(d||{}),IJ={Node:["childNodes","parentNode","parentElement","textContent","ownerDocument"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},$J={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},C1={},t8=()=>{return!!globalThis.Zone};function TZ(X){if(C1[X])return C1[X];let Z=globalThis[X],J=Z.prototype,Y=X in IJ?IJ[X]:void 0,Q=Boolean(Y&&Y.every((V)=>{var G,U;return Boolean((U=(G=Object.getOwnPropertyDescriptor(J,V))==null?void 0:G.get)==null?void 0:U.toString().includes("[native code]"))})),K=X in $J?$J[X]:void 0,q=Boolean(K&&K.every((V)=>{var G;return typeof J[V]==="function"&&((G=J[V])==null?void 0:G.toString().includes("[native code]"))}));if(Q&&q&&!t8())return C1[X]=Z.prototype,Z.prototype;try{let V=document.createElement("iframe");document.body.appendChild(V);let G=V.contentWindow;if(!G)return Z.prototype;let U=G[X].prototype;if(document.body.removeChild(V),!U)return J;return C1[X]=U}catch{return J}}var k9={};function z0(X,Z,J){var Y;let Q=`${X}.${String(J)}`;if(k9[Q])return k9[Q].call(Z);let K=TZ(X),q=(Y=Object.getOwnPropertyDescriptor(K,J))==null?void 0:Y.get;if(!q)return Z[J];return k9[Q]=q,q.call(Z)}var v9={};function RX(X,Z,J){let Y=`${X}.${String(J)}`;if(v9[Y])return v9[Y].bind(Z);let K=TZ(X)[J];if(typeof K!=="function")return Z[J];return v9[Y]=K,K.bind(Z)}function e8(X){return z0("Node",X,"ownerDocument")}function ZY(X){return z0("Node",X,"childNodes")}function JY(X){return z0("Node",X,"parentNode")}function XY(X){return z0("Node",X,"parentElement")}function YY(X){return z0("Node",X,"textContent")}function QY(X,Z){return RX("Node",X,"contains")(Z)}function KY(X){return RX("Node",X,"getRootNode")()}function qY(X){if(!X||!("host"in X))return null;return z0("ShadowRoot",X,"host")}function GY(X){return X.styleSheets}function VY(X){if(!X||!("shadowRoot"in X))return null;return z0("Element",X,"shadowRoot")}function UY(X,Z){return z0("Element",X,"querySelector")(Z)}function WY(X,Z){return z0("Element",X,"querySelectorAll")(Z)}function HY(){return TZ("MutationObserver").constructor}function zY(X,Z,J){try{if(!(Z in X))return()=>{};let Y=X[Z],Q=J(Y);if(typeof Q==="function")Q.prototype=Q.prototype||{},Object.defineProperties(Q,{__rrweb_original__:{enumerable:!1,value:Y}});return X[Z]=Q,()=>{X[Z]=Y}}catch{return()=>{}}}var s={ownerDocument:e8,childNodes:ZY,parentNode:JY,parentElement:XY,textContent:YY,contains:QY,getRootNode:KY,host:qY,styleSheets:GY,shadowRoot:VY,querySelector:UY,querySelectorAll:WY,mutationObserver:HY,patch:zY};function EX(X){return X.nodeType===X.ELEMENT_NODE}function X1(X){let Z=X&&"host"in X&&"mode"in X&&s.host(X)||null;return Boolean(Z&&"shadowRoot"in Z&&s.shadowRoot(Z)===X)}function Y1(X){return Object.prototype.toString.call(X)==="[object ShadowRoot]"}function BY(X){if(X.includes(" background-clip: text;")&&!X.includes(" -webkit-background-clip: text;"))X=X.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;");return X}function jY(X){let{cssText:Z}=X;if(Z.split('"').length<3)return Z;let J=["@import",`url(${JSON.stringify(X.href)})`];if(X.layerName==="")J.push("layer");else if(X.layerName)J.push(`layer(${X.layerName})`);if(X.supportsText)J.push(`supports(${X.supportsText})`);if(X.media.length)J.push(X.media.mediaText);return J.join(" ")+";"}function r9(X){try{let Z=X.rules||X.cssRules;if(!Z)return null;let J=X.href;if(!J&&X.ownerNode)J=X.ownerNode.baseURI;let Y=Array.from(Z,(Q)=>IX(Q,J)).join("");return BY(Y)}catch(Z){return null}}function IX(X,Z){if(PY(X)){let J;try{J=r9(X.styleSheet)||jY(X)}catch(Y){J=X.cssText}if(X.styleSheet.href)return J9(J,X.styleSheet.href);return J}else{let J=X.cssText;if(DY(X)&&X.selectorText.includes(":"))J=LY(J);if(Z)return J9(J,Z);return J}}function LY(X){let Z=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return X.replace(Z,"$1\\$2")}function PY(X){return"styleSheet"in X}function DY(X){return"selectorText"in X}class SZ{constructor(){EJ(this,"idNodeMap",new Map),EJ(this,"nodeMetaMap",new WeakMap)}getId(X){var Z;if(!X)return-1;return((Z=this.getMeta(X))==null?void 0:Z.id)??-1}getNode(X){return this.idNodeMap.get(X)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(X){return this.nodeMetaMap.get(X)||null}removeNodeFromMap(X){let Z=this.getId(X);if(this.idNodeMap.delete(Z),X.childNodes)X.childNodes.forEach((J)=>this.removeNodeFromMap(J))}has(X){return this.idNodeMap.has(X)}hasNode(X){return this.nodeMetaMap.has(X)}add(X,Z){let J=Z.id;this.idNodeMap.set(J,X),this.nodeMetaMap.set(X,Z)}replace(X,Z){let J=this.getNode(X);if(J){let Y=this.nodeMetaMap.get(J);if(Y)this.nodeMetaMap.set(Z,Y)}this.idNodeMap.set(X,Z)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function FY(){return new SZ}function e1({element:X,maskInputOptions:Z,tagName:J,type:Y,value:Q,maskInputFn:K}){let q=Q||"",V=Y&&w0(Y);if(Z[J.toLowerCase()]||V&&Z[V])if(K)q=K(q,X);else q="*".repeat(q.length);return q}function w0(X){return X.toLowerCase()}var NJ="__rrweb_original__";function AY(X){let Z=X.getContext("2d");if(!Z)return!0;let J=50;for(let Y=0;Y<X.width;Y+=J)for(let Q=0;Q<X.height;Q+=J){let K=Z.getImageData,q=NJ in K?K[NJ]:K;if(new Uint32Array(q.call(Z,Y,Q,Math.min(J,X.width-Y),Math.min(J,X.height-Q)).data.buffer).some((G)=>G!==0))return!1}return!0}function Z9(X){let Z=X.type;return X.hasAttribute("data-rr-is-password")?"password":Z?w0(Z):null}function $X(X,Z){let J;try{J=new URL(X,Z??window.location.href)}catch(K){return null}let Y=/\.([0-9a-z]+)(?:$)/i,Q=J.pathname.match(Y);return(Q==null?void 0:Q[1])??null}function OY(X){let Z="";if(X.indexOf("//")>-1)Z=X.split("/").slice(0,3).join("/");else Z=X.split("/")[0];return Z=Z.split("?")[0],Z}var MY=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,wY=/^(?:[a-z+]+:)?\/\//i,_Y=/^www\..*/i,CY=/^(data:)([^,]*),(.*)/i;function J9(X,Z){return(X||"").replace(MY,(J,Y,Q,K,q,V)=>{let G=Q||q||V,U=Y||K||"";if(!G)return J;if(wY.test(G)||_Y.test(G))return`url(${U}${G}${U})`;if(CY.test(G))return`url(${U}${G}${U})`;if(G[0]==="/")return`url(${U}${OY(Z)+G}${U})`;let W=Z.split("/"),H=G.split("/");W.pop();for(let B of H)if(B===".")continue;else if(B==="..")W.pop();else W.push(B);return`url(${U}${W.join("/")}${U})`})}function R1(X,Z=!1){if(Z)return X.replace(/(\/\*[^*]*\*\/)|[\s;]/g,"");else return X.replace(/(\/\*[^*]*\*\/)|[\s;]/g,"").replace(/0px/g,"0")}function RY(X,Z,J=!1){let Y=Array.from(Z.childNodes),Q=[],K=0;if(Y.length>1&&X&&typeof X==="string"){let q=R1(X,J),V=q.length/X.length;for(let G=1;G<Y.length;G++)if(Y[G].textContent&&typeof Y[G].textContent==="string"){let U=R1(Y[G].textContent,J),W=100,H=3;for(;H<U.length;H++){if(U[H].match(/[a-zA-Z0-9]/)||U.indexOf(U.substring(0,H),1)!==-1)continue;break}for(;H<U.length;H++){let B=U.substring(0,H),j=q.split(B),P=-1;if(j.length===2)P=j[0].length;else if(j.length>2&&j[0]===""&&Y[G-1].textContent!=="")P=q.indexOf(B,1);else if(j.length===1){if(B=B.substring(0,B.length-1),j=q.split(B),j.length<=1)return Q.push(X),Q;H=101}else if(H===U.length-1)P=q.indexOf(B);if(j.length>=2&&H>100){let L=Y[G-1].textContent;if(L&&typeof L==="string"){let z=R1(L).length;P=q.indexOf(B,z)}if(P===-1)P=j[0].length}if(P!==-1){let L=Math.floor(P/V);for(;L>0&&L<X.length;){if(K+=1,K>50*Y.length)return Q.push(X),Q;let z=R1(X.substring(0,L),J);if(z.length===P){Q.push(X.substring(0,L)),X=X.substring(L),q=q.substring(P);break}else if(z.length<P)L+=Math.max(1,Math.floor((P-z.length)/V));else L-=Math.max(1,Math.floor((z.length-P)*V))}break}}}}return Q.push(X),Q}function EY(X,Z){return RY(X,Z).join("/* rr_split */")}var IY=1,$Y=new RegExp("[^a-z0-9-_:]"),K1=-2;function NX(){return IY++}function NY(X){if(X instanceof HTMLFormElement)return"form";let Z=w0(X.tagName);if($Y.test(Z))return"div";return Z}var S0,TJ,TY=/^[^ \t\n\r\u000c]+/,SY=/^[, \t\n\r\u000c]+/;function fY(X,Z){if(Z.trim()==="")return Z;let J=0;function Y(K){let q,V=K.exec(Z.substring(J));if(V)return q=V[0],J+=q.length,q;return""}let Q=[];while(!0){if(Y(SY),J>=Z.length)break;let K=Y(TY);if(K.slice(-1)===",")K=k0(X,K.substring(0,K.length-1)),Q.push(K);else{let q="";K=k0(X,K);let V=!1;while(!0){let G=Z.charAt(J);if(G===""){Q.push((K+q).trim());break}else if(!V){if(G===","){J+=1,Q.push((K+q).trim());break}else if(G==="(")V=!0}else if(G===")")V=!1;q+=G,J+=1}}}return Q.join(", ")}var SJ=new WeakMap;function k0(X,Z){if(!Z||Z.trim()==="")return Z;return fZ(X,Z)}function xY(X){return Boolean(X.tagName==="svg"||X.ownerSVGElement)}function fZ(X,Z){let J=SJ.get(X);if(!J)J=X.createElement("a"),SJ.set(X,J);if(!Z)Z="";else if(Z.startsWith("blob:")||Z.startsWith("data:"))return Z;return J.setAttribute("href",Z),J.href}function TX(X,Z,J,Y){if(!Y)return Y;if(J==="src"||J==="href"&&!(Z==="use"&&Y[0]==="#"))return k0(X,Y);else if(J==="xlink:href"&&Y[0]!=="#")return k0(X,Y);else if(J==="background"&&["table","td","th"].includes(Z))return k0(X,Y);else if(J==="srcset")return fY(X,Y);else if(J==="style")return J9(Y,fZ(X));else if(Z==="object"&&J==="data")return k0(X,Y);return Y}function SX(X,Z,J){return["video","audio"].includes(X)&&Z==="autoplay"}function bY(X,Z,J){try{if(typeof Z==="string"){if(X.classList.contains(Z))return!0}else for(let Y=X.classList.length;Y--;){let Q=X.classList[Y];if(Z.test(Q))return!0}if(J)return X.matches(J)}catch(Y){}return!1}function X9(X,Z,J){if(!X)return!1;if(X.nodeType!==X.ELEMENT_NODE){if(!J)return!1;return X9(s.parentNode(X),Z,J)}for(let Y=X.classList.length;Y--;){let Q=X.classList[Y];if(Z.test(Q))return!0}if(!J)return!1;return X9(s.parentNode(X),Z,J)}function fX(X,Z,J,Y){let Q;if(EX(X)){if(Q=X,!s.childNodes(Q).length)return!1}else if(s.parentElement(X)===null)return!1;else Q=s.parentElement(X);try{if(typeof Z==="string"){if(Y){if(Q.closest(`.${Z}`))return!0}else if(Q.classList.contains(Z))return!0}else if(X9(Q,Z,Y))return!0;if(J){if(Y){if(Q.closest(J))return!0}else if(Q.matches(J))return!0}}catch(K){}return!1}function kY(X,Z,J){let Y=X.contentWindow;if(!Y)return;let Q=!1,K;try{K=Y.document.readyState}catch(V){return}if(K!=="complete"){let V=setTimeout(()=>{if(!Q)Z(),Q=!0},J);X.addEventListener("load",()=>{clearTimeout(V),Q=!0,Z()});return}let q="about:blank";if(Y.location.href!==q||X.src===q||X.src==="")return setTimeout(Z,0),X.addEventListener("load",Z);X.addEventListener("load",Z)}function vY(X,Z,J){let Y=!1,Q;try{Q=X.sheet}catch(q){return}if(Q)return;let K=setTimeout(()=>{if(!Y)Z(),Y=!0},J);X.addEventListener("load",()=>{clearTimeout(K),Y=!0,Z()})}function hY(X,Z){let{doc:J,mirror:Y,blockClass:Q,blockSelector:K,needsMask:q,inlineStylesheet:V,maskInputOptions:G={},maskTextFn:U,maskInputFn:W,dataURLOptions:H={},inlineImages:B,recordCanvas:j,keepIframeSrcFn:P,newlyAddedElement:L=!1,cssCaptured:z=!1}=Z,O=yY(J,Y);switch(X.nodeType){case X.DOCUMENT_NODE:if(X.compatMode!=="CSS1Compat")return{type:d.Document,childNodes:[],compatMode:X.compatMode};else return{type:d.Document,childNodes:[]};case X.DOCUMENT_TYPE_NODE:return{type:d.DocumentType,name:X.name,publicId:X.publicId,systemId:X.systemId,rootId:O};case X.ELEMENT_NODE:return mY(X,{doc:J,blockClass:Q,blockSelector:K,inlineStylesheet:V,maskInputOptions:G,maskInputFn:W,dataURLOptions:H,inlineImages:B,recordCanvas:j,keepIframeSrcFn:P,newlyAddedElement:L,rootId:O});case X.TEXT_NODE:return gY(X,{doc:J,needsMask:q,maskTextFn:U,rootId:O,cssCaptured:z});case X.CDATA_SECTION_NODE:return{type:d.CDATA,textContent:"",rootId:O};case X.COMMENT_NODE:return{type:d.Comment,textContent:s.textContent(X)||"",rootId:O};default:return!1}}function yY(X,Z){if(!Z.hasNode(X))return;let J=Z.getId(X);return J===1?void 0:J}function gY(X,Z){let{needsMask:J,maskTextFn:Y,rootId:Q,cssCaptured:K}=Z,q=s.parentNode(X),V=q&&q.tagName,G="",U=V==="STYLE"?!0:void 0,W=V==="SCRIPT"?!0:void 0;if(W)G="SCRIPT_PLACEHOLDER";else if(!K){if(G=s.textContent(X),U&&G)G=J9(G,fZ(Z.doc))}if(!U&&!W&&G&&J)G=Y?Y(G,s.parentElement(X)):G.replace(/[\S]/g,"*");return{type:d.Text,textContent:G||"",rootId:Q}}function mY(X,Z){let{doc:J,blockClass:Y,blockSelector:Q,inlineStylesheet:K,maskInputOptions:q={},maskInputFn:V,dataURLOptions:G={},inlineImages:U,recordCanvas:W,keepIframeSrcFn:H,newlyAddedElement:B=!1,rootId:j}=Z,P=bY(X,Y,Q),L=NY(X),z={},O=X.attributes.length;for(let D=0;D<O;D++){let M=X.attributes[D];if(!SX(L,M.name,M.value))z[M.name]=TX(J,L,w0(M.name),M.value)}if(L==="link"&&K){let D=Array.from(J.styleSheets).find((T)=>{return T.href===X.href}),M=null;if(D)M=r9(D);if(M)delete z.rel,delete z.href,z._cssText=M}if(L==="style"&&X.sheet){let D=r9(X.sheet);if(D){if(X.childNodes.length>1)D=EY(D,X);z._cssText=D}}if(["input","textarea","select"].includes(L)){let{value:D,checked:M}=X;if(z.type!=="radio"&&z.type!=="checkbox"&&z.type!=="submit"&&z.type!=="button"&&D)z.value=e1({element:X,type:Z9(X),tagName:L,value:D,maskInputOptions:q,maskInputFn:V});else if(M)z.checked=M}if(L==="option")if(X.selected&&!q.select)z.selected=!0;else delete z.selected;if(L==="dialog"&&X.open)z.rr_open_mode=X.matches("dialog:modal")?"modal":"non-modal";if(L==="canvas"&&W){if(X.__context==="2d"){if(!AY(X))z.rr_dataURL=X.toDataURL(G.type,G.quality)}else if(!("__context"in X)){let D=X.toDataURL(G.type,G.quality),M=J.createElement("canvas");M.width=X.width,M.height=X.height;let T=M.toDataURL(G.type,G.quality);if(D!==T)z.rr_dataURL=D}}if(L==="img"&&U){if(!S0)S0=J.createElement("canvas"),TJ=S0.getContext("2d");let D=X,M=D.currentSrc||D.getAttribute("src")||"<unknown-src>",T=D.crossOrigin,f=()=>{D.removeEventListener("load",f);try{S0.width=D.naturalWidth,S0.height=D.naturalHeight,TJ.drawImage(D,0,0),z.rr_dataURL=S0.toDataURL(G.type,G.quality)}catch(p){if(D.crossOrigin!=="anonymous"){if(D.crossOrigin="anonymous",D.complete&&D.naturalWidth!==0)f();else D.addEventListener("load",f);return}else console.warn(`Cannot inline img src=${M}! Error: ${p}`)}if(D.crossOrigin==="anonymous")T?z.crossOrigin=T:D.removeAttribute("crossorigin")};if(D.complete&&D.naturalWidth!==0)f();else D.addEventListener("load",f)}if(["audio","video"].includes(L)){let D=z;D.rr_mediaState=X.paused?"paused":"played",D.rr_mediaCurrentTime=X.currentTime,D.rr_mediaPlaybackRate=X.playbackRate,D.rr_mediaMuted=X.muted,D.rr_mediaLoop=X.loop,D.rr_mediaVolume=X.volume}if(!B){if(X.scrollLeft)z.rr_scrollLeft=X.scrollLeft;if(X.scrollTop)z.rr_scrollTop=X.scrollTop}if(P){let{width:D,height:M}=X.getBoundingClientRect();z={class:z.class,rr_width:`${D}px`,rr_height:`${M}px`}}if(L==="iframe"&&!H(z.src)){if(!X.contentDocument)z.rr_src=z.src;delete z.src}let A;try{if(customElements.get(L))A=!0}catch(D){}return{type:d.Element,tagName:L,attributes:z,childNodes:[],isSVG:xY(X)||void 0,needBlock:P,rootId:j,isCustom:A}}function x(X){if(X===void 0||X===null)return"";else return X.toLowerCase()}function xX(X){if(X===!0||X==="all")return{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:X==="all",headMetaDescKeywords:X==="all",headTitleMutations:X==="all"};else if(X)return X;return{}}function uY(X,Z){if(Z.comment&&X.type===d.Comment)return!0;else if(X.type===d.Element){if(Z.script&&(X.tagName==="script"||X.tagName==="link"&&(X.attributes.rel==="preload"&&X.attributes.as==="script"||X.attributes.rel==="modulepreload")||X.tagName==="link"&&X.attributes.rel==="prefetch"&&typeof X.attributes.href==="string"&&$X(X.attributes.href)==="js"))return!0;else if(Z.headFavicon&&(X.tagName==="link"&&X.attributes.rel==="shortcut icon"||X.tagName==="meta"&&(x(X.attributes.name).match(/^msapplication-tile(image|color)$/)||x(X.attributes.name)==="application-name"||x(X.attributes.rel)==="icon"||x(X.attributes.rel)==="apple-touch-icon"||x(X.attributes.rel)==="shortcut icon")))return!0;else if(X.tagName==="meta"){if(Z.headMetaDescKeywords&&x(X.attributes.name).match(/^description|keywords$/))return!0;else if(Z.headMetaSocial&&(x(X.attributes.property).match(/^(og|twitter|fb):/)||x(X.attributes.name).match(/^(og|twitter):/)||x(X.attributes.name)==="pinterest"))return!0;else if(Z.headMetaRobots&&(x(X.attributes.name)==="robots"||x(X.attributes.name)==="googlebot"||x(X.attributes.name)==="bingbot"))return!0;else if(Z.headMetaHttpEquiv&&X.attributes["http-equiv"]!==void 0)return!0;else if(Z.headMetaAuthorship&&(x(X.attributes.name)==="author"||x(X.attributes.name)==="generator"||x(X.attributes.name)==="framework"||x(X.attributes.name)==="publisher"||x(X.attributes.name)==="progid"||x(X.attributes.property).match(/^article:/)||x(X.attributes.property).match(/^product:/)))return!0;else if(Z.headMetaVerification&&(x(X.attributes.name)==="google-site-verification"||x(X.attributes.name)==="yandex-verification"||x(X.attributes.name)==="csrf-token"||x(X.attributes.name)==="p:domain_verify"||x(X.attributes.name)==="verify-v1"||x(X.attributes.name)==="verification"||x(X.attributes.name)==="shopify-checkout-api-token"))return!0}}return!1}function v0(X,Z){let{doc:J,mirror:Y,blockClass:Q,blockSelector:K,maskTextClass:q,maskTextSelector:V,skipChild:G=!1,inlineStylesheet:U=!0,maskInputOptions:W={},maskTextFn:H,maskInputFn:B,slimDOMOptions:j,dataURLOptions:P={},inlineImages:L=!1,recordCanvas:z=!1,onSerialize:O,onIframeLoad:A,iframeLoadTimeout:D=5000,onStylesheetLoad:M,stylesheetLoadTimeout:T=5000,keepIframeSrcFn:f=()=>!1,newlyAddedElement:p=!1,cssCaptured:v=!1}=Z,{needsMask:c}=Z,{preserveWhiteSpace:i=!0}=Z;if(!c)c=fX(X,q,V,c===void 0);let t=hY(X,{doc:J,mirror:Y,blockClass:Q,blockSelector:K,needsMask:c,inlineStylesheet:U,maskInputOptions:W,maskTextFn:H,maskInputFn:B,dataURLOptions:P,inlineImages:L,recordCanvas:z,keepIframeSrcFn:f,newlyAddedElement:p,cssCaptured:v});if(!t)return console.warn(X,"not serialized"),null;let K0;if(Y.hasNode(X))K0=Y.getId(X);else if(uY(t,j)||!i&&t.type===d.Text&&!t.textContent.replace(/^\s+|\s+$/gm,"").length)K0=K1;else K0=NX();let E=Object.assign(t,{id:K0});if(Y.add(X,E),K0===K1)return null;if(O)O(X);let i0=!G;if(E.type===d.Element){i0=i0&&!E.needBlock,delete E.needBlock;let l=s.shadowRoot(X);if(l&&Y1(l))E.isShadowHost=!0}if((E.type===d.Document||E.type===d.Element)&&i0){if(j.headWhitespace&&E.type===d.Element&&E.tagName==="head")i=!1;let l={doc:J,mirror:Y,blockClass:Q,blockSelector:K,needsMask:c,maskTextClass:q,maskTextSelector:V,skipChild:G,inlineStylesheet:U,maskInputOptions:W,maskTextFn:H,maskInputFn:B,slimDOMOptions:j,dataURLOptions:P,inlineImages:L,recordCanvas:z,preserveWhiteSpace:i,onSerialize:O,onIframeLoad:A,iframeLoadTimeout:D,onStylesheetLoad:M,stylesheetLoadTimeout:T,keepIframeSrcFn:f,cssCaptured:!1};if(E.type===d.Element&&E.tagName==="textarea"&&E.attributes.value!==void 0);else{if(E.type===d.Element&&E.attributes._cssText!==void 0&&typeof E.attributes._cssText==="string")l.cssCaptured=!0;for(let D0 of Array.from(s.childNodes(X))){let q0=v0(D0,l);if(q0)E.childNodes.push(q0)}}let e=null;if(EX(X)&&(e=s.shadowRoot(X)))for(let D0 of Array.from(s.childNodes(e))){let q0=v0(D0,l);if(q0)Y1(e)&&(q0.isShadow=!0),E.childNodes.push(q0)}}let s0=s.parentNode(X);if(s0&&X1(s0)&&Y1(s0))E.isShadow=!0;if(E.type===d.Element&&E.tagName==="iframe")kY(X,()=>{let l=X.contentDocument;if(l&&A){let e=v0(l,{doc:l,mirror:Y,blockClass:Q,blockSelector:K,needsMask:c,maskTextClass:q,maskTextSelector:V,skipChild:!1,inlineStylesheet:U,maskInputOptions:W,maskTextFn:H,maskInputFn:B,slimDOMOptions:j,dataURLOptions:P,inlineImages:L,recordCanvas:z,preserveWhiteSpace:i,onSerialize:O,onIframeLoad:A,iframeLoadTimeout:D,onStylesheetLoad:M,stylesheetLoadTimeout:T,keepIframeSrcFn:f});if(e)A(X,e)}},D);if(E.type===d.Element&&E.tagName==="link"&&typeof E.attributes.rel==="string"&&(E.attributes.rel==="stylesheet"||E.attributes.rel==="preload"&&typeof E.attributes.href==="string"&&$X(E.attributes.href)==="css"))vY(X,()=>{if(M){let l=v0(X,{doc:J,mirror:Y,blockClass:Q,blockSelector:K,needsMask:c,maskTextClass:q,maskTextSelector:V,skipChild:!1,inlineStylesheet:U,maskInputOptions:W,maskTextFn:H,maskInputFn:B,slimDOMOptions:j,dataURLOptions:P,inlineImages:L,recordCanvas:z,preserveWhiteSpace:i,onSerialize:O,onIframeLoad:A,iframeLoadTimeout:D,onStylesheetLoad:M,stylesheetLoadTimeout:T,keepIframeSrcFn:f});if(l)M(X,l)}},T);return E}function cY(X,Z){let{mirror:J=new SZ,blockClass:Y="rr-block",blockSelector:Q=null,maskTextClass:K="rr-mask",maskTextSelector:q=null,inlineStylesheet:V=!0,inlineImages:G=!1,recordCanvas:U=!1,maskAllInputs:W=!1,maskTextFn:H,maskInputFn:B,slimDOM:j=!1,dataURLOptions:P,preserveWhiteSpace:L,onSerialize:z,onIframeLoad:O,iframeLoadTimeout:A,onStylesheetLoad:D,stylesheetLoadTimeout:M,keepIframeSrcFn:T=()=>!1}=Z||{},f=W===!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}:W===!1?{password:!0}:W,p=xX(j);return v0(X,{doc:X,mirror:J,blockClass:Y,blockSelector:Q,maskTextClass:K,maskTextSelector:q,skipChild:!1,inlineStylesheet:V,maskInputOptions:f,maskTextFn:H,maskInputFn:B,slimDOMOptions:p,dataURLOptions:P,inlineImages:G,recordCanvas:U,preserveWhiteSpace:L,onSerialize:z,onIframeLoad:O,iframeLoadTimeout:A,onStylesheetLoad:D,stylesheetLoadTimeout:M,keepIframeSrcFn:T,newlyAddedElement:!1})}var pY=/(max|min)-device-(width|height)/,uG=new RegExp(pY.source,"g");function lY(X){return X&&X.__esModule&&Object.prototype.hasOwnProperty.call(X,"default")?X.default:X}function dY(X){if(X.__esModule)return X;var Z=X.default;if(typeof Z=="function"){var J=function Y(){if(this instanceof Y)return Reflect.construct(Z,arguments,this.constructor);return Z.apply(this,arguments)};J.prototype=Z.prototype}else J={};return Object.defineProperty(J,"__esModule",{value:!0}),Object.keys(X).forEach(function(Y){var Q=Object.getOwnPropertyDescriptor(X,Y);Object.defineProperty(J,Y,Q.get?Q:{enumerable:!0,get:function(){return X[Y]}})}),J}var xZ={exports:{}},b=String,bX=function(){return{isColorSupported:!1,reset:b,bold:b,dim:b,italic:b,underline:b,inverse:b,hidden:b,strikethrough:b,black:b,red:b,green:b,yellow:b,blue:b,magenta:b,cyan:b,white:b,gray:b,bgBlack:b,bgRed:b,bgGreen:b,bgYellow:b,bgBlue:b,bgMagenta:b,bgCyan:b,bgWhite:b}};xZ.exports=bX();xZ.exports.createColors=bX;var iY=xZ.exports,sY={},aY=Object.freeze(Object.defineProperty({__proto__:null,default:sY},Symbol.toStringTag,{value:"Module"})),Y0=dY(aY),fJ=iY,xJ=Y0,o9=class X extends Error{constructor(Z,J,Y,Q,K,q){super(Z);if(this.name="CssSyntaxError",this.reason=Z,K)this.file=K;if(Q)this.source=Q;if(q)this.plugin=q;if(typeof J<"u"&&typeof Y<"u")if(typeof J==="number")this.line=J,this.column=Y;else this.line=J.line,this.column=J.column,this.endLine=Y.line,this.endColumn=Y.column;if(this.setMessage(),Error.captureStackTrace)Error.captureStackTrace(this,X)}setMessage(){if(this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line<"u")this.message+=":"+this.line+":"+this.column;this.message+=": "+this.reason}showSourceCode(Z){if(!this.source)return"";let J=this.source;if(Z==null)Z=fJ.isColorSupported;if(xJ){if(Z)J=xJ(J)}let Y=J.split(/\r?\n/),Q=Math.max(this.line-3,0),K=Math.min(this.line+2,Y.length),q=String(K).length,V,G;if(Z){let{bold:U,gray:W,red:H}=fJ.createColors(!0);V=(B)=>U(H(B)),G=(B)=>W(B)}else V=G=(U)=>U;return Y.slice(Q,K).map((U,W)=>{let H=Q+1+W,B=" "+(" "+H).slice(-q)+" | ";if(H===this.line){let j=G(B.replace(/\d/g," "))+U.slice(0,this.column-1).replace(/[^\t]/g," ");return V(">")+G(B)+U+`
|
|
2
|
+
`+j+V("^")}return" "+G(B)+U}).join(`
|
|
3
|
+
`)}toString(){let Z=this.showSourceCode();if(Z)Z=`
|
|
4
|
+
|
|
5
|
+
`+Z+`
|
|
6
|
+
`;return this.name+": "+this.message+Z}},bZ=o9;o9.default=o9;var L1={};L1.isClean=Symbol("isClean");L1.my=Symbol("my");var bJ={after:`
|
|
7
|
+
`,beforeClose:`
|
|
8
|
+
`,beforeComment:`
|
|
9
|
+
`,beforeDecl:`
|
|
10
|
+
`,beforeOpen:" ",beforeRule:`
|
|
11
|
+
`,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function rY(X){return X[0].toUpperCase()+X.slice(1)}var n9=class{constructor(Z){this.builder=Z}atrule(Z,J){let Y="@"+Z.name,Q=Z.params?this.rawValue(Z,"params"):"";if(typeof Z.raws.afterName<"u")Y+=Z.raws.afterName;else if(Q)Y+=" ";if(Z.nodes)this.block(Z,Y+Q);else{let K=(Z.raws.between||"")+(J?";":"");this.builder(Y+Q+K,Z)}}beforeAfter(Z,J){let Y;if(Z.type==="decl")Y=this.raw(Z,null,"beforeDecl");else if(Z.type==="comment")Y=this.raw(Z,null,"beforeComment");else if(J==="before")Y=this.raw(Z,null,"beforeRule");else Y=this.raw(Z,null,"beforeClose");let Q=Z.parent,K=0;while(Q&&Q.type!=="root")K+=1,Q=Q.parent;if(Y.includes(`
|
|
12
|
+
`)){let q=this.raw(Z,null,"indent");if(q.length)for(let V=0;V<K;V++)Y+=q}return Y}block(Z,J){let Y=this.raw(Z,"between","beforeOpen");this.builder(J+Y+"{",Z,"start");let Q;if(Z.nodes&&Z.nodes.length)this.body(Z),Q=this.raw(Z,"after");else Q=this.raw(Z,"after","emptyBody");if(Q)this.builder(Q);this.builder("}",Z,"end")}body(Z){let J=Z.nodes.length-1;while(J>0){if(Z.nodes[J].type!=="comment")break;J-=1}let Y=this.raw(Z,"semicolon");for(let Q=0;Q<Z.nodes.length;Q++){let K=Z.nodes[Q],q=this.raw(K,"before");if(q)this.builder(q);this.stringify(K,J!==Q||Y)}}comment(Z){let J=this.raw(Z,"left","commentLeft"),Y=this.raw(Z,"right","commentRight");this.builder("/*"+J+Z.text+Y+"*/",Z)}decl(Z,J){let Y=this.raw(Z,"between","colon"),Q=Z.prop+Y+this.rawValue(Z,"value");if(Z.important)Q+=Z.raws.important||" !important";if(J)Q+=";";this.builder(Q,Z)}document(Z){this.body(Z)}raw(Z,J,Y){let Q;if(!Y)Y=J;if(J){if(Q=Z.raws[J],typeof Q<"u")return Q}let K=Z.parent;if(Y==="before"){if(!K||K.type==="root"&&K.first===Z)return"";if(K&&K.type==="document")return""}if(!K)return bJ[Y];let q=Z.root();if(!q.rawCache)q.rawCache={};if(typeof q.rawCache[Y]<"u")return q.rawCache[Y];if(Y==="before"||Y==="after")return this.beforeAfter(Z,Y);else{let V="raw"+rY(Y);if(this[V])Q=this[V](q,Z);else q.walk((G)=>{if(Q=G.raws[J],typeof Q<"u")return!1})}if(typeof Q>"u")Q=bJ[Y];return q.rawCache[Y]=Q,Q}rawBeforeClose(Z){let J;if(Z.walk((Y)=>{if(Y.nodes&&Y.nodes.length>0){if(typeof Y.raws.after<"u"){if(J=Y.raws.after,J.includes(`
|
|
13
|
+
`))J=J.replace(/[^\n]+$/,"");return!1}}}),J)J=J.replace(/\S/g,"");return J}rawBeforeComment(Z,J){let Y;if(Z.walkComments((Q)=>{if(typeof Q.raws.before<"u"){if(Y=Q.raws.before,Y.includes(`
|
|
14
|
+
`))Y=Y.replace(/[^\n]+$/,"");return!1}}),typeof Y>"u")Y=this.raw(J,null,"beforeDecl");else if(Y)Y=Y.replace(/\S/g,"");return Y}rawBeforeDecl(Z,J){let Y;if(Z.walkDecls((Q)=>{if(typeof Q.raws.before<"u"){if(Y=Q.raws.before,Y.includes(`
|
|
15
|
+
`))Y=Y.replace(/[^\n]+$/,"");return!1}}),typeof Y>"u")Y=this.raw(J,null,"beforeRule");else if(Y)Y=Y.replace(/\S/g,"");return Y}rawBeforeOpen(Z){let J;return Z.walk((Y)=>{if(Y.type!=="decl"){if(J=Y.raws.between,typeof J<"u")return!1}}),J}rawBeforeRule(Z){let J;if(Z.walk((Y)=>{if(Y.nodes&&(Y.parent!==Z||Z.first!==Y)){if(typeof Y.raws.before<"u"){if(J=Y.raws.before,J.includes(`
|
|
16
|
+
`))J=J.replace(/[^\n]+$/,"");return!1}}}),J)J=J.replace(/\S/g,"");return J}rawColon(Z){let J;return Z.walkDecls((Y)=>{if(typeof Y.raws.between<"u")return J=Y.raws.between.replace(/[^\s:]/g,""),!1}),J}rawEmptyBody(Z){let J;return Z.walk((Y)=>{if(Y.nodes&&Y.nodes.length===0){if(J=Y.raws.after,typeof J<"u")return!1}}),J}rawIndent(Z){if(Z.raws.indent)return Z.raws.indent;let J;return Z.walk((Y)=>{let Q=Y.parent;if(Q&&Q!==Z&&Q.parent&&Q.parent===Z){if(typeof Y.raws.before<"u"){let K=Y.raws.before.split(`
|
|
17
|
+
`);return J=K[K.length-1],J=J.replace(/\S/g,""),!1}}}),J}rawSemicolon(Z){let J;return Z.walk((Y)=>{if(Y.nodes&&Y.nodes.length&&Y.last.type==="decl"){if(J=Y.raws.semicolon,typeof J<"u")return!1}}),J}rawValue(Z,J){let Y=Z[J],Q=Z.raws[J];if(Q&&Q.value===Y)return Q.raw;return Y}root(Z){if(this.body(Z),Z.raws.after)this.builder(Z.raws.after)}rule(Z){if(this.block(Z,this.rawValue(Z,"selector")),Z.raws.ownSemicolon)this.builder(Z.raws.ownSemicolon,Z,"end")}stringify(Z,J){if(!this[Z.type])throw Error("Unknown AST node type "+Z.type+". Maybe you need to change PostCSS stringifier.");this[Z.type](Z,J)}},kX=n9;n9.default=n9;var oY=kX;function t9(X,Z){new oY(Z).stringify(X)}var j9=t9;t9.default=t9;var{isClean:E1,my:nY}=L1,tY=bZ,eY=kX,ZQ=j9;function e9(X,Z){let J=new X.constructor;for(let Y in X){if(!Object.prototype.hasOwnProperty.call(X,Y))continue;if(Y==="proxyCache")continue;let Q=X[Y],K=typeof Q;if(Y==="parent"&&K==="object"){if(Z)J[Y]=Z}else if(Y==="source")J[Y]=Q;else if(Array.isArray(Q))J[Y]=Q.map((q)=>e9(q,J));else{if(K==="object"&&Q!==null)Q=e9(Q);J[Y]=Q}}return J}var ZZ=class{constructor(Z={}){this.raws={},this[E1]=!1,this[nY]=!0;for(let J in Z)if(J==="nodes"){this.nodes=[];for(let Y of Z[J])if(typeof Y.clone==="function")this.append(Y.clone());else this.append(Y)}else this[J]=Z[J]}addToError(Z){if(Z.postcssNode=this,Z.stack&&this.source&&/\n\s{4}at /.test(Z.stack)){let J=this.source;Z.stack=Z.stack.replace(/\n\s{4}at /,`$&${J.input.from}:${J.start.line}:${J.start.column}$&`)}return Z}after(Z){return this.parent.insertAfter(this,Z),this}assign(Z={}){for(let J in Z)this[J]=Z[J];return this}before(Z){return this.parent.insertBefore(this,Z),this}cleanRaws(Z){if(delete this.raws.before,delete this.raws.after,!Z)delete this.raws.between}clone(Z={}){let J=e9(this);for(let Y in Z)J[Y]=Z[Y];return J}cloneAfter(Z={}){let J=this.clone(Z);return this.parent.insertAfter(this,J),J}cloneBefore(Z={}){let J=this.clone(Z);return this.parent.insertBefore(this,J),J}error(Z,J={}){if(this.source){let{end:Y,start:Q}=this.rangeBy(J);return this.source.input.error(Z,{column:Q.column,line:Q.line},{column:Y.column,line:Y.line},J)}return new tY(Z)}getProxyProcessor(){return{get(Z,J){if(J==="proxyOf")return Z;else if(J==="root")return()=>Z.root().toProxy();else return Z[J]},set(Z,J,Y){if(Z[J]===Y)return!0;if(Z[J]=Y,J==="prop"||J==="value"||J==="name"||J==="params"||J==="important"||J==="text")Z.markDirty();return!0}}}markDirty(){if(this[E1]){this[E1]=!1;let Z=this;while(Z=Z.parent)Z[E1]=!1}}next(){if(!this.parent)return;let Z=this.parent.index(this);return this.parent.nodes[Z+1]}positionBy(Z,J){let Y=this.source.start;if(Z.index)Y=this.positionInside(Z.index,J);else if(Z.word){J=this.toString();let Q=J.indexOf(Z.word);if(Q!==-1)Y=this.positionInside(Q,J)}return Y}positionInside(Z,J){let Y=J||this.toString(),Q=this.source.start.column,K=this.source.start.line;for(let q=0;q<Z;q++)if(Y[q]===`
|
|
18
|
+
`)Q=1,K+=1;else Q+=1;return{column:Q,line:K}}prev(){if(!this.parent)return;let Z=this.parent.index(this);return this.parent.nodes[Z-1]}rangeBy(Z){let J={column:this.source.start.column,line:this.source.start.line},Y=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:J.column+1,line:J.line};if(Z.word){let Q=this.toString(),K=Q.indexOf(Z.word);if(K!==-1)J=this.positionInside(K,Q),Y=this.positionInside(K+Z.word.length,Q)}else{if(Z.start)J={column:Z.start.column,line:Z.start.line};else if(Z.index)J=this.positionInside(Z.index);if(Z.end)Y={column:Z.end.column,line:Z.end.line};else if(typeof Z.endIndex==="number")Y=this.positionInside(Z.endIndex);else if(Z.index)Y=this.positionInside(Z.index+1)}if(Y.line<J.line||Y.line===J.line&&Y.column<=J.column)Y={column:J.column+1,line:J.line};return{end:Y,start:J}}raw(Z,J){return new eY().raw(this,Z,J)}remove(){if(this.parent)this.parent.removeChild(this);return this.parent=void 0,this}replaceWith(...Z){if(this.parent){let J=this,Y=!1;for(let Q of Z)if(Q===this)Y=!0;else if(Y)this.parent.insertAfter(J,Q),J=Q;else this.parent.insertBefore(J,Q);if(!Y)this.remove()}return this}root(){let Z=this;while(Z.parent&&Z.parent.type!=="document")Z=Z.parent;return Z}toJSON(Z,J){let Y={},Q=J==null;J=J||new Map;let K=0;for(let q in this){if(!Object.prototype.hasOwnProperty.call(this,q))continue;if(q==="parent"||q==="proxyCache")continue;let V=this[q];if(Array.isArray(V))Y[q]=V.map((G)=>{if(typeof G==="object"&&G.toJSON)return G.toJSON(null,J);else return G});else if(typeof V==="object"&&V.toJSON)Y[q]=V.toJSON(null,J);else if(q==="source"){let G=J.get(V.input);if(G==null)G=K,J.set(V.input,K),K++;Y[q]={end:V.end,inputId:G,start:V.start}}else Y[q]=V}if(Q)Y.inputs=[...J.keys()].map((q)=>q.toJSON());return Y}toProxy(){if(!this.proxyCache)this.proxyCache=new Proxy(this,this.getProxyProcessor());return this.proxyCache}toString(Z=ZQ){if(Z.stringify)Z=Z.stringify;let J="";return Z(this,(Y)=>{J+=Y}),J}warn(Z,J,Y){let Q={node:this};for(let K in Y)Q[K]=Y[K];return Z.warn(J,Q)}get proxyOf(){return this}},L9=ZZ;ZZ.default=ZZ;var JQ=L9,JZ=class extends JQ{constructor(Z){if(Z&&typeof Z.value<"u"&&typeof Z.value!=="string")Z={...Z,value:String(Z.value)};super(Z);this.type="decl"}get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}},P9=JZ;JZ.default=JZ;var XQ="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",YQ=(X,Z=21)=>{return(J=Z)=>{let Y="",Q=J;while(Q--)Y+=X[Math.random()*X.length|0];return Y}},QQ=(X=21)=>{let Z="",J=X;while(J--)Z+=XQ[Math.random()*64|0];return Z},KQ={nanoid:QQ,customAlphabet:YQ},{SourceMapConsumer:kJ,SourceMapGenerator:vJ}=Y0,{existsSync:qQ,readFileSync:GQ}=Y0,{dirname:h9,join:VQ}=Y0;function UQ(X){if(Buffer)return Buffer.from(X,"base64").toString();else return window.atob(X)}var XZ=class{constructor(Z,J){if(J.map===!1)return;this.loadAnnotation(Z),this.inline=this.startWith(this.annotation,"data:");let Y=J.map?J.map.prev:void 0,Q=this.loadMap(J.from,Y);if(!this.mapFile&&J.from)this.mapFile=J.from;if(this.mapFile)this.root=h9(this.mapFile);if(Q)this.text=Q}consumer(){if(!this.consumerCache)this.consumerCache=new kJ(this.text);return this.consumerCache}decodeInline(Z){let J=/^data:application\/json;charset=utf-?8;base64,/,Y=/^data:application\/json;base64,/,Q=/^data:application\/json;charset=utf-?8,/,K=/^data:application\/json,/;if(Q.test(Z)||K.test(Z))return decodeURIComponent(Z.substr(RegExp.lastMatch.length));if(J.test(Z)||Y.test(Z))return UQ(Z.substr(RegExp.lastMatch.length));let q=Z.match(/data:application\/json;([^,]+),/)[1];throw Error("Unsupported source map encoding "+q)}getAnnotationURL(Z){return Z.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(Z){if(typeof Z!=="object")return!1;return typeof Z.mappings==="string"||typeof Z._mappings==="string"||Array.isArray(Z.sections)}loadAnnotation(Z){let J=Z.match(/\/\*\s*# sourceMappingURL=/gm);if(!J)return;let Y=Z.lastIndexOf(J.pop()),Q=Z.indexOf("*/",Y);if(Y>-1&&Q>-1)this.annotation=this.getAnnotationURL(Z.substring(Y,Q))}loadFile(Z){if(this.root=h9(Z),qQ(Z))return this.mapFile=Z,GQ(Z,"utf-8").toString().trim()}loadMap(Z,J){if(J===!1)return!1;if(J)if(typeof J==="string")return J;else if(typeof J==="function"){let Y=J(Z);if(Y){let Q=this.loadFile(Y);if(!Q)throw Error("Unable to load previous source map: "+Y.toString());return Q}}else if(J instanceof kJ)return vJ.fromSourceMap(J).toString();else if(J instanceof vJ)return J.toString();else if(this.isMap(J))return JSON.stringify(J);else throw Error("Unsupported previous source map format: "+J.toString());else if(this.inline)return this.decodeInline(this.annotation);else if(this.annotation){let Y=this.annotation;if(Z)Y=VQ(h9(Z),Y);return this.loadFile(Y)}}startWith(Z,J){if(!Z)return!1;return Z.substr(0,J.length)===J}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}},vX=XZ;XZ.default=XZ;var{SourceMapConsumer:WQ,SourceMapGenerator:HQ}=Y0,{fileURLToPath:hJ,pathToFileURL:I1}=Y0,{isAbsolute:YZ,resolve:QZ}=Y0,{nanoid:zQ}=KQ,y9=Y0,yJ=bZ,BQ=vX,g9=Symbol("fromOffsetCache"),jQ=Boolean(WQ&&HQ),gJ=Boolean(QZ&&YZ),Y9=class{constructor(Z,J={}){if(Z===null||typeof Z>"u"||typeof Z==="object"&&!Z.toString)throw Error(`PostCSS received ${Z} instead of CSS string`);if(this.css=Z.toString(),this.css[0]==="\uFEFF"||this.css[0]==="")this.hasBOM=!0,this.css=this.css.slice(1);else this.hasBOM=!1;if(J.from)if(!gJ||/^\w+:\/\//.test(J.from)||YZ(J.from))this.file=J.from;else this.file=QZ(J.from);if(gJ&&jQ){let Y=new BQ(this.css,J);if(Y.text){this.map=Y;let Q=Y.consumer().file;if(!this.file&&Q)this.file=this.mapResolve(Q)}}if(!this.file)this.id="<input css "+zQ(6)+">";if(this.map)this.map.file=this.from}error(Z,J,Y,Q={}){let K,q,V;if(J&&typeof J==="object"){let U=J,W=Y;if(typeof U.offset==="number"){let H=this.fromOffset(U.offset);J=H.line,Y=H.col}else J=U.line,Y=U.column;if(typeof W.offset==="number"){let H=this.fromOffset(W.offset);q=H.line,V=H.col}else q=W.line,V=W.column}else if(!Y){let U=this.fromOffset(J);J=U.line,Y=U.col}let G=this.origin(J,Y,q,V);if(G)K=new yJ(Z,G.endLine===void 0?G.line:{column:G.column,line:G.line},G.endLine===void 0?G.column:{column:G.endColumn,line:G.endLine},G.source,G.file,Q.plugin);else K=new yJ(Z,q===void 0?J:{column:Y,line:J},q===void 0?Y:{column:V,line:q},this.css,this.file,Q.plugin);if(K.input={column:Y,endColumn:V,endLine:q,line:J,source:this.css},this.file){if(I1)K.input.url=I1(this.file).toString();K.input.file=this.file}return K}fromOffset(Z){let J,Y;if(!this[g9]){let K=this.css.split(`
|
|
19
|
+
`);Y=Array(K.length);let q=0;for(let V=0,G=K.length;V<G;V++)Y[V]=q,q+=K[V].length+1;this[g9]=Y}else Y=this[g9];J=Y[Y.length-1];let Q=0;if(Z>=J)Q=Y.length-1;else{let K=Y.length-2,q;while(Q<K)if(q=Q+(K-Q>>1),Z<Y[q])K=q-1;else if(Z>=Y[q+1])Q=q+1;else{Q=q;break}}return{col:Z-Y[Q]+1,line:Q+1}}mapResolve(Z){if(/^\w+:\/\//.test(Z))return Z;return QZ(this.map.consumer().sourceRoot||this.map.root||".",Z)}origin(Z,J,Y,Q){if(!this.map)return!1;let K=this.map.consumer(),q=K.originalPositionFor({column:J,line:Z});if(!q.source)return!1;let V;if(typeof Y==="number")V=K.originalPositionFor({column:Q,line:Y});let G;if(YZ(q.source))G=I1(q.source);else G=new URL(q.source,this.map.consumer().sourceRoot||I1(this.map.mapFile));let U={column:q.column,endColumn:V&&V.column,endLine:V&&V.line,line:q.line,url:G.toString()};if(G.protocol==="file:")if(hJ)U.file=hJ(G);else throw Error("file: protocol is not available in this PostCSS build");let W=K.sourceContentFor(q.source);if(W)U.source=W;return U}toJSON(){let Z={};for(let J of["hasBOM","css","file","id"])if(this[J]!=null)Z[J]=this[J];if(this.map){if(Z.map={...this.map},Z.map.consumerCache)Z.map.consumerCache=void 0}return Z}get from(){return this.file||this.id}},D9=Y9;Y9.default=Y9;if(y9&&y9.registerInput)y9.registerInput(Y9);var{SourceMapConsumer:hX,SourceMapGenerator:s1}=Y0,{dirname:a1,relative:yX,resolve:gX,sep:mX}=Y0,{pathToFileURL:mJ}=Y0,LQ=D9,PQ=Boolean(hX&&s1),DQ=Boolean(a1&&gX&&yX&&mX),FQ=class{constructor(Z,J,Y,Q){this.stringify=Z,this.mapOpts=Y.map||{},this.root=J,this.opts=Y,this.css=Q,this.originalCSS=Q,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let Z;if(this.isInline())Z="data:application/json;base64,"+this.toBase64(this.map.toString());else if(typeof this.mapOpts.annotation==="string")Z=this.mapOpts.annotation;else if(typeof this.mapOpts.annotation==="function")Z=this.mapOpts.annotation(this.opts.to,this.root);else Z=this.outputFile()+".map";let J=`
|
|
20
|
+
`;if(this.css.includes(`\r
|
|
21
|
+
`))J=`\r
|
|
22
|
+
`;this.css+=J+"/*# sourceMappingURL="+Z+" */"}applyPrevMaps(){for(let Z of this.previous()){let J=this.toUrl(this.path(Z.file)),Y=Z.root||a1(Z.file),Q;if(this.mapOpts.sourcesContent===!1){if(Q=new hX(Z.text),Q.sourcesContent)Q.sourcesContent=null}else Q=Z.consumer();this.map.applySourceMap(Q,J,this.toUrl(this.path(Y)))}}clearAnnotation(){if(this.mapOpts.annotation===!1)return;if(this.root){let Z;for(let J=this.root.nodes.length-1;J>=0;J--){if(Z=this.root.nodes[J],Z.type!=="comment")continue;if(Z.text.indexOf("# sourceMappingURL=")===0)this.root.removeChild(J)}}else if(this.css)this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,"")}generate(){if(this.clearAnnotation(),DQ&&PQ&&this.isMap())return this.generateMap();else{let Z="";return this.stringify(this.root,(J)=>{Z+=J}),[Z]}}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let Z=this.previous()[0].consumer();Z.file=this.outputFile(),this.map=s1.fromSourceMap(Z,{ignoreInvalidMapping:!0})}else this.map=new s1({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>"});if(this.isSourcesContent())this.setSourcesContent();if(this.root&&this.previous().length>0)this.applyPrevMaps();if(this.isAnnotation())this.addAnnotation();if(this.isInline())return[this.css];else return[this.css,this.map]}generateString(){this.css="",this.map=new s1({file:this.outputFile(),ignoreInvalidMapping:!0});let Z=1,J=1,Y="<no source>",Q={generated:{column:0,line:0},original:{column:0,line:0},source:""},K,q;this.stringify(this.root,(V,G,U)=>{if(this.css+=V,G&&U!=="end")if(Q.generated.line=Z,Q.generated.column=J-1,G.source&&G.source.start)Q.source=this.sourcePath(G),Q.original.line=G.source.start.line,Q.original.column=G.source.start.column-1,this.map.addMapping(Q);else Q.source=Y,Q.original.line=1,Q.original.column=0,this.map.addMapping(Q);if(K=V.match(/\n/g),K)Z+=K.length,q=V.lastIndexOf(`
|
|
23
|
+
`),J=V.length-q;else J+=V.length;if(G&&U!=="start"){let W=G.parent||{raws:{}};if(!(G.type==="decl"||G.type==="atrule"&&!G.nodes)||G!==W.last||W.raws.semicolon)if(G.source&&G.source.end)Q.source=this.sourcePath(G),Q.original.line=G.source.end.line,Q.original.column=G.source.end.column-1,Q.generated.line=Z,Q.generated.column=J-2,this.map.addMapping(Q);else Q.source=Y,Q.original.line=1,Q.original.column=0,Q.generated.line=Z,Q.generated.column=J-1,this.map.addMapping(Q)}})}isAnnotation(){if(this.isInline())return!0;if(typeof this.mapOpts.annotation<"u")return this.mapOpts.annotation;if(this.previous().length)return this.previous().some((Z)=>Z.annotation);return!0}isInline(){if(typeof this.mapOpts.inline<"u")return this.mapOpts.inline;let Z=this.mapOpts.annotation;if(typeof Z<"u"&&Z!==!0)return!1;if(this.previous().length)return this.previous().some((J)=>J.inline);return!0}isMap(){if(typeof this.opts.map<"u")return!!this.opts.map;return this.previous().length>0}isSourcesContent(){if(typeof this.mapOpts.sourcesContent<"u")return this.mapOpts.sourcesContent;if(this.previous().length)return this.previous().some((Z)=>Z.withContent());return!0}outputFile(){if(this.opts.to)return this.path(this.opts.to);else if(this.opts.from)return this.path(this.opts.from);else return"to.css"}path(Z){if(this.mapOpts.absolute)return Z;if(Z.charCodeAt(0)===60)return Z;if(/^\w+:\/\//.test(Z))return Z;let J=this.memoizedPaths.get(Z);if(J)return J;let Y=this.opts.to?a1(this.opts.to):".";if(typeof this.mapOpts.annotation==="string")Y=a1(gX(Y,this.mapOpts.annotation));let Q=yX(Y,Z);return this.memoizedPaths.set(Z,Q),Q}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk((Z)=>{if(Z.source&&Z.source.input.map){let J=Z.source.input.map;if(!this.previousMaps.includes(J))this.previousMaps.push(J)}});else{let Z=new LQ(this.originalCSS,this.opts);if(Z.map)this.previousMaps.push(Z.map)}return this.previousMaps}setSourcesContent(){let Z={};if(this.root)this.root.walk((J)=>{if(J.source){let Y=J.source.input.from;if(Y&&!Z[Y]){Z[Y]=!0;let Q=this.usesFileUrls?this.toFileUrl(Y):this.toUrl(this.path(Y));this.map.setSourceContent(Q,J.source.input.css)}}});else if(this.css){let J=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(J,this.css)}}sourcePath(Z){if(this.mapOpts.from)return this.toUrl(this.mapOpts.from);else if(this.usesFileUrls)return this.toFileUrl(Z.source.input.from);else return this.toUrl(this.path(Z.source.input.from))}toBase64(Z){if(Buffer)return Buffer.from(Z).toString("base64");else return window.btoa(unescape(encodeURIComponent(Z)))}toFileUrl(Z){let J=this.memoizedFileURLs.get(Z);if(J)return J;if(mJ){let Y=mJ(Z).toString();return this.memoizedFileURLs.set(Z,Y),Y}else throw Error("`map.absolute` option is not available in this PostCSS build")}toUrl(Z){let J=this.memoizedURLs.get(Z);if(J)return J;if(mX==="\\")Z=Z.replace(/\\/g,"/");let Y=encodeURI(Z).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(Z,Y),Y}},uX=FQ,AQ=L9,KZ=class extends AQ{constructor(Z){super(Z);this.type="comment"}},F9=KZ;KZ.default=KZ;var{isClean:cX,my:pX}=L1,lX=P9,dX=F9,OQ=L9,iX,kZ,vZ,sX;function aX(X){return X.map((Z)=>{if(Z.nodes)Z.nodes=aX(Z.nodes);return delete Z.source,Z})}function rX(X){if(X[cX]=!1,X.proxyOf.nodes)for(let Z of X.proxyOf.nodes)rX(Z)}var W0=class X extends OQ{append(...Z){for(let J of Z){let Y=this.normalize(J,this.last);for(let Q of Y)this.proxyOf.nodes.push(Q)}return this.markDirty(),this}cleanRaws(Z){if(super.cleanRaws(Z),this.nodes)for(let J of this.nodes)J.cleanRaws(Z)}each(Z){if(!this.proxyOf.nodes)return;let J=this.getIterator(),Y,Q;while(this.indexes[J]<this.proxyOf.nodes.length){if(Y=this.indexes[J],Q=Z(this.proxyOf.nodes[Y],Y),Q===!1)break;this.indexes[J]+=1}return delete this.indexes[J],Q}every(Z){return this.nodes.every(Z)}getIterator(){if(!this.lastEach)this.lastEach=0;if(!this.indexes)this.indexes={};this.lastEach+=1;let Z=this.lastEach;return this.indexes[Z]=0,Z}getProxyProcessor(){return{get(Z,J){if(J==="proxyOf")return Z;else if(!Z[J])return Z[J];else if(J==="each"||typeof J==="string"&&J.startsWith("walk"))return(...Y)=>{return Z[J](...Y.map((Q)=>{if(typeof Q==="function")return(K,q)=>Q(K.toProxy(),q);else return Q}))};else if(J==="every"||J==="some")return(Y)=>{return Z[J]((Q,...K)=>Y(Q.toProxy(),...K))};else if(J==="root")return()=>Z.root().toProxy();else if(J==="nodes")return Z.nodes.map((Y)=>Y.toProxy());else if(J==="first"||J==="last")return Z[J].toProxy();else return Z[J]},set(Z,J,Y){if(Z[J]===Y)return!0;if(Z[J]=Y,J==="name"||J==="params"||J==="selector")Z.markDirty();return!0}}}index(Z){if(typeof Z==="number")return Z;if(Z.proxyOf)Z=Z.proxyOf;return this.proxyOf.nodes.indexOf(Z)}insertAfter(Z,J){let Y=this.index(Z),Q=this.normalize(J,this.proxyOf.nodes[Y]).reverse();Y=this.index(Z);for(let q of Q)this.proxyOf.nodes.splice(Y+1,0,q);let K;for(let q in this.indexes)if(K=this.indexes[q],Y<K)this.indexes[q]=K+Q.length;return this.markDirty(),this}insertBefore(Z,J){let Y=this.index(Z),Q=Y===0?"prepend":!1,K=this.normalize(J,this.proxyOf.nodes[Y],Q).reverse();Y=this.index(Z);for(let V of K)this.proxyOf.nodes.splice(Y,0,V);let q;for(let V in this.indexes)if(q=this.indexes[V],Y<=q)this.indexes[V]=q+K.length;return this.markDirty(),this}normalize(Z,J){if(typeof Z==="string")Z=aX(iX(Z).nodes);else if(typeof Z>"u")Z=[];else if(Array.isArray(Z)){Z=Z.slice(0);for(let Q of Z)if(Q.parent)Q.parent.removeChild(Q,"ignore")}else if(Z.type==="root"&&this.type!=="document"){Z=Z.nodes.slice(0);for(let Q of Z)if(Q.parent)Q.parent.removeChild(Q,"ignore")}else if(Z.type)Z=[Z];else if(Z.prop){if(typeof Z.value>"u")throw Error("Value field is missed in node creation");else if(typeof Z.value!=="string")Z.value=String(Z.value);Z=[new lX(Z)]}else if(Z.selector)Z=[new kZ(Z)];else if(Z.name)Z=[new vZ(Z)];else if(Z.text)Z=[new dX(Z)];else throw Error("Unknown node type in node creation");return Z.map((Q)=>{if(!Q[pX])X.rebuild(Q);if(Q=Q.proxyOf,Q.parent)Q.parent.removeChild(Q);if(Q[cX])rX(Q);if(typeof Q.raws.before>"u"){if(J&&typeof J.raws.before<"u")Q.raws.before=J.raws.before.replace(/\S/g,"")}return Q.parent=this.proxyOf,Q})}prepend(...Z){Z=Z.reverse();for(let J of Z){let Y=this.normalize(J,this.first,"prepend").reverse();for(let Q of Y)this.proxyOf.nodes.unshift(Q);for(let Q in this.indexes)this.indexes[Q]=this.indexes[Q]+Y.length}return this.markDirty(),this}push(Z){return Z.parent=this,this.proxyOf.nodes.push(Z),this}removeAll(){for(let Z of this.proxyOf.nodes)Z.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(Z){Z=this.index(Z),this.proxyOf.nodes[Z].parent=void 0,this.proxyOf.nodes.splice(Z,1);let J;for(let Y in this.indexes)if(J=this.indexes[Y],J>=Z)this.indexes[Y]=J-1;return this.markDirty(),this}replaceValues(Z,J,Y){if(!Y)Y=J,J={};return this.walkDecls((Q)=>{if(J.props&&!J.props.includes(Q.prop))return;if(J.fast&&!Q.value.includes(J.fast))return;Q.value=Q.value.replace(Z,Y)}),this.markDirty(),this}some(Z){return this.nodes.some(Z)}walk(Z){return this.each((J,Y)=>{let Q;try{Q=Z(J,Y)}catch(K){throw J.addToError(K)}if(Q!==!1&&J.walk)Q=J.walk(Z);return Q})}walkAtRules(Z,J){if(!J)return J=Z,this.walk((Y,Q)=>{if(Y.type==="atrule")return J(Y,Q)});if(Z instanceof RegExp)return this.walk((Y,Q)=>{if(Y.type==="atrule"&&Z.test(Y.name))return J(Y,Q)});return this.walk((Y,Q)=>{if(Y.type==="atrule"&&Y.name===Z)return J(Y,Q)})}walkComments(Z){return this.walk((J,Y)=>{if(J.type==="comment")return Z(J,Y)})}walkDecls(Z,J){if(!J)return J=Z,this.walk((Y,Q)=>{if(Y.type==="decl")return J(Y,Q)});if(Z instanceof RegExp)return this.walk((Y,Q)=>{if(Y.type==="decl"&&Z.test(Y.prop))return J(Y,Q)});return this.walk((Y,Q)=>{if(Y.type==="decl"&&Y.prop===Z)return J(Y,Q)})}walkRules(Z,J){if(!J)return J=Z,this.walk((Y,Q)=>{if(Y.type==="rule")return J(Y,Q)});if(Z instanceof RegExp)return this.walk((Y,Q)=>{if(Y.type==="rule"&&Z.test(Y.selector))return J(Y,Q)});return this.walk((Y,Q)=>{if(Y.type==="rule"&&Y.selector===Z)return J(Y,Q)})}get first(){if(!this.proxyOf.nodes)return;return this.proxyOf.nodes[0]}get last(){if(!this.proxyOf.nodes)return;return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}};W0.registerParse=(X)=>{iX=X};W0.registerRule=(X)=>{kZ=X};W0.registerAtRule=(X)=>{vZ=X};W0.registerRoot=(X)=>{sX=X};var _0=W0;W0.default=W0;W0.rebuild=(X)=>{if(X.type==="atrule")Object.setPrototypeOf(X,vZ.prototype);else if(X.type==="rule")Object.setPrototypeOf(X,kZ.prototype);else if(X.type==="decl")Object.setPrototypeOf(X,lX.prototype);else if(X.type==="comment")Object.setPrototypeOf(X,dX.prototype);else if(X.type==="root")Object.setPrototypeOf(X,sX.prototype);if(X[pX]=!0,X.nodes)X.nodes.forEach((Z)=>{W0.rebuild(Z)})};var MQ=_0,oX,nX,q1=class extends MQ{constructor(Z){super({type:"document",...Z});if(!this.nodes)this.nodes=[]}toResult(Z={}){return new oX(new nX,this,Z).stringify()}};q1.registerLazyResult=(X)=>{oX=X};q1.registerProcessor=(X)=>{nX=X};var hZ=q1;q1.default=q1;var uJ={},tX=function(Z){if(uJ[Z])return;if(uJ[Z]=!0,typeof console<"u"&&console.warn)console.warn(Z)},qZ=class{constructor(Z,J={}){if(this.type="warning",this.text=Z,J.node&&J.node.source){let Y=J.node.rangeBy(J);this.line=Y.start.line,this.column=Y.start.column,this.endLine=Y.end.line,this.endColumn=Y.end.column}for(let Y in J)this[Y]=J[Y]}toString(){if(this.node)return this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message;if(this.plugin)return this.plugin+": "+this.text;return this.text}},eX=qZ;qZ.default=qZ;var wQ=eX,GZ=class{constructor(Z,J,Y){this.processor=Z,this.messages=[],this.root=J,this.opts=Y,this.css=void 0,this.map=void 0}toString(){return this.css}warn(Z,J={}){if(!J.plugin){if(this.lastPlugin&&this.lastPlugin.postcssPlugin)J.plugin=this.lastPlugin.postcssPlugin}let Y=new wQ(Z,J);return this.messages.push(Y),Y}warnings(){return this.messages.filter((Z)=>Z.type==="warning")}get content(){return this.css}},yZ=GZ;GZ.default=GZ;var m9=39,cJ=34,$1=92,pJ=47,N1=10,t0=32,T1=12,S1=9,f1=13,_Q=91,CQ=93,RQ=40,EQ=41,IQ=123,$Q=125,NQ=59,TQ=42,SQ=58,fQ=64,x1=/[\t\n\f\r "#'()/;[\\\]{}]/g,b1=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,xQ=/.[\r\n"'(/\\]/,lJ=/[\da-f]/i,bQ=function(Z,J={}){let Y=Z.css.valueOf(),Q=J.ignoreErrors,K,q,V,G,U,W,H,B,j,P,L=Y.length,z=0,O=[],A=[];function D(){return z}function M(v){throw Z.error("Unclosed "+v,z)}function T(){return A.length===0&&z>=L}function f(v){if(A.length)return A.pop();if(z>=L)return;let c=v?v.ignoreUnclosed:!1;switch(K=Y.charCodeAt(z),K){case N1:case t0:case S1:case f1:case T1:{q=z;do q+=1,K=Y.charCodeAt(q);while(K===t0||K===N1||K===S1||K===f1||K===T1);P=["space",Y.slice(z,q)],z=q-1;break}case _Q:case CQ:case IQ:case $Q:case SQ:case NQ:case EQ:{let i=String.fromCharCode(K);P=[i,i,z];break}case RQ:{if(B=O.length?O.pop()[1]:"",j=Y.charCodeAt(z+1),B==="url"&&j!==m9&&j!==cJ&&j!==t0&&j!==N1&&j!==S1&&j!==T1&&j!==f1){q=z;do{if(W=!1,q=Y.indexOf(")",q+1),q===-1)if(Q||c){q=z;break}else M("bracket");H=q;while(Y.charCodeAt(H-1)===$1)H-=1,W=!W}while(W);P=["brackets",Y.slice(z,q+1),z,q],z=q}else if(q=Y.indexOf(")",z+1),G=Y.slice(z,q+1),q===-1||xQ.test(G))P=["(","(",z];else P=["brackets",G,z,q],z=q;break}case m9:case cJ:{V=K===m9?"'":'"',q=z;do{if(W=!1,q=Y.indexOf(V,q+1),q===-1)if(Q||c){q=z+1;break}else M("string");H=q;while(Y.charCodeAt(H-1)===$1)H-=1,W=!W}while(W);P=["string",Y.slice(z,q+1),z,q],z=q;break}case fQ:{if(x1.lastIndex=z+1,x1.test(Y),x1.lastIndex===0)q=Y.length-1;else q=x1.lastIndex-2;P=["at-word",Y.slice(z,q+1),z,q],z=q;break}case $1:{q=z,U=!0;while(Y.charCodeAt(q+1)===$1)q+=1,U=!U;if(K=Y.charCodeAt(q+1),U&&K!==pJ&&K!==t0&&K!==N1&&K!==S1&&K!==f1&&K!==T1){if(q+=1,lJ.test(Y.charAt(q))){while(lJ.test(Y.charAt(q+1)))q+=1;if(Y.charCodeAt(q+1)===t0)q+=1}}P=["word",Y.slice(z,q+1),z,q],z=q;break}default:{if(K===pJ&&Y.charCodeAt(z+1)===TQ){if(q=Y.indexOf("*/",z+2)+1,q===0)if(Q||c)q=Y.length;else M("comment");P=["comment",Y.slice(z,q+1),z,q],z=q}else{if(b1.lastIndex=z+1,b1.test(Y),b1.lastIndex===0)q=Y.length-1;else q=b1.lastIndex-2;P=["word",Y.slice(z,q+1),z,q],O.push(P),z=q}break}}return z++,P}function p(v){A.push(v)}return{back:p,endOfFile:T,nextToken:f,position:D}},Z6=_0,Q9=class extends Z6{constructor(Z){super(Z);this.type="atrule"}append(...Z){if(!this.proxyOf.nodes)this.nodes=[];return super.append(...Z)}prepend(...Z){if(!this.proxyOf.nodes)this.nodes=[];return super.prepend(...Z)}},gZ=Q9;Q9.default=Q9;Z6.registerAtRule(Q9);var J6=_0,X6,Y6,y0=class extends J6{constructor(Z){super(Z);if(this.type="root",!this.nodes)this.nodes=[]}normalize(Z,J,Y){let Q=super.normalize(Z);if(J){if(Y==="prepend")if(this.nodes.length>1)J.raws.before=this.nodes[1].raws.before;else delete J.raws.before;else if(this.first!==J)for(let K of Q)K.raws.before=J.raws.before}return Q}removeChild(Z,J){let Y=this.index(Z);if(!J&&Y===0&&this.nodes.length>1)this.nodes[1].raws.before=this.nodes[Y].raws.before;return super.removeChild(Z)}toResult(Z={}){return new X6(new Y6,this,Z).stringify()}};y0.registerLazyResult=(X)=>{X6=X};y0.registerProcessor=(X)=>{Y6=X};var P1=y0;y0.default=y0;J6.registerRoot(y0);var G1={comma(X){return G1.split(X,[","],!0)},space(X){let Z=[" ",`
|
|
24
|
+
`,"\t"];return G1.split(X,Z)},split(X,Z,J){let Y=[],Q="",K=!1,q=0,V=!1,G="",U=!1;for(let W of X){if(U)U=!1;else if(W==="\\")U=!0;else if(V){if(W===G)V=!1}else if(W==='"'||W==="'")V=!0,G=W;else if(W==="(")q+=1;else if(W===")"){if(q>0)q-=1}else if(q===0){if(Z.includes(W))K=!0}if(K){if(Q!=="")Y.push(Q.trim());Q="",K=!1}else Q+=W}if(J||Q!=="")Y.push(Q.trim());return Y}},Q6=G1;G1.default=G1;var K6=_0,kQ=Q6,K9=class extends K6{constructor(Z){super(Z);if(this.type="rule",!this.nodes)this.nodes=[]}get selectors(){return kQ.comma(this.selector)}set selectors(Z){let J=this.selector?this.selector.match(/,\s*/):null,Y=J?J[0]:","+this.raw("between","beforeOpen");this.selector=Z.join(Y)}},mZ=K9;K9.default=K9;K6.registerRule(K9);var vQ=P9,hQ=bQ,yQ=F9,gQ=gZ,mQ=P1,dJ=mZ,iJ={empty:!0,space:!0};function uQ(X){for(let Z=X.length-1;Z>=0;Z--){let J=X[Z],Y=J[3]||J[2];if(Y)return Y}}var cQ=class{constructor(Z){this.input=Z,this.root=new mQ,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:Z,start:{column:1,line:1,offset:0}}}atrule(Z){let J=new gQ;if(J.name=Z[1].slice(1),J.name==="")this.unnamedAtrule(J,Z);this.init(J,Z[2]);let Y,Q,K,q=!1,V=!1,G=[],U=[];while(!this.tokenizer.endOfFile()){if(Z=this.tokenizer.nextToken(),Y=Z[0],Y==="("||Y==="[")U.push(Y==="("?")":"]");else if(Y==="{"&&U.length>0)U.push("}");else if(Y===U[U.length-1])U.pop();if(U.length===0)if(Y===";"){J.source.end=this.getPosition(Z[2]),J.source.end.offset++,this.semicolon=!0;break}else if(Y==="{"){V=!0;break}else if(Y==="}"){if(G.length>0){K=G.length-1,Q=G[K];while(Q&&Q[0]==="space")Q=G[--K];if(Q)J.source.end=this.getPosition(Q[3]||Q[2]),J.source.end.offset++}this.end(Z);break}else G.push(Z);else G.push(Z);if(this.tokenizer.endOfFile()){q=!0;break}}if(J.raws.between=this.spacesAndCommentsFromEnd(G),G.length){if(J.raws.afterName=this.spacesAndCommentsFromStart(G),this.raw(J,"params",G),q)Z=G[G.length-1],J.source.end=this.getPosition(Z[3]||Z[2]),J.source.end.offset++,this.spaces=J.raws.between,J.raws.between=""}else J.raws.afterName="",J.params="";if(V)J.nodes=[],this.current=J}checkMissedSemicolon(Z){let J=this.colon(Z);if(J===!1)return;let Y=0,Q;for(let K=J-1;K>=0;K--)if(Q=Z[K],Q[0]!=="space"){if(Y+=1,Y===2)break}throw this.input.error("Missed semicolon",Q[0]==="word"?Q[3]+1:Q[2])}colon(Z){let J=0,Y,Q,K;for(let[q,V]of Z.entries()){if(Y=V,Q=Y[0],Q==="(")J+=1;if(Q===")")J-=1;if(J===0&&Q===":")if(!K)this.doubleColon(Y);else if(K[0]==="word"&&K[1]==="progid")continue;else return q;K=Y}return!1}comment(Z){let J=new yQ;this.init(J,Z[2]),J.source.end=this.getPosition(Z[3]||Z[2]),J.source.end.offset++;let Y=Z[1].slice(2,-2);if(/^\s*$/.test(Y))J.text="",J.raws.left=Y,J.raws.right="";else{let Q=Y.match(/^(\s*)([^]*\S)(\s*)$/);J.text=Q[2],J.raws.left=Q[1],J.raws.right=Q[3]}}createTokenizer(){this.tokenizer=hQ(this.input)}decl(Z,J){let Y=new vQ;this.init(Y,Z[0][2]);let Q=Z[Z.length-1];if(Q[0]===";")this.semicolon=!0,Z.pop();Y.source.end=this.getPosition(Q[3]||Q[2]||uQ(Z)),Y.source.end.offset++;while(Z[0][0]!=="word"){if(Z.length===1)this.unknownWord(Z);Y.raws.before+=Z.shift()[1]}Y.source.start=this.getPosition(Z[0][2]),Y.prop="";while(Z.length){let U=Z[0][0];if(U===":"||U==="space"||U==="comment")break;Y.prop+=Z.shift()[1]}Y.raws.between="";let K;while(Z.length)if(K=Z.shift(),K[0]===":"){Y.raws.between+=K[1];break}else{if(K[0]==="word"&&/\w/.test(K[1]))this.unknownWord([K]);Y.raws.between+=K[1]}if(Y.prop[0]==="_"||Y.prop[0]==="*")Y.raws.before+=Y.prop[0],Y.prop=Y.prop.slice(1);let q=[],V;while(Z.length){if(V=Z[0][0],V!=="space"&&V!=="comment")break;q.push(Z.shift())}this.precheckMissedSemicolon(Z);for(let U=Z.length-1;U>=0;U--){if(K=Z[U],K[1].toLowerCase()==="!important"){Y.important=!0;let W=this.stringFrom(Z,U);if(W=this.spacesFromEnd(Z)+W,W!==" !important")Y.raws.important=W;break}else if(K[1].toLowerCase()==="important"){let W=Z.slice(0),H="";for(let B=U;B>0;B--){let j=W[B][0];if(H.trim().indexOf("!")===0&&j!=="space")break;H=W.pop()[1]+H}if(H.trim().indexOf("!")===0)Y.important=!0,Y.raws.important=H,Z=W}if(K[0]!=="space"&&K[0]!=="comment")break}if(Z.some((U)=>U[0]!=="space"&&U[0]!=="comment"))Y.raws.between+=q.map((U)=>U[1]).join(""),q=[];if(this.raw(Y,"value",q.concat(Z),J),Y.value.includes(":")&&!J)this.checkMissedSemicolon(Z)}doubleColon(Z){throw this.input.error("Double colon",{offset:Z[2]},{offset:Z[2]+Z[1].length})}emptyRule(Z){let J=new dJ;this.init(J,Z[2]),J.selector="",J.raws.between="",this.current=J}end(Z){if(this.current.nodes&&this.current.nodes.length)this.current.raws.semicolon=this.semicolon;if(this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent)this.current.source.end=this.getPosition(Z[2]),this.current.source.end.offset++,this.current=this.current.parent;else this.unexpectedClose(Z)}endFile(){if(this.current.parent)this.unclosedBlock();if(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(Z){if(this.spaces+=Z[1],this.current.nodes){let J=this.current.nodes[this.current.nodes.length-1];if(J&&J.type==="rule"&&!J.raws.ownSemicolon)J.raws.ownSemicolon=this.spaces,this.spaces=""}}getPosition(Z){let J=this.input.fromOffset(Z);return{column:J.col,line:J.line,offset:Z}}init(Z,J){if(this.current.push(Z),Z.source={input:this.input,start:this.getPosition(J)},Z.raws.before=this.spaces,this.spaces="",Z.type!=="comment")this.semicolon=!1}other(Z){let J=!1,Y=null,Q=!1,K=null,q=[],V=Z[1].startsWith("--"),G=[],U=Z;while(U){if(Y=U[0],G.push(U),Y==="("||Y==="["){if(!K)K=U;q.push(Y==="("?")":"]")}else if(V&&Q&&Y==="{"){if(!K)K=U;q.push("}")}else if(q.length===0){if(Y===";")if(Q){this.decl(G,V);return}else break;else if(Y==="{"){this.rule(G);return}else if(Y==="}"){this.tokenizer.back(G.pop()),J=!0;break}else if(Y===":")Q=!0}else if(Y===q[q.length-1]){if(q.pop(),q.length===0)K=null}U=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile())J=!0;if(q.length>0)this.unclosedBracket(K);if(J&&Q){if(!V)while(G.length){if(U=G[G.length-1][0],U!=="space"&&U!=="comment")break;this.tokenizer.back(G.pop())}this.decl(G,V)}else this.unknownWord(G)}parse(){let Z;while(!this.tokenizer.endOfFile())switch(Z=this.tokenizer.nextToken(),Z[0]){case"space":this.spaces+=Z[1];break;case";":this.freeSemicolon(Z);break;case"}":this.end(Z);break;case"comment":this.comment(Z);break;case"at-word":this.atrule(Z);break;case"{":this.emptyRule(Z);break;default:this.other(Z);break}this.endFile()}precheckMissedSemicolon(){}raw(Z,J,Y,Q){let K,q,V=Y.length,G="",U=!0,W,H;for(let B=0;B<V;B+=1)if(K=Y[B],q=K[0],q==="space"&&B===V-1&&!Q)U=!1;else if(q==="comment")if(H=Y[B-1]?Y[B-1][0]:"empty",W=Y[B+1]?Y[B+1][0]:"empty",!iJ[H]&&!iJ[W])if(G.slice(-1)===",")U=!1;else G+=K[1];else U=!1;else G+=K[1];if(!U){let B=Y.reduce((j,P)=>j+P[1],"");Z.raws[J]={raw:B,value:G}}Z[J]=G}rule(Z){Z.pop();let J=new dJ;this.init(J,Z[0][2]),J.raws.between=this.spacesAndCommentsFromEnd(Z),this.raw(J,"selector",Z),this.current=J}spacesAndCommentsFromEnd(Z){let J,Y="";while(Z.length){if(J=Z[Z.length-1][0],J!=="space"&&J!=="comment")break;Y=Z.pop()[1]+Y}return Y}spacesAndCommentsFromStart(Z){let J,Y="";while(Z.length){if(J=Z[0][0],J!=="space"&&J!=="comment")break;Y+=Z.shift()[1]}return Y}spacesFromEnd(Z){let J,Y="";while(Z.length){if(J=Z[Z.length-1][0],J!=="space")break;Y=Z.pop()[1]+Y}return Y}stringFrom(Z,J){let Y="";for(let Q=J;Q<Z.length;Q++)Y+=Z[Q][1];return Z.splice(J,Z.length-J),Y}unclosedBlock(){let Z=this.current.source.start;throw this.input.error("Unclosed block",Z.line,Z.column)}unclosedBracket(Z){throw this.input.error("Unclosed bracket",{offset:Z[2]},{offset:Z[2]+1})}unexpectedClose(Z){throw this.input.error("Unexpected }",{offset:Z[2]},{offset:Z[2]+1})}unknownWord(Z){throw this.input.error("Unknown word",{offset:Z[0][2]},{offset:Z[0][2]+Z[0][1].length})}unnamedAtrule(Z,J){throw this.input.error("At-rule without name",{offset:J[2]},{offset:J[2]+J[1].length})}},pQ=cQ,lQ=_0,dQ=pQ,iQ=D9;function q9(X,Z){let J=new iQ(X,Z),Y=new dQ(J);try{Y.parse()}catch(Q){if(Q.name==="CssSyntaxError"&&Z&&Z.from){if(/\.scss$/i.test(Z.from))Q.message+=`
|
|
25
|
+
You tried to parse SCSS with the standard CSS parser; try again with the postcss-scss parser`;else if(/\.sass/i.test(Z.from))Q.message+=`
|
|
26
|
+
You tried to parse Sass with the standard CSS parser; try again with the postcss-sass parser`;else if(/\.less$/i.test(Z.from))Q.message+=`
|
|
27
|
+
You tried to parse Less with the standard CSS parser; try again with the postcss-less parser`}throw Q}return Y.root}var uZ=q9;q9.default=q9;lQ.registerParse(q9);var{isClean:G0,my:sQ}=L1,aQ=uX,rQ=j9,oQ=_0,nQ=hZ,tQ=tX,sJ=yZ,eQ=uZ,Z7=P1,J7={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},X7={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},Y7={Once:!0,postcssPlugin:!0,prepare:!0},g0=0;function e0(X){return typeof X==="object"&&typeof X.then==="function"}function q6(X){let Z=!1,J=J7[X.type];if(X.type==="decl")Z=X.prop.toLowerCase();else if(X.type==="atrule")Z=X.name.toLowerCase();if(Z&&X.append)return[J,J+"-"+Z,g0,J+"Exit",J+"Exit-"+Z];else if(Z)return[J,J+"-"+Z,J+"Exit",J+"Exit-"+Z];else if(X.append)return[J,g0,J+"Exit"];else return[J,J+"Exit"]}function aJ(X){let Z;if(X.type==="document")Z=["Document",g0,"DocumentExit"];else if(X.type==="root")Z=["Root",g0,"RootExit"];else Z=q6(X);return{eventIndex:0,events:Z,iterator:0,node:X,visitorIndex:0,visitors:[]}}function VZ(X){if(X[G0]=!1,X.nodes)X.nodes.forEach((Z)=>VZ(Z));return X}var UZ={},m0=class X{constructor(Z,J,Y){this.stringified=!1,this.processed=!1;let Q;if(typeof J==="object"&&J!==null&&(J.type==="root"||J.type==="document"))Q=VZ(J);else if(J instanceof X||J instanceof sJ){if(Q=VZ(J.root),J.map){if(typeof Y.map>"u")Y.map={};if(!Y.map.inline)Y.map.inline=!1;Y.map.prev=J.map}}else{let K=eQ;if(Y.syntax)K=Y.syntax.parse;if(Y.parser)K=Y.parser;if(K.parse)K=K.parse;try{Q=K(J,Y)}catch(q){this.processed=!0,this.error=q}if(Q&&!Q[sQ])oQ.rebuild(Q)}this.result=new sJ(Z,Q,Y),this.helpers={...UZ,postcss:UZ,result:this.result},this.plugins=this.processor.plugins.map((K)=>{if(typeof K==="object"&&K.prepare)return{...K,...K.prepare(this.result)};else return K})}async(){if(this.error)return Promise.reject(this.error);if(this.processed)return Promise.resolve(this.result);if(!this.processing)this.processing=this.runAsync();return this.processing}catch(Z){return this.async().catch(Z)}finally(Z){return this.async().then(Z,Z)}getAsyncError(){throw Error("Use process(css).then(cb) to work with async plugins")}handleError(Z,J){let Y=this.result.lastPlugin;try{if(J)J.addToError(Z);if(this.error=Z,Z.name==="CssSyntaxError"&&!Z.plugin)Z.plugin=Y.postcssPlugin,Z.setMessage();else if(Y.postcssVersion){let{postcssPlugin:Q,postcssVersion:K}=Y,q=this.result.processor.version,V=K.split("."),G=q.split(".");if(V[0]!==G[0]||parseInt(V[1])>parseInt(G[1]))console.error("Unknown error from PostCSS plugin. Your current PostCSS version is "+q+", but "+Q+" uses "+K+". Perhaps this is the source of the error below.")}}catch(Q){if(console&&console.error)console.error(Q)}return Z}prepareVisitors(){this.listeners={};let Z=(J,Y,Q)=>{if(!this.listeners[Y])this.listeners[Y]=[];this.listeners[Y].push([J,Q])};for(let J of this.plugins)if(typeof J==="object")for(let Y in J){if(!X7[Y]&&/^[A-Z]/.test(Y))throw Error(`Unknown event ${Y} in ${J.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!Y7[Y]){if(typeof J[Y]==="object")for(let Q in J[Y])if(Q==="*")Z(J,Y,J[Y][Q]);else Z(J,Y+"-"+Q.toLowerCase(),J[Y][Q]);else if(typeof J[Y]==="function")Z(J,Y,J[Y])}}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let Z=0;Z<this.plugins.length;Z++){let J=this.plugins[Z],Y=this.runOnRoot(J);if(e0(Y))try{await Y}catch(Q){throw this.handleError(Q)}}if(this.prepareVisitors(),this.hasListener){let Z=this.result.root;while(!Z[G0]){Z[G0]=!0;let J=[aJ(Z)];while(J.length>0){let Y=this.visitTick(J);if(e0(Y))try{await Y}catch(Q){let K=J[J.length-1].node;throw this.handleError(Q,K)}}}if(this.listeners.OnceExit)for(let[J,Y]of this.listeners.OnceExit){this.result.lastPlugin=J;try{if(Z.type==="document"){let Q=Z.nodes.map((K)=>Y(K,this.helpers));await Promise.all(Q)}else await Y(Z,this.helpers)}catch(Q){throw this.handleError(Q)}}}return this.processed=!0,this.stringify()}runOnRoot(Z){this.result.lastPlugin=Z;try{if(typeof Z==="object"&&Z.Once){if(this.result.root.type==="document"){let J=this.result.root.nodes.map((Y)=>Z.Once(Y,this.helpers));if(e0(J[0]))return Promise.all(J);return J}return Z.Once(this.result.root,this.helpers)}else if(typeof Z==="function")return Z(this.result.root,this.result)}catch(J){throw this.handleError(J)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let Z=this.result.opts,J=rQ;if(Z.syntax)J=Z.syntax.stringify;if(Z.stringifier)J=Z.stringifier;if(J.stringify)J=J.stringify;let Q=new aQ(J,this.result.root,this.result.opts).generate();return this.result.css=Q[0],this.result.map=Q[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 Z of this.plugins){let J=this.runOnRoot(Z);if(e0(J))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let Z=this.result.root;while(!Z[G0])Z[G0]=!0,this.walkSync(Z);if(this.listeners.OnceExit)if(Z.type==="document")for(let J of Z.nodes)this.visitSync(this.listeners.OnceExit,J);else this.visitSync(this.listeners.OnceExit,Z)}return this.result}then(Z,J){if(!("from"in this.opts))tQ("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.");return this.async().then(Z,J)}toString(){return this.css}visitSync(Z,J){for(let[Y,Q]of Z){this.result.lastPlugin=Y;let K;try{K=Q(J,this.helpers)}catch(q){throw this.handleError(q,J.proxyOf)}if(J.type!=="root"&&J.type!=="document"&&!J.parent)return!0;if(e0(K))throw this.getAsyncError()}}visitTick(Z){let J=Z[Z.length-1],{node:Y,visitors:Q}=J;if(Y.type!=="root"&&Y.type!=="document"&&!Y.parent){Z.pop();return}if(Q.length>0&&J.visitorIndex<Q.length){let[q,V]=Q[J.visitorIndex];if(J.visitorIndex+=1,J.visitorIndex===Q.length)J.visitors=[],J.visitorIndex=0;this.result.lastPlugin=q;try{return V(Y.toProxy(),this.helpers)}catch(G){throw this.handleError(G,Y)}}if(J.iterator!==0){let q=J.iterator,V;while(V=Y.nodes[Y.indexes[q]])if(Y.indexes[q]+=1,!V[G0]){V[G0]=!0,Z.push(aJ(V));return}J.iterator=0,delete Y.indexes[q]}let K=J.events;while(J.eventIndex<K.length){let q=K[J.eventIndex];if(J.eventIndex+=1,q===g0){if(Y.nodes&&Y.nodes.length)Y[G0]=!0,J.iterator=Y.getIterator();return}else if(this.listeners[q]){J.visitors=this.listeners[q];return}}Z.pop()}walkSync(Z){Z[G0]=!0;let J=q6(Z);for(let Y of J)if(Y===g0){if(Z.nodes)Z.each((Q)=>{if(!Q[G0])this.walkSync(Q)})}else{let Q=this.listeners[Y];if(Q){if(this.visitSync(Q,Z.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"}};m0.registerPostcss=(X)=>{UZ=X};var G6=m0;m0.default=m0;Z7.registerLazyResult(m0);nQ.registerLazyResult(m0);var Q7=uX,K7=j9,q7=tX,G7=uZ,V7=yZ,WZ=class{constructor(Z,J,Y){J=J.toString(),this.stringified=!1,this._processor=Z,this._css=J,this._opts=Y,this._map=void 0;let Q,K=K7;this.result=new V7(this._processor,Q,this._opts),this.result.css=J;let q=this;Object.defineProperty(this.result,"root",{get(){return q.root}});let V=new Q7(K,Q,this._opts,J);if(V.isMap()){let[G,U]=V.generate();if(G)this.result.css=G;if(U)this.result.map=U}else V.clearAnnotation(),this.result.css=V.css}async(){if(this.error)return Promise.reject(this.error);return Promise.resolve(this.result)}catch(Z){return this.async().catch(Z)}finally(Z){return this.async().then(Z,Z)}sync(){if(this.error)throw this.error;return this.result}then(Z,J){if(!("from"in this._opts))q7("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.");return this.async().then(Z,J)}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 Z,J=G7;try{Z=J(this._css,this._opts)}catch(Y){this.error=Y}if(this.error)throw this.error;else return this._root=Z,Z}get[Symbol.toStringTag](){return"NoWorkResult"}},U7=WZ;WZ.default=WZ;var W7=U7,H7=G6,z7=hZ,B7=P1,V1=class{constructor(Z=[]){this.version="8.4.38",this.plugins=this.normalize(Z)}normalize(Z){let J=[];for(let Y of Z){if(Y.postcss===!0)Y=Y();else if(Y.postcss)Y=Y.postcss;if(typeof Y==="object"&&Array.isArray(Y.plugins))J=J.concat(Y.plugins);else if(typeof Y==="object"&&Y.postcssPlugin)J.push(Y);else if(typeof Y==="function")J.push(Y);else if(typeof Y==="object"&&(Y.parse||Y.stringify))throw Error("PostCSS syntaxes cannot be used as plugins. Instead, please use one of the syntax/parser/stringifier options as outlined in your PostCSS runner documentation.");else throw Error(Y+" is not a PostCSS plugin")}return J}process(Z,J={}){if(!this.plugins.length&&!J.parser&&!J.stringifier&&!J.syntax)return new W7(this,Z,J);else return new H7(this,Z,J)}use(Z){return this.plugins=this.plugins.concat(this.normalize([Z])),this}},j7=V1;V1.default=V1;B7.registerProcessor(V1);z7.registerProcessor(V1);var L7=P9,P7=vX,D7=F9,F7=gZ,A7=D9,O7=P1,M7=mZ;function U1(X,Z){if(Array.isArray(X))return X.map((Q)=>U1(Q));let{inputs:J,...Y}=X;if(J){Z=[];for(let Q of J){let K={...Q,__proto__:A7.prototype};if(K.map)K.map={...K.map,__proto__:P7.prototype};Z.push(K)}}if(Y.nodes)Y.nodes=X.nodes.map((Q)=>U1(Q,Z));if(Y.source){let{inputId:Q,...K}=Y.source;if(Y.source=K,Q!=null)Y.source.input=Z[Q]}if(Y.type==="root")return new O7(Y);else if(Y.type==="decl")return new L7(Y);else if(Y.type==="rule")return new M7(Y);else if(Y.type==="comment")return new D7(Y);else if(Y.type==="atrule")return new F7(Y);else throw Error("Unknown node type: "+X.type)}var w7=U1;U1.default=U1;var _7=bZ,V6=P9,C7=G6,R7=_0,cZ=j7,E7=j9,I7=w7,U6=hZ,$7=eX,W6=F9,H6=gZ,N7=yZ,T7=D9,S7=uZ,f7=Q6,z6=mZ,B6=P1,x7=L9;function $(...X){if(X.length===1&&Array.isArray(X[0]))X=X[0];return new cZ(X)}$.plugin=function(Z,J){let Y=!1;function Q(...q){if(console&&console.warn&&!Y){if(Y=!0,console.warn(Z+`: postcss.plugin was deprecated. Migration guide:
|
|
28
|
+
https://evilmartians.com/chronicles/postcss-8-plugin-migration`),process.env.LANG&&process.env.LANG.startsWith("cn"))console.warn(Z+`: 里面 postcss.plugin 被弃用. 迁移指南:
|
|
29
|
+
https://www.w3ctech.com/topic/2226`)}let V=J(...q);return V.postcssPlugin=Z,V.postcssVersion=new cZ().version,V}let K;return Object.defineProperty(Q,"postcss",{get(){if(!K)K=Q();return K}}),Q.process=function(q,V,G){return $([Q(G)]).process(q,V)},Q};$.stringify=E7;$.parse=S7;$.fromJSON=I7;$.list=f7;$.comment=(X)=>new W6(X);$.atRule=(X)=>new H6(X);$.decl=(X)=>new V6(X);$.rule=(X)=>new z6(X);$.root=(X)=>new B6(X);$.document=(X)=>new U6(X);$.CssSyntaxError=_7;$.Declaration=V6;$.Container=R7;$.Processor=cZ;$.Document=U6;$.Comment=W6;$.Warning=$7;$.AtRule=H6;$.Result=N7;$.Input=T7;$.Rule=z6;$.Root=B6;$.Node=x7;C7.registerPostcss($);var b7=$;$.default=$;var h=lY(b7);h.stringify;h.fromJSON;h.plugin;h.parse;h.list;h.document;h.comment;h.atRule;h.rule;h.decl;h.root;h.CssSyntaxError;h.Declaration;h.Container;h.Processor;h.Document;h.Comment;h.Warning;h.AtRule;h.Result;h.Input;h.Rule;h.Root;h.Node;var k7=Object.defineProperty,v7=(X,Z,J)=>(Z in X)?k7(X,Z,{enumerable:!0,configurable:!0,writable:!0,value:J}):X[Z]=J,Z0=(X,Z,J)=>v7(X,typeof Z!=="symbol"?Z+"":Z,J);function h7(X){return X&&X.__esModule&&Object.prototype.hasOwnProperty.call(X,"default")?X.default:X}function y7(X){if(X.__esModule)return X;var Z=X.default;if(typeof Z=="function"){var J=function Y(){if(this instanceof Y)return Reflect.construct(Z,arguments,this.constructor);return Z.apply(this,arguments)};J.prototype=Z.prototype}else J={};return Object.defineProperty(J,"__esModule",{value:!0}),Object.keys(X).forEach(function(Y){var Q=Object.getOwnPropertyDescriptor(X,Y);Object.defineProperty(J,Y,Q.get?Q:{enumerable:!0,get:function(){return X[Y]}})}),J}var pZ={exports:{}},k=String,j6=function(){return{isColorSupported:!1,reset:k,bold:k,dim:k,italic:k,underline:k,inverse:k,hidden:k,strikethrough:k,black:k,red:k,green:k,yellow:k,blue:k,magenta:k,cyan:k,white:k,gray:k,bgBlack:k,bgRed:k,bgGreen:k,bgYellow:k,bgBlue:k,bgMagenta:k,bgCyan:k,bgWhite:k}};pZ.exports=j6();pZ.exports.createColors=j6;var g7=pZ.exports,m7={},u7=Object.freeze(Object.defineProperty({__proto__:null,default:m7},Symbol.toStringTag,{value:"Module"})),Q0=y7(u7),rJ=g7,oJ=Q0,HZ=class X extends Error{constructor(Z,J,Y,Q,K,q){super(Z);if(this.name="CssSyntaxError",this.reason=Z,K)this.file=K;if(Q)this.source=Q;if(q)this.plugin=q;if(typeof J<"u"&&typeof Y<"u")if(typeof J==="number")this.line=J,this.column=Y;else this.line=J.line,this.column=J.column,this.endLine=Y.line,this.endColumn=Y.column;if(this.setMessage(),Error.captureStackTrace)Error.captureStackTrace(this,X)}setMessage(){if(this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line<"u")this.message+=":"+this.line+":"+this.column;this.message+=": "+this.reason}showSourceCode(Z){if(!this.source)return"";let J=this.source;if(Z==null)Z=rJ.isColorSupported;if(oJ){if(Z)J=oJ(J)}let Y=J.split(/\r?\n/),Q=Math.max(this.line-3,0),K=Math.min(this.line+2,Y.length),q=String(K).length,V,G;if(Z){let{bold:U,gray:W,red:H}=rJ.createColors(!0);V=(B)=>U(H(B)),G=(B)=>W(B)}else V=G=(U)=>U;return Y.slice(Q,K).map((U,W)=>{let H=Q+1+W,B=" "+(" "+H).slice(-q)+" | ";if(H===this.line){let j=G(B.replace(/\d/g," "))+U.slice(0,this.column-1).replace(/[^\t]/g," ");return V(">")+G(B)+U+`
|
|
30
|
+
`+j+V("^")}return" "+G(B)+U}).join(`
|
|
31
|
+
`)}toString(){let Z=this.showSourceCode();if(Z)Z=`
|
|
32
|
+
|
|
33
|
+
`+Z+`
|
|
34
|
+
`;return this.name+": "+this.message+Z}},lZ=HZ;HZ.default=HZ;var D1={};D1.isClean=Symbol("isClean");D1.my=Symbol("my");var nJ={after:`
|
|
35
|
+
`,beforeClose:`
|
|
36
|
+
`,beforeComment:`
|
|
37
|
+
`,beforeDecl:`
|
|
38
|
+
`,beforeOpen:" ",beforeRule:`
|
|
39
|
+
`,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function c7(X){return X[0].toUpperCase()+X.slice(1)}var zZ=class{constructor(Z){this.builder=Z}atrule(Z,J){let Y="@"+Z.name,Q=Z.params?this.rawValue(Z,"params"):"";if(typeof Z.raws.afterName<"u")Y+=Z.raws.afterName;else if(Q)Y+=" ";if(Z.nodes)this.block(Z,Y+Q);else{let K=(Z.raws.between||"")+(J?";":"");this.builder(Y+Q+K,Z)}}beforeAfter(Z,J){let Y;if(Z.type==="decl")Y=this.raw(Z,null,"beforeDecl");else if(Z.type==="comment")Y=this.raw(Z,null,"beforeComment");else if(J==="before")Y=this.raw(Z,null,"beforeRule");else Y=this.raw(Z,null,"beforeClose");let Q=Z.parent,K=0;while(Q&&Q.type!=="root")K+=1,Q=Q.parent;if(Y.includes(`
|
|
40
|
+
`)){let q=this.raw(Z,null,"indent");if(q.length)for(let V=0;V<K;V++)Y+=q}return Y}block(Z,J){let Y=this.raw(Z,"between","beforeOpen");this.builder(J+Y+"{",Z,"start");let Q;if(Z.nodes&&Z.nodes.length)this.body(Z),Q=this.raw(Z,"after");else Q=this.raw(Z,"after","emptyBody");if(Q)this.builder(Q);this.builder("}",Z,"end")}body(Z){let J=Z.nodes.length-1;while(J>0){if(Z.nodes[J].type!=="comment")break;J-=1}let Y=this.raw(Z,"semicolon");for(let Q=0;Q<Z.nodes.length;Q++){let K=Z.nodes[Q],q=this.raw(K,"before");if(q)this.builder(q);this.stringify(K,J!==Q||Y)}}comment(Z){let J=this.raw(Z,"left","commentLeft"),Y=this.raw(Z,"right","commentRight");this.builder("/*"+J+Z.text+Y+"*/",Z)}decl(Z,J){let Y=this.raw(Z,"between","colon"),Q=Z.prop+Y+this.rawValue(Z,"value");if(Z.important)Q+=Z.raws.important||" !important";if(J)Q+=";";this.builder(Q,Z)}document(Z){this.body(Z)}raw(Z,J,Y){let Q;if(!Y)Y=J;if(J){if(Q=Z.raws[J],typeof Q<"u")return Q}let K=Z.parent;if(Y==="before"){if(!K||K.type==="root"&&K.first===Z)return"";if(K&&K.type==="document")return""}if(!K)return nJ[Y];let q=Z.root();if(!q.rawCache)q.rawCache={};if(typeof q.rawCache[Y]<"u")return q.rawCache[Y];if(Y==="before"||Y==="after")return this.beforeAfter(Z,Y);else{let V="raw"+c7(Y);if(this[V])Q=this[V](q,Z);else q.walk((G)=>{if(Q=G.raws[J],typeof Q<"u")return!1})}if(typeof Q>"u")Q=nJ[Y];return q.rawCache[Y]=Q,Q}rawBeforeClose(Z){let J;if(Z.walk((Y)=>{if(Y.nodes&&Y.nodes.length>0){if(typeof Y.raws.after<"u"){if(J=Y.raws.after,J.includes(`
|
|
41
|
+
`))J=J.replace(/[^\n]+$/,"");return!1}}}),J)J=J.replace(/\S/g,"");return J}rawBeforeComment(Z,J){let Y;if(Z.walkComments((Q)=>{if(typeof Q.raws.before<"u"){if(Y=Q.raws.before,Y.includes(`
|
|
42
|
+
`))Y=Y.replace(/[^\n]+$/,"");return!1}}),typeof Y>"u")Y=this.raw(J,null,"beforeDecl");else if(Y)Y=Y.replace(/\S/g,"");return Y}rawBeforeDecl(Z,J){let Y;if(Z.walkDecls((Q)=>{if(typeof Q.raws.before<"u"){if(Y=Q.raws.before,Y.includes(`
|
|
43
|
+
`))Y=Y.replace(/[^\n]+$/,"");return!1}}),typeof Y>"u")Y=this.raw(J,null,"beforeRule");else if(Y)Y=Y.replace(/\S/g,"");return Y}rawBeforeOpen(Z){let J;return Z.walk((Y)=>{if(Y.type!=="decl"){if(J=Y.raws.between,typeof J<"u")return!1}}),J}rawBeforeRule(Z){let J;if(Z.walk((Y)=>{if(Y.nodes&&(Y.parent!==Z||Z.first!==Y)){if(typeof Y.raws.before<"u"){if(J=Y.raws.before,J.includes(`
|
|
44
|
+
`))J=J.replace(/[^\n]+$/,"");return!1}}}),J)J=J.replace(/\S/g,"");return J}rawColon(Z){let J;return Z.walkDecls((Y)=>{if(typeof Y.raws.between<"u")return J=Y.raws.between.replace(/[^\s:]/g,""),!1}),J}rawEmptyBody(Z){let J;return Z.walk((Y)=>{if(Y.nodes&&Y.nodes.length===0){if(J=Y.raws.after,typeof J<"u")return!1}}),J}rawIndent(Z){if(Z.raws.indent)return Z.raws.indent;let J;return Z.walk((Y)=>{let Q=Y.parent;if(Q&&Q!==Z&&Q.parent&&Q.parent===Z){if(typeof Y.raws.before<"u"){let K=Y.raws.before.split(`
|
|
45
|
+
`);return J=K[K.length-1],J=J.replace(/\S/g,""),!1}}}),J}rawSemicolon(Z){let J;return Z.walk((Y)=>{if(Y.nodes&&Y.nodes.length&&Y.last.type==="decl"){if(J=Y.raws.semicolon,typeof J<"u")return!1}}),J}rawValue(Z,J){let Y=Z[J],Q=Z.raws[J];if(Q&&Q.value===Y)return Q.raw;return Y}root(Z){if(this.body(Z),Z.raws.after)this.builder(Z.raws.after)}rule(Z){if(this.block(Z,this.rawValue(Z,"selector")),Z.raws.ownSemicolon)this.builder(Z.raws.ownSemicolon,Z,"end")}stringify(Z,J){if(!this[Z.type])throw Error("Unknown AST node type "+Z.type+". Maybe you need to change PostCSS stringifier.");this[Z.type](Z,J)}},L6=zZ;zZ.default=zZ;var p7=L6;function BZ(X,Z){new p7(Z).stringify(X)}var A9=BZ;BZ.default=BZ;var{isClean:k1,my:l7}=D1,d7=lZ,i7=L6,s7=A9;function jZ(X,Z){let J=new X.constructor;for(let Y in X){if(!Object.prototype.hasOwnProperty.call(X,Y))continue;if(Y==="proxyCache")continue;let Q=X[Y],K=typeof Q;if(Y==="parent"&&K==="object"){if(Z)J[Y]=Z}else if(Y==="source")J[Y]=Q;else if(Array.isArray(Q))J[Y]=Q.map((q)=>jZ(q,J));else{if(K==="object"&&Q!==null)Q=jZ(Q);J[Y]=Q}}return J}var LZ=class{constructor(Z={}){this.raws={},this[k1]=!1,this[l7]=!0;for(let J in Z)if(J==="nodes"){this.nodes=[];for(let Y of Z[J])if(typeof Y.clone==="function")this.append(Y.clone());else this.append(Y)}else this[J]=Z[J]}addToError(Z){if(Z.postcssNode=this,Z.stack&&this.source&&/\n\s{4}at /.test(Z.stack)){let J=this.source;Z.stack=Z.stack.replace(/\n\s{4}at /,`$&${J.input.from}:${J.start.line}:${J.start.column}$&`)}return Z}after(Z){return this.parent.insertAfter(this,Z),this}assign(Z={}){for(let J in Z)this[J]=Z[J];return this}before(Z){return this.parent.insertBefore(this,Z),this}cleanRaws(Z){if(delete this.raws.before,delete this.raws.after,!Z)delete this.raws.between}clone(Z={}){let J=jZ(this);for(let Y in Z)J[Y]=Z[Y];return J}cloneAfter(Z={}){let J=this.clone(Z);return this.parent.insertAfter(this,J),J}cloneBefore(Z={}){let J=this.clone(Z);return this.parent.insertBefore(this,J),J}error(Z,J={}){if(this.source){let{end:Y,start:Q}=this.rangeBy(J);return this.source.input.error(Z,{column:Q.column,line:Q.line},{column:Y.column,line:Y.line},J)}return new d7(Z)}getProxyProcessor(){return{get(Z,J){if(J==="proxyOf")return Z;else if(J==="root")return()=>Z.root().toProxy();else return Z[J]},set(Z,J,Y){if(Z[J]===Y)return!0;if(Z[J]=Y,J==="prop"||J==="value"||J==="name"||J==="params"||J==="important"||J==="text")Z.markDirty();return!0}}}markDirty(){if(this[k1]){this[k1]=!1;let Z=this;while(Z=Z.parent)Z[k1]=!1}}next(){if(!this.parent)return;let Z=this.parent.index(this);return this.parent.nodes[Z+1]}positionBy(Z,J){let Y=this.source.start;if(Z.index)Y=this.positionInside(Z.index,J);else if(Z.word){J=this.toString();let Q=J.indexOf(Z.word);if(Q!==-1)Y=this.positionInside(Q,J)}return Y}positionInside(Z,J){let Y=J||this.toString(),Q=this.source.start.column,K=this.source.start.line;for(let q=0;q<Z;q++)if(Y[q]===`
|
|
46
|
+
`)Q=1,K+=1;else Q+=1;return{column:Q,line:K}}prev(){if(!this.parent)return;let Z=this.parent.index(this);return this.parent.nodes[Z-1]}rangeBy(Z){let J={column:this.source.start.column,line:this.source.start.line},Y=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:J.column+1,line:J.line};if(Z.word){let Q=this.toString(),K=Q.indexOf(Z.word);if(K!==-1)J=this.positionInside(K,Q),Y=this.positionInside(K+Z.word.length,Q)}else{if(Z.start)J={column:Z.start.column,line:Z.start.line};else if(Z.index)J=this.positionInside(Z.index);if(Z.end)Y={column:Z.end.column,line:Z.end.line};else if(typeof Z.endIndex==="number")Y=this.positionInside(Z.endIndex);else if(Z.index)Y=this.positionInside(Z.index+1)}if(Y.line<J.line||Y.line===J.line&&Y.column<=J.column)Y={column:J.column+1,line:J.line};return{end:Y,start:J}}raw(Z,J){return new i7().raw(this,Z,J)}remove(){if(this.parent)this.parent.removeChild(this);return this.parent=void 0,this}replaceWith(...Z){if(this.parent){let J=this,Y=!1;for(let Q of Z)if(Q===this)Y=!0;else if(Y)this.parent.insertAfter(J,Q),J=Q;else this.parent.insertBefore(J,Q);if(!Y)this.remove()}return this}root(){let Z=this;while(Z.parent&&Z.parent.type!=="document")Z=Z.parent;return Z}toJSON(Z,J){let Y={},Q=J==null;J=J||new Map;let K=0;for(let q in this){if(!Object.prototype.hasOwnProperty.call(this,q))continue;if(q==="parent"||q==="proxyCache")continue;let V=this[q];if(Array.isArray(V))Y[q]=V.map((G)=>{if(typeof G==="object"&&G.toJSON)return G.toJSON(null,J);else return G});else if(typeof V==="object"&&V.toJSON)Y[q]=V.toJSON(null,J);else if(q==="source"){let G=J.get(V.input);if(G==null)G=K,J.set(V.input,K),K++;Y[q]={end:V.end,inputId:G,start:V.start}}else Y[q]=V}if(Q)Y.inputs=[...J.keys()].map((q)=>q.toJSON());return Y}toProxy(){if(!this.proxyCache)this.proxyCache=new Proxy(this,this.getProxyProcessor());return this.proxyCache}toString(Z=s7){if(Z.stringify)Z=Z.stringify;let J="";return Z(this,(Y)=>{J+=Y}),J}warn(Z,J,Y){let Q={node:this};for(let K in Y)Q[K]=Y[K];return Z.warn(J,Q)}get proxyOf(){return this}},O9=LZ;LZ.default=LZ;var a7=O9,PZ=class extends a7{constructor(Z){if(Z&&typeof Z.value<"u"&&typeof Z.value!=="string")Z={...Z,value:String(Z.value)};super(Z);this.type="decl"}get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}},M9=PZ;PZ.default=PZ;var r7="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",o7=(X,Z=21)=>{return(J=Z)=>{let Y="",Q=J;while(Q--)Y+=X[Math.random()*X.length|0];return Y}},n7=(X=21)=>{let Z="",J=X;while(J--)Z+=r7[Math.random()*64|0];return Z},t7={nanoid:n7,customAlphabet:o7},{SourceMapConsumer:tJ,SourceMapGenerator:eJ}=Q0,{existsSync:e7,readFileSync:ZK}=Q0,{dirname:u9,join:JK}=Q0;function XK(X){if(Buffer)return Buffer.from(X,"base64").toString();else return window.atob(X)}var DZ=class{constructor(Z,J){if(J.map===!1)return;this.loadAnnotation(Z),this.inline=this.startWith(this.annotation,"data:");let Y=J.map?J.map.prev:void 0,Q=this.loadMap(J.from,Y);if(!this.mapFile&&J.from)this.mapFile=J.from;if(this.mapFile)this.root=u9(this.mapFile);if(Q)this.text=Q}consumer(){if(!this.consumerCache)this.consumerCache=new tJ(this.text);return this.consumerCache}decodeInline(Z){let J=/^data:application\/json;charset=utf-?8;base64,/,Y=/^data:application\/json;base64,/,Q=/^data:application\/json;charset=utf-?8,/,K=/^data:application\/json,/;if(Q.test(Z)||K.test(Z))return decodeURIComponent(Z.substr(RegExp.lastMatch.length));if(J.test(Z)||Y.test(Z))return XK(Z.substr(RegExp.lastMatch.length));let q=Z.match(/data:application\/json;([^,]+),/)[1];throw Error("Unsupported source map encoding "+q)}getAnnotationURL(Z){return Z.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(Z){if(typeof Z!=="object")return!1;return typeof Z.mappings==="string"||typeof Z._mappings==="string"||Array.isArray(Z.sections)}loadAnnotation(Z){let J=Z.match(/\/\*\s*# sourceMappingURL=/gm);if(!J)return;let Y=Z.lastIndexOf(J.pop()),Q=Z.indexOf("*/",Y);if(Y>-1&&Q>-1)this.annotation=this.getAnnotationURL(Z.substring(Y,Q))}loadFile(Z){if(this.root=u9(Z),e7(Z))return this.mapFile=Z,ZK(Z,"utf-8").toString().trim()}loadMap(Z,J){if(J===!1)return!1;if(J)if(typeof J==="string")return J;else if(typeof J==="function"){let Y=J(Z);if(Y){let Q=this.loadFile(Y);if(!Q)throw Error("Unable to load previous source map: "+Y.toString());return Q}}else if(J instanceof tJ)return eJ.fromSourceMap(J).toString();else if(J instanceof eJ)return J.toString();else if(this.isMap(J))return JSON.stringify(J);else throw Error("Unsupported previous source map format: "+J.toString());else if(this.inline)return this.decodeInline(this.annotation);else if(this.annotation){let Y=this.annotation;if(Z)Y=JK(u9(Z),Y);return this.loadFile(Y)}}startWith(Z,J){if(!Z)return!1;return Z.substr(0,J.length)===J}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}},P6=DZ;DZ.default=DZ;var{SourceMapConsumer:YK,SourceMapGenerator:QK}=Q0,{fileURLToPath:ZX,pathToFileURL:v1}=Q0,{isAbsolute:FZ,resolve:AZ}=Q0,{nanoid:KK}=t7,c9=Q0,JX=lZ,qK=P6,p9=Symbol("fromOffsetCache"),GK=Boolean(YK&&QK),XX=Boolean(AZ&&FZ),G9=class{constructor(Z,J={}){if(Z===null||typeof Z>"u"||typeof Z==="object"&&!Z.toString)throw Error(`PostCSS received ${Z} instead of CSS string`);if(this.css=Z.toString(),this.css[0]==="\uFEFF"||this.css[0]==="")this.hasBOM=!0,this.css=this.css.slice(1);else this.hasBOM=!1;if(J.from)if(!XX||/^\w+:\/\//.test(J.from)||FZ(J.from))this.file=J.from;else this.file=AZ(J.from);if(XX&&GK){let Y=new qK(this.css,J);if(Y.text){this.map=Y;let Q=Y.consumer().file;if(!this.file&&Q)this.file=this.mapResolve(Q)}}if(!this.file)this.id="<input css "+KK(6)+">";if(this.map)this.map.file=this.from}error(Z,J,Y,Q={}){let K,q,V;if(J&&typeof J==="object"){let U=J,W=Y;if(typeof U.offset==="number"){let H=this.fromOffset(U.offset);J=H.line,Y=H.col}else J=U.line,Y=U.column;if(typeof W.offset==="number"){let H=this.fromOffset(W.offset);q=H.line,V=H.col}else q=W.line,V=W.column}else if(!Y){let U=this.fromOffset(J);J=U.line,Y=U.col}let G=this.origin(J,Y,q,V);if(G)K=new JX(Z,G.endLine===void 0?G.line:{column:G.column,line:G.line},G.endLine===void 0?G.column:{column:G.endColumn,line:G.endLine},G.source,G.file,Q.plugin);else K=new JX(Z,q===void 0?J:{column:Y,line:J},q===void 0?Y:{column:V,line:q},this.css,this.file,Q.plugin);if(K.input={column:Y,endColumn:V,endLine:q,line:J,source:this.css},this.file){if(v1)K.input.url=v1(this.file).toString();K.input.file=this.file}return K}fromOffset(Z){let J,Y;if(!this[p9]){let K=this.css.split(`
|
|
47
|
+
`);Y=Array(K.length);let q=0;for(let V=0,G=K.length;V<G;V++)Y[V]=q,q+=K[V].length+1;this[p9]=Y}else Y=this[p9];J=Y[Y.length-1];let Q=0;if(Z>=J)Q=Y.length-1;else{let K=Y.length-2,q;while(Q<K)if(q=Q+(K-Q>>1),Z<Y[q])K=q-1;else if(Z>=Y[q+1])Q=q+1;else{Q=q;break}}return{col:Z-Y[Q]+1,line:Q+1}}mapResolve(Z){if(/^\w+:\/\//.test(Z))return Z;return AZ(this.map.consumer().sourceRoot||this.map.root||".",Z)}origin(Z,J,Y,Q){if(!this.map)return!1;let K=this.map.consumer(),q=K.originalPositionFor({column:J,line:Z});if(!q.source)return!1;let V;if(typeof Y==="number")V=K.originalPositionFor({column:Q,line:Y});let G;if(FZ(q.source))G=v1(q.source);else G=new URL(q.source,this.map.consumer().sourceRoot||v1(this.map.mapFile));let U={column:q.column,endColumn:V&&V.column,endLine:V&&V.line,line:q.line,url:G.toString()};if(G.protocol==="file:")if(ZX)U.file=ZX(G);else throw Error("file: protocol is not available in this PostCSS build");let W=K.sourceContentFor(q.source);if(W)U.source=W;return U}toJSON(){let Z={};for(let J of["hasBOM","css","file","id"])if(this[J]!=null)Z[J]=this[J];if(this.map){if(Z.map={...this.map},Z.map.consumerCache)Z.map.consumerCache=void 0}return Z}get from(){return this.file||this.id}},w9=G9;G9.default=G9;if(c9&&c9.registerInput)c9.registerInput(G9);var{SourceMapConsumer:D6,SourceMapGenerator:r1}=Q0,{dirname:o1,relative:F6,resolve:A6,sep:O6}=Q0,{pathToFileURL:YX}=Q0,VK=w9,UK=Boolean(D6&&r1),WK=Boolean(o1&&A6&&F6&&O6),HK=class{constructor(Z,J,Y,Q){this.stringify=Z,this.mapOpts=Y.map||{},this.root=J,this.opts=Y,this.css=Q,this.originalCSS=Q,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let Z;if(this.isInline())Z="data:application/json;base64,"+this.toBase64(this.map.toString());else if(typeof this.mapOpts.annotation==="string")Z=this.mapOpts.annotation;else if(typeof this.mapOpts.annotation==="function")Z=this.mapOpts.annotation(this.opts.to,this.root);else Z=this.outputFile()+".map";let J=`
|
|
48
|
+
`;if(this.css.includes(`\r
|
|
49
|
+
`))J=`\r
|
|
50
|
+
`;this.css+=J+"/*# sourceMappingURL="+Z+" */"}applyPrevMaps(){for(let Z of this.previous()){let J=this.toUrl(this.path(Z.file)),Y=Z.root||o1(Z.file),Q;if(this.mapOpts.sourcesContent===!1){if(Q=new D6(Z.text),Q.sourcesContent)Q.sourcesContent=null}else Q=Z.consumer();this.map.applySourceMap(Q,J,this.toUrl(this.path(Y)))}}clearAnnotation(){if(this.mapOpts.annotation===!1)return;if(this.root){let Z;for(let J=this.root.nodes.length-1;J>=0;J--){if(Z=this.root.nodes[J],Z.type!=="comment")continue;if(Z.text.indexOf("# sourceMappingURL=")===0)this.root.removeChild(J)}}else if(this.css)this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,"")}generate(){if(this.clearAnnotation(),WK&&UK&&this.isMap())return this.generateMap();else{let Z="";return this.stringify(this.root,(J)=>{Z+=J}),[Z]}}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let Z=this.previous()[0].consumer();Z.file=this.outputFile(),this.map=r1.fromSourceMap(Z,{ignoreInvalidMapping:!0})}else this.map=new r1({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>"});if(this.isSourcesContent())this.setSourcesContent();if(this.root&&this.previous().length>0)this.applyPrevMaps();if(this.isAnnotation())this.addAnnotation();if(this.isInline())return[this.css];else return[this.css,this.map]}generateString(){this.css="",this.map=new r1({file:this.outputFile(),ignoreInvalidMapping:!0});let Z=1,J=1,Y="<no source>",Q={generated:{column:0,line:0},original:{column:0,line:0},source:""},K,q;this.stringify(this.root,(V,G,U)=>{if(this.css+=V,G&&U!=="end")if(Q.generated.line=Z,Q.generated.column=J-1,G.source&&G.source.start)Q.source=this.sourcePath(G),Q.original.line=G.source.start.line,Q.original.column=G.source.start.column-1,this.map.addMapping(Q);else Q.source=Y,Q.original.line=1,Q.original.column=0,this.map.addMapping(Q);if(K=V.match(/\n/g),K)Z+=K.length,q=V.lastIndexOf(`
|
|
51
|
+
`),J=V.length-q;else J+=V.length;if(G&&U!=="start"){let W=G.parent||{raws:{}};if(!(G.type==="decl"||G.type==="atrule"&&!G.nodes)||G!==W.last||W.raws.semicolon)if(G.source&&G.source.end)Q.source=this.sourcePath(G),Q.original.line=G.source.end.line,Q.original.column=G.source.end.column-1,Q.generated.line=Z,Q.generated.column=J-2,this.map.addMapping(Q);else Q.source=Y,Q.original.line=1,Q.original.column=0,Q.generated.line=Z,Q.generated.column=J-1,this.map.addMapping(Q)}})}isAnnotation(){if(this.isInline())return!0;if(typeof this.mapOpts.annotation<"u")return this.mapOpts.annotation;if(this.previous().length)return this.previous().some((Z)=>Z.annotation);return!0}isInline(){if(typeof this.mapOpts.inline<"u")return this.mapOpts.inline;let Z=this.mapOpts.annotation;if(typeof Z<"u"&&Z!==!0)return!1;if(this.previous().length)return this.previous().some((J)=>J.inline);return!0}isMap(){if(typeof this.opts.map<"u")return!!this.opts.map;return this.previous().length>0}isSourcesContent(){if(typeof this.mapOpts.sourcesContent<"u")return this.mapOpts.sourcesContent;if(this.previous().length)return this.previous().some((Z)=>Z.withContent());return!0}outputFile(){if(this.opts.to)return this.path(this.opts.to);else if(this.opts.from)return this.path(this.opts.from);else return"to.css"}path(Z){if(this.mapOpts.absolute)return Z;if(Z.charCodeAt(0)===60)return Z;if(/^\w+:\/\//.test(Z))return Z;let J=this.memoizedPaths.get(Z);if(J)return J;let Y=this.opts.to?o1(this.opts.to):".";if(typeof this.mapOpts.annotation==="string")Y=o1(A6(Y,this.mapOpts.annotation));let Q=F6(Y,Z);return this.memoizedPaths.set(Z,Q),Q}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk((Z)=>{if(Z.source&&Z.source.input.map){let J=Z.source.input.map;if(!this.previousMaps.includes(J))this.previousMaps.push(J)}});else{let Z=new VK(this.originalCSS,this.opts);if(Z.map)this.previousMaps.push(Z.map)}return this.previousMaps}setSourcesContent(){let Z={};if(this.root)this.root.walk((J)=>{if(J.source){let Y=J.source.input.from;if(Y&&!Z[Y]){Z[Y]=!0;let Q=this.usesFileUrls?this.toFileUrl(Y):this.toUrl(this.path(Y));this.map.setSourceContent(Q,J.source.input.css)}}});else if(this.css){let J=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(J,this.css)}}sourcePath(Z){if(this.mapOpts.from)return this.toUrl(this.mapOpts.from);else if(this.usesFileUrls)return this.toFileUrl(Z.source.input.from);else return this.toUrl(this.path(Z.source.input.from))}toBase64(Z){if(Buffer)return Buffer.from(Z).toString("base64");else return window.btoa(unescape(encodeURIComponent(Z)))}toFileUrl(Z){let J=this.memoizedFileURLs.get(Z);if(J)return J;if(YX){let Y=YX(Z).toString();return this.memoizedFileURLs.set(Z,Y),Y}else throw Error("`map.absolute` option is not available in this PostCSS build")}toUrl(Z){let J=this.memoizedURLs.get(Z);if(J)return J;if(O6==="\\")Z=Z.replace(/\\/g,"/");let Y=encodeURI(Z).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(Z,Y),Y}},M6=HK,zK=O9,OZ=class extends zK{constructor(Z){super(Z);this.type="comment"}},_9=OZ;OZ.default=OZ;var{isClean:w6,my:_6}=D1,C6=M9,R6=_9,BK=O9,E6,dZ,iZ,I6;function $6(X){return X.map((Z)=>{if(Z.nodes)Z.nodes=$6(Z.nodes);return delete Z.source,Z})}function N6(X){if(X[w6]=!1,X.proxyOf.nodes)for(let Z of X.proxyOf.nodes)N6(Z)}var H0=class X extends BK{append(...Z){for(let J of Z){let Y=this.normalize(J,this.last);for(let Q of Y)this.proxyOf.nodes.push(Q)}return this.markDirty(),this}cleanRaws(Z){if(super.cleanRaws(Z),this.nodes)for(let J of this.nodes)J.cleanRaws(Z)}each(Z){if(!this.proxyOf.nodes)return;let J=this.getIterator(),Y,Q;while(this.indexes[J]<this.proxyOf.nodes.length){if(Y=this.indexes[J],Q=Z(this.proxyOf.nodes[Y],Y),Q===!1)break;this.indexes[J]+=1}return delete this.indexes[J],Q}every(Z){return this.nodes.every(Z)}getIterator(){if(!this.lastEach)this.lastEach=0;if(!this.indexes)this.indexes={};this.lastEach+=1;let Z=this.lastEach;return this.indexes[Z]=0,Z}getProxyProcessor(){return{get(Z,J){if(J==="proxyOf")return Z;else if(!Z[J])return Z[J];else if(J==="each"||typeof J==="string"&&J.startsWith("walk"))return(...Y)=>{return Z[J](...Y.map((Q)=>{if(typeof Q==="function")return(K,q)=>Q(K.toProxy(),q);else return Q}))};else if(J==="every"||J==="some")return(Y)=>{return Z[J]((Q,...K)=>Y(Q.toProxy(),...K))};else if(J==="root")return()=>Z.root().toProxy();else if(J==="nodes")return Z.nodes.map((Y)=>Y.toProxy());else if(J==="first"||J==="last")return Z[J].toProxy();else return Z[J]},set(Z,J,Y){if(Z[J]===Y)return!0;if(Z[J]=Y,J==="name"||J==="params"||J==="selector")Z.markDirty();return!0}}}index(Z){if(typeof Z==="number")return Z;if(Z.proxyOf)Z=Z.proxyOf;return this.proxyOf.nodes.indexOf(Z)}insertAfter(Z,J){let Y=this.index(Z),Q=this.normalize(J,this.proxyOf.nodes[Y]).reverse();Y=this.index(Z);for(let q of Q)this.proxyOf.nodes.splice(Y+1,0,q);let K;for(let q in this.indexes)if(K=this.indexes[q],Y<K)this.indexes[q]=K+Q.length;return this.markDirty(),this}insertBefore(Z,J){let Y=this.index(Z),Q=Y===0?"prepend":!1,K=this.normalize(J,this.proxyOf.nodes[Y],Q).reverse();Y=this.index(Z);for(let V of K)this.proxyOf.nodes.splice(Y,0,V);let q;for(let V in this.indexes)if(q=this.indexes[V],Y<=q)this.indexes[V]=q+K.length;return this.markDirty(),this}normalize(Z,J){if(typeof Z==="string")Z=$6(E6(Z).nodes);else if(typeof Z>"u")Z=[];else if(Array.isArray(Z)){Z=Z.slice(0);for(let Q of Z)if(Q.parent)Q.parent.removeChild(Q,"ignore")}else if(Z.type==="root"&&this.type!=="document"){Z=Z.nodes.slice(0);for(let Q of Z)if(Q.parent)Q.parent.removeChild(Q,"ignore")}else if(Z.type)Z=[Z];else if(Z.prop){if(typeof Z.value>"u")throw Error("Value field is missed in node creation");else if(typeof Z.value!=="string")Z.value=String(Z.value);Z=[new C6(Z)]}else if(Z.selector)Z=[new dZ(Z)];else if(Z.name)Z=[new iZ(Z)];else if(Z.text)Z=[new R6(Z)];else throw Error("Unknown node type in node creation");return Z.map((Q)=>{if(!Q[_6])X.rebuild(Q);if(Q=Q.proxyOf,Q.parent)Q.parent.removeChild(Q);if(Q[w6])N6(Q);if(typeof Q.raws.before>"u"){if(J&&typeof J.raws.before<"u")Q.raws.before=J.raws.before.replace(/\S/g,"")}return Q.parent=this.proxyOf,Q})}prepend(...Z){Z=Z.reverse();for(let J of Z){let Y=this.normalize(J,this.first,"prepend").reverse();for(let Q of Y)this.proxyOf.nodes.unshift(Q);for(let Q in this.indexes)this.indexes[Q]=this.indexes[Q]+Y.length}return this.markDirty(),this}push(Z){return Z.parent=this,this.proxyOf.nodes.push(Z),this}removeAll(){for(let Z of this.proxyOf.nodes)Z.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(Z){Z=this.index(Z),this.proxyOf.nodes[Z].parent=void 0,this.proxyOf.nodes.splice(Z,1);let J;for(let Y in this.indexes)if(J=this.indexes[Y],J>=Z)this.indexes[Y]=J-1;return this.markDirty(),this}replaceValues(Z,J,Y){if(!Y)Y=J,J={};return this.walkDecls((Q)=>{if(J.props&&!J.props.includes(Q.prop))return;if(J.fast&&!Q.value.includes(J.fast))return;Q.value=Q.value.replace(Z,Y)}),this.markDirty(),this}some(Z){return this.nodes.some(Z)}walk(Z){return this.each((J,Y)=>{let Q;try{Q=Z(J,Y)}catch(K){throw J.addToError(K)}if(Q!==!1&&J.walk)Q=J.walk(Z);return Q})}walkAtRules(Z,J){if(!J)return J=Z,this.walk((Y,Q)=>{if(Y.type==="atrule")return J(Y,Q)});if(Z instanceof RegExp)return this.walk((Y,Q)=>{if(Y.type==="atrule"&&Z.test(Y.name))return J(Y,Q)});return this.walk((Y,Q)=>{if(Y.type==="atrule"&&Y.name===Z)return J(Y,Q)})}walkComments(Z){return this.walk((J,Y)=>{if(J.type==="comment")return Z(J,Y)})}walkDecls(Z,J){if(!J)return J=Z,this.walk((Y,Q)=>{if(Y.type==="decl")return J(Y,Q)});if(Z instanceof RegExp)return this.walk((Y,Q)=>{if(Y.type==="decl"&&Z.test(Y.prop))return J(Y,Q)});return this.walk((Y,Q)=>{if(Y.type==="decl"&&Y.prop===Z)return J(Y,Q)})}walkRules(Z,J){if(!J)return J=Z,this.walk((Y,Q)=>{if(Y.type==="rule")return J(Y,Q)});if(Z instanceof RegExp)return this.walk((Y,Q)=>{if(Y.type==="rule"&&Z.test(Y.selector))return J(Y,Q)});return this.walk((Y,Q)=>{if(Y.type==="rule"&&Y.selector===Z)return J(Y,Q)})}get first(){if(!this.proxyOf.nodes)return;return this.proxyOf.nodes[0]}get last(){if(!this.proxyOf.nodes)return;return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}};H0.registerParse=(X)=>{E6=X};H0.registerRule=(X)=>{dZ=X};H0.registerAtRule=(X)=>{iZ=X};H0.registerRoot=(X)=>{I6=X};var C0=H0;H0.default=H0;H0.rebuild=(X)=>{if(X.type==="atrule")Object.setPrototypeOf(X,iZ.prototype);else if(X.type==="rule")Object.setPrototypeOf(X,dZ.prototype);else if(X.type==="decl")Object.setPrototypeOf(X,C6.prototype);else if(X.type==="comment")Object.setPrototypeOf(X,R6.prototype);else if(X.type==="root")Object.setPrototypeOf(X,I6.prototype);if(X[_6]=!0,X.nodes)X.nodes.forEach((Z)=>{H0.rebuild(Z)})};var jK=C0,T6,S6,W1=class extends jK{constructor(Z){super({type:"document",...Z});if(!this.nodes)this.nodes=[]}toResult(Z={}){return new T6(new S6,this,Z).stringify()}};W1.registerLazyResult=(X)=>{T6=X};W1.registerProcessor=(X)=>{S6=X};var sZ=W1;W1.default=W1;var QX={},f6=function(Z){if(QX[Z])return;if(QX[Z]=!0,typeof console<"u"&&console.warn)console.warn(Z)},MZ=class{constructor(Z,J={}){if(this.type="warning",this.text=Z,J.node&&J.node.source){let Y=J.node.rangeBy(J);this.line=Y.start.line,this.column=Y.start.column,this.endLine=Y.end.line,this.endColumn=Y.end.column}for(let Y in J)this[Y]=J[Y]}toString(){if(this.node)return this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message;if(this.plugin)return this.plugin+": "+this.text;return this.text}},x6=MZ;MZ.default=MZ;var LK=x6,wZ=class{constructor(Z,J,Y){this.processor=Z,this.messages=[],this.root=J,this.opts=Y,this.css=void 0,this.map=void 0}toString(){return this.css}warn(Z,J={}){if(!J.plugin){if(this.lastPlugin&&this.lastPlugin.postcssPlugin)J.plugin=this.lastPlugin.postcssPlugin}let Y=new LK(Z,J);return this.messages.push(Y),Y}warnings(){return this.messages.filter((Z)=>Z.type==="warning")}get content(){return this.css}},aZ=wZ;wZ.default=wZ;var l9=39,KX=34,h1=92,qX=47,y1=10,Z1=32,g1=12,m1=9,u1=13,PK=91,DK=93,FK=40,AK=41,OK=123,MK=125,wK=59,_K=42,CK=58,RK=64,c1=/[\t\n\f\r "#'()/;[\\\]{}]/g,p1=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,EK=/.[\r\n"'(/\\]/,GX=/[\da-f]/i,IK=function(Z,J={}){let Y=Z.css.valueOf(),Q=J.ignoreErrors,K,q,V,G,U,W,H,B,j,P,L=Y.length,z=0,O=[],A=[];function D(){return z}function M(v){throw Z.error("Unclosed "+v,z)}function T(){return A.length===0&&z>=L}function f(v){if(A.length)return A.pop();if(z>=L)return;let c=v?v.ignoreUnclosed:!1;switch(K=Y.charCodeAt(z),K){case y1:case Z1:case m1:case u1:case g1:{q=z;do q+=1,K=Y.charCodeAt(q);while(K===Z1||K===y1||K===m1||K===u1||K===g1);P=["space",Y.slice(z,q)],z=q-1;break}case PK:case DK:case OK:case MK:case CK:case wK:case AK:{let i=String.fromCharCode(K);P=[i,i,z];break}case FK:{if(B=O.length?O.pop()[1]:"",j=Y.charCodeAt(z+1),B==="url"&&j!==l9&&j!==KX&&j!==Z1&&j!==y1&&j!==m1&&j!==g1&&j!==u1){q=z;do{if(W=!1,q=Y.indexOf(")",q+1),q===-1)if(Q||c){q=z;break}else M("bracket");H=q;while(Y.charCodeAt(H-1)===h1)H-=1,W=!W}while(W);P=["brackets",Y.slice(z,q+1),z,q],z=q}else if(q=Y.indexOf(")",z+1),G=Y.slice(z,q+1),q===-1||EK.test(G))P=["(","(",z];else P=["brackets",G,z,q],z=q;break}case l9:case KX:{V=K===l9?"'":'"',q=z;do{if(W=!1,q=Y.indexOf(V,q+1),q===-1)if(Q||c){q=z+1;break}else M("string");H=q;while(Y.charCodeAt(H-1)===h1)H-=1,W=!W}while(W);P=["string",Y.slice(z,q+1),z,q],z=q;break}case RK:{if(c1.lastIndex=z+1,c1.test(Y),c1.lastIndex===0)q=Y.length-1;else q=c1.lastIndex-2;P=["at-word",Y.slice(z,q+1),z,q],z=q;break}case h1:{q=z,U=!0;while(Y.charCodeAt(q+1)===h1)q+=1,U=!U;if(K=Y.charCodeAt(q+1),U&&K!==qX&&K!==Z1&&K!==y1&&K!==m1&&K!==u1&&K!==g1){if(q+=1,GX.test(Y.charAt(q))){while(GX.test(Y.charAt(q+1)))q+=1;if(Y.charCodeAt(q+1)===Z1)q+=1}}P=["word",Y.slice(z,q+1),z,q],z=q;break}default:{if(K===qX&&Y.charCodeAt(z+1)===_K){if(q=Y.indexOf("*/",z+2)+1,q===0)if(Q||c)q=Y.length;else M("comment");P=["comment",Y.slice(z,q+1),z,q],z=q}else{if(p1.lastIndex=z+1,p1.test(Y),p1.lastIndex===0)q=Y.length-1;else q=p1.lastIndex-2;P=["word",Y.slice(z,q+1),z,q],O.push(P),z=q}break}}return z++,P}function p(v){A.push(v)}return{back:p,endOfFile:T,nextToken:f,position:D}},b6=C0,V9=class extends b6{constructor(Z){super(Z);this.type="atrule"}append(...Z){if(!this.proxyOf.nodes)this.nodes=[];return super.append(...Z)}prepend(...Z){if(!this.proxyOf.nodes)this.nodes=[];return super.prepend(...Z)}},rZ=V9;V9.default=V9;b6.registerAtRule(V9);var k6=C0,v6,h6,u0=class extends k6{constructor(Z){super(Z);if(this.type="root",!this.nodes)this.nodes=[]}normalize(Z,J,Y){let Q=super.normalize(Z);if(J){if(Y==="prepend")if(this.nodes.length>1)J.raws.before=this.nodes[1].raws.before;else delete J.raws.before;else if(this.first!==J)for(let K of Q)K.raws.before=J.raws.before}return Q}removeChild(Z,J){let Y=this.index(Z);if(!J&&Y===0&&this.nodes.length>1)this.nodes[1].raws.before=this.nodes[Y].raws.before;return super.removeChild(Z)}toResult(Z={}){return new v6(new h6,this,Z).stringify()}};u0.registerLazyResult=(X)=>{v6=X};u0.registerProcessor=(X)=>{h6=X};var F1=u0;u0.default=u0;k6.registerRoot(u0);var H1={comma(X){return H1.split(X,[","],!0)},space(X){let Z=[" ",`
|
|
52
|
+
`,"\t"];return H1.split(X,Z)},split(X,Z,J){let Y=[],Q="",K=!1,q=0,V=!1,G="",U=!1;for(let W of X){if(U)U=!1;else if(W==="\\")U=!0;else if(V){if(W===G)V=!1}else if(W==='"'||W==="'")V=!0,G=W;else if(W==="(")q+=1;else if(W===")"){if(q>0)q-=1}else if(q===0){if(Z.includes(W))K=!0}if(K){if(Q!=="")Y.push(Q.trim());Q="",K=!1}else Q+=W}if(J||Q!=="")Y.push(Q.trim());return Y}},y6=H1;H1.default=H1;var g6=C0,$K=y6,U9=class extends g6{constructor(Z){super(Z);if(this.type="rule",!this.nodes)this.nodes=[]}get selectors(){return $K.comma(this.selector)}set selectors(Z){let J=this.selector?this.selector.match(/,\s*/):null,Y=J?J[0]:","+this.raw("between","beforeOpen");this.selector=Z.join(Y)}},oZ=U9;U9.default=U9;g6.registerRule(U9);var NK=M9,TK=IK,SK=_9,fK=rZ,xK=F1,VX=oZ,UX={empty:!0,space:!0};function bK(X){for(let Z=X.length-1;Z>=0;Z--){let J=X[Z],Y=J[3]||J[2];if(Y)return Y}}var kK=class{constructor(Z){this.input=Z,this.root=new xK,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:Z,start:{column:1,line:1,offset:0}}}atrule(Z){let J=new fK;if(J.name=Z[1].slice(1),J.name==="")this.unnamedAtrule(J,Z);this.init(J,Z[2]);let Y,Q,K,q=!1,V=!1,G=[],U=[];while(!this.tokenizer.endOfFile()){if(Z=this.tokenizer.nextToken(),Y=Z[0],Y==="("||Y==="[")U.push(Y==="("?")":"]");else if(Y==="{"&&U.length>0)U.push("}");else if(Y===U[U.length-1])U.pop();if(U.length===0)if(Y===";"){J.source.end=this.getPosition(Z[2]),J.source.end.offset++,this.semicolon=!0;break}else if(Y==="{"){V=!0;break}else if(Y==="}"){if(G.length>0){K=G.length-1,Q=G[K];while(Q&&Q[0]==="space")Q=G[--K];if(Q)J.source.end=this.getPosition(Q[3]||Q[2]),J.source.end.offset++}this.end(Z);break}else G.push(Z);else G.push(Z);if(this.tokenizer.endOfFile()){q=!0;break}}if(J.raws.between=this.spacesAndCommentsFromEnd(G),G.length){if(J.raws.afterName=this.spacesAndCommentsFromStart(G),this.raw(J,"params",G),q)Z=G[G.length-1],J.source.end=this.getPosition(Z[3]||Z[2]),J.source.end.offset++,this.spaces=J.raws.between,J.raws.between=""}else J.raws.afterName="",J.params="";if(V)J.nodes=[],this.current=J}checkMissedSemicolon(Z){let J=this.colon(Z);if(J===!1)return;let Y=0,Q;for(let K=J-1;K>=0;K--)if(Q=Z[K],Q[0]!=="space"){if(Y+=1,Y===2)break}throw this.input.error("Missed semicolon",Q[0]==="word"?Q[3]+1:Q[2])}colon(Z){let J=0,Y,Q,K;for(let[q,V]of Z.entries()){if(Y=V,Q=Y[0],Q==="(")J+=1;if(Q===")")J-=1;if(J===0&&Q===":")if(!K)this.doubleColon(Y);else if(K[0]==="word"&&K[1]==="progid")continue;else return q;K=Y}return!1}comment(Z){let J=new SK;this.init(J,Z[2]),J.source.end=this.getPosition(Z[3]||Z[2]),J.source.end.offset++;let Y=Z[1].slice(2,-2);if(/^\s*$/.test(Y))J.text="",J.raws.left=Y,J.raws.right="";else{let Q=Y.match(/^(\s*)([^]*\S)(\s*)$/);J.text=Q[2],J.raws.left=Q[1],J.raws.right=Q[3]}}createTokenizer(){this.tokenizer=TK(this.input)}decl(Z,J){let Y=new NK;this.init(Y,Z[0][2]);let Q=Z[Z.length-1];if(Q[0]===";")this.semicolon=!0,Z.pop();Y.source.end=this.getPosition(Q[3]||Q[2]||bK(Z)),Y.source.end.offset++;while(Z[0][0]!=="word"){if(Z.length===1)this.unknownWord(Z);Y.raws.before+=Z.shift()[1]}Y.source.start=this.getPosition(Z[0][2]),Y.prop="";while(Z.length){let U=Z[0][0];if(U===":"||U==="space"||U==="comment")break;Y.prop+=Z.shift()[1]}Y.raws.between="";let K;while(Z.length)if(K=Z.shift(),K[0]===":"){Y.raws.between+=K[1];break}else{if(K[0]==="word"&&/\w/.test(K[1]))this.unknownWord([K]);Y.raws.between+=K[1]}if(Y.prop[0]==="_"||Y.prop[0]==="*")Y.raws.before+=Y.prop[0],Y.prop=Y.prop.slice(1);let q=[],V;while(Z.length){if(V=Z[0][0],V!=="space"&&V!=="comment")break;q.push(Z.shift())}this.precheckMissedSemicolon(Z);for(let U=Z.length-1;U>=0;U--){if(K=Z[U],K[1].toLowerCase()==="!important"){Y.important=!0;let W=this.stringFrom(Z,U);if(W=this.spacesFromEnd(Z)+W,W!==" !important")Y.raws.important=W;break}else if(K[1].toLowerCase()==="important"){let W=Z.slice(0),H="";for(let B=U;B>0;B--){let j=W[B][0];if(H.trim().indexOf("!")===0&&j!=="space")break;H=W.pop()[1]+H}if(H.trim().indexOf("!")===0)Y.important=!0,Y.raws.important=H,Z=W}if(K[0]!=="space"&&K[0]!=="comment")break}if(Z.some((U)=>U[0]!=="space"&&U[0]!=="comment"))Y.raws.between+=q.map((U)=>U[1]).join(""),q=[];if(this.raw(Y,"value",q.concat(Z),J),Y.value.includes(":")&&!J)this.checkMissedSemicolon(Z)}doubleColon(Z){throw this.input.error("Double colon",{offset:Z[2]},{offset:Z[2]+Z[1].length})}emptyRule(Z){let J=new VX;this.init(J,Z[2]),J.selector="",J.raws.between="",this.current=J}end(Z){if(this.current.nodes&&this.current.nodes.length)this.current.raws.semicolon=this.semicolon;if(this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent)this.current.source.end=this.getPosition(Z[2]),this.current.source.end.offset++,this.current=this.current.parent;else this.unexpectedClose(Z)}endFile(){if(this.current.parent)this.unclosedBlock();if(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(Z){if(this.spaces+=Z[1],this.current.nodes){let J=this.current.nodes[this.current.nodes.length-1];if(J&&J.type==="rule"&&!J.raws.ownSemicolon)J.raws.ownSemicolon=this.spaces,this.spaces=""}}getPosition(Z){let J=this.input.fromOffset(Z);return{column:J.col,line:J.line,offset:Z}}init(Z,J){if(this.current.push(Z),Z.source={input:this.input,start:this.getPosition(J)},Z.raws.before=this.spaces,this.spaces="",Z.type!=="comment")this.semicolon=!1}other(Z){let J=!1,Y=null,Q=!1,K=null,q=[],V=Z[1].startsWith("--"),G=[],U=Z;while(U){if(Y=U[0],G.push(U),Y==="("||Y==="["){if(!K)K=U;q.push(Y==="("?")":"]")}else if(V&&Q&&Y==="{"){if(!K)K=U;q.push("}")}else if(q.length===0){if(Y===";")if(Q){this.decl(G,V);return}else break;else if(Y==="{"){this.rule(G);return}else if(Y==="}"){this.tokenizer.back(G.pop()),J=!0;break}else if(Y===":")Q=!0}else if(Y===q[q.length-1]){if(q.pop(),q.length===0)K=null}U=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile())J=!0;if(q.length>0)this.unclosedBracket(K);if(J&&Q){if(!V)while(G.length){if(U=G[G.length-1][0],U!=="space"&&U!=="comment")break;this.tokenizer.back(G.pop())}this.decl(G,V)}else this.unknownWord(G)}parse(){let Z;while(!this.tokenizer.endOfFile())switch(Z=this.tokenizer.nextToken(),Z[0]){case"space":this.spaces+=Z[1];break;case";":this.freeSemicolon(Z);break;case"}":this.end(Z);break;case"comment":this.comment(Z);break;case"at-word":this.atrule(Z);break;case"{":this.emptyRule(Z);break;default:this.other(Z);break}this.endFile()}precheckMissedSemicolon(){}raw(Z,J,Y,Q){let K,q,V=Y.length,G="",U=!0,W,H;for(let B=0;B<V;B+=1)if(K=Y[B],q=K[0],q==="space"&&B===V-1&&!Q)U=!1;else if(q==="comment")if(H=Y[B-1]?Y[B-1][0]:"empty",W=Y[B+1]?Y[B+1][0]:"empty",!UX[H]&&!UX[W])if(G.slice(-1)===",")U=!1;else G+=K[1];else U=!1;else G+=K[1];if(!U){let B=Y.reduce((j,P)=>j+P[1],"");Z.raws[J]={raw:B,value:G}}Z[J]=G}rule(Z){Z.pop();let J=new VX;this.init(J,Z[0][2]),J.raws.between=this.spacesAndCommentsFromEnd(Z),this.raw(J,"selector",Z),this.current=J}spacesAndCommentsFromEnd(Z){let J,Y="";while(Z.length){if(J=Z[Z.length-1][0],J!=="space"&&J!=="comment")break;Y=Z.pop()[1]+Y}return Y}spacesAndCommentsFromStart(Z){let J,Y="";while(Z.length){if(J=Z[0][0],J!=="space"&&J!=="comment")break;Y+=Z.shift()[1]}return Y}spacesFromEnd(Z){let J,Y="";while(Z.length){if(J=Z[Z.length-1][0],J!=="space")break;Y=Z.pop()[1]+Y}return Y}stringFrom(Z,J){let Y="";for(let Q=J;Q<Z.length;Q++)Y+=Z[Q][1];return Z.splice(J,Z.length-J),Y}unclosedBlock(){let Z=this.current.source.start;throw this.input.error("Unclosed block",Z.line,Z.column)}unclosedBracket(Z){throw this.input.error("Unclosed bracket",{offset:Z[2]},{offset:Z[2]+1})}unexpectedClose(Z){throw this.input.error("Unexpected }",{offset:Z[2]},{offset:Z[2]+1})}unknownWord(Z){throw this.input.error("Unknown word",{offset:Z[0][2]},{offset:Z[0][2]+Z[0][1].length})}unnamedAtrule(Z,J){throw this.input.error("At-rule without name",{offset:J[2]},{offset:J[2]+J[1].length})}},vK=kK,hK=C0,yK=vK,gK=w9;function W9(X,Z){let J=new gK(X,Z),Y=new yK(J);try{Y.parse()}catch(Q){if(Q.name==="CssSyntaxError"&&Z&&Z.from){if(/\.scss$/i.test(Z.from))Q.message+=`
|
|
53
|
+
You tried to parse SCSS with the standard CSS parser; try again with the postcss-scss parser`;else if(/\.sass/i.test(Z.from))Q.message+=`
|
|
54
|
+
You tried to parse Sass with the standard CSS parser; try again with the postcss-sass parser`;else if(/\.less$/i.test(Z.from))Q.message+=`
|
|
55
|
+
You tried to parse Less with the standard CSS parser; try again with the postcss-less parser`}throw Q}return Y.root}var nZ=W9;W9.default=W9;hK.registerParse(W9);var{isClean:V0,my:mK}=D1,uK=M6,cK=A9,pK=C0,lK=sZ,dK=f6,WX=aZ,iK=nZ,sK=F1,aK={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},rK={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},oK={Once:!0,postcssPlugin:!0,prepare:!0},c0=0;function J1(X){return typeof X==="object"&&typeof X.then==="function"}function m6(X){let Z=!1,J=aK[X.type];if(X.type==="decl")Z=X.prop.toLowerCase();else if(X.type==="atrule")Z=X.name.toLowerCase();if(Z&&X.append)return[J,J+"-"+Z,c0,J+"Exit",J+"Exit-"+Z];else if(Z)return[J,J+"-"+Z,J+"Exit",J+"Exit-"+Z];else if(X.append)return[J,c0,J+"Exit"];else return[J,J+"Exit"]}function HX(X){let Z;if(X.type==="document")Z=["Document",c0,"DocumentExit"];else if(X.type==="root")Z=["Root",c0,"RootExit"];else Z=m6(X);return{eventIndex:0,events:Z,iterator:0,node:X,visitorIndex:0,visitors:[]}}function _Z(X){if(X[V0]=!1,X.nodes)X.nodes.forEach((Z)=>_Z(Z));return X}var CZ={},p0=class X{constructor(Z,J,Y){this.stringified=!1,this.processed=!1;let Q;if(typeof J==="object"&&J!==null&&(J.type==="root"||J.type==="document"))Q=_Z(J);else if(J instanceof X||J instanceof WX){if(Q=_Z(J.root),J.map){if(typeof Y.map>"u")Y.map={};if(!Y.map.inline)Y.map.inline=!1;Y.map.prev=J.map}}else{let K=iK;if(Y.syntax)K=Y.syntax.parse;if(Y.parser)K=Y.parser;if(K.parse)K=K.parse;try{Q=K(J,Y)}catch(q){this.processed=!0,this.error=q}if(Q&&!Q[mK])pK.rebuild(Q)}this.result=new WX(Z,Q,Y),this.helpers={...CZ,postcss:CZ,result:this.result},this.plugins=this.processor.plugins.map((K)=>{if(typeof K==="object"&&K.prepare)return{...K,...K.prepare(this.result)};else return K})}async(){if(this.error)return Promise.reject(this.error);if(this.processed)return Promise.resolve(this.result);if(!this.processing)this.processing=this.runAsync();return this.processing}catch(Z){return this.async().catch(Z)}finally(Z){return this.async().then(Z,Z)}getAsyncError(){throw Error("Use process(css).then(cb) to work with async plugins")}handleError(Z,J){let Y=this.result.lastPlugin;try{if(J)J.addToError(Z);if(this.error=Z,Z.name==="CssSyntaxError"&&!Z.plugin)Z.plugin=Y.postcssPlugin,Z.setMessage();else if(Y.postcssVersion){let{postcssPlugin:Q,postcssVersion:K}=Y,q=this.result.processor.version,V=K.split("."),G=q.split(".");if(V[0]!==G[0]||parseInt(V[1])>parseInt(G[1]))console.error("Unknown error from PostCSS plugin. Your current PostCSS version is "+q+", but "+Q+" uses "+K+". Perhaps this is the source of the error below.")}}catch(Q){if(console&&console.error)console.error(Q)}return Z}prepareVisitors(){this.listeners={};let Z=(J,Y,Q)=>{if(!this.listeners[Y])this.listeners[Y]=[];this.listeners[Y].push([J,Q])};for(let J of this.plugins)if(typeof J==="object")for(let Y in J){if(!rK[Y]&&/^[A-Z]/.test(Y))throw Error(`Unknown event ${Y} in ${J.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!oK[Y]){if(typeof J[Y]==="object")for(let Q in J[Y])if(Q==="*")Z(J,Y,J[Y][Q]);else Z(J,Y+"-"+Q.toLowerCase(),J[Y][Q]);else if(typeof J[Y]==="function")Z(J,Y,J[Y])}}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let Z=0;Z<this.plugins.length;Z++){let J=this.plugins[Z],Y=this.runOnRoot(J);if(J1(Y))try{await Y}catch(Q){throw this.handleError(Q)}}if(this.prepareVisitors(),this.hasListener){let Z=this.result.root;while(!Z[V0]){Z[V0]=!0;let J=[HX(Z)];while(J.length>0){let Y=this.visitTick(J);if(J1(Y))try{await Y}catch(Q){let K=J[J.length-1].node;throw this.handleError(Q,K)}}}if(this.listeners.OnceExit)for(let[J,Y]of this.listeners.OnceExit){this.result.lastPlugin=J;try{if(Z.type==="document"){let Q=Z.nodes.map((K)=>Y(K,this.helpers));await Promise.all(Q)}else await Y(Z,this.helpers)}catch(Q){throw this.handleError(Q)}}}return this.processed=!0,this.stringify()}runOnRoot(Z){this.result.lastPlugin=Z;try{if(typeof Z==="object"&&Z.Once){if(this.result.root.type==="document"){let J=this.result.root.nodes.map((Y)=>Z.Once(Y,this.helpers));if(J1(J[0]))return Promise.all(J);return J}return Z.Once(this.result.root,this.helpers)}else if(typeof Z==="function")return Z(this.result.root,this.result)}catch(J){throw this.handleError(J)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let Z=this.result.opts,J=cK;if(Z.syntax)J=Z.syntax.stringify;if(Z.stringifier)J=Z.stringifier;if(J.stringify)J=J.stringify;let Q=new uK(J,this.result.root,this.result.opts).generate();return this.result.css=Q[0],this.result.map=Q[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 Z of this.plugins){let J=this.runOnRoot(Z);if(J1(J))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let Z=this.result.root;while(!Z[V0])Z[V0]=!0,this.walkSync(Z);if(this.listeners.OnceExit)if(Z.type==="document")for(let J of Z.nodes)this.visitSync(this.listeners.OnceExit,J);else this.visitSync(this.listeners.OnceExit,Z)}return this.result}then(Z,J){if(!("from"in this.opts))dK("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.");return this.async().then(Z,J)}toString(){return this.css}visitSync(Z,J){for(let[Y,Q]of Z){this.result.lastPlugin=Y;let K;try{K=Q(J,this.helpers)}catch(q){throw this.handleError(q,J.proxyOf)}if(J.type!=="root"&&J.type!=="document"&&!J.parent)return!0;if(J1(K))throw this.getAsyncError()}}visitTick(Z){let J=Z[Z.length-1],{node:Y,visitors:Q}=J;if(Y.type!=="root"&&Y.type!=="document"&&!Y.parent){Z.pop();return}if(Q.length>0&&J.visitorIndex<Q.length){let[q,V]=Q[J.visitorIndex];if(J.visitorIndex+=1,J.visitorIndex===Q.length)J.visitors=[],J.visitorIndex=0;this.result.lastPlugin=q;try{return V(Y.toProxy(),this.helpers)}catch(G){throw this.handleError(G,Y)}}if(J.iterator!==0){let q=J.iterator,V;while(V=Y.nodes[Y.indexes[q]])if(Y.indexes[q]+=1,!V[V0]){V[V0]=!0,Z.push(HX(V));return}J.iterator=0,delete Y.indexes[q]}let K=J.events;while(J.eventIndex<K.length){let q=K[J.eventIndex];if(J.eventIndex+=1,q===c0){if(Y.nodes&&Y.nodes.length)Y[V0]=!0,J.iterator=Y.getIterator();return}else if(this.listeners[q]){J.visitors=this.listeners[q];return}}Z.pop()}walkSync(Z){Z[V0]=!0;let J=m6(Z);for(let Y of J)if(Y===c0){if(Z.nodes)Z.each((Q)=>{if(!Q[V0])this.walkSync(Q)})}else{let Q=this.listeners[Y];if(Q){if(this.visitSync(Q,Z.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"}};p0.registerPostcss=(X)=>{CZ=X};var u6=p0;p0.default=p0;sK.registerLazyResult(p0);lK.registerLazyResult(p0);var nK=M6,tK=A9,eK=f6,Zq=nZ,Jq=aZ,RZ=class{constructor(Z,J,Y){J=J.toString(),this.stringified=!1,this._processor=Z,this._css=J,this._opts=Y,this._map=void 0;let Q,K=tK;this.result=new Jq(this._processor,Q,this._opts),this.result.css=J;let q=this;Object.defineProperty(this.result,"root",{get(){return q.root}});let V=new nK(K,Q,this._opts,J);if(V.isMap()){let[G,U]=V.generate();if(G)this.result.css=G;if(U)this.result.map=U}else V.clearAnnotation(),this.result.css=V.css}async(){if(this.error)return Promise.reject(this.error);return Promise.resolve(this.result)}catch(Z){return this.async().catch(Z)}finally(Z){return this.async().then(Z,Z)}sync(){if(this.error)throw this.error;return this.result}then(Z,J){if(!("from"in this._opts))eK("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.");return this.async().then(Z,J)}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 Z,J=Zq;try{Z=J(this._css,this._opts)}catch(Y){this.error=Y}if(this.error)throw this.error;else return this._root=Z,Z}get[Symbol.toStringTag](){return"NoWorkResult"}},Xq=RZ;RZ.default=RZ;var Yq=Xq,Qq=u6,Kq=sZ,qq=F1,z1=class{constructor(Z=[]){this.version="8.4.38",this.plugins=this.normalize(Z)}normalize(Z){let J=[];for(let Y of Z){if(Y.postcss===!0)Y=Y();else if(Y.postcss)Y=Y.postcss;if(typeof Y==="object"&&Array.isArray(Y.plugins))J=J.concat(Y.plugins);else if(typeof Y==="object"&&Y.postcssPlugin)J.push(Y);else if(typeof Y==="function")J.push(Y);else if(typeof Y==="object"&&(Y.parse||Y.stringify))throw Error("PostCSS syntaxes cannot be used as plugins. Instead, please use one of the syntax/parser/stringifier options as outlined in your PostCSS runner documentation.");else throw Error(Y+" is not a PostCSS plugin")}return J}process(Z,J={}){if(!this.plugins.length&&!J.parser&&!J.stringifier&&!J.syntax)return new Yq(this,Z,J);else return new Qq(this,Z,J)}use(Z){return this.plugins=this.plugins.concat(this.normalize([Z])),this}},Gq=z1;z1.default=z1;qq.registerProcessor(z1);Kq.registerProcessor(z1);var Vq=M9,Uq=P6,Wq=_9,Hq=rZ,zq=w9,Bq=F1,jq=oZ;function B1(X,Z){if(Array.isArray(X))return X.map((Q)=>B1(Q));let{inputs:J,...Y}=X;if(J){Z=[];for(let Q of J){let K={...Q,__proto__:zq.prototype};if(K.map)K.map={...K.map,__proto__:Uq.prototype};Z.push(K)}}if(Y.nodes)Y.nodes=X.nodes.map((Q)=>B1(Q,Z));if(Y.source){let{inputId:Q,...K}=Y.source;if(Y.source=K,Q!=null)Y.source.input=Z[Q]}if(Y.type==="root")return new Bq(Y);else if(Y.type==="decl")return new Vq(Y);else if(Y.type==="rule")return new jq(Y);else if(Y.type==="comment")return new Wq(Y);else if(Y.type==="atrule")return new Hq(Y);else throw Error("Unknown node type: "+X.type)}var Lq=B1;B1.default=B1;var Pq=lZ,c6=M9,Dq=u6,Fq=C0,tZ=Gq,Aq=A9,Oq=Lq,p6=sZ,Mq=x6,l6=_9,d6=rZ,wq=aZ,_q=w9,Cq=nZ,Rq=y6,i6=oZ,s6=F1,Eq=O9;function N(...X){if(X.length===1&&Array.isArray(X[0]))X=X[0];return new tZ(X)}N.plugin=function(Z,J){let Y=!1;function Q(...q){if(console&&console.warn&&!Y){if(Y=!0,console.warn(Z+`: postcss.plugin was deprecated. Migration guide:
|
|
56
|
+
https://evilmartians.com/chronicles/postcss-8-plugin-migration`),process.env.LANG&&process.env.LANG.startsWith("cn"))console.warn(Z+`: 里面 postcss.plugin 被弃用. 迁移指南:
|
|
57
|
+
https://www.w3ctech.com/topic/2226`)}let V=J(...q);return V.postcssPlugin=Z,V.postcssVersion=new tZ().version,V}let K;return Object.defineProperty(Q,"postcss",{get(){if(!K)K=Q();return K}}),Q.process=function(q,V,G){return N([Q(G)]).process(q,V)},Q};N.stringify=Aq;N.parse=Cq;N.fromJSON=Oq;N.list=Rq;N.comment=(X)=>new l6(X);N.atRule=(X)=>new d6(X);N.decl=(X)=>new c6(X);N.rule=(X)=>new i6(X);N.root=(X)=>new s6(X);N.document=(X)=>new p6(X);N.CssSyntaxError=Pq;N.Declaration=c6;N.Container=Fq;N.Processor=tZ;N.Document=p6;N.Comment=l6;N.Warning=Mq;N.AtRule=d6;N.Result=wq;N.Input=_q;N.Rule=i6;N.Root=s6;N.Node=Eq;Dq.registerPostcss(N);var Iq=N;N.default=N;var y=h7(Iq);y.stringify;y.fromJSON;y.plugin;y.parse;y.list;y.document;y.comment;y.atRule;y.rule;y.decl;y.root;y.CssSyntaxError;y.Declaration;y.Container;y.Processor;y.Document;y.Comment;y.Warning;y.AtRule;y.Result;y.Input;y.Rule;y.Root;y.Node;class eZ{constructor(...X){Z0(this,"parentElement",null),Z0(this,"parentNode",null),Z0(this,"ownerDocument"),Z0(this,"firstChild",null),Z0(this,"lastChild",null),Z0(this,"previousSibling",null),Z0(this,"nextSibling",null),Z0(this,"ELEMENT_NODE",1),Z0(this,"TEXT_NODE",3),Z0(this,"nodeType"),Z0(this,"nodeName"),Z0(this,"RRNodeType")}get childNodes(){let X=[],Z=this.firstChild;while(Z)X.push(Z),Z=Z.nextSibling;return X}contains(X){if(!(X instanceof eZ))return!1;else if(X.ownerDocument!==this.ownerDocument)return!1;else if(X===this)return!0;while(X.parentNode){if(X.parentNode===this)return!0;X=X.parentNode}return!1}appendChild(X){throw Error("RRDomException: Failed to execute 'appendChild' on 'RRNode': This RRNode type does not support this method.")}insertBefore(X,Z){throw Error("RRDomException: Failed to execute 'insertBefore' on 'RRNode': This RRNode type does not support this method.")}removeChild(X){throw Error("RRDomException: Failed to execute 'removeChild' on 'RRNode': This RRNode type does not support this method.")}toString(){return"RRNode"}}var zX={Node:["childNodes","parentNode","parentElement","textContent","ownerDocument"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},BX={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},l1={},$q=()=>{return!!globalThis.Zone};function ZJ(X){if(l1[X])return l1[X];let Z=globalThis[X],J=Z.prototype,Y=X in zX?zX[X]:void 0,Q=Boolean(Y&&Y.every((V)=>{var G,U;return Boolean((U=(G=Object.getOwnPropertyDescriptor(J,V))==null?void 0:G.get)==null?void 0:U.toString().includes("[native code]"))})),K=X in BX?BX[X]:void 0,q=Boolean(K&&K.every((V)=>{var G;return typeof J[V]==="function"&&((G=J[V])==null?void 0:G.toString().includes("[native code]"))}));if(Q&&q&&!$q())return l1[X]=Z.prototype,Z.prototype;try{let V=document.createElement("iframe");document.body.appendChild(V);let G=V.contentWindow;if(!G)return Z.prototype;let U=G[X].prototype;if(document.body.removeChild(V),!U)return J;return l1[X]=U}catch{return J}}var d9={};function B0(X,Z,J){var Y;let Q=`${X}.${String(J)}`;if(d9[Q])return d9[Q].call(Z);let K=ZJ(X),q=(Y=Object.getOwnPropertyDescriptor(K,J))==null?void 0:Y.get;if(!q)return Z[J];return d9[Q]=q,q.call(Z)}var i9={};function a6(X,Z,J){let Y=`${X}.${String(J)}`;if(i9[Y])return i9[Y].bind(Z);let K=ZJ(X)[J];if(typeof K!=="function")return Z[J];return i9[Y]=K,K.bind(Z)}function Nq(X){return B0("Node",X,"ownerDocument")}function Tq(X){return B0("Node",X,"childNodes")}function Sq(X){return B0("Node",X,"parentNode")}function fq(X){return B0("Node",X,"parentElement")}function xq(X){return B0("Node",X,"textContent")}function bq(X,Z){return a6("Node",X,"contains")(Z)}function kq(X){return a6("Node",X,"getRootNode")()}function vq(X){if(!X||!("host"in X))return null;return B0("ShadowRoot",X,"host")}function hq(X){return X.styleSheets}function yq(X){if(!X||!("shadowRoot"in X))return null;return B0("Element",X,"shadowRoot")}function gq(X,Z){return B0("Element",X,"querySelector")(Z)}function mq(X,Z){return B0("Element",X,"querySelectorAll")(Z)}function r6(){return ZJ("MutationObserver").constructor}function R0(X,Z,J){try{if(!(Z in X))return()=>{};let Y=X[Z],Q=J(Y);if(typeof Q==="function")Q.prototype=Q.prototype||{},Object.defineProperties(Q,{__rrweb_original__:{enumerable:!1,value:Y}});return X[Z]=Q,()=>{X[Z]=Y}}catch{return()=>{}}}var w={ownerDocument:Nq,childNodes:Tq,parentNode:Sq,parentElement:fq,textContent:xq,contains:bq,getRootNode:kq,host:vq,styleSheets:hq,shadowRoot:yq,querySelector:gq,querySelectorAll:mq,mutationObserver:r6,patch:R0};function a(X,Z,J=document){let Y={capture:!0,passive:!0};return J.addEventListener(X,Z,Y),()=>J.removeEventListener(X,Z,Y)}var f0=`Please stop import mirror directly. Instead of that,\r
|
|
58
|
+
now you can use replayer.getMirror() to access the mirror instance of a replayer,\r
|
|
59
|
+
or you can use record.mirror to access the mirror instance during recording.`,jX={map:{},getId(){return console.error(f0),-1},getNode(){return console.error(f0),null},removeNodeFromMap(){console.error(f0)},has(){return console.error(f0),!1},reset(){console.error(f0)}};if(typeof window<"u"&&window.Proxy&&window.Reflect)jX=new Proxy(jX,{get(X,Z,J){if(Z==="map")console.error(f0);return Reflect.get(X,Z,J)}});function j1(X,Z,J={}){let Y=null,Q=0;return function(...K){let q=Date.now();if(!Q&&J.leading===!1)Q=q;let V=Z-(q-Q),G=this;if(V<=0||V>Z){if(Y)clearTimeout(Y),Y=null;Q=q,X.apply(G,K)}else if(!Y&&J.trailing!==!1)Y=setTimeout(()=>{Q=J.leading===!1?0:Date.now(),Y=null,X.apply(G,K)},V)}}function C9(X,Z,J,Y,Q=window){let K=Q.Object.getOwnPropertyDescriptor(X,Z);return Q.Object.defineProperty(X,Z,Y?J:{set(q){if(setTimeout(()=>{J.set.call(this,q)},0),K&&K.set)K.set.call(this,q)}}),()=>C9(X,Z,K||{},!0)}var H9=Date.now;if(!/[1-9][0-9]{12}/.test(Date.now().toString()))H9=()=>new Date().getTime();function o6(X){var Z,J,Y,Q;let K=X.document;return{left:K.scrollingElement?K.scrollingElement.scrollLeft:X.pageXOffset!==void 0?X.pageXOffset:K.documentElement.scrollLeft||(K==null?void 0:K.body)&&((Z=w.parentElement(K.body))==null?void 0:Z.scrollLeft)||((J=K==null?void 0:K.body)==null?void 0:J.scrollLeft)||0,top:K.scrollingElement?K.scrollingElement.scrollTop:X.pageYOffset!==void 0?X.pageYOffset:(K==null?void 0:K.documentElement.scrollTop)||(K==null?void 0:K.body)&&((Y=w.parentElement(K.body))==null?void 0:Y.scrollTop)||((Q=K==null?void 0:K.body)==null?void 0:Q.scrollTop)||0}}function n6(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function t6(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function e6(X){if(!X)return null;return X.nodeType===X.ELEMENT_NODE?X:w.parentElement(X)}function r(X,Z,J,Y){if(!X)return!1;let Q=e6(X);if(!Q)return!1;try{if(typeof Z==="string"){if(Q.classList.contains(Z))return!0;if(Y&&Q.closest("."+Z)!==null)return!0}else if(X9(Q,Z,Y))return!0}catch(K){}if(J){if(Q.matches(J))return!0;if(Y&&Q.closest(J)!==null)return!0}return!1}function uq(X,Z){return Z.getId(X)!==-1}function s9(X,Z,J){if(X.tagName==="TITLE"&&J.headTitleMutations)return!0;return Z.getId(X)===K1}function Z8(X,Z){if(X1(X))return!1;let J=Z.getId(X);if(!Z.has(J))return!0;let Y=w.parentNode(X);if(Y&&Y.nodeType===X.DOCUMENT_NODE)return!1;if(!Y)return!0;return Z8(Y,Z)}function EZ(X){return Boolean(X.changedTouches)}function cq(X=window){if("NodeList"in X&&!X.NodeList.prototype.forEach)X.NodeList.prototype.forEach=Array.prototype.forEach;if("DOMTokenList"in X&&!X.DOMTokenList.prototype.forEach)X.DOMTokenList.prototype.forEach=Array.prototype.forEach}function J8(X,Z){return Boolean(X.nodeName==="IFRAME"&&Z.getMeta(X))}function X8(X,Z){return Boolean(X.nodeName==="LINK"&&X.nodeType===X.ELEMENT_NODE&&X.getAttribute&&X.getAttribute("rel")==="stylesheet"&&Z.getMeta(X))}function IZ(X){if(!X)return!1;if(X instanceof eZ&&"shadowRoot"in X)return Boolean(X.shadowRoot);return Boolean(w.shadowRoot(X))}class Y8{constructor(){F(this,"id",1),F(this,"styleIDMap",new WeakMap),F(this,"idStyleMap",new Map)}getId(X){return this.styleIDMap.get(X)??-1}has(X){return this.styleIDMap.has(X)}add(X,Z){if(this.has(X))return this.getId(X);let J;if(Z===void 0)J=this.id++;else J=Z;return this.styleIDMap.set(X,J),this.idStyleMap.set(J,X),J}getStyle(X){return this.idStyleMap.get(X)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}}function Q8(X){var Z;let J=null;if("getRootNode"in X&&((Z=w.getRootNode(X))==null?void 0:Z.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&w.host(w.getRootNode(X)))J=w.host(w.getRootNode(X));return J}function pq(X){let Z=X,J;while(J=Q8(Z))Z=J;return Z}function lq(X){let Z=w.ownerDocument(X);if(!Z)return!1;let J=pq(X);return w.contains(Z,J)}function K8(X){let Z=w.ownerDocument(X);if(!Z)return!1;return w.contains(Z,X)||lq(X)}var R=((X)=>{return X[X.DomContentLoaded=0]="DomContentLoaded",X[X.Load=1]="Load",X[X.FullSnapshot=2]="FullSnapshot",X[X.IncrementalSnapshot=3]="IncrementalSnapshot",X[X.Meta=4]="Meta",X[X.Custom=5]="Custom",X[X.Plugin=6]="Plugin",X})(R||{}),_=((X)=>{return X[X.Mutation=0]="Mutation",X[X.MouseMove=1]="MouseMove",X[X.MouseInteraction=2]="MouseInteraction",X[X.Scroll=3]="Scroll",X[X.ViewportResize=4]="ViewportResize",X[X.Input=5]="Input",X[X.TouchMove=6]="TouchMove",X[X.MediaInteraction=7]="MediaInteraction",X[X.StyleSheetRule=8]="StyleSheetRule",X[X.CanvasMutation=9]="CanvasMutation",X[X.Font=10]="Font",X[X.Log=11]="Log",X[X.Drag=12]="Drag",X[X.StyleDeclaration=13]="StyleDeclaration",X[X.Selection=14]="Selection",X[X.AdoptedStyleSheet=15]="AdoptedStyleSheet",X[X.CustomElement=16]="CustomElement",X})(_||{}),o=((X)=>{return X[X.MouseUp=0]="MouseUp",X[X.MouseDown=1]="MouseDown",X[X.Click=2]="Click",X[X.ContextMenu=3]="ContextMenu",X[X.DblClick=4]="DblClick",X[X.Focus=5]="Focus",X[X.Blur=6]="Blur",X[X.TouchStart=7]="TouchStart",X[X.TouchMove_Departed=8]="TouchMove_Departed",X[X.TouchEnd=9]="TouchEnd",X[X.TouchCancel=10]="TouchCancel",X})(o||{}),U0=((X)=>{return X[X.Mouse=0]="Mouse",X[X.Pen=1]="Pen",X[X.Touch=2]="Touch",X})(U0||{}),l0=((X)=>{return X[X["2D"]=0]="2D",X[X.WebGL=1]="WebGL",X[X.WebGL2=2]="WebGL2",X})(l0||{}),x0=((X)=>{return X[X.Play=0]="Play",X[X.Pause=1]="Pause",X[X.Seeked=2]="Seeked",X[X.VolumeChange=3]="VolumeChange",X[X.RateChange=4]="RateChange",X})(x0||{});var q8=((X)=>{return X[X.Document=0]="Document",X[X.DocumentType=1]="DocumentType",X[X.Element=2]="Element",X[X.Text=3]="Text",X[X.CDATA=4]="CDATA",X[X.Comment=5]="Comment",X})(q8||{});function LX(X){return"__ln"in X}class G8{constructor(){F(this,"length",0),F(this,"head",null),F(this,"tail",null)}get(X){if(X>=this.length)throw Error("Position outside of list range");let Z=this.head;for(let J=0;J<X;J++)Z=(Z==null?void 0:Z.next)||null;return Z}addNode(X){let Z={value:X,previous:null,next:null};if(X.__ln=Z,X.previousSibling&&LX(X.previousSibling)){let J=X.previousSibling.__ln.next;if(Z.next=J,Z.previous=X.previousSibling.__ln,X.previousSibling.__ln.next=Z,J)J.previous=Z}else if(X.nextSibling&&LX(X.nextSibling)&&X.nextSibling.__ln.previous){let J=X.nextSibling.__ln.previous;if(Z.previous=J,Z.next=X.nextSibling.__ln,X.nextSibling.__ln.previous=Z,J)J.next=Z}else{if(this.head)this.head.previous=Z;Z.next=this.head,this.head=Z}if(Z.next===null)this.tail=Z;this.length++}removeNode(X){let Z=X.__ln;if(!this.head)return;if(!Z.previous)if(this.head=Z.next,this.head)this.head.previous=null;else this.tail=null;else if(Z.previous.next=Z.next,Z.next)Z.next.previous=Z.previous;else this.tail=Z.previous;if(X.__ln)delete X.__ln;this.length--}}var PX=(X,Z)=>`${X}@${Z}`;class V8{constructor(){F(this,"frozen",!1),F(this,"locked",!1),F(this,"texts",[]),F(this,"attributes",[]),F(this,"attributeMap",new WeakMap),F(this,"removes",[]),F(this,"mapRemoves",[]),F(this,"movedMap",{}),F(this,"addedSet",new Set),F(this,"movedSet",new Set),F(this,"droppedSet",new Set),F(this,"removesSubTreeCache",new Set),F(this,"mutationCb"),F(this,"blockClass"),F(this,"blockSelector"),F(this,"maskTextClass"),F(this,"maskTextSelector"),F(this,"inlineStylesheet"),F(this,"maskInputOptions"),F(this,"maskTextFn"),F(this,"maskInputFn"),F(this,"keepIframeSrcFn"),F(this,"recordCanvas"),F(this,"inlineImages"),F(this,"slimDOMOptions"),F(this,"dataURLOptions"),F(this,"doc"),F(this,"mirror"),F(this,"iframeManager"),F(this,"stylesheetManager"),F(this,"shadowDomManager"),F(this,"canvasManager"),F(this,"processedNodeManager"),F(this,"unattachedDoc"),F(this,"processMutations",(X)=>{X.forEach(this.processMutation),this.emit()}),F(this,"emit",()=>{if(this.frozen||this.locked)return;let X=[],Z=new Set,J=new G8,Y=(V)=>{let G=V,U=K1;while(U===K1)G=G&&G.nextSibling,U=G&&this.mirror.getId(G);return U},Q=(V)=>{let G=w.parentNode(V);if(!G||!K8(V))return;let U=!1;if(V.nodeType===Node.TEXT_NODE){let j=G.tagName;if(j==="TEXTAREA")return;else if(j==="STYLE"&&this.addedSet.has(G))U=!0}let W=X1(G)?this.mirror.getId(Q8(V)):this.mirror.getId(G),H=Y(V);if(W===-1||H===-1)return J.addNode(V);let B=v0(V,{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:(j)=>{if(J8(j,this.mirror))this.iframeManager.addIframe(j);if(X8(j,this.mirror))this.stylesheetManager.trackLinkElement(j);if(IZ(V))this.shadowDomManager.addShadowRoot(w.shadowRoot(V),this.doc)},onIframeLoad:(j,P)=>{this.iframeManager.attachIframe(j,P),this.shadowDomManager.observeAttachShadow(j)},onStylesheetLoad:(j,P)=>{this.stylesheetManager.attachLinkElement(j,P)},cssCaptured:U});if(B)X.push({parentId:W,nextId:H,node:B}),Z.add(B.id)};while(this.mapRemoves.length)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(let V of this.movedSet){if(DX(this.removesSubTreeCache,V,this.mirror)&&!this.movedSet.has(w.parentNode(V)))continue;Q(V)}for(let V of this.addedSet)if(!FX(this.droppedSet,V)&&!DX(this.removesSubTreeCache,V,this.mirror))Q(V);else if(FX(this.movedSet,V))Q(V);else this.droppedSet.add(V);let K=null;while(J.length){let V=null;if(K){let G=this.mirror.getId(w.parentNode(K.value)),U=Y(K.value);if(G!==-1&&U!==-1)V=K}if(!V){let G=J.tail;while(G){let U=G;if(G=G.previous,U){let W=this.mirror.getId(w.parentNode(U.value));if(Y(U.value)===-1)continue;else if(W!==-1){V=U;break}else{let B=U.value,j=w.parentNode(B);if(j&&j.nodeType===Node.DOCUMENT_FRAGMENT_NODE){let P=w.host(j);if(this.mirror.getId(P)!==-1){V=U;break}}}}}}if(!V){while(J.head)J.removeNode(J.head.value);break}K=V.previous,J.removeNode(V.value),Q(V.value)}let q={texts:this.texts.map((V)=>{let G=V.node,U=w.parentNode(G);if(U&&U.tagName==="TEXTAREA")this.genTextAreaValueMutation(U);return{id:this.mirror.getId(G),value:V.value}}).filter((V)=>!Z.has(V.id)).filter((V)=>this.mirror.has(V.id)),attributes:this.attributes.map((V)=>{let{attributes:G}=V;if(typeof G.style==="string"){let U=JSON.stringify(V.styleDiff),W=JSON.stringify(V._unchangedStyles);if(U.length<G.style.length){if((U+W).split("var(").length===G.style.split("var(").length)G.style=V.styleDiff}}return{id:this.mirror.getId(V.node),attributes:G}}).filter((V)=>!Z.has(V.id)).filter((V)=>this.mirror.has(V.id)),removes:this.removes,adds:X};if(!q.texts.length&&!q.attributes.length&&!q.removes.length&&!q.adds.length)return;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(q)}),F(this,"genTextAreaValueMutation",(X)=>{let Z=this.attributeMap.get(X);if(!Z)Z={node:X,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(Z),this.attributeMap.set(X,Z);let J=Array.from(w.childNodes(X),(Y)=>w.textContent(Y)||"").join("");Z.attributes.value=e1({element:X,maskInputOptions:this.maskInputOptions,tagName:X.tagName,type:Z9(X),value:J,maskInputFn:this.maskInputFn})}),F(this,"processMutation",(X)=>{if(s9(X.target,this.mirror,this.slimDOMOptions))return;switch(X.type){case"characterData":{let Z=w.textContent(X.target);if(!r(X.target,this.blockClass,this.blockSelector,!1)&&Z!==X.oldValue)this.texts.push({value:fX(X.target,this.maskTextClass,this.maskTextSelector,!0)&&Z?this.maskTextFn?this.maskTextFn(Z,e6(X.target)):Z.replace(/[\S]/g,"*"):Z,node:X.target});break}case"attributes":{let{target:Z,attributeName:J}=X,Y=X.target.getAttribute(J);if(J==="value"){let K=Z9(Z);Y=e1({element:Z,maskInputOptions:this.maskInputOptions,tagName:Z.tagName,type:K,value:Y,maskInputFn:this.maskInputFn})}if(r(X.target,this.blockClass,this.blockSelector,!1)||Y===X.oldValue)return;let Q=this.attributeMap.get(X.target);if(Z.tagName==="IFRAME"&&J==="src"&&!this.keepIframeSrcFn(Y))if(!Z.contentDocument)J="rr_src";else return;if(!Q)Q={node:X.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(Q),this.attributeMap.set(X.target,Q);if(J==="type"&&Z.tagName==="INPUT"&&(X.oldValue||"").toLowerCase()==="password")Z.setAttribute("data-rr-is-password","true");if(!SX(Z.tagName,J)){if(Q.attributes[J]=TX(this.doc,w0(Z.tagName),w0(J),Y),J==="style"){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch(q){this.unattachedDoc=this.doc}let K=this.unattachedDoc.createElement("span");if(X.oldValue)K.setAttribute("style",X.oldValue);for(let q of Array.from(Z.style)){let V=Z.style.getPropertyValue(q),G=Z.style.getPropertyPriority(q);if(V!==K.style.getPropertyValue(q)||G!==K.style.getPropertyPriority(q))if(G==="")Q.styleDiff[q]=V;else Q.styleDiff[q]=[V,G];else Q._unchangedStyles[q]=[V,G]}for(let q of Array.from(K.style))if(Z.style.getPropertyValue(q)==="")Q.styleDiff[q]=!1}else if(J==="open"&&Z.tagName==="DIALOG")if(Z.matches("dialog:modal"))Q.attributes.rr_open_mode="modal";else Q.attributes.rr_open_mode="non-modal"}break}case"childList":{if(r(X.target,this.blockClass,this.blockSelector,!0))return;if(X.target.tagName==="TEXTAREA"){this.genTextAreaValueMutation(X.target);return}X.addedNodes.forEach((Z)=>this.genAdds(Z,X.target)),X.removedNodes.forEach((Z)=>{let J=this.mirror.getId(Z),Y=X1(X.target)?this.mirror.getId(w.host(X.target)):this.mirror.getId(X.target);if(r(X.target,this.blockClass,this.blockSelector,!1)||s9(Z,this.mirror,this.slimDOMOptions)||!uq(Z,this.mirror))return;if(this.addedSet.has(Z))$Z(this.addedSet,Z),this.droppedSet.add(Z);else if(this.addedSet.has(X.target)&&J===-1);else if(Z8(X.target,this.mirror));else if(this.movedSet.has(Z)&&this.movedMap[PX(J,Y)])$Z(this.movedSet,Z);else this.removes.push({parentId:Y,id:J,isShadow:X1(X.target)&&Y1(X.target)?!0:void 0}),dq(Z,this.removesSubTreeCache);this.mapRemoves.push(Z)});break}}}),F(this,"genAdds",(X,Z)=>{if(this.processedNodeManager.inOtherBuffer(X,this))return;if(this.addedSet.has(X)||this.movedSet.has(X))return;if(this.mirror.hasNode(X)){if(s9(X,this.mirror,this.slimDOMOptions))return;this.movedSet.add(X);let J=null;if(Z&&this.mirror.hasNode(Z))J=this.mirror.getId(Z);if(J&&J!==-1)this.movedMap[PX(this.mirror.getId(X),J)]=!0}else this.addedSet.add(X),this.droppedSet.delete(X);if(!r(X,this.blockClass,this.blockSelector,!1)){if(w.childNodes(X).forEach((J)=>this.genAdds(J)),IZ(X))w.childNodes(w.shadowRoot(X)).forEach((J)=>{this.processedNodeManager.add(J,this),this.genAdds(J,X)})}})}init(X){["mutationCb","blockClass","blockSelector","maskTextClass","maskTextSelector","inlineStylesheet","maskInputOptions","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager"].forEach((Z)=>{this[Z]=X[Z]})}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()}}function $Z(X,Z){X.delete(Z),w.childNodes(Z).forEach((J)=>$Z(X,J))}function dq(X,Z){let J=[X];while(J.length){let Y=J.pop();if(Z.has(Y))continue;Z.add(Y),w.childNodes(Y).forEach((Q)=>J.push(Q))}return}function DX(X,Z,J){if(X.size===0)return!1;return iq(X,Z)}function iq(X,Z,J){let Y=w.parentNode(Z);if(!Y)return!1;return X.has(Y)}function FX(X,Z){if(X.size===0)return!1;return U8(X,Z)}function U8(X,Z){let J=w.parentNode(Z);if(!J)return!1;if(X.has(J))return!0;return U8(X,J)}var Q1;function sq(X){Q1=X}function aq(){Q1=void 0}var C=(X)=>{if(!Q1)return X;return(...J)=>{try{return X(...J)}catch(Y){if(Q1&&Q1(Y)===!0)return;throw Y}}},M0=[];function A1(X){try{if("composedPath"in X){let Z=X.composedPath();if(Z.length)return Z[0]}else if("path"in X&&X.path.length)return X.path[0]}catch{}return X&&X.target}function W8(X,Z){let J=new V8;M0.push(J),J.init(X);let Y=new(r6())(C(J.processMutations.bind(J)));return Y.observe(Z,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),Y}function rq({mousemoveCb:X,sampling:Z,doc:J,mirror:Y}){if(Z.mousemove===!1)return()=>{};let Q=typeof Z.mousemove==="number"?Z.mousemove:50,K=typeof Z.mousemoveCallback==="number"?Z.mousemoveCallback:500,q=[],V,G=j1(C((H)=>{let B=Date.now()-V;X(q.map((j)=>{return j.timeOffset-=B,j}),H),q=[],V=null}),K),U=C(j1(C((H)=>{let B=A1(H),{clientX:j,clientY:P}=EZ(H)?H.changedTouches[0]:H;if(!V)V=H9();q.push({x:j,y:P,id:Y.getId(B),timeOffset:H9()-V}),G(typeof DragEvent<"u"&&H instanceof DragEvent?_.Drag:H instanceof MouseEvent?_.MouseMove:_.TouchMove)}),Q,{trailing:!1})),W=[a("mousemove",U,J),a("touchmove",U,J),a("drag",U,J)];return C(()=>{W.forEach((H)=>H())})}function oq({mouseInteractionCb:X,doc:Z,mirror:J,blockClass:Y,blockSelector:Q,sampling:K}){if(K.mouseInteraction===!1)return()=>{};let q=K.mouseInteraction===!0||K.mouseInteraction===void 0?{}:K.mouseInteraction,V=[],G=null,U=(W)=>{return(H)=>{let B=A1(H);if(r(B,Y,Q,!0))return;let j=null,P=W;if("pointerType"in H){switch(H.pointerType){case"mouse":j=U0.Mouse;break;case"touch":j=U0.Touch;break;case"pen":j=U0.Pen;break}if(j===U0.Touch){if(o[W]===o.MouseDown)P="TouchStart";else if(o[W]===o.MouseUp)P="TouchEnd"}else if(j===U0.Pen);}else if(EZ(H))j=U0.Touch;if(j!==null){if(G=j,P.startsWith("Touch")&&j===U0.Touch||P.startsWith("Mouse")&&j===U0.Mouse)j=null}else if(o[W]===o.Click)j=G,G=null;let L=EZ(H)?H.changedTouches[0]:H;if(!L)return;let z=J.getId(B),{clientX:O,clientY:A}=L;C(X)({type:o[P],id:z,x:O,y:A,...j!==null&&{pointerType:j}})}};return Object.keys(o).filter((W)=>Number.isNaN(Number(W))&&!W.endsWith("_Departed")&&q[W]!==!1).forEach((W)=>{let H=w0(W),B=U(W);if(window.PointerEvent)switch(o[W]){case o.MouseDown:case o.MouseUp:H=H.replace("mouse","pointer");break;case o.TouchStart:case o.TouchEnd:return}V.push(a(H,B,Z))}),C(()=>{V.forEach((W)=>W())})}function H8({scrollCb:X,doc:Z,mirror:J,blockClass:Y,blockSelector:Q,sampling:K}){let q=C(j1(C((V)=>{let G=A1(V);if(!G||r(G,Y,Q,!0))return;let U=J.getId(G);if(G===Z&&Z.defaultView){let W=o6(Z.defaultView);X({id:U,x:W.left,y:W.top})}else X({id:U,x:G.scrollLeft,y:G.scrollTop})}),K.scroll||100));return a("scroll",q,Z)}function nq({viewportResizeCb:X},{win:Z}){let J=-1,Y=-1,Q=C(j1(C(()=>{let K=n6(),q=t6();if(J!==K||Y!==q)X({width:Number(q),height:Number(K)}),J=K,Y=q}),200));return a("resize",Q,Z)}var tq=["INPUT","TEXTAREA","SELECT"],AX=new WeakMap;function eq({inputCb:X,doc:Z,mirror:J,blockClass:Y,blockSelector:Q,ignoreClass:K,ignoreSelector:q,maskInputOptions:V,maskInputFn:G,sampling:U,userTriggeredOnInput:W}){function H(A){let D=A1(A),M=A.isTrusted,T=D&&D.tagName;if(D&&T==="OPTION")D=w.parentElement(D);if(!D||!T||tq.indexOf(T)<0||r(D,Y,Q,!0))return;if(D.classList.contains(K)||q&&D.matches(q))return;let f=D.value,p=!1,v=Z9(D)||"";if(v==="radio"||v==="checkbox")p=D.checked;else if(V[T.toLowerCase()]||V[v])f=e1({element:D,maskInputOptions:V,tagName:T,type:v,value:f,maskInputFn:G});B(D,W?{text:f,isChecked:p,userTriggered:M}:{text:f,isChecked:p});let c=D.name;if(v==="radio"&&c&&p)Z.querySelectorAll(`input[type="radio"][name="${c}"]`).forEach((i)=>{if(i!==D){let t=i.value;B(i,W?{text:t,isChecked:!p,userTriggered:!1}:{text:t,isChecked:!p})}})}function B(A,D){let M=AX.get(A);if(!M||M.text!==D.text||M.isChecked!==D.isChecked){AX.set(A,D);let T=J.getId(A);C(X)({...D,id:T})}}let P=(U.input==="last"?["change"]:["input","change"]).map((A)=>a(A,C(H),Z)),L=Z.defaultView;if(!L)return()=>{P.forEach((A)=>A())};let z=L.Object.getOwnPropertyDescriptor(L.HTMLInputElement.prototype,"value"),O=[[L.HTMLInputElement.prototype,"value"],[L.HTMLInputElement.prototype,"checked"],[L.HTMLSelectElement.prototype,"value"],[L.HTMLTextAreaElement.prototype,"value"],[L.HTMLSelectElement.prototype,"selectedIndex"],[L.HTMLOptionElement.prototype,"selected"]];if(z&&z.set)P.push(...O.map((A)=>C9(A[0],A[1],{set(){C(H)({target:this,isTrusted:!1})}},!1,L)));return C(()=>{P.forEach((A)=>A())})}function z9(X){let Z=[];function J(Y,Q){if(d1("CSSGroupingRule")&&Y.parentRule instanceof CSSGroupingRule||d1("CSSMediaRule")&&Y.parentRule instanceof CSSMediaRule||d1("CSSSupportsRule")&&Y.parentRule instanceof CSSSupportsRule||d1("CSSConditionRule")&&Y.parentRule instanceof CSSConditionRule){let q=Array.from(Y.parentRule.cssRules).indexOf(Y);Q.unshift(q)}else if(Y.parentStyleSheet){let q=Array.from(Y.parentStyleSheet.cssRules).indexOf(Y);Q.unshift(q)}return Q}return J(X,Z)}function P0(X,Z,J){let Y,Q;if(!X)return{};if(X.ownerNode)Y=Z.getId(X.ownerNode);else Q=J.getId(X);return{styleId:Q,id:Y}}function ZG({styleSheetRuleCb:X,mirror:Z,stylesheetManager:J},{win:Y}){if(!Y.CSSStyleSheet||!Y.CSSStyleSheet.prototype)return()=>{};let Q=Y.CSSStyleSheet.prototype.insertRule;Y.CSSStyleSheet.prototype.insertRule=new Proxy(Q,{apply:C((W,H,B)=>{let[j,P]=B,{id:L,styleId:z}=P0(H,Z,J.styleMirror);if(L&&L!==-1||z&&z!==-1)X({id:L,styleId:z,adds:[{rule:j,index:P}]});return W.apply(H,B)})}),Y.CSSStyleSheet.prototype.addRule=function(W,H,B=this.cssRules.length){let j=`${W} { ${H} }`;return Y.CSSStyleSheet.prototype.insertRule.apply(this,[j,B])};let K=Y.CSSStyleSheet.prototype.deleteRule;Y.CSSStyleSheet.prototype.deleteRule=new Proxy(K,{apply:C((W,H,B)=>{let[j]=B,{id:P,styleId:L}=P0(H,Z,J.styleMirror);if(P&&P!==-1||L&&L!==-1)X({id:P,styleId:L,removes:[{index:j}]});return W.apply(H,B)})}),Y.CSSStyleSheet.prototype.removeRule=function(W){return Y.CSSStyleSheet.prototype.deleteRule.apply(this,[W])};let q;if(Y.CSSStyleSheet.prototype.replace)q=Y.CSSStyleSheet.prototype.replace,Y.CSSStyleSheet.prototype.replace=new Proxy(q,{apply:C((W,H,B)=>{let[j]=B,{id:P,styleId:L}=P0(H,Z,J.styleMirror);if(P&&P!==-1||L&&L!==-1)X({id:P,styleId:L,replace:j});return W.apply(H,B)})});let V;if(Y.CSSStyleSheet.prototype.replaceSync)V=Y.CSSStyleSheet.prototype.replaceSync,Y.CSSStyleSheet.prototype.replaceSync=new Proxy(V,{apply:C((W,H,B)=>{let[j]=B,{id:P,styleId:L}=P0(H,Z,J.styleMirror);if(P&&P!==-1||L&&L!==-1)X({id:P,styleId:L,replaceSync:j});return W.apply(H,B)})});let G={};if(i1("CSSGroupingRule"))G.CSSGroupingRule=Y.CSSGroupingRule;else{if(i1("CSSMediaRule"))G.CSSMediaRule=Y.CSSMediaRule;if(i1("CSSConditionRule"))G.CSSConditionRule=Y.CSSConditionRule;if(i1("CSSSupportsRule"))G.CSSSupportsRule=Y.CSSSupportsRule}let U={};return Object.entries(G).forEach(([W,H])=>{U[W]={insertRule:H.prototype.insertRule,deleteRule:H.prototype.deleteRule},H.prototype.insertRule=new Proxy(U[W].insertRule,{apply:C((B,j,P)=>{let[L,z]=P,{id:O,styleId:A}=P0(j.parentStyleSheet,Z,J.styleMirror);if(O&&O!==-1||A&&A!==-1)X({id:O,styleId:A,adds:[{rule:L,index:[...z9(j),z||0]}]});return B.apply(j,P)})}),H.prototype.deleteRule=new Proxy(U[W].deleteRule,{apply:C((B,j,P)=>{let[L]=P,{id:z,styleId:O}=P0(j.parentStyleSheet,Z,J.styleMirror);if(z&&z!==-1||O&&O!==-1)X({id:z,styleId:O,removes:[{index:[...z9(j),L]}]});return B.apply(j,P)})})}),C(()=>{Y.CSSStyleSheet.prototype.insertRule=Q,Y.CSSStyleSheet.prototype.deleteRule=K,q&&(Y.CSSStyleSheet.prototype.replace=q),V&&(Y.CSSStyleSheet.prototype.replaceSync=V),Object.entries(G).forEach(([W,H])=>{H.prototype.insertRule=U[W].insertRule,H.prototype.deleteRule=U[W].deleteRule})})}function z8({mirror:X,stylesheetManager:Z},J){var Y,Q,K;let q=null;if(J.nodeName==="#document")q=X.getId(J);else q=X.getId(w.host(J));let V=J.nodeName==="#document"?(Y=J.defaultView)==null?void 0:Y.Document:(K=(Q=J.ownerDocument)==null?void 0:Q.defaultView)==null?void 0:K.ShadowRoot,G=(V==null?void 0:V.prototype)?Object.getOwnPropertyDescriptor(V==null?void 0:V.prototype,"adoptedStyleSheets"):void 0;if(q===null||q===-1||!V||!G)return()=>{};return Object.defineProperty(J,"adoptedStyleSheets",{configurable:G.configurable,enumerable:G.enumerable,get(){var U;return(U=G.get)==null?void 0:U.call(this)},set(U){var W;let H=(W=G.set)==null?void 0:W.call(this,U);if(q!==null&&q!==-1)try{Z.adoptStyleSheets(U,q)}catch(B){}return H}}),C(()=>{Object.defineProperty(J,"adoptedStyleSheets",{configurable:G.configurable,enumerable:G.enumerable,get:G.get,set:G.set})})}function JG({styleDeclarationCb:X,mirror:Z,ignoreCSSAttributes:J,stylesheetManager:Y},{win:Q}){let K=Q.CSSStyleDeclaration.prototype.setProperty;Q.CSSStyleDeclaration.prototype.setProperty=new Proxy(K,{apply:C((V,G,U)=>{var W;let[H,B,j]=U;if(J.has(H))return K.apply(G,[H,B,j]);let{id:P,styleId:L}=P0((W=G.parentRule)==null?void 0:W.parentStyleSheet,Z,Y.styleMirror);if(P&&P!==-1||L&&L!==-1)X({id:P,styleId:L,set:{property:H,value:B,priority:j},index:z9(G.parentRule)});return V.apply(G,U)})});let q=Q.CSSStyleDeclaration.prototype.removeProperty;return Q.CSSStyleDeclaration.prototype.removeProperty=new Proxy(q,{apply:C((V,G,U)=>{var W;let[H]=U;if(J.has(H))return q.apply(G,[H]);let{id:B,styleId:j}=P0((W=G.parentRule)==null?void 0:W.parentStyleSheet,Z,Y.styleMirror);if(B&&B!==-1||j&&j!==-1)X({id:B,styleId:j,remove:{property:H},index:z9(G.parentRule)});return V.apply(G,U)})}),C(()=>{Q.CSSStyleDeclaration.prototype.setProperty=K,Q.CSSStyleDeclaration.prototype.removeProperty=q})}function XG({mediaInteractionCb:X,blockClass:Z,blockSelector:J,mirror:Y,sampling:Q,doc:K}){let q=C((G)=>j1(C((U)=>{let W=A1(U);if(!W||r(W,Z,J,!0))return;let{currentTime:H,volume:B,muted:j,playbackRate:P,loop:L}=W;X({type:G,id:Y.getId(W),currentTime:H,volume:B,muted:j,playbackRate:P,loop:L})}),Q.media||500)),V=[a("play",q(x0.Play),K),a("pause",q(x0.Pause),K),a("seeked",q(x0.Seeked),K),a("volumechange",q(x0.VolumeChange),K),a("ratechange",q(x0.RateChange),K)];return C(()=>{V.forEach((G)=>G())})}function YG({fontCb:X,doc:Z}){let J=Z.defaultView;if(!J)return()=>{};let Y=[],Q=new WeakMap,K=J.FontFace;J.FontFace=function(G,U,W){let H=new K(G,U,W);return Q.set(H,{family:G,buffer:typeof U!=="string",descriptors:W,fontSource:typeof U==="string"?U:JSON.stringify(Array.from(new Uint8Array(U)))}),H};let q=R0(Z.fonts,"add",function(V){return function(G){return setTimeout(C(()=>{let U=Q.get(G);if(U)X(U),Q.delete(G)}),0),V.apply(this,[G])}});return Y.push(()=>{J.FontFace=K}),Y.push(q),C(()=>{Y.forEach((V)=>V())})}function QG(X){let{doc:Z,mirror:J,blockClass:Y,blockSelector:Q,selectionCb:K}=X,q=!0,V=C(()=>{let G=Z.getSelection();if(!G||q&&(G==null?void 0:G.isCollapsed))return;q=G.isCollapsed||!1;let U=[],W=G.rangeCount||0;for(let H=0;H<W;H++){let B=G.getRangeAt(H),{startContainer:j,startOffset:P,endContainer:L,endOffset:z}=B;if(r(j,Y,Q,!0)||r(L,Y,Q,!0))continue;U.push({start:J.getId(j),startOffset:P,end:J.getId(L),endOffset:z})}K({ranges:U})});return V(),a("selectionchange",V)}function KG({doc:X,customElementCb:Z}){let J=X.defaultView;if(!J||!J.customElements)return()=>{};return R0(J.customElements,"define",function(Q){return function(K,q,V){try{Z({define:{name:K}})}catch(G){console.warn(`Custom element callback failed for ${K}`)}return Q.apply(this,[K,q,V])}})}function qG(X,Z){let{mutationCb:J,mousemoveCb:Y,mouseInteractionCb:Q,scrollCb:K,viewportResizeCb:q,inputCb:V,mediaInteractionCb:G,styleSheetRuleCb:U,styleDeclarationCb:W,canvasMutationCb:H,fontCb:B,selectionCb:j,customElementCb:P}=X;X.mutationCb=(...L)=>{if(Z.mutation)Z.mutation(...L);J(...L)},X.mousemoveCb=(...L)=>{if(Z.mousemove)Z.mousemove(...L);Y(...L)},X.mouseInteractionCb=(...L)=>{if(Z.mouseInteraction)Z.mouseInteraction(...L);Q(...L)},X.scrollCb=(...L)=>{if(Z.scroll)Z.scroll(...L);K(...L)},X.viewportResizeCb=(...L)=>{if(Z.viewportResize)Z.viewportResize(...L);q(...L)},X.inputCb=(...L)=>{if(Z.input)Z.input(...L);V(...L)},X.mediaInteractionCb=(...L)=>{if(Z.mediaInteaction)Z.mediaInteaction(...L);G(...L)},X.styleSheetRuleCb=(...L)=>{if(Z.styleSheetRule)Z.styleSheetRule(...L);U(...L)},X.styleDeclarationCb=(...L)=>{if(Z.styleDeclaration)Z.styleDeclaration(...L);W(...L)},X.canvasMutationCb=(...L)=>{if(Z.canvasMutation)Z.canvasMutation(...L);H(...L)},X.fontCb=(...L)=>{if(Z.font)Z.font(...L);B(...L)},X.selectionCb=(...L)=>{if(Z.selection)Z.selection(...L);j(...L)},X.customElementCb=(...L)=>{if(Z.customElement)Z.customElement(...L);P(...L)}}function GG(X,Z={}){let J=X.doc.defaultView;if(!J)return()=>{};qG(X,Z);let Y;if(X.recordDOM)Y=W8(X,X.doc);let Q=rq(X),K=oq(X),q=H8(X),V=nq(X,{win:J}),G=eq(X),U=XG(X),W=()=>{},H=()=>{},B=()=>{},j=()=>{};if(X.recordDOM){if(W=ZG(X,{win:J}),H=z8(X,X.doc),B=JG(X,{win:J}),X.collectFonts)j=YG(X)}let P=QG(X),L=KG(X),z=[];for(let O of X.plugins)z.push(O.observer(O.callback,J,O.options));return C(()=>{M0.forEach((O)=>O.reset()),Y==null||Y.disconnect(),Q(),K(),q(),V(),G(),U(),W(),H(),B(),j(),P(),L(),z.forEach((O)=>O())})}function d1(X){return typeof window[X]<"u"}function i1(X){return Boolean(typeof window[X]<"u"&&window[X].prototype&&"insertRule"in window[X].prototype&&"deleteRule"in window[X].prototype)}class NZ{constructor(X){F(this,"iframeIdToRemoteIdMap",new WeakMap),F(this,"iframeRemoteIdToIdMap",new WeakMap),this.generateIdFn=X}getId(X,Z,J,Y){let Q=J||this.getIdToRemoteIdMap(X),K=Y||this.getRemoteIdToIdMap(X),q=Q.get(Z);if(!q)q=this.generateIdFn(),Q.set(Z,q),K.set(q,Z);return q}getIds(X,Z){let J=this.getIdToRemoteIdMap(X),Y=this.getRemoteIdToIdMap(X);return Z.map((Q)=>this.getId(X,Q,J,Y))}getRemoteId(X,Z,J){let Y=J||this.getRemoteIdToIdMap(X);if(typeof Z!=="number")return Z;let Q=Y.get(Z);if(!Q)return-1;return Q}getRemoteIds(X,Z){let J=this.getRemoteIdToIdMap(X);return Z.map((Y)=>this.getRemoteId(X,Y,J))}reset(X){if(!X){this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap;return}this.iframeIdToRemoteIdMap.delete(X),this.iframeRemoteIdToIdMap.delete(X)}getIdToRemoteIdMap(X){let Z=this.iframeIdToRemoteIdMap.get(X);if(!Z)Z=new Map,this.iframeIdToRemoteIdMap.set(X,Z);return Z}getRemoteIdToIdMap(X){let Z=this.iframeRemoteIdToIdMap.get(X);if(!Z)Z=new Map,this.iframeRemoteIdToIdMap.set(X,Z);return Z}}class B8{constructor(X){if(F(this,"iframes",new WeakMap),F(this,"crossOriginIframeMap",new WeakMap),F(this,"crossOriginIframeMirror",new NZ(NX)),F(this,"crossOriginIframeStyleMirror"),F(this,"crossOriginIframeRootIdMap",new WeakMap),F(this,"mirror"),F(this,"mutationCb"),F(this,"wrappedEmit"),F(this,"loadListener"),F(this,"stylesheetManager"),F(this,"recordCrossOriginIframes"),this.mutationCb=X.mutationCb,this.wrappedEmit=X.wrappedEmit,this.stylesheetManager=X.stylesheetManager,this.recordCrossOriginIframes=X.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new NZ(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=X.mirror,this.recordCrossOriginIframes)window.addEventListener("message",this.handleMessage.bind(this))}addIframe(X){if(this.iframes.set(X,!0),X.contentWindow)this.crossOriginIframeMap.set(X.contentWindow,X)}addLoadListener(X){this.loadListener=X}attachIframe(X,Z){var J,Y;if(this.mutationCb({adds:[{parentId:this.mirror.getId(X),nextId:null,node:Z}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),this.recordCrossOriginIframes)(J=X.contentWindow)==null||J.addEventListener("message",this.handleMessage.bind(this));if((Y=this.loadListener)==null||Y.call(this,X),X.contentDocument&&X.contentDocument.adoptedStyleSheets&&X.contentDocument.adoptedStyleSheets.length>0)this.stylesheetManager.adoptStyleSheets(X.contentDocument.adoptedStyleSheets,this.mirror.getId(X.contentDocument))}handleMessage(X){let Z=X;if(Z.data.type!=="rrweb"||Z.origin!==Z.data.origin)return;if(!X.source)return;let Y=this.crossOriginIframeMap.get(X.source);if(!Y)return;let Q=this.transformCrossOriginEvent(Y,Z.data.event);if(Q)this.wrappedEmit(Q,Z.data.isCheckout)}transformCrossOriginEvent(X,Z){var J;switch(Z.type){case R.FullSnapshot:{this.crossOriginIframeMirror.reset(X),this.crossOriginIframeStyleMirror.reset(X),this.replaceIdOnNode(Z.data.node,X);let Y=Z.data.node.id;return this.crossOriginIframeRootIdMap.set(X,Y),this.patchRootIdOnNode(Z.data.node,Y),{timestamp:Z.timestamp,type:R.IncrementalSnapshot,data:{source:_.Mutation,adds:[{parentId:this.mirror.getId(X),nextId:null,node:Z.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case R.Meta:case R.Load:case R.DomContentLoaded:return!1;case R.Plugin:return Z;case R.Custom:return this.replaceIds(Z.data.payload,X,["id","parentId","previousId","nextId"]),Z;case R.IncrementalSnapshot:switch(Z.data.source){case _.Mutation:return Z.data.adds.forEach((Y)=>{this.replaceIds(Y,X,["parentId","nextId","previousId"]),this.replaceIdOnNode(Y.node,X);let Q=this.crossOriginIframeRootIdMap.get(X);Q&&this.patchRootIdOnNode(Y.node,Q)}),Z.data.removes.forEach((Y)=>{this.replaceIds(Y,X,["parentId","id"])}),Z.data.attributes.forEach((Y)=>{this.replaceIds(Y,X,["id"])}),Z.data.texts.forEach((Y)=>{this.replaceIds(Y,X,["id"])}),Z;case _.Drag:case _.TouchMove:case _.MouseMove:return Z.data.positions.forEach((Y)=>{this.replaceIds(Y,X,["id"])}),Z;case _.ViewportResize:return!1;case _.MediaInteraction:case _.MouseInteraction:case _.Scroll:case _.CanvasMutation:case _.Input:return this.replaceIds(Z.data,X,["id"]),Z;case _.StyleSheetRule:case _.StyleDeclaration:return this.replaceIds(Z.data,X,["id"]),this.replaceStyleIds(Z.data,X,["styleId"]),Z;case _.Font:return Z;case _.Selection:return Z.data.ranges.forEach((Y)=>{this.replaceIds(Y,X,["start","end"])}),Z;case _.AdoptedStyleSheet:return this.replaceIds(Z.data,X,["id"]),this.replaceStyleIds(Z.data,X,["styleIds"]),(J=Z.data.styles)==null||J.forEach((Y)=>{this.replaceStyleIds(Y,X,["styleId"])}),Z}}return!1}replace(X,Z,J,Y){for(let Q of Y){if(!Array.isArray(Z[Q])&&typeof Z[Q]!=="number")continue;if(Array.isArray(Z[Q]))Z[Q]=X.getIds(J,Z[Q]);else Z[Q]=X.getId(J,Z[Q])}return Z}replaceIds(X,Z,J){return this.replace(this.crossOriginIframeMirror,X,Z,J)}replaceStyleIds(X,Z,J){return this.replace(this.crossOriginIframeStyleMirror,X,Z,J)}replaceIdOnNode(X,Z){if(this.replaceIds(X,Z,["id","rootId"]),"childNodes"in X)X.childNodes.forEach((J)=>{this.replaceIdOnNode(J,Z)})}patchRootIdOnNode(X,Z){if(X.type!==q8.Document&&!X.rootId)X.rootId=Z;if("childNodes"in X)X.childNodes.forEach((J)=>{this.patchRootIdOnNode(J,Z)})}}class j8{constructor(X){F(this,"shadowDoms",new WeakSet),F(this,"mutationCb"),F(this,"scrollCb"),F(this,"bypassOptions"),F(this,"mirror"),F(this,"restoreHandlers",[]),this.mutationCb=X.mutationCb,this.scrollCb=X.scrollCb,this.bypassOptions=X.bypassOptions,this.mirror=X.mirror,this.init()}init(){this.reset(),this.patchAttachShadow(Element,document)}addShadowRoot(X,Z){if(!Y1(X))return;if(this.shadowDoms.has(X))return;this.shadowDoms.add(X);let J=W8({...this.bypassOptions,doc:Z,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this},X);this.restoreHandlers.push(()=>J.disconnect()),this.restoreHandlers.push(H8({...this.bypassOptions,scrollCb:this.scrollCb,doc:X,mirror:this.mirror})),setTimeout(()=>{if(X.adoptedStyleSheets&&X.adoptedStyleSheets.length>0)this.bypassOptions.stylesheetManager.adoptStyleSheets(X.adoptedStyleSheets,this.mirror.getId(w.host(X)));this.restoreHandlers.push(z8({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},X))},0)}observeAttachShadow(X){if(!X.contentWindow||!X.contentDocument)return;this.patchAttachShadow(X.contentWindow.Element,X.contentDocument)}patchAttachShadow(X,Z){let J=this;this.restoreHandlers.push(R0(X.prototype,"attachShadow",function(Y){return function(Q){let K=Y.call(this,Q),q=w.shadowRoot(this);if(q&&K8(this))J.addShadowRoot(q,Z);return K}}))}reset(){this.restoreHandlers.forEach((X)=>{try{X()}catch(Z){}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet}}var h0="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",VG=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(b0=0;b0<h0.length;b0++)VG[h0.charCodeAt(b0)]=b0;var b0,UG=function(X){var Z=new Uint8Array(X),J,Y=Z.length,Q="";for(J=0;J<Y;J+=3)Q+=h0[Z[J]>>2],Q+=h0[(Z[J]&3)<<4|Z[J+1]>>4],Q+=h0[(Z[J+1]&15)<<2|Z[J+2]>>6],Q+=h0[Z[J+2]&63];if(Y%3===2)Q=Q.substring(0,Q.length-1)+"=";else if(Y%3===1)Q=Q.substring(0,Q.length-2)+"==";return Q};var OX=new Map;function WG(X,Z){let J=OX.get(X);if(!J)J=new Map,OX.set(X,J);if(!J.has(Z))J.set(Z,[]);return J.get(Z)}var L8=(X,Z,J)=>{if(!X||!(D8(X,Z)||typeof X==="object"))return;let Y=X.constructor.name,Q=WG(J,Y),K=Q.indexOf(X);if(K===-1)K=Q.length,Q.push(X);return K};function n1(X,Z,J){if(X instanceof Array)return X.map((Y)=>n1(Y,Z,J));else if(X===null)return X;else if(X instanceof Float32Array||X instanceof Float64Array||X instanceof Int32Array||X instanceof Uint32Array||X instanceof Uint8Array||X instanceof Uint16Array||X instanceof Int16Array||X instanceof Int8Array||X instanceof Uint8ClampedArray)return{rr_type:X.constructor.name,args:[Object.values(X)]};else if(X instanceof ArrayBuffer){let Y=X.constructor.name,Q=UG(X);return{rr_type:Y,base64:Q}}else if(X instanceof DataView)return{rr_type:X.constructor.name,args:[n1(X.buffer,Z,J),X.byteOffset,X.byteLength]};else if(X instanceof HTMLImageElement){let Y=X.constructor.name,{src:Q}=X;return{rr_type:Y,src:Q}}else if(X instanceof HTMLCanvasElement)return{rr_type:"HTMLImageElement",src:X.toDataURL()};else if(X instanceof ImageData)return{rr_type:X.constructor.name,args:[n1(X.data,Z,J),X.width,X.height]};else if(D8(X,Z)||typeof X==="object"){let Y=X.constructor.name,Q=L8(X,Z,J);return{rr_type:Y,index:Q}}return X}var P8=(X,Z,J)=>{return X.map((Y)=>n1(Y,Z,J))},D8=(X,Z)=>{let Y=["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"].filter((Q)=>typeof Z[Q]==="function");return Boolean(Y.find((Q)=>X instanceof Z[Q]))};function HG(X,Z,J,Y){let Q=[],K=Object.getOwnPropertyNames(Z.CanvasRenderingContext2D.prototype);for(let q of K)try{if(typeof Z.CanvasRenderingContext2D.prototype[q]!=="function")continue;let V=R0(Z.CanvasRenderingContext2D.prototype,q,function(G){return function(...U){if(!r(this.canvas,J,Y,!0))setTimeout(()=>{let W=P8(U,Z,this);X(this.canvas,{type:l0["2D"],property:q,args:W})},0);return G.apply(this,U)}});Q.push(V)}catch{let V=C9(Z.CanvasRenderingContext2D.prototype,q,{set(G){X(this.canvas,{type:l0["2D"],property:q,args:[G],setter:!0})}});Q.push(V)}return()=>{Q.forEach((q)=>q())}}function zG(X){return X==="experimental-webgl"?"webgl":X}function MX(X,Z,J,Y){let Q=[];try{let K=R0(X.HTMLCanvasElement.prototype,"getContext",function(q){return function(V,...G){if(!r(this,Z,J,!0)){let U=zG(V);if(!("__context"in this))this.__context=U;if(Y&&["webgl","webgl2"].includes(U))if(G[0]&&typeof G[0]==="object"){let W=G[0];if(!W.preserveDrawingBuffer)W.preserveDrawingBuffer=!0}else G.splice(0,1,{preserveDrawingBuffer:!0})}return q.apply(this,[V,...G])}});Q.push(K)}catch{console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return()=>{Q.forEach((K)=>K())}}function wX(X,Z,J,Y,Q,K){let q=[],V=Object.getOwnPropertyNames(X);for(let G of V){if(["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(G))continue;try{if(typeof X[G]!=="function")continue;let U=R0(X,G,function(W){return function(...H){let B=W.apply(this,H);if(L8(B,K,this),"tagName"in this.canvas&&!r(this.canvas,Y,Q,!0)){let j=P8(H,K,this),P={type:Z,property:G,args:j};J(this.canvas,P)}return B}});q.push(U)}catch{let U=C9(X,G,{set(W){J(this.canvas,{type:Z,property:G,args:[W],setter:!0})}});q.push(U)}}return q}function BG(X,Z,J,Y){let Q=[];if(Q.push(...wX(Z.WebGLRenderingContext.prototype,l0.WebGL,X,J,Y,Z)),typeof Z.WebGL2RenderingContext<"u")Q.push(...wX(Z.WebGL2RenderingContext.prototype,l0.WebGL2,X,J,Y,Z));return()=>{Q.forEach((K)=>K())}}var F8="KGZ1bmN0aW9uKCkgewogICJ1c2Ugc3RyaWN0IjsKICB2YXIgY2hhcnMgPSAiQUJDREVGR0hJSktMTU5PUFFSU1RVVldYWVphYmNkZWZnaGlqa2xtbm9wcXJzdHV2d3h5ejAxMjM0NTY3ODkrLyI7CiAgdmFyIGxvb2t1cCA9IHR5cGVvZiBVaW50OEFycmF5ID09PSAidW5kZWZpbmVkIiA/IFtdIDogbmV3IFVpbnQ4QXJyYXkoMjU2KTsKICBmb3IgKHZhciBpID0gMDsgaSA8IGNoYXJzLmxlbmd0aDsgaSsrKSB7CiAgICBsb29rdXBbY2hhcnMuY2hhckNvZGVBdChpKV0gPSBpOwogIH0KICB2YXIgZW5jb2RlID0gZnVuY3Rpb24oYXJyYXlidWZmZXIpIHsKICAgIHZhciBieXRlcyA9IG5ldyBVaW50OEFycmF5KGFycmF5YnVmZmVyKSwgaTIsIGxlbiA9IGJ5dGVzLmxlbmd0aCwgYmFzZTY0ID0gIiI7CiAgICBmb3IgKGkyID0gMDsgaTIgPCBsZW47IGkyICs9IDMpIHsKICAgICAgYmFzZTY0ICs9IGNoYXJzW2J5dGVzW2kyXSA+PiAyXTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMl0gJiAzKSA8PCA0IHwgYnl0ZXNbaTIgKyAxXSA+PiA0XTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMiArIDFdICYgMTUpIDw8IDIgfCBieXRlc1tpMiArIDJdID4+IDZdOwogICAgICBiYXNlNjQgKz0gY2hhcnNbYnl0ZXNbaTIgKyAyXSAmIDYzXTsKICAgIH0KICAgIGlmIChsZW4gJSAzID09PSAyKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDEpICsgIj0iOwogICAgfSBlbHNlIGlmIChsZW4gJSAzID09PSAxKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDIpICsgIj09IjsKICAgIH0KICAgIHJldHVybiBiYXNlNjQ7CiAgfTsKICBjb25zdCBsYXN0QmxvYk1hcCA9IC8qIEBfX1BVUkVfXyAqLyBuZXcgTWFwKCk7CiAgY29uc3QgdHJhbnNwYXJlbnRCbG9iTWFwID0gLyogQF9fUFVSRV9fICovIG5ldyBNYXAoKTsKICBhc3luYyBmdW5jdGlvbiBnZXRUcmFuc3BhcmVudEJsb2JGb3Iod2lkdGgsIGhlaWdodCwgZGF0YVVSTE9wdGlvbnMpIHsKICAgIGNvbnN0IGlkID0gYCR7d2lkdGh9LSR7aGVpZ2h0fWA7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBpZiAodHJhbnNwYXJlbnRCbG9iTWFwLmhhcyhpZCkpIHJldHVybiB0cmFuc3BhcmVudEJsb2JNYXAuZ2V0KGlkKTsKICAgICAgY29uc3Qgb2Zmc2NyZWVuID0gbmV3IE9mZnNjcmVlbkNhbnZhcyh3aWR0aCwgaGVpZ2h0KTsKICAgICAgb2Zmc2NyZWVuLmdldENvbnRleHQoIjJkIik7CiAgICAgIGNvbnN0IGJsb2IgPSBhd2FpdCBvZmZzY3JlZW4uY29udmVydFRvQmxvYihkYXRhVVJMT3B0aW9ucyk7CiAgICAgIGNvbnN0IGFycmF5QnVmZmVyID0gYXdhaXQgYmxvYi5hcnJheUJ1ZmZlcigpOwogICAgICBjb25zdCBiYXNlNjQgPSBlbmNvZGUoYXJyYXlCdWZmZXIpOwogICAgICB0cmFuc3BhcmVudEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICByZXR1cm4gYmFzZTY0OwogICAgfSBlbHNlIHsKICAgICAgcmV0dXJuICIiOwogICAgfQogIH0KICBjb25zdCB3b3JrZXIgPSBzZWxmOwogIHdvcmtlci5vbm1lc3NhZ2UgPSBhc3luYyBmdW5jdGlvbihlKSB7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBjb25zdCB7IGlkLCBiaXRtYXAsIHdpZHRoLCBoZWlnaHQsIGRhdGFVUkxPcHRpb25zIH0gPSBlLmRhdGE7CiAgICAgIGNvbnN0IHRyYW5zcGFyZW50QmFzZTY0ID0gZ2V0VHJhbnNwYXJlbnRCbG9iRm9yKAogICAgICAgIHdpZHRoLAogICAgICAgIGhlaWdodCwKICAgICAgICBkYXRhVVJMT3B0aW9ucwogICAgICApOwogICAgICBjb25zdCBvZmZzY3JlZW4gPSBuZXcgT2Zmc2NyZWVuQ2FudmFzKHdpZHRoLCBoZWlnaHQpOwogICAgICBjb25zdCBjdHggPSBvZmZzY3JlZW4uZ2V0Q29udGV4dCgiMmQiKTsKICAgICAgY3R4LmRyYXdJbWFnZShiaXRtYXAsIDAsIDApOwogICAgICBiaXRtYXAuY2xvc2UoKTsKICAgICAgY29uc3QgYmxvYiA9IGF3YWl0IG9mZnNjcmVlbi5jb252ZXJ0VG9CbG9iKGRhdGFVUkxPcHRpb25zKTsKICAgICAgY29uc3QgdHlwZSA9IGJsb2IudHlwZTsKICAgICAgY29uc3QgYXJyYXlCdWZmZXIgPSBhd2FpdCBibG9iLmFycmF5QnVmZmVyKCk7CiAgICAgIGNvbnN0IGJhc2U2NCA9IGVuY29kZShhcnJheUJ1ZmZlcik7CiAgICAgIGlmICghbGFzdEJsb2JNYXAuaGFzKGlkKSAmJiBhd2FpdCB0cmFuc3BhcmVudEJhc2U2NCA9PT0gYmFzZTY0KSB7CiAgICAgICAgbGFzdEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICAgIHJldHVybiB3b3JrZXIucG9zdE1lc3NhZ2UoeyBpZCB9KTsKICAgICAgfQogICAgICBpZiAobGFzdEJsb2JNYXAuZ2V0KGlkKSA9PT0gYmFzZTY0KSByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQgfSk7CiAgICAgIHdvcmtlci5wb3N0TWVzc2FnZSh7CiAgICAgICAgaWQsCiAgICAgICAgdHlwZSwKICAgICAgICBiYXNlNjQsCiAgICAgICAgd2lkdGgsCiAgICAgICAgaGVpZ2h0CiAgICAgIH0pOwogICAgICBsYXN0QmxvYk1hcC5zZXQoaWQsIGJhc2U2NCk7CiAgICB9IGVsc2UgewogICAgICByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQ6IGUuZGF0YS5pZCB9KTsKICAgIH0KICB9Owp9KSgpOwovLyMgc291cmNlTWFwcGluZ1VSTD1pbWFnZS1iaXRtYXAtZGF0YS11cmwtd29ya2VyLUlKcEM3Z19iLmpzLm1hcAo=",jG=(X)=>Uint8Array.from(atob(X),(Z)=>Z.charCodeAt(0)),_X=typeof window<"u"&&window.Blob&&new Blob([jG(F8)],{type:"text/javascript;charset=utf-8"});function LG(X){let Z;try{if(Z=_X&&(window.URL||window.webkitURL).createObjectURL(_X),!Z)throw"";let J=new Worker(Z,{name:X==null?void 0:X.name});return J.addEventListener("error",()=>{(window.URL||window.webkitURL).revokeObjectURL(Z)}),J}catch(J){return new Worker("data:text/javascript;base64,"+F8,{name:X==null?void 0:X.name})}finally{Z&&(window.URL||window.webkitURL).revokeObjectURL(Z)}}class A8{constructor(X){F(this,"pendingCanvasMutations",new Map),F(this,"rafStamps",{latestId:0,invokeId:null}),F(this,"mirror"),F(this,"mutationCb"),F(this,"resetObservers"),F(this,"frozen",!1),F(this,"locked",!1),F(this,"processMutation",(V,G)=>{if(this.rafStamps.invokeId&&this.rafStamps.latestId!==this.rafStamps.invokeId||!this.rafStamps.invokeId)this.rafStamps.invokeId=this.rafStamps.latestId;if(!this.pendingCanvasMutations.has(V))this.pendingCanvasMutations.set(V,[]);this.pendingCanvasMutations.get(V).push(G)});let{sampling:Z="all",win:J,blockClass:Y,blockSelector:Q,recordCanvas:K,dataURLOptions:q}=X;if(this.mutationCb=X.mutationCb,this.mirror=X.mirror,K&&Z==="all")this.initCanvasMutationObserver(J,Y,Q);if(K&&typeof Z==="number")this.initCanvasFPSObserver(Z,J,Y,Q,{dataURLOptions:q})}reset(){this.pendingCanvasMutations.clear(),this.resetObservers&&this.resetObservers()}freeze(){this.frozen=!0}unfreeze(){this.frozen=!1}lock(){this.locked=!0}unlock(){this.locked=!1}initCanvasFPSObserver(X,Z,J,Y,Q){let K=MX(Z,J,Y,!0),q=new Map,V=new LG;V.onmessage=(j)=>{let{id:P}=j.data;if(q.set(P,!1),!("base64"in j.data))return;let{base64:L,type:z,width:O,height:A}=j.data;this.mutationCb({id:P,type:l0["2D"],commands:[{property:"clearRect",args:[0,0,O,A]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:L}],type:z}]},0,0]}]})};let G=1000/X,U=0,W,H=()=>{let j=[];return Z.document.querySelectorAll("canvas").forEach((P)=>{if(!r(P,J,Y,!0))j.push(P)}),j},B=(j)=>{if(U&&j-U<G){W=requestAnimationFrame(B);return}U=j,H().forEach(async(P)=>{var L;let z=this.mirror.getId(P);if(q.get(z))return;if(P.width===0||P.height===0)return;if(q.set(z,!0),["webgl","webgl2"].includes(P.__context)){let A=P.getContext(P.__context);if(((L=A==null?void 0:A.getContextAttributes())==null?void 0:L.preserveDrawingBuffer)===!1)A.clear(A.COLOR_BUFFER_BIT)}let O=await createImageBitmap(P);V.postMessage({id:z,bitmap:O,width:P.width,height:P.height,dataURLOptions:Q.dataURLOptions},[O])}),W=requestAnimationFrame(B)};W=requestAnimationFrame(B),this.resetObservers=()=>{K(),cancelAnimationFrame(W)}}initCanvasMutationObserver(X,Z,J){this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher();let Y=MX(X,Z,J,!1),Q=HG(this.processMutation.bind(this),X,Z,J),K=BG(this.processMutation.bind(this),X,Z,J);this.resetObservers=()=>{Y(),Q(),K()}}startPendingCanvasMutationFlusher(){requestAnimationFrame(()=>this.flushPendingCanvasMutations())}startRAFTimestamping(){let X=(Z)=>{this.rafStamps.latestId=Z,requestAnimationFrame(X)};requestAnimationFrame(X)}flushPendingCanvasMutations(){this.pendingCanvasMutations.forEach((X,Z)=>{let J=this.mirror.getId(Z);this.flushPendingCanvasMutationFor(Z,J)}),requestAnimationFrame(()=>this.flushPendingCanvasMutations())}flushPendingCanvasMutationFor(X,Z){if(this.frozen||this.locked)return;let J=this.pendingCanvasMutations.get(X);if(!J||Z===-1)return;let Y=J.map((K)=>{let{type:q,...V}=K;return V}),{type:Q}=J[0];this.mutationCb({id:Z,type:Q,commands:Y}),this.pendingCanvasMutations.delete(X)}}class O8{constructor(X){F(this,"trackedLinkElements",new WeakSet),F(this,"mutationCb"),F(this,"adoptedStyleSheetCb"),F(this,"styleMirror",new Y8),this.mutationCb=X.mutationCb,this.adoptedStyleSheetCb=X.adoptedStyleSheetCb}attachLinkElement(X,Z){if("_cssText"in Z.attributes)this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:Z.id,attributes:Z.attributes}]});this.trackLinkElement(X)}trackLinkElement(X){if(this.trackedLinkElements.has(X))return;this.trackedLinkElements.add(X),this.trackStylesheetInLinkElement(X)}adoptStyleSheets(X,Z){if(X.length===0)return;let J={id:Z,styleIds:[]},Y=[];for(let Q of X){let K;if(!this.styleMirror.has(Q))K=this.styleMirror.add(Q),Y.push({styleId:K,rules:Array.from(Q.rules||CSSRule,(q,V)=>({rule:IX(q,Q.href),index:V}))});else K=this.styleMirror.getId(Q);J.styleIds.push(K)}if(Y.length>0)J.styles=Y;this.adoptedStyleSheetCb(J)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(X){}}class M8{constructor(){F(this,"nodeMap",new WeakMap),F(this,"active",!1)}inOtherBuffer(X,Z){let J=this.nodeMap.get(X);return J&&Array.from(J).some((Y)=>Y!==Z)}add(X,Z){if(!this.active)this.active=!0,requestAnimationFrame(()=>{this.nodeMap=new WeakMap,this.active=!1});this.nodeMap.set(X,(this.nodeMap.get(X)||new Set).add(Z))}destroy(){}}var u,t1,a9,B9=!1;try{if(Array.from([1],(X)=>X*2)[0]!==2){let X=document.createElement("iframe");document.body.appendChild(X),Array.from=((RJ=X.contentWindow)==null?void 0:RJ.Array.from)||Array.from,document.body.removeChild(X)}}catch(X){console.debug("Unable to override Array.from",X)}var X0=FY();function E0(X={}){let{emit:Z,checkoutEveryNms:J,checkoutEveryNth:Y,blockClass:Q="rr-block",blockSelector:K=null,ignoreClass:q="rr-ignore",ignoreSelector:V=null,maskTextClass:G="rr-mask",maskTextSelector:U=null,inlineStylesheet:W=!0,maskAllInputs:H,maskInputOptions:B,slimDOMOptions:j,maskInputFn:P,maskTextFn:L,hooks:z,packFn:O,sampling:A={},dataURLOptions:D={},mousemoveWait:M,recordDOM:T=!0,recordCanvas:f=!1,recordCrossOriginIframes:p=!1,recordAfter:v=X.recordAfter==="DOMContentLoaded"?X.recordAfter:"load",userTriggeredOnInput:c=!1,collectFonts:i=!1,inlineImages:t=!1,plugins:K0,keepIframeSrcFn:E=()=>!1,ignoreCSSAttributes:i0=new Set([]),errorHandler:s0}=X;sq(s0);let l=p?window.parent===window:!0,e=!1;if(!l)try{if(window.parent.document)e=!1}catch(I){e=!0}if(l&&!Z)throw Error("emit function is required");if(!l&&!e)return()=>{};if(M!==void 0&&A.mousemove===void 0)A.mousemove=M;X0.reset();let D0=H===!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}:B!==void 0?B:{password:!0},q0=xX(j);cq();let HJ,T9=0,zJ=(I)=>{for(let J0 of K0||[])if(J0.eventProcessor)I=J0.eventProcessor(I);if(O&&!e)I=O(I);return I};u=(I,J0)=>{var g;let m=I;if(m.timestamp=H9(),((g=M0[0])==null?void 0:g.isFrozen())&&m.type!==R.FullSnapshot&&!(m.type===R.IncrementalSnapshot&&m.data.source===_.Mutation))M0.forEach((n)=>n.unfreeze());if(l)Z==null||Z(zJ(m),J0);else if(e){let n={type:"rrweb",event:zJ(m),origin:window.location.origin,isCheckout:J0};window.parent.postMessage(n,"*")}if(m.type===R.FullSnapshot)HJ=m,T9=0;else if(m.type===R.IncrementalSnapshot){if(m.data.source===_.Mutation&&m.data.isAttachIframe)return;T9++;let n=Y&&T9>=Y,S=J&&m.timestamp-HJ.timestamp>J;if(n||S)t1(!0)}};let M1=(I)=>{u({type:R.IncrementalSnapshot,data:{source:_.Mutation,...I}})},BJ=(I)=>u({type:R.IncrementalSnapshot,data:{source:_.Scroll,...I}}),jJ=(I)=>u({type:R.IncrementalSnapshot,data:{source:_.CanvasMutation,...I}}),F0=new O8({mutationCb:M1,adoptedStyleSheetCb:(I)=>u({type:R.IncrementalSnapshot,data:{source:_.AdoptedStyleSheet,...I}})}),A0=new B8({mirror:X0,mutationCb:M1,stylesheetManager:F0,recordCrossOriginIframes:p,wrappedEmit:u});for(let I of K0||[])if(I.getMirror)I.getMirror({nodeMirror:X0,crossOriginIframeMirror:A0.crossOriginIframeMirror,crossOriginIframeStyleMirror:A0.crossOriginIframeStyleMirror});let S9=new M8;a9=new A8({recordCanvas:f,mutationCb:jJ,win:window,blockClass:Q,blockSelector:K,mirror:X0,sampling:A.canvas,dataURLOptions:D});let w1=new j8({mutationCb:M1,scrollCb:BJ,bypassOptions:{blockClass:Q,blockSelector:K,maskTextClass:G,maskTextSelector:U,inlineStylesheet:W,maskInputOptions:D0,dataURLOptions:D,maskTextFn:L,maskInputFn:P,recordCanvas:f,inlineImages:t,sampling:A,slimDOMOptions:q0,iframeManager:A0,stylesheetManager:F0,canvasManager:a9,keepIframeSrcFn:E,processedNodeManager:S9},mirror:X0});t1=(I=!1)=>{if(!T)return;u({type:R.Meta,data:{href:window.location.href,width:t6(),height:n6()}},I),F0.reset(),w1.init(),M0.forEach((g)=>g.lock());let J0=cY(document,{mirror:X0,blockClass:Q,blockSelector:K,maskTextClass:G,maskTextSelector:U,inlineStylesheet:W,maskAllInputs:D0,maskTextFn:L,maskInputFn:P,slimDOM:q0,dataURLOptions:D,recordCanvas:f,inlineImages:t,onSerialize:(g)=>{if(J8(g,X0))A0.addIframe(g);if(X8(g,X0))F0.trackLinkElement(g);if(IZ(g))w1.addShadowRoot(w.shadowRoot(g),document)},onIframeLoad:(g,m)=>{A0.attachIframe(g,m),w1.observeAttachShadow(g)},onStylesheetLoad:(g,m)=>{F0.attachLinkElement(g,m)},keepIframeSrcFn:E});if(!J0)return console.warn("Failed to snapshot the document");if(u({type:R.FullSnapshot,data:{node:J0,initialOffset:o6(window)}},I),M0.forEach((g)=>g.unlock()),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0)F0.adoptStyleSheets(document.adoptedStyleSheets,X0.getId(document))};try{let I=[],J0=(m)=>{var n;return C(GG)({mutationCb:M1,mousemoveCb:(S,f9)=>u({type:R.IncrementalSnapshot,data:{source:f9,positions:S}}),mouseInteractionCb:(S)=>u({type:R.IncrementalSnapshot,data:{source:_.MouseInteraction,...S}}),scrollCb:BJ,viewportResizeCb:(S)=>u({type:R.IncrementalSnapshot,data:{source:_.ViewportResize,...S}}),inputCb:(S)=>u({type:R.IncrementalSnapshot,data:{source:_.Input,...S}}),mediaInteractionCb:(S)=>u({type:R.IncrementalSnapshot,data:{source:_.MediaInteraction,...S}}),styleSheetRuleCb:(S)=>u({type:R.IncrementalSnapshot,data:{source:_.StyleSheetRule,...S}}),styleDeclarationCb:(S)=>u({type:R.IncrementalSnapshot,data:{source:_.StyleDeclaration,...S}}),canvasMutationCb:jJ,fontCb:(S)=>u({type:R.IncrementalSnapshot,data:{source:_.Font,...S}}),selectionCb:(S)=>{u({type:R.IncrementalSnapshot,data:{source:_.Selection,...S}})},customElementCb:(S)=>{u({type:R.IncrementalSnapshot,data:{source:_.CustomElement,...S}})},blockClass:Q,ignoreClass:q,ignoreSelector:V,maskTextClass:G,maskTextSelector:U,maskInputOptions:D0,inlineStylesheet:W,sampling:A,recordDOM:T,recordCanvas:f,inlineImages:t,userTriggeredOnInput:c,collectFonts:i,doc:m,maskInputFn:P,maskTextFn:L,keepIframeSrcFn:E,blockSelector:K,slimDOMOptions:q0,dataURLOptions:D,mirror:X0,iframeManager:A0,stylesheetManager:F0,shadowDomManager:w1,processedNodeManager:S9,canvasManager:a9,ignoreCSSAttributes:i0,plugins:((n=K0==null?void 0:K0.filter((S)=>S.observer))==null?void 0:n.map((S)=>({observer:S.observer,options:S.options,callback:(f9)=>u({type:R.Plugin,data:{plugin:S.name,payload:f9}})})))||[]},z)};A0.addLoadListener((m)=>{try{I.push(J0(m.contentDocument))}catch(n){console.warn(n)}});let g=()=>{t1(),I.push(J0(document)),B9=!0};if(["interactive","complete"].includes(document.readyState))g();else I.push(a("DOMContentLoaded",()=>{if(u({type:R.DomContentLoaded,data:{}}),v==="DOMContentLoaded")g()})),I.push(a("load",()=>{if(u({type:R.Load,data:{}}),v==="load")g()},window));return()=>{I.forEach((m)=>{try{m()}catch(n){if(!String(n).toLowerCase().includes("cross-origin"))console.warn(n)}}),S9.destroy(),B9=!1,aq()}}catch(I){console.warn(I)}}E0.addCustomEvent=(X,Z)=>{if(!B9)throw Error("please add custom event after start recording");u({type:R.Custom,data:{tag:X,payload:Z}})};E0.freezePage=()=>{M0.forEach((X)=>X.freeze())};E0.takeFullSnapshot=(X)=>{if(!B9)throw Error("please take full snapshot after start recording");t1(X)};E0.mirror=X0;/*! *****************************************************************************
|
|
60
|
+
Copyright (c) Microsoft Corporation.
|
|
61
|
+
|
|
62
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
63
|
+
purpose with or without fee is hereby granted.
|
|
64
|
+
|
|
65
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
66
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
67
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
68
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
69
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
70
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
71
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
72
|
+
***************************************************************************** */var CX;(function(X){X[X.NotStarted=0]="NotStarted",X[X.Running=1]="Running",X[X.Stopped=2]="Stopped"})(CX||(CX={}));var{addCustomEvent:w8}=E0;var JJ=_1(),PG=61440,_8=(X,Z)=>{try{let J=new XMLHttpRequest;J.open("POST",X,!0),J.setRequestHeader("Content-Type","application/json"),J.send(Z)}catch(J){}},XJ=(X,Z)=>{let J=o0(),Y=!!J,Q=JJ??(Y?`${J}/api/track`:`${n0()}/events`),K=r0(),q=JSON.stringify({...Z,websiteId:K,type:X});if(JJ||!Y){_8(Q,q);return}if(q.length>PG){_8(Q,q);return}if(typeof navigator.sendBeacon==="function"){let V=new Blob([q],{type:"application/json"});if(navigator.sendBeacon(Q,V))return}fetch(Q,{method:"POST",headers:{"Content-Type":"application/json"},body:q,keepalive:!0}).catch(()=>{})},C8=async(X,Z)=>{let J=o0(),Q=JJ??(J?`${J}/api/track`:`${n0()}/events`),K=r0(),q=JSON.stringify({...Z,websiteId:K,type:X});try{let V=await fetch(Q,{method:"POST",headers:{"Content-Type":"application/json"},body:q,credentials:"omit"});if(!V.ok)return null;return await V.json()}catch{return null}};var YJ="_fs_vid",QJ="_fs_sid",KJ="_fs_sts",DG=1800000,R8="_fs_vid",E8="_fs_sid",FG=(X)=>{let Z=document.cookie.match(new RegExp(`(?:^|; )${X}=([^;]*)`));return Z?decodeURIComponent(Z[1]):null},I8=(X,Z,J)=>{let Y=new Date(Date.now()+J*86400000).toUTCString(),Q=DJ(),K=Q?`;domain=.${Q}`:"";document.cookie=`${X}=${encodeURIComponent(Z)};expires=${Y};path=/${K};SameSite=Lax;Secure`};var AG=()=>{let X=new URLSearchParams(window.location.search),Z=X.get(R8)||void 0,J=X.get(E8)||void 0;if(Z||J){X.delete(R8),X.delete(E8);let Y=X.toString(),Q=window.location.pathname+(Y?`?${Y}`:"")+window.location.hash;history.replaceState(null,"",Q)}return{vid:Z,sid:J}},qJ=null,$8=()=>{if(qJ===null)qJ=AG();return qJ},N8=()=>{if(b9())return;let X=$8();if(X.vid){I8(YJ,X.vid,730);let J=X.vid;return X.vid=void 0,J}let Z=FG(YJ);if(!Z)Z=a0(),I8(YJ,Z,730);return Z},T8=()=>{if(b9())return;let X=$8();if(X.sid){let Q=X.sid;return sessionStorage.setItem(QJ,Q),sessionStorage.setItem(KJ,Date.now().toString()),X.sid=void 0,Q}let Z=Date.now(),J=parseInt(sessionStorage.getItem(KJ)||"0",10),Y=sessionStorage.getItem(QJ);if(!Y||Z-J>DG)Y=a0(),sessionStorage.setItem(QJ,Y);return sessionStorage.setItem(KJ,Z.toString()),Y};var S8="_fs_rid",OG=15000,MG=262144,wG=500,$0=[],VJ=0,I9=0,f8=0,O1=!1,T0=!1,j0=null,R9=null,k8=OG,$9="",E9,N0=v8(),I0=[];function v8(){return{hasClicks:!1,hasInputs:!1,hasErrors:!1,hasRageClicks:!1}}var h8=[],_G=()=>{let X=[],Z=_1();if(Z)X.push(Z);let J=o0();if(J)X.push(`${J}/api/track`);let Y=n0();if(Y)X.push(`${Y}/events`);return X},GJ=(X)=>h8.some((Z)=>X.indexOf(Z)===0)||X.indexOf("analytics.flowsery.com")!==-1,CG=(X)=>{if(typeof X==="string")return X;if(X instanceof URL)return X.href;return X?.url??""},d0=(X,Z)=>{if(!O1||T0)return;try{w8(X,Z)}catch{}},RG=()=>{try{let Z=sessionStorage.getItem(S8);if(Z)return Z}catch{}let X=a0();try{sessionStorage.setItem(S8,X)}catch{}return X},EG=async(X)=>{let Z=window.CompressionStream;if(typeof Z>"u")return{encoding:"identity+base64+jsonl",payload:btoa(unescape(encodeURIComponent(X)))};let Y=new Blob([X]).stream().pipeThrough(new Z("gzip")),Q=await new Response(Y).arrayBuffer(),K=new Uint8Array(Q),q="";for(let V=0;V<K.length;V++)q+=String.fromCharCode(K[V]);return{encoding:"gzip+base64+jsonl",payload:btoa(q)}},IG=(X)=>{let Z=Date.now();I0.push({t:Z,x:X.x||0,y:X.y||0});while(I0.length&&Z-I0[0].t>500)I0.shift();if(I0.length<3)return!1;let J=I0[0];return I0.every((Y)=>Math.abs(Y.x-J.x)<30&&Math.abs(Y.y-J.y)<30)},N9=async(X)=>{if(T0)return;if($0.length===0&&!X)return;if(!O1&&$0.length===0)return;let Z=Date.now(),J=I9||Z,Y=$0.length,Q=$0.map((V)=>JSON.stringify(V)).join(`
|
|
73
|
+
`),K=N0;if($0=[],VJ=0,I9=0,N0=v8(),Y===0&&X){XJ("recording_chunk",{recordingUid:$9,seq:f8++,startedAt:J,endedAt:Z,eventCount:0,payload:"",finalize:!0,encoding:"identity+base64+jsonl"});return}let q=await EG(Q);XJ("recording_chunk",{recordingUid:$9,seq:f8++,startedAt:J,endedAt:Z,eventCount:Y,encoding:q.encoding,payload:q.payload,hasClicks:K.hasClicks,hasInputs:K.hasInputs,hasErrors:K.hasErrors,hasRageClicks:K.hasRageClicks,finalize:X})},$G=()=>{if(j0)return;j0=setTimeout(()=>{j0=null,N9(!1)},k8)},UJ=(X)=>{if(T0)return;if(j0)clearTimeout(j0),j0=null;if(R9)clearTimeout(R9),R9=null;if(N9(X),E9)E9(),E9=void 0;T0=!0,O1=!1},NG=(X)=>{if(typeof X!=="number"||X===-1)return;if(!Number.isFinite(X)||X<=0){UJ(!0);return}R9=setTimeout(()=>{UJ(!0)},X)},TG=(X)=>{if(!O1||T0)return;if(!I9)I9=X.timestamp||Date.now();let Z=JSON.stringify(X);if(VJ+=Z.length,$0.push(X),X.type===3&&X.data){if(X.data.source===2&&X.data.type===2){if(N0.hasClicks=!0,IG(X.data))N0.hasRageClicks=!0}if(X.data.source===5)N0.hasInputs=!0}if($0.length>=wG||VJ>=MG){if(j0)clearTimeout(j0),j0=null;N9(!1)}else $G()},SG=(X)=>{if(X==="strict")return{maskAllInputs:!0,maskTextSelector:"*",blockSelector:"video, audio, canvas",recordCanvas:!1};if(X==="relaxed")return{maskAllInputs:!1};return{maskAllInputs:!0,maskInputOptions:{password:!0,email:!0,tel:!0}}},fG=(X)=>{let Z=SG(X);Z.emit=TG;try{let J=E0(Z);if(typeof J==="function")E9=J}catch{T0=!0}},xG=()=>{window.addEventListener("error",(X)=>{N0.hasErrors=!0,d0("error",{message:X.message,source:X.filename,line:X.lineno,column:X.colno,stack:X.error?.stack?.slice(0,2000)})}),window.addEventListener("unhandledrejection",(X)=>{N0.hasErrors=!0;let Z=X.reason;d0("error",{message:typeof Z==="string"?Z:Z?.message,stack:typeof Z==="object"?Z?.stack?.slice(0,2000):void 0,unhandledRejection:!0})})},x8=!1,bG=()=>{if(x8)return;x8=!0,h8=_G();let X=window.fetch;if(typeof X==="function"){let Q=X.bind(window);window.fetch=(K,q)=>{let V=CG(K),G=q?.method||K?.method||"GET",U=Date.now();return Q(K,q).then((W)=>{if(W.status>=400&&!GJ(V))d0("network",{url:V,method:G,status:W.status,durationMs:Date.now()-U});return W},(W)=>{if(!GJ(V))d0("network",{url:V,method:G,status:0,error:W?.message,durationMs:Date.now()-U});throw W})}}let Z=XMLHttpRequest.prototype,J=Z.open,Y=Z.send;Z.open=function(Q,K,...q){return this.__fsNet={method:Q,url:typeof K==="string"?K:K.href,startedAt:0},J.apply(this,[Q,K,...q])},Z.send=function(...Q){let K=this.__fsNet;if(K)K.startedAt=Date.now(),this.addEventListener("loadend",()=>{if((this.status===0||this.status>=400)&&!GJ(K.url))d0("network",{url:K.url,method:K.method,status:this.status,durationMs:Date.now()-K.startedAt})});return Y.apply(this,Q)}},b8=!1,kG=()=>{if(b8)return;b8=!0;let X=location.href,Z=()=>{if(location.href===X)return;X=location.href,d0("navigation",{url:location.href,title:document.title})},J=history.pushState,Y=history.replaceState;history.pushState=function(...Q){let K=J.apply(this,Q);return Z(),K},history.replaceState=function(...Q){let K=Y.apply(this,Q);return Z(),K},window.addEventListener("popstate",Z),window.addEventListener("hashchange",Z)},vG=()=>{let X=()=>{UJ(!0)};document.addEventListener("visibilitychange",()=>{if(document.visibilityState==="hidden")N9(!1)}),window.addEventListener("pagehide",X),window.addEventListener("beforeunload",X)},WJ=async()=>{let X=N8(),Z=T8();if(!X||!Z)return;$9=RG();let J=await C8("recording_start",{recordingUid:$9,visitorUid:X,sessionUid:Z,startUrl:location.href,startTitle:document.title,viewportWidth:window.innerWidth,viewportHeight:window.innerHeight});if(!J||J.accepted!==!0){T0=!0;return}if(O1=!0,typeof J.flushIntervalMs==="number"&&J.flushIntervalMs>=1000&&J.flushIntervalMs<=60000)k8=J.flushIntervalMs;fG(J.privacyLevel||"balanced"),xG(),bG(),kG(),vG(),NG(J.maxDurationMs)};var y8=()=>{if(PJ())return;if(!r0())return;if(CJ())return;if(FJ()&&!AJ())return;if(OJ()&&!MJ())return;if(wJ()&&!_J())return;WJ()};if(document.readyState==="loading")document.addEventListener("DOMContentLoaded",y8);else y8();})();
|