@appsurify-testmap/rrweb-snapshot 2.1.3-alpha.4 → 3.1.1-alpha.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,45 +1,44 @@
1
- (function (g, f) {
2
- if ("object" == typeof exports && "object" == typeof module) {
3
- module.exports = f();
4
- } else if ("function" == typeof define && define.amd) {
5
- define("rrwebSnapshot", [], f);
6
- } else if ("object" == typeof exports) {
7
- exports["rrwebSnapshot"] = f();
8
- } else {
9
- g["rrwebSnapshot"] = f();
10
- }
11
- }(this, () => {
12
- var exports = {};
13
- var module = { exports };
14
- "use strict";var li=Object.defineProperty,ai=Object.defineProperties;var ui=Object.getOwnPropertyDescriptors;var fe=Object.getOwnPropertySymbols;var At=Object.prototype.hasOwnProperty,Mt=Object.prototype.propertyIsEnumerable;var Rt=(i,e,t)=>e in i?li(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,$=(i,e)=>{for(var t in e||(e={}))At.call(e,t)&&Rt(i,t,e[t]);if(fe)for(var t of fe(e))Mt.call(e,t)&&Rt(i,t,e[t]);return i},Z=(i,e)=>ai(i,ui(e));var We=(i,e)=>{var t={};for(var r in i)At.call(i,r)&&e.indexOf(r)<0&&(t[r]=i[r]);if(i!=null&&fe)for(var r of fe(i))e.indexOf(r)<0&&Mt.call(i,r)&&(t[r]=i[r]);return t};var ci=Object.defineProperty,fi=(i,e,t)=>e in i?ci(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,_t=(i,e,t)=>fi(i,typeof e!="symbol"?e+"":e,t);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var y=(i=>(i[i.Document=0]="Document",i[i.DocumentType=1]="DocumentType",i[i.Element=2]="Element",i[i.Text=3]="Text",i[i.CDATA=4]="CDATA",i[i.Comment=5]="Comment",i))(y||{});const kt={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},Tt={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},he={},hi=()=>!!globalThis.Zone;function ht(i){if(he[i])return he[i];const e=globalThis[i],t=e.prototype,r=i in kt?kt[i]:void 0,s=!!(r&&r.every(a=>{var l,u;return!!((u=(l=Object.getOwnPropertyDescriptor(t,a))==null?void 0:l.get)!=null&&u.toString().includes("[native code]"))})),o=i in Tt?Tt[i]:void 0,n=!!(o&&o.every(a=>{var l;return typeof t[a]=="function"&&((l=t[a])==null?void 0:l.toString().includes("[native code]"))}));if(s&&n&&!hi())return he[i]=e.prototype,e.prototype;try{const a=document.createElement("iframe");document.body.appendChild(a);const l=a.contentWindow;if(!l)return e.prototype;const u=l[i].prototype;return document.body.removeChild(a),u?he[i]=u:t}catch(a){return t}}const Ve={};function U(i,e,t){var r;const s=`${i}.${String(t)}`;if(Ve[s])return Ve[s].call(e);const o=ht(i),n=(r=Object.getOwnPropertyDescriptor(o,t))==null?void 0:r.get;return n?(Ve[s]=n,n.call(e)):e[t]}const Ge={};function tr(i,e,t){const r=`${i}.${String(t)}`;if(Ge[r])return Ge[r].bind(e);const o=ht(i)[t];return typeof o!="function"?e[t]:(Ge[r]=o,o.bind(e))}function pi(i){return U("Node",i,"childNodes")}function di(i){return U("Node",i,"parentNode")}function mi(i){return U("Node",i,"parentElement")}function gi(i){return U("Node",i,"textContent")}function yi(i,e){return tr("Node",i,"contains")(e)}function wi(i){return tr("Node",i,"getRootNode")()}function bi(i){return!i||!("host"in i)?null:U("ShadowRoot",i,"host")}function Ci(i){return i.styleSheets}function Si(i){return!i||!("shadowRoot"in i)?null:U("Element",i,"shadowRoot")}function xi(i,e){return U("Element",i,"querySelector")(e)}function vi(i,e){return U("Element",i,"querySelectorAll")(e)}function Ei(){return ht("MutationObserver").constructor}function Ni(i,e,t){try{if(!(e in i))return()=>{};const r=i[e],s=t(r);return typeof s=="function"&&(s.prototype=s.prototype||{},Object.defineProperties(s,{__rrweb_original__:{enumerable:!1,value:r}})),i[e]=s,()=>{i[e]=r}}catch(r){return()=>{}}}function Oi(i){const e=i.tagName.toLowerCase(),t=i.id?`#${i.id}`:"",r=i.classList.length?"."+Array.from(i.classList).join("."):"";return`${e}${t}${r}`}function Ri(i){var p;var e,t;const r=(p=(e=i.ownerDocument)==null?void 0:e.defaultView)!=null?p:window,s=i.getBoundingClientRect(),o=r.innerWidth||r.document.documentElement.clientWidth||0,n=r.innerHeight||r.document.documentElement.clientHeight||0,a=s.width>0&&s.height>0&&s.bottom>0&&s.right>0&&s.top<n&&s.left<o,l=(t=r.getComputedStyle)==null?void 0:t.call(r,i),c=!!l&&l.display!=="none"&&l.visibility!=="hidden"&&(parseFloat(l.opacity)||0)>0&&a;let h=0;if(c){const g=Math.max(0,Math.min(s.right,o)-Math.max(s.left,0)),m=Math.max(0,Math.min(s.bottom,n)-Math.max(s.top,0)),x=g*m,f=s.width*s.height;h=f>0?x/f:0}return{isVisible:c,ratio:h}}const R={childNodes:pi,parentNode:di,parentElement:mi,textContent:gi,contains:yi,getRootNode:wi,host:bi,styleSheets:Ci,shadowRoot:Si,querySelector:xi,querySelectorAll:vi,mutationObserver:Ei,patch:Ni,describeNode:Oi,getElementVisibility:Ri};function G(i){return i.nodeType===i.ELEMENT_NODE}function rr(i){const e=i&&"host"in i&&"mode"in i&&R.host(i)||null;return!!(e&&"shadowRoot"in e&&R.shadowRoot(e)===i)}function xe(i){return Object.prototype.toString.call(i)==="[object ShadowRoot]"}function Ai(i){return i.includes(" background-clip: text;")&&!i.includes(" -webkit-background-clip: text;")&&(i=i.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;")),i}function ir(i){const{cssText:e}=i;if(e.split('"').length<3)return e;const t=["@import",`url(${JSON.stringify(i.href)})`];return i.layerName===""?t.push("layer"):i.layerName&&t.push(`layer(${i.layerName})`),i.supportsText&&t.push(`supports(${i.supportsText})`),i.media.length&&t.push(i.media.mediaText),t.join(" ")+";"}function Ne(i){try{const e=i.rules||i.cssRules;if(!e)return null;let t=i.href;!t&&i.ownerNode&&i.ownerNode.ownerDocument&&(t=i.ownerNode.ownerDocument.location.href);const r=Array.from(e,s=>sr(s,t)).join("");return Ai(r)}catch(e){return null}}function sr(i,e){if(or(i)){let t;try{t=Ne(i.styleSheet)||ir(i)}catch(r){t=i.cssText}return i.styleSheet.href?ie(t,i.styleSheet.href):t}else{let t=i.cssText;return lr(i)&&i.selectorText.includes(":")&&(t=nr(t)),e?ie(t,e):t}}function nr(i){const e=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return i.replace(e,"$1\\$2")}function or(i){return"styleSheet"in i}function lr(i){return"selectorText"in i}class Te{constructor(){_t(this,"idNodeMap",new Map),_t(this,"nodeMetaMap",new WeakMap)}getId(e){var t;if(!e)return-1;const r=(t=this.getMeta(e))==null?void 0:t.id;return r!=null?r:-1}getNode(e){return this.idNodeMap.get(e)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(e){return this.nodeMetaMap.get(e)||null}removeNodeFromMap(e){const t=this.getId(e);this.idNodeMap.delete(t),e.childNodes&&e.childNodes.forEach(r=>this.removeNodeFromMap(r))}has(e){return this.idNodeMap.has(e)}hasNode(e){return this.nodeMetaMap.has(e)}add(e,t){const r=t.id;this.idNodeMap.set(r,e),this.nodeMetaMap.set(e,t)}replace(e,t){const r=this.getNode(e);if(r){const s=this.nodeMetaMap.get(r);s&&this.nodeMetaMap.set(t,s)}this.idNodeMap.set(e,t)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function Mi(){return new Te}function ar({element:i,maskInputOptions:e,tagName:t,type:r,value:s,maskInputFn:o}){let n=s||"";const a=r&&ae(r);return(e[t.toLowerCase()]||a&&e[a])&&(o?n=o(n,i):n="*".repeat(n.length)),n}function ae(i){return i.toLowerCase()}const Lt="__rrweb_original__";function ur(i){const e=i.getContext("2d");if(!e)return!0;const t=50;for(let r=0;r<i.width;r+=t)for(let s=0;s<i.height;s+=t){const o=e.getImageData,n=Lt in o?o[Lt]:o;if(new Uint32Array(n.call(e,r,s,Math.min(t,i.width-r),Math.min(t,i.height-s)).data.buffer).some(l=>l!==0))return!1}return!0}function cr(i,e){return!i||!e||i.type!==e.type?!1:i.type===y.Document?i.compatMode===e.compatMode:i.type===y.DocumentType?i.name===e.name&&i.publicId===e.publicId&&i.systemId===e.systemId:i.type===y.Comment||i.type===y.Text||i.type===y.CDATA?i.textContent===e.textContent:i.type===y.Element?i.tagName===e.tagName&&JSON.stringify(i.attributes)===JSON.stringify(e.attributes)&&i.isSVG===e.isSVG&&i.needBlock===e.needBlock:!1}function fr(i){const e=i.type;return i.hasAttribute("data-rr-is-password")?"password":e?ae(e):null}function Le(i,e){var o;let t;try{t=new URL(i,e!=null?e:window.location.href)}catch(n){return null}const r=/\.([0-9a-z]+)(?:$)/i,s=t.pathname.match(r);return(o=s==null?void 0:s[1])!=null?o:null}function _i(i){let e="";return i.indexOf("//")>-1?e=i.split("/").slice(0,3).join("/"):e=i.split("/")[0],e=e.split("?")[0],e}const ki=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,Ti=/^(?:[a-z+]+:)?\/\//i,Li=/^www\..*/i,Ii=/^(data:)([^,]*),(.*)/i;function ie(i,e){return(i||"").replace(ki,(t,r,s,o,n,a)=>{const l=s||n||a,u=r||o||"";if(!l)return t;if(Ti.test(l)||Li.test(l))return`url(${u}${l}${u})`;if(Ii.test(l))return`url(${u}${l}${u})`;if(l[0]==="/")return`url(${u}${_i(e)+l}${u})`;const c=e.split("/"),h=l.split("/");c.pop();for(const p of h)p!=="."&&(p===".."?c.pop():c.push(p));return`url(${u}${c.join("/")}${u})`})}function re(i,e=!1){return e?i.replace(/(\/\*[^*]*\*\/)|[\s;]/g,""):i.replace(/(\/\*[^*]*\*\/)|[\s;]/g,"").replace(/0px/g,"0")}function hr(i,e,t=!1){const r=Array.from(e.childNodes),s=[];let o=0;if(r.length>1&&i&&typeof i=="string"){let n=re(i,t);const a=n.length/i.length;for(let l=1;l<r.length;l++)if(r[l].textContent&&typeof r[l].textContent=="string"){const u=re(r[l].textContent,t),c=100;let h=3;for(;h<u.length&&(u[h].match(/[a-zA-Z0-9]/)||u.indexOf(u.substring(0,h),1)!==-1);h++);for(;h<u.length;h++){let p=u.substring(0,h),g=n.split(p),m=-1;if(g.length===2)m=g[0].length;else if(g.length>2&&g[0]===""&&r[l-1].textContent!=="")m=n.indexOf(p,1);else if(g.length===1){if(p=p.substring(0,p.length-1),g=n.split(p),g.length<=1)return s.push(i),s;h=c+1}else h===u.length-1&&(m=n.indexOf(p));if(g.length>=2&&h>c){const x=r[l-1].textContent;if(x&&typeof x=="string"){const f=re(x).length;m=n.indexOf(p,f)}m===-1&&(m=g[0].length)}if(m!==-1){let x=Math.floor(m/a);for(;x>0&&x<i.length;){if(o+=1,o>50*r.length)return s.push(i),s;const f=re(i.substring(0,x),t);if(f.length===m){s.push(i.substring(0,x)),i=i.substring(x),n=n.substring(m);break}else f.length<m?x+=Math.max(1,Math.floor((m-f.length)/a)):x-=Math.max(1,Math.floor((f.length-m)*a))}break}}}}return s.push(i),s}function pr(i,e){return hr(i,e).join("/* rr_split */")}function Pi(i,e){try{const t=document.querySelectorAll(i);return t.length===1&&t[0]===e}catch(t){return!1}}function dr(i){if(!(i instanceof Element))return null;if(i.id)return`#${CSS.escape(i.id)}`;const e=[],t=i.tagName.toLowerCase();i.classList.length&&e.push(...Array.from(i.classList).map(n=>`.${CSS.escape(n)}`)),Array.from(i.attributes).forEach(n=>{n.name.startsWith("data-")&&e.push(`[${n.name}="${CSS.escape(n.value)}"]`)});const r=`${t}${e.join("")}`;if(Pi(r,i))return r;const s=[];let o=i;for(;o&&o.nodeType===Node.ELEMENT_NODE;){const n=o.parentElement,a=o.tagName.toLowerCase();let l="";if(n){const u=Array.from(n.children).filter(c=>c.tagName.toLowerCase()===a);u.length>1&&(l=`:nth-of-type(${u.indexOf(o)+1})`)}s.unshift(`${a}${l}`),o=n}return s.join(" > ")||null}function Oe(i){switch(i.nodeType){case Node.DOCUMENT_NODE:return"/";case Node.DOCUMENT_TYPE_NODE:return"/html/doctype";case Node.ELEMENT_NODE:{const e=i;if(e.id)return`//*[@id="${CSS.escape(e.id)}"]`;if(e.tagName.toLowerCase()==="html")return"/html";if(e===document.head)return"/html/head";if(e===document.body)return"/html/body";const t=e.parentNode;if(!t)return"";const r=e.tagName.toLowerCase(),s=Array.from(t.children).filter(n=>n.tagName.toLowerCase()===r),o=s.length>1?`[${s.indexOf(e)+1}]`:"";return`${Oe(t)}/${r}${o}`}case Node.TEXT_NODE:case Node.CDATA_SECTION_NODE:case Node.COMMENT_NODE:{const e=i.parentNode;if(!e)return"";const t={[Node.TEXT_NODE]:"text()",[Node.CDATA_SECTION_NODE]:"text()",[Node.COMMENT_NODE]:"comment()"},r=Array.from(e.childNodes).filter(o=>o.nodeType===i.nodeType),s=r.length>1?`[${r.indexOf(i)}]`:"";return`${Oe(e)}/${t[i.nodeType]}${s}`}default:return""}}function mr(i){var e;const t=R.parentNode(i),r=t&&t;return!r||!pt(r)?!1:((e=i.textContent)==null?void 0:e.trim())!==""}function pt(i){return R.getElementVisibility(i).isVisible}const gr=["change","submit","dragstart","drop","pointerdown","pointerup","input","keydown","keyup","keypress","mouseenter","mouseleave","mouseup","mousedown","click","contextmenu","dblclick","focus","blur","touchstart","touchmove","touchend","touchcancel"],yr=["a","button","input","select","textarea","label","details","summary","dialog","video","audio"],$i=["onclick","ondblclick","onmousedown","onmouseup","onmouseover","onmouseout","onmousemove","onfocus","onblur","onkeydown","onkeypress","onkeyup","onchange","oninput","onsubmit","onreset","onselect","oncontextmenu","ontouchstart","ontouchmove","ontouchend","ontouchcancel"],dt=new WeakSet,Di=EventTarget.prototype.addEventListener;EventTarget.prototype.addEventListener=function(i,e,t){if(Di.call(this,i,e,t),this instanceof Element){const r=i.toLowerCase();gr.includes(r)&&dt.add(this)}};const Ui=EventTarget.prototype.removeEventListener;EventTarget.prototype.removeEventListener=function(i,e,t){Ui.call(this,i,e,t)};function Fi(i){return i instanceof Element&&dt.has(i)}function wr(i){if(i.nodeType===Node.ELEMENT_NODE){const e=i,t=e.tagName.toLowerCase();if(yr.includes(t))return!0;const r=e.hasAttribute("tabindex")&&e.getAttribute("tabindex")!=="-1",s=["button","link","checkbox","switch","menuitem"].includes(e.getAttribute("role")||"");return Fi(e)||r||s||e instanceof HTMLAnchorElement&&e.hasAttribute("href")||e instanceof HTMLButtonElement&&!e.disabled}return!1}function It(){document.querySelectorAll("*").forEach(e=>{$i.forEach(t=>{e.hasAttribute(t)&&dt.add(e)})})}try{document.readyState==="complete"||document.readyState==="interactive"?It():document.addEventListener("DOMContentLoaded",It)}catch(i){}let br=1;const Bi=new RegExp("[^a-z0-9-_:]"),Xe=-2;function Cr(){return br++}function zi(i){if(i instanceof HTMLFormElement)return"form";const e=ae(i.tagName);return Bi.test(e)?"div":e}let j,Pt;const ji=/^[^ \t\n\r\u000c]+/,Wi=/^[, \t\n\r\u000c]+/;function Vi(i,e){if(e.trim()==="")return e;let t=0;function r(o){let n;const a=o.exec(e.substring(t));return a?(n=a[0],t+=n.length,n):""}const s=[];for(;r(Wi),!(t>=e.length);){let o=r(ji);if(o.slice(-1)===",")o=W(i,o.substring(0,o.length-1)),s.push(o);else{let n="";o=W(i,o);let a=!1;for(;;){const l=e.charAt(t);if(l===""){s.push((o+n).trim());break}else if(a)l===")"&&(a=!1);else if(l===","){t+=1,s.push((o+n).trim());break}else l==="("&&(a=!0);n+=l,t+=1}}}return s.join(", ")}const $t=new WeakMap;function W(i,e){return!e||e.trim()===""?e:mt(i,e)}function Gi(i){return!!(i.tagName==="svg"||i.ownerSVGElement)}function mt(i,e){let t=$t.get(i);if(t||(t=i.createElement("a"),$t.set(i,t)),!e)e="";else if(e.startsWith("blob:")||e.startsWith("data:"))return e;return t.setAttribute("href",e),t.href}function Sr(i,e,t,r){return r&&(t==="src"||t==="href"&&!(e==="use"&&r[0]==="#")||t==="xlink:href"&&r[0]!=="#"||t==="background"&&(e==="table"||e==="td"||e==="th")?W(i,r):t==="srcset"?Vi(i,r):t==="style"?ie(r,mt(i)):e==="object"&&t==="data"?W(i,r):r)}function xr(i,e,t){return(i==="video"||i==="audio")&&e==="autoplay"}function vr(i,e){return typeof e=="string"?i.includes(e):e.test(i)}function Hi(i,e,t){try{if(typeof e=="string"){if(i.classList.contains(e))return!0}else for(let r=i.classList.length;r--;){const s=i.classList[r];if(e.test(s))return!0}if(t)return i.matches(t)}catch(r){}return!1}function Re(i,e,t){if(!i)return!1;if(i.nodeType!==i.ELEMENT_NODE)return t?Re(R.parentNode(i),e,t):!1;for(let r=i.classList.length;r--;){const s=i.classList[r];if(e.test(s))return!0}return t?Re(R.parentNode(i),e,t):!1}function Er(i,e,t,r){let s;if(G(i)){if(s=i,!R.childNodes(s).length)return!1}else{if(R.parentElement(i)===null)return!1;s=R.parentElement(i)}try{if(typeof e=="string"){if(r){if(s.closest(`.${e}`))return!0}else if(s.classList.contains(e))return!0}else if(Re(s,e,r))return!0;if(t){if(r){if(s.closest(t))return!0}else if(s.matches(t))return!0}}catch(o){}return!1}function qi(i,e,t){const r=i.contentWindow;if(!r)return;let s=!1,o;try{o=r.document.readyState}catch(a){return}if(o!=="complete"){const a=setTimeout(()=>{s||(e(),s=!0)},t);i.addEventListener("load",()=>{clearTimeout(a),s=!0,e()});return}const n="about:blank";if(r.location.href!==n||i.src===n||i.src==="")return setTimeout(e,0),i.addEventListener("load",e);i.addEventListener("load",e)}function Ji(i,e,t){let r=!1,s;try{s=i.sheet}catch(n){return}if(s)return;const o=setTimeout(()=>{r||(e(),r=!0)},t);i.addEventListener("load",()=>{clearTimeout(o),r=!0,e()})}function Yi(i,e){const{doc:t,mirror:r,blockClass:s,blockSelector:o,excludeAttribute:n,needsMask:a,inlineStylesheet:l,maskInputOptions:u={},maskTextFn:c,maskInputFn:h,dataURLOptions:p={},inlineImages:g,recordCanvas:m,keepIframeSrcFn:x,newlyAddedElement:f=!1,cssCaptured:w=!1}=e,O=Xi(t,r);switch(i.nodeType){case i.DOCUMENT_NODE:return i.compatMode!=="CSS1Compat"?{type:y.Document,childNodes:[],compatMode:i.compatMode}:{type:y.Document,childNodes:[]};case i.DOCUMENT_TYPE_NODE:return{type:y.DocumentType,name:i.name,publicId:i.publicId,systemId:i.systemId,rootId:O};case i.ELEMENT_NODE:return Qi(i,{doc:t,blockClass:s,blockSelector:o,excludeAttribute:n,inlineStylesheet:l,maskInputOptions:u,maskInputFn:h,dataURLOptions:p,inlineImages:g,recordCanvas:m,keepIframeSrcFn:x,newlyAddedElement:f,rootId:O});case i.TEXT_NODE:return Ki(i,{doc:t,needsMask:a,maskTextFn:c,rootId:O,cssCaptured:w});case i.CDATA_SECTION_NODE:return{type:y.CDATA,textContent:"",rootId:O};case i.COMMENT_NODE:return{type:y.Comment,textContent:R.textContent(i)||"",rootId:O};default:return!1}}function Xi(i,e){if(!e.hasNode(i))return;const t=e.getId(i);return t===1?void 0:t}function Ki(i,e){const{needsMask:t,maskTextFn:r,rootId:s,cssCaptured:o}=e,n=R.parentNode(i),a=n&&n.tagName;let l="";const u=a==="STYLE"?!0:void 0,c=a==="SCRIPT"?!0:void 0;return c?l="SCRIPT_PLACEHOLDER":o||(l=R.textContent(i),u&&l&&(l=ie(l,mt(e.doc)))),!u&&!c&&l&&t&&(l=r?r(l,R.parentElement(i)):l.replace(/[\S]/g,"*")),{type:y.Text,textContent:l||"",rootId:s}}function Qi(i,e){const{doc:t,blockClass:r,blockSelector:s,excludeAttribute:o,inlineStylesheet:n,maskInputOptions:a={},maskInputFn:l,dataURLOptions:u={},inlineImages:c,recordCanvas:h,keepIframeSrcFn:p,newlyAddedElement:g=!1,rootId:m}=e,x=Hi(i,r,s),f=zi(i);let w={};const O=i.attributes.length;for(let d=0;d<O;d++){const C=i.attributes[d];vr(C.name,o)||xr(f,C.name,C.value)||(w[C.name]=Sr(t,f,ae(C.name),C.value))}if(f==="link"&&n){const d=Array.from(t.styleSheets).find(M=>M.href===i.href);let C=null;d&&(C=Ne(d)),C&&(delete w.rel,delete w.href,w._cssText=C)}if(f==="style"&&i.sheet){let d=Ne(i.sheet);d&&(i.childNodes.length>1&&(d=pr(d,i)),w._cssText=d)}if(f==="input"||f==="textarea"||f==="select"){const d=i.value,C=i.checked;w.type!=="radio"&&w.type!=="checkbox"&&w.type!=="submit"&&w.type!=="button"&&d?w.value=ar({element:i,type:fr(i),tagName:f,value:d,maskInputOptions:a,maskInputFn:l}):C&&(w.checked=C)}if(f==="option"&&(i.selected&&!a.select?w.selected=!0:delete w.selected),f==="dialog"&&i.open&&(w.rr_open_mode=i.matches("dialog:modal")?"modal":"non-modal"),f==="canvas"&&h){if(i.__context==="2d")ur(i)||(w.rr_dataURL=i.toDataURL(u.type,u.quality));else if(!("__context"in i)){const d=i.toDataURL(u.type,u.quality),C=t.createElement("canvas");C.width=i.width,C.height=i.height;const M=C.toDataURL(u.type,u.quality);d!==M&&(w.rr_dataURL=d)}}if(f==="img"&&c){j||(j=t.createElement("canvas"),Pt=j.getContext("2d"));const d=i,C=d.currentSrc||d.getAttribute("src")||"<unknown-src>",M=d.crossOrigin,_=()=>{d.removeEventListener("load",_);try{j.width=d.naturalWidth,j.height=d.naturalHeight,Pt.drawImage(d,0,0),w.rr_dataURL=j.toDataURL(u.type,u.quality)}catch(T){if(d.crossOrigin!=="anonymous"){d.crossOrigin="anonymous",d.complete&&d.naturalWidth!==0?_():d.addEventListener("load",_);return}else console.warn(`Cannot inline img src=${C}! Error: ${T}`)}d.crossOrigin==="anonymous"&&(M?w.crossOrigin=M:d.removeAttribute("crossorigin"))};d.complete&&d.naturalWidth!==0?_():d.addEventListener("load",_)}if(f==="audio"||f==="video"){const d=w;d.rr_mediaState=i.paused?"paused":"played",d.rr_mediaCurrentTime=i.currentTime,d.rr_mediaPlaybackRate=i.playbackRate,d.rr_mediaMuted=i.muted,d.rr_mediaLoop=i.loop,d.rr_mediaVolume=i.volume}if(g||(i.scrollLeft&&(w.rr_scrollLeft=i.scrollLeft),i.scrollTop&&(w.rr_scrollTop=i.scrollTop)),x){const{width:d,height:C}=i.getBoundingClientRect();w={class:w.class,rr_width:`${d}px`,rr_height:`${C}px`}}f==="iframe"&&!p(w.src)&&(i.contentDocument||(w.rr_src=w.src),delete w.src);let k;try{customElements.get(f)&&(k=!0)}catch(d){}return{type:y.Element,tagName:f,attributes:w,childNodes:[],isSVG:Gi(i)||void 0,needBlock:x,rootId:m,isCustom:k}}function v(i){return i==null?"":i.toLowerCase()}function Zi(i,e){if(e.comment&&i.type===y.Comment)return!0;if(i.type===y.Element){if(e.script&&(i.tagName==="script"||i.tagName==="link"&&(i.attributes.rel==="preload"&&i.attributes.as==="script"||i.attributes.rel==="modulepreload")||i.tagName==="link"&&i.attributes.rel==="prefetch"&&typeof i.attributes.href=="string"&&Le(i.attributes.href)==="js"))return!0;if(e.headFavicon&&(i.tagName==="link"&&i.attributes.rel==="shortcut icon"||i.tagName==="meta"&&(v(i.attributes.name).match(/^msapplication-tile(image|color)$/)||v(i.attributes.name)==="application-name"||v(i.attributes.rel)==="icon"||v(i.attributes.rel)==="apple-touch-icon"||v(i.attributes.rel)==="shortcut icon")))return!0;if(i.tagName==="meta"){if(e.headMetaDescKeywords&&v(i.attributes.name).match(/^description|keywords$/))return!0;if(e.headMetaSocial&&(v(i.attributes.property).match(/^(og|twitter|fb):/)||v(i.attributes.name).match(/^(og|twitter):/)||v(i.attributes.name)==="pinterest"))return!0;if(e.headMetaRobots&&(v(i.attributes.name)==="robots"||v(i.attributes.name)==="googlebot"||v(i.attributes.name)==="bingbot"))return!0;if(e.headMetaHttpEquiv&&i.attributes["http-equiv"]!==void 0)return!0;if(e.headMetaAuthorship&&(v(i.attributes.name)==="author"||v(i.attributes.name)==="generator"||v(i.attributes.name)==="framework"||v(i.attributes.name)==="publisher"||v(i.attributes.name)==="progid"||v(i.attributes.property).match(/^article:/)||v(i.attributes.property).match(/^product:/)))return!0;if(e.headMetaVerification&&(v(i.attributes.name)==="google-site-verification"||v(i.attributes.name)==="yandex-verification"||v(i.attributes.name)==="csrf-token"||v(i.attributes.name)==="p:domain_verify"||v(i.attributes.name)==="verify-v1"||v(i.attributes.name)==="verification"||v(i.attributes.name)==="shopify-checkout-api-token"))return!0}}return!1}function V(i,e){const{doc:t,mirror:r,blockClass:s,blockSelector:o,maskTextClass:n,maskTextSelector:a,excludeAttribute:l,skipChild:u=!1,inlineStylesheet:c=!0,maskInputOptions:h={},maskTextFn:p,maskInputFn:g,slimDOMOptions:m,dataURLOptions:x={},inlineImages:f=!1,recordCanvas:w=!1,onSerialize:O,onIframeLoad:k,iframeLoadTimeout:d=5e3,onStylesheetLoad:C,stylesheetLoadTimeout:M=5e3,keepIframeSrcFn:_=()=>!1,newlyAddedElement:T=!1,cssCaptured:Y=!1}=e;let{needsMask:I}=e,{preserveWhiteSpace:X=!0}=e;I||(I=Er(i,n,a,I===void 0));const K=Yi(i,{doc:t,mirror:r,blockClass:s,blockSelector:o,excludeAttribute:l,needsMask:I,inlineStylesheet:c,maskInputOptions:h,maskTextFn:p,maskInputFn:g,dataURLOptions:x,inlineImages:f,recordCanvas:w,keepIframeSrcFn:_,newlyAddedElement:T,cssCaptured:Y});if(!K)return console.warn(i,"not serialized"),null;let Q;r.hasNode(i)?Q=r.getId(i):Zi(K,m)||!X&&K.type===y.Text&&!K.textContent.replace(/^\s+|\s+$/gm,"").length?Q=Xe:Q=Cr();const b=Object.assign(K,{id:Q});if(G(i)||i.nodeType===Node.TEXT_NODE){if(b.xpath=Oe(i),G(i)){const A=dr(i);A&&(b.selector=A)}i.nodeType===Node.TEXT_NODE&&(b.isVisible=mr(i)),i.nodeType===Node.ELEMENT_NODE&&(b.isVisible=pt(i),b.isInteractive=wr(i))}if(r.add(i,b),Q===Xe)return null;O&&O(i);let Be=!u;if(b.type===y.Element){Be=Be&&!b.needBlock,delete b.needBlock;const A=R.shadowRoot(i);A&&xe(A)&&(b.isShadowHost=!0)}if((b.type===y.Document||b.type===y.Element)&&Be){m.headWhitespace&&b.type===y.Element&&b.tagName==="head"&&(X=!1);const A={doc:t,mirror:r,blockClass:s,blockSelector:o,needsMask:I,maskTextClass:n,maskTextSelector:a,excludeAttribute:l,skipChild:u,inlineStylesheet:c,maskInputOptions:h,maskTextFn:p,maskInputFn:g,slimDOMOptions:m,dataURLOptions:x,inlineImages:f,recordCanvas:w,preserveWhiteSpace:X,onSerialize:O,onIframeLoad:k,iframeLoadTimeout:d,onStylesheetLoad:C,stylesheetLoadTimeout:M,keepIframeSrcFn:_,cssCaptured:!1};if(!(b.type===y.Element&&b.tagName==="textarea"&&b.attributes.value!==void 0)){b.type===y.Element&&b.attributes._cssText!==void 0&&typeof b.attributes._cssText=="string"&&(A.cssCaptured=!0);for(const je of Array.from(R.childNodes(i))){const z=V(je,A);z&&b.childNodes.push(z)}}let B=null;if(G(i)&&(B=R.shadowRoot(i)))for(const je of Array.from(R.childNodes(B))){const z=V(je,A);z&&(xe(B)&&(z.isShadow=!0),b.childNodes.push(z))}}const ze=R.parentNode(i);return ze&&rr(ze)&&xe(ze)&&(b.isShadow=!0),b.type===y.Element&&b.tagName==="iframe"&&qi(i,()=>{const A=i.contentDocument;if(A&&k){const B=V(A,{doc:A,mirror:r,blockClass:s,blockSelector:o,needsMask:I,maskTextClass:n,maskTextSelector:a,excludeAttribute:l,skipChild:!1,inlineStylesheet:c,maskInputOptions:h,maskTextFn:p,maskInputFn:g,slimDOMOptions:m,dataURLOptions:x,inlineImages:f,recordCanvas:w,preserveWhiteSpace:X,onSerialize:O,onIframeLoad:k,iframeLoadTimeout:d,onStylesheetLoad:C,stylesheetLoadTimeout:M,keepIframeSrcFn:_});B&&k(i,B)}},d),b.type===y.Element&&b.tagName==="link"&&typeof b.attributes.rel=="string"&&(b.attributes.rel==="stylesheet"||b.attributes.rel==="preload"&&typeof b.attributes.href=="string"&&Le(b.attributes.href)==="css")&&Ji(i,()=>{if(C){const A=V(i,{doc:t,mirror:r,blockClass:s,blockSelector:o,needsMask:I,maskTextClass:n,maskTextSelector:a,excludeAttribute:l,skipChild:!1,inlineStylesheet:c,maskInputOptions:h,maskTextFn:p,maskInputFn:g,slimDOMOptions:m,dataURLOptions:x,inlineImages:f,recordCanvas:w,preserveWhiteSpace:X,onSerialize:O,onIframeLoad:k,iframeLoadTimeout:d,onStylesheetLoad:C,stylesheetLoadTimeout:M,keepIframeSrcFn:_});A&&C(i,A)}},M),b}function es(i,e){const{mirror:t=new Te,blockClass:r="rr-block",blockSelector:s=null,maskTextClass:o="rr-mask",maskTextSelector:n=null,excludeAttribute:a=/.^/,inlineStylesheet:l=!0,inlineImages:u=!1,recordCanvas:c=!1,maskAllInputs:h=!1,maskTextFn:p,maskInputFn:g,slimDOM:m=!1,dataURLOptions:x,preserveWhiteSpace:f,onSerialize:w,onIframeLoad:O,iframeLoadTimeout:k,onStylesheetLoad:d,stylesheetLoadTimeout:C,keepIframeSrcFn:M=()=>!1}=e||{};return V(i,{doc:i,mirror:t,blockClass:r,blockSelector:s,maskTextClass:o,maskTextSelector:n,excludeAttribute:a,skipChild:!1,inlineStylesheet:l,maskInputOptions: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}:h===!1?{password:!0}:h,maskTextFn:p,maskInputFn:g,slimDOMOptions:m===!0||m==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:m==="all",headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:m===!1?{}:m,dataURLOptions:x,inlineImages:u,recordCanvas:c,preserveWhiteSpace:f,onSerialize:w,onIframeLoad:O,iframeLoadTimeout:k,onStylesheetLoad:d,stylesheetLoadTimeout:C,keepIframeSrcFn:M,newlyAddedElement:!1})}function ts(i,e){function t(r){e(r),(r.type===y.Document||r.type===y.Element)&&r.childNodes.forEach(t)}t(i)}function rs(){br=1}const is=/(max|min)-device-(width|height)/,Dt=new RegExp(is.source,"g"),ss={postcssPlugin:"postcss-custom-selectors",prepare(){return{postcssPlugin:"postcss-custom-selectors",AtRule:function(i){i.params.match(Dt)&&(i.params=i.params.replace(Dt,"$1-$2"))}}}},ns={postcssPlugin:"postcss-hover-classes",prepare:function(){const i=[];return{Rule:function(e){i.indexOf(e)===-1&&(i.push(e),e.selectors.forEach(function(t){t.includes(":hover")&&(e.selector+=`,
15
- `+t.replace(/:hover/g,".\\:hover"))}))}}}};function os(i){return i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}function ls(i){if(i.__esModule)return i;var e=i.default;if(typeof e=="function"){var t=function r(){return this instanceof r?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};t.prototype=e.prototype}else t={};return Object.defineProperty(t,"__esModule",{value:!0}),Object.keys(i).forEach(function(r){var s=Object.getOwnPropertyDescriptor(i,r);Object.defineProperty(t,r,s.get?s:{enumerable:!0,get:function(){return i[r]}})}),t}var gt={exports:{}},E=String,Nr=function(){return{isColorSupported:!1,reset:E,bold:E,dim:E,italic:E,underline:E,inverse:E,hidden:E,strikethrough:E,black:E,red:E,green:E,yellow:E,blue:E,magenta:E,cyan:E,white:E,gray:E,bgBlack:E,bgRed:E,bgGreen:E,bgYellow:E,bgBlue:E,bgMagenta:E,bgCyan:E,bgWhite:E}};gt.exports=Nr();gt.exports.createColors=Nr;var as=gt.exports;const us={},cs=Object.freeze(Object.defineProperty({__proto__:null,default:us},Symbol.toStringTag,{value:"Module"})),L=ls(cs);let Ut=as,Ft=L,Ke=class Or extends Error{constructor(e,t,r,s,o,n){super(e),this.name="CssSyntaxError",this.reason=e,o&&(this.file=o),s&&(this.source=s),n&&(this.plugin=n),typeof t!="undefined"&&typeof r!="undefined"&&(typeof t=="number"?(this.line=t,this.column=r):(this.line=t.line,this.column=t.column,this.endLine=r.line,this.endColumn=r.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,Or)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line!="undefined"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(e){if(!this.source)return"";let t=this.source;e==null&&(e=Ut.isColorSupported),Ft&&e&&(t=Ft(t));let r=t.split(/\r?\n/),s=Math.max(this.line-3,0),o=Math.min(this.line+2,r.length),n=String(o).length,a,l;if(e){let{bold:u,gray:c,red:h}=Ut.createColors(!0);a=p=>u(h(p)),l=p=>c(p)}else a=l=u=>u;return r.slice(s,o).map((u,c)=>{let h=s+1+c,p=" "+(" "+h).slice(-n)+" | ";if(h===this.line){let g=l(p.replace(/\d/g," "))+u.slice(0,this.column-1).replace(/[^\t]/g," ");return a(">")+l(p)+u+`
16
- `+g+a("^")}return" "+l(p)+u}).join(`
1
+ (function (g, f) {if ("object" == typeof exports && "object" == typeof module) {module.exports = f();} else if ("function" == typeof define && define.amd) {define("rrwebSnapshot", [], f);} else if ("object" == typeof exports) {exports["rrwebSnapshot"] = f();} else {g["rrwebSnapshot"] = f();}}(typeof self !== 'undefined' ? self : typeof globalThis !== 'undefined' ? globalThis : this, () => {var exports = {};var module = { exports };
2
+ "use strict";var Ms=Object.defineProperty,Ts=Object.defineProperties;var ks=Object.getOwnPropertyDescriptors;var be=Object.getOwnPropertySymbols;var Ft=Object.prototype.hasOwnProperty,Ut=Object.prototype.propertyIsEnumerable;var zt=(s,e,t)=>e in s?Ms(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t,$=(s,e)=>{for(var t in e||(e={}))Ft.call(e,t)&&zt(s,t,e[t]);if(be)for(var t of be(e))Ut.call(e,t)&&zt(s,t,e[t]);return s},Z=(s,e)=>Ts(s,ks(e));var Ye=(s,e)=>{var t={};for(var r in s)Ft.call(s,r)&&e.indexOf(r)<0&&(t[r]=s[r]);if(s!=null&&be)for(var r of be(s))e.indexOf(r)<0&&Ut.call(s,r)&&(t[r]=s[r]);return t};var $s=Object.defineProperty,Ls=(s,e,t)=>e in s?$s(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t,Je=(s,e,t)=>Ls(s,typeof e!="symbol"?e+"":e,t);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var w=(s=>(s[s.Document=0]="Document",s[s.DocumentType=1]="DocumentType",s[s.Element=2]="Element",s[s.Text=3]="Text",s[s.CDATA=4]="CDATA",s[s.Comment=5]="Comment",s))(w||{});const Bt={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},Wt={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},xe={},_s=()=>!!globalThis.Zone;function Ct(s){if(xe[s])return xe[s];const e=globalThis[s],t=e.prototype,r=s in Bt?Bt[s]:void 0,i=!!(r&&r.every(l=>{var a,c;return!!((c=(a=Object.getOwnPropertyDescriptor(t,l))==null?void 0:a.get)!=null&&c.toString().includes("[native code]"))})),n=s in Wt?Wt[s]:void 0,o=!!(n&&n.every(l=>{var a;return typeof t[l]=="function"&&((a=t[l])==null?void 0:a.toString().includes("[native code]"))}));if(i&&o&&!_s())return xe[s]=e.prototype,e.prototype;try{const l=document.createElement("iframe");document.body.appendChild(l);const a=l.contentWindow;if(!a)return e.prototype;const c=a[s].prototype;return document.body.removeChild(l),c?xe[s]=c:t}catch(l){return t}}const Qe={};function Y(s,e,t){var r;const i=`${s}.${String(t)}`;if(Qe[i])return Qe[i].call(e);const n=Ct(s),o=(r=Object.getOwnPropertyDescriptor(n,t))==null?void 0:r.get;return o?(Qe[i]=o,o.call(e)):e[t]}const Ke={};function br(s,e,t){const r=`${s}.${String(t)}`;if(Ke[r])return Ke[r].bind(e);const n=Ct(s)[t];return typeof n!="function"?e[t]:(Ke[r]=n,n.bind(e))}function Ps(s){return Y("Node",s,"childNodes")}function Ds(s){return Y("Node",s,"parentNode")}function Is(s){return Y("Node",s,"parentElement")}function zs(s){return Y("Node",s,"textContent")}function Fs(s,e){return br("Node",s,"contains")(e)}function Us(s){return br("Node",s,"getRootNode")()}function Bs(s){return!s||!("host"in s)?null:Y("ShadowRoot",s,"host")}function Ws(s){return s.styleSheets}function Hs(s){return!s||!("shadowRoot"in s)?null:Y("Element",s,"shadowRoot")}function js(s,e){return Y("Element",s,"querySelector")(e)}function Vs(s,e){return Y("Element",s,"querySelectorAll")(e)}function Gs(){return Ct("MutationObserver").constructor}function qs(s,e,t){try{if(!(e in s))return()=>{};const r=s[e],i=t(r);return typeof i=="function"&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:r}})),s[e]=i,()=>{s[e]=r}}catch(r){return()=>{}}}function Ys(s){const e=s.tagName.toLowerCase(),t=s.id?`#${s.id}`:"",r=s.classList.length?"."+Array.from(s.classList).join("."):"";return`${e}${t}${r}`}function Js(s){var f;var e,t;const r=(f=(e=s.ownerDocument)==null?void 0:e.defaultView)!=null?f:window,i=s.getBoundingClientRect(),n=r.innerWidth||r.document.documentElement.clientWidth||0,o=r.innerHeight||r.document.documentElement.clientHeight||0,l=i.width>0&&i.height>0&&i.bottom>0&&i.right>0&&i.top<o&&i.left<n,a=(t=r.getComputedStyle)==null?void 0:t.call(r,s),u=!!a&&a.display!=="none"&&a.visibility!=="hidden"&&(parseFloat(a.opacity)||0)>0&&l;let h=0;if(u){const d=Math.max(0,Math.min(i.right,n)-Math.max(i.left,0)),m=Math.max(0,Math.min(i.bottom,o)-Math.max(i.top,0)),x=d*m,p=i.width*i.height;h=p>0?x/p:0}return{isVisible:u,ratio:h}}const M={childNodes:Ps,parentNode:Ds,parentElement:Is,textContent:zs,contains:Fs,getRootNode:Us,host:Bs,styleSheets:Ws,shadowRoot:Hs,querySelector:js,querySelectorAll:Vs,mutationObserver:Gs,patch:qs,describeNode:Ys,getElementVisibility:Js};function re(s){return s.nodeType===s.ELEMENT_NODE}function xr(s){const e=s&&"host"in s&&"mode"in s&&M.host(s)||null;return!!(e&&"shadowRoot"in e&&M.shadowRoot(e)===s)}function Te(s){return Object.prototype.toString.call(s)==="[object ShadowRoot]"}function Qs(s){return s.includes(" background-clip: text;")&&!s.includes(" -webkit-background-clip: text;")&&(s=s.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;")),s}function Cr(s){const{cssText:e}=s;if(e.split('"').length<3)return e;const t=["@import",`url(${JSON.stringify(s.href)})`];return s.layerName===""?t.push("layer"):s.layerName&&t.push(`layer(${s.layerName})`),s.supportsText&&t.push(`supports(${s.supportsText})`),s.media.length&&t.push(s.media.mediaText),t.join(" ")+";"}function Le(s){try{const e=s.rules||s.cssRules;if(!e)return null;let t=s.href;!t&&s.ownerNode&&s.ownerNode.ownerDocument&&(t=s.ownerNode.ownerDocument.location.href);const r=Array.from(e,i=>Sr(i,t)).join("");return Qs(r)}catch(e){return null}}function Sr(s,e){if(Er(s)){let t;try{t=Le(s.styleSheet)||Cr(s)}catch(r){t=s.cssText}return s.styleSheet.href?ue(t,s.styleSheet.href):t}else{let t=s.cssText;return s.type===CSSRule.KEYFRAMES_RULE||(s.type,CSSRule.KEYFRAME_RULE),Ar(s)&&s.selectorText.includes(":")&&(t=vr(t)),e?ue(t,e):t}}function vr(s){const e=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return s.replace(e,"$1\\$2")}function Er(s){return"styleSheet"in s}function Ar(s){return"selectorText"in s}class Fe{constructor(){Je(this,"idNodeMap",new Map),Je(this,"nodeMetaMap",new WeakMap),Je(this,"selectorNodeMap",new Map)}getId(e){var t;if(!e)return-1;const r=(t=this.getMeta(e))==null?void 0:t.id;return r!=null?r:-1}getNode(e){return this.idNodeMap.get(e)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(e){return this.nodeMetaMap.get(e)||null}removeNodeFromMap(e){const t=this.getId(e);this.idNodeMap.delete(t);const r=this.getMeta(e);if(r!=null&&r.selector){const i=this.selectorNodeMap.get(r.selector);i&&(i.delete(e),i.size===0&&this.selectorNodeMap.delete(r.selector))}e.childNodes&&e.childNodes.forEach(i=>this.removeNodeFromMap(i))}has(e){return this.idNodeMap.has(e)}hasNode(e){return this.nodeMetaMap.has(e)}add(e,t){const r=t.id;if(this.idNodeMap.set(r,e),this.nodeMetaMap.set(e,t),t.selector){let i=this.selectorNodeMap.get(t.selector);i||(i=new Set,this.selectorNodeMap.set(t.selector,i)),i.add(e)}}replace(e,t){const r=this.getNode(e);if(r){const i=this.nodeMetaMap.get(r);if(i&&(this.nodeMetaMap.set(t,i),i.selector)){const n=this.selectorNodeMap.get(i.selector);n&&(n.delete(r),n.add(t))}}this.idNodeMap.set(e,t)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap,this.selectorNodeMap=new Map}getNodeBySelector(e){const t=this.selectorNodeMap.get(e);return!t||t.size===0?null:t.values().next().value||null}getNodesBySelector(e){const t=this.selectorNodeMap.get(e);return t?Array.from(t):[]}hasSelector(e){const t=this.selectorNodeMap.get(e);return t!==void 0&&t.size>0}}function Ks(){return new Fe}function Rr({element:s,maskInputOptions:e,tagName:t,type:r,value:i,maskInputFn:n}){let o=i||"";const l=r&&ge(r);return(e[t.toLowerCase()]||l&&e[l])&&(n?o=n(o,s):o="*".repeat(o.length)),o}function ge(s){return s.toLowerCase()}const Ht="__rrweb_original__";function Nr(s){const e=s.getContext("2d");if(!e)return!0;const t=50;for(let r=0;r<s.width;r+=t)for(let i=0;i<s.height;i+=t){const n=e.getImageData,o=Ht in n?n[Ht]:n;if(new Uint32Array(o.call(e,r,i,Math.min(t,s.width-r),Math.min(t,s.height-i)).data.buffer).some(a=>a!==0))return!1}return!0}function Or(s,e){return!s||!e||s.type!==e.type?!1:s.type===w.Document?s.compatMode===e.compatMode:s.type===w.DocumentType?s.name===e.name&&s.publicId===e.publicId&&s.systemId===e.systemId:s.type===w.Comment||s.type===w.Text||s.type===w.CDATA?s.textContent===e.textContent:s.type===w.Element?s.tagName===e.tagName&&JSON.stringify(s.attributes)===JSON.stringify(e.attributes)&&s.isSVG===e.isSVG&&s.needBlock===e.needBlock:!1}function Mr(s){const e=s.type;return s.hasAttribute("data-rr-is-password")?"password":e?ge(e):null}function Ue(s,e){var n;let t;try{t=new URL(s,e!=null?e:window.location.href)}catch(o){return null}const r=/\.([0-9a-z]+)(?:$)/i,i=t.pathname.match(r);return(n=i==null?void 0:i[1])!=null?n:null}function Zs(s){let e="";return s.indexOf("//")>-1?e=s.split("/").slice(0,3).join("/"):e=s.split("/")[0],e=e.split("?")[0],e}const Xs=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,ei=/^(?:[a-z+]+:)?\/\//i,ti=/^www\..*/i,ri=/^(data:)([^,]*),(.*)/i;function ue(s,e){return(s||"").replace(Xs,(t,r,i,n,o,l)=>{const a=i||o||l,c=r||n||"";if(!a)return t;if(ei.test(a)||ti.test(a))return`url(${c}${a}${c})`;if(ri.test(a))return`url(${c}${a}${c})`;if(a[0]==="/")return`url(${c}${Zs(e)+a}${c})`;const u=e.split("/"),h=a.split("/");u.pop();for(const f of h)f!=="."&&(f===".."?u.pop():u.push(f));return`url(${c}${u.join("/")}${c})`})}function ce(s,e=!1){return e?s.replace(/(\/\*[^*]*\*\/)|[\s;]/g,""):s.replace(/(\/\*[^*]*\*\/)|[\s;]/g,"").replace(/0px/g,"0")}function Tr(s,e,t=!1){const r=Array.from(e.childNodes),i=[];let n=0;if(r.length>1&&s&&typeof s=="string"){let o=ce(s,t);const l=o.length/s.length;for(let a=1;a<r.length;a++)if(r[a].textContent&&typeof r[a].textContent=="string"){const c=ce(r[a].textContent,t),u=100;let h=3;for(;h<c.length&&(c[h].match(/[a-zA-Z0-9]/)||c.indexOf(c.substring(0,h),1)!==-1);h++);for(;h<c.length;h++){let f=c.substring(0,h),d=o.split(f),m=-1;if(d.length===2)m=d[0].length;else if(d.length>2&&d[0]===""&&r[a-1].textContent!=="")m=o.indexOf(f,1);else if(d.length===1){if(f=f.substring(0,f.length-1),d=o.split(f),d.length<=1)return i.push(s),i;h=u+1}else h===c.length-1&&(m=o.indexOf(f));if(d.length>=2&&h>u){const x=r[a-1].textContent;if(x&&typeof x=="string"){const p=ce(x).length;m=o.indexOf(f,p)}m===-1&&(m=d[0].length)}if(m!==-1){let x=Math.floor(m/l);for(;x>0&&x<s.length;){if(n+=1,n>50*r.length)return i.push(s),i;const p=ce(s.substring(0,x),t);if(p.length===m){i.push(s.substring(0,x)),s=s.substring(x),o=o.substring(m);break}else p.length<m?x+=Math.max(1,Math.floor((m-p.length)/l)):x-=Math.max(1,Math.floor((p.length-m)*l))}break}}}}return i.push(s),i}function kr(s,e){return Tr(s,e).join("/* rr_split */")}function $r(s){var e;const t=M.parentNode(s),r=t&&t;return!r||!St(r)?!1:((e=s.textContent)==null?void 0:e.trim())!==""}function St(s){return M.getElementVisibility(s).isVisible}const Lr=["change","submit","dragstart","drop","pointerdown","pointerup","input","keydown","keyup","keypress","mouseenter","mouseleave","mouseup","mousedown","click","contextmenu","dblclick","focus","blur","touchstart","touchmove","touchend","touchcancel"],_r=["a","button","input","select","textarea","label","details","summary","dialog","video","audio"],si=["onclick","ondblclick","onmousedown","onmouseup","onmouseover","onmouseout","onmousemove","onfocus","onblur","onkeydown","onkeypress","onkeyup","onchange","oninput","onsubmit","onreset","onselect","oncontextmenu","ontouchstart","ontouchmove","ontouchend","ontouchcancel"],vt=new WeakSet,ii=EventTarget.prototype.addEventListener;EventTarget.prototype.addEventListener=function(s,e,t){if(ii.call(this,s,e,t),this instanceof Element){const r=s.toLowerCase();Lr.includes(r)&&vt.add(this)}};const ni=EventTarget.prototype.removeEventListener;EventTarget.prototype.removeEventListener=function(s,e,t){ni.call(this,s,e,t)};function oi(s){return s instanceof Element&&vt.has(s)}function Pr(s){if(s.nodeType===Node.ELEMENT_NODE){const e=s,t=e.tagName.toLowerCase();if(_r.includes(t))return!0;const r=e.hasAttribute("tabindex")&&e.getAttribute("tabindex")!=="-1",i=["button","link","checkbox","switch","menuitem"].includes(e.getAttribute("role")||"");return oi(e)||r||i||e instanceof HTMLAnchorElement&&e.hasAttribute("href")||e instanceof HTMLButtonElement&&!e.disabled}return!1}function jt(){document.querySelectorAll("*").forEach(e=>{si.forEach(t=>{e.hasAttribute(t)&&vt.add(e)})})}try{document.readyState==="complete"||document.readyState==="interactive"?jt():document.addEventListener("DOMContentLoaded",jt)}catch(s){}const Ce={ANCHOR:.4,PATH:.3,TARGET:.2,UNIQUENESS:.1},B={SEMANTIC_TAG:.5,ROLE:.3,ARIA_LABEL:.1,STABLE_ID:.25,TEST_MARKER:.05,DEPTH_PENALTY_THRESHOLD:5,DEPTH_PENALTY_FACTOR:.05,DEGRADED_SCORE:.3},ai={MIN_CONFIDENCE_FOR_SKIP:.7},Vt=["form","main","nav","section","article","footer","header"],Gt=["form","navigation","main","region","contentinfo","complementary","banner","search"],li=["article","aside","details","figcaption","figure","footer","header","main","mark","nav","section","summary","time","button","datalist","fieldset","form","input","label","legend","meter","optgroup","option","output","progress","select","textarea","a","audio","video","canvas","dialog","menu","blockquote","dd","dl","dt","hr","li","ol","ul","p","pre","h1","h2","h3","h4","h5","h6","caption","col","colgroup","table","tbody","td","tfoot","th","thead","tr","svg","path","circle","rect","line","polyline","polygon","ellipse","g","text","use"],q={"data-testid":100,"data-qa":99,"data-cy":98,"data-test":97,"data-test-id":96,"aria-label":90,"aria-labelledby":85,"aria-describedby":80,name:75,href:70,src:70,type:65,role:60,alt:55,title:50,for:45,placeholder:40,"data-*":30,"aria-*":25},Dr=new Set(["id","class","style","xmlns","tabindex","contenteditable"]),ci={maxPathDepth:10,enableSvgFingerprint:!0,confidenceThreshold:0,fallbackToBody:!0,includeUtilityClasses:!1,source:"dom-dsl"};function he(s){return!!(/^[a-z]+-\d+$/i.test(s)||/^[a-z]+(-[a-z]+)+-\d+$/i.test(s)||/^[a-z]+(_[a-z]+)*_\d+$/i.test(s)||/^\d+$/.test(s)||/^:[a-z0-9]+:$/i.test(s)||/^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/i.test(s)||/^[a-z]{1,3}[A-Za-z0-9]{8,}$/.test(s)&&(/\d/.test(s)||/[A-Z]/.test(s))||/^radix-/.test(s)||/^mui-\d+$/.test(s))}const Ir=new Set(["aria-labelledby","aria-describedby","aria-controls","aria-owns","aria-activedescendant","for","form","list","headers","aria-details","aria-errormessage","aria-flowto"]);function zr(s){return s.trim().split(/\s+/).some(e=>he(e))}class ui{constructor(e,t){var r;this.maxDepth=(r=e.maxPathDepth)!=null?r:10,this.cache=t}findAnchor(e){if(this.cache){const a=this.cache.getAnchor(e);if(a!==void 0)return a}const t=e.tagName.toLowerCase(),r=e.ownerDocument;if(t==="html"){const a={element:e,score:1,tier:"A",depth:0};return this.cacheResult(e,a),a}if(t==="head"||this.isInsideHead(e)){const a=r==null?void 0:r.documentElement;if(a){const c={element:a,score:1,tier:"A",depth:0};return this.cacheResult(e,c),c}}if(t==="body"){const a=r==null?void 0:r.documentElement;if(a){const c={element:a,score:1,tier:"A",depth:0};return this.cacheResult(e,c),c}}let i=e.parentElement,n=0,o=null;for(;i&&n<this.maxDepth;){if(i.tagName.toLowerCase()==="body")return o||{element:i,score:B.DEGRADED_SCORE,tier:"C",depth:n};const a=this.scoreAnchor(i);if(a>0){const c=this.applyDepthPenalty(a,n),u=this.getTier(i),h={element:i,score:c,tier:u,depth:n};if(u==="A")return h;(!o||c>o.score)&&(o=h)}i=i.parentElement,n++}const l=o;return this.cache&&this.cache.setAnchor(e,l),l}scoreAnchor(e){let t=0;const r=e.tagName.toLowerCase();Vt.includes(r)&&(t+=B.SEMANTIC_TAG);const i=e.getAttribute("role");i&&Gt.includes(i)&&(t+=B.ROLE),(e.hasAttribute("aria-label")||e.hasAttribute("aria-labelledby"))&&(t+=B.ARIA_LABEL);const n=e.id;return n&&!he(n)&&(t+=B.STABLE_ID),(e.hasAttribute("data-testid")||e.hasAttribute("data-qa")||e.hasAttribute("data-test"))&&(t+=B.TEST_MARKER),Math.min(t,1)}applyDepthPenalty(e,t){if(t<=B.DEPTH_PENALTY_THRESHOLD)return e;const r=(t-B.DEPTH_PENALTY_THRESHOLD)*B.DEPTH_PENALTY_FACTOR;return Math.max(0,e-r)}getTier(e){const t=e.tagName.toLowerCase();if(Vt.includes(t))return"A";const r=e.getAttribute("role");return r&&Gt.includes(r)?"B":"C"}isInsideHead(e){let t=e.parentElement;for(;t;){const r=t.tagName.toLowerCase();if(r==="head")return!0;if(r==="body")return!1;t=t.parentElement}return!1}cacheResult(e,t){this.cache&&this.cache.setAnchor(e,t)}}const hi=[/^css-[a-z0-9]+$/i,/^sc-[a-z0-9]+-\d+$/i,/^[a-z]{5,8}$/i,/^Mui[A-Z]\w+-\w+-\w+/,/^makeStyles-\w+-\d+$/,/^jss\d+$/,/^(emotion|linaria)-[a-z0-9]+/i,/^(chakra|tw-|ant-)[a-z0-9]+-\w+/i,/-[a-f0-9]{6,}$/i,/^_[a-z0-9]{5,}$/i,/\d{5,}/],fi=[/^\[/,/^(first|last|odd|even|only|first-of-type|last-of-type|only-of-type):/,/^(hover|focus|active|disabled|enabled|checked|indeterminate|default|required|valid|invalid|in-range|out-of-range|placeholder-shown|autofill|read-only):/,/^(focus-within|focus-visible|visited|target|open):/,/^(sm|md|lg|xl|2xl|3xl|4xl|5xl|6xl|7xl):/,/^dark:/,/^(rtl|ltr):/,/^(group|peer)(-hover|-focus|-active)?:/,/\/([\d.]+|full|auto|screen)$/,/^(inset|top|right|bottom|left)(-|$)/,/^(flex|inline-flex|grid|block|inline|inline-block|hidden|visible)$/,/^(absolute|relative|fixed|sticky|static)$/,/^(items|justify|content|self|place)-/,/^flex-(row|col|wrap|nowrap|1|auto|initial|none)/,/^grid-(cols|rows|flow)/,/^(gap|space)-/,/^[mp][trblxy]?-(\d+|auto|px)$/,/^-[mp][trblxy]?-\d+$/,/^-(top|right|bottom|left|inset)-\d+$/,/^-z-\d+$/,/^-space-[xy]-\d+$/,/^-translate-[xy]-\d+$/,/^-rotate-\d+$/,/^-scale-\d+$/,/^-skew-[xy]-\d+$/,/^(w|h|min-w|min-h|max-w|max-h|size)-/,/^text-(center|left|right|justify|start|end|xs|sm|base|lg|xl|2xl|3xl|4xl|5xl|6xl|7xl|8xl|9xl)$/,/^text-(uppercase|lowercase|capitalize|normal-case|underline|line-through|no-underline)$/,/^text-(truncate|ellipsis|clip)$/,/^(bg|border|ring|shadow|outline)-/,/^rounded(-|$)/,/^(font|leading|tracking|whitespace|break|truncate)-/,/^(uppercase|lowercase|capitalize|normal-case)$/,/^(transform|transition|duration|delay|ease|animate)-/,/^(scale|rotate|translate|skew)-/,/^transform$/,/^backdrop-blur-/,/^motion-/,/^(fade|slide|zoom|bounce|pulse|spin|ping)-/,/^(overflow|overscroll|scroll)-/,/^object-(contain|cover|fill|none|scale-down)$/,/^(cursor|pointer-events|select|resize)-/,/^(opacity|z)-/,/^(visible|invisible|collapse)$/,/^d-(none|inline|inline-block|block|grid|table|flex)$/,/^(float|clearfix|text)-(left|right|center|justify|start|end)$/,/^(m|p)[trblxy]?-[0-5]$/,/^(w|h)-(25|50|75|100|auto)$/,/^btn-(sm|lg|block)$/,/^text-(muted|primary|success|danger|warning|info|light|dark|white)$/,/^bg-(primary|secondary|success|danger|warning|info|light|dark|white|transparent)$/,/^border(-top|-bottom|-left|-right)?(-0)?$/,/^rounded(-top|-bottom|-left|-right|-circle|-pill|-0)?$/,/^shadow(-sm|-lg|-none)?$/,/^(align|justify|order|flex)-(start|end|center|between|around|fill|grow|shrink)$/,/^col(-sm|-md|-lg|-xl)?(-\d+|-auto)?$/,/^row(-cols)?(-\d+)?$/,/^g[xy]?-[0-5]$/,/^(show|hide|invisible|visible)$/,/^(position|top|bottom|start|end)-(static|relative|absolute|fixed|sticky|-\d+)$/,/^(row|col)$/,/^clearfix$/,/^pull-(left|right)$/,/^float-(left|right|none)$/];function Et(s){return hi.some(e=>e.test(s))}function At(s){return s.length<=2||/^\d/.test(s)?!0:fi.some(e=>e.test(s))}function di(s){return!Et(s)&&!At(s)}function pi(s){return s.filter(e=>di(e))}function mi(s){const e=[],t=[];for(const r of s)At(r)||Et(r)?t.push(r):e.push(r);return{semantic:e,utility:t}}function qt(s){return At(s)||Et(s)}const Yt=s=>s.replace(/([#:.[\]@])/g,"\\$1");class gi{constructor(e,t){var r;this.maxDepth=(r=e.maxPathDepth)!=null?r:10,this.cache=t}buildPath(e,t,r){const i=e.tagName.toLowerCase(),n=t.tagName.toLowerCase();if(i==="html"&&(n==="head"||n==="body"))return{path:[],degraded:!1};if(i==="html"&&this.isInsideHead(t))return this.buildHeadPath(e,t,r);const o=[];let l=t.parentElement;for(;l&&l!==e&&o.length<this.maxDepth;)o.unshift(l),l=l.parentElement;const a=o.length>=this.maxDepth&&l!==e;if(!a&&l!==e)return console.warn("[PathBuilder] Target is not a descendant of anchor"),{path:[],degraded:!0,degradationReason:"target-not-descendant-of-anchor"};let c=this.filterNoise(o);return c=this.ensureUniqueness(o,c,e,t,r),{path:c.map(u=>{const h=u.parentElement;let f;if(h){const d=Array.from(h.children).indexOf(u);d!==-1&&(f=d+1)}return{tag:u.tagName.toLowerCase(),semantics:r.extract(u),score:r.scoreElement(u),nthChild:f}}),degraded:a,degradationReason:a?"path-depth-overflow":void 0}}buildPathNodes(e,t,r){return this.buildPath(e,t,r).path}ensureUniqueness(e,t,r,i,n){const o=this.buildTestSelector(r,t,i);try{const l=i.ownerDocument;if(!l)return t;let a;if(this.cache){const u=this.cache.getSelectorResults(o);u!==void 0?a=u:(a=Array.from(l.querySelectorAll(o)),this.cache.setSelectorResults(o,a))}else a=l.querySelectorAll(o);if(a.length<=1)return t;const c=e.filter(u=>!t.includes(u));for(const u of c){if(n.scoreElement(u)<ai.MIN_CONFIDENCE_FOR_SKIP)continue;const h=this.insertNodeInOrder(t,u,e),f=this.buildTestSelector(r,h,i);try{let d;if(this.cache){const m=this.cache.getSelectorResults(f);m!==void 0?d=m:(d=Array.from(l.querySelectorAll(f)),this.cache.setSelectorResults(f,d))}else d=l.querySelectorAll(f);if(d.length===1)return h;d.length<a.length&&(t=h)}catch(d){}}return t}catch(l){return t}}insertNodeInOrder(e,t,r){const i=r.indexOf(t),n=[...e];let o=0;for(let l=0;l<n.length&&!(r.indexOf(n[l])>i);l++)o=l+1;return n.splice(o,0,t),n}buildTestSelector(e,t,r){const i=[];i.push(this.elementToSelector(e));for(const n of t)i.push(this.elementToSelector(n));return i.push(this.elementToSelector(r)),i.join(" ")}elementToSelector(e){let t=e.tagName.toLowerCase();e.id&&!he(e.id)&&(t+=`#${Yt(e.id)}`);for(const r of Array.from(e.classList))qt(r)||(t+=`.${Yt(r)}`);return t}filterNoise(e){return e.filter(t=>this.shouldInclude(t))}shouldInclude(e){const t=e.tagName.toLowerCase();return li.includes(t)?!0:t==="div"||t==="span"?this.hasSemanticFeatures(e):!1}hasSemanticFeatures(e){if(e.hasAttribute("role"))return!0;for(const r of Array.from(e.attributes))if(r.name.startsWith("aria-"))return!0;if(e.classList.length>0){for(const r of Array.from(e.classList))if(!qt(r))return!0}if(e.hasAttribute("data-testid")||e.hasAttribute("data-qa")||e.hasAttribute("data-test"))return!0;const t=e.id;return!!(t&&!he(t))}isInsideHead(e){let t=e.parentElement;for(;t;){const r=t.tagName.toLowerCase();if(r==="head")return!0;if(r==="body")return!1;t=t.parentElement}return!1}buildHeadPath(e,t,r){const i=[];let n=t.parentElement;for(;n&&n!==e;)i.unshift(n),n=n.parentElement;return n!==e?{path:[],degraded:!0,degradationReason:"target-not-descendant-of-html"}:i.findIndex(o=>o.tagName.toLowerCase()==="head")===-1?{path:[],degraded:!0,degradationReason:"head-not-found-in-path"}:{path:i.map(o=>{const l=o.parentElement;let a;if(l){const c=Array.from(l.children).indexOf(o);c!==-1&&(a=c+1)}return{tag:o.tagName.toLowerCase(),semantics:r.extract(o),score:r.scoreElement(o),nthChild:a}}),degraded:!1}}}function yi(s){return s?s.trim().replace(/[\n\t\r]/g," ").replace(/\s+/g," "):""}const wi={preserveQueryForAbsolute:!0,removeDynamicHashes:!0};function bi(s){return s?[/\d{5,}/,/[a-f0-9]{8,}/i,/(session|token|temp|random|timestamp|nonce|cache)/i,/^\d+$/,/^[a-f0-9-]{32,}$/i].some(e=>e.test(s)):!1}function xi(s,e){if(!s)return s;const t=s.startsWith("http://")||s.startsWith("https://"),[r,i]=s.split("#"),[n,o]=r.split("?");let l=n;return t&&e.preserveQueryForAbsolute&&o&&(l+=`?${o}`),i&&(e.removeDynamicHashes&&bi(i)||(l+=`#${i}`)),l}function Fr(s,e,t={}){if(!e)return e;const r=$($({},wi),t);return s==="href"||s==="src"?xi(e,r):e}const Ci=["role","aria-label","aria-labelledby","aria-describedby","aria-controls","aria-owns","aria-level","aria-posinset","aria-setsize","aria-haspopup"],Si=["aria-selected","aria-checked","aria-pressed","aria-expanded","aria-hidden","aria-disabled","aria-current","aria-busy","aria-invalid","aria-grabbed","aria-live","aria-atomic"],vi=["data-state","data-active","data-inactive","data-selected","data-open","data-closed","data-visible","data-hidden","data-disabled","data-enabled","data-loading","data-error","data-success","data-highlighted","data-focused","data-hover","data-orientation","data-theme"],Ei=["data-radix-","data-headlessui-","data-reach-","data-mui-","data-chakra-","data-mantine-","data-tw-"],Ai=["data-testid","data-test-id","data-test","data-cy","data-qa","data-automation-id","data-id","data-component","data-entity-id","data-product-id","data-user-id"],Ri=["data-ga","data-gtm","data-google","data-layer","data-event","data-yandex","data-ym","data-metrika","data-optimizely","data-vwo","data-optimize","data-hj","data-hotjar","data-fs","data-mouseflow","data-mf","data-smartlook","data-sl","data-fb","data-facebook","data-tt","data-li","data-track","data-tracking","data-click","data-impression","data-conversion","data-segment","data-analytics"],Ni=["data-category","data-action","data-label","data-value"],Oi=["id","name","type","placeholder","title","for","alt","href"],Mi=["disabled","checked","selected","hidden","readonly","required","value"],Ti=[/^radix-/,/^headlessui-/,/^mui-/,/:\w+:/];function ki(s,e){return Ci.includes(s)?!0:Si.includes(s)||vi.includes(s)||Ei.some(t=>s.startsWith(t))?!1:Ai.includes(s)?!0:Ri.some(t=>s.startsWith(t))||Ni.includes(s)?!1:s.startsWith("data-")&&s.endsWith("-id")?!0:s==="id"?!Ti.some(t=>t.test(e)):Oi.includes(s)?!0:Mi.includes(s)?!1:!!s.startsWith("data-")}class Jt{constructor(e,t){var r;this.includeUtilityClasses=(r=e.includeUtilityClasses)!=null?r:!1,this.cache=t}extract(e){if(this.cache){const o=this.cache.getSemantics(e);if(o!==void 0)return o}const t={},r=e.id;if(r&&!he(r)&&(t.id=r),e.classList.length>0){const o=Array.from(e.classList);if(this.includeUtilityClasses)t.classes=o;else{const{semantic:l}=mi(o);l.length>0&&(t.classes=l)}}const i=this.extractAttributes(e);Object.keys(i).length>0&&(t.attributes=i);const n=e.getAttribute("role");if(n&&(t.role=n),this.shouldExtractText(e)){const o=this.extractText(e);o&&(t.text=o)}return this.cache&&this.cache.setSemantics(e,t),t}scoreElement(e){let t=.5;const r=this.extract(e);return r.id&&(t+=.15),r.classes&&r.classes.length>0&&(t+=.1),r.attributes&&Object.keys(r.attributes).length>0&&(t+=.1),r.role&&(t+=.1),r.text&&(t+=.05),Math.min(t,1)}shouldIgnoreAttribute(e){return!!(Dr.has(e)||e.startsWith("on")||e.startsWith("ng-")||e.startsWith("_ng")||e.startsWith("data-reactid")||e.startsWith("data-react")||e.startsWith("data-v-"))}getAttributePriority(e){return q[e]!==void 0?q[e]:e.startsWith("data-")?q["data-*"]:e.startsWith("aria-")?q["aria-*"]:0}isDynamicValue(e){return[/^[a-f0-9]{32,}$/i,/^\d{10,}$/,/^(undefined|null|\[object)/,/^{{.*}}$/].some(t=>t.test(e))}extractAttributes(e){const t={};for(const r of Array.from(e.attributes)){const i=r.name;if(this.shouldIgnoreAttribute(i)||!ki(i,r.value)||Ir.has(i)&&zr(r.value)||this.getAttributePriority(i)===0)continue;const n=i==="href"||i==="src"?Fr(i,r.value):r.value;!n||n.trim()===""||this.isDynamicValue(n)||(t[i]=n)}return t}extractText(e){const t=this.getDirectTextContent(e);if(!t)return null;const r=yi(t);if(!r)return null;const i=100,n=t.length>i?t.slice(0,i)+"...":t,o=r.length>i?r.slice(0,i)+"...":r;return{raw:n,normalized:o}}getDirectTextContent(e){var r;const t=[];for(const i of Array.from(e.childNodes))if(i.nodeType===Node.TEXT_NODE&&i.textContent){const n=i.textContent.trim();n&&t.push(n)}return t.length>0?t.join(" "):(r=e.textContent)!=null?r:null}shouldExtractText(e){const t=e.tagName.toLowerCase();return["button","a","label","h1","h2","h3","h4","h5","h6","p","span","li","th","td","dt","dd","legend","figcaption","summary"].includes(t)}}class $i{fingerprint(e){const t=e.tagName.toLowerCase(),r=this.getShape(t),i={shape:r,hasAnimation:this.hasAnimation(e)};if(r==="path"){const l=e.getAttribute("d");l&&(i.dHash=this.computePathHash(l))}else["circle","rect","ellipse","line"].includes(r)&&(i.geomHash=this.computeGeomHash(e,r));const n=e.getAttribute("role");n&&(i.role=n);const o=e.querySelector("title");return o!=null&&o.textContent&&(i.titleText=o.textContent.trim()),i}computePathHash(e){const t=this.normalizePathData(e);return this.simpleHash(t)}getShape(e){var t;return(t=["path","circle","rect","line","polyline","polygon","ellipse","g","text","use","svg"].find(r=>r===e))!=null?t:"path"}normalizePathData(e){var t;return((t=e.match(/[MLHVCSQTAZ][^MLHVCSQTAZ]*/gi))!=null?t:[]).slice(0,5).map(r=>r.trim().replace(/(-?\d+\.?\d*)/g,i=>parseFloat(i).toFixed(1))).join(" ")}computeGeomHash(e,t){var i,n,o,l,a,c,u,h,f;const r=[];switch(t){case"circle":r.push(`r=${(i=e.getAttribute("r"))!=null?i:"0"}`);break;case"rect":{const d=parseFloat((n=e.getAttribute("width"))!=null?n:"0"),m=parseFloat((o=e.getAttribute("height"))!=null?o:"0");d>0&&m>0&&r.push(`ratio=${(d/m).toFixed(2)}`)}break;case"ellipse":{const d=parseFloat((l=e.getAttribute("rx"))!=null?l:"0"),m=parseFloat((a=e.getAttribute("ry"))!=null?a:"0");d>0&&m>0&&r.push(`ratio=${(d/m).toFixed(2)}`)}break;case"line":{const d=parseFloat((c=e.getAttribute("x1"))!=null?c:"0"),m=parseFloat((u=e.getAttribute("y1"))!=null?u:"0"),x=parseFloat((h=e.getAttribute("x2"))!=null?h:"0"),p=parseFloat((f=e.getAttribute("y2"))!=null?f:"0"),y=Math.atan2(p-m,x-d);r.push(`angle=${y.toFixed(2)}`)}break}return this.simpleHash(r.join(";"))}hasAnimation(e){if(e.querySelector("animate, animateTransform, animateMotion"))return!0;const t=e.ownerDocument;if(t!=null&&t.defaultView)try{const r=t.defaultView.getComputedStyle(e);if(r.animationName!=="none"||r.transitionProperty!=="all"&&r.transitionProperty!=="none")return!0}catch(r){}return!1}simpleHash(e){let t=0;for(let r=0;r<e.length;r++){const i=e.charCodeAt(r);t=(t<<5)-t+i,t=t&t}return Math.abs(t).toString(16).padStart(8,"0")}}function Li(s,e=0){const t=s.anchor.score,r=s.path.length>0?s.path.reduce((l,a)=>l+a.score,0)/s.path.length:.5,i=s.target.score,n=t*Ce.ANCHOR+r*Ce.PATH+i*Ce.TARGET+e*Ce.UNIQUENESS,o=s.anchor.degraded?.2:0;return Math.max(0,Math.min(1,n-o))}class _i{constructor(e){this.cache=new Map,this.maxSize=e}get(e){const t=this.cache.get(e);if(t!==void 0)return this.cache.delete(e),this.cache.set(e,t),t}set(e,t){if(this.cache.has(e))this.cache.delete(e);else if(this.cache.size>=this.maxSize){const r=this.cache.keys().next().value;r!==void 0&&this.cache.delete(r)}this.cache.set(e,t)}has(e){return this.cache.has(e)}delete(e){this.cache.delete(e)}clear(){this.cache.clear()}get size(){return this.cache.size}}class Pi{constructor(e={}){var t,r;this.eidCache=new WeakMap,this.selectorResultCache=new _i((t=e.maxSelectorCacheSize)!=null?t:1e3),this.anchorCache=new WeakMap,this.semanticsCache=new WeakMap,this.stats={eidHits:0,eidMisses:0,selectorHits:0,selectorMisses:0,anchorHits:0,anchorMisses:0,semanticsHits:0,semanticsMisses:0,selectorCacheSize:0,maxSelectorCacheSize:(r=e.maxSelectorCacheSize)!=null?r:1e3}}getEID(e){const t=this.eidCache.get(e);if(t!==void 0)return this.stats.eidHits++,t;this.stats.eidMisses++}setEID(e,t){this.eidCache.set(e,t)}getSelectorResults(e){const t=this.selectorResultCache.get(e);if(t!==void 0)return this.stats.selectorHits++,this.stats.selectorCacheSize=this.selectorResultCache.size,t;this.stats.selectorMisses++,this.stats.selectorCacheSize=this.selectorResultCache.size}setSelectorResults(e,t){this.selectorResultCache.set(e,t),this.stats.selectorCacheSize=this.selectorResultCache.size}getAnchor(e){if(this.anchorCache.has(e))return this.stats.anchorHits++,this.anchorCache.get(e);this.stats.anchorMisses++}setAnchor(e,t){this.anchorCache.set(e,t)}getSemantics(e){const t=this.semanticsCache.get(e);if(t!==void 0)return this.stats.semanticsHits++,t;this.stats.semanticsMisses++}setSemantics(e,t){this.semanticsCache.set(e,t)}clear(){this.selectorResultCache.clear(),this.stats.selectorCacheSize=0,this.stats={eidHits:0,eidMisses:0,selectorHits:0,selectorMisses:0,anchorHits:0,anchorMisses:0,semanticsHits:0,semanticsMisses:0,selectorCacheSize:0,maxSelectorCacheSize:this.stats.maxSelectorCacheSize}}invalidateElement(e){}invalidateSelector(e){this.selectorResultCache.delete(e),this.stats.selectorCacheSize=this.selectorResultCache.size}getStats(){return Z($({},this.stats),{selectorCacheSize:this.selectorResultCache.size})}getEIDHitRate(){const e=this.stats.eidHits+this.stats.eidMisses;return e>0?this.stats.eidHits/e:0}getSelectorHitRate(){const e=this.stats.selectorHits+this.stats.selectorMisses;return e>0?this.stats.selectorHits/e:0}getAnchorHitRate(){const e=this.stats.anchorHits+this.stats.anchorMisses;return e>0?this.stats.anchorHits/e:0}getSemanticsHitRate(){const e=this.stats.semanticsHits+this.stats.semanticsMisses;return e>0?this.stats.semanticsHits/e:0}getOverallHitRate(){const e=this.stats.eidHits+this.stats.selectorHits+this.stats.anchorHits+this.stats.semanticsHits,t=this.stats.eidMisses+this.stats.selectorMisses+this.stats.anchorMisses+this.stats.semanticsMisses,r=e+t;return r>0?e/r:0}}function Di(s){return new Pi(s)}let Ze=null;function Ii(){return Ze||(Ze=Di()),Ze}function Qt(s){if(s.ownerDocument)return s.ownerDocument;let e=s;for(;e;){if(e.nodeType===9)return e;e=e.parentNode}throw new Error(`Element does not have an ownerDocument. This typically means:
3
+ 1. The element is detached from the DOM
4
+ 2. The element was created but never attached
5
+ 3. You are working with a document node instead of an element`)}function zi(s,e){if(!e)return;const t=Qt(s),r=e instanceof Document?e:Qt(e);if(t!==r)throw new Error(`Cross-document operation detected: element and root are from different documents.
6
+ Common causes:
7
+ 1. Working with iframe: pass iframe.contentDocument as root parameter
8
+ 2. Element from one iframe, root from another
9
+ 3. Element from main document, root from iframe (or vice versa)
10
+
11
+ Solution: Ensure element and root parameter are from the same document context.`)}function Fi(s,e={}){var I,z,F,C;var t;if(!s||!s.ownerDocument||!s.isConnected)return null;const r=$($({},ci),e);if(r.root)try{zi(s,r.root)}catch(D){return console.error("Cross-document generation detected:",D),null}const i=(I=r.cache)!=null?I:Ii(),n=i.getEID(s);if(n!==void 0)return n;if(s.tagName.toLowerCase()==="html"){const D=new Jt(r,i),Q=Wi(s,r,D);return i.setEID(s,Q),Q}const o=new ui(r,i),l=new gi(r,i),a=new Jt(r,i),c=new $i,u=o.findAnchor(s);if(!u&&!r.fallbackToBody)return null;const h=(F=(z=u==null?void 0:u.element)!=null?z:(t=s.ownerDocument)==null?void 0:t.body)!=null?F:null;if(!h)return null;const f=!u||u.tier==="C",d=h.tagName.toLowerCase(),m=h.parentElement;let x;if(m&&d!=="body"&&d!=="html"){const D=Array.from(m.children).indexOf(h);D!==-1&&(x=D+1)}const p=a.extract(h),y={tag:h.tagName.toLowerCase(),semantics:p,score:(C=u==null?void 0:u.score)!=null?C:B.DEGRADED_SCORE,degraded:f,nthChild:x},E=l.buildPath(h,s,a),T=a.extract(s);r.enableSvgFingerprint&&Ui(s)&&(T.svg=c.fingerprint(s));const g=s.parentElement;let S;if(g){const D=Array.from(g.children).indexOf(s);D!==-1&&(S=D+1)}const k={tag:s.tagName.toLowerCase(),semantics:T,score:a.scoreElement(s),nthChild:S},N=[],P={onMultiple:"best-score",onMissing:"anchor-only",maxDepth:3},H=y.degraded||E.degraded,_=Bi(y.degraded,E),L={version:"1.0",anchor:y,path:E.path,target:k,constraints:N,fallback:P,meta:{confidence:0,generatedAt:new Date().toISOString(),generator:"dom-eid@1.0",source:r.source,degraded:H,degradationReason:_}};return L.meta.confidence=Li(L),L.meta.confidence<r.confidenceThreshold?null:(i.setEID(s,L),L)}function Ui(s){return s.namespaceURI==="http://www.w3.org/2000/svg"||s.tagName.toLowerCase()==="svg"||s instanceof SVGElement}function Bi(s,e){if(s&&e.degraded)return"anchor-and-path-degraded";if(s)return"no-semantic-anchor";if(e.degraded)return e.degradationReason}function Wi(s,e,t,r){const i={tag:"html",semantics:t.extract(s),score:1,degraded:!1,nthChild:void 0};return{version:"1.0",anchor:i,path:[],target:i,constraints:[],fallback:{onMultiple:"best-score",onMissing:"anchor-only",maxDepth:3},meta:{confidence:1,generatedAt:new Date().toISOString(),generator:"dom-eid@1.0",source:e.source,degraded:!1,degradationReason:void 0}}}const Ur={maxClasses:2,maxAttributes:5,includeText:!0,maxTextLength:50,simplifyTarget:!0,includeConstraints:!0};function Kt(s){return s==="id"?101:q[s]!==void 0?q[s]:s.startsWith("data-")?q["data-*"]:s.startsWith("aria-")?q["aria-*"]:0}function Hi(s){return["id","data-testid","data-qa","data-cy","href","text","role"].includes(s)}function ji(s){return!!(/@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}/.test(s)||/(\+?\d{1,3}[-.\s]?)?\(?\d{3}\)?[-.\s]?\d{3}[-.\s]?\d{4}/.test(s)||/\d{4}[-\s]?\d{4}[-\s]?\d{4}[-\s]?\d{4}/.test(s))}function Vi(s,e){const t=$($({},Ur),e),r=`v${s.version}`,i=Xe(s.anchor,!1,t),n=s.path.length>0?s.path.map(a=>Xe(a,!1,t)).join(" > ")+" > ":"",o=Xe(s.target,!0,t),l=t.includeConstraints?Gi(s):"";return`${r}: ${i} :: ${n}${o}${l}`}function Xe(s,e=!1,t=Ur){const{tag:r,semantics:i}=s;let n=r;const o=[],l=$({},i.attributes);i.id&&(l.id=i.id),i.role&&!l.role&&(l.role=i.role);const a=Object.entries(l).map(([h,f])=>{const d=Kt(h),m=h==="href"||h==="src"?Fr(h,f):f;return{name:h,value:m,priority:d}}).filter(h=>h.name!=="id"&&h.name!=="class"&&Dr.has(h.name)||Ir.has(h.name)&&zr(h.value)?!1:h.priority>0||h.name==="role"||h.name==="id");a.sort((h,f)=>f.priority-h.priority);const c=a.slice(0,t.maxAttributes);c.sort((h,f)=>h.name.localeCompare(f.name));for(const{name:h,value:f}of c)o.push(`${h}="${it(f)}"`);if(t.includeText&&i.text&&!ji(i.text.normalized)){const h=i.text.normalized;h.length>0&&h.length<=t.maxTextLength&&o.push(`text="${it(h)}"`)}let u=o;if(o.length>0&&(e&&t.simplifyTarget&&i.id&&(u=o.filter(h=>{const f=h.split("=")[0];return Kt(f)>=60||f==="text"||f==="id"||f==="role"})),u.length>0&&u.sort((h,f)=>h.localeCompare(f))),i.classes&&i.classes.length>0){const h=pi(i.classes),f=!!i.id||o.some(d=>d.startsWith("href=")||d.startsWith("data-testid=")||d.startsWith("text=")||d.startsWith("role="));if(!(e&&t.simplifyTarget&&f)&&h.length>0){const d=h.sort().slice(0,t.maxClasses);n+=d.map(m=>`.${m}`).join("")}}if(u.length>0&&(n+=`[${u.join(",")}]`),"nthChild"in s&&s.nthChild){const h=!!i.id||i.attributes&&Object.keys(i.attributes).some(Hi);e&&t.simplifyTarget&&h||(n+=`#${s.nthChild}`)}return n}function Gi(s){if(!s.constraints||s.constraints.length===0)return"";const e=[];for(const t of s.constraints)switch(t.type){case"uniqueness":e.push("unique=true");break;case"position":t.params&&t.params.strategy&&e.push(`pos=${t.params.strategy}`);break;case"text-proximity":if(t.params&&t.params.reference){const r=it(String(t.params.reference));e.push(`text="${r}"`)}break}return e.length===0?"":` {${e.join(",")}}`}function it(s){return s.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/>/g,"\\>").replace(/:/g,"\\:")}function qi(s,e,t){const r=Fi(s,e);return r?Vi(r,t):null}let Br=1;const Yi=new RegExp("[^a-z0-9-_:]"),nt=-2;function Wr(){return Br++}function Ji(s){if(s instanceof HTMLFormElement)return"form";const e=ge(s.tagName);return Yi.test(e)?"div":e}let X,Zt;const Qi=/^[^ \t\n\r\u000c]+/,Ki=/^[, \t\n\r\u000c]+/;function Zi(s,e){if(e.trim()==="")return e;let t=0;function r(n){let o;const l=n.exec(e.substring(t));return l?(o=l[0],t+=o.length,o):""}const i=[];for(;r(Ki),!(t>=e.length);){let n=r(Qi);if(n.slice(-1)===",")n=ee(s,n.substring(0,n.length-1)),i.push(n);else{let o="";n=ee(s,n);let l=!1;for(;;){const a=e.charAt(t);if(a===""){i.push((n+o).trim());break}else if(l)a===")"&&(l=!1);else if(a===","){t+=1,i.push((n+o).trim());break}else a==="("&&(l=!0);o+=a,t+=1}}}return i.join(", ")}const Xt=new WeakMap;function ee(s,e){return!e||e.trim()===""?e:Rt(s,e)}function Xi(s){return!!(s.tagName==="svg"||s.ownerSVGElement)}function Rt(s,e){let t=Xt.get(s);if(t||(t=s.createElement("a"),Xt.set(s,t)),!e)e="";else if(e.startsWith("blob:")||e.startsWith("data:"))return e;return t.setAttribute("href",e),t.href}function Hr(s,e,t,r){return r&&(t==="src"||t==="href"&&!(e==="use"&&r[0]==="#")||t==="xlink:href"&&r[0]!=="#"||t==="background"&&(e==="table"||e==="td"||e==="th")?ee(s,r):t==="srcset"?Zi(s,r):t==="style"?ue(r,Rt(s)):e==="object"&&t==="data"?ee(s,r):r)}function jr(s,e,t){return(s==="video"||s==="audio")&&e==="autoplay"}function Vr(s,e){return e?typeof e=="string"?s.includes(e):e.test(s):!1}function en(s,e,t){try{if(typeof e=="string"){if(s.classList.contains(e))return!0}else for(let r=s.classList.length;r--;){const i=s.classList[r];if(e.test(i))return!0}if(t)return s.matches(t)}catch(r){}return!1}function _e(s,e,t){if(!s)return!1;if(s.nodeType!==s.ELEMENT_NODE)return t?_e(M.parentNode(s),e,t):!1;for(let r=s.classList.length;r--;){const i=s.classList[r];if(e.test(i))return!0}return t?_e(M.parentNode(s),e,t):!1}function Gr(s,e,t,r){let i;if(re(s)){if(i=s,!M.childNodes(i).length)return!1}else{if(M.parentElement(s)===null)return!1;i=M.parentElement(s)}try{if(typeof e=="string"){if(r){if(i.closest(`.${e}`))return!0}else if(i.classList.contains(e))return!0}else if(_e(i,e,r))return!0;if(t){if(r){if(i.closest(t))return!0}else if(i.matches(t))return!0}}catch(n){}return!1}function tn(s,e,t){const r=s.contentWindow;if(!r)return;let i=!1,n;try{n=r.document.readyState}catch(l){return}if(n!=="complete"){const l=setTimeout(()=>{i||(e(),i=!0)},t);s.addEventListener("load",()=>{clearTimeout(l),i=!0,e()});return}const o="about:blank";if(r.location.href!==o||s.src===o||s.src==="")return setTimeout(e,0),s.addEventListener("load",e);s.addEventListener("load",e)}function rn(s,e,t){let r=!1,i;try{i=s.sheet}catch(o){return}if(i)return;const n=setTimeout(()=>{r||(e(),r=!0)},t);s.addEventListener("load",()=>{clearTimeout(n),r=!0,e()})}function sn(s,e){const{doc:t,mirror:r,blockClass:i,blockSelector:n,excludeAttribute:o,needsMask:l,inlineStylesheet:a,maskInputOptions:c={},maskTextFn:u,maskInputFn:h,dataURLOptions:f={},inlineImages:d,recordCanvas:m,keepIframeSrcFn:x,newlyAddedElement:p=!1,cssCaptured:y=!1}=e,E=nn(t,r);switch(s.nodeType){case s.DOCUMENT_NODE:return s.compatMode!=="CSS1Compat"?{type:w.Document,childNodes:[],compatMode:s.compatMode}:{type:w.Document,childNodes:[]};case s.DOCUMENT_TYPE_NODE:return{type:w.DocumentType,name:s.name,publicId:s.publicId,systemId:s.systemId,rootId:E};case s.ELEMENT_NODE:return an(s,{doc:t,blockClass:i,blockSelector:n,excludeAttribute:o,inlineStylesheet:a,maskInputOptions:c,maskInputFn:h,dataURLOptions:f,inlineImages:d,recordCanvas:m,keepIframeSrcFn:x,newlyAddedElement:p,rootId:E});case s.TEXT_NODE:return on(s,{doc:t,needsMask:l,maskTextFn:u,rootId:E,cssCaptured:y});case s.CDATA_SECTION_NODE:return{type:w.CDATA,textContent:"",rootId:E};case s.COMMENT_NODE:return{type:w.Comment,textContent:M.textContent(s)||"",rootId:E};default:return!1}}function nn(s,e){if(!e.hasNode(s))return;const t=e.getId(s);return t===1?void 0:t}function on(s,e){const{needsMask:t,maskTextFn:r,rootId:i,cssCaptured:n}=e,o=M.parentNode(s),l=o&&o.tagName;let a="";const c=l==="STYLE"?!0:void 0,u=l==="SCRIPT"?!0:void 0;return u?a="SCRIPT_PLACEHOLDER":n||(a=M.textContent(s),c&&a&&(a=ue(a,Rt(e.doc)))),!c&&!u&&a&&t&&(a=r?r(a,M.parentElement(s)):a.replace(/[\S]/g,"*")),{type:w.Text,textContent:a||"",rootId:i}}function an(s,e){const{doc:t,blockClass:r,blockSelector:i,excludeAttribute:n,inlineStylesheet:o,maskInputOptions:l={},maskInputFn:a,dataURLOptions:c={},inlineImages:u,recordCanvas:h,keepIframeSrcFn:f,newlyAddedElement:d=!1,rootId:m}=e,x=en(s,r,i),p=Ji(s);let y={};const E=s.attributes.length;for(let g=0;g<E;g++){const S=s.attributes[g];Vr(S.name,n)||jr(p,S.name,S.value)||(y[S.name]=Hr(t,p,ge(S.name),S.value))}if(p==="link"&&o){const g=Array.from(t.styleSheets).find(k=>k.href===s.href);let S=null;g&&(S=Le(g)),S&&(delete y.rel,delete y.href,y._cssText=S)}if(p==="style"&&s.sheet){let g=Le(s.sheet);g&&(s.childNodes.length>1&&(g=kr(g,s)),y._cssText=g)}if(p==="input"||p==="textarea"||p==="select"){const g=s.value,S=s.checked;y.type!=="radio"&&y.type!=="checkbox"&&y.type!=="submit"&&y.type!=="button"&&g?y.value=Rr({element:s,type:Mr(s),tagName:p,value:g,maskInputOptions:l,maskInputFn:a}):S&&(y.checked=S)}if(p==="option"&&(s.selected&&!l.select?y.selected=!0:delete y.selected),p==="dialog"&&s.open&&(y.rr_open_mode=s.matches("dialog:modal")?"modal":"non-modal"),p==="canvas"&&h){if(s.__context==="2d")Nr(s)||(y.rr_dataURL=s.toDataURL(c.type,c.quality));else if(!("__context"in s)){const g=s.toDataURL(c.type,c.quality),S=t.createElement("canvas");S.width=s.width,S.height=s.height;const k=S.toDataURL(c.type,c.quality);g!==k&&(y.rr_dataURL=g)}}if(p==="img"&&u){X||(X=t.createElement("canvas"),Zt=X.getContext("2d"));const g=s,S=g.currentSrc||g.getAttribute("src")||"<unknown-src>",k=g.crossOrigin,N=()=>{g.removeEventListener("load",N);try{X.width=g.naturalWidth,X.height=g.naturalHeight,Zt.drawImage(g,0,0),y.rr_dataURL=X.toDataURL(c.type,c.quality)}catch(P){if(g.crossOrigin!=="anonymous"){g.crossOrigin="anonymous",g.complete&&g.naturalWidth!==0?N():g.addEventListener("load",N);return}else console.warn(`Cannot inline img src=${S}! Error: ${P}`)}g.crossOrigin==="anonymous"&&(k?y.crossOrigin=k:g.removeAttribute("crossorigin"))};g.complete&&g.naturalWidth!==0?N():g.addEventListener("load",N)}if(p==="audio"||p==="video"){const g=y;g.rr_mediaState=s.paused?"paused":"played",g.rr_mediaCurrentTime=s.currentTime,g.rr_mediaPlaybackRate=s.playbackRate,g.rr_mediaMuted=s.muted,g.rr_mediaLoop=s.loop,g.rr_mediaVolume=s.volume}if(d||(s.scrollLeft&&(y.rr_scrollLeft=s.scrollLeft),s.scrollTop&&(y.rr_scrollTop=s.scrollTop)),x){const{width:g,height:S}=s.getBoundingClientRect();y={class:y.class,rr_width:`${g}px`,rr_height:`${S}px`}}p==="iframe"&&!f(y.src)&&(s.contentDocument||(y.rr_src=y.src),delete y.src);let T;try{customElements.get(p)&&(T=!0)}catch(g){}return{type:w.Element,tagName:p,attributes:y,childNodes:[],isSVG:Xi(s)||void 0,needBlock:x,rootId:m,isCustom:T}}function A(s){return s==null?"":s.toLowerCase()}function ln(s,e){if(e.comment&&s.type===w.Comment)return!0;if(s.type===w.Element){if(e.script&&(s.tagName==="script"||s.tagName==="link"&&(s.attributes.rel==="preload"&&s.attributes.as==="script"||s.attributes.rel==="modulepreload")||s.tagName==="link"&&s.attributes.rel==="prefetch"&&typeof s.attributes.href=="string"&&Ue(s.attributes.href)==="js"))return!0;if(e.headFavicon&&(s.tagName==="link"&&s.attributes.rel==="shortcut icon"||s.tagName==="meta"&&(A(s.attributes.name).match(/^msapplication-tile(image|color)$/)||A(s.attributes.name)==="application-name"||A(s.attributes.rel)==="icon"||A(s.attributes.rel)==="apple-touch-icon"||A(s.attributes.rel)==="shortcut icon")))return!0;if(s.tagName==="meta"){if(e.headMetaDescKeywords&&A(s.attributes.name).match(/^description|keywords$/))return!0;if(e.headMetaSocial&&(A(s.attributes.property).match(/^(og|twitter|fb):/)||A(s.attributes.name).match(/^(og|twitter):/)||A(s.attributes.name)==="pinterest"))return!0;if(e.headMetaRobots&&(A(s.attributes.name)==="robots"||A(s.attributes.name)==="googlebot"||A(s.attributes.name)==="bingbot"))return!0;if(e.headMetaHttpEquiv&&s.attributes["http-equiv"]!==void 0)return!0;if(e.headMetaAuthorship&&(A(s.attributes.name)==="author"||A(s.attributes.name)==="generator"||A(s.attributes.name)==="framework"||A(s.attributes.name)==="publisher"||A(s.attributes.name)==="progid"||A(s.attributes.property).match(/^article:/)||A(s.attributes.property).match(/^product:/)))return!0;if(e.headMetaVerification&&(A(s.attributes.name)==="google-site-verification"||A(s.attributes.name)==="yandex-verification"||A(s.attributes.name)==="csrf-token"||A(s.attributes.name)==="p:domain_verify"||A(s.attributes.name)==="verify-v1"||A(s.attributes.name)==="verification"||A(s.attributes.name)==="shopify-checkout-api-token"))return!0}}return!1}function te(s,e){const{doc:t,mirror:r,blockClass:i,blockSelector:n,maskTextClass:o,maskTextSelector:l,excludeAttribute:a,skipChild:c=!1,inlineStylesheet:u=!0,maskInputOptions:h={},maskTextFn:f,maskInputFn:d,slimDOMOptions:m,dataURLOptions:x={},inlineImages:p=!1,recordCanvas:y=!1,onSerialize:E,onIframeLoad:T,iframeLoadTimeout:g=5e3,onStylesheetLoad:S,stylesheetLoadTimeout:k=5e3,keepIframeSrcFn:N=()=>!1,newlyAddedElement:P=!1,cssCaptured:H=!1,selectorOptions:_}=e;let{needsMask:L}=e,{preserveWhiteSpace:I=!0}=e;L||(L=Gr(s,o,l,L===void 0));const z=sn(s,{doc:t,mirror:r,blockClass:i,blockSelector:n,excludeAttribute:a,needsMask:L,inlineStylesheet:u,maskInputOptions:h,maskTextFn:f,maskInputFn:d,dataURLOptions:x,inlineImages:p,recordCanvas:y,keepIframeSrcFn:N,newlyAddedElement:P,cssCaptured:H});if(!z)return console.warn(s,"not serialized"),null;let F;r.hasNode(s)?F=r.getId(s):ln(z,m)||!I&&z.type===w.Text&&!z.textContent.replace(/^\s+|\s+$/gm,"").length?F=nt:F=Wr();const C=Object.assign(z,{id:F});if(re(s)||s.nodeType===Node.TEXT_NODE){if(re(s)&&_!==null&&_!==void 0)try{const O={maxPathDepth:_.maxPathDepth,enableSvgFingerprint:_.enableSvgFingerprint,fallbackToBody:_.fallbackToBody},j=qi(s,O);j&&(C.selector=j)}catch(O){console.warn("Failed to generate SEQL selector:",O)}s.nodeType===Node.TEXT_NODE&&(C.isVisible=$r(s)),s.nodeType===Node.ELEMENT_NODE&&(C.isVisible=St(s),C.isInteractive=Pr(s))}if(r.add(s,C),F===nt)return null;E&&E(s);let D=!c;if(C.type===w.Element){D=D&&!C.needBlock,delete C.needBlock;const O=M.shadowRoot(s);O&&Te(O)&&(C.isShadowHost=!0)}if((C.type===w.Document||C.type===w.Element)&&D){m.headWhitespace&&C.type===w.Element&&C.tagName==="head"&&(I=!1);const O={doc:t,mirror:r,blockClass:i,blockSelector:n,needsMask:L,maskTextClass:o,maskTextSelector:l,excludeAttribute:a,skipChild:c,inlineStylesheet:u,maskInputOptions:h,maskTextFn:f,maskInputFn:d,slimDOMOptions:m,dataURLOptions:x,inlineImages:p,recordCanvas:y,preserveWhiteSpace:I,onSerialize:E,onIframeLoad:T,iframeLoadTimeout:g,onStylesheetLoad:S,stylesheetLoadTimeout:k,keepIframeSrcFn:N,cssCaptured:!1,selectorOptions:_};if(!(C.type===w.Element&&C.tagName==="textarea"&&C.attributes.value!==void 0)){C.type===w.Element&&C.attributes._cssText!==void 0&&typeof C.attributes._cssText=="string"&&(O.cssCaptured=!0);for(const qe of Array.from(M.childNodes(s))){const K=te(qe,O);K&&C.childNodes.push(K)}}let j=null;if(re(s)&&(j=M.shadowRoot(s)))for(const qe of Array.from(M.childNodes(j))){const K=te(qe,O);K&&(Te(j)&&(K.isShadow=!0),C.childNodes.push(K))}}const Q=M.parentNode(s);return Q&&xr(Q)&&Te(Q)&&(C.isShadow=!0),C.type===w.Element&&C.tagName==="iframe"&&tn(s,()=>{const O=s.contentDocument;if(O&&T){const j=te(O,{doc:O,mirror:r,blockClass:i,blockSelector:n,needsMask:L,maskTextClass:o,maskTextSelector:l,excludeAttribute:a,skipChild:!1,inlineStylesheet:u,maskInputOptions:h,maskTextFn:f,maskInputFn:d,slimDOMOptions:m,dataURLOptions:x,inlineImages:p,recordCanvas:y,preserveWhiteSpace:I,onSerialize:E,onIframeLoad:T,iframeLoadTimeout:g,onStylesheetLoad:S,stylesheetLoadTimeout:k,keepIframeSrcFn:N,selectorOptions:_});j&&T(s,j)}},g),C.type===w.Element&&C.tagName==="link"&&typeof C.attributes.rel=="string"&&(C.attributes.rel==="stylesheet"||C.attributes.rel==="preload"&&typeof C.attributes.href=="string"&&Ue(C.attributes.href)==="css")&&rn(s,()=>{if(S){const O=te(s,{doc:t,mirror:r,blockClass:i,blockSelector:n,needsMask:L,maskTextClass:o,maskTextSelector:l,excludeAttribute:a,skipChild:!1,inlineStylesheet:u,maskInputOptions:h,maskTextFn:f,maskInputFn:d,slimDOMOptions:m,dataURLOptions:x,inlineImages:p,recordCanvas:y,preserveWhiteSpace:I,onSerialize:E,onIframeLoad:T,iframeLoadTimeout:g,onStylesheetLoad:S,stylesheetLoadTimeout:k,keepIframeSrcFn:N,selectorOptions:_});O&&S(s,O)}},k),C}function cn(s,e){var L,I,z,F;const{mirror:t=new Fe,blockClass:r="rr-block",blockSelector:i=null,maskTextClass:n="rr-mask",maskTextSelector:o=null,excludeAttribute:l=/.^/,inlineStylesheet:a=!0,inlineImages:c=!1,recordCanvas:u=!1,maskAllInputs:h=!1,maskTextFn:f,maskInputFn:d,slimDOM:m=!1,dataURLOptions:x,preserveWhiteSpace:p,onSerialize:y,onIframeLoad:E,iframeLoadTimeout:T,onStylesheetLoad:g,stylesheetLoadTimeout:S,keepIframeSrcFn:k=()=>!1,selector:N}=e||{},P=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}:h===!1?{password:!0}:h,H=m===!0||m==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:m==="all",headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:m===!1?{}:m,_=N===!1?null:N===!0?{maxPathDepth:10,enableSvgFingerprint:!0,confidenceThreshold:.3,fallbackToBody:!0}:N===void 0?{maxPathDepth:10,enableSvgFingerprint:!0,confidenceThreshold:.3,fallbackToBody:!0}:{maxPathDepth:(L=N.maxPathDepth)!=null?L:10,enableSvgFingerprint:(I=N.enableSvgFingerprint)!=null?I:!0,confidenceThreshold:(z=N.confidenceThreshold)!=null?z:.3,fallbackToBody:(F=N.fallbackToBody)!=null?F:!0};return te(s,{doc:s,mirror:t,blockClass:r,blockSelector:i,maskTextClass:n,maskTextSelector:o,excludeAttribute:l,skipChild:!1,inlineStylesheet:a,maskInputOptions:P,maskTextFn:f,maskInputFn:d,slimDOMOptions:H,dataURLOptions:x,inlineImages:c,recordCanvas:u,preserveWhiteSpace:p,onSerialize:y,onIframeLoad:E,iframeLoadTimeout:T,onStylesheetLoad:g,stylesheetLoadTimeout:S,keepIframeSrcFn:k,newlyAddedElement:!1,selectorOptions:_})}function un(s,e){function t(r){e(r),(r.type===w.Document||r.type===w.Element)&&r.childNodes.forEach(t)}t(s)}function hn(){Br=1}const fn=/(max|min)-device-(width|height)/,er=new RegExp(fn.source,"g"),dn={postcssPlugin:"postcss-custom-selectors",prepare(){return{postcssPlugin:"postcss-custom-selectors",AtRule:function(s){s.params.match(er)&&(s.params=s.params.replace(er,"$1-$2"))}}}},pn={postcssPlugin:"postcss-hover-classes",prepare:function(){const s=[];return{Rule:function(e){s.indexOf(e)===-1&&(s.push(e),e.selectors.forEach(function(t){t.includes(":hover")&&(e.selector+=`,
12
+ `+t.replace(/:hover/g,".\\:hover"))}))}}}},mn={postcssPlugin:"postcss-animation-fill-mode",prepare:function(){return{Rule:function(s){let e=!1,t=!1,r=null;s.walkDecls(i=>{i.prop==="animation"&&(e=!0,r=i),i.prop==="animation-fill-mode"&&(t=!0)}),e&&!t&&r&&s.insertAfter(r,{prop:"animation-fill-mode",value:"forwards"})}}}};function gn(s){return s&&s.__esModule&&Object.prototype.hasOwnProperty.call(s,"default")?s.default:s}function yn(s){if(s.__esModule)return s;var e=s.default;if(typeof e=="function"){var t=function r(){return this instanceof r?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};t.prototype=e.prototype}else t={};return Object.defineProperty(t,"__esModule",{value:!0}),Object.keys(s).forEach(function(r){var i=Object.getOwnPropertyDescriptor(s,r);Object.defineProperty(t,r,i.get?i:{enumerable:!0,get:function(){return s[r]}})}),t}var Nt={exports:{}},b=String,qr=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,blackBright:b,redBright:b,greenBright:b,yellowBright:b,blueBright:b,magentaBright:b,cyanBright:b,whiteBright:b,bgBlackBright:b,bgRedBright:b,bgGreenBright:b,bgYellowBright:b,bgBlueBright:b,bgMagentaBright:b,bgCyanBright:b,bgWhiteBright:b}};Nt.exports=qr();Nt.exports.createColors=qr;var wn=Nt.exports;const bn={},xn=Object.freeze(Object.defineProperty({__proto__:null,default:bn},Symbol.toStringTag,{value:"Module"})),U=yn(xn);let tr=wn,rr=U,ot=class Yr extends Error{constructor(e,t,r,i,n,o){super(e),this.name="CssSyntaxError",this.reason=e,n&&(this.file=n),i&&(this.source=i),o&&(this.plugin=o),typeof t!="undefined"&&typeof r!="undefined"&&(typeof t=="number"?(this.line=t,this.column=r):(this.line=t.line,this.column=t.column,this.endLine=r.line,this.endColumn=r.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,Yr)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line!="undefined"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(e){if(!this.source)return"";let t=this.source;e==null&&(e=tr.isColorSupported);let r=u=>u,i=u=>u,n=u=>u;if(e){let{bold:u,gray:h,red:f}=tr.createColors(!0);i=d=>u(f(d)),r=d=>h(d),rr&&(n=d=>rr(d))}let o=t.split(/\r?\n/),l=Math.max(this.line-3,0),a=Math.min(this.line+2,o.length),c=String(a).length;return o.slice(l,a).map((u,h)=>{let f=l+1+h,d=" "+(" "+f).slice(-c)+" | ";if(f===this.line){if(u.length>160){let x=20,p=Math.max(0,this.column-x),y=Math.max(this.column+x,this.endColumn+x),E=u.slice(p,y),T=r(d.replace(/\d/g," "))+u.slice(0,Math.min(this.column-1,x-1)).replace(/[^\t]/g," ");return i(">")+r(d)+n(E)+`
13
+ `+T+i("^")}let m=r(d.replace(/\d/g," "))+u.slice(0,this.column-1).replace(/[^\t]/g," ");return i(">")+r(d)+n(u)+`
14
+ `+m+i("^")}return" "+r(d)+n(u)}).join(`
17
15
  `)}toString(){let e=this.showSourceCode();return e&&(e=`
18
16
 
19
17
  `+e+`
20
- `),this.name+": "+this.message+e}};var yt=Ke;Ke.default=Ke;var ue={};ue.isClean=Symbol("isClean");ue.my=Symbol("my");const Bt={after:`
18
+ `),this.name+": "+this.message+e}};var Ot=ot;ot.default=ot;const sr={after:`
21
19
  `,beforeClose:`
22
20
  `,beforeComment:`
23
21
  `,beforeDecl:`
24
22
  `,beforeOpen:" ",beforeRule:`
25
- `,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function fs(i){return i[0].toUpperCase()+i.slice(1)}let Qe=class{constructor(e){this.builder=e}atrule(e,t){let r="@"+e.name,s=e.params?this.rawValue(e,"params"):"";if(typeof e.raws.afterName!="undefined"?r+=e.raws.afterName:s&&(r+=" "),e.nodes)this.block(e,r+s);else{let o=(e.raws.between||"")+(t?";":"");this.builder(r+s+o,e)}}beforeAfter(e,t){let r;e.type==="decl"?r=this.raw(e,null,"beforeDecl"):e.type==="comment"?r=this.raw(e,null,"beforeComment"):t==="before"?r=this.raw(e,null,"beforeRule"):r=this.raw(e,null,"beforeClose");let s=e.parent,o=0;for(;s&&s.type!=="root";)o+=1,s=s.parent;if(r.includes(`
26
- `)){let n=this.raw(e,null,"indent");if(n.length)for(let a=0;a<o;a++)r+=n}return r}block(e,t){let r=this.raw(e,"between","beforeOpen");this.builder(t+r+"{",e,"start");let s;e.nodes&&e.nodes.length?(this.body(e),s=this.raw(e,"after")):s=this.raw(e,"after","emptyBody"),s&&this.builder(s),this.builder("}",e,"end")}body(e){let t=e.nodes.length-1;for(;t>0&&e.nodes[t].type==="comment";)t-=1;let r=this.raw(e,"semicolon");for(let s=0;s<e.nodes.length;s++){let o=e.nodes[s],n=this.raw(o,"before");n&&this.builder(n),this.stringify(o,t!==s||r)}}comment(e){let t=this.raw(e,"left","commentLeft"),r=this.raw(e,"right","commentRight");this.builder("/*"+t+e.text+r+"*/",e)}decl(e,t){let r=this.raw(e,"between","colon"),s=e.prop+r+this.rawValue(e,"value");e.important&&(s+=e.raws.important||" !important"),t&&(s+=";"),this.builder(s,e)}document(e){this.body(e)}raw(e,t,r){let s;if(r||(r=t),t&&(s=e.raws[t],typeof s!="undefined"))return s;let o=e.parent;if(r==="before"&&(!o||o.type==="root"&&o.first===e||o&&o.type==="document"))return"";if(!o)return Bt[r];let n=e.root();if(n.rawCache||(n.rawCache={}),typeof n.rawCache[r]!="undefined")return n.rawCache[r];if(r==="before"||r==="after")return this.beforeAfter(e,r);{let a="raw"+fs(r);this[a]?s=this[a](n,e):n.walk(l=>{if(s=l.raws[t],typeof s!="undefined")return!1})}return typeof s=="undefined"&&(s=Bt[r]),n.rawCache[r]=s,s}rawBeforeClose(e){let t;return e.walk(r=>{if(r.nodes&&r.nodes.length>0&&typeof r.raws.after!="undefined")return t=r.raws.after,t.includes(`
27
- `)&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t}rawBeforeComment(e,t){let r;return e.walkComments(s=>{if(typeof s.raws.before!="undefined")return r=s.raws.before,r.includes(`
28
- `)&&(r=r.replace(/[^\n]+$/,"")),!1}),typeof r=="undefined"?r=this.raw(t,null,"beforeDecl"):r&&(r=r.replace(/\S/g,"")),r}rawBeforeDecl(e,t){let r;return e.walkDecls(s=>{if(typeof s.raws.before!="undefined")return r=s.raws.before,r.includes(`
23
+ `,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function Cn(s){return s[0].toUpperCase()+s.slice(1)}let at=class{constructor(e){this.builder=e}atrule(e,t){let r="@"+e.name,i=e.params?this.rawValue(e,"params"):"";if(typeof e.raws.afterName!="undefined"?r+=e.raws.afterName:i&&(r+=" "),e.nodes)this.block(e,r+i);else{let n=(e.raws.between||"")+(t?";":"");this.builder(r+i+n,e)}}beforeAfter(e,t){let r;e.type==="decl"?r=this.raw(e,null,"beforeDecl"):e.type==="comment"?r=this.raw(e,null,"beforeComment"):t==="before"?r=this.raw(e,null,"beforeRule"):r=this.raw(e,null,"beforeClose");let i=e.parent,n=0;for(;i&&i.type!=="root";)n+=1,i=i.parent;if(r.includes(`
24
+ `)){let o=this.raw(e,null,"indent");if(o.length)for(let l=0;l<n;l++)r+=o}return r}block(e,t){let r=this.raw(e,"between","beforeOpen");this.builder(t+r+"{",e,"start");let i;e.nodes&&e.nodes.length?(this.body(e),i=this.raw(e,"after")):i=this.raw(e,"after","emptyBody"),i&&this.builder(i),this.builder("}",e,"end")}body(e){let t=e.nodes.length-1;for(;t>0&&e.nodes[t].type==="comment";)t-=1;let r=this.raw(e,"semicolon");for(let i=0;i<e.nodes.length;i++){let n=e.nodes[i],o=this.raw(n,"before");o&&this.builder(o),this.stringify(n,t!==i||r)}}comment(e){let t=this.raw(e,"left","commentLeft"),r=this.raw(e,"right","commentRight");this.builder("/*"+t+e.text+r+"*/",e)}decl(e,t){let r=this.raw(e,"between","colon"),i=e.prop+r+this.rawValue(e,"value");e.important&&(i+=e.raws.important||" !important"),t&&(i+=";"),this.builder(i,e)}document(e){this.body(e)}raw(e,t,r){let i;if(r||(r=t),t&&(i=e.raws[t],typeof i!="undefined"))return i;let n=e.parent;if(r==="before"&&(!n||n.type==="root"&&n.first===e||n&&n.type==="document"))return"";if(!n)return sr[r];let o=e.root();if(o.rawCache||(o.rawCache={}),typeof o.rawCache[r]!="undefined")return o.rawCache[r];if(r==="before"||r==="after")return this.beforeAfter(e,r);{let l="raw"+Cn(r);this[l]?i=this[l](o,e):o.walk(a=>{if(i=a.raws[t],typeof i!="undefined")return!1})}return typeof i=="undefined"&&(i=sr[r]),o.rawCache[r]=i,i}rawBeforeClose(e){let t;return e.walk(r=>{if(r.nodes&&r.nodes.length>0&&typeof r.raws.after!="undefined")return t=r.raws.after,t.includes(`
25
+ `)&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t}rawBeforeComment(e,t){let r;return e.walkComments(i=>{if(typeof i.raws.before!="undefined")return r=i.raws.before,r.includes(`
26
+ `)&&(r=r.replace(/[^\n]+$/,"")),!1}),typeof r=="undefined"?r=this.raw(t,null,"beforeDecl"):r&&(r=r.replace(/\S/g,"")),r}rawBeforeDecl(e,t){let r;return e.walkDecls(i=>{if(typeof i.raws.before!="undefined")return r=i.raws.before,r.includes(`
29
27
  `)&&(r=r.replace(/[^\n]+$/,"")),!1}),typeof r=="undefined"?r=this.raw(t,null,"beforeRule"):r&&(r=r.replace(/\S/g,"")),r}rawBeforeOpen(e){let t;return e.walk(r=>{if(r.type!=="decl"&&(t=r.raws.between,typeof t!="undefined"))return!1}),t}rawBeforeRule(e){let t;return e.walk(r=>{if(r.nodes&&(r.parent!==e||e.first!==r)&&typeof r.raws.before!="undefined")return t=r.raws.before,t.includes(`
30
- `)&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t}rawColon(e){let t;return e.walkDecls(r=>{if(typeof r.raws.between!="undefined")return t=r.raws.between.replace(/[^\s:]/g,""),!1}),t}rawEmptyBody(e){let t;return e.walk(r=>{if(r.nodes&&r.nodes.length===0&&(t=r.raws.after,typeof t!="undefined"))return!1}),t}rawIndent(e){if(e.raws.indent)return e.raws.indent;let t;return e.walk(r=>{let s=r.parent;if(s&&s!==e&&s.parent&&s.parent===e&&typeof r.raws.before!="undefined"){let o=r.raws.before.split(`
31
- `);return t=o[o.length-1],t=t.replace(/\S/g,""),!1}}),t}rawSemicolon(e){let t;return e.walk(r=>{if(r.nodes&&r.nodes.length&&r.last.type==="decl"&&(t=r.raws.semicolon,typeof t!="undefined"))return!1}),t}rawValue(e,t){let r=e[t],s=e.raws[t];return s&&s.value===r?s.raw:r}root(e){this.body(e),e.raws.after&&this.builder(e.raws.after)}rule(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")}stringify(e,t){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,t)}};var Rr=Qe;Qe.default=Qe;let hs=Rr;function Ze(i,e){new hs(e).stringify(i)}var Ie=Ze;Ze.default=Ze;let{isClean:pe,my:ps}=ue,ds=yt,ms=Rr,gs=Ie;function et(i,e){let t=new i.constructor;for(let r in i){if(!Object.prototype.hasOwnProperty.call(i,r)||r==="proxyCache")continue;let s=i[r],o=typeof s;r==="parent"&&o==="object"?e&&(t[r]=e):r==="source"?t[r]=s:Array.isArray(s)?t[r]=s.map(n=>et(n,t)):(o==="object"&&s!==null&&(s=et(s)),t[r]=s)}return t}let tt=class{constructor(e={}){this.raws={},this[pe]=!1,this[ps]=!0;for(let t in e)if(t==="nodes"){this.nodes=[];for(let r of e[t])typeof r.clone=="function"?this.append(r.clone()):this.append(r)}else this[t]=e[t]}addToError(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){let t=this.source;e.stack=e.stack.replace(/\n\s{4}at /,`$&${t.input.from}:${t.start.line}:${t.start.column}$&`)}return e}after(e){return this.parent.insertAfter(this,e),this}assign(e={}){for(let t in e)this[t]=e[t];return this}before(e){return this.parent.insertBefore(this,e),this}cleanRaws(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between}clone(e={}){let t=et(this);for(let r in e)t[r]=e[r];return t}cloneAfter(e={}){let t=this.clone(e);return this.parent.insertAfter(this,t),t}cloneBefore(e={}){let t=this.clone(e);return this.parent.insertBefore(this,t),t}error(e,t={}){if(this.source){let{end:r,start:s}=this.rangeBy(t);return this.source.input.error(e,{column:s.column,line:s.line},{column:r.column,line:r.line},t)}return new ds(e)}getProxyProcessor(){return{get(e,t){return t==="proxyOf"?e:t==="root"?()=>e.root().toProxy():e[t]},set(e,t,r){return e[t]===r||(e[t]=r,(t==="prop"||t==="value"||t==="name"||t==="params"||t==="important"||t==="text")&&e.markDirty()),!0}}}markDirty(){if(this[pe]){this[pe]=!1;let e=this;for(;e=e.parent;)e[pe]=!1}}next(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e+1]}positionBy(e,t){let r=this.source.start;if(e.index)r=this.positionInside(e.index,t);else if(e.word){t=this.toString();let s=t.indexOf(e.word);s!==-1&&(r=this.positionInside(s,t))}return r}positionInside(e,t){let r=t||this.toString(),s=this.source.start.column,o=this.source.start.line;for(let n=0;n<e;n++)r[n]===`
32
- `?(s=1,o+=1):s+=1;return{column:s,line:o}}prev(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e-1]}rangeBy(e){let t={column:this.source.start.column,line:this.source.start.line},r=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:t.column+1,line:t.line};if(e.word){let s=this.toString(),o=s.indexOf(e.word);o!==-1&&(t=this.positionInside(o,s),r=this.positionInside(o+e.word.length,s))}else e.start?t={column:e.start.column,line:e.start.line}:e.index&&(t=this.positionInside(e.index)),e.end?r={column:e.end.column,line:e.end.line}:typeof e.endIndex=="number"?r=this.positionInside(e.endIndex):e.index&&(r=this.positionInside(e.index+1));return(r.line<t.line||r.line===t.line&&r.column<=t.column)&&(r={column:t.column+1,line:t.line}),{end:r,start:t}}raw(e,t){return new ms().raw(this,e,t)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...e){if(this.parent){let t=this,r=!1;for(let s of e)s===this?r=!0:r?(this.parent.insertAfter(t,s),t=s):this.parent.insertBefore(t,s);r||this.remove()}return this}root(){let e=this;for(;e.parent&&e.parent.type!=="document";)e=e.parent;return e}toJSON(e,t){let r={},s=t==null;t=t||new Map;let o=0;for(let n in this){if(!Object.prototype.hasOwnProperty.call(this,n)||n==="parent"||n==="proxyCache")continue;let a=this[n];if(Array.isArray(a))r[n]=a.map(l=>typeof l=="object"&&l.toJSON?l.toJSON(null,t):l);else if(typeof a=="object"&&a.toJSON)r[n]=a.toJSON(null,t);else if(n==="source"){let l=t.get(a.input);l==null&&(l=o,t.set(a.input,o),o++),r[n]={end:a.end,inputId:l,start:a.start}}else r[n]=a}return s&&(r.inputs=[...t.keys()].map(n=>n.toJSON())),r}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(e=gs){e.stringify&&(e=e.stringify);let t="";return e(this,r=>{t+=r}),t}warn(e,t,r){let s={node:this};for(let o in r)s[o]=r[o];return e.warn(t,s)}get proxyOf(){return this}};var Pe=tt;tt.default=tt;let ys=Pe,rt=class extends ys{constructor(e){e&&typeof e.value!="undefined"&&typeof e.value!="string"&&(e=Z($({},e),{value:String(e.value)})),super(e),this.type="decl"}get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}};var $e=rt;rt.default=rt;let ws="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",bs=(i,e=21)=>(t=e)=>{let r="",s=t;for(;s--;)r+=i[Math.random()*i.length|0];return r},Cs=(i=21)=>{let e="",t=i;for(;t--;)e+=ws[Math.random()*64|0];return e};var Ss={nanoid:Cs,customAlphabet:bs};let{SourceMapConsumer:zt,SourceMapGenerator:jt}=L,{existsSync:xs,readFileSync:vs}=L,{dirname:He,join:Es}=L;function Ns(i){return Buffer?Buffer.from(i,"base64").toString():window.atob(i)}let it=class{constructor(e,t){if(t.map===!1)return;this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");let r=t.map?t.map.prev:void 0,s=this.loadMap(t.from,r);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=He(this.mapFile)),s&&(this.text=s)}consumer(){return this.consumerCache||(this.consumerCache=new zt(this.text)),this.consumerCache}decodeInline(e){let t=/^data:application\/json;charset=utf-?8;base64,/,r=/^data:application\/json;base64,/,s=/^data:application\/json;charset=utf-?8,/,o=/^data:application\/json,/;if(s.test(e)||o.test(e))return decodeURIComponent(e.substr(RegExp.lastMatch.length));if(t.test(e)||r.test(e))return Ns(e.substr(RegExp.lastMatch.length));let n=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+n)}getAnnotationURL(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(e){return typeof e!="object"?!1:typeof e.mappings=="string"||typeof e._mappings=="string"||Array.isArray(e.sections)}loadAnnotation(e){let t=e.match(/\/\*\s*# sourceMappingURL=/gm);if(!t)return;let r=e.lastIndexOf(t.pop()),s=e.indexOf("*/",r);r>-1&&s>-1&&(this.annotation=this.getAnnotationURL(e.substring(r,s)))}loadFile(e){if(this.root=He(e),xs(e))return this.mapFile=e,vs(e,"utf-8").toString().trim()}loadMap(e,t){if(t===!1)return!1;if(t){if(typeof t=="string")return t;if(typeof t=="function"){let r=t(e);if(r){let s=this.loadFile(r);if(!s)throw new Error("Unable to load previous source map: "+r.toString());return s}}else{if(t instanceof zt)return jt.fromSourceMap(t).toString();if(t instanceof jt)return t.toString();if(this.isMap(t))return JSON.stringify(t);throw new Error("Unsupported previous source map format: "+t.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let r=this.annotation;return e&&(r=Es(He(e),r)),this.loadFile(r)}}}startWith(e,t){return e?e.substr(0,t.length)===t:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}};var Ar=it;it.default=it;let{SourceMapConsumer:Os,SourceMapGenerator:Rs}=L,{fileURLToPath:Wt,pathToFileURL:de}=L,{isAbsolute:st,resolve:nt}=L,{nanoid:As}=Ss,qe=L,Vt=yt,Ms=Ar,Je=Symbol("fromOffsetCache"),_s=!!(Os&&Rs),Gt=!!(nt&&st),Ae=class{constructor(e,t={}){if(e===null||typeof e=="undefined"||typeof e=="object"&&!e.toString)throw new Error(`PostCSS received ${e} instead of CSS string`);if(this.css=e.toString(),this.css[0]==="\uFEFF"||this.css[0]==="\uFFFE"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,t.from&&(!Gt||/^\w+:\/\//.test(t.from)||st(t.from)?this.file=t.from:this.file=nt(t.from)),Gt&&_s){let r=new Ms(this.css,t);if(r.text){this.map=r;let s=r.consumer().file;!this.file&&s&&(this.file=this.mapResolve(s))}}this.file||(this.id="<input css "+As(6)+">"),this.map&&(this.map.file=this.from)}error(e,t,r,s={}){let o,n,a;if(t&&typeof t=="object"){let u=t,c=r;if(typeof u.offset=="number"){let h=this.fromOffset(u.offset);t=h.line,r=h.col}else t=u.line,r=u.column;if(typeof c.offset=="number"){let h=this.fromOffset(c.offset);n=h.line,a=h.col}else n=c.line,a=c.column}else if(!r){let u=this.fromOffset(t);t=u.line,r=u.col}let l=this.origin(t,r,n,a);return l?o=new Vt(e,l.endLine===void 0?l.line:{column:l.column,line:l.line},l.endLine===void 0?l.column:{column:l.endColumn,line:l.endLine},l.source,l.file,s.plugin):o=new Vt(e,n===void 0?t:{column:r,line:t},n===void 0?r:{column:a,line:n},this.css,this.file,s.plugin),o.input={column:r,endColumn:a,endLine:n,line:t,source:this.css},this.file&&(de&&(o.input.url=de(this.file).toString()),o.input.file=this.file),o}fromOffset(e){let t,r;if(this[Je])r=this[Je];else{let o=this.css.split(`
33
- `);r=new Array(o.length);let n=0;for(let a=0,l=o.length;a<l;a++)r[a]=n,n+=o[a].length+1;this[Je]=r}t=r[r.length-1];let s=0;if(e>=t)s=r.length-1;else{let o=r.length-2,n;for(;s<o;)if(n=s+(o-s>>1),e<r[n])o=n-1;else if(e>=r[n+1])s=n+1;else{s=n;break}}return{col:e-r[s]+1,line:s+1}}mapResolve(e){return/^\w+:\/\//.test(e)?e:nt(this.map.consumer().sourceRoot||this.map.root||".",e)}origin(e,t,r,s){if(!this.map)return!1;let o=this.map.consumer(),n=o.originalPositionFor({column:t,line:e});if(!n.source)return!1;let a;typeof r=="number"&&(a=o.originalPositionFor({column:s,line:r}));let l;st(n.source)?l=de(n.source):l=new URL(n.source,this.map.consumer().sourceRoot||de(this.map.mapFile));let u={column:n.column,endColumn:a&&a.column,endLine:a&&a.line,line:n.line,url:l.toString()};if(l.protocol==="file:")if(Wt)u.file=Wt(l);else throw new Error("file: protocol is not available in this PostCSS build");let c=o.sourceContentFor(n.source);return c&&(u.source=c),u}toJSON(){let e={};for(let t of["hasBOM","css","file","id"])this[t]!=null&&(e[t]=this[t]);return this.map&&(e.map=$({},this.map),e.map.consumerCache&&(e.map.consumerCache=void 0)),e}get from(){return this.file||this.id}};var De=Ae;Ae.default=Ae;qe&&qe.registerInput&&qe.registerInput(Ae);let{SourceMapConsumer:Mr,SourceMapGenerator:ve}=L,{dirname:Ee,relative:_r,resolve:kr,sep:Tr}=L,{pathToFileURL:Ht}=L,ks=De,Ts=!!(Mr&&ve),Ls=!!(Ee&&kr&&_r&&Tr),Is=class{constructor(e,t,r,s){this.stringify=e,this.mapOpts=r.map||{},this.root=t,this.opts=r,this.css=s,this.originalCSS=s,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let e;this.isInline()?e="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?e=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?e=this.mapOpts.annotation(this.opts.to,this.root):e=this.outputFile()+".map";let t=`
28
+ `)&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t}rawColon(e){let t;return e.walkDecls(r=>{if(typeof r.raws.between!="undefined")return t=r.raws.between.replace(/[^\s:]/g,""),!1}),t}rawEmptyBody(e){let t;return e.walk(r=>{if(r.nodes&&r.nodes.length===0&&(t=r.raws.after,typeof t!="undefined"))return!1}),t}rawIndent(e){if(e.raws.indent)return e.raws.indent;let t;return e.walk(r=>{let i=r.parent;if(i&&i!==e&&i.parent&&i.parent===e&&typeof r.raws.before!="undefined"){let n=r.raws.before.split(`
29
+ `);return t=n[n.length-1],t=t.replace(/\S/g,""),!1}}),t}rawSemicolon(e){let t;return e.walk(r=>{if(r.nodes&&r.nodes.length&&r.last.type==="decl"&&(t=r.raws.semicolon,typeof t!="undefined"))return!1}),t}rawValue(e,t){let r=e[t],i=e.raws[t];return i&&i.value===r?i.raw:r}root(e){this.body(e),e.raws.after&&this.builder(e.raws.after)}rule(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")}stringify(e,t){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,t)}};var Jr=at;at.default=at;let Sn=Jr;function lt(s,e){new Sn(e).stringify(s)}var Be=lt;lt.default=lt;var ye={};ye.isClean=Symbol("isClean");ye.my=Symbol("my");let vn=Ot,En=Jr,An=Be,{isClean:oe,my:Rn}=ye;function ct(s,e){let t=new s.constructor;for(let r in s){if(!Object.prototype.hasOwnProperty.call(s,r)||r==="proxyCache")continue;let i=s[r],n=typeof i;r==="parent"&&n==="object"?e&&(t[r]=e):r==="source"?t[r]=i:Array.isArray(i)?t[r]=i.map(o=>ct(o,t)):(n==="object"&&i!==null&&(i=ct(i)),t[r]=i)}return t}function V(s,e){if(e&&typeof e.offset!="undefined")return e.offset;let t=1,r=1,i=0;for(let n=0;n<s.length;n++){if(r===e.line&&t===e.column){i=n;break}s[n]===`
30
+ `?(t=1,r+=1):t+=1}return i}let ut=class{get proxyOf(){return this}constructor(e={}){this.raws={},this[oe]=!1,this[Rn]=!0;for(let t in e)if(t==="nodes"){this.nodes=[];for(let r of e[t])typeof r.clone=="function"?this.append(r.clone()):this.append(r)}else this[t]=e[t]}addToError(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){let t=this.source;e.stack=e.stack.replace(/\n\s{4}at /,`$&${t.input.from}:${t.start.line}:${t.start.column}$&`)}return e}after(e){return this.parent.insertAfter(this,e),this}assign(e={}){for(let t in e)this[t]=e[t];return this}before(e){return this.parent.insertBefore(this,e),this}cleanRaws(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between}clone(e={}){let t=ct(this);for(let r in e)t[r]=e[r];return t}cloneAfter(e={}){let t=this.clone(e);return this.parent.insertAfter(this,t),t}cloneBefore(e={}){let t=this.clone(e);return this.parent.insertBefore(this,t),t}error(e,t={}){if(this.source){let{end:r,start:i}=this.rangeBy(t);return this.source.input.error(e,{column:i.column,line:i.line},{column:r.column,line:r.line},t)}return new vn(e)}getProxyProcessor(){return{get(e,t){return t==="proxyOf"?e:t==="root"?()=>e.root().toProxy():e[t]},set(e,t,r){return e[t]===r||(e[t]=r,(t==="prop"||t==="value"||t==="name"||t==="params"||t==="important"||t==="text")&&e.markDirty()),!0}}}markClean(){this[oe]=!0}markDirty(){if(this[oe]){this[oe]=!1;let e=this;for(;e=e.parent;)e[oe]=!1}}next(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e+1]}positionBy(e={}){let t=this.source.start;if(e.index)t=this.positionInside(e.index);else if(e.word){let r="document"in this.source.input?this.source.input.document:this.source.input.css,n=r.slice(V(r,this.source.start),V(r,this.source.end)).indexOf(e.word);n!==-1&&(t=this.positionInside(n))}return t}positionInside(e){let t=this.source.start.column,r=this.source.start.line,i="document"in this.source.input?this.source.input.document:this.source.input.css,n=V(i,this.source.start),o=n+e;for(let l=n;l<o;l++)i[l]===`
31
+ `?(t=1,r+=1):t+=1;return{column:t,line:r,offset:o}}prev(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e-1]}rangeBy(e={}){let t="document"in this.source.input?this.source.input.document:this.source.input.css,r={column:this.source.start.column,line:this.source.start.line,offset:V(t,this.source.start)},i=this.source.end?{column:this.source.end.column+1,line:this.source.end.line,offset:typeof this.source.end.offset=="number"?this.source.end.offset:V(t,this.source.end)+1}:{column:r.column+1,line:r.line,offset:r.offset+1};if(e.word){let o=t.slice(V(t,this.source.start),V(t,this.source.end)).indexOf(e.word);o!==-1&&(r=this.positionInside(o),i=this.positionInside(o+e.word.length))}else e.start?r={column:e.start.column,line:e.start.line,offset:V(t,e.start)}:e.index&&(r=this.positionInside(e.index)),e.end?i={column:e.end.column,line:e.end.line,offset:V(t,e.end)}:typeof e.endIndex=="number"?i=this.positionInside(e.endIndex):e.index&&(i=this.positionInside(e.index+1));return(i.line<r.line||i.line===r.line&&i.column<=r.column)&&(i={column:r.column+1,line:r.line,offset:r.offset+1}),{end:i,start:r}}raw(e,t){return new En().raw(this,e,t)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...e){if(this.parent){let t=this,r=!1;for(let i of e)i===this?r=!0:r?(this.parent.insertAfter(t,i),t=i):this.parent.insertBefore(t,i);r||this.remove()}return this}root(){let e=this;for(;e.parent&&e.parent.type!=="document";)e=e.parent;return e}toJSON(e,t){let r={},i=t==null;t=t||new Map;let n=0;for(let o in this){if(!Object.prototype.hasOwnProperty.call(this,o)||o==="parent"||o==="proxyCache")continue;let l=this[o];if(Array.isArray(l))r[o]=l.map(a=>typeof a=="object"&&a.toJSON?a.toJSON(null,t):a);else if(typeof l=="object"&&l.toJSON)r[o]=l.toJSON(null,t);else if(o==="source"){if(l==null)continue;let a=t.get(l.input);a==null&&(a=n,t.set(l.input,n),n++),r[o]={end:l.end,inputId:a,start:l.start}}else r[o]=l}return i&&(r.inputs=[...t.keys()].map(o=>o.toJSON())),r}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(e=An){e.stringify&&(e=e.stringify);let t="";return e(this,r=>{t+=r}),t}warn(e,t,r={}){let i={node:this};for(let n in r)i[n]=r[n];return e.warn(t,i)}};var We=ut;ut.default=ut;let Nn=We,ht=class extends Nn{constructor(e){super(e),this.type="comment"}};var He=ht;ht.default=ht;let On=We,ft=class extends On{get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}constructor(e){e&&typeof e.value!="undefined"&&typeof e.value!="string"&&(e=Z($({},e),{value:String(e.value)})),super(e),this.type="decl"}};var je=ft;ft.default=ft;let Qr=He,Kr=je,Mn=We,{isClean:Zr,my:Xr}=ye,Mt,es,ts,Tt;function rs(s){return s.map(e=>(e.nodes&&(e.nodes=rs(e.nodes)),delete e.source,e))}function ss(s){if(s[Zr]=!1,s.proxyOf.nodes)for(let e of s.proxyOf.nodes)ss(e)}let G=class is extends Mn{get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}append(...e){for(let t of e){let r=this.normalize(t,this.last);for(let i of r)this.proxyOf.nodes.push(i)}return this.markDirty(),this}cleanRaws(e){if(super.cleanRaws(e),this.nodes)for(let t of this.nodes)t.cleanRaws(e)}each(e){if(!this.proxyOf.nodes)return;let t=this.getIterator(),r,i;for(;this.indexes[t]<this.proxyOf.nodes.length&&(r=this.indexes[t],i=e(this.proxyOf.nodes[r],r),i!==!1);)this.indexes[t]+=1;return delete this.indexes[t],i}every(e){return this.nodes.every(e)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let e=this.lastEach;return this.indexes[e]=0,e}getProxyProcessor(){return{get(e,t){return t==="proxyOf"?e:e[t]?t==="each"||typeof t=="string"&&t.startsWith("walk")?(...r)=>e[t](...r.map(i=>typeof i=="function"?(n,o)=>i(n.toProxy(),o):i)):t==="every"||t==="some"?r=>e[t]((i,...n)=>r(i.toProxy(),...n)):t==="root"?()=>e.root().toProxy():t==="nodes"?e.nodes.map(r=>r.toProxy()):t==="first"||t==="last"?e[t].toProxy():e[t]:e[t]},set(e,t,r){return e[t]===r||(e[t]=r,(t==="name"||t==="params"||t==="selector")&&e.markDirty()),!0}}}index(e){return typeof e=="number"?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))}insertAfter(e,t){let r=this.index(e),i=this.normalize(t,this.proxyOf.nodes[r]).reverse();r=this.index(e);for(let o of i)this.proxyOf.nodes.splice(r+1,0,o);let n;for(let o in this.indexes)n=this.indexes[o],r<n&&(this.indexes[o]=n+i.length);return this.markDirty(),this}insertBefore(e,t){let r=this.index(e),i=r===0?"prepend":!1,n=this.normalize(t,this.proxyOf.nodes[r],i).reverse();r=this.index(e);for(let l of n)this.proxyOf.nodes.splice(r,0,l);let o;for(let l in this.indexes)o=this.indexes[l],r<=o&&(this.indexes[l]=o+n.length);return this.markDirty(),this}normalize(e,t){if(typeof e=="string")e=rs(es(e).nodes);else if(typeof e=="undefined")e=[];else if(Array.isArray(e)){e=e.slice(0);for(let i of e)i.parent&&i.parent.removeChild(i,"ignore")}else if(e.type==="root"&&this.type!=="document"){e=e.nodes.slice(0);for(let i of e)i.parent&&i.parent.removeChild(i,"ignore")}else if(e.type)e=[e];else if(e.prop){if(typeof e.value=="undefined")throw new Error("Value field is missed in node creation");typeof e.value!="string"&&(e.value=String(e.value)),e=[new Kr(e)]}else if(e.selector||e.selectors)e=[new Tt(e)];else if(e.name)e=[new Mt(e)];else if(e.text)e=[new Qr(e)];else throw new Error("Unknown node type in node creation");return e.map(i=>(i[Xr]||is.rebuild(i),i=i.proxyOf,i.parent&&i.parent.removeChild(i),i[Zr]&&ss(i),i.raws||(i.raws={}),typeof i.raws.before=="undefined"&&t&&typeof t.raws.before!="undefined"&&(i.raws.before=t.raws.before.replace(/\S/g,"")),i.parent=this.proxyOf,i))}prepend(...e){e=e.reverse();for(let t of e){let r=this.normalize(t,this.first,"prepend").reverse();for(let i of r)this.proxyOf.nodes.unshift(i);for(let i in this.indexes)this.indexes[i]=this.indexes[i]+r.length}return this.markDirty(),this}push(e){return e.parent=this,this.proxyOf.nodes.push(e),this}removeAll(){for(let e of this.proxyOf.nodes)e.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(e){e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1);let t;for(let r in this.indexes)t=this.indexes[r],t>=e&&(this.indexes[r]=t-1);return this.markDirty(),this}replaceValues(e,t,r){return r||(r=t,t={}),this.walkDecls(i=>{t.props&&!t.props.includes(i.prop)||t.fast&&!i.value.includes(t.fast)||(i.value=i.value.replace(e,r))}),this.markDirty(),this}some(e){return this.nodes.some(e)}walk(e){return this.each((t,r)=>{let i;try{i=e(t,r)}catch(n){throw t.addToError(n)}return i!==!1&&t.walk&&(i=t.walk(e)),i})}walkAtRules(e,t){return t?e instanceof RegExp?this.walk((r,i)=>{if(r.type==="atrule"&&e.test(r.name))return t(r,i)}):this.walk((r,i)=>{if(r.type==="atrule"&&r.name===e)return t(r,i)}):(t=e,this.walk((r,i)=>{if(r.type==="atrule")return t(r,i)}))}walkComments(e){return this.walk((t,r)=>{if(t.type==="comment")return e(t,r)})}walkDecls(e,t){return t?e instanceof RegExp?this.walk((r,i)=>{if(r.type==="decl"&&e.test(r.prop))return t(r,i)}):this.walk((r,i)=>{if(r.type==="decl"&&r.prop===e)return t(r,i)}):(t=e,this.walk((r,i)=>{if(r.type==="decl")return t(r,i)}))}walkRules(e,t){return t?e instanceof RegExp?this.walk((r,i)=>{if(r.type==="rule"&&e.test(r.selector))return t(r,i)}):this.walk((r,i)=>{if(r.type==="rule"&&r.selector===e)return t(r,i)}):(t=e,this.walk((r,i)=>{if(r.type==="rule")return t(r,i)}))}};G.registerParse=s=>{es=s};G.registerRule=s=>{Tt=s};G.registerAtRule=s=>{Mt=s};G.registerRoot=s=>{ts=s};var J=G;G.default=G;G.rebuild=s=>{s.type==="atrule"?Object.setPrototypeOf(s,Mt.prototype):s.type==="rule"?Object.setPrototypeOf(s,Tt.prototype):s.type==="decl"?Object.setPrototypeOf(s,Kr.prototype):s.type==="comment"?Object.setPrototypeOf(s,Qr.prototype):s.type==="root"&&Object.setPrototypeOf(s,ts.prototype),s[Xr]=!0,s.nodes&&s.nodes.forEach(e=>{G.rebuild(e)})};let ns=J,Pe=class extends ns{constructor(e){super(e),this.type="atrule"}append(...e){return this.proxyOf.nodes||(this.nodes=[]),super.append(...e)}prepend(...e){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...e)}};var kt=Pe;Pe.default=Pe;ns.registerAtRule(Pe);let Tn=J,os,as,fe=class extends Tn{constructor(e){super($({type:"document"},e)),this.nodes||(this.nodes=[])}toResult(e={}){return new os(new as,this,e).stringify()}};fe.registerLazyResult=s=>{os=s};fe.registerProcessor=s=>{as=s};var $t=fe;fe.default=fe;let kn="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",$n=(s=21)=>{let e="",t=s|0;for(;t--;)e+=kn[Math.random()*64|0];return e};var Ln={nanoid:$n};let{existsSync:_n,readFileSync:Pn}=U,{dirname:et,join:Dn}=U,{SourceMapConsumer:ir,SourceMapGenerator:nr}=U;function In(s){return Buffer?Buffer.from(s,"base64").toString():window.atob(s)}let dt=class{constructor(e,t){if(t.map===!1)return;this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");let r=t.map?t.map.prev:void 0,i=this.loadMap(t.from,r);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=et(this.mapFile)),i&&(this.text=i)}consumer(){return this.consumerCache||(this.consumerCache=new ir(this.text)),this.consumerCache}decodeInline(e){let t=/^data:application\/json;charset=utf-?8;base64,/,r=/^data:application\/json;base64,/,i=/^data:application\/json;charset=utf-?8,/,n=/^data:application\/json,/,o=e.match(i)||e.match(n);if(o)return decodeURIComponent(e.substr(o[0].length));let l=e.match(t)||e.match(r);if(l)return In(e.substr(l[0].length));let a=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+a)}getAnnotationURL(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(e){return typeof e!="object"?!1:typeof e.mappings=="string"||typeof e._mappings=="string"||Array.isArray(e.sections)}loadAnnotation(e){let t=e.match(/\/\*\s*# sourceMappingURL=/g);if(!t)return;let r=e.lastIndexOf(t.pop()),i=e.indexOf("*/",r);r>-1&&i>-1&&(this.annotation=this.getAnnotationURL(e.substring(r,i)))}loadFile(e){if(this.root=et(e),_n(e))return this.mapFile=e,Pn(e,"utf-8").toString().trim()}loadMap(e,t){if(t===!1)return!1;if(t){if(typeof t=="string")return t;if(typeof t=="function"){let r=t(e);if(r){let i=this.loadFile(r);if(!i)throw new Error("Unable to load previous source map: "+r.toString());return i}}else{if(t instanceof ir)return nr.fromSourceMap(t).toString();if(t instanceof nr)return t.toString();if(this.isMap(t))return JSON.stringify(t);throw new Error("Unsupported previous source map format: "+t.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let r=this.annotation;return e&&(r=Dn(et(e),r)),this.loadFile(r)}}}startWith(e,t){return e?e.substr(0,t.length)===t:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}};var ls=dt;dt.default=dt;let{nanoid:zn}=Ln,{isAbsolute:pt,resolve:mt}=U,{SourceMapConsumer:Fn,SourceMapGenerator:Un}=U,{fileURLToPath:or,pathToFileURL:Se}=U,ar=Ot,Bn=ls,tt=U,rt=Symbol("lineToIndexCache"),Wn=!!(Fn&&Un),lr=!!(mt&&pt);function cr(s){if(s[rt])return s[rt];let e=s.css.split(`
32
+ `),t=new Array(e.length),r=0;for(let i=0,n=e.length;i<n;i++)t[i]=r,r+=e[i].length+1;return s[rt]=t,t}let De=class{get from(){return this.file||this.id}constructor(e,t={}){if(e===null||typeof e=="undefined"||typeof e=="object"&&!e.toString)throw new Error(`PostCSS received ${e} instead of CSS string`);if(this.css=e.toString(),this.css[0]==="\uFEFF"||this.css[0]==="\uFFFE"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,this.document=this.css,t.document&&(this.document=t.document.toString()),t.from&&(!lr||/^\w+:\/\//.test(t.from)||pt(t.from)?this.file=t.from:this.file=mt(t.from)),lr&&Wn){let r=new Bn(this.css,t);if(r.text){this.map=r;let i=r.consumer().file;!this.file&&i&&(this.file=this.mapResolve(i))}}this.file||(this.id="<input css "+zn(6)+">"),this.map&&(this.map.file=this.from)}error(e,t,r,i={}){let n,o,l,a,c;if(t&&typeof t=="object"){let h=t,f=r;if(typeof h.offset=="number"){a=h.offset;let d=this.fromOffset(a);t=d.line,r=d.col}else t=h.line,r=h.column,a=this.fromLineAndColumn(t,r);if(typeof f.offset=="number"){l=f.offset;let d=this.fromOffset(l);o=d.line,n=d.col}else o=f.line,n=f.column,l=this.fromLineAndColumn(f.line,f.column)}else if(r)a=this.fromLineAndColumn(t,r);else{a=t;let h=this.fromOffset(a);t=h.line,r=h.col}let u=this.origin(t,r,o,n);return u?c=new ar(e,u.endLine===void 0?u.line:{column:u.column,line:u.line},u.endLine===void 0?u.column:{column:u.endColumn,line:u.endLine},u.source,u.file,i.plugin):c=new ar(e,o===void 0?t:{column:r,line:t},o===void 0?r:{column:n,line:o},this.css,this.file,i.plugin),c.input={column:r,endColumn:n,endLine:o,endOffset:l,line:t,offset:a,source:this.css},this.file&&(Se&&(c.input.url=Se(this.file).toString()),c.input.file=this.file),c}fromLineAndColumn(e,t){return cr(this)[e-1]+t-1}fromOffset(e){let t=cr(this),r=t[t.length-1],i=0;if(e>=r)i=t.length-1;else{let n=t.length-2,o;for(;i<n;)if(o=i+(n-i>>1),e<t[o])n=o-1;else if(e>=t[o+1])i=o+1;else{i=o;break}}return{col:e-t[i]+1,line:i+1}}mapResolve(e){return/^\w+:\/\//.test(e)?e:mt(this.map.consumer().sourceRoot||this.map.root||".",e)}origin(e,t,r,i){if(!this.map)return!1;let n=this.map.consumer(),o=n.originalPositionFor({column:t,line:e});if(!o.source)return!1;let l;typeof r=="number"&&(l=n.originalPositionFor({column:i,line:r}));let a;pt(o.source)?a=Se(o.source):a=new URL(o.source,this.map.consumer().sourceRoot||Se(this.map.mapFile));let c={column:o.column,endColumn:l&&l.column,endLine:l&&l.line,line:o.line,url:a.toString()};if(a.protocol==="file:")if(or)c.file=or(a);else throw new Error("file: protocol is not available in this PostCSS build");let u=n.sourceContentFor(o.source);return u&&(c.source=u),c}toJSON(){let e={};for(let t of["hasBOM","css","file","id"])this[t]!=null&&(e[t]=this[t]);return this.map&&(e.map=$({},this.map),e.map.consumerCache&&(e.map.consumerCache=void 0)),e}};var Ve=De;De.default=De;tt&&tt.registerInput&&tt.registerInput(De);let cs=J,us,hs,se=class extends cs{constructor(e){super(e),this.type="root",this.nodes||(this.nodes=[])}normalize(e,t,r){let i=super.normalize(e);if(t){if(r==="prepend")this.nodes.length>1?t.raws.before=this.nodes[1].raws.before:delete t.raws.before;else if(this.first!==t)for(let n of i)n.raws.before=t.raws.before}return i}removeChild(e,t){let r=this.index(e);return!t&&r===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[r].raws.before),super.removeChild(e)}toResult(e={}){return new us(new hs,this,e).stringify()}};se.registerLazyResult=s=>{us=s};se.registerProcessor=s=>{hs=s};var we=se;se.default=se;cs.registerRoot(se);let de={comma(s){return de.split(s,[","],!0)},space(s){let e=[" ",`
33
+ `," "];return de.split(s,e)},split(s,e,t){let r=[],i="",n=!1,o=0,l=!1,a="",c=!1;for(let u of s)c?c=!1:u==="\\"?c=!0:l?u===a&&(l=!1):u==='"'||u==="'"?(l=!0,a=u):u==="("?o+=1:u===")"?o>0&&(o-=1):o===0&&e.includes(u)&&(n=!0),n?(i!==""&&r.push(i.trim()),i="",n=!1):i+=u;return(t||i!=="")&&r.push(i.trim()),r}};var fs=de;de.default=de;let ds=J,Hn=fs,Ie=class extends ds{get selectors(){return Hn.comma(this.selector)}set selectors(e){let t=this.selector?this.selector.match(/,\s*/):null,r=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(r)}constructor(e){super(e),this.type="rule",this.nodes||(this.nodes=[])}};var Lt=Ie;Ie.default=Ie;ds.registerRule(Ie);let jn=kt,Vn=He,Gn=je,qn=Ve,Yn=ls,Jn=we,Qn=Lt;function pe(s,e){if(Array.isArray(s))return s.map(o=>pe(o));let i=s,{inputs:t}=i,r=Ye(i,["inputs"]);if(t){e=[];for(let o of t){let l=Z($({},o),{__proto__:qn.prototype});l.map&&(l.map=Z($({},l.map),{__proto__:Yn.prototype})),e.push(l)}}if(r.nodes&&(r.nodes=s.nodes.map(o=>pe(o,e))),r.source){let n=r.source,{inputId:o}=n,l=Ye(n,["inputId"]);r.source=l,o!=null&&(r.source.input=e[o])}if(r.type==="root")return new Jn(r);if(r.type==="decl")return new Gn(r);if(r.type==="rule")return new Qn(r);if(r.type==="comment")return new Vn(r);if(r.type==="atrule")return new jn(r);throw new Error("Unknown node type: "+s.type)}var Kn=pe;pe.default=pe;let{dirname:ke,relative:ps,resolve:ms,sep:gs}=U,{SourceMapConsumer:ys,SourceMapGenerator:$e}=U,{pathToFileURL:ur}=U,Zn=Ve,Xn=!!(ys&&$e),eo=!!(ke&&ms&&ps&&gs),to=class{constructor(e,t,r,i){this.stringify=e,this.mapOpts=r.map||{},this.root=t,this.opts=r,this.css=i,this.originalCSS=i,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let e;this.isInline()?e="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?e=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?e=this.mapOpts.annotation(this.opts.to,this.root):e=this.outputFile()+".map";let t=`
34
34
  `;this.css.includes(`\r
35
35
  `)&&(t=`\r
36
- `),this.css+=t+"/*# sourceMappingURL="+e+" */"}applyPrevMaps(){for(let e of this.previous()){let t=this.toUrl(this.path(e.file)),r=e.root||Ee(e.file),s;this.mapOpts.sourcesContent===!1?(s=new Mr(e.text),s.sourcesContent&&(s.sourcesContent=null)):s=e.consumer(),this.map.applySourceMap(s,t,this.toUrl(this.path(r)))}}clearAnnotation(){if(this.mapOpts.annotation!==!1)if(this.root){let e;for(let t=this.root.nodes.length-1;t>=0;t--)e=this.root.nodes[t],e.type==="comment"&&e.text.indexOf("# sourceMappingURL=")===0&&this.root.removeChild(t)}else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),Ls&&Ts&&this.isMap())return this.generateMap();{let e="";return this.stringify(this.root,t=>{e+=t}),[e]}}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=ve.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new ve({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]}generateString(){this.css="",this.map=new ve({file:this.outputFile(),ignoreInvalidMapping:!0});let e=1,t=1,r="<no source>",s={generated:{column:0,line:0},original:{column:0,line:0},source:""},o,n;this.stringify(this.root,(a,l,u)=>{if(this.css+=a,l&&u!=="end"&&(s.generated.line=e,s.generated.column=t-1,l.source&&l.source.start?(s.source=this.sourcePath(l),s.original.line=l.source.start.line,s.original.column=l.source.start.column-1,this.map.addMapping(s)):(s.source=r,s.original.line=1,s.original.column=0,this.map.addMapping(s))),o=a.match(/\n/g),o?(e+=o.length,n=a.lastIndexOf(`
37
- `),t=a.length-n):t+=a.length,l&&u!=="start"){let c=l.parent||{raws:{}};(!(l.type==="decl"||l.type==="atrule"&&!l.nodes)||l!==c.last||c.raws.semicolon)&&(l.source&&l.source.end?(s.source=this.sourcePath(l),s.original.line=l.source.end.line,s.original.column=l.source.end.column-1,s.generated.line=e,s.generated.column=t-2,this.map.addMapping(s)):(s.source=r,s.original.line=1,s.original.column=0,s.generated.line=e,s.generated.column=t-1,this.map.addMapping(s)))}})}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation!="undefined"?this.mapOpts.annotation:this.previous().length?this.previous().some(e=>e.annotation):!0}isInline(){if(typeof this.mapOpts.inline!="undefined")return this.mapOpts.inline;let e=this.mapOpts.annotation;return typeof e!="undefined"&&e!==!0?!1:this.previous().length?this.previous().some(t=>t.inline):!0}isMap(){return typeof this.opts.map!="undefined"?!!this.opts.map:this.previous().length>0}isSourcesContent(){return typeof this.mapOpts.sourcesContent!="undefined"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(e=>e.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(e){if(this.mapOpts.absolute||e.charCodeAt(0)===60||/^\w+:\/\//.test(e))return e;let t=this.memoizedPaths.get(e);if(t)return t;let r=this.opts.to?Ee(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(r=Ee(kr(r,this.mapOpts.annotation)));let s=_r(r,e);return this.memoizedPaths.set(e,s),s}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(e=>{if(e.source&&e.source.input.map){let t=e.source.input.map;this.previousMaps.includes(t)||this.previousMaps.push(t)}});else{let e=new ks(this.originalCSS,this.opts);e.map&&this.previousMaps.push(e.map)}return this.previousMaps}setSourcesContent(){let e={};if(this.root)this.root.walk(t=>{if(t.source){let r=t.source.input.from;if(r&&!e[r]){e[r]=!0;let s=this.usesFileUrls?this.toFileUrl(r):this.toUrl(this.path(r));this.map.setSourceContent(s,t.source.input.css)}}});else if(this.css){let t=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(t,this.css)}}sourcePath(e){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(e.source.input.from):this.toUrl(this.path(e.source.input.from))}toBase64(e){return Buffer?Buffer.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))}toFileUrl(e){let t=this.memoizedFileURLs.get(e);if(t)return t;if(Ht){let r=Ht(e).toString();return this.memoizedFileURLs.set(e,r),r}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(e){let t=this.memoizedURLs.get(e);if(t)return t;Tr==="\\"&&(e=e.replace(/\\/g,"/"));let r=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,r),r}};var Lr=Is;let Ps=Pe,ot=class extends Ps{constructor(e){super(e),this.type="comment"}};var Ue=ot;ot.default=ot;let{isClean:Ir,my:Pr}=ue,$r=$e,Dr=Ue,$s=Pe,Ur,wt,bt,Fr;function Br(i){return i.map(e=>(e.nodes&&(e.nodes=Br(e.nodes)),delete e.source,e))}function zr(i){if(i[Ir]=!1,i.proxyOf.nodes)for(let e of i.proxyOf.nodes)zr(e)}let D=class jr extends $s{append(...e){for(let t of e){let r=this.normalize(t,this.last);for(let s of r)this.proxyOf.nodes.push(s)}return this.markDirty(),this}cleanRaws(e){if(super.cleanRaws(e),this.nodes)for(let t of this.nodes)t.cleanRaws(e)}each(e){if(!this.proxyOf.nodes)return;let t=this.getIterator(),r,s;for(;this.indexes[t]<this.proxyOf.nodes.length&&(r=this.indexes[t],s=e(this.proxyOf.nodes[r],r),s!==!1);)this.indexes[t]+=1;return delete this.indexes[t],s}every(e){return this.nodes.every(e)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let e=this.lastEach;return this.indexes[e]=0,e}getProxyProcessor(){return{get(e,t){return t==="proxyOf"?e:e[t]?t==="each"||typeof t=="string"&&t.startsWith("walk")?(...r)=>e[t](...r.map(s=>typeof s=="function"?(o,n)=>s(o.toProxy(),n):s)):t==="every"||t==="some"?r=>e[t]((s,...o)=>r(s.toProxy(),...o)):t==="root"?()=>e.root().toProxy():t==="nodes"?e.nodes.map(r=>r.toProxy()):t==="first"||t==="last"?e[t].toProxy():e[t]:e[t]},set(e,t,r){return e[t]===r||(e[t]=r,(t==="name"||t==="params"||t==="selector")&&e.markDirty()),!0}}}index(e){return typeof e=="number"?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))}insertAfter(e,t){let r=this.index(e),s=this.normalize(t,this.proxyOf.nodes[r]).reverse();r=this.index(e);for(let n of s)this.proxyOf.nodes.splice(r+1,0,n);let o;for(let n in this.indexes)o=this.indexes[n],r<o&&(this.indexes[n]=o+s.length);return this.markDirty(),this}insertBefore(e,t){let r=this.index(e),s=r===0?"prepend":!1,o=this.normalize(t,this.proxyOf.nodes[r],s).reverse();r=this.index(e);for(let a of o)this.proxyOf.nodes.splice(r,0,a);let n;for(let a in this.indexes)n=this.indexes[a],r<=n&&(this.indexes[a]=n+o.length);return this.markDirty(),this}normalize(e,t){if(typeof e=="string")e=Br(Ur(e).nodes);else if(typeof e=="undefined")e=[];else if(Array.isArray(e)){e=e.slice(0);for(let s of e)s.parent&&s.parent.removeChild(s,"ignore")}else if(e.type==="root"&&this.type!=="document"){e=e.nodes.slice(0);for(let s of e)s.parent&&s.parent.removeChild(s,"ignore")}else if(e.type)e=[e];else if(e.prop){if(typeof e.value=="undefined")throw new Error("Value field is missed in node creation");typeof e.value!="string"&&(e.value=String(e.value)),e=[new $r(e)]}else if(e.selector)e=[new wt(e)];else if(e.name)e=[new bt(e)];else if(e.text)e=[new Dr(e)];else throw new Error("Unknown node type in node creation");return e.map(s=>(s[Pr]||jr.rebuild(s),s=s.proxyOf,s.parent&&s.parent.removeChild(s),s[Ir]&&zr(s),typeof s.raws.before=="undefined"&&t&&typeof t.raws.before!="undefined"&&(s.raws.before=t.raws.before.replace(/\S/g,"")),s.parent=this.proxyOf,s))}prepend(...e){e=e.reverse();for(let t of e){let r=this.normalize(t,this.first,"prepend").reverse();for(let s of r)this.proxyOf.nodes.unshift(s);for(let s in this.indexes)this.indexes[s]=this.indexes[s]+r.length}return this.markDirty(),this}push(e){return e.parent=this,this.proxyOf.nodes.push(e),this}removeAll(){for(let e of this.proxyOf.nodes)e.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(e){e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1);let t;for(let r in this.indexes)t=this.indexes[r],t>=e&&(this.indexes[r]=t-1);return this.markDirty(),this}replaceValues(e,t,r){return r||(r=t,t={}),this.walkDecls(s=>{t.props&&!t.props.includes(s.prop)||t.fast&&!s.value.includes(t.fast)||(s.value=s.value.replace(e,r))}),this.markDirty(),this}some(e){return this.nodes.some(e)}walk(e){return this.each((t,r)=>{let s;try{s=e(t,r)}catch(o){throw t.addToError(o)}return s!==!1&&t.walk&&(s=t.walk(e)),s})}walkAtRules(e,t){return t?e instanceof RegExp?this.walk((r,s)=>{if(r.type==="atrule"&&e.test(r.name))return t(r,s)}):this.walk((r,s)=>{if(r.type==="atrule"&&r.name===e)return t(r,s)}):(t=e,this.walk((r,s)=>{if(r.type==="atrule")return t(r,s)}))}walkComments(e){return this.walk((t,r)=>{if(t.type==="comment")return e(t,r)})}walkDecls(e,t){return t?e instanceof RegExp?this.walk((r,s)=>{if(r.type==="decl"&&e.test(r.prop))return t(r,s)}):this.walk((r,s)=>{if(r.type==="decl"&&r.prop===e)return t(r,s)}):(t=e,this.walk((r,s)=>{if(r.type==="decl")return t(r,s)}))}walkRules(e,t){return t?e instanceof RegExp?this.walk((r,s)=>{if(r.type==="rule"&&e.test(r.selector))return t(r,s)}):this.walk((r,s)=>{if(r.type==="rule"&&r.selector===e)return t(r,s)}):(t=e,this.walk((r,s)=>{if(r.type==="rule")return t(r,s)}))}get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}};D.registerParse=i=>{Ur=i};D.registerRule=i=>{wt=i};D.registerAtRule=i=>{bt=i};D.registerRoot=i=>{Fr=i};var F=D;D.default=D;D.rebuild=i=>{i.type==="atrule"?Object.setPrototypeOf(i,bt.prototype):i.type==="rule"?Object.setPrototypeOf(i,wt.prototype):i.type==="decl"?Object.setPrototypeOf(i,$r.prototype):i.type==="comment"?Object.setPrototypeOf(i,Dr.prototype):i.type==="root"&&Object.setPrototypeOf(i,Fr.prototype),i[Pr]=!0,i.nodes&&i.nodes.forEach(e=>{D.rebuild(e)})};let Ds=F,Wr,Vr,se=class extends Ds{constructor(e){super($({type:"document"},e)),this.nodes||(this.nodes=[])}toResult(e={}){return new Wr(new Vr,this,e).stringify()}};se.registerLazyResult=i=>{Wr=i};se.registerProcessor=i=>{Vr=i};var Ct=se;se.default=se;let lt=class{constructor(e,t={}){if(this.type="warning",this.text=e,t.node&&t.node.source){let r=t.node.rangeBy(t);this.line=r.start.line,this.column=r.start.column,this.endLine=r.end.line,this.endColumn=r.end.column}for(let r in t)this[r]=t[r]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}};var Gr=lt;lt.default=lt;let Us=Gr,at=class{constructor(e,t,r){this.processor=e,this.messages=[],this.root=t,this.opts=r,this.css=void 0,this.map=void 0}toString(){return this.css}warn(e,t={}){t.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);let r=new Us(e,t);return this.messages.push(r),r}warnings(){return this.messages.filter(e=>e.type==="warning")}get content(){return this.css}};var St=at;at.default=at;const Ye="'".charCodeAt(0),qt='"'.charCodeAt(0),me="\\".charCodeAt(0),Jt="/".charCodeAt(0),ge=`
38
- `.charCodeAt(0),ee=" ".charCodeAt(0),ye="\f".charCodeAt(0),we=" ".charCodeAt(0),be="\r".charCodeAt(0),Fs="[".charCodeAt(0),Bs="]".charCodeAt(0),zs="(".charCodeAt(0),js=")".charCodeAt(0),Ws="{".charCodeAt(0),Vs="}".charCodeAt(0),Gs=";".charCodeAt(0),Hs="*".charCodeAt(0),qs=":".charCodeAt(0),Js="@".charCodeAt(0),Ce=/[\t\n\f\r "#'()/;[\\\]{}]/g,Se=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,Ys=/.[\r\n"'(/\\]/,Yt=/[\da-f]/i;var Xs=function(e,t={}){let r=e.css.valueOf(),s=t.ignoreErrors,o,n,a,l,u,c,h,p,g,m,x=r.length,f=0,w=[],O=[];function k(){return f}function d(T){throw e.error("Unclosed "+T,f)}function C(){return O.length===0&&f>=x}function M(T){if(O.length)return O.pop();if(f>=x)return;let Y=T?T.ignoreUnclosed:!1;switch(o=r.charCodeAt(f),o){case ge:case ee:case we:case be:case ye:{n=f;do n+=1,o=r.charCodeAt(n);while(o===ee||o===ge||o===we||o===be||o===ye);m=["space",r.slice(f,n)],f=n-1;break}case Fs:case Bs:case Ws:case Vs:case qs:case Gs:case js:{let I=String.fromCharCode(o);m=[I,I,f];break}case zs:{if(p=w.length?w.pop()[1]:"",g=r.charCodeAt(f+1),p==="url"&&g!==Ye&&g!==qt&&g!==ee&&g!==ge&&g!==we&&g!==ye&&g!==be){n=f;do{if(c=!1,n=r.indexOf(")",n+1),n===-1)if(s||Y){n=f;break}else d("bracket");for(h=n;r.charCodeAt(h-1)===me;)h-=1,c=!c}while(c);m=["brackets",r.slice(f,n+1),f,n],f=n}else n=r.indexOf(")",f+1),l=r.slice(f,n+1),n===-1||Ys.test(l)?m=["(","(",f]:(m=["brackets",l,f,n],f=n);break}case Ye:case qt:{a=o===Ye?"'":'"',n=f;do{if(c=!1,n=r.indexOf(a,n+1),n===-1)if(s||Y){n=f+1;break}else d("string");for(h=n;r.charCodeAt(h-1)===me;)h-=1,c=!c}while(c);m=["string",r.slice(f,n+1),f,n],f=n;break}case Js:{Ce.lastIndex=f+1,Ce.test(r),Ce.lastIndex===0?n=r.length-1:n=Ce.lastIndex-2,m=["at-word",r.slice(f,n+1),f,n],f=n;break}case me:{for(n=f,u=!0;r.charCodeAt(n+1)===me;)n+=1,u=!u;if(o=r.charCodeAt(n+1),u&&o!==Jt&&o!==ee&&o!==ge&&o!==we&&o!==be&&o!==ye&&(n+=1,Yt.test(r.charAt(n)))){for(;Yt.test(r.charAt(n+1));)n+=1;r.charCodeAt(n+1)===ee&&(n+=1)}m=["word",r.slice(f,n+1),f,n],f=n;break}default:{o===Jt&&r.charCodeAt(f+1)===Hs?(n=r.indexOf("*/",f+2)+1,n===0&&(s||Y?n=r.length:d("comment")),m=["comment",r.slice(f,n+1),f,n],f=n):(Se.lastIndex=f+1,Se.test(r),Se.lastIndex===0?n=r.length-1:n=Se.lastIndex-2,m=["word",r.slice(f,n+1),f,n],w.push(m),f=n);break}}return f++,m}function _(T){O.push(T)}return{back:_,endOfFile:C,nextToken:M,position:k}};let Hr=F,Me=class extends Hr{constructor(e){super(e),this.type="atrule"}append(...e){return this.proxyOf.nodes||(this.nodes=[]),super.append(...e)}prepend(...e){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...e)}};var xt=Me;Me.default=Me;Hr.registerAtRule(Me);let qr=F,Jr,Yr,H=class extends qr{constructor(e){super(e),this.type="root",this.nodes||(this.nodes=[])}normalize(e,t,r){let s=super.normalize(e);if(t){if(r==="prepend")this.nodes.length>1?t.raws.before=this.nodes[1].raws.before:delete t.raws.before;else if(this.first!==t)for(let o of s)o.raws.before=t.raws.before}return s}removeChild(e,t){let r=this.index(e);return!t&&r===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[r].raws.before),super.removeChild(e)}toResult(e={}){return new Jr(new Yr,this,e).stringify()}};H.registerLazyResult=i=>{Jr=i};H.registerProcessor=i=>{Yr=i};var ce=H;H.default=H;qr.registerRoot(H);let ne={comma(i){return ne.split(i,[","],!0)},space(i){let e=[" ",`
39
- `," "];return ne.split(i,e)},split(i,e,t){let r=[],s="",o=!1,n=0,a=!1,l="",u=!1;for(let c of i)u?u=!1:c==="\\"?u=!0:a?c===l&&(a=!1):c==='"'||c==="'"?(a=!0,l=c):c==="("?n+=1:c===")"?n>0&&(n-=1):n===0&&e.includes(c)&&(o=!0),o?(s!==""&&r.push(s.trim()),s="",o=!1):s+=c;return(t||s!=="")&&r.push(s.trim()),r}};var Xr=ne;ne.default=ne;let Kr=F,Ks=Xr,_e=class extends Kr{constructor(e){super(e),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return Ks.comma(this.selector)}set selectors(e){let t=this.selector?this.selector.match(/,\s*/):null,r=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(r)}};var vt=_e;_e.default=_e;Kr.registerRule(_e);let Qs=$e,Zs=Xs,en=Ue,tn=xt,rn=ce,Xt=vt;const Kt={empty:!0,space:!0};function sn(i){for(let e=i.length-1;e>=0;e--){let t=i[e],r=t[3]||t[2];if(r)return r}}let nn=class{constructor(e){this.input=e,this.root=new rn,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}}atrule(e){let t=new tn;t.name=e[1].slice(1),t.name===""&&this.unnamedAtrule(t,e),this.init(t,e[2]);let r,s,o,n=!1,a=!1,l=[],u=[];for(;!this.tokenizer.endOfFile();){if(e=this.tokenizer.nextToken(),r=e[0],r==="("||r==="["?u.push(r==="("?")":"]"):r==="{"&&u.length>0?u.push("}"):r===u[u.length-1]&&u.pop(),u.length===0)if(r===";"){t.source.end=this.getPosition(e[2]),t.source.end.offset++,this.semicolon=!0;break}else if(r==="{"){a=!0;break}else if(r==="}"){if(l.length>0){for(o=l.length-1,s=l[o];s&&s[0]==="space";)s=l[--o];s&&(t.source.end=this.getPosition(s[3]||s[2]),t.source.end.offset++)}this.end(e);break}else l.push(e);else l.push(e);if(this.tokenizer.endOfFile()){n=!0;break}}t.raws.between=this.spacesAndCommentsFromEnd(l),l.length?(t.raws.afterName=this.spacesAndCommentsFromStart(l),this.raw(t,"params",l),n&&(e=l[l.length-1],t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++,this.spaces=t.raws.between,t.raws.between="")):(t.raws.afterName="",t.params=""),a&&(t.nodes=[],this.current=t)}checkMissedSemicolon(e){let t=this.colon(e);if(t===!1)return;let r=0,s;for(let o=t-1;o>=0&&(s=e[o],!(s[0]!=="space"&&(r+=1,r===2)));o--);throw this.input.error("Missed semicolon",s[0]==="word"?s[3]+1:s[2])}colon(e){let t=0,r,s,o;for(let[n,a]of e.entries()){if(r=a,s=r[0],s==="("&&(t+=1),s===")"&&(t-=1),t===0&&s===":")if(!o)this.doubleColon(r);else{if(o[0]==="word"&&o[1]==="progid")continue;return n}o=r}return!1}comment(e){let t=new en;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;let r=e[1].slice(2,-2);if(/^\s*$/.test(r))t.text="",t.raws.left=r,t.raws.right="";else{let s=r.match(/^(\s*)([^]*\S)(\s*)$/);t.text=s[2],t.raws.left=s[1],t.raws.right=s[3]}}createTokenizer(){this.tokenizer=Zs(this.input)}decl(e,t){let r=new Qs;this.init(r,e[0][2]);let s=e[e.length-1];for(s[0]===";"&&(this.semicolon=!0,e.pop()),r.source.end=this.getPosition(s[3]||s[2]||sn(e)),r.source.end.offset++;e[0][0]!=="word";)e.length===1&&this.unknownWord(e),r.raws.before+=e.shift()[1];for(r.source.start=this.getPosition(e[0][2]),r.prop="";e.length;){let u=e[0][0];if(u===":"||u==="space"||u==="comment")break;r.prop+=e.shift()[1]}r.raws.between="";let o;for(;e.length;)if(o=e.shift(),o[0]===":"){r.raws.between+=o[1];break}else o[0]==="word"&&/\w/.test(o[1])&&this.unknownWord([o]),r.raws.between+=o[1];(r.prop[0]==="_"||r.prop[0]==="*")&&(r.raws.before+=r.prop[0],r.prop=r.prop.slice(1));let n=[],a;for(;e.length&&(a=e[0][0],!(a!=="space"&&a!=="comment"));)n.push(e.shift());this.precheckMissedSemicolon(e);for(let u=e.length-1;u>=0;u--){if(o=e[u],o[1].toLowerCase()==="!important"){r.important=!0;let c=this.stringFrom(e,u);c=this.spacesFromEnd(e)+c,c!==" !important"&&(r.raws.important=c);break}else if(o[1].toLowerCase()==="important"){let c=e.slice(0),h="";for(let p=u;p>0;p--){let g=c[p][0];if(h.trim().indexOf("!")===0&&g!=="space")break;h=c.pop()[1]+h}h.trim().indexOf("!")===0&&(r.important=!0,r.raws.important=h,e=c)}if(o[0]!=="space"&&o[0]!=="comment")break}e.some(u=>u[0]!=="space"&&u[0]!=="comment")&&(r.raws.between+=n.map(u=>u[1]).join(""),n=[]),this.raw(r,"value",n.concat(e),t),r.value.includes(":")&&!t&&this.checkMissedSemicolon(e)}doubleColon(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})}emptyRule(e){let t=new Xt;this.init(t,e[2]),t.selector="",t.raws.between="",this.current=t}end(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(e){if(this.spaces+=e[1],this.current.nodes){let t=this.current.nodes[this.current.nodes.length-1];t&&t.type==="rule"&&!t.raws.ownSemicolon&&(t.raws.ownSemicolon=this.spaces,this.spaces="")}}getPosition(e){let t=this.input.fromOffset(e);return{column:t.col,line:t.line,offset:e}}init(e,t){this.current.push(e),e.source={input:this.input,start:this.getPosition(t)},e.raws.before=this.spaces,this.spaces="",e.type!=="comment"&&(this.semicolon=!1)}other(e){let t=!1,r=null,s=!1,o=null,n=[],a=e[1].startsWith("--"),l=[],u=e;for(;u;){if(r=u[0],l.push(u),r==="("||r==="[")o||(o=u),n.push(r==="("?")":"]");else if(a&&s&&r==="{")o||(o=u),n.push("}");else if(n.length===0)if(r===";")if(s){this.decl(l,a);return}else break;else if(r==="{"){this.rule(l);return}else if(r==="}"){this.tokenizer.back(l.pop()),t=!0;break}else r===":"&&(s=!0);else r===n[n.length-1]&&(n.pop(),n.length===0&&(o=null));u=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),n.length>0&&this.unclosedBracket(o),t&&s){if(!a)for(;l.length&&(u=l[l.length-1][0],!(u!=="space"&&u!=="comment"));)this.tokenizer.back(l.pop());this.decl(l,a)}else this.unknownWord(l)}parse(){let e;for(;!this.tokenizer.endOfFile();)switch(e=this.tokenizer.nextToken(),e[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e);break}this.endFile()}precheckMissedSemicolon(){}raw(e,t,r,s){let o,n,a=r.length,l="",u=!0,c,h;for(let p=0;p<a;p+=1)o=r[p],n=o[0],n==="space"&&p===a-1&&!s?u=!1:n==="comment"?(h=r[p-1]?r[p-1][0]:"empty",c=r[p+1]?r[p+1][0]:"empty",!Kt[h]&&!Kt[c]?l.slice(-1)===","?u=!1:l+=o[1]:u=!1):l+=o[1];if(!u){let p=r.reduce((g,m)=>g+m[1],"");e.raws[t]={raw:p,value:l}}e[t]=l}rule(e){e.pop();let t=new Xt;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t}spacesAndCommentsFromEnd(e){let t,r="";for(;e.length&&(t=e[e.length-1][0],!(t!=="space"&&t!=="comment"));)r=e.pop()[1]+r;return r}spacesAndCommentsFromStart(e){let t,r="";for(;e.length&&(t=e[0][0],!(t!=="space"&&t!=="comment"));)r+=e.shift()[1];return r}spacesFromEnd(e){let t,r="";for(;e.length&&(t=e[e.length-1][0],t==="space");)r=e.pop()[1]+r;return r}stringFrom(e,t){let r="";for(let s=t;s<e.length;s++)r+=e[s][1];return e.splice(t,e.length-t),r}unclosedBlock(){let e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)}unclosedBracket(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})}unexpectedClose(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})}unknownWord(e){throw this.input.error("Unknown word",{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})}unnamedAtrule(e,t){throw this.input.error("At-rule without name",{offset:t[2]},{offset:t[2]+t[1].length})}};var on=nn;let ln=F,an=on,un=De;function ke(i,e){let t=new un(i,e),r=new an(t);try{r.parse()}catch(s){throw s}return r.root}var Et=ke;ke.default=ke;ln.registerParse(ke);let{isClean:P,my:cn}=ue,fn=Lr,hn=Ie,pn=F,dn=Ct;let Qt=St,mn=Et,gn=ce;const yn={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},wn={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},bn={Once:!0,postcssPlugin:!0,prepare:!0},q=0;function te(i){return typeof i=="object"&&typeof i.then=="function"}function Qr(i){let e=!1,t=yn[i.type];return i.type==="decl"?e=i.prop.toLowerCase():i.type==="atrule"&&(e=i.name.toLowerCase()),e&&i.append?[t,t+"-"+e,q,t+"Exit",t+"Exit-"+e]:e?[t,t+"-"+e,t+"Exit",t+"Exit-"+e]:i.append?[t,q,t+"Exit"]:[t,t+"Exit"]}function Zt(i){let e;return i.type==="document"?e=["Document",q,"DocumentExit"]:i.type==="root"?e=["Root",q,"RootExit"]:e=Qr(i),{eventIndex:0,events:e,iterator:0,node:i,visitorIndex:0,visitors:[]}}function ut(i){return i[P]=!1,i.nodes&&i.nodes.forEach(e=>ut(e)),i}let ct={},J=class Zr{constructor(e,t,r){this.stringified=!1,this.processed=!1;let s;if(typeof t=="object"&&t!==null&&(t.type==="root"||t.type==="document"))s=ut(t);else if(t instanceof Zr||t instanceof Qt)s=ut(t.root),t.map&&(typeof r.map=="undefined"&&(r.map={}),r.map.inline||(r.map.inline=!1),r.map.prev=t.map);else{let o=mn;r.syntax&&(o=r.syntax.parse),r.parser&&(o=r.parser),o.parse&&(o=o.parse);try{s=o(t,r)}catch(n){this.processed=!0,this.error=n}s&&!s[cn]&&pn.rebuild(s)}this.result=new Qt(e,s,r),this.helpers=Z($({},ct),{postcss:ct,result:this.result}),this.plugins=this.processor.plugins.map(o=>typeof o=="object"&&o.prepare?$($({},o),o.prepare(this.result)):o)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(e,t){let r=this.result.lastPlugin;try{t&&t.addToError(e),this.error=e,e.name==="CssSyntaxError"&&!e.plugin?(e.plugin=r.postcssPlugin,e.setMessage()):r.postcssVersion}catch(s){console&&console.error&&console.error(s)}return e}prepareVisitors(){this.listeners={};let e=(t,r,s)=>{this.listeners[r]||(this.listeners[r]=[]),this.listeners[r].push([t,s])};for(let t of this.plugins)if(typeof t=="object")for(let r in t){if(!wn[r]&&/^[A-Z]/.test(r))throw new Error(`Unknown event ${r} in ${t.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!bn[r])if(typeof t[r]=="object")for(let s in t[r])s==="*"?e(t,r,t[r][s]):e(t,r+"-"+s.toLowerCase(),t[r][s]);else typeof t[r]=="function"&&e(t,r,t[r])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let e=0;e<this.plugins.length;e++){let t=this.plugins[e],r=this.runOnRoot(t);if(te(r))try{await r}catch(s){throw this.handleError(s)}}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[P];){e[P]=!0;let t=[Zt(e)];for(;t.length>0;){let r=this.visitTick(t);if(te(r))try{await r}catch(s){let o=t[t.length-1].node;throw this.handleError(s,o)}}}if(this.listeners.OnceExit)for(let[t,r]of this.listeners.OnceExit){this.result.lastPlugin=t;try{if(e.type==="document"){let s=e.nodes.map(o=>r(o,this.helpers));await Promise.all(s)}else await r(e,this.helpers)}catch(s){throw this.handleError(s)}}}return this.processed=!0,this.stringify()}runOnRoot(e){this.result.lastPlugin=e;try{if(typeof e=="object"&&e.Once){if(this.result.root.type==="document"){let t=this.result.root.nodes.map(r=>e.Once(r,this.helpers));return te(t[0])?Promise.all(t):t}return e.Once(this.result.root,this.helpers)}else if(typeof e=="function")return e(this.result.root,this.result)}catch(t){throw this.handleError(t)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let e=this.result.opts,t=hn;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);let s=new fn(t,this.result.root,this.result.opts).generate();return this.result.css=s[0],this.result.map=s[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 e of this.plugins){let t=this.runOnRoot(e);if(te(t))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[P];)e[P]=!0,this.walkSync(e);if(this.listeners.OnceExit)if(e.type==="document")for(let t of e.nodes)this.visitSync(this.listeners.OnceExit,t);else this.visitSync(this.listeners.OnceExit,e)}return this.result}then(e,t){return this.async().then(e,t)}toString(){return this.css}visitSync(e,t){for(let[r,s]of e){this.result.lastPlugin=r;let o;try{o=s(t,this.helpers)}catch(n){throw this.handleError(n,t.proxyOf)}if(t.type!=="root"&&t.type!=="document"&&!t.parent)return!0;if(te(o))throw this.getAsyncError()}}visitTick(e){let t=e[e.length-1],{node:r,visitors:s}=t;if(r.type!=="root"&&r.type!=="document"&&!r.parent){e.pop();return}if(s.length>0&&t.visitorIndex<s.length){let[n,a]=s[t.visitorIndex];t.visitorIndex+=1,t.visitorIndex===s.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=n;try{return a(r.toProxy(),this.helpers)}catch(l){throw this.handleError(l,r)}}if(t.iterator!==0){let n=t.iterator,a;for(;a=r.nodes[r.indexes[n]];)if(r.indexes[n]+=1,!a[P]){a[P]=!0,e.push(Zt(a));return}t.iterator=0,delete r.indexes[n]}let o=t.events;for(;t.eventIndex<o.length;){let n=o[t.eventIndex];if(t.eventIndex+=1,n===q){r.nodes&&r.nodes.length&&(r[P]=!0,t.iterator=r.getIterator());return}else if(this.listeners[n]){t.visitors=this.listeners[n];return}}e.pop()}walkSync(e){e[P]=!0;let t=Qr(e);for(let r of t)if(r===q)e.nodes&&e.each(s=>{s[P]||this.walkSync(s)});else{let s=this.listeners[r];if(s&&this.visitSync(s,e.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"}};J.registerPostcss=i=>{ct=i};var ei=J;J.default=J;gn.registerLazyResult(J);dn.registerLazyResult(J);let Cn=Lr,Sn=Ie;let xn=Et;const vn=St;let ft=class{constructor(e,t,r){t=t.toString(),this.stringified=!1,this._processor=e,this._css=t,this._opts=r,this._map=void 0;let s,o=Sn;this.result=new vn(this._processor,s,this._opts),this.result.css=t;let n=this;Object.defineProperty(this.result,"root",{get(){return n.root}});let a=new Cn(o,s,this._opts,t);if(a.isMap()){let[l,u]=a.generate();l&&(this.result.css=l),u&&(this.result.map=u)}else a.clearAnnotation(),this.result.css=a.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}sync(){if(this.error)throw this.error;return this.result}then(e,t){return this.async().then(e,t)}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 e,t=xn;try{e=t(this._css,this._opts)}catch(r){this.error=r}if(this.error)throw this.error;return this._root=e,e}get[Symbol.toStringTag](){return"NoWorkResult"}};var En=ft;ft.default=ft;let Nn=En,On=ei,Rn=Ct,An=ce,oe=class{constructor(e=[]){this.version="8.4.38",this.plugins=this.normalize(e)}normalize(e){let t=[];for(let r of e)if(r.postcss===!0?r=r():r.postcss&&(r=r.postcss),typeof r=="object"&&Array.isArray(r.plugins))t=t.concat(r.plugins);else if(typeof r=="object"&&r.postcssPlugin)t.push(r);else if(typeof r=="function")t.push(r);else if(!(typeof r=="object"&&(r.parse||r.stringify)))throw new Error(r+" is not a PostCSS plugin");return t}process(e,t={}){return!this.plugins.length&&!t.parser&&!t.stringifier&&!t.syntax?new Nn(this,e,t):new On(this,e,t)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}};var Mn=oe;oe.default=oe;An.registerProcessor(oe);Rn.registerProcessor(oe);let _n=$e,kn=Ar,Tn=Ue,Ln=xt,In=De,Pn=ce,$n=vt;function le(i,e){if(Array.isArray(i))return i.map(n=>le(n));let s=i,{inputs:t}=s,r=We(s,["inputs"]);if(t){e=[];for(let n of t){let a=Z($({},n),{__proto__:In.prototype});a.map&&(a.map=Z($({},a.map),{__proto__:kn.prototype})),e.push(a)}}if(r.nodes&&(r.nodes=i.nodes.map(n=>le(n,e))),r.source){let o=r.source,{inputId:n}=o,a=We(o,["inputId"]);r.source=a,n!=null&&(r.source.input=e[n])}if(r.type==="root")return new Pn(r);if(r.type==="decl")return new _n(r);if(r.type==="rule")return new $n(r);if(r.type==="comment")return new Tn(r);if(r.type==="atrule")return new Ln(r);throw new Error("Unknown node type: "+i.type)}var Dn=le;le.default=le;let Un=yt,ti=$e,Fn=ei,Bn=F,Nt=Mn,zn=Ie,jn=Dn,ri=Ct,Wn=Gr,ii=Ue,si=xt,Vn=St,Gn=De,Hn=Et,qn=Xr,ni=vt,oi=ce,Jn=Pe;function S(...i){return i.length===1&&Array.isArray(i[0])&&(i=i[0]),new Nt(i)}S.plugin=function(e,t){let r=!1;function s(...n){console&&console.warn&&!r&&(r=!0,console.warn(e+`: postcss.plugin was deprecated. Migration guide:
36
+ `),this.css+=t+"/*# sourceMappingURL="+e+" */"}applyPrevMaps(){for(let e of this.previous()){let t=this.toUrl(this.path(e.file)),r=e.root||ke(e.file),i;this.mapOpts.sourcesContent===!1?(i=new ys(e.text),i.sourcesContent&&(i.sourcesContent=null)):i=e.consumer(),this.map.applySourceMap(i,t,this.toUrl(this.path(r)))}}clearAnnotation(){if(this.mapOpts.annotation!==!1)if(this.root){let e;for(let t=this.root.nodes.length-1;t>=0;t--)e=this.root.nodes[t],e.type==="comment"&&e.text.startsWith("# sourceMappingURL=")&&this.root.removeChild(t)}else this.css&&(this.css=this.css.replace(/\n*\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),eo&&Xn&&this.isMap())return this.generateMap();{let e="";return this.stringify(this.root,t=>{e+=t}),[e]}}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=$e.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new $e({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]}generateString(){this.css="",this.map=new $e({file:this.outputFile(),ignoreInvalidMapping:!0});let e=1,t=1,r="<no source>",i={generated:{column:0,line:0},original:{column:0,line:0},source:""},n,o;this.stringify(this.root,(l,a,c)=>{if(this.css+=l,a&&c!=="end"&&(i.generated.line=e,i.generated.column=t-1,a.source&&a.source.start?(i.source=this.sourcePath(a),i.original.line=a.source.start.line,i.original.column=a.source.start.column-1,this.map.addMapping(i)):(i.source=r,i.original.line=1,i.original.column=0,this.map.addMapping(i))),o=l.match(/\n/g),o?(e+=o.length,n=l.lastIndexOf(`
37
+ `),t=l.length-n):t+=l.length,a&&c!=="start"){let u=a.parent||{raws:{}};(!(a.type==="decl"||a.type==="atrule"&&!a.nodes)||a!==u.last||u.raws.semicolon)&&(a.source&&a.source.end?(i.source=this.sourcePath(a),i.original.line=a.source.end.line,i.original.column=a.source.end.column-1,i.generated.line=e,i.generated.column=t-2,this.map.addMapping(i)):(i.source=r,i.original.line=1,i.original.column=0,i.generated.line=e,i.generated.column=t-1,this.map.addMapping(i)))}})}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation!="undefined"?this.mapOpts.annotation:this.previous().length?this.previous().some(e=>e.annotation):!0}isInline(){if(typeof this.mapOpts.inline!="undefined")return this.mapOpts.inline;let e=this.mapOpts.annotation;return typeof e!="undefined"&&e!==!0?!1:this.previous().length?this.previous().some(t=>t.inline):!0}isMap(){return typeof this.opts.map!="undefined"?!!this.opts.map:this.previous().length>0}isSourcesContent(){return typeof this.mapOpts.sourcesContent!="undefined"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(e=>e.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(e){if(this.mapOpts.absolute||e.charCodeAt(0)===60||/^\w+:\/\//.test(e))return e;let t=this.memoizedPaths.get(e);if(t)return t;let r=this.opts.to?ke(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(r=ke(ms(r,this.mapOpts.annotation)));let i=ps(r,e);return this.memoizedPaths.set(e,i),i}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(e=>{if(e.source&&e.source.input.map){let t=e.source.input.map;this.previousMaps.includes(t)||this.previousMaps.push(t)}});else{let e=new Zn(this.originalCSS,this.opts);e.map&&this.previousMaps.push(e.map)}return this.previousMaps}setSourcesContent(){let e={};if(this.root)this.root.walk(t=>{if(t.source){let r=t.source.input.from;if(r&&!e[r]){e[r]=!0;let i=this.usesFileUrls?this.toFileUrl(r):this.toUrl(this.path(r));this.map.setSourceContent(i,t.source.input.css)}}});else if(this.css){let t=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(t,this.css)}}sourcePath(e){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(e.source.input.from):this.toUrl(this.path(e.source.input.from))}toBase64(e){return Buffer?Buffer.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))}toFileUrl(e){let t=this.memoizedFileURLs.get(e);if(t)return t;if(ur){let r=ur(e).toString();return this.memoizedFileURLs.set(e,r),r}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(e){let t=this.memoizedURLs.get(e);if(t)return t;gs==="\\"&&(e=e.replace(/\\/g,"/"));let r=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,r),r}};var ws=to;const st="'".charCodeAt(0),hr='"'.charCodeAt(0),ve="\\".charCodeAt(0),fr="/".charCodeAt(0),Ee=`
38
+ `.charCodeAt(0),ae=" ".charCodeAt(0),Ae="\f".charCodeAt(0),Re=" ".charCodeAt(0),Ne="\r".charCodeAt(0),ro="[".charCodeAt(0),so="]".charCodeAt(0),io="(".charCodeAt(0),no=")".charCodeAt(0),oo="{".charCodeAt(0),ao="}".charCodeAt(0),lo=";".charCodeAt(0),co="*".charCodeAt(0),uo=":".charCodeAt(0),ho="@".charCodeAt(0),Oe=/[\t\n\f\r "#'()/;[\\\]{}]/g,Me=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,fo=/.[\r\n"'(/\\]/,dr=/[\da-f]/i;var po=function(e,t={}){let r=e.css.valueOf(),i=t.ignoreErrors,n,o,l,a,c,u,h,f,d,m,x=r.length,p=0,y=[],E=[];function T(){return p}function g(P){throw e.error("Unclosed "+P,p)}function S(){return E.length===0&&p>=x}function k(P){if(E.length)return E.pop();if(p>=x)return;let H=P?P.ignoreUnclosed:!1;switch(n=r.charCodeAt(p),n){case Ee:case ae:case Re:case Ne:case Ae:{a=p;do a+=1,n=r.charCodeAt(a);while(n===ae||n===Ee||n===Re||n===Ne||n===Ae);u=["space",r.slice(p,a)],p=a-1;break}case ro:case so:case oo:case ao:case uo:case lo:case no:{let _=String.fromCharCode(n);u=[_,_,p];break}case io:{if(m=y.length?y.pop()[1]:"",d=r.charCodeAt(p+1),m==="url"&&d!==st&&d!==hr&&d!==ae&&d!==Ee&&d!==Re&&d!==Ae&&d!==Ne){a=p;do{if(h=!1,a=r.indexOf(")",a+1),a===-1)if(i||H){a=p;break}else g("bracket");for(f=a;r.charCodeAt(f-1)===ve;)f-=1,h=!h}while(h);u=["brackets",r.slice(p,a+1),p,a],p=a}else a=r.indexOf(")",p+1),o=r.slice(p,a+1),a===-1||fo.test(o)?u=["(","(",p]:(u=["brackets",o,p,a],p=a);break}case st:case hr:{c=n===st?"'":'"',a=p;do{if(h=!1,a=r.indexOf(c,a+1),a===-1)if(i||H){a=p+1;break}else g("string");for(f=a;r.charCodeAt(f-1)===ve;)f-=1,h=!h}while(h);u=["string",r.slice(p,a+1),p,a],p=a;break}case ho:{Oe.lastIndex=p+1,Oe.test(r),Oe.lastIndex===0?a=r.length-1:a=Oe.lastIndex-2,u=["at-word",r.slice(p,a+1),p,a],p=a;break}case ve:{for(a=p,l=!0;r.charCodeAt(a+1)===ve;)a+=1,l=!l;if(n=r.charCodeAt(a+1),l&&n!==fr&&n!==ae&&n!==Ee&&n!==Re&&n!==Ne&&n!==Ae&&(a+=1,dr.test(r.charAt(a)))){for(;dr.test(r.charAt(a+1));)a+=1;r.charCodeAt(a+1)===ae&&(a+=1)}u=["word",r.slice(p,a+1),p,a],p=a;break}default:{n===fr&&r.charCodeAt(p+1)===co?(a=r.indexOf("*/",p+2)+1,a===0&&(i||H?a=r.length:g("comment")),u=["comment",r.slice(p,a+1),p,a],p=a):(Me.lastIndex=p+1,Me.test(r),Me.lastIndex===0?a=r.length-1:a=Me.lastIndex-2,u=["word",r.slice(p,a+1),p,a],y.push(u),p=a);break}}return p++,u}function N(P){E.push(P)}return{back:N,endOfFile:S,nextToken:k,position:T}};let mo=kt,go=He,yo=je,wo=we,pr=Lt,bo=po;const mr={empty:!0,space:!0};function xo(s){for(let e=s.length-1;e>=0;e--){let t=s[e],r=t[3]||t[2];if(r)return r}}let Co=class{constructor(e){this.input=e,this.root=new wo,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}}atrule(e){let t=new mo;t.name=e[1].slice(1),t.name===""&&this.unnamedAtrule(t,e),this.init(t,e[2]);let r,i,n,o=!1,l=!1,a=[],c=[];for(;!this.tokenizer.endOfFile();){if(e=this.tokenizer.nextToken(),r=e[0],r==="("||r==="["?c.push(r==="("?")":"]"):r==="{"&&c.length>0?c.push("}"):r===c[c.length-1]&&c.pop(),c.length===0)if(r===";"){t.source.end=this.getPosition(e[2]),t.source.end.offset++,this.semicolon=!0;break}else if(r==="{"){l=!0;break}else if(r==="}"){if(a.length>0){for(n=a.length-1,i=a[n];i&&i[0]==="space";)i=a[--n];i&&(t.source.end=this.getPosition(i[3]||i[2]),t.source.end.offset++)}this.end(e);break}else a.push(e);else a.push(e);if(this.tokenizer.endOfFile()){o=!0;break}}t.raws.between=this.spacesAndCommentsFromEnd(a),a.length?(t.raws.afterName=this.spacesAndCommentsFromStart(a),this.raw(t,"params",a),o&&(e=a[a.length-1],t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++,this.spaces=t.raws.between,t.raws.between="")):(t.raws.afterName="",t.params=""),l&&(t.nodes=[],this.current=t)}checkMissedSemicolon(e){let t=this.colon(e);if(t===!1)return;let r=0,i;for(let n=t-1;n>=0&&(i=e[n],!(i[0]!=="space"&&(r+=1,r===2)));n--);throw this.input.error("Missed semicolon",i[0]==="word"?i[3]+1:i[2])}colon(e){let t=0,r,i,n;for(let[o,l]of e.entries()){if(i=l,n=i[0],n==="("&&(t+=1),n===")"&&(t-=1),t===0&&n===":")if(!r)this.doubleColon(i);else{if(r[0]==="word"&&r[1]==="progid")continue;return o}r=i}return!1}comment(e){let t=new go;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;let r=e[1].slice(2,-2);if(/^\s*$/.test(r))t.text="",t.raws.left=r,t.raws.right="";else{let i=r.match(/^(\s*)([^]*\S)(\s*)$/);t.text=i[2],t.raws.left=i[1],t.raws.right=i[3]}}createTokenizer(){this.tokenizer=bo(this.input)}decl(e,t){let r=new yo;this.init(r,e[0][2]);let i=e[e.length-1];for(i[0]===";"&&(this.semicolon=!0,e.pop()),r.source.end=this.getPosition(i[3]||i[2]||xo(e)),r.source.end.offset++;e[0][0]!=="word";)e.length===1&&this.unknownWord(e),r.raws.before+=e.shift()[1];for(r.source.start=this.getPosition(e[0][2]),r.prop="";e.length;){let c=e[0][0];if(c===":"||c==="space"||c==="comment")break;r.prop+=e.shift()[1]}r.raws.between="";let n;for(;e.length;)if(n=e.shift(),n[0]===":"){r.raws.between+=n[1];break}else n[0]==="word"&&/\w/.test(n[1])&&this.unknownWord([n]),r.raws.between+=n[1];(r.prop[0]==="_"||r.prop[0]==="*")&&(r.raws.before+=r.prop[0],r.prop=r.prop.slice(1));let o=[],l;for(;e.length&&(l=e[0][0],!(l!=="space"&&l!=="comment"));)o.push(e.shift());this.precheckMissedSemicolon(e);for(let c=e.length-1;c>=0;c--){if(n=e[c],n[1].toLowerCase()==="!important"){r.important=!0;let u=this.stringFrom(e,c);u=this.spacesFromEnd(e)+u,u!==" !important"&&(r.raws.important=u);break}else if(n[1].toLowerCase()==="important"){let u=e.slice(0),h="";for(let f=c;f>0;f--){let d=u[f][0];if(h.trim().startsWith("!")&&d!=="space")break;h=u.pop()[1]+h}h.trim().startsWith("!")&&(r.important=!0,r.raws.important=h,e=u)}if(n[0]!=="space"&&n[0]!=="comment")break}e.some(c=>c[0]!=="space"&&c[0]!=="comment")&&(r.raws.between+=o.map(c=>c[1]).join(""),o=[]),this.raw(r,"value",o.concat(e),t),r.value.includes(":")&&!t&&this.checkMissedSemicolon(e)}doubleColon(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})}emptyRule(e){let t=new pr;this.init(t,e[2]),t.selector="",t.raws.between="",this.current=t}end(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(e){if(this.spaces+=e[1],this.current.nodes){let t=this.current.nodes[this.current.nodes.length-1];t&&t.type==="rule"&&!t.raws.ownSemicolon&&(t.raws.ownSemicolon=this.spaces,this.spaces="",t.source.end=this.getPosition(e[2]),t.source.end.offset+=t.raws.ownSemicolon.length)}}getPosition(e){let t=this.input.fromOffset(e);return{column:t.col,line:t.line,offset:e}}init(e,t){this.current.push(e),e.source={input:this.input,start:this.getPosition(t)},e.raws.before=this.spaces,this.spaces="",e.type!=="comment"&&(this.semicolon=!1)}other(e){let t=!1,r=null,i=!1,n=null,o=[],l=e[1].startsWith("--"),a=[],c=e;for(;c;){if(r=c[0],a.push(c),r==="("||r==="[")n||(n=c),o.push(r==="("?")":"]");else if(l&&i&&r==="{")n||(n=c),o.push("}");else if(o.length===0)if(r===";")if(i){this.decl(a,l);return}else break;else if(r==="{"){this.rule(a);return}else if(r==="}"){this.tokenizer.back(a.pop()),t=!0;break}else r===":"&&(i=!0);else r===o[o.length-1]&&(o.pop(),o.length===0&&(n=null));c=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),o.length>0&&this.unclosedBracket(n),t&&i){if(!l)for(;a.length&&(c=a[a.length-1][0],!(c!=="space"&&c!=="comment"));)this.tokenizer.back(a.pop());this.decl(a,l)}else this.unknownWord(a)}parse(){let e;for(;!this.tokenizer.endOfFile();)switch(e=this.tokenizer.nextToken(),e[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e);break}this.endFile()}precheckMissedSemicolon(){}raw(e,t,r,i){let n,o,l=r.length,a="",c=!0,u,h;for(let f=0;f<l;f+=1)n=r[f],o=n[0],o==="space"&&f===l-1&&!i?c=!1:o==="comment"?(h=r[f-1]?r[f-1][0]:"empty",u=r[f+1]?r[f+1][0]:"empty",!mr[h]&&!mr[u]?a.slice(-1)===","?c=!1:a+=n[1]:c=!1):a+=n[1];if(!c){let f=r.reduce((d,m)=>d+m[1],"");e.raws[t]={raw:f,value:a}}e[t]=a}rule(e){e.pop();let t=new pr;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t}spacesAndCommentsFromEnd(e){let t,r="";for(;e.length&&(t=e[e.length-1][0],!(t!=="space"&&t!=="comment"));)r=e.pop()[1]+r;return r}spacesAndCommentsFromStart(e){let t,r="";for(;e.length&&(t=e[0][0],!(t!=="space"&&t!=="comment"));)r+=e.shift()[1];return r}spacesFromEnd(e){let t,r="";for(;e.length&&(t=e[e.length-1][0],t==="space");)r=e.pop()[1]+r;return r}stringFrom(e,t){let r="";for(let i=t;i<e.length;i++)r+=e[i][1];return e.splice(t,e.length-t),r}unclosedBlock(){let e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)}unclosedBracket(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})}unexpectedClose(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})}unknownWord(e){throw this.input.error("Unknown word "+e[0][1],{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})}unnamedAtrule(e,t){throw this.input.error("At-rule without name",{offset:t[2]},{offset:t[2]+t[1].length})}};var So=Co;let vo=J,Eo=Ve,Ao=So;function ze(s,e){let t=new Eo(s,e),r=new Ao(t);try{r.parse()}catch(i){throw i}return r.root}var _t=ze;ze.default=ze;vo.registerParse(ze);let gt=class{constructor(e,t={}){if(this.type="warning",this.text=e,t.node&&t.node.source){let r=t.node.rangeBy(t);this.line=r.start.line,this.column=r.start.column,this.endLine=r.end.line,this.endColumn=r.end.column}for(let r in t)this[r]=t[r]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}};var bs=gt;gt.default=gt;let Ro=bs,yt=class{get content(){return this.css}constructor(e,t,r){this.processor=e,this.messages=[],this.root=t,this.opts=r,this.css="",this.map=void 0}toString(){return this.css}warn(e,t={}){t.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);let r=new Ro(e,t);return this.messages.push(r),r}warnings(){return this.messages.filter(e=>e.type==="warning")}};var Pt=yt;yt.default=yt;let No=J,Oo=$t,Mo=ws,To=_t,gr=Pt,ko=we,$o=Be,{isClean:W,my:Lo}=ye;const _o={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},Po={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},Do={Once:!0,postcssPlugin:!0,prepare:!0},ie=0;function le(s){return typeof s=="object"&&typeof s.then=="function"}function xs(s){let e=!1,t=_o[s.type];return s.type==="decl"?e=s.prop.toLowerCase():s.type==="atrule"&&(e=s.name.toLowerCase()),e&&s.append?[t,t+"-"+e,ie,t+"Exit",t+"Exit-"+e]:e?[t,t+"-"+e,t+"Exit",t+"Exit-"+e]:s.append?[t,ie,t+"Exit"]:[t,t+"Exit"]}function yr(s){let e;return s.type==="document"?e=["Document",ie,"DocumentExit"]:s.type==="root"?e=["Root",ie,"RootExit"]:e=xs(s),{eventIndex:0,events:e,iterator:0,node:s,visitorIndex:0,visitors:[]}}function wt(s){return s[W]=!1,s.nodes&&s.nodes.forEach(e=>wt(e)),s}let bt={},ne=class Cs{get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}constructor(e,t,r){this.stringified=!1,this.processed=!1;let i;if(typeof t=="object"&&t!==null&&(t.type==="root"||t.type==="document"))i=wt(t);else if(t instanceof Cs||t instanceof gr)i=wt(t.root),t.map&&(typeof r.map=="undefined"&&(r.map={}),r.map.inline||(r.map.inline=!1),r.map.prev=t.map);else{let n=To;r.syntax&&(n=r.syntax.parse),r.parser&&(n=r.parser),n.parse&&(n=n.parse);try{i=n(t,r)}catch(o){this.processed=!0,this.error=o}i&&!i[Lo]&&No.rebuild(i)}this.result=new gr(e,i,r),this.helpers=Z($({},bt),{postcss:bt,result:this.result}),this.plugins=this.processor.plugins.map(n=>typeof n=="object"&&n.prepare?$($({},n),n.prepare(this.result)):n)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(e,t){let r=this.result.lastPlugin;try{t&&t.addToError(e),this.error=e,e.name==="CssSyntaxError"&&!e.plugin?(e.plugin=r.postcssPlugin,e.setMessage()):r.postcssVersion}catch(i){console&&console.error&&console.error(i)}return e}prepareVisitors(){this.listeners={};let e=(t,r,i)=>{this.listeners[r]||(this.listeners[r]=[]),this.listeners[r].push([t,i])};for(let t of this.plugins)if(typeof t=="object")for(let r in t){if(!Po[r]&&/^[A-Z]/.test(r))throw new Error(`Unknown event ${r} in ${t.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!Do[r])if(typeof t[r]=="object")for(let i in t[r])i==="*"?e(t,r,t[r][i]):e(t,r+"-"+i.toLowerCase(),t[r][i]);else typeof t[r]=="function"&&e(t,r,t[r])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let e=0;e<this.plugins.length;e++){let t=this.plugins[e],r=this.runOnRoot(t);if(le(r))try{await r}catch(i){throw this.handleError(i)}}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[W];){e[W]=!0;let t=[yr(e)];for(;t.length>0;){let r=this.visitTick(t);if(le(r))try{await r}catch(i){let n=t[t.length-1].node;throw this.handleError(i,n)}}}if(this.listeners.OnceExit)for(let[t,r]of this.listeners.OnceExit){this.result.lastPlugin=t;try{if(e.type==="document"){let i=e.nodes.map(n=>r(n,this.helpers));await Promise.all(i)}else await r(e,this.helpers)}catch(i){throw this.handleError(i)}}}return this.processed=!0,this.stringify()}runOnRoot(e){this.result.lastPlugin=e;try{if(typeof e=="object"&&e.Once){if(this.result.root.type==="document"){let t=this.result.root.nodes.map(r=>e.Once(r,this.helpers));return le(t[0])?Promise.all(t):t}return e.Once(this.result.root,this.helpers)}else if(typeof e=="function")return e(this.result.root,this.result)}catch(t){throw this.handleError(t)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let e=this.result.opts,t=$o;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);let i=new Mo(t,this.result.root,this.result.opts).generate();return this.result.css=i[0],this.result.map=i[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 e of this.plugins){let t=this.runOnRoot(e);if(le(t))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[W];)e[W]=!0,this.walkSync(e);if(this.listeners.OnceExit)if(e.type==="document")for(let t of e.nodes)this.visitSync(this.listeners.OnceExit,t);else this.visitSync(this.listeners.OnceExit,e)}return this.result}then(e,t){return this.async().then(e,t)}toString(){return this.css}visitSync(e,t){for(let[r,i]of e){this.result.lastPlugin=r;let n;try{n=i(t,this.helpers)}catch(o){throw this.handleError(o,t.proxyOf)}if(t.type!=="root"&&t.type!=="document"&&!t.parent)return!0;if(le(n))throw this.getAsyncError()}}visitTick(e){let t=e[e.length-1],{node:r,visitors:i}=t;if(r.type!=="root"&&r.type!=="document"&&!r.parent){e.pop();return}if(i.length>0&&t.visitorIndex<i.length){let[o,l]=i[t.visitorIndex];t.visitorIndex+=1,t.visitorIndex===i.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=o;try{return l(r.toProxy(),this.helpers)}catch(a){throw this.handleError(a,r)}}if(t.iterator!==0){let o=t.iterator,l;for(;l=r.nodes[r.indexes[o]];)if(r.indexes[o]+=1,!l[W]){l[W]=!0,e.push(yr(l));return}t.iterator=0,delete r.indexes[o]}let n=t.events;for(;t.eventIndex<n.length;){let o=n[t.eventIndex];if(t.eventIndex+=1,o===ie){r.nodes&&r.nodes.length&&(r[W]=!0,t.iterator=r.getIterator());return}else if(this.listeners[o]){t.visitors=this.listeners[o];return}}e.pop()}walkSync(e){e[W]=!0;let t=xs(e);for(let r of t)if(r===ie)e.nodes&&e.each(i=>{i[W]||this.walkSync(i)});else{let i=this.listeners[r];if(i&&this.visitSync(i,e.toProxy()))return}}warnings(){return this.sync().warnings()}};ne.registerPostcss=s=>{bt=s};var Ss=ne;ne.default=ne;ko.registerLazyResult(ne);Oo.registerLazyResult(ne);let Io=ws,zo=_t;const Fo=Pt;let Uo=Be;let xt=class{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 e,t=zo;try{e=t(this._css,this._opts)}catch(r){this.error=r}if(this.error)throw this.error;return this._root=e,e}get[Symbol.toStringTag](){return"NoWorkResult"}constructor(e,t,r){t=t.toString(),this.stringified=!1,this._processor=e,this._css=t,this._opts=r,this._map=void 0;let i,n=Uo;this.result=new Fo(this._processor,i,this._opts),this.result.css=t;let o=this;Object.defineProperty(this.result,"root",{get(){return o.root}});let l=new Io(n,i,this._opts,t);if(l.isMap()){let[a,c]=l.generate();a&&(this.result.css=a),c&&(this.result.map=c)}else l.clearAnnotation(),this.result.css=l.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}sync(){if(this.error)throw this.error;return this.result}then(e,t){return this.async().then(e,t)}toString(){return this._css}warnings(){return[]}};var Bo=xt;xt.default=xt;let Wo=$t,Ho=Ss,jo=Bo,Vo=we,me=class{constructor(e=[]){this.version="8.5.6",this.plugins=this.normalize(e)}normalize(e){let t=[];for(let r of e)if(r.postcss===!0?r=r():r.postcss&&(r=r.postcss),typeof r=="object"&&Array.isArray(r.plugins))t=t.concat(r.plugins);else if(typeof r=="object"&&r.postcssPlugin)t.push(r);else if(typeof r=="function")t.push(r);else if(!(typeof r=="object"&&(r.parse||r.stringify)))throw new Error(r+" is not a PostCSS plugin");return t}process(e,t={}){return!this.plugins.length&&!t.parser&&!t.stringifier&&!t.syntax?new jo(this,e,t):new Ho(this,e,t)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}};var Go=me;me.default=me;Vo.registerProcessor(me);Wo.registerProcessor(me);let vs=kt,Es=He,qo=J,Yo=Ot,As=je,Rs=$t,Jo=Kn,Qo=Ve,Ko=Ss,Zo=fs,Xo=We,ea=_t,Dt=Go,ta=Pt,Ns=we,Os=Lt,ra=Be,sa=bs;function v(...s){return s.length===1&&Array.isArray(s[0])&&(s=s[0]),new Dt(s)}v.plugin=function(e,t){let r=!1;function i(...o){console&&console.warn&&!r&&(r=!0,console.warn(e+`: postcss.plugin was deprecated. Migration guide:
40
39
  https://evilmartians.com/chronicles/postcss-8-plugin-migration`),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(e+`: \u91CC\u9762 postcss.plugin \u88AB\u5F03\u7528. \u8FC1\u79FB\u6307\u5357:
41
- https://www.w3ctech.com/topic/2226`));let a=t(...n);return a.postcssPlugin=e,a.postcssVersion=new Nt().version,a}let o;return Object.defineProperty(s,"postcss",{get(){return o||(o=s()),o}}),s.process=function(n,a,l){return S([s(l)]).process(n,a)},s};S.stringify=zn;S.parse=Hn;S.fromJSON=jn;S.list=qn;S.comment=i=>new ii(i);S.atRule=i=>new si(i);S.decl=i=>new ti(i);S.rule=i=>new ni(i);S.root=i=>new oi(i);S.document=i=>new ri(i);S.CssSyntaxError=Un;S.Declaration=ti;S.Container=Bn;S.Processor=Nt;S.Document=ri;S.Comment=ii;S.Warning=Wn;S.AtRule=si;S.Result=Vn;S.Input=Gn;S.Rule=ni;S.Root=oi;S.Node=Jn;Fn.registerPostcss(S);var Yn=S;S.default=S;const N=os(Yn);N.stringify;N.fromJSON;N.plugin;N.parse;N.list;N.document;N.comment;N.atRule;N.rule;N.decl;N.root;N.CssSyntaxError;N.Declaration;N.Container;N.Processor;N.Document;N.Comment;N.Warning;N.AtRule;N.Result;N.Input;N.Rule;N.Root;N.Node;const er={script:"noscript",altglyph:"altGlyph",altglyphdef:"altGlyphDef",altglyphitem:"altGlyphItem",animatecolor:"animateColor",animatemotion:"animateMotion",animatetransform:"animateTransform",clippath:"clipPath",feblend:"feBlend",fecolormatrix:"feColorMatrix",fecomponenttransfer:"feComponentTransfer",fecomposite:"feComposite",feconvolvematrix:"feConvolveMatrix",fediffuselighting:"feDiffuseLighting",fedisplacementmap:"feDisplacementMap",fedistantlight:"feDistantLight",fedropshadow:"feDropShadow",feflood:"feFlood",fefunca:"feFuncA",fefuncb:"feFuncB",fefuncg:"feFuncG",fefuncr:"feFuncR",fegaussianblur:"feGaussianBlur",feimage:"feImage",femerge:"feMerge",femergenode:"feMergeNode",femorphology:"feMorphology",feoffset:"feOffset",fepointlight:"fePointLight",fespecularlighting:"feSpecularLighting",fespotlight:"feSpotLight",fetile:"feTile",feturbulence:"feTurbulence",foreignobject:"foreignObject",glyphref:"glyphRef",lineargradient:"linearGradient",radialgradient:"radialGradient"};function Xn(i){let e=er[i.tagName]?er[i.tagName]:i.tagName;return e==="link"&&i.attributes._cssText&&(e="style"),e}function Fe(i,e){const t=e==null?void 0:e.stylesWithHoverClass.get(i);if(t)return t;let r=i;try{r=N([ss,ns]).process(i).css}catch(s){console.warn("Failed to adapt css for replay",s)}return e==null||e.stylesWithHoverClass.set(i,r),r}function Kn(){return{stylesWithHoverClass:new Map}}function Qn(i,e,t,r){const s=[];for(const l of i.childNodes)l.type===y.Text&&s.push(l);const o=e.split("/* rr_split */");for(;o.length>1&&o.length>s.length;)o.splice(-2,2,o.slice(-2).join(""));let n="";t&&(n=Fe(o.join(""),r));let a=0;for(let l=0;l<s.length&&l!==o.length;l++){const u=s[l];if(!t)u.textContent=o[l];else if(l<o.length-1){let c=a,h=o[l+1].length;h=Math.min(h,30);let p=!1;for(;h>2;h--){const g=o[l+1].substring(0,h),m=n.substring(a).indexOf(g);if(p=m!==-1,p){c+=m;break}}p||(c+=o[l].length),u.textContent=n.substring(a,c),a=c}else u.textContent=n.substring(a)}}function Zn(i,e,t,r){const{doc:s,hackCss:o,cache:n}=r;i.childNodes.length?Qn(i,t,o,n):(o&&(t=Fe(t,n)),e.appendChild(s.createTextNode(t)))}function eo(i,e){var t;const{doc:r,hackCss:s,cache:o}=e;switch(i.type){case y.Document:return r.implementation.createDocument(null,"",null);case y.DocumentType:return r.implementation.createDocumentType(i.name||"html",i.publicId,i.systemId);case y.Element:{const n=Xn(i);let a;i.isSVG?a=r.createElementNS("http://www.w3.org/2000/svg",n):(i.isCustom&&((t=r.defaultView)!=null&&t.customElements)&&!r.defaultView.customElements.get(i.tagName)&&r.defaultView.customElements.define(i.tagName,class extends r.defaultView.HTMLElement{}),a=r.createElement(n));const l={};for(const u in i.attributes){if(!Object.prototype.hasOwnProperty.call(i.attributes,u))continue;let c=i.attributes[u];if(!(n==="option"&&u==="selected"&&c===!1)&&c!==null){if(c===!0&&(c=""),u.startsWith("rr_")){l[u]=c;continue}if(typeof c=="string"){if(n==="style"&&u==="_cssText"){Zn(i,a,c,e);continue}else if(n==="textarea"&&u==="value"){a.appendChild(r.createTextNode(c)),i.childNodes=[];continue}}try{if(i.isSVG&&u==="xlink:href")a.setAttributeNS("http://www.w3.org/1999/xlink",u,c.toString());else if(u==="onload"||u==="onclick"||u.substring(0,7)==="onmouse")a.setAttribute("_"+u,c.toString());else if(n==="meta"&&i.attributes["http-equiv"]==="Content-Security-Policy"&&u==="content"){a.setAttribute("csp-content",c.toString());continue}else n==="link"&&(i.attributes.rel==="preload"&&i.attributes.as==="script"||i.attributes.rel==="modulepreload")||n==="link"&&i.attributes.rel==="prefetch"&&typeof i.attributes.href=="string"&&Le(i.attributes.href)==="js"||(n==="img"&&i.attributes.srcset&&i.attributes.rr_dataURL?a.setAttribute("rrweb-original-srcset",i.attributes.srcset):a.setAttribute(u,c.toString()))}catch(h){}}}for(const u in l){const c=l[u];if(n==="canvas"&&u==="rr_dataURL"){const h=r.createElement("img");h.onload=()=>{const p=a.getContext("2d");p&&p.drawImage(h,0,0,h.width,h.height)},h.src=c.toString(),a.RRNodeType&&(a.rr_dataURL=c.toString())}else if(n==="img"&&u==="rr_dataURL"){const h=a;h.currentSrc.startsWith("data:")||(h.setAttribute("rrweb-original-src",i.attributes.src),h.src=c.toString())}if(u==="rr_width")a.style.setProperty("width",c.toString());else if(u==="rr_height")a.style.setProperty("height",c.toString());else if(u==="rr_mediaCurrentTime"&&typeof c=="number")a.currentTime=c;else if(u==="rr_mediaState")switch(c){case"played":a.play().catch(h=>console.warn("media playback error",h));break;case"paused":a.pause();break}else u==="rr_mediaPlaybackRate"&&typeof c=="number"?a.playbackRate=c:u==="rr_mediaMuted"&&typeof c=="boolean"?a.muted=c:u==="rr_mediaLoop"&&typeof c=="boolean"?a.loop=c:u==="rr_mediaVolume"&&typeof c=="number"?a.volume=c:u==="rr_open_mode"&&a.setAttribute("rr_open_mode",c)}if(i.isShadowHost)if(!a.shadowRoot)a.attachShadow({mode:"open"});else for(;a.shadowRoot.firstChild;)a.shadowRoot.removeChild(a.shadowRoot.firstChild);return a}case y.Text:return i.isStyle&&s?r.createTextNode(Fe(i.textContent,o)):r.createTextNode(i.textContent);case y.CDATA:return r.createCDATASection(i.textContent);case y.Comment:return r.createComment(i.textContent);default:return null}}function Ot(i,e){const{doc:t,mirror:r,skipChild:s=!1,hackCss:o=!0,afterAppend:n,cache:a}=e;if(r.has(i.id)){const u=r.getNode(i.id),c=r.getMeta(u);if(cr(c,i))return r.getNode(i.id)}let l=eo(i,{doc:t,hackCss:o,cache:a});if(!l)return null;if(i.rootId&&r.getNode(i.rootId)!==t&&r.replace(i.rootId,t),i.type===y.Document&&(t.close(),t.open(),i.compatMode==="BackCompat"&&i.childNodes&&i.childNodes[0].type!==y.DocumentType&&(i.childNodes[0].type===y.Element&&"xmlns"in i.childNodes[0].attributes&&i.childNodes[0].attributes.xmlns==="http://www.w3.org/1999/xhtml"?t.write('<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">'):t.write('<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "">')),l=t),r.add(l,i),(i.type===y.Document||i.type===y.Element)&&!s)for(const u of i.childNodes){const c=Ot(u,{doc:t,mirror:r,skipChild:!1,hackCss:o,afterAppend:n,cache:a});if(!c){console.warn("Failed to rebuild",u);continue}if(u.isShadow&&G(l)&&l.shadowRoot)l.shadowRoot.appendChild(c);else if(i.type===y.Document&&u.type==y.Element){const h=c;let p=null;h.childNodes.forEach(g=>{g.nodeName==="BODY"&&(p=g)}),p?(h.removeChild(p),l.appendChild(c),h.appendChild(p)):l.appendChild(c)}else l.appendChild(c);n&&n(c,u.id)}return l}function to(i,e){function t(r){e(r)}for(const r of i.getIds())i.has(r)&&t(i.getNode(r))}function ro(i,e){const t=e.getMeta(i);if((t==null?void 0:t.type)!==y.Element)return;const r=i;for(const s in t.attributes){if(!(Object.prototype.hasOwnProperty.call(t.attributes,s)&&s.startsWith("rr_")))continue;const o=t.attributes[s];s==="rr_scrollLeft"&&(r.scrollLeft=o),s==="rr_scrollTop"&&(r.scrollTop=o)}}function io(i,e){const{doc:t,onVisit:r,hackCss:s=!0,afterAppend:o,cache:n,mirror:a=new Te}=e,l=Ot(i,{doc:t,mirror:a,skipChild:!1,hackCss:s,afterAppend:o,cache:n});return to(a,u=>{r&&r(u),ro(u,a)}),l}exports.IGNORED_NODE=Xe;exports.Mirror=Te;exports.absolutifyURLs=ie;exports.adaptCssForReplay=Fe;exports.buildNodeWithSN=Ot;exports.buildSelector=dr;exports.buildXPath=Oe;exports.classMatchesRegex=Re;exports.cleanupSnapshot=rs;exports.createCache=Kn;exports.createMirror=Mi;exports.escapeImportStatement=ir;exports.extractFileExtension=Le;exports.fixSafariColons=nr;exports.genId=Cr;exports.getInputType=fr;exports.ignoreAttribute=xr;exports.interactiveEvents=gr;exports.interactiveTags=yr;exports.is2DCanvasBlank=ur;exports.isCSSImportRule=or;exports.isCSSStyleRule=lr;exports.isElement=G;exports.isElementInteractive=wr;exports.isElementVisible=pt;exports.isExcludeAttribute=vr;exports.isNativeShadowDom=xe;exports.isNodeMetaEqual=cr;exports.isShadowRoot=rr;exports.isTextVisible=mr;exports.markCssSplits=pr;exports.maskInputValue=ar;exports.needMaskingText=Er;exports.normalizeCssString=re;exports.rebuild=io;exports.serializeNodeWithId=V;exports.snapshot=es;exports.splitCssText=hr;exports.stringifyRule=sr;exports.stringifyStylesheet=Ne;exports.toLowerCase=ae;exports.transformAttribute=Sr;exports.visitSnapshot=ts;
42
- if (typeof module.exports == "object" && typeof exports == "object") {
40
+ https://www.w3ctech.com/topic/2226`));let l=t(...o);return l.postcssPlugin=e,l.postcssVersion=new Dt().version,l}let n;return Object.defineProperty(i,"postcss",{get(){return n||(n=i()),n}}),i.process=function(o,l,a){return v([i(a)]).process(o,l)},i};v.stringify=ra;v.parse=ea;v.fromJSON=Jo;v.list=Zo;v.comment=s=>new Es(s);v.atRule=s=>new vs(s);v.decl=s=>new As(s);v.rule=s=>new Os(s);v.root=s=>new Ns(s);v.document=s=>new Rs(s);v.CssSyntaxError=Yo;v.Declaration=As;v.Container=qo;v.Processor=Dt;v.Document=Rs;v.Comment=Es;v.Warning=sa;v.AtRule=vs;v.Result=ta;v.Input=Qo;v.Rule=Os;v.Root=Ns;v.Node=Xo;Ko.registerPostcss(v);var ia=v;v.default=v;const R=gn(ia);R.stringify;R.fromJSON;R.plugin;R.parse;R.list;R.document;R.comment;R.atRule;R.rule;R.decl;R.root;R.CssSyntaxError;R.Declaration;R.Container;R.Processor;R.Document;R.Comment;R.Warning;R.AtRule;R.Result;R.Input;R.Rule;R.Root;R.Node;const wr={script:"noscript",altglyph:"altGlyph",altglyphdef:"altGlyphDef",altglyphitem:"altGlyphItem",animatecolor:"animateColor",animatemotion:"animateMotion",animatetransform:"animateTransform",clippath:"clipPath",feblend:"feBlend",fecolormatrix:"feColorMatrix",fecomponenttransfer:"feComponentTransfer",fecomposite:"feComposite",feconvolvematrix:"feConvolveMatrix",fediffuselighting:"feDiffuseLighting",fedisplacementmap:"feDisplacementMap",fedistantlight:"feDistantLight",fedropshadow:"feDropShadow",feflood:"feFlood",fefunca:"feFuncA",fefuncb:"feFuncB",fefuncg:"feFuncG",fefuncr:"feFuncR",fegaussianblur:"feGaussianBlur",feimage:"feImage",femerge:"feMerge",femergenode:"feMergeNode",femorphology:"feMorphology",feoffset:"feOffset",fepointlight:"fePointLight",fespecularlighting:"feSpecularLighting",fespotlight:"feSpotLight",fetile:"feTile",feturbulence:"feTurbulence",foreignobject:"foreignObject",glyphref:"glyphRef",lineargradient:"linearGradient",radialgradient:"radialGradient"};function na(s){let e=wr[s.tagName]?wr[s.tagName]:s.tagName;return e==="link"&&s.attributes._cssText&&(e="style"),e}function Ge(s,e){const t=e==null?void 0:e.stylesWithHoverClass.get(s);if(t)return t;let r=s;try{r=R([dn,pn,mn]).process(s).css}catch(i){console.warn("Failed to adapt css for replay",i)}return e==null||e.stylesWithHoverClass.set(s,r),r}function oa(){return{stylesWithHoverClass:new Map}}function aa(s,e,t,r){const i=[];for(const a of s.childNodes)a.type===w.Text&&i.push(a);const n=e.split("/* rr_split */");for(;n.length>1&&n.length>i.length;)n.splice(-2,2,n.slice(-2).join(""));let o="";t&&(o=Ge(n.join(""),r));let l=0;for(let a=0;a<i.length&&a!==n.length;a++){const c=i[a];if(!t)c.textContent=n[a];else if(a<n.length-1){let u=l,h=n[a+1].length;h=Math.min(h,30);let f=!1;for(;h>2;h--){const d=n[a+1].substring(0,h),m=o.substring(l).indexOf(d);if(f=m!==-1,f){u+=m;break}}f||(u+=n[a].length),c.textContent=o.substring(l,u),l=u}else c.textContent=o.substring(l)}}function la(s,e,t,r){const{doc:i,hackCss:n,cache:o}=r;s.childNodes.length?aa(s,t,n,o):(n&&(t=Ge(t,o)),e.appendChild(i.createTextNode(t)))}function ca(s,e){var t;const{doc:r,hackCss:i,cache:n}=e;switch(s.type){case w.Document:return r.implementation.createDocument(null,"",null);case w.DocumentType:return r.implementation.createDocumentType(s.name||"html",s.publicId,s.systemId);case w.Element:{const o=na(s);let l;s.isSVG?l=r.createElementNS("http://www.w3.org/2000/svg",o):(s.isCustom&&((t=r.defaultView)!=null&&t.customElements)&&!r.defaultView.customElements.get(s.tagName)&&r.defaultView.customElements.define(s.tagName,class extends r.defaultView.HTMLElement{}),l=r.createElement(o));const a={};for(const c in s.attributes){if(!Object.prototype.hasOwnProperty.call(s.attributes,c))continue;let u=s.attributes[c];if(!(o==="option"&&c==="selected"&&u===!1)&&u!==null){if(u===!0&&(u=""),c.startsWith("rr_")){a[c]=u;continue}if(typeof u=="string"){if(o==="style"&&c==="_cssText"){la(s,l,u,e);continue}else if(o==="textarea"&&c==="value"){l.appendChild(r.createTextNode(u)),s.childNodes=[];continue}}try{if(s.isSVG&&c==="xlink:href")l.setAttributeNS("http://www.w3.org/1999/xlink",c,u.toString());else if(c==="onload"||c==="onclick"||c.substring(0,7)==="onmouse")l.setAttribute("_"+c,u.toString());else if(o==="meta"&&s.attributes["http-equiv"]==="Content-Security-Policy"&&c==="content"){l.setAttribute("csp-content",u.toString());continue}else o==="link"&&(s.attributes.rel==="preload"&&s.attributes.as==="script"||s.attributes.rel==="modulepreload")||o==="link"&&s.attributes.rel==="prefetch"&&typeof s.attributes.href=="string"&&Ue(s.attributes.href)==="js"||(o==="img"&&s.attributes.srcset&&s.attributes.rr_dataURL?l.setAttribute("rrweb-original-srcset",s.attributes.srcset):l.setAttribute(c,u.toString()))}catch(h){}}}for(const c in a){const u=a[c];if(o==="canvas"&&c==="rr_dataURL"){const h=r.createElement("img");h.onload=()=>{const f=l.getContext("2d");f&&f.drawImage(h,0,0,h.width,h.height)},h.src=u.toString(),l.RRNodeType&&(l.rr_dataURL=u.toString())}else if(o==="img"&&c==="rr_dataURL"){const h=l;h.currentSrc.startsWith("data:")||(h.setAttribute("rrweb-original-src",s.attributes.src),h.src=u.toString())}if(c==="rr_width")l.style.setProperty("width",u.toString());else if(c==="rr_height")l.style.setProperty("height",u.toString());else if(c==="rr_mediaCurrentTime"&&typeof u=="number")l.currentTime=u;else if(c==="rr_mediaState")switch(u){case"played":l.play().catch(h=>console.warn("media playback error",h));break;case"paused":l.pause();break}else c==="rr_mediaPlaybackRate"&&typeof u=="number"?l.playbackRate=u:c==="rr_mediaMuted"&&typeof u=="boolean"?l.muted=u:c==="rr_mediaLoop"&&typeof u=="boolean"?l.loop=u:c==="rr_mediaVolume"&&typeof u=="number"?l.volume=u:c==="rr_open_mode"&&l.setAttribute("rr_open_mode",u)}if(s.isShadowHost)if(!l.shadowRoot)l.attachShadow({mode:"open"});else for(;l.shadowRoot.firstChild;)l.shadowRoot.removeChild(l.shadowRoot.firstChild);return l}case w.Text:return s.isStyle&&i?r.createTextNode(Ge(s.textContent,n)):r.createTextNode(s.textContent);case w.CDATA:return r.createCDATASection(s.textContent);case w.Comment:return r.createComment(s.textContent);default:return null}}function It(s,e){const{doc:t,mirror:r,skipChild:i=!1,hackCss:n=!0,afterAppend:o,cache:l}=e;if(r.has(s.id)){const c=r.getNode(s.id),u=r.getMeta(c);if(Or(u,s))return r.getNode(s.id)}let a=ca(s,{doc:t,hackCss:n,cache:l});if(!a)return null;if(s.rootId&&r.getNode(s.rootId)!==t&&r.replace(s.rootId,t),s.type===w.Document&&(t.close(),t.open(),s.compatMode==="BackCompat"&&s.childNodes&&s.childNodes[0].type!==w.DocumentType&&(s.childNodes[0].type===w.Element&&"xmlns"in s.childNodes[0].attributes&&s.childNodes[0].attributes.xmlns==="http://www.w3.org/1999/xhtml"?t.write('<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">'):t.write('<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "">')),a=t),r.add(a,s),(s.type===w.Document||s.type===w.Element)&&!i)for(const c of s.childNodes){const u=It(c,{doc:t,mirror:r,skipChild:!1,hackCss:n,afterAppend:o,cache:l});if(!u){console.warn("Failed to rebuild",c);continue}if(c.isShadow&&re(a)&&a.shadowRoot)a.shadowRoot.appendChild(u);else if(s.type===w.Document&&c.type==w.Element){const h=u;let f=null;h.childNodes.forEach(d=>{d.nodeName==="BODY"&&(f=d)}),f?(h.removeChild(f),a.appendChild(u),h.appendChild(f)):a.appendChild(u)}else a.appendChild(u);o&&o(u,c.id)}return a}function ua(s,e){function t(r){e(r)}for(const r of s.getIds())s.has(r)&&t(s.getNode(r))}function ha(s,e){const t=e.getMeta(s);if((t==null?void 0:t.type)!==w.Element)return;const r=s;for(const i in t.attributes){if(!(Object.prototype.hasOwnProperty.call(t.attributes,i)&&i.startsWith("rr_")))continue;const n=t.attributes[i];i==="rr_scrollLeft"&&(r.scrollLeft=n),i==="rr_scrollTop"&&(r.scrollTop=n)}}function fa(s,e){const{doc:t,onVisit:r,hackCss:i=!0,afterAppend:n,cache:o,mirror:l=new Fe}=e,a=It(s,{doc:t,mirror:l,skipChild:!1,hackCss:i,afterAppend:n,cache:o});return ua(l,c=>{r&&r(c),ha(c,l)}),a}exports.IGNORED_NODE=nt;exports.Mirror=Fe;exports.absolutifyURLs=ue;exports.adaptCssForReplay=Ge;exports.buildNodeWithSN=It;exports.classMatchesRegex=_e;exports.cleanupSnapshot=hn;exports.createCache=oa;exports.createMirror=Ks;exports.escapeImportStatement=Cr;exports.extractFileExtension=Ue;exports.fixSafariColons=vr;exports.genId=Wr;exports.getInputType=Mr;exports.ignoreAttribute=jr;exports.interactiveEvents=Lr;exports.interactiveTags=_r;exports.is2DCanvasBlank=Nr;exports.isCSSImportRule=Er;exports.isCSSStyleRule=Ar;exports.isElement=re;exports.isElementInteractive=Pr;exports.isElementVisible=St;exports.isExcludeAttribute=Vr;exports.isNativeShadowDom=Te;exports.isNodeMetaEqual=Or;exports.isShadowRoot=xr;exports.isTextVisible=$r;exports.markCssSplits=kr;exports.maskInputValue=Rr;exports.needMaskingText=Gr;exports.normalizeCssString=ce;exports.rebuild=fa;exports.serializeNodeWithId=te;exports.snapshot=cn;exports.splitCssText=Tr;exports.stringifyRule=Sr;exports.stringifyStylesheet=Le;exports.toLowerCase=ge;exports.transformAttribute=Hr;exports.visitSnapshot=un;
41
+ ;if (typeof module.exports == "object" && typeof exports == "object") {
43
42
  var __cp = (to, from, except, desc) => {
44
43
  if ((from && typeof from === "object") || typeof from === "function") {
45
44
  for (let key of Object.getOwnPropertyNames(from)) {