repoburg 1.3.302 → 1.3.303

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,56 +1,56 @@
1
- "use strict";(()=>{var gc=Object.defineProperty,yc=(e,t,r)=>t in e?gc(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,O=(e,t,r)=>yc(e,typeof t!="symbol"?t+"":t,r),_s,bc=Object.defineProperty,wc=(e,t,r)=>t in e?bc(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Ls=(e,t,r)=>wc(e,typeof t!="symbol"?t+"":t,r),te=(e=>(e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment",e))(te||{}),Ps={Node:["childNodes","parentNode","parentElement","textContent","ownerDocument","firstChild","lastChild","nextSibling","previousSibling"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},Fs={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},Yt={},na={},vc=()=>!!globalThis.Zone;function Oi(e){if(Yt[e])return Yt[e];let t=globalThis[e],r=t.prototype,i=e in Ps?Ps[e]:void 0,n=!!(i&&i.every(c=>{var a,p;return!!((p=(a=Object.getOwnPropertyDescriptor(r,c))==null?void 0:a.get)!=null&&p.toString().includes("[native code]"))})),l=e in Fs?Fs[e]:void 0,u=!!(l&&l.every(c=>{var a;return typeof r[c]=="function"&&((a=r[c])==null?void 0:a.toString().includes("[native code]"))}));if(n&&u&&!vc())return Yt[e]=t.prototype,t.prototype;try{let c=document.createElement("iframe");c.style.display="none",document.body.appendChild(c);let a=c.contentWindow;if(!a)return t.prototype;let p=a[e].prototype;if(!p)return c.remove(),r;let o=navigator.userAgent;return o.includes("Safari")&&!o.includes("Chrome")?(c.classList.add("rr-block"),c.setAttribute("__rrwebUntaintedMutationObserver",""),na[e]=()=>c.remove()):c.remove(),Yt[e]=p}catch{return r}}var fn={};function fe(e,t,r){var i,n;let l=(i=fn[e])==null?void 0:i[r];if(l)return l.call(t);let u=Oi(e),c=(n=Object.getOwnPropertyDescriptor(u,r))==null?void 0:n.get;return c?((fn[e]||(fn[e]={}))[r]=c,c.call(t)):t[r]}var dn={};function ia(e,t,r){let i=`${e}.${String(r)}`;if(dn[i])return dn[i].bind(t);let l=Oi(e)[r];return typeof l!="function"?t[r]:(dn[i]=l,l.bind(t))}function Sc(e){return fe("Node",e,"ownerDocument")}function Cc(e){return fe("Node",e,"childNodes")}function Ec(e){return fe("Node",e,"parentNode")}function xc(e){return fe("Node",e,"parentElement")}function Rc(e){return fe("Node",e,"textContent")}function Tc(e){return fe("Node",e,"firstChild")}function Mc(e){return fe("Node",e,"lastChild")}function Nc(e){return fe("Node",e,"nextSibling")}function Oc(e){return fe("Node",e,"previousSibling")}function kc(e,t){return ia("Node",e,"contains")(t)}function Ic(e){return ia("Node",e,"getRootNode")()}function Ac(e){return!e||!("host"in e)?null:fe("ShadowRoot",e,"host")}function Dc(e){return e.styleSheets}function _c(e){return!e||!("shadowRoot"in e)?null:fe("Element",e,"shadowRoot")}function Lc(e,t){return fe("Element",e,"querySelector")(t)}function Pc(e,t){return fe("Element",e,"querySelectorAll")(t)}function Fc(){return[Oi("MutationObserver").constructor,na.MutationObserver??(()=>{})]}var sa=Date.now;/[1-9][0-9]{12}/.test(Date.now().toString())||(sa=()=>new Date().getTime());function Uc(e,t,r){try{if(!(t in e))return()=>{};let i=e[t],n=r(i);return typeof n=="function"&&(n.prototype=n.prototype||{},Object.defineProperties(n,{__rrweb_original__:{enumerable:!1,value:i}})),e[t]=n,()=>{e[t]=i}}catch{return()=>{}}}var ie={ownerDocument:Sc,childNodes:Cc,parentNode:Ec,parentElement:xc,textContent:Rc,firstChild:Tc,lastChild:Mc,nextSibling:Nc,previousSibling:Oc,contains:kc,getRootNode:Ic,host:Ac,styleSheets:Dc,shadowRoot:_c,querySelector:Lc,querySelectorAll:Pc,nowTimestamp:sa,mutationObserverCtor:Fc,patch:Uc};function oa(e){return e.nodeType===e.ELEMENT_NODE}function Ct(e){let t=e&&"host"in e&&"mode"in e&&ie.host(e)||null;return!!(t&&"shadowRoot"in t&&ie.shadowRoot(t)===e)}function Et(e){return Object.prototype.toString.call(e)==="[object ShadowRoot]"}function Bc(e){return e.includes(" background-clip: text;")&&!e.includes(" -webkit-background-clip: text;")&&(e=e.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;")),e}function $c(e){let{cssText:t}=e;if(t.split('"').length<3)return t;let r=["@import",`url(${JSON.stringify(e.href)})`];return e.layerName===""?r.push("layer"):e.layerName&&r.push(`layer(${e.layerName})`),e.supportsText&&r.push(`supports(${e.supportsText})`),e.media.length&&r.push(e.media.mediaText),r.join(" ")+";"}function yi(e){try{let t=e.rules||e.cssRules;if(!t)return null;let r=e.href;!r&&e.ownerNode&&(r=e.ownerNode.baseURI);let i=Array.from(t,n=>aa(n,r)).join("");return Bc(i)}catch{return null}}function aa(e,t){if(zc(e)){let r;try{r=yi(e.styleSheet)||$c(e)}catch{r=e.cssText}return e.styleSheet.href?lr(r,e.styleSheet.href):r}else{let r=e.cssText;return qc(e)&&e.selectorText.includes(":")&&(r=Wc(r)),t?lr(r,t):r}}function Wc(e){let t=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return e.replace(t,"$1\\$2")}function zc(e){return"styleSheet"in e}function qc(e){return"selectorText"in e}var sr=class{constructor(){Ls(this,"idNodeMap",new Map),Ls(this,"nodeMetaMap",new WeakMap)}getId(t){var r;return t?((r=this.getMeta(t))==null?void 0:r.id)??-1:-1}getNode(t){return this.idNodeMap.get(t)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(t){return this.nodeMetaMap.get(t)||null}removeNodeFromMap(t){let r=this.getId(t);this.idNodeMap.delete(r),t.childNodes&&t.childNodes.forEach(i=>this.removeNodeFromMap(i))}has(t){return this.idNodeMap.has(t)}hasNode(t){return this.nodeMetaMap.has(t)}add(t,r){let i=r.id;this.idNodeMap.set(i,t),this.nodeMetaMap.set(t,r)}replace(t,r){let i=this.getNode(t);if(i){let n=this.nodeMetaMap.get(i);n&&this.nodeMetaMap.set(r,n)}this.idNodeMap.set(t,r)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}};function jc(){return new sr}function or({element:e,maskInputOptions:t,tagName:r,type:i,value:n,maskInputFn:l}){let u=n||"",c=i&&_e(i);return(t[r.toLowerCase()]||c&&t[c])&&(l?u=l(u,e):u="*".repeat(u.length)),u}function _e(e){return e.toLowerCase()}var Us="__rrweb_original__";function Vc(e){let t=e.getContext("2d");if(!t)return!0;let r=50;for(let i=0;i<e.width;i+=r)for(let n=0;n<e.height;n+=r){let l=t.getImageData,u=Us in l?l[Us]:l;if(new Uint32Array(u.call(t,i,n,Math.min(r,e.width-i),Math.min(r,e.height-n)).data.buffer).some(a=>a!==0))return!1}return!0}function ar(e){let t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?_e(t):null}function la(e,t){let r;try{r=new URL(e,t??window.location.href)}catch{return null}let i=/\.([0-9a-z]+)(?:$)/i,n=r.pathname.match(i);return n?.[1]??null}function Hc(e){let t="";return e.indexOf("//")>-1?t=e.split("/").slice(0,3).join("/"):t=e.split("/")[0],t=t.split("?")[0],t}var Gc=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,Yc=/^(?:[a-z+]+:)?\/\//i,Xc=/^www\..*/i,Jc=/^(data:)([^,]*),(.*)/i;function lr(e,t){return(e||"").replace(Gc,(r,i,n,l,u,c)=>{let a=n||u||c,p=i||l||"";if(!a)return r;if(Yc.test(a)||Xc.test(a))return`url(${p}${a}${p})`;if(Jc.test(a))return`url(${p}${a}${p})`;if(a[0]==="/")return`url(${p}${Hc(t)+a}${p})`;let o=a.split("#")[0],h=a.substring(o.length),f=t.split("#")[0].split("/"),s=o.split("/");f.pop();for(let m of s)m!=="."&&(m===".."?f.pop():f.push(m));return`url(${p}${f.join("/")}${h}${p})`})}var ua="(?:/\\*[^*]*\\*/)|[\\s;]",Kc=new RegExp(`${ua}|\\b(0)px?`,"g"),Qc=new RegExp(ua,"g");function Xt(e,t=!1){return t?e.replace(Qc,""):e.replace(Kc,"$1")}function Zc(e,t,r=!1){let i=Array.from(t.childNodes),n=[],l=0;if(i.length>1&&e&&typeof e=="string"){let u=Xt(e,r),c=u.length/e.length;for(let a=1;a<i.length;a++)if(i[a].textContent&&typeof i[a].textContent=="string"){let p=Xt(i[a].textContent,r),o=100,h=3;for(;h<p.length&&(p[h].match(/[a-zA-Z0-9]/)||p.indexOf(p.substring(0,h),1)!==-1);h++);for(;h<p.length;h++){let f=p.substring(0,h),s=u.split(f),m=-1;if(s.length===2)m=s[0].length;else if(s.length>2&&s[0]===""&&i[a-1].textContent!=="")m=u.indexOf(f,1);else if(s.length===1){if(f=f.substring(0,f.length-1),s=u.split(f),s.length<=1)return n.push(e),n;h=o+1}else h===p.length-1&&(m=u.indexOf(f));if(s.length>=2&&h>o){let d=i[a-1].textContent;if(d&&typeof d=="string"){let g=Xt(d).length;m=u.indexOf(f,g)}m===-1&&(m=s[0].length)}if(m!==-1){let d=Math.floor(m/c);for(;d>0&&d<e.length;){if(l+=1,l>50*i.length)return n.push(e),n;let g=Xt(e.substring(0,d),r);if(g.length===m){n.push(e.substring(0,d)),e=e.substring(d),u=u.substring(m);break}else g.length<m?d+=Math.max(1,Math.floor((m-g.length)/c)):d-=Math.max(1,Math.floor((g.length-m)*c))}break}}}}return n.push(e),n}function ef(e,t){return Zc(e,t).join("/* rr_split */")}var tf=1,rf=new RegExp("[^a-z0-9-_:]"),ur=-2;function ca(){return tf++}function nf(e){if(e instanceof HTMLFormElement)return"form";let t=_e(e.tagName);return rf.test(t)?"div":t}var Qe,Bs,sf=/^[^ \t\n\r\u000c]+/,of=/^[, \t\n\r\u000c]+/;function af(e,t){if(t.trim()==="")return t;let r=0;function i(l){let u,c=l.exec(t.substring(r));return c?(u=c[0],r+=u.length,u):""}let n=[];for(;i(of),!(r>=t.length);){let l=i(sf);if(l.slice(-1)===",")l=tt(e,l.substring(0,l.length-1)),n.push(l);else{let u="";l=tt(e,l);let c=!1;for(;;){let a=t.charAt(r);if(a===""){n.push((l+u).trim());break}else if(c)a===")"&&(c=!1);else if(a===","){r+=1,n.push((l+u).trim());break}else a==="("&&(c=!0);u+=a,r+=1}}}return n.join(", ")}var $s=new WeakMap;function tt(e,t){return!t||t.trim()===""?t:ki(e,t)}function lf(e){return!!(e.tagName==="svg"||e.ownerSVGElement)}function ki(e,t){let r=$s.get(e);if(r||(r=e.createElement("a"),$s.set(e,r)),!t)t="";else if(t.startsWith("blob:")||t.startsWith("data:"))return t;return r.setAttribute("href",t),r.href}function fa(e,t,r,i){return i&&(r==="src"||r==="href"&&!(t==="use"&&i[0]==="#")||r==="xlink:href"&&i[0]!=="#"||r==="background"&&["table","td","th"].includes(t)?tt(e,i):r==="srcset"?af(e,i):r==="style"?lr(i,ki(e)):t==="object"&&r==="data"?tt(e,i):i)}function da(e,t,r){return["video","audio"].includes(e)&&_e(t)==="autoplay"}function uf(e,t,r){try{if(typeof t=="string"){if(e.classList.contains(t))return!0}else for(let i=e.classList.length;i--;){let n=e.classList[i];if(t.test(n))return!0}if(r)return e.matches(r)}catch{}return!1}function cr(e,t,r){if(!e)return!1;if(e.nodeType!==e.ELEMENT_NODE)return r?cr(ie.parentNode(e),t,r):!1;for(let i=e.classList.length;i--;){let n=e.classList[i];if(t.test(n))return!0}return r?cr(ie.parentNode(e),t,r):!1}function ha(e,t,r,i){let n;if(oa(e)){if(n=e,!ie.childNodes(n).length)return!1}else{if(ie.parentElement(e)===null)return!1;n=ie.parentElement(e)}try{if(typeof t=="string"){if(i){if(n.closest(`.${t}`))return!0}else if(n.classList.contains(t))return!0}else if(cr(n,t,i))return!0;if(r){if(i){if(n.closest(r))return!0}else if(n.matches(r))return!0}}catch{}return!1}function cf(e,t,r){let i=e.contentWindow;if(!i)return;let n=!1,l;try{l=i.document.readyState}catch{return}if(l!=="complete"){let c=setTimeout(()=>{n||(t(),n=!0)},r);e.addEventListener("load",()=>{clearTimeout(c),n=!0,t()});return}let u="about:blank";if(i.location.href!==u||e.src===u||e.src==="")return setTimeout(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}function ff(e,t,r){let i=!1,n;try{n=e.sheet}catch{return}if(n)return;let l=setTimeout(()=>{i||(t(),i=!0)},r);e.addEventListener("load",()=>{clearTimeout(l),i=!0,t()})}function df(e,t){let{doc:r,mirror:i,blockClass:n,blockSelector:l,needsMask:u,inlineStylesheet:c,maskInputOptions:a={},maskTextFn:p,maskInputFn:o,dataURLOptions:h={},inlineImages:f,recordCanvas:s,keepIframeSrcFn:m,newlyAddedElement:d=!1,cssCaptured:g=!1}=t,C=hf(r,i);switch(e.nodeType){case e.DOCUMENT_NODE:return e.compatMode!=="CSS1Compat"?{type:te.Document,childNodes:[],compatMode:e.compatMode}:{type:te.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:te.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:C};case e.ELEMENT_NODE:return mf(e,{doc:r,blockClass:n,blockSelector:l,inlineStylesheet:c,maskInputOptions:a,maskInputFn:o,dataURLOptions:h,inlineImages:f,recordCanvas:s,keepIframeSrcFn:m,newlyAddedElement:d,rootId:C});case e.TEXT_NODE:return pf(e,{doc:r,needsMask:u,maskTextFn:p,rootId:C,cssCaptured:g});case e.CDATA_SECTION_NODE:return{type:te.CDATA,textContent:"",rootId:C};case e.COMMENT_NODE:return{type:te.Comment,textContent:ie.textContent(e)||"",rootId:C};default:return!1}}function hf(e,t){if(!t.hasNode(e))return;let r=t.getId(e);return r===1?void 0:r}function pf(e,t){let{needsMask:r,maskTextFn:i,rootId:n,cssCaptured:l}=t,u=ie.parentNode(e),c=u&&u.tagName,a="",p=c==="STYLE"?!0:void 0,o=c==="SCRIPT"?!0:void 0;return o?a="SCRIPT_PLACEHOLDER":l||(a=ie.textContent(e),p&&a&&(a=lr(a,ki(t.doc)))),!p&&!o&&a&&r&&(a=i?i(a,ie.parentElement(e)):a.replace(/[\S]/g,"*")),{type:te.Text,textContent:a||"",rootId:n}}function mf(e,t){let{doc:r,blockClass:i,blockSelector:n,inlineStylesheet:l,maskInputOptions:u={},maskInputFn:c,dataURLOptions:a={},inlineImages:p,recordCanvas:o,keepIframeSrcFn:h,newlyAddedElement:f=!1,rootId:s}=t,m=uf(e,i,n),d=nf(e),g={},C=e.attributes.length;for(let v=0;v<C;v++){let E=e.attributes[v];da(d,E.name,E.value)||(g[E.name]=fa(r,d,_e(E.name),E.value))}if(d==="link"&&l){let v=Array.from(r.styleSheets).find(w=>w.href===e.href),E=null;v&&(E=yi(v)),E&&(delete g.rel,delete g.href,g._cssText=E)}if(d==="style"&&e.sheet){let v=yi(e.sheet);v&&(e.childNodes.length>1&&(v=ef(v,e)),g._cssText=v)}if(["input","textarea","select"].includes(d)){let v=e.value,E=e.checked;g.type!=="radio"&&g.type!=="checkbox"&&g.type!=="submit"&&g.type!=="button"&&v?g.value=or({element:e,type:ar(e),tagName:d,value:v,maskInputOptions:u,maskInputFn:c}):E&&(g.checked=E)}if(d==="option"&&(e.selected&&!u.select?g.selected=!0:delete g.selected),d==="dialog"&&e.open&&(g.rr_open_mode=e.matches("dialog:modal")?"modal":"non-modal"),d==="canvas"&&o){if(e.__context==="2d")Vc(e)||(g.rr_dataURL=e.toDataURL(a.type,a.quality));else if(!("__context"in e)){let v=e.toDataURL(a.type,a.quality),E=r.createElement("canvas");E.width=e.width,E.height=e.height;let w=E.toDataURL(a.type,a.quality);v!==w&&(g.rr_dataURL=v)}}if(d==="img"&&p){Qe||(Qe=r.createElement("canvas"),Bs=Qe.getContext("2d"));let v=e,E=v.currentSrc||v.getAttribute("src")||"<unknown-src>",w=v.crossOrigin,y=()=>{v.removeEventListener("load",y);try{Qe.width=v.naturalWidth,Qe.height=v.naturalHeight,Bs.drawImage(v,0,0),g.rr_dataURL=Qe.toDataURL(a.type,a.quality)}catch(S){if(v.crossOrigin!=="anonymous"){v.crossOrigin="anonymous",v.complete&&v.naturalWidth!==0?y():v.addEventListener("load",y);return}else console.warn(`Cannot inline img src=${E}! Error: ${S}`)}v.crossOrigin==="anonymous"&&(w?g.crossOrigin=w:v.removeAttribute("crossorigin"))};v.complete&&v.naturalWidth!==0?y():v.addEventListener("load",y)}if(["audio","video"].includes(d)){let v=g;v.rr_mediaState=e.paused?"paused":"played",v.rr_mediaCurrentTime=e.currentTime,v.rr_mediaPlaybackRate=e.playbackRate,v.rr_mediaMuted=e.muted,v.rr_mediaLoop=e.loop,v.rr_mediaVolume=e.volume}if(f||(e.scrollLeft&&(g.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(g.rr_scrollTop=e.scrollTop)),m){let{width:v,height:E}=e.getBoundingClientRect();g={class:g.class,rr_width:`${v}px`,rr_height:`${E}px`}}d==="iframe"&&!h(g.src)&&(e.contentDocument||(g.rr_src=g.src),delete g.src);let b;try{customElements.get(d)&&(b=!0)}catch{}return{type:te.Element,tagName:d,attributes:g,childNodes:[],isSVG:lf(e)||void 0,needBlock:m,rootId:s,isCustom:b}}function q(e){return e==null?"":e.toLowerCase()}function pa(e){return e===!0||e==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:e==="all",headMetaDescKeywords:e==="all",headTitleMutations:e==="all"}:e||{}}function gf(e,t){if(t.comment&&e.type===te.Comment)return!0;if(e.type===te.Element){if(t.script&&(e.tagName==="script"||e.tagName==="link"&&(e.attributes.rel==="preload"&&e.attributes.as==="script"||e.attributes.rel==="modulepreload")||e.tagName==="link"&&e.attributes.rel==="prefetch"&&typeof e.attributes.href=="string"&&la(e.attributes.href)==="js"))return!0;if(t.headFavicon&&(e.tagName==="link"&&e.attributes.rel==="shortcut icon"||e.tagName==="meta"&&(q(e.attributes.name).match(/^msapplication-tile(image|color)$/)||q(e.attributes.name)==="application-name"||q(e.attributes.rel)==="icon"||q(e.attributes.rel)==="apple-touch-icon"||q(e.attributes.rel)==="shortcut icon")))return!0;if(e.tagName==="meta"){if(t.headMetaDescKeywords&&q(e.attributes.name).match(/^description|keywords$/))return!0;if(t.headMetaSocial&&(q(e.attributes.property).match(/^(og|twitter|fb):/)||q(e.attributes.name).match(/^(og|twitter):/)||q(e.attributes.name)==="pinterest"))return!0;if(t.headMetaRobots&&(q(e.attributes.name)==="robots"||q(e.attributes.name)==="googlebot"||q(e.attributes.name)==="bingbot"))return!0;if(t.headMetaHttpEquiv&&e.attributes["http-equiv"]!==void 0)return!0;if(t.headMetaAuthorship&&(q(e.attributes.name)==="author"||q(e.attributes.name)==="generator"||q(e.attributes.name)==="framework"||q(e.attributes.name)==="publisher"||q(e.attributes.name)==="progid"||q(e.attributes.property).match(/^article:/)||q(e.attributes.property).match(/^product:/)))return!0;if(t.headMetaVerification&&(q(e.attributes.name)==="google-site-verification"||q(e.attributes.name)==="yandex-verification"||q(e.attributes.name)==="csrf-token"||q(e.attributes.name)==="p:domain_verify"||q(e.attributes.name)==="verify-v1"||q(e.attributes.name)==="verification"||q(e.attributes.name)==="shopify-checkout-api-token"))return!0}}return!1}function rt(e,t){let{doc:r,mirror:i,blockClass:n,blockSelector:l,maskTextClass:u,maskTextSelector:c,skipChild:a=!1,inlineStylesheet:p=!0,maskInputOptions:o={},maskTextFn:h,maskInputFn:f,slimDOMOptions:s,dataURLOptions:m={},inlineImages:d=!1,recordCanvas:g=!1,onSerialize:C,onIframeLoad:b,iframeLoadTimeout:v=5e3,onStylesheetLoad:E,stylesheetLoadTimeout:w=5e3,keepIframeSrcFn:y=()=>!1,newlyAddedElement:S=!1,cssCaptured:x=!1}=t,{needsMask:M}=t,{preserveWhiteSpace:T=!0}=t;M||(M=ha(e,u,c,M===void 0));let I=df(e,{doc:r,mirror:i,blockClass:n,blockSelector:l,needsMask:M,inlineStylesheet:p,maskInputOptions:o,maskTextFn:h,maskInputFn:f,dataURLOptions:m,inlineImages:d,recordCanvas:g,keepIframeSrcFn:y,newlyAddedElement:S,cssCaptured:x});if(!I)return console.warn(e,"not serialized"),null;let k;i.hasNode(e)?k=i.getId(e):gf(I,s)||!T&&I.type===te.Text&&!I.textContent.replace(/^\s+|\s+$/gm,"").length?k=ur:k=ca();let R=Object.assign(I,{id:k});if(i.add(e,R),k===ur)return null;C&&C(e);let re=!a;if(R.type===te.Element){re=re&&!R.needBlock,delete R.needBlock;let U=ie.shadowRoot(e);U&&Et(U)&&(R.isShadowHost=!0)}if((R.type===te.Document||R.type===te.Element)&&re){s.headWhitespace&&R.type===te.Element&&R.tagName==="head"&&(T=!1);let U={doc:r,mirror:i,blockClass:n,blockSelector:l,needsMask:M,maskTextClass:u,maskTextSelector:c,skipChild:a,inlineStylesheet:p,maskInputOptions:o,maskTextFn:h,maskInputFn:f,slimDOMOptions:s,dataURLOptions:m,inlineImages:d,recordCanvas:g,preserveWhiteSpace:T,onSerialize:C,onIframeLoad:b,iframeLoadTimeout:v,onStylesheetLoad:E,stylesheetLoadTimeout:w,keepIframeSrcFn:y,cssCaptured:!1};if(!(R.type===te.Element&&R.tagName==="textarea"&&R.attributes.value!==void 0)){R.type===te.Element&&R.attributes._cssText!==void 0&&typeof R.attributes._cssText=="string"&&(U.cssCaptured=!0);for(let V of Array.from(ie.childNodes(e))){let Q=rt(V,U);Q&&R.childNodes.push(Q)}}let P=null;if(oa(e)&&(P=ie.shadowRoot(e)))for(let V of Array.from(ie.childNodes(P))){let Q=rt(V,U);Q&&(Et(P)&&(Q.isShadow=!0),R.childNodes.push(Q))}}let ne=ie.parentNode(e);return ne&&Ct(ne)&&Et(ne)&&(R.isShadow=!0),R.type===te.Element&&R.tagName==="iframe"&&cf(e,()=>{let U=e.contentDocument;if(U&&b){let P=rt(U,{doc:U,mirror:i,blockClass:n,blockSelector:l,needsMask:M,maskTextClass:u,maskTextSelector:c,skipChild:!1,inlineStylesheet:p,maskInputOptions:o,maskTextFn:h,maskInputFn:f,slimDOMOptions:s,dataURLOptions:m,inlineImages:d,recordCanvas:g,preserveWhiteSpace:T,onSerialize:C,onIframeLoad:b,iframeLoadTimeout:v,onStylesheetLoad:E,stylesheetLoadTimeout:w,keepIframeSrcFn:y});P&&b(e,P)}},v),R.type===te.Element&&R.tagName==="link"&&typeof R.attributes.rel=="string"&&(R.attributes.rel==="stylesheet"||R.attributes.rel==="preload"&&typeof R.attributes.href=="string"&&la(R.attributes.href)==="css")&&ff(e,()=>{if(E){let U=rt(e,{doc:r,mirror:i,blockClass:n,blockSelector:l,needsMask:M,maskTextClass:u,maskTextSelector:c,skipChild:!1,inlineStylesheet:p,maskInputOptions:o,maskTextFn:h,maskInputFn:f,slimDOMOptions:s,dataURLOptions:m,inlineImages:d,recordCanvas:g,preserveWhiteSpace:T,onSerialize:C,onIframeLoad:b,iframeLoadTimeout:v,onStylesheetLoad:E,stylesheetLoadTimeout:w,keepIframeSrcFn:y});U&&E(e,U)}},w),R}function yf(e,t){let{mirror:r=new sr,blockClass:i="rr-block",blockSelector:n=null,maskTextClass:l="rr-mask",maskTextSelector:u=null,inlineStylesheet:c=!0,inlineImages:a=!1,recordCanvas:p=!1,maskAllInputs:o=!1,maskTextFn:h,maskInputFn:f,slimDOM:s=!1,dataURLOptions:m,preserveWhiteSpace:d,onSerialize:g,onIframeLoad:C,iframeLoadTimeout:b,onStylesheetLoad:v,stylesheetLoadTimeout:E,keepIframeSrcFn:w=()=>!1}=t,y=o===!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}:o===!1?{password:!0}:o,S=pa(s);return rt(e,{doc:e,mirror:r,blockClass:i,blockSelector:n,maskTextClass:l,maskTextSelector:u,skipChild:!1,inlineStylesheet:c,maskInputOptions:y,maskTextFn:h,maskInputFn:f,slimDOMOptions:S,dataURLOptions:m,inlineImages:a,recordCanvas:p,preserveWhiteSpace:d,onSerialize:g,onIframeLoad:C,iframeLoadTimeout:b,onStylesheetLoad:v,stylesheetLoadTimeout:E,keepIframeSrcFn:w,newlyAddedElement:!1})}var bf=/(max|min)-device-(width|height)/,Tp=new RegExp(bf.source,"g");function wf(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function vf(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function i(){return this instanceof i?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(i){var n=Object.getOwnPropertyDescriptor(e,i);Object.defineProperty(r,i,n.get?n:{enumerable:!0,get:function(){return e[i]}})}),r}var Jt={exports:{}},Ws;function Sf(){if(Ws)return Jt.exports;Ws=1;var e=String,t=function(){return{isColorSupported:!1,reset:e,bold:e,dim:e,italic:e,underline:e,inverse:e,hidden:e,strikethrough:e,black:e,red:e,green:e,yellow:e,blue:e,magenta:e,cyan:e,white:e,gray:e,bgBlack:e,bgRed:e,bgGreen:e,bgYellow:e,bgBlue:e,bgMagenta:e,bgCyan:e,bgWhite:e}};return Jt.exports=t(),Jt.exports.createColors=t,Jt.exports}var Cf={},Ef=Object.freeze(Object.defineProperty({__proto__:null,default:Cf},Symbol.toStringTag,{value:"Module"})),Se=vf(Ef),hn,zs;function Ii(){if(zs)return hn;zs=1;let e=Sf(),t=Se;class r extends Error{constructor(n,l,u,c,a,p){super(n),this.name="CssSyntaxError",this.reason=n,a&&(this.file=a),c&&(this.source=c),p&&(this.plugin=p),typeof l<"u"&&typeof u<"u"&&(typeof l=="number"?(this.line=l,this.column=u):(this.line=l.line,this.column=l.column,this.endLine=u.line,this.endColumn=u.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,r)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line<"u"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(n){if(!this.source)return"";let l=this.source;n==null&&(n=e.isColorSupported),t&&n&&(l=t(l));let u=l.split(/\r?\n/),c=Math.max(this.line-3,0),a=Math.min(this.line+2,u.length),p=String(a).length,o,h;if(n){let{bold:f,gray:s,red:m}=e.createColors(!0);o=d=>f(m(d)),h=d=>s(d)}else o=h=f=>f;return u.slice(c,a).map((f,s)=>{let m=c+1+s,d=" "+(" "+m).slice(-p)+" | ";if(m===this.line){let g=h(d.replace(/\d/g," "))+f.slice(0,this.column-1).replace(/[^\t]/g," ");return o(">")+h(d)+f+`
2
- `+g+o("^")}return" "+h(d)+f}).join(`
1
+ "use strict";(()=>{var Hc=Object.defineProperty,Gc=(e,t,r)=>t in e?Hc(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,k=(e,t,r)=>Gc(e,typeof t!="symbol"?t+"":t,r),Js,Yc=Object.defineProperty,Xc=(e,t,r)=>t in e?Yc(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Ks=(e,t,r)=>Xc(e,typeof t!="symbol"?t+"":t,r),te=(e=>(e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment",e))(te||{}),Qs={Node:["childNodes","parentNode","parentElement","textContent","ownerDocument","firstChild","lastChild","nextSibling","previousSibling"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},Zs={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},rr={},wa={},Jc=()=>!!globalThis.Zone;function Ui(e){if(rr[e])return rr[e];let t=globalThis[e],r=t.prototype,i=e in Qs?Qs[e]:void 0,n=!!(i&&i.every(c=>{var l,p;return!!((p=(l=Object.getOwnPropertyDescriptor(r,c))==null?void 0:l.get)!=null&&p.toString().includes("[native code]"))})),s=e in Zs?Zs[e]:void 0,u=!!(s&&s.every(c=>{var l;return typeof r[c]=="function"&&((l=r[c])==null?void 0:l.toString().includes("[native code]"))}));if(n&&u&&!Jc())return rr[e]=t.prototype,t.prototype;try{let c=document.createElement("iframe");c.style.display="none",document.body.appendChild(c);let l=c.contentWindow;if(!l)return t.prototype;let p=l[e].prototype;if(!p)return c.remove(),r;let a=navigator.userAgent;return a.includes("Safari")&&!a.includes("Chrome")?(c.classList.add("rr-block"),c.setAttribute("__rrwebUntaintedMutationObserver",""),wa[e]=()=>c.remove()):c.remove(),rr[e]=p}catch{return r}}var vn={};function fe(e,t,r){var i,n;let s=(i=vn[e])==null?void 0:i[r];if(s)return s.call(t);let u=Ui(e),c=(n=Object.getOwnPropertyDescriptor(u,r))==null?void 0:n.get;return c?((vn[e]||(vn[e]={}))[r]=c,c.call(t)):t[r]}var Sn={};function va(e,t,r){let i=`${e}.${String(r)}`;if(Sn[i])return Sn[i].bind(t);let s=Ui(e)[r];return typeof s!="function"?t[r]:(Sn[i]=s,s.bind(t))}function Kc(e){return fe("Node",e,"ownerDocument")}function Qc(e){return fe("Node",e,"childNodes")}function Zc(e){return fe("Node",e,"parentNode")}function ef(e){return fe("Node",e,"parentElement")}function tf(e){return fe("Node",e,"textContent")}function rf(e){return fe("Node",e,"firstChild")}function nf(e){return fe("Node",e,"lastChild")}function sf(e){return fe("Node",e,"nextSibling")}function of(e){return fe("Node",e,"previousSibling")}function af(e,t){return va("Node",e,"contains")(t)}function lf(e){return va("Node",e,"getRootNode")()}function uf(e){return!e||!("host"in e)?null:fe("ShadowRoot",e,"host")}function cf(e){return e.styleSheets}function ff(e){return!e||!("shadowRoot"in e)?null:fe("Element",e,"shadowRoot")}function df(e,t){return fe("Element",e,"querySelector")(t)}function hf(e,t){return fe("Element",e,"querySelectorAll")(t)}function pf(){return[Ui("MutationObserver").constructor,wa.MutationObserver??(()=>{})]}var Sa=Date.now;/[1-9][0-9]{12}/.test(Date.now().toString())||(Sa=()=>new Date().getTime());function mf(e,t,r){try{if(!(t in e))return()=>{};let i=e[t],n=r(i);return typeof n=="function"&&(n.prototype=n.prototype||{},Object.defineProperties(n,{__rrweb_original__:{enumerable:!1,value:i}})),e[t]=n,()=>{e[t]=i}}catch{return()=>{}}}var ie={ownerDocument:Kc,childNodes:Qc,parentNode:Zc,parentElement:ef,textContent:tf,firstChild:rf,lastChild:nf,nextSibling:sf,previousSibling:of,contains:af,getRootNode:lf,host:uf,styleSheets:cf,shadowRoot:ff,querySelector:df,querySelectorAll:hf,nowTimestamp:Sa,mutationObserverCtor:pf,patch:mf};function Ca(e){return e.nodeType===e.ELEMENT_NODE}function kt(e){let t=e&&"host"in e&&"mode"in e&&ie.host(e)||null;return!!(t&&"shadowRoot"in t&&ie.shadowRoot(t)===e)}function Ot(e){return Object.prototype.toString.call(e)==="[object ShadowRoot]"}function gf(e){return e.includes(" background-clip: text;")&&!e.includes(" -webkit-background-clip: text;")&&(e=e.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;")),e}function yf(e){let{cssText:t}=e;if(t.split('"').length<3)return t;let r=["@import",`url(${JSON.stringify(e.href)})`];return e.layerName===""?r.push("layer"):e.layerName&&r.push(`layer(${e.layerName})`),e.supportsText&&r.push(`supports(${e.supportsText})`),e.media.length&&r.push(e.media.mediaText),r.join(" ")+";"}function Ti(e){try{let t=e.rules||e.cssRules;if(!t)return null;let r=e.href;!r&&e.ownerNode&&(r=e.ownerNode.baseURI);let i=Array.from(t,n=>Ea(n,r)).join("");return gf(i)}catch{return null}}function Ea(e,t){if(wf(e)){let r;try{r=Ti(e.styleSheet)||yf(e)}catch{r=e.cssText}return e.styleSheet.href?gr(r,e.styleSheet.href):r}else{let r=e.cssText;return vf(e)&&e.selectorText.includes(":")&&(r=bf(r)),t?gr(r,t):r}}function bf(e){let t=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return e.replace(t,"$1\\$2")}function wf(e){return"styleSheet"in e}function vf(e){return"selectorText"in e}var hr=class{constructor(){Ks(this,"idNodeMap",new Map),Ks(this,"nodeMetaMap",new WeakMap)}getId(t){var r;return t?((r=this.getMeta(t))==null?void 0:r.id)??-1:-1}getNode(t){return this.idNodeMap.get(t)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(t){return this.nodeMetaMap.get(t)||null}removeNodeFromMap(t){let r=this.getId(t);this.idNodeMap.delete(r),t.childNodes&&t.childNodes.forEach(i=>this.removeNodeFromMap(i))}has(t){return this.idNodeMap.has(t)}hasNode(t){return this.nodeMetaMap.has(t)}add(t,r){let i=r.id;this.idNodeMap.set(i,t),this.nodeMetaMap.set(t,r)}replace(t,r){let i=this.getNode(t);if(i){let n=this.nodeMetaMap.get(i);n&&this.nodeMetaMap.set(r,n)}this.idNodeMap.set(t,r)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}};function Sf(){return new hr}function pr({element:e,maskInputOptions:t,tagName:r,type:i,value:n,maskInputFn:s}){let u=n||"",c=i&&Pe(i);return(t[r.toLowerCase()]||c&&t[c])&&(s?u=s(u,e):u="*".repeat(u.length)),u}function Pe(e){return e.toLowerCase()}var eo="__rrweb_original__";function Cf(e){let t=e.getContext("2d");if(!t)return!0;let r=50;for(let i=0;i<e.width;i+=r)for(let n=0;n<e.height;n+=r){let s=t.getImageData,u=eo in s?s[eo]:s;if(new Uint32Array(u.call(t,i,n,Math.min(r,e.width-i),Math.min(r,e.height-n)).data.buffer).some(l=>l!==0))return!1}return!0}function mr(e){let t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?Pe(t):null}function xa(e,t){let r;try{r=new URL(e,t??window.location.href)}catch{return null}let i=/\.([0-9a-z]+)(?:$)/i,n=r.pathname.match(i);return n?.[1]??null}function Ef(e){let t="";return e.indexOf("//")>-1?t=e.split("/").slice(0,3).join("/"):t=e.split("/")[0],t=t.split("?")[0],t}var xf=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,Rf=/^(?:[a-z+]+:)?\/\//i,Tf=/^www\..*/i,Mf=/^(data:)([^,]*),(.*)/i;function gr(e,t){return(e||"").replace(xf,(r,i,n,s,u,c)=>{let l=n||u||c,p=i||s||"";if(!l)return r;if(Rf.test(l)||Tf.test(l))return`url(${p}${l}${p})`;if(Mf.test(l))return`url(${p}${l}${p})`;if(l[0]==="/")return`url(${p}${Ef(t)+l}${p})`;let a=l.split("#")[0],h=l.substring(a.length),f=t.split("#")[0].split("/"),o=a.split("/");f.pop();for(let m of o)m!=="."&&(m===".."?f.pop():f.push(m));return`url(${p}${f.join("/")}${h}${p})`})}var Ra="(?:/\\*[^*]*\\*/)|[\\s;]",Nf=new RegExp(`${Ra}|\\b(0)px?`,"g"),kf=new RegExp(Ra,"g");function nr(e,t=!1){return t?e.replace(kf,""):e.replace(Nf,"$1")}function Of(e,t,r=!1){let i=Array.from(t.childNodes),n=[],s=0;if(i.length>1&&e&&typeof e=="string"){let u=nr(e,r),c=u.length/e.length;for(let l=1;l<i.length;l++)if(i[l].textContent&&typeof i[l].textContent=="string"){let p=nr(i[l].textContent,r),a=100,h=3;for(;h<p.length&&(p[h].match(/[a-zA-Z0-9]/)||p.indexOf(p.substring(0,h),1)!==-1);h++);for(;h<p.length;h++){let f=p.substring(0,h),o=u.split(f),m=-1;if(o.length===2)m=o[0].length;else if(o.length>2&&o[0]===""&&i[l-1].textContent!=="")m=u.indexOf(f,1);else if(o.length===1){if(f=f.substring(0,f.length-1),o=u.split(f),o.length<=1)return n.push(e),n;h=a+1}else h===p.length-1&&(m=u.indexOf(f));if(o.length>=2&&h>a){let d=i[l-1].textContent;if(d&&typeof d=="string"){let g=nr(d).length;m=u.indexOf(f,g)}m===-1&&(m=o[0].length)}if(m!==-1){let d=Math.floor(m/c);for(;d>0&&d<e.length;){if(s+=1,s>50*i.length)return n.push(e),n;let g=nr(e.substring(0,d),r);if(g.length===m){n.push(e.substring(0,d)),e=e.substring(d),u=u.substring(m);break}else g.length<m?d+=Math.max(1,Math.floor((m-g.length)/c)):d-=Math.max(1,Math.floor((g.length-m)*c))}break}}}}return n.push(e),n}function If(e,t){return Of(e,t).join("/* rr_split */")}var Af=1,Df=new RegExp("[^a-z0-9-_:]"),yr=-2;function Ta(){return Af++}function _f(e){if(e instanceof HTMLFormElement)return"form";let t=Pe(e.tagName);return Df.test(t)?"div":t}var nt,to,Lf=/^[^ \t\n\r\u000c]+/,Pf=/^[, \t\n\r\u000c]+/;function Ff(e,t){if(t.trim()==="")return t;let r=0;function i(s){let u,c=s.exec(t.substring(r));return c?(u=c[0],r+=u.length,u):""}let n=[];for(;i(Pf),!(r>=t.length);){let s=i(Lf);if(s.slice(-1)===",")s=ot(e,s.substring(0,s.length-1)),n.push(s);else{let u="";s=ot(e,s);let c=!1;for(;;){let l=t.charAt(r);if(l===""){n.push((s+u).trim());break}else if(c)l===")"&&(c=!1);else if(l===","){r+=1,n.push((s+u).trim());break}else l==="("&&(c=!0);u+=l,r+=1}}}return n.join(", ")}var ro=new WeakMap;function ot(e,t){return!t||t.trim()===""?t:Bi(e,t)}function Uf(e){return!!(e.tagName==="svg"||e.ownerSVGElement)}function Bi(e,t){let r=ro.get(e);if(r||(r=e.createElement("a"),ro.set(e,r)),!t)t="";else if(t.startsWith("blob:")||t.startsWith("data:"))return t;return r.setAttribute("href",t),r.href}function Ma(e,t,r,i){return i&&(r==="src"||r==="href"&&!(t==="use"&&i[0]==="#")||r==="xlink:href"&&i[0]!=="#"||r==="background"&&["table","td","th"].includes(t)?ot(e,i):r==="srcset"?Ff(e,i):r==="style"?gr(i,Bi(e)):t==="object"&&r==="data"?ot(e,i):i)}function Na(e,t,r){return["video","audio"].includes(e)&&Pe(t)==="autoplay"}function Bf(e,t,r){try{if(typeof t=="string"){if(e.classList.contains(t))return!0}else for(let i=e.classList.length;i--;){let n=e.classList[i];if(t.test(n))return!0}if(r)return e.matches(r)}catch{}return!1}function br(e,t,r){if(!e)return!1;if(e.nodeType!==e.ELEMENT_NODE)return r?br(ie.parentNode(e),t,r):!1;for(let i=e.classList.length;i--;){let n=e.classList[i];if(t.test(n))return!0}return r?br(ie.parentNode(e),t,r):!1}function ka(e,t,r,i){let n;if(Ca(e)){if(n=e,!ie.childNodes(n).length)return!1}else{if(ie.parentElement(e)===null)return!1;n=ie.parentElement(e)}try{if(typeof t=="string"){if(i){if(n.closest(`.${t}`))return!0}else if(n.classList.contains(t))return!0}else if(br(n,t,i))return!0;if(r){if(i){if(n.closest(r))return!0}else if(n.matches(r))return!0}}catch{}return!1}function $f(e,t,r){let i=e.contentWindow;if(!i)return;let n=!1,s;try{s=i.document.readyState}catch{return}if(s!=="complete"){let c=setTimeout(()=>{n||(t(),n=!0)},r);e.addEventListener("load",()=>{clearTimeout(c),n=!0,t()});return}let u="about:blank";if(i.location.href!==u||e.src===u||e.src==="")return setTimeout(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}function Wf(e,t,r){let i=!1,n;try{n=e.sheet}catch{return}if(n)return;let s=setTimeout(()=>{i||(t(),i=!0)},r);e.addEventListener("load",()=>{clearTimeout(s),i=!0,t()})}function zf(e,t){let{doc:r,mirror:i,blockClass:n,blockSelector:s,needsMask:u,inlineStylesheet:c,maskInputOptions:l={},maskTextFn:p,maskInputFn:a,dataURLOptions:h={},inlineImages:f,recordCanvas:o,keepIframeSrcFn:m,newlyAddedElement:d=!1,cssCaptured:g=!1}=t,C=qf(r,i);switch(e.nodeType){case e.DOCUMENT_NODE:return e.compatMode!=="CSS1Compat"?{type:te.Document,childNodes:[],compatMode:e.compatMode}:{type:te.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:te.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:C};case e.ELEMENT_NODE:return Vf(e,{doc:r,blockClass:n,blockSelector:s,inlineStylesheet:c,maskInputOptions:l,maskInputFn:a,dataURLOptions:h,inlineImages:f,recordCanvas:o,keepIframeSrcFn:m,newlyAddedElement:d,rootId:C});case e.TEXT_NODE:return jf(e,{doc:r,needsMask:u,maskTextFn:p,rootId:C,cssCaptured:g});case e.CDATA_SECTION_NODE:return{type:te.CDATA,textContent:"",rootId:C};case e.COMMENT_NODE:return{type:te.Comment,textContent:ie.textContent(e)||"",rootId:C};default:return!1}}function qf(e,t){if(!t.hasNode(e))return;let r=t.getId(e);return r===1?void 0:r}function jf(e,t){let{needsMask:r,maskTextFn:i,rootId:n,cssCaptured:s}=t,u=ie.parentNode(e),c=u&&u.tagName,l="",p=c==="STYLE"?!0:void 0,a=c==="SCRIPT"?!0:void 0;return a?l="SCRIPT_PLACEHOLDER":s||(l=ie.textContent(e),p&&l&&(l=gr(l,Bi(t.doc)))),!p&&!a&&l&&r&&(l=i?i(l,ie.parentElement(e)):l.replace(/[\S]/g,"*")),{type:te.Text,textContent:l||"",rootId:n}}function Vf(e,t){let{doc:r,blockClass:i,blockSelector:n,inlineStylesheet:s,maskInputOptions:u={},maskInputFn:c,dataURLOptions:l={},inlineImages:p,recordCanvas:a,keepIframeSrcFn:h,newlyAddedElement:f=!1,rootId:o}=t,m=Bf(e,i,n),d=_f(e),g={},C=e.attributes.length;for(let v=0;v<C;v++){let E=e.attributes[v];Na(d,E.name,E.value)||(g[E.name]=Ma(r,d,Pe(E.name),E.value))}if(d==="link"&&s){let v=Array.from(r.styleSheets).find(w=>w.href===e.href),E=null;v&&(E=Ti(v)),E&&(delete g.rel,delete g.href,g._cssText=E)}if(d==="style"&&e.sheet){let v=Ti(e.sheet);v&&(e.childNodes.length>1&&(v=If(v,e)),g._cssText=v)}if(["input","textarea","select"].includes(d)){let v=e.value,E=e.checked;g.type!=="radio"&&g.type!=="checkbox"&&g.type!=="submit"&&g.type!=="button"&&v?g.value=pr({element:e,type:mr(e),tagName:d,value:v,maskInputOptions:u,maskInputFn:c}):E&&(g.checked=E)}if(d==="option"&&(e.selected&&!u.select?g.selected=!0:delete g.selected),d==="dialog"&&e.open&&(g.rr_open_mode=e.matches("dialog:modal")?"modal":"non-modal"),d==="canvas"&&a){if(e.__context==="2d")Cf(e)||(g.rr_dataURL=e.toDataURL(l.type,l.quality));else if(!("__context"in e)){let v=e.toDataURL(l.type,l.quality),E=r.createElement("canvas");E.width=e.width,E.height=e.height;let w=E.toDataURL(l.type,l.quality);v!==w&&(g.rr_dataURL=v)}}if(d==="img"&&p){nt||(nt=r.createElement("canvas"),to=nt.getContext("2d"));let v=e,E=v.currentSrc||v.getAttribute("src")||"<unknown-src>",w=v.crossOrigin,y=()=>{v.removeEventListener("load",y);try{nt.width=v.naturalWidth,nt.height=v.naturalHeight,to.drawImage(v,0,0),g.rr_dataURL=nt.toDataURL(l.type,l.quality)}catch(S){if(v.crossOrigin!=="anonymous"){v.crossOrigin="anonymous",v.complete&&v.naturalWidth!==0?y():v.addEventListener("load",y);return}else console.warn(`Cannot inline img src=${E}! Error: ${S}`)}v.crossOrigin==="anonymous"&&(w?g.crossOrigin=w:v.removeAttribute("crossorigin"))};v.complete&&v.naturalWidth!==0?y():v.addEventListener("load",y)}if(["audio","video"].includes(d)){let v=g;v.rr_mediaState=e.paused?"paused":"played",v.rr_mediaCurrentTime=e.currentTime,v.rr_mediaPlaybackRate=e.playbackRate,v.rr_mediaMuted=e.muted,v.rr_mediaLoop=e.loop,v.rr_mediaVolume=e.volume}if(f||(e.scrollLeft&&(g.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(g.rr_scrollTop=e.scrollTop)),m){let{width:v,height:E}=e.getBoundingClientRect();g={class:g.class,rr_width:`${v}px`,rr_height:`${E}px`}}d==="iframe"&&!h(g.src)&&(e.contentDocument||(g.rr_src=g.src),delete g.src);let b;try{customElements.get(d)&&(b=!0)}catch{}return{type:te.Element,tagName:d,attributes:g,childNodes:[],isSVG:Uf(e)||void 0,needBlock:m,rootId:o,isCustom:b}}function q(e){return e==null?"":e.toLowerCase()}function Oa(e){return e===!0||e==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:e==="all",headMetaDescKeywords:e==="all",headTitleMutations:e==="all"}:e||{}}function Hf(e,t){if(t.comment&&e.type===te.Comment)return!0;if(e.type===te.Element){if(t.script&&(e.tagName==="script"||e.tagName==="link"&&(e.attributes.rel==="preload"&&e.attributes.as==="script"||e.attributes.rel==="modulepreload")||e.tagName==="link"&&e.attributes.rel==="prefetch"&&typeof e.attributes.href=="string"&&xa(e.attributes.href)==="js"))return!0;if(t.headFavicon&&(e.tagName==="link"&&e.attributes.rel==="shortcut icon"||e.tagName==="meta"&&(q(e.attributes.name).match(/^msapplication-tile(image|color)$/)||q(e.attributes.name)==="application-name"||q(e.attributes.rel)==="icon"||q(e.attributes.rel)==="apple-touch-icon"||q(e.attributes.rel)==="shortcut icon")))return!0;if(e.tagName==="meta"){if(t.headMetaDescKeywords&&q(e.attributes.name).match(/^description|keywords$/))return!0;if(t.headMetaSocial&&(q(e.attributes.property).match(/^(og|twitter|fb):/)||q(e.attributes.name).match(/^(og|twitter):/)||q(e.attributes.name)==="pinterest"))return!0;if(t.headMetaRobots&&(q(e.attributes.name)==="robots"||q(e.attributes.name)==="googlebot"||q(e.attributes.name)==="bingbot"))return!0;if(t.headMetaHttpEquiv&&e.attributes["http-equiv"]!==void 0)return!0;if(t.headMetaAuthorship&&(q(e.attributes.name)==="author"||q(e.attributes.name)==="generator"||q(e.attributes.name)==="framework"||q(e.attributes.name)==="publisher"||q(e.attributes.name)==="progid"||q(e.attributes.property).match(/^article:/)||q(e.attributes.property).match(/^product:/)))return!0;if(t.headMetaVerification&&(q(e.attributes.name)==="google-site-verification"||q(e.attributes.name)==="yandex-verification"||q(e.attributes.name)==="csrf-token"||q(e.attributes.name)==="p:domain_verify"||q(e.attributes.name)==="verify-v1"||q(e.attributes.name)==="verification"||q(e.attributes.name)==="shopify-checkout-api-token"))return!0}}return!1}function at(e,t){let{doc:r,mirror:i,blockClass:n,blockSelector:s,maskTextClass:u,maskTextSelector:c,skipChild:l=!1,inlineStylesheet:p=!0,maskInputOptions:a={},maskTextFn:h,maskInputFn:f,slimDOMOptions:o,dataURLOptions:m={},inlineImages:d=!1,recordCanvas:g=!1,onSerialize:C,onIframeLoad:b,iframeLoadTimeout:v=5e3,onStylesheetLoad:E,stylesheetLoadTimeout:w=5e3,keepIframeSrcFn:y=()=>!1,newlyAddedElement:S=!1,cssCaptured:x=!1}=t,{needsMask:M}=t,{preserveWhiteSpace:T=!0}=t;M||(M=ka(e,u,c,M===void 0));let I=zf(e,{doc:r,mirror:i,blockClass:n,blockSelector:s,needsMask:M,inlineStylesheet:p,maskInputOptions:a,maskTextFn:h,maskInputFn:f,dataURLOptions:m,inlineImages:d,recordCanvas:g,keepIframeSrcFn:y,newlyAddedElement:S,cssCaptured:x});if(!I)return console.warn(e,"not serialized"),null;let O;i.hasNode(e)?O=i.getId(e):Hf(I,o)||!T&&I.type===te.Text&&!I.textContent.replace(/^\s+|\s+$/gm,"").length?O=yr:O=Ta();let R=Object.assign(I,{id:O});if(i.add(e,R),O===yr)return null;C&&C(e);let re=!l;if(R.type===te.Element){re=re&&!R.needBlock,delete R.needBlock;let U=ie.shadowRoot(e);U&&Ot(U)&&(R.isShadowHost=!0)}if((R.type===te.Document||R.type===te.Element)&&re){o.headWhitespace&&R.type===te.Element&&R.tagName==="head"&&(T=!1);let U={doc:r,mirror:i,blockClass:n,blockSelector:s,needsMask:M,maskTextClass:u,maskTextSelector:c,skipChild:l,inlineStylesheet:p,maskInputOptions:a,maskTextFn:h,maskInputFn:f,slimDOMOptions:o,dataURLOptions:m,inlineImages:d,recordCanvas:g,preserveWhiteSpace:T,onSerialize:C,onIframeLoad:b,iframeLoadTimeout:v,onStylesheetLoad:E,stylesheetLoadTimeout:w,keepIframeSrcFn:y,cssCaptured:!1};if(!(R.type===te.Element&&R.tagName==="textarea"&&R.attributes.value!==void 0)){R.type===te.Element&&R.attributes._cssText!==void 0&&typeof R.attributes._cssText=="string"&&(U.cssCaptured=!0);for(let V of Array.from(ie.childNodes(e))){let Z=at(V,U);Z&&R.childNodes.push(Z)}}let P=null;if(Ca(e)&&(P=ie.shadowRoot(e)))for(let V of Array.from(ie.childNodes(P))){let Z=at(V,U);Z&&(Ot(P)&&(Z.isShadow=!0),R.childNodes.push(Z))}}let ne=ie.parentNode(e);return ne&&kt(ne)&&Ot(ne)&&(R.isShadow=!0),R.type===te.Element&&R.tagName==="iframe"&&$f(e,()=>{let U=e.contentDocument;if(U&&b){let P=at(U,{doc:U,mirror:i,blockClass:n,blockSelector:s,needsMask:M,maskTextClass:u,maskTextSelector:c,skipChild:!1,inlineStylesheet:p,maskInputOptions:a,maskTextFn:h,maskInputFn:f,slimDOMOptions:o,dataURLOptions:m,inlineImages:d,recordCanvas:g,preserveWhiteSpace:T,onSerialize:C,onIframeLoad:b,iframeLoadTimeout:v,onStylesheetLoad:E,stylesheetLoadTimeout:w,keepIframeSrcFn:y});P&&b(e,P)}},v),R.type===te.Element&&R.tagName==="link"&&typeof R.attributes.rel=="string"&&(R.attributes.rel==="stylesheet"||R.attributes.rel==="preload"&&typeof R.attributes.href=="string"&&xa(R.attributes.href)==="css")&&Wf(e,()=>{if(E){let U=at(e,{doc:r,mirror:i,blockClass:n,blockSelector:s,needsMask:M,maskTextClass:u,maskTextSelector:c,skipChild:!1,inlineStylesheet:p,maskInputOptions:a,maskTextFn:h,maskInputFn:f,slimDOMOptions:o,dataURLOptions:m,inlineImages:d,recordCanvas:g,preserveWhiteSpace:T,onSerialize:C,onIframeLoad:b,iframeLoadTimeout:v,onStylesheetLoad:E,stylesheetLoadTimeout:w,keepIframeSrcFn:y});U&&E(e,U)}},w),R}function Gf(e,t){let{mirror:r=new hr,blockClass:i="rr-block",blockSelector:n=null,maskTextClass:s="rr-mask",maskTextSelector:u=null,inlineStylesheet:c=!0,inlineImages:l=!1,recordCanvas:p=!1,maskAllInputs:a=!1,maskTextFn:h,maskInputFn:f,slimDOM:o=!1,dataURLOptions:m,preserveWhiteSpace:d,onSerialize:g,onIframeLoad:C,iframeLoadTimeout:b,onStylesheetLoad:v,stylesheetLoadTimeout:E,keepIframeSrcFn:w=()=>!1}=t,y=a===!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}:a===!1?{password:!0}:a,S=Oa(o);return at(e,{doc:e,mirror:r,blockClass:i,blockSelector:n,maskTextClass:s,maskTextSelector:u,skipChild:!1,inlineStylesheet:c,maskInputOptions:y,maskTextFn:h,maskInputFn:f,slimDOMOptions:S,dataURLOptions:m,inlineImages:l,recordCanvas:p,preserveWhiteSpace:d,onSerialize:g,onIframeLoad:C,iframeLoadTimeout:b,onStylesheetLoad:v,stylesheetLoadTimeout:E,keepIframeSrcFn:w,newlyAddedElement:!1})}var Yf=/(max|min)-device-(width|height)/,fm=new RegExp(Yf.source,"g");function Xf(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Jf(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function i(){return this instanceof i?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(i){var n=Object.getOwnPropertyDescriptor(e,i);Object.defineProperty(r,i,n.get?n:{enumerable:!0,get:function(){return e[i]}})}),r}var ir={exports:{}},no;function Kf(){if(no)return ir.exports;no=1;var e=String,t=function(){return{isColorSupported:!1,reset:e,bold:e,dim:e,italic:e,underline:e,inverse:e,hidden:e,strikethrough:e,black:e,red:e,green:e,yellow:e,blue:e,magenta:e,cyan:e,white:e,gray:e,bgBlack:e,bgRed:e,bgGreen:e,bgYellow:e,bgBlue:e,bgMagenta:e,bgCyan:e,bgWhite:e}};return ir.exports=t(),ir.exports.createColors=t,ir.exports}var Qf={},Zf=Object.freeze(Object.defineProperty({__proto__:null,default:Qf},Symbol.toStringTag,{value:"Module"})),xe=Jf(Zf),Cn,io;function $i(){if(io)return Cn;io=1;let e=Kf(),t=xe;class r extends Error{constructor(n,s,u,c,l,p){super(n),this.name="CssSyntaxError",this.reason=n,l&&(this.file=l),c&&(this.source=c),p&&(this.plugin=p),typeof s<"u"&&typeof u<"u"&&(typeof s=="number"?(this.line=s,this.column=u):(this.line=s.line,this.column=s.column,this.endLine=u.line,this.endColumn=u.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,r)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line<"u"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(n){if(!this.source)return"";let s=this.source;n==null&&(n=e.isColorSupported),t&&n&&(s=t(s));let u=s.split(/\r?\n/),c=Math.max(this.line-3,0),l=Math.min(this.line+2,u.length),p=String(l).length,a,h;if(n){let{bold:f,gray:o,red:m}=e.createColors(!0);a=d=>f(m(d)),h=d=>o(d)}else a=h=f=>f;return u.slice(c,l).map((f,o)=>{let m=c+1+o,d=" "+(" "+m).slice(-p)+" | ";if(m===this.line){let g=h(d.replace(/\d/g," "))+f.slice(0,this.column-1).replace(/[^\t]/g," ");return a(">")+h(d)+f+`
2
+ `+g+a("^")}return" "+h(d)+f}).join(`
3
3
  `)}toString(){let n=this.showSourceCode();return n&&(n=`
4
4
 
5
5
  `+n+`
6
- `),this.name+": "+this.message+n}}return hn=r,r.default=r,hn}var Kt={},qs;function Ai(){return qs||(qs=1,Kt.isClean=Symbol("isClean"),Kt.my=Symbol("my")),Kt}var pn,js;function ma(){if(js)return pn;js=1;let e={after:`
6
+ `),this.name+": "+this.message+n}}return Cn=r,r.default=r,Cn}var sr={},so;function Wi(){return so||(so=1,sr.isClean=Symbol("isClean"),sr.my=Symbol("my")),sr}var En,oo;function Ia(){if(oo)return En;oo=1;let e={after:`
7
7
  `,beforeClose:`
8
8
  `,beforeComment:`
9
9
  `,beforeDecl:`
10
10
  `,beforeOpen:" ",beforeRule:`
11
- `,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function t(i){return i[0].toUpperCase()+i.slice(1)}class r{constructor(n){this.builder=n}atrule(n,l){let u="@"+n.name,c=n.params?this.rawValue(n,"params"):"";if(typeof n.raws.afterName<"u"?u+=n.raws.afterName:c&&(u+=" "),n.nodes)this.block(n,u+c);else{let a=(n.raws.between||"")+(l?";":"");this.builder(u+c+a,n)}}beforeAfter(n,l){let u;n.type==="decl"?u=this.raw(n,null,"beforeDecl"):n.type==="comment"?u=this.raw(n,null,"beforeComment"):l==="before"?u=this.raw(n,null,"beforeRule"):u=this.raw(n,null,"beforeClose");let c=n.parent,a=0;for(;c&&c.type!=="root";)a+=1,c=c.parent;if(u.includes(`
12
- `)){let p=this.raw(n,null,"indent");if(p.length)for(let o=0;o<a;o++)u+=p}return u}block(n,l){let u=this.raw(n,"between","beforeOpen");this.builder(l+u+"{",n,"start");let c;n.nodes&&n.nodes.length?(this.body(n),c=this.raw(n,"after")):c=this.raw(n,"after","emptyBody"),c&&this.builder(c),this.builder("}",n,"end")}body(n){let l=n.nodes.length-1;for(;l>0&&n.nodes[l].type==="comment";)l-=1;let u=this.raw(n,"semicolon");for(let c=0;c<n.nodes.length;c++){let a=n.nodes[c],p=this.raw(a,"before");p&&this.builder(p),this.stringify(a,l!==c||u)}}comment(n){let l=this.raw(n,"left","commentLeft"),u=this.raw(n,"right","commentRight");this.builder("/*"+l+n.text+u+"*/",n)}decl(n,l){let u=this.raw(n,"between","colon"),c=n.prop+u+this.rawValue(n,"value");n.important&&(c+=n.raws.important||" !important"),l&&(c+=";"),this.builder(c,n)}document(n){this.body(n)}raw(n,l,u){let c;if(u||(u=l),l&&(c=n.raws[l],typeof c<"u"))return c;let a=n.parent;if(u==="before"&&(!a||a.type==="root"&&a.first===n||a&&a.type==="document"))return"";if(!a)return e[u];let p=n.root();if(p.rawCache||(p.rawCache={}),typeof p.rawCache[u]<"u")return p.rawCache[u];if(u==="before"||u==="after")return this.beforeAfter(n,u);{let o="raw"+t(u);this[o]?c=this[o](p,n):p.walk(h=>{if(c=h.raws[l],typeof c<"u")return!1})}return typeof c>"u"&&(c=e[u]),p.rawCache[u]=c,c}rawBeforeClose(n){let l;return n.walk(u=>{if(u.nodes&&u.nodes.length>0&&typeof u.raws.after<"u")return l=u.raws.after,l.includes(`
13
- `)&&(l=l.replace(/[^\n]+$/,"")),!1}),l&&(l=l.replace(/\S/g,"")),l}rawBeforeComment(n,l){let u;return n.walkComments(c=>{if(typeof c.raws.before<"u")return u=c.raws.before,u.includes(`
14
- `)&&(u=u.replace(/[^\n]+$/,"")),!1}),typeof u>"u"?u=this.raw(l,null,"beforeDecl"):u&&(u=u.replace(/\S/g,"")),u}rawBeforeDecl(n,l){let u;return n.walkDecls(c=>{if(typeof c.raws.before<"u")return u=c.raws.before,u.includes(`
15
- `)&&(u=u.replace(/[^\n]+$/,"")),!1}),typeof u>"u"?u=this.raw(l,null,"beforeRule"):u&&(u=u.replace(/\S/g,"")),u}rawBeforeOpen(n){let l;return n.walk(u=>{if(u.type!=="decl"&&(l=u.raws.between,typeof l<"u"))return!1}),l}rawBeforeRule(n){let l;return n.walk(u=>{if(u.nodes&&(u.parent!==n||n.first!==u)&&typeof u.raws.before<"u")return l=u.raws.before,l.includes(`
16
- `)&&(l=l.replace(/[^\n]+$/,"")),!1}),l&&(l=l.replace(/\S/g,"")),l}rawColon(n){let l;return n.walkDecls(u=>{if(typeof u.raws.between<"u")return l=u.raws.between.replace(/[^\s:]/g,""),!1}),l}rawEmptyBody(n){let l;return n.walk(u=>{if(u.nodes&&u.nodes.length===0&&(l=u.raws.after,typeof l<"u"))return!1}),l}rawIndent(n){if(n.raws.indent)return n.raws.indent;let l;return n.walk(u=>{let c=u.parent;if(c&&c!==n&&c.parent&&c.parent===n&&typeof u.raws.before<"u"){let a=u.raws.before.split(`
17
- `);return l=a[a.length-1],l=l.replace(/\S/g,""),!1}}),l}rawSemicolon(n){let l;return n.walk(u=>{if(u.nodes&&u.nodes.length&&u.last.type==="decl"&&(l=u.raws.semicolon,typeof l<"u"))return!1}),l}rawValue(n,l){let u=n[l],c=n.raws[l];return c&&c.value===u?c.raw:u}root(n){this.body(n),n.raws.after&&this.builder(n.raws.after)}rule(n){this.block(n,this.rawValue(n,"selector")),n.raws.ownSemicolon&&this.builder(n.raws.ownSemicolon,n,"end")}stringify(n,l){if(!this[n.type])throw new Error("Unknown AST node type "+n.type+". Maybe you need to change PostCSS stringifier.");this[n.type](n,l)}}return pn=r,r.default=r,pn}var mn,Vs;function pr(){if(Vs)return mn;Vs=1;let e=ma();function t(r,i){new e(i).stringify(r)}return mn=t,t.default=t,mn}var gn,Hs;function mr(){if(Hs)return gn;Hs=1;let{isClean:e,my:t}=Ai(),r=Ii(),i=ma(),n=pr();function l(c,a){let p=new c.constructor;for(let o in c){if(!Object.prototype.hasOwnProperty.call(c,o)||o==="proxyCache")continue;let h=c[o],f=typeof h;o==="parent"&&f==="object"?a&&(p[o]=a):o==="source"?p[o]=h:Array.isArray(h)?p[o]=h.map(s=>l(s,p)):(f==="object"&&h!==null&&(h=l(h)),p[o]=h)}return p}class u{constructor(a={}){this.raws={},this[e]=!1,this[t]=!0;for(let p in a)if(p==="nodes"){this.nodes=[];for(let o of a[p])typeof o.clone=="function"?this.append(o.clone()):this.append(o)}else this[p]=a[p]}addToError(a){if(a.postcssNode=this,a.stack&&this.source&&/\n\s{4}at /.test(a.stack)){let p=this.source;a.stack=a.stack.replace(/\n\s{4}at /,`$&${p.input.from}:${p.start.line}:${p.start.column}$&`)}return a}after(a){return this.parent.insertAfter(this,a),this}assign(a={}){for(let p in a)this[p]=a[p];return this}before(a){return this.parent.insertBefore(this,a),this}cleanRaws(a){delete this.raws.before,delete this.raws.after,a||delete this.raws.between}clone(a={}){let p=l(this);for(let o in a)p[o]=a[o];return p}cloneAfter(a={}){let p=this.clone(a);return this.parent.insertAfter(this,p),p}cloneBefore(a={}){let p=this.clone(a);return this.parent.insertBefore(this,p),p}error(a,p={}){if(this.source){let{end:o,start:h}=this.rangeBy(p);return this.source.input.error(a,{column:h.column,line:h.line},{column:o.column,line:o.line},p)}return new r(a)}getProxyProcessor(){return{get(a,p){return p==="proxyOf"?a:p==="root"?()=>a.root().toProxy():a[p]},set(a,p,o){return a[p]===o||(a[p]=o,(p==="prop"||p==="value"||p==="name"||p==="params"||p==="important"||p==="text")&&a.markDirty()),!0}}}markDirty(){if(this[e]){this[e]=!1;let a=this;for(;a=a.parent;)a[e]=!1}}next(){if(!this.parent)return;let a=this.parent.index(this);return this.parent.nodes[a+1]}positionBy(a,p){let o=this.source.start;if(a.index)o=this.positionInside(a.index,p);else if(a.word){p=this.toString();let h=p.indexOf(a.word);h!==-1&&(o=this.positionInside(h,p))}return o}positionInside(a,p){let o=p||this.toString(),h=this.source.start.column,f=this.source.start.line;for(let s=0;s<a;s++)o[s]===`
18
- `?(h=1,f+=1):h+=1;return{column:h,line:f}}prev(){if(!this.parent)return;let a=this.parent.index(this);return this.parent.nodes[a-1]}rangeBy(a){let p={column:this.source.start.column,line:this.source.start.line},o=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:p.column+1,line:p.line};if(a.word){let h=this.toString(),f=h.indexOf(a.word);f!==-1&&(p=this.positionInside(f,h),o=this.positionInside(f+a.word.length,h))}else a.start?p={column:a.start.column,line:a.start.line}:a.index&&(p=this.positionInside(a.index)),a.end?o={column:a.end.column,line:a.end.line}:typeof a.endIndex=="number"?o=this.positionInside(a.endIndex):a.index&&(o=this.positionInside(a.index+1));return(o.line<p.line||o.line===p.line&&o.column<=p.column)&&(o={column:p.column+1,line:p.line}),{end:o,start:p}}raw(a,p){return new i().raw(this,a,p)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...a){if(this.parent){let p=this,o=!1;for(let h of a)h===this?o=!0:o?(this.parent.insertAfter(p,h),p=h):this.parent.insertBefore(p,h);o||this.remove()}return this}root(){let a=this;for(;a.parent&&a.parent.type!=="document";)a=a.parent;return a}toJSON(a,p){let o={},h=p==null;p=p||new Map;let f=0;for(let s in this){if(!Object.prototype.hasOwnProperty.call(this,s)||s==="parent"||s==="proxyCache")continue;let m=this[s];if(Array.isArray(m))o[s]=m.map(d=>typeof d=="object"&&d.toJSON?d.toJSON(null,p):d);else if(typeof m=="object"&&m.toJSON)o[s]=m.toJSON(null,p);else if(s==="source"){let d=p.get(m.input);d==null&&(d=f,p.set(m.input,f),f++),o[s]={end:m.end,inputId:d,start:m.start}}else o[s]=m}return h&&(o.inputs=[...p.keys()].map(s=>s.toJSON())),o}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(a=n){a.stringify&&(a=a.stringify);let p="";return a(this,o=>{p+=o}),p}warn(a,p,o){let h={node:this};for(let f in o)h[f]=o[f];return a.warn(p,h)}get proxyOf(){return this}}return gn=u,u.default=u,gn}var yn,Gs;function gr(){if(Gs)return yn;Gs=1;let e=mr();class t extends e{constructor(i){i&&typeof i.value<"u"&&typeof i.value!="string"&&(i={...i,value:String(i.value)}),super(i),this.type="decl"}get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}}return yn=t,t.default=t,yn}var bn,Ys;function xf(){if(Ys)return bn;Ys=1;let e="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";return bn={nanoid:(i=21)=>{let n="",l=i;for(;l--;)n+=e[Math.random()*64|0];return n},customAlphabet:(i,n=21)=>(l=n)=>{let u="",c=l;for(;c--;)u+=i[Math.random()*i.length|0];return u}},bn}var wn,Xs;function ga(){if(Xs)return wn;Xs=1;let{SourceMapConsumer:e,SourceMapGenerator:t}=Se,{existsSync:r,readFileSync:i}=Se,{dirname:n,join:l}=Se;function u(a){return Buffer?Buffer.from(a,"base64").toString():window.atob(a)}class c{constructor(p,o){if(o.map===!1)return;this.loadAnnotation(p),this.inline=this.startWith(this.annotation,"data:");let h=o.map?o.map.prev:void 0,f=this.loadMap(o.from,h);!this.mapFile&&o.from&&(this.mapFile=o.from),this.mapFile&&(this.root=n(this.mapFile)),f&&(this.text=f)}consumer(){return this.consumerCache||(this.consumerCache=new e(this.text)),this.consumerCache}decodeInline(p){let o=/^data:application\/json;charset=utf-?8;base64,/,h=/^data:application\/json;base64,/,f=/^data:application\/json;charset=utf-?8,/,s=/^data:application\/json,/;if(f.test(p)||s.test(p))return decodeURIComponent(p.substr(RegExp.lastMatch.length));if(o.test(p)||h.test(p))return u(p.substr(RegExp.lastMatch.length));let m=p.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+m)}getAnnotationURL(p){return p.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(p){return typeof p!="object"?!1:typeof p.mappings=="string"||typeof p._mappings=="string"||Array.isArray(p.sections)}loadAnnotation(p){let o=p.match(/\/\*\s*# sourceMappingURL=/gm);if(!o)return;let h=p.lastIndexOf(o.pop()),f=p.indexOf("*/",h);h>-1&&f>-1&&(this.annotation=this.getAnnotationURL(p.substring(h,f)))}loadFile(p){if(this.root=n(p),r(p))return this.mapFile=p,i(p,"utf-8").toString().trim()}loadMap(p,o){if(o===!1)return!1;if(o){if(typeof o=="string")return o;if(typeof o=="function"){let h=o(p);if(h){let f=this.loadFile(h);if(!f)throw new Error("Unable to load previous source map: "+h.toString());return f}}else{if(o instanceof e)return t.fromSourceMap(o).toString();if(o instanceof t)return o.toString();if(this.isMap(o))return JSON.stringify(o);throw new Error("Unsupported previous source map format: "+o.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let h=this.annotation;return p&&(h=l(n(p),h)),this.loadFile(h)}}}startWith(p,o){return p?p.substr(0,o.length)===o:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}}return wn=c,c.default=c,wn}var vn,Js;function yr(){if(Js)return vn;Js=1;let{SourceMapConsumer:e,SourceMapGenerator:t}=Se,{fileURLToPath:r,pathToFileURL:i}=Se,{isAbsolute:n,resolve:l}=Se,{nanoid:u}=xf(),c=Se,a=Ii(),p=ga(),o=Symbol("fromOffsetCache"),h=!!(e&&t),f=!!(l&&n);class s{constructor(d,g={}){if(d===null||typeof d>"u"||typeof d=="object"&&!d.toString)throw new Error(`PostCSS received ${d} instead of CSS string`);if(this.css=d.toString(),this.css[0]==="\uFEFF"||this.css[0]==="\uFFFE"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,g.from&&(!f||/^\w+:\/\//.test(g.from)||n(g.from)?this.file=g.from:this.file=l(g.from)),f&&h){let C=new p(this.css,g);if(C.text){this.map=C;let b=C.consumer().file;!this.file&&b&&(this.file=this.mapResolve(b))}}this.file||(this.id="<input css "+u(6)+">"),this.map&&(this.map.file=this.from)}error(d,g,C,b={}){let v,E,w;if(g&&typeof g=="object"){let S=g,x=C;if(typeof S.offset=="number"){let M=this.fromOffset(S.offset);g=M.line,C=M.col}else g=S.line,C=S.column;if(typeof x.offset=="number"){let M=this.fromOffset(x.offset);E=M.line,w=M.col}else E=x.line,w=x.column}else if(!C){let S=this.fromOffset(g);g=S.line,C=S.col}let y=this.origin(g,C,E,w);return y?v=new a(d,y.endLine===void 0?y.line:{column:y.column,line:y.line},y.endLine===void 0?y.column:{column:y.endColumn,line:y.endLine},y.source,y.file,b.plugin):v=new a(d,E===void 0?g:{column:C,line:g},E===void 0?C:{column:w,line:E},this.css,this.file,b.plugin),v.input={column:C,endColumn:w,endLine:E,line:g,source:this.css},this.file&&(i&&(v.input.url=i(this.file).toString()),v.input.file=this.file),v}fromOffset(d){let g,C;if(this[o])C=this[o];else{let v=this.css.split(`
19
- `);C=new Array(v.length);let E=0;for(let w=0,y=v.length;w<y;w++)C[w]=E,E+=v[w].length+1;this[o]=C}g=C[C.length-1];let b=0;if(d>=g)b=C.length-1;else{let v=C.length-2,E;for(;b<v;)if(E=b+(v-b>>1),d<C[E])v=E-1;else if(d>=C[E+1])b=E+1;else{b=E;break}}return{col:d-C[b]+1,line:b+1}}mapResolve(d){return/^\w+:\/\//.test(d)?d:l(this.map.consumer().sourceRoot||this.map.root||".",d)}origin(d,g,C,b){if(!this.map)return!1;let v=this.map.consumer(),E=v.originalPositionFor({column:g,line:d});if(!E.source)return!1;let w;typeof C=="number"&&(w=v.originalPositionFor({column:b,line:C}));let y;n(E.source)?y=i(E.source):y=new URL(E.source,this.map.consumer().sourceRoot||i(this.map.mapFile));let S={column:E.column,endColumn:w&&w.column,endLine:w&&w.line,line:E.line,url:y.toString()};if(y.protocol==="file:")if(r)S.file=r(y);else throw new Error("file: protocol is not available in this PostCSS build");let x=v.sourceContentFor(E.source);return x&&(S.source=x),S}toJSON(){let d={};for(let g of["hasBOM","css","file","id"])this[g]!=null&&(d[g]=this[g]);return this.map&&(d.map={...this.map},d.map.consumerCache&&(d.map.consumerCache=void 0)),d}get from(){return this.file||this.id}}return vn=s,s.default=s,c&&c.registerInput&&c.registerInput(s),vn}var Sn,Ks;function ya(){if(Ks)return Sn;Ks=1;let{SourceMapConsumer:e,SourceMapGenerator:t}=Se,{dirname:r,relative:i,resolve:n,sep:l}=Se,{pathToFileURL:u}=Se,c=yr(),a=!!(e&&t),p=!!(r&&n&&i&&l);class o{constructor(f,s,m,d){this.stringify=f,this.mapOpts=m.map||{},this.root=s,this.opts=m,this.css=d,this.originalCSS=d,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let f;this.isInline()?f="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?f=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?f=this.mapOpts.annotation(this.opts.to,this.root):f=this.outputFile()+".map";let s=`
11
+ `,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function t(i){return i[0].toUpperCase()+i.slice(1)}class r{constructor(n){this.builder=n}atrule(n,s){let u="@"+n.name,c=n.params?this.rawValue(n,"params"):"";if(typeof n.raws.afterName<"u"?u+=n.raws.afterName:c&&(u+=" "),n.nodes)this.block(n,u+c);else{let l=(n.raws.between||"")+(s?";":"");this.builder(u+c+l,n)}}beforeAfter(n,s){let u;n.type==="decl"?u=this.raw(n,null,"beforeDecl"):n.type==="comment"?u=this.raw(n,null,"beforeComment"):s==="before"?u=this.raw(n,null,"beforeRule"):u=this.raw(n,null,"beforeClose");let c=n.parent,l=0;for(;c&&c.type!=="root";)l+=1,c=c.parent;if(u.includes(`
12
+ `)){let p=this.raw(n,null,"indent");if(p.length)for(let a=0;a<l;a++)u+=p}return u}block(n,s){let u=this.raw(n,"between","beforeOpen");this.builder(s+u+"{",n,"start");let c;n.nodes&&n.nodes.length?(this.body(n),c=this.raw(n,"after")):c=this.raw(n,"after","emptyBody"),c&&this.builder(c),this.builder("}",n,"end")}body(n){let s=n.nodes.length-1;for(;s>0&&n.nodes[s].type==="comment";)s-=1;let u=this.raw(n,"semicolon");for(let c=0;c<n.nodes.length;c++){let l=n.nodes[c],p=this.raw(l,"before");p&&this.builder(p),this.stringify(l,s!==c||u)}}comment(n){let s=this.raw(n,"left","commentLeft"),u=this.raw(n,"right","commentRight");this.builder("/*"+s+n.text+u+"*/",n)}decl(n,s){let u=this.raw(n,"between","colon"),c=n.prop+u+this.rawValue(n,"value");n.important&&(c+=n.raws.important||" !important"),s&&(c+=";"),this.builder(c,n)}document(n){this.body(n)}raw(n,s,u){let c;if(u||(u=s),s&&(c=n.raws[s],typeof c<"u"))return c;let l=n.parent;if(u==="before"&&(!l||l.type==="root"&&l.first===n||l&&l.type==="document"))return"";if(!l)return e[u];let p=n.root();if(p.rawCache||(p.rawCache={}),typeof p.rawCache[u]<"u")return p.rawCache[u];if(u==="before"||u==="after")return this.beforeAfter(n,u);{let a="raw"+t(u);this[a]?c=this[a](p,n):p.walk(h=>{if(c=h.raws[s],typeof c<"u")return!1})}return typeof c>"u"&&(c=e[u]),p.rawCache[u]=c,c}rawBeforeClose(n){let s;return n.walk(u=>{if(u.nodes&&u.nodes.length>0&&typeof u.raws.after<"u")return s=u.raws.after,s.includes(`
13
+ `)&&(s=s.replace(/[^\n]+$/,"")),!1}),s&&(s=s.replace(/\S/g,"")),s}rawBeforeComment(n,s){let u;return n.walkComments(c=>{if(typeof c.raws.before<"u")return u=c.raws.before,u.includes(`
14
+ `)&&(u=u.replace(/[^\n]+$/,"")),!1}),typeof u>"u"?u=this.raw(s,null,"beforeDecl"):u&&(u=u.replace(/\S/g,"")),u}rawBeforeDecl(n,s){let u;return n.walkDecls(c=>{if(typeof c.raws.before<"u")return u=c.raws.before,u.includes(`
15
+ `)&&(u=u.replace(/[^\n]+$/,"")),!1}),typeof u>"u"?u=this.raw(s,null,"beforeRule"):u&&(u=u.replace(/\S/g,"")),u}rawBeforeOpen(n){let s;return n.walk(u=>{if(u.type!=="decl"&&(s=u.raws.between,typeof s<"u"))return!1}),s}rawBeforeRule(n){let s;return n.walk(u=>{if(u.nodes&&(u.parent!==n||n.first!==u)&&typeof u.raws.before<"u")return s=u.raws.before,s.includes(`
16
+ `)&&(s=s.replace(/[^\n]+$/,"")),!1}),s&&(s=s.replace(/\S/g,"")),s}rawColon(n){let s;return n.walkDecls(u=>{if(typeof u.raws.between<"u")return s=u.raws.between.replace(/[^\s:]/g,""),!1}),s}rawEmptyBody(n){let s;return n.walk(u=>{if(u.nodes&&u.nodes.length===0&&(s=u.raws.after,typeof s<"u"))return!1}),s}rawIndent(n){if(n.raws.indent)return n.raws.indent;let s;return n.walk(u=>{let c=u.parent;if(c&&c!==n&&c.parent&&c.parent===n&&typeof u.raws.before<"u"){let l=u.raws.before.split(`
17
+ `);return s=l[l.length-1],s=s.replace(/\S/g,""),!1}}),s}rawSemicolon(n){let s;return n.walk(u=>{if(u.nodes&&u.nodes.length&&u.last.type==="decl"&&(s=u.raws.semicolon,typeof s<"u"))return!1}),s}rawValue(n,s){let u=n[s],c=n.raws[s];return c&&c.value===u?c.raw:u}root(n){this.body(n),n.raws.after&&this.builder(n.raws.after)}rule(n){this.block(n,this.rawValue(n,"selector")),n.raws.ownSemicolon&&this.builder(n.raws.ownSemicolon,n,"end")}stringify(n,s){if(!this[n.type])throw new Error("Unknown AST node type "+n.type+". Maybe you need to change PostCSS stringifier.");this[n.type](n,s)}}return En=r,r.default=r,En}var xn,ao;function Cr(){if(ao)return xn;ao=1;let e=Ia();function t(r,i){new e(i).stringify(r)}return xn=t,t.default=t,xn}var Rn,lo;function Er(){if(lo)return Rn;lo=1;let{isClean:e,my:t}=Wi(),r=$i(),i=Ia(),n=Cr();function s(c,l){let p=new c.constructor;for(let a in c){if(!Object.prototype.hasOwnProperty.call(c,a)||a==="proxyCache")continue;let h=c[a],f=typeof h;a==="parent"&&f==="object"?l&&(p[a]=l):a==="source"?p[a]=h:Array.isArray(h)?p[a]=h.map(o=>s(o,p)):(f==="object"&&h!==null&&(h=s(h)),p[a]=h)}return p}class u{constructor(l={}){this.raws={},this[e]=!1,this[t]=!0;for(let p in l)if(p==="nodes"){this.nodes=[];for(let a of l[p])typeof a.clone=="function"?this.append(a.clone()):this.append(a)}else this[p]=l[p]}addToError(l){if(l.postcssNode=this,l.stack&&this.source&&/\n\s{4}at /.test(l.stack)){let p=this.source;l.stack=l.stack.replace(/\n\s{4}at /,`$&${p.input.from}:${p.start.line}:${p.start.column}$&`)}return l}after(l){return this.parent.insertAfter(this,l),this}assign(l={}){for(let p in l)this[p]=l[p];return this}before(l){return this.parent.insertBefore(this,l),this}cleanRaws(l){delete this.raws.before,delete this.raws.after,l||delete this.raws.between}clone(l={}){let p=s(this);for(let a in l)p[a]=l[a];return p}cloneAfter(l={}){let p=this.clone(l);return this.parent.insertAfter(this,p),p}cloneBefore(l={}){let p=this.clone(l);return this.parent.insertBefore(this,p),p}error(l,p={}){if(this.source){let{end:a,start:h}=this.rangeBy(p);return this.source.input.error(l,{column:h.column,line:h.line},{column:a.column,line:a.line},p)}return new r(l)}getProxyProcessor(){return{get(l,p){return p==="proxyOf"?l:p==="root"?()=>l.root().toProxy():l[p]},set(l,p,a){return l[p]===a||(l[p]=a,(p==="prop"||p==="value"||p==="name"||p==="params"||p==="important"||p==="text")&&l.markDirty()),!0}}}markDirty(){if(this[e]){this[e]=!1;let l=this;for(;l=l.parent;)l[e]=!1}}next(){if(!this.parent)return;let l=this.parent.index(this);return this.parent.nodes[l+1]}positionBy(l,p){let a=this.source.start;if(l.index)a=this.positionInside(l.index,p);else if(l.word){p=this.toString();let h=p.indexOf(l.word);h!==-1&&(a=this.positionInside(h,p))}return a}positionInside(l,p){let a=p||this.toString(),h=this.source.start.column,f=this.source.start.line;for(let o=0;o<l;o++)a[o]===`
18
+ `?(h=1,f+=1):h+=1;return{column:h,line:f}}prev(){if(!this.parent)return;let l=this.parent.index(this);return this.parent.nodes[l-1]}rangeBy(l){let p={column:this.source.start.column,line:this.source.start.line},a=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:p.column+1,line:p.line};if(l.word){let h=this.toString(),f=h.indexOf(l.word);f!==-1&&(p=this.positionInside(f,h),a=this.positionInside(f+l.word.length,h))}else l.start?p={column:l.start.column,line:l.start.line}:l.index&&(p=this.positionInside(l.index)),l.end?a={column:l.end.column,line:l.end.line}:typeof l.endIndex=="number"?a=this.positionInside(l.endIndex):l.index&&(a=this.positionInside(l.index+1));return(a.line<p.line||a.line===p.line&&a.column<=p.column)&&(a={column:p.column+1,line:p.line}),{end:a,start:p}}raw(l,p){return new i().raw(this,l,p)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...l){if(this.parent){let p=this,a=!1;for(let h of l)h===this?a=!0:a?(this.parent.insertAfter(p,h),p=h):this.parent.insertBefore(p,h);a||this.remove()}return this}root(){let l=this;for(;l.parent&&l.parent.type!=="document";)l=l.parent;return l}toJSON(l,p){let a={},h=p==null;p=p||new Map;let f=0;for(let o in this){if(!Object.prototype.hasOwnProperty.call(this,o)||o==="parent"||o==="proxyCache")continue;let m=this[o];if(Array.isArray(m))a[o]=m.map(d=>typeof d=="object"&&d.toJSON?d.toJSON(null,p):d);else if(typeof m=="object"&&m.toJSON)a[o]=m.toJSON(null,p);else if(o==="source"){let d=p.get(m.input);d==null&&(d=f,p.set(m.input,f),f++),a[o]={end:m.end,inputId:d,start:m.start}}else a[o]=m}return h&&(a.inputs=[...p.keys()].map(o=>o.toJSON())),a}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(l=n){l.stringify&&(l=l.stringify);let p="";return l(this,a=>{p+=a}),p}warn(l,p,a){let h={node:this};for(let f in a)h[f]=a[f];return l.warn(p,h)}get proxyOf(){return this}}return Rn=u,u.default=u,Rn}var Tn,uo;function xr(){if(uo)return Tn;uo=1;let e=Er();class t extends e{constructor(i){i&&typeof i.value<"u"&&typeof i.value!="string"&&(i={...i,value:String(i.value)}),super(i),this.type="decl"}get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}}return Tn=t,t.default=t,Tn}var Mn,co;function ed(){if(co)return Mn;co=1;let e="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";return Mn={nanoid:(i=21)=>{let n="",s=i;for(;s--;)n+=e[Math.random()*64|0];return n},customAlphabet:(i,n=21)=>(s=n)=>{let u="",c=s;for(;c--;)u+=i[Math.random()*i.length|0];return u}},Mn}var Nn,fo;function Aa(){if(fo)return Nn;fo=1;let{SourceMapConsumer:e,SourceMapGenerator:t}=xe,{existsSync:r,readFileSync:i}=xe,{dirname:n,join:s}=xe;function u(l){return Buffer?Buffer.from(l,"base64").toString():window.atob(l)}class c{constructor(p,a){if(a.map===!1)return;this.loadAnnotation(p),this.inline=this.startWith(this.annotation,"data:");let h=a.map?a.map.prev:void 0,f=this.loadMap(a.from,h);!this.mapFile&&a.from&&(this.mapFile=a.from),this.mapFile&&(this.root=n(this.mapFile)),f&&(this.text=f)}consumer(){return this.consumerCache||(this.consumerCache=new e(this.text)),this.consumerCache}decodeInline(p){let a=/^data:application\/json;charset=utf-?8;base64,/,h=/^data:application\/json;base64,/,f=/^data:application\/json;charset=utf-?8,/,o=/^data:application\/json,/;if(f.test(p)||o.test(p))return decodeURIComponent(p.substr(RegExp.lastMatch.length));if(a.test(p)||h.test(p))return u(p.substr(RegExp.lastMatch.length));let m=p.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+m)}getAnnotationURL(p){return p.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(p){return typeof p!="object"?!1:typeof p.mappings=="string"||typeof p._mappings=="string"||Array.isArray(p.sections)}loadAnnotation(p){let a=p.match(/\/\*\s*# sourceMappingURL=/gm);if(!a)return;let h=p.lastIndexOf(a.pop()),f=p.indexOf("*/",h);h>-1&&f>-1&&(this.annotation=this.getAnnotationURL(p.substring(h,f)))}loadFile(p){if(this.root=n(p),r(p))return this.mapFile=p,i(p,"utf-8").toString().trim()}loadMap(p,a){if(a===!1)return!1;if(a){if(typeof a=="string")return a;if(typeof a=="function"){let h=a(p);if(h){let f=this.loadFile(h);if(!f)throw new Error("Unable to load previous source map: "+h.toString());return f}}else{if(a instanceof e)return t.fromSourceMap(a).toString();if(a instanceof t)return a.toString();if(this.isMap(a))return JSON.stringify(a);throw new Error("Unsupported previous source map format: "+a.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let h=this.annotation;return p&&(h=s(n(p),h)),this.loadFile(h)}}}startWith(p,a){return p?p.substr(0,a.length)===a:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}}return Nn=c,c.default=c,Nn}var kn,ho;function Rr(){if(ho)return kn;ho=1;let{SourceMapConsumer:e,SourceMapGenerator:t}=xe,{fileURLToPath:r,pathToFileURL:i}=xe,{isAbsolute:n,resolve:s}=xe,{nanoid:u}=ed(),c=xe,l=$i(),p=Aa(),a=Symbol("fromOffsetCache"),h=!!(e&&t),f=!!(s&&n);class o{constructor(d,g={}){if(d===null||typeof d>"u"||typeof d=="object"&&!d.toString)throw new Error(`PostCSS received ${d} instead of CSS string`);if(this.css=d.toString(),this.css[0]==="\uFEFF"||this.css[0]==="\uFFFE"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,g.from&&(!f||/^\w+:\/\//.test(g.from)||n(g.from)?this.file=g.from:this.file=s(g.from)),f&&h){let C=new p(this.css,g);if(C.text){this.map=C;let b=C.consumer().file;!this.file&&b&&(this.file=this.mapResolve(b))}}this.file||(this.id="<input css "+u(6)+">"),this.map&&(this.map.file=this.from)}error(d,g,C,b={}){let v,E,w;if(g&&typeof g=="object"){let S=g,x=C;if(typeof S.offset=="number"){let M=this.fromOffset(S.offset);g=M.line,C=M.col}else g=S.line,C=S.column;if(typeof x.offset=="number"){let M=this.fromOffset(x.offset);E=M.line,w=M.col}else E=x.line,w=x.column}else if(!C){let S=this.fromOffset(g);g=S.line,C=S.col}let y=this.origin(g,C,E,w);return y?v=new l(d,y.endLine===void 0?y.line:{column:y.column,line:y.line},y.endLine===void 0?y.column:{column:y.endColumn,line:y.endLine},y.source,y.file,b.plugin):v=new l(d,E===void 0?g:{column:C,line:g},E===void 0?C:{column:w,line:E},this.css,this.file,b.plugin),v.input={column:C,endColumn:w,endLine:E,line:g,source:this.css},this.file&&(i&&(v.input.url=i(this.file).toString()),v.input.file=this.file),v}fromOffset(d){let g,C;if(this[a])C=this[a];else{let v=this.css.split(`
19
+ `);C=new Array(v.length);let E=0;for(let w=0,y=v.length;w<y;w++)C[w]=E,E+=v[w].length+1;this[a]=C}g=C[C.length-1];let b=0;if(d>=g)b=C.length-1;else{let v=C.length-2,E;for(;b<v;)if(E=b+(v-b>>1),d<C[E])v=E-1;else if(d>=C[E+1])b=E+1;else{b=E;break}}return{col:d-C[b]+1,line:b+1}}mapResolve(d){return/^\w+:\/\//.test(d)?d:s(this.map.consumer().sourceRoot||this.map.root||".",d)}origin(d,g,C,b){if(!this.map)return!1;let v=this.map.consumer(),E=v.originalPositionFor({column:g,line:d});if(!E.source)return!1;let w;typeof C=="number"&&(w=v.originalPositionFor({column:b,line:C}));let y;n(E.source)?y=i(E.source):y=new URL(E.source,this.map.consumer().sourceRoot||i(this.map.mapFile));let S={column:E.column,endColumn:w&&w.column,endLine:w&&w.line,line:E.line,url:y.toString()};if(y.protocol==="file:")if(r)S.file=r(y);else throw new Error("file: protocol is not available in this PostCSS build");let x=v.sourceContentFor(E.source);return x&&(S.source=x),S}toJSON(){let d={};for(let g of["hasBOM","css","file","id"])this[g]!=null&&(d[g]=this[g]);return this.map&&(d.map={...this.map},d.map.consumerCache&&(d.map.consumerCache=void 0)),d}get from(){return this.file||this.id}}return kn=o,o.default=o,c&&c.registerInput&&c.registerInput(o),kn}var On,po;function Da(){if(po)return On;po=1;let{SourceMapConsumer:e,SourceMapGenerator:t}=xe,{dirname:r,relative:i,resolve:n,sep:s}=xe,{pathToFileURL:u}=xe,c=Rr(),l=!!(e&&t),p=!!(r&&n&&i&&s);class a{constructor(f,o,m,d){this.stringify=f,this.mapOpts=m.map||{},this.root=o,this.opts=m,this.css=d,this.originalCSS=d,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let f;this.isInline()?f="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?f=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?f=this.mapOpts.annotation(this.opts.to,this.root):f=this.outputFile()+".map";let o=`
20
20
  `;this.css.includes(`\r
21
- `)&&(s=`\r
22
- `),this.css+=s+"/*# sourceMappingURL="+f+" */"}applyPrevMaps(){for(let f of this.previous()){let s=this.toUrl(this.path(f.file)),m=f.root||r(f.file),d;this.mapOpts.sourcesContent===!1?(d=new e(f.text),d.sourcesContent&&(d.sourcesContent=null)):d=f.consumer(),this.map.applySourceMap(d,s,this.toUrl(this.path(m)))}}clearAnnotation(){if(this.mapOpts.annotation!==!1)if(this.root){let f;for(let s=this.root.nodes.length-1;s>=0;s--)f=this.root.nodes[s],f.type==="comment"&&f.text.indexOf("# sourceMappingURL=")===0&&this.root.removeChild(s)}else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),p&&a&&this.isMap())return this.generateMap();{let f="";return this.stringify(this.root,s=>{f+=s}),[f]}}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let f=this.previous()[0].consumer();f.file=this.outputFile(),this.map=t.fromSourceMap(f,{ignoreInvalidMapping:!0})}else this.map=new t({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 t({file:this.outputFile(),ignoreInvalidMapping:!0});let f=1,s=1,m="<no source>",d={generated:{column:0,line:0},original:{column:0,line:0},source:""},g,C;this.stringify(this.root,(b,v,E)=>{if(this.css+=b,v&&E!=="end"&&(d.generated.line=f,d.generated.column=s-1,v.source&&v.source.start?(d.source=this.sourcePath(v),d.original.line=v.source.start.line,d.original.column=v.source.start.column-1,this.map.addMapping(d)):(d.source=m,d.original.line=1,d.original.column=0,this.map.addMapping(d))),g=b.match(/\n/g),g?(f+=g.length,C=b.lastIndexOf(`
23
- `),s=b.length-C):s+=b.length,v&&E!=="start"){let w=v.parent||{raws:{}};(!(v.type==="decl"||v.type==="atrule"&&!v.nodes)||v!==w.last||w.raws.semicolon)&&(v.source&&v.source.end?(d.source=this.sourcePath(v),d.original.line=v.source.end.line,d.original.column=v.source.end.column-1,d.generated.line=f,d.generated.column=s-2,this.map.addMapping(d)):(d.source=m,d.original.line=1,d.original.column=0,d.generated.line=f,d.generated.column=s-1,this.map.addMapping(d)))}})}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation<"u"?this.mapOpts.annotation:this.previous().length?this.previous().some(f=>f.annotation):!0}isInline(){if(typeof this.mapOpts.inline<"u")return this.mapOpts.inline;let f=this.mapOpts.annotation;return typeof f<"u"&&f!==!0?!1:this.previous().length?this.previous().some(s=>s.inline):!0}isMap(){return typeof this.opts.map<"u"?!!this.opts.map:this.previous().length>0}isSourcesContent(){return typeof this.mapOpts.sourcesContent<"u"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(f=>f.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(f){if(this.mapOpts.absolute||f.charCodeAt(0)===60||/^\w+:\/\//.test(f))return f;let s=this.memoizedPaths.get(f);if(s)return s;let m=this.opts.to?r(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(m=r(n(m,this.mapOpts.annotation)));let d=i(m,f);return this.memoizedPaths.set(f,d),d}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(f=>{if(f.source&&f.source.input.map){let s=f.source.input.map;this.previousMaps.includes(s)||this.previousMaps.push(s)}});else{let f=new c(this.originalCSS,this.opts);f.map&&this.previousMaps.push(f.map)}return this.previousMaps}setSourcesContent(){let f={};if(this.root)this.root.walk(s=>{if(s.source){let m=s.source.input.from;if(m&&!f[m]){f[m]=!0;let d=this.usesFileUrls?this.toFileUrl(m):this.toUrl(this.path(m));this.map.setSourceContent(d,s.source.input.css)}}});else if(this.css){let s=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(s,this.css)}}sourcePath(f){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(f.source.input.from):this.toUrl(this.path(f.source.input.from))}toBase64(f){return Buffer?Buffer.from(f).toString("base64"):window.btoa(unescape(encodeURIComponent(f)))}toFileUrl(f){let s=this.memoizedFileURLs.get(f);if(s)return s;if(u){let m=u(f).toString();return this.memoizedFileURLs.set(f,m),m}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(f){let s=this.memoizedURLs.get(f);if(s)return s;l==="\\"&&(f=f.replace(/\\/g,"/"));let m=encodeURI(f).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(f,m),m}}return Sn=o,Sn}var Cn,Qs;function br(){if(Qs)return Cn;Qs=1;let e=mr();class t extends e{constructor(i){super(i),this.type="comment"}}return Cn=t,t.default=t,Cn}var En,Zs;function ze(){if(Zs)return En;Zs=1;let{isClean:e,my:t}=Ai(),r=gr(),i=br(),n=mr(),l,u,c,a;function p(f){return f.map(s=>(s.nodes&&(s.nodes=p(s.nodes)),delete s.source,s))}function o(f){if(f[e]=!1,f.proxyOf.nodes)for(let s of f.proxyOf.nodes)o(s)}class h extends n{append(...s){for(let m of s){let d=this.normalize(m,this.last);for(let g of d)this.proxyOf.nodes.push(g)}return this.markDirty(),this}cleanRaws(s){if(super.cleanRaws(s),this.nodes)for(let m of this.nodes)m.cleanRaws(s)}each(s){if(!this.proxyOf.nodes)return;let m=this.getIterator(),d,g;for(;this.indexes[m]<this.proxyOf.nodes.length&&(d=this.indexes[m],g=s(this.proxyOf.nodes[d],d),g!==!1);)this.indexes[m]+=1;return delete this.indexes[m],g}every(s){return this.nodes.every(s)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let s=this.lastEach;return this.indexes[s]=0,s}getProxyProcessor(){return{get(s,m){return m==="proxyOf"?s:s[m]?m==="each"||typeof m=="string"&&m.startsWith("walk")?(...d)=>s[m](...d.map(g=>typeof g=="function"?(C,b)=>g(C.toProxy(),b):g)):m==="every"||m==="some"?d=>s[m]((g,...C)=>d(g.toProxy(),...C)):m==="root"?()=>s.root().toProxy():m==="nodes"?s.nodes.map(d=>d.toProxy()):m==="first"||m==="last"?s[m].toProxy():s[m]:s[m]},set(s,m,d){return s[m]===d||(s[m]=d,(m==="name"||m==="params"||m==="selector")&&s.markDirty()),!0}}}index(s){return typeof s=="number"?s:(s.proxyOf&&(s=s.proxyOf),this.proxyOf.nodes.indexOf(s))}insertAfter(s,m){let d=this.index(s),g=this.normalize(m,this.proxyOf.nodes[d]).reverse();d=this.index(s);for(let b of g)this.proxyOf.nodes.splice(d+1,0,b);let C;for(let b in this.indexes)C=this.indexes[b],d<C&&(this.indexes[b]=C+g.length);return this.markDirty(),this}insertBefore(s,m){let d=this.index(s),g=d===0?"prepend":!1,C=this.normalize(m,this.proxyOf.nodes[d],g).reverse();d=this.index(s);for(let v of C)this.proxyOf.nodes.splice(d,0,v);let b;for(let v in this.indexes)b=this.indexes[v],d<=b&&(this.indexes[v]=b+C.length);return this.markDirty(),this}normalize(s,m){if(typeof s=="string")s=p(l(s).nodes);else if(typeof s>"u")s=[];else if(Array.isArray(s)){s=s.slice(0);for(let g of s)g.parent&&g.parent.removeChild(g,"ignore")}else if(s.type==="root"&&this.type!=="document"){s=s.nodes.slice(0);for(let g of s)g.parent&&g.parent.removeChild(g,"ignore")}else if(s.type)s=[s];else if(s.prop){if(typeof s.value>"u")throw new Error("Value field is missed in node creation");typeof s.value!="string"&&(s.value=String(s.value)),s=[new r(s)]}else if(s.selector)s=[new u(s)];else if(s.name)s=[new c(s)];else if(s.text)s=[new i(s)];else throw new Error("Unknown node type in node creation");return s.map(g=>(g[t]||h.rebuild(g),g=g.proxyOf,g.parent&&g.parent.removeChild(g),g[e]&&o(g),typeof g.raws.before>"u"&&m&&typeof m.raws.before<"u"&&(g.raws.before=m.raws.before.replace(/\S/g,"")),g.parent=this.proxyOf,g))}prepend(...s){s=s.reverse();for(let m of s){let d=this.normalize(m,this.first,"prepend").reverse();for(let g of d)this.proxyOf.nodes.unshift(g);for(let g in this.indexes)this.indexes[g]=this.indexes[g]+d.length}return this.markDirty(),this}push(s){return s.parent=this,this.proxyOf.nodes.push(s),this}removeAll(){for(let s of this.proxyOf.nodes)s.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(s){s=this.index(s),this.proxyOf.nodes[s].parent=void 0,this.proxyOf.nodes.splice(s,1);let m;for(let d in this.indexes)m=this.indexes[d],m>=s&&(this.indexes[d]=m-1);return this.markDirty(),this}replaceValues(s,m,d){return d||(d=m,m={}),this.walkDecls(g=>{m.props&&!m.props.includes(g.prop)||m.fast&&!g.value.includes(m.fast)||(g.value=g.value.replace(s,d))}),this.markDirty(),this}some(s){return this.nodes.some(s)}walk(s){return this.each((m,d)=>{let g;try{g=s(m,d)}catch(C){throw m.addToError(C)}return g!==!1&&m.walk&&(g=m.walk(s)),g})}walkAtRules(s,m){return m?s instanceof RegExp?this.walk((d,g)=>{if(d.type==="atrule"&&s.test(d.name))return m(d,g)}):this.walk((d,g)=>{if(d.type==="atrule"&&d.name===s)return m(d,g)}):(m=s,this.walk((d,g)=>{if(d.type==="atrule")return m(d,g)}))}walkComments(s){return this.walk((m,d)=>{if(m.type==="comment")return s(m,d)})}walkDecls(s,m){return m?s instanceof RegExp?this.walk((d,g)=>{if(d.type==="decl"&&s.test(d.prop))return m(d,g)}):this.walk((d,g)=>{if(d.type==="decl"&&d.prop===s)return m(d,g)}):(m=s,this.walk((d,g)=>{if(d.type==="decl")return m(d,g)}))}walkRules(s,m){return m?s instanceof RegExp?this.walk((d,g)=>{if(d.type==="rule"&&s.test(d.selector))return m(d,g)}):this.walk((d,g)=>{if(d.type==="rule"&&d.selector===s)return m(d,g)}):(m=s,this.walk((d,g)=>{if(d.type==="rule")return m(d,g)}))}get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}}return h.registerParse=f=>{l=f},h.registerRule=f=>{u=f},h.registerAtRule=f=>{c=f},h.registerRoot=f=>{a=f},En=h,h.default=h,h.rebuild=f=>{f.type==="atrule"?Object.setPrototypeOf(f,c.prototype):f.type==="rule"?Object.setPrototypeOf(f,u.prototype):f.type==="decl"?Object.setPrototypeOf(f,r.prototype):f.type==="comment"?Object.setPrototypeOf(f,i.prototype):f.type==="root"&&Object.setPrototypeOf(f,a.prototype),f[t]=!0,f.nodes&&f.nodes.forEach(s=>{h.rebuild(s)})},En}var xn,eo;function Di(){if(eo)return xn;eo=1;let e=ze(),t,r;class i extends e{constructor(l){super({type:"document",...l}),this.nodes||(this.nodes=[])}toResult(l={}){return new t(new r,this,l).stringify()}}return i.registerLazyResult=n=>{t=n},i.registerProcessor=n=>{r=n},xn=i,i.default=i,xn}var Rn,to;function ba(){if(to)return Rn;to=1;let e={};return Rn=function(r){e[r]||(e[r]=!0,typeof console<"u"&&console.warn&&console.warn(r))},Rn}var Tn,ro;function wa(){if(ro)return Tn;ro=1;class e{constructor(r,i={}){if(this.type="warning",this.text=r,i.node&&i.node.source){let n=i.node.rangeBy(i);this.line=n.start.line,this.column=n.start.column,this.endLine=n.end.line,this.endColumn=n.end.column}for(let n in i)this[n]=i[n]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}}return Tn=e,e.default=e,Tn}var Mn,no;function _i(){if(no)return Mn;no=1;let e=wa();class t{constructor(i,n,l){this.processor=i,this.messages=[],this.root=n,this.opts=l,this.css=void 0,this.map=void 0}toString(){return this.css}warn(i,n={}){n.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(n.plugin=this.lastPlugin.postcssPlugin);let l=new e(i,n);return this.messages.push(l),l}warnings(){return this.messages.filter(i=>i.type==="warning")}get content(){return this.css}}return Mn=t,t.default=t,Mn}var Nn,io;function Rf(){if(io)return Nn;io=1;let e=39,t=34,r=92,i=47,n=10,l=32,u=12,c=9,a=13,p=91,o=93,h=40,f=41,s=123,m=125,d=59,g=42,C=58,b=64,v=/[\t\n\f\r "#'()/;[\\\]{}]/g,E=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,w=/.[\r\n"'(/\\]/,y=/[\da-f]/i;return Nn=function(x,M={}){let T=x.css.valueOf(),I=M.ignoreErrors,k,R,re,ne,U,P,V,Q,$,B,ue=T.length,N=0,xe=[],pe=[];function vt(){return N}function se(A){throw x.error("Unclosed "+A,N)}function we(){return pe.length===0&&N>=ue}function $e(A){if(pe.length)return pe.pop();if(N>=ue)return;let ee=A?A.ignoreUnclosed:!1;switch(k=T.charCodeAt(N),k){case n:case l:case c:case a:case u:{R=N;do R+=1,k=T.charCodeAt(R);while(k===l||k===n||k===c||k===a||k===u);B=["space",T.slice(N,R)],N=R-1;break}case p:case o:case s:case m:case C:case d:case f:{let W=String.fromCharCode(k);B=[W,W,N];break}case h:{if(Q=xe.length?xe.pop()[1]:"",$=T.charCodeAt(N+1),Q==="url"&&$!==e&&$!==t&&$!==l&&$!==n&&$!==c&&$!==u&&$!==a){R=N;do{if(P=!1,R=T.indexOf(")",R+1),R===-1)if(I||ee){R=N;break}else se("bracket");for(V=R;T.charCodeAt(V-1)===r;)V-=1,P=!P}while(P);B=["brackets",T.slice(N,R+1),N,R],N=R}else R=T.indexOf(")",N+1),ne=T.slice(N,R+1),R===-1||w.test(ne)?B=["(","(",N]:(B=["brackets",ne,N,R],N=R);break}case e:case t:{re=k===e?"'":'"',R=N;do{if(P=!1,R=T.indexOf(re,R+1),R===-1)if(I||ee){R=N+1;break}else se("string");for(V=R;T.charCodeAt(V-1)===r;)V-=1,P=!P}while(P);B=["string",T.slice(N,R+1),N,R],N=R;break}case b:{v.lastIndex=N+1,v.test(T),v.lastIndex===0?R=T.length-1:R=v.lastIndex-2,B=["at-word",T.slice(N,R+1),N,R],N=R;break}case r:{for(R=N,U=!0;T.charCodeAt(R+1)===r;)R+=1,U=!U;if(k=T.charCodeAt(R+1),U&&k!==i&&k!==l&&k!==n&&k!==c&&k!==a&&k!==u&&(R+=1,y.test(T.charAt(R)))){for(;y.test(T.charAt(R+1));)R+=1;T.charCodeAt(R+1)===l&&(R+=1)}B=["word",T.slice(N,R+1),N,R],N=R;break}default:{k===i&&T.charCodeAt(N+1)===g?(R=T.indexOf("*/",N+2)+1,R===0&&(I||ee?R=T.length:se("comment")),B=["comment",T.slice(N,R+1),N,R],N=R):(E.lastIndex=N+1,E.test(T),E.lastIndex===0?R=T.length-1:R=E.lastIndex-2,B=["word",T.slice(N,R+1),N,R],xe.push(B),N=R);break}}return N++,B}function Ae(A){pe.push(A)}return{back:Ae,endOfFile:we,nextToken:$e,position:vt}},Nn}var On,so;function Li(){if(so)return On;so=1;let e=ze();class t extends e{constructor(i){super(i),this.type="atrule"}append(...i){return this.proxyOf.nodes||(this.nodes=[]),super.append(...i)}prepend(...i){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...i)}}return On=t,t.default=t,e.registerAtRule(t),On}var kn,oo;function Mt(){if(oo)return kn;oo=1;let e=ze(),t,r;class i extends e{constructor(l){super(l),this.type="root",this.nodes||(this.nodes=[])}normalize(l,u,c){let a=super.normalize(l);if(u){if(c==="prepend")this.nodes.length>1?u.raws.before=this.nodes[1].raws.before:delete u.raws.before;else if(this.first!==u)for(let p of a)p.raws.before=u.raws.before}return a}removeChild(l,u){let c=this.index(l);return!u&&c===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[c].raws.before),super.removeChild(l)}toResult(l={}){return new t(new r,this,l).stringify()}}return i.registerLazyResult=n=>{t=n},i.registerProcessor=n=>{r=n},kn=i,i.default=i,e.registerRoot(i),kn}var In,ao;function va(){if(ao)return In;ao=1;let e={comma(t){return e.split(t,[","],!0)},space(t){let r=[" ",`
24
- `," "];return e.split(t,r)},split(t,r,i){let n=[],l="",u=!1,c=0,a=!1,p="",o=!1;for(let h of t)o?o=!1:h==="\\"?o=!0:a?h===p&&(a=!1):h==='"'||h==="'"?(a=!0,p=h):h==="("?c+=1:h===")"?c>0&&(c-=1):c===0&&r.includes(h)&&(u=!0),u?(l!==""&&n.push(l.trim()),l="",u=!1):l+=h;return(i||l!=="")&&n.push(l.trim()),n}};return In=e,e.default=e,In}var An,lo;function Pi(){if(lo)return An;lo=1;let e=ze(),t=va();class r extends e{constructor(n){super(n),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return t.comma(this.selector)}set selectors(n){let l=this.selector?this.selector.match(/,\s*/):null,u=l?l[0]:","+this.raw("between","beforeOpen");this.selector=n.join(u)}}return An=r,r.default=r,e.registerRule(r),An}var Dn,uo;function Tf(){if(uo)return Dn;uo=1;let e=gr(),t=Rf(),r=br(),i=Li(),n=Mt(),l=Pi(),u={empty:!0,space:!0};function c(p){for(let o=p.length-1;o>=0;o--){let h=p[o],f=h[3]||h[2];if(f)return f}}class a{constructor(o){this.input=o,this.root=new n,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:o,start:{column:1,line:1,offset:0}}}atrule(o){let h=new i;h.name=o[1].slice(1),h.name===""&&this.unnamedAtrule(h,o),this.init(h,o[2]);let f,s,m,d=!1,g=!1,C=[],b=[];for(;!this.tokenizer.endOfFile();){if(o=this.tokenizer.nextToken(),f=o[0],f==="("||f==="["?b.push(f==="("?")":"]"):f==="{"&&b.length>0?b.push("}"):f===b[b.length-1]&&b.pop(),b.length===0)if(f===";"){h.source.end=this.getPosition(o[2]),h.source.end.offset++,this.semicolon=!0;break}else if(f==="{"){g=!0;break}else if(f==="}"){if(C.length>0){for(m=C.length-1,s=C[m];s&&s[0]==="space";)s=C[--m];s&&(h.source.end=this.getPosition(s[3]||s[2]),h.source.end.offset++)}this.end(o);break}else C.push(o);else C.push(o);if(this.tokenizer.endOfFile()){d=!0;break}}h.raws.between=this.spacesAndCommentsFromEnd(C),C.length?(h.raws.afterName=this.spacesAndCommentsFromStart(C),this.raw(h,"params",C),d&&(o=C[C.length-1],h.source.end=this.getPosition(o[3]||o[2]),h.source.end.offset++,this.spaces=h.raws.between,h.raws.between="")):(h.raws.afterName="",h.params=""),g&&(h.nodes=[],this.current=h)}checkMissedSemicolon(o){let h=this.colon(o);if(h===!1)return;let f=0,s;for(let m=h-1;m>=0&&(s=o[m],!(s[0]!=="space"&&(f+=1,f===2)));m--);throw this.input.error("Missed semicolon",s[0]==="word"?s[3]+1:s[2])}colon(o){let h=0,f,s,m;for(let[d,g]of o.entries()){if(f=g,s=f[0],s==="("&&(h+=1),s===")"&&(h-=1),h===0&&s===":")if(!m)this.doubleColon(f);else{if(m[0]==="word"&&m[1]==="progid")continue;return d}m=f}return!1}comment(o){let h=new r;this.init(h,o[2]),h.source.end=this.getPosition(o[3]||o[2]),h.source.end.offset++;let f=o[1].slice(2,-2);if(/^\s*$/.test(f))h.text="",h.raws.left=f,h.raws.right="";else{let s=f.match(/^(\s*)([^]*\S)(\s*)$/);h.text=s[2],h.raws.left=s[1],h.raws.right=s[3]}}createTokenizer(){this.tokenizer=t(this.input)}decl(o,h){let f=new e;this.init(f,o[0][2]);let s=o[o.length-1];for(s[0]===";"&&(this.semicolon=!0,o.pop()),f.source.end=this.getPosition(s[3]||s[2]||c(o)),f.source.end.offset++;o[0][0]!=="word";)o.length===1&&this.unknownWord(o),f.raws.before+=o.shift()[1];for(f.source.start=this.getPosition(o[0][2]),f.prop="";o.length;){let b=o[0][0];if(b===":"||b==="space"||b==="comment")break;f.prop+=o.shift()[1]}f.raws.between="";let m;for(;o.length;)if(m=o.shift(),m[0]===":"){f.raws.between+=m[1];break}else m[0]==="word"&&/\w/.test(m[1])&&this.unknownWord([m]),f.raws.between+=m[1];(f.prop[0]==="_"||f.prop[0]==="*")&&(f.raws.before+=f.prop[0],f.prop=f.prop.slice(1));let d=[],g;for(;o.length&&(g=o[0][0],!(g!=="space"&&g!=="comment"));)d.push(o.shift());this.precheckMissedSemicolon(o);for(let b=o.length-1;b>=0;b--){if(m=o[b],m[1].toLowerCase()==="!important"){f.important=!0;let v=this.stringFrom(o,b);v=this.spacesFromEnd(o)+v,v!==" !important"&&(f.raws.important=v);break}else if(m[1].toLowerCase()==="important"){let v=o.slice(0),E="";for(let w=b;w>0;w--){let y=v[w][0];if(E.trim().indexOf("!")===0&&y!=="space")break;E=v.pop()[1]+E}E.trim().indexOf("!")===0&&(f.important=!0,f.raws.important=E,o=v)}if(m[0]!=="space"&&m[0]!=="comment")break}o.some(b=>b[0]!=="space"&&b[0]!=="comment")&&(f.raws.between+=d.map(b=>b[1]).join(""),d=[]),this.raw(f,"value",d.concat(o),h),f.value.includes(":")&&!h&&this.checkMissedSemicolon(o)}doubleColon(o){throw this.input.error("Double colon",{offset:o[2]},{offset:o[2]+o[1].length})}emptyRule(o){let h=new l;this.init(h,o[2]),h.selector="",h.raws.between="",this.current=h}end(o){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(o[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(o)}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(o){if(this.spaces+=o[1],this.current.nodes){let h=this.current.nodes[this.current.nodes.length-1];h&&h.type==="rule"&&!h.raws.ownSemicolon&&(h.raws.ownSemicolon=this.spaces,this.spaces="")}}getPosition(o){let h=this.input.fromOffset(o);return{column:h.col,line:h.line,offset:o}}init(o,h){this.current.push(o),o.source={input:this.input,start:this.getPosition(h)},o.raws.before=this.spaces,this.spaces="",o.type!=="comment"&&(this.semicolon=!1)}other(o){let h=!1,f=null,s=!1,m=null,d=[],g=o[1].startsWith("--"),C=[],b=o;for(;b;){if(f=b[0],C.push(b),f==="("||f==="[")m||(m=b),d.push(f==="("?")":"]");else if(g&&s&&f==="{")m||(m=b),d.push("}");else if(d.length===0)if(f===";")if(s){this.decl(C,g);return}else break;else if(f==="{"){this.rule(C);return}else if(f==="}"){this.tokenizer.back(C.pop()),h=!0;break}else f===":"&&(s=!0);else f===d[d.length-1]&&(d.pop(),d.length===0&&(m=null));b=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(h=!0),d.length>0&&this.unclosedBracket(m),h&&s){if(!g)for(;C.length&&(b=C[C.length-1][0],!(b!=="space"&&b!=="comment"));)this.tokenizer.back(C.pop());this.decl(C,g)}else this.unknownWord(C)}parse(){let o;for(;!this.tokenizer.endOfFile();)switch(o=this.tokenizer.nextToken(),o[0]){case"space":this.spaces+=o[1];break;case";":this.freeSemicolon(o);break;case"}":this.end(o);break;case"comment":this.comment(o);break;case"at-word":this.atrule(o);break;case"{":this.emptyRule(o);break;default:this.other(o);break}this.endFile()}precheckMissedSemicolon(){}raw(o,h,f,s){let m,d,g=f.length,C="",b=!0,v,E;for(let w=0;w<g;w+=1)m=f[w],d=m[0],d==="space"&&w===g-1&&!s?b=!1:d==="comment"?(E=f[w-1]?f[w-1][0]:"empty",v=f[w+1]?f[w+1][0]:"empty",!u[E]&&!u[v]?C.slice(-1)===","?b=!1:C+=m[1]:b=!1):C+=m[1];if(!b){let w=f.reduce((y,S)=>y+S[1],"");o.raws[h]={raw:w,value:C}}o[h]=C}rule(o){o.pop();let h=new l;this.init(h,o[0][2]),h.raws.between=this.spacesAndCommentsFromEnd(o),this.raw(h,"selector",o),this.current=h}spacesAndCommentsFromEnd(o){let h,f="";for(;o.length&&(h=o[o.length-1][0],!(h!=="space"&&h!=="comment"));)f=o.pop()[1]+f;return f}spacesAndCommentsFromStart(o){let h,f="";for(;o.length&&(h=o[0][0],!(h!=="space"&&h!=="comment"));)f+=o.shift()[1];return f}spacesFromEnd(o){let h,f="";for(;o.length&&(h=o[o.length-1][0],h==="space");)f=o.pop()[1]+f;return f}stringFrom(o,h){let f="";for(let s=h;s<o.length;s++)f+=o[s][1];return o.splice(h,o.length-h),f}unclosedBlock(){let o=this.current.source.start;throw this.input.error("Unclosed block",o.line,o.column)}unclosedBracket(o){throw this.input.error("Unclosed bracket",{offset:o[2]},{offset:o[2]+1})}unexpectedClose(o){throw this.input.error("Unexpected }",{offset:o[2]},{offset:o[2]+1})}unknownWord(o){throw this.input.error("Unknown word",{offset:o[0][2]},{offset:o[0][2]+o[0][1].length})}unnamedAtrule(o,h){throw this.input.error("At-rule without name",{offset:h[2]},{offset:h[2]+h[1].length})}}return Dn=a,Dn}var _n,co;function Fi(){if(co)return _n;co=1;let e=ze(),t=Tf(),r=yr();function i(n,l){let u=new r(n,l),c=new t(u);try{c.parse()}catch(a){throw a}return c.root}return _n=i,i.default=i,e.registerParse(i),_n}var Ln,fo;function Sa(){if(fo)return Ln;fo=1;let{isClean:e,my:t}=Ai(),r=ya(),i=pr(),n=ze(),l=Di(),u=ba(),c=_i(),a=Fi(),p=Mt(),o={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},h={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},f={Once:!0,postcssPlugin:!0,prepare:!0},s=0;function m(E){return typeof E=="object"&&typeof E.then=="function"}function d(E){let w=!1,y=o[E.type];return E.type==="decl"?w=E.prop.toLowerCase():E.type==="atrule"&&(w=E.name.toLowerCase()),w&&E.append?[y,y+"-"+w,s,y+"Exit",y+"Exit-"+w]:w?[y,y+"-"+w,y+"Exit",y+"Exit-"+w]:E.append?[y,s,y+"Exit"]:[y,y+"Exit"]}function g(E){let w;return E.type==="document"?w=["Document",s,"DocumentExit"]:E.type==="root"?w=["Root",s,"RootExit"]:w=d(E),{eventIndex:0,events:w,iterator:0,node:E,visitorIndex:0,visitors:[]}}function C(E){return E[e]=!1,E.nodes&&E.nodes.forEach(w=>C(w)),E}let b={};class v{constructor(w,y,S){this.stringified=!1,this.processed=!1;let x;if(typeof y=="object"&&y!==null&&(y.type==="root"||y.type==="document"))x=C(y);else if(y instanceof v||y instanceof c)x=C(y.root),y.map&&(typeof S.map>"u"&&(S.map={}),S.map.inline||(S.map.inline=!1),S.map.prev=y.map);else{let M=a;S.syntax&&(M=S.syntax.parse),S.parser&&(M=S.parser),M.parse&&(M=M.parse);try{x=M(y,S)}catch(T){this.processed=!0,this.error=T}x&&!x[t]&&n.rebuild(x)}this.result=new c(w,x,S),this.helpers={...b,postcss:b,result:this.result},this.plugins=this.processor.plugins.map(M=>typeof M=="object"&&M.prepare?{...M,...M.prepare(this.result)}:M)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(w){return this.async().catch(w)}finally(w){return this.async().then(w,w)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(w,y){let S=this.result.lastPlugin;try{y&&y.addToError(w),this.error=w,w.name==="CssSyntaxError"&&!w.plugin?(w.plugin=S.postcssPlugin,w.setMessage()):S.postcssVersion}catch(x){console&&console.error&&console.error(x)}return w}prepareVisitors(){this.listeners={};let w=(y,S,x)=>{this.listeners[S]||(this.listeners[S]=[]),this.listeners[S].push([y,x])};for(let y of this.plugins)if(typeof y=="object")for(let S in y){if(!h[S]&&/^[A-Z]/.test(S))throw new Error(`Unknown event ${S} in ${y.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!f[S])if(typeof y[S]=="object")for(let x in y[S])x==="*"?w(y,S,y[S][x]):w(y,S+"-"+x.toLowerCase(),y[S][x]);else typeof y[S]=="function"&&w(y,S,y[S])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let w=0;w<this.plugins.length;w++){let y=this.plugins[w],S=this.runOnRoot(y);if(m(S))try{await S}catch(x){throw this.handleError(x)}}if(this.prepareVisitors(),this.hasListener){let w=this.result.root;for(;!w[e];){w[e]=!0;let y=[g(w)];for(;y.length>0;){let S=this.visitTick(y);if(m(S))try{await S}catch(x){let M=y[y.length-1].node;throw this.handleError(x,M)}}}if(this.listeners.OnceExit)for(let[y,S]of this.listeners.OnceExit){this.result.lastPlugin=y;try{if(w.type==="document"){let x=w.nodes.map(M=>S(M,this.helpers));await Promise.all(x)}else await S(w,this.helpers)}catch(x){throw this.handleError(x)}}}return this.processed=!0,this.stringify()}runOnRoot(w){this.result.lastPlugin=w;try{if(typeof w=="object"&&w.Once){if(this.result.root.type==="document"){let y=this.result.root.nodes.map(S=>w.Once(S,this.helpers));return m(y[0])?Promise.all(y):y}return w.Once(this.result.root,this.helpers)}else if(typeof w=="function")return w(this.result.root,this.result)}catch(y){throw this.handleError(y)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let w=this.result.opts,y=i;w.syntax&&(y=w.syntax.stringify),w.stringifier&&(y=w.stringifier),y.stringify&&(y=y.stringify);let x=new r(y,this.result.root,this.result.opts).generate();return this.result.css=x[0],this.result.map=x[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let w of this.plugins){let y=this.runOnRoot(w);if(m(y))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let w=this.result.root;for(;!w[e];)w[e]=!0,this.walkSync(w);if(this.listeners.OnceExit)if(w.type==="document")for(let y of w.nodes)this.visitSync(this.listeners.OnceExit,y);else this.visitSync(this.listeners.OnceExit,w)}return this.result}then(w,y){return this.async().then(w,y)}toString(){return this.css}visitSync(w,y){for(let[S,x]of w){this.result.lastPlugin=S;let M;try{M=x(y,this.helpers)}catch(T){throw this.handleError(T,y.proxyOf)}if(y.type!=="root"&&y.type!=="document"&&!y.parent)return!0;if(m(M))throw this.getAsyncError()}}visitTick(w){let y=w[w.length-1],{node:S,visitors:x}=y;if(S.type!=="root"&&S.type!=="document"&&!S.parent){w.pop();return}if(x.length>0&&y.visitorIndex<x.length){let[T,I]=x[y.visitorIndex];y.visitorIndex+=1,y.visitorIndex===x.length&&(y.visitors=[],y.visitorIndex=0),this.result.lastPlugin=T;try{return I(S.toProxy(),this.helpers)}catch(k){throw this.handleError(k,S)}}if(y.iterator!==0){let T=y.iterator,I;for(;I=S.nodes[S.indexes[T]];)if(S.indexes[T]+=1,!I[e]){I[e]=!0,w.push(g(I));return}y.iterator=0,delete S.indexes[T]}let M=y.events;for(;y.eventIndex<M.length;){let T=M[y.eventIndex];if(y.eventIndex+=1,T===s){S.nodes&&S.nodes.length&&(S[e]=!0,y.iterator=S.getIterator());return}else if(this.listeners[T]){y.visitors=this.listeners[T];return}}w.pop()}walkSync(w){w[e]=!0;let y=d(w);for(let S of y)if(S===s)w.nodes&&w.each(x=>{x[e]||this.walkSync(x)});else{let x=this.listeners[S];if(x&&this.visitSync(x,w.toProxy()))return}}warnings(){return this.sync().warnings()}get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}}return v.registerPostcss=E=>{b=E},Ln=v,v.default=v,p.registerLazyResult(v),l.registerLazyResult(v),Ln}var Pn,ho;function Mf(){if(ho)return Pn;ho=1;let e=ya(),t=pr(),r=ba(),i=Fi(),n=_i();class l{constructor(c,a,p){a=a.toString(),this.stringified=!1,this._processor=c,this._css=a,this._opts=p,this._map=void 0;let o,h=t;this.result=new n(this._processor,o,this._opts),this.result.css=a;let f=this;Object.defineProperty(this.result,"root",{get(){return f.root}});let s=new e(h,o,this._opts,a);if(s.isMap()){let[m,d]=s.generate();m&&(this.result.css=m),d&&(this.result.map=d)}else s.clearAnnotation(),this.result.css=s.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(c){return this.async().catch(c)}finally(c){return this.async().then(c,c)}sync(){if(this.error)throw this.error;return this.result}then(c,a){return this.async().then(c,a)}toString(){return this._css}warnings(){return[]}get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let c,a=i;try{c=a(this._css,this._opts)}catch(p){this.error=p}if(this.error)throw this.error;return this._root=c,c}get[Symbol.toStringTag](){return"NoWorkResult"}}return Pn=l,l.default=l,Pn}var Fn,po;function Nf(){if(po)return Fn;po=1;let e=Mf(),t=Sa(),r=Di(),i=Mt();class n{constructor(u=[]){this.version="8.4.38",this.plugins=this.normalize(u)}normalize(u){let c=[];for(let a of u)if(a.postcss===!0?a=a():a.postcss&&(a=a.postcss),typeof a=="object"&&Array.isArray(a.plugins))c=c.concat(a.plugins);else if(typeof a=="object"&&a.postcssPlugin)c.push(a);else if(typeof a=="function")c.push(a);else if(!(typeof a=="object"&&(a.parse||a.stringify)))throw new Error(a+" is not a PostCSS plugin");return c}process(u,c={}){return!this.plugins.length&&!c.parser&&!c.stringifier&&!c.syntax?new e(this,u,c):new t(this,u,c)}use(u){return this.plugins=this.plugins.concat(this.normalize([u])),this}}return Fn=n,n.default=n,i.registerProcessor(n),r.registerProcessor(n),Fn}var Un,mo;function Of(){if(mo)return Un;mo=1;let e=gr(),t=ga(),r=br(),i=Li(),n=yr(),l=Mt(),u=Pi();function c(a,p){if(Array.isArray(a))return a.map(f=>c(f));let{inputs:o,...h}=a;if(o){p=[];for(let f of o){let s={...f,__proto__:n.prototype};s.map&&(s.map={...s.map,__proto__:t.prototype}),p.push(s)}}if(h.nodes&&(h.nodes=a.nodes.map(f=>c(f,p))),h.source){let{inputId:f,...s}=h.source;h.source=s,f!=null&&(h.source.input=p[f])}if(h.type==="root")return new l(h);if(h.type==="decl")return new e(h);if(h.type==="rule")return new u(h);if(h.type==="comment")return new r(h);if(h.type==="atrule")return new i(h);throw new Error("Unknown node type: "+a.type)}return Un=c,c.default=c,Un}var Bn,go;function kf(){if(go)return Bn;go=1;let e=Ii(),t=gr(),r=Sa(),i=ze(),n=Nf(),l=pr(),u=Of(),c=Di(),a=wa(),p=br(),o=Li(),h=_i(),f=yr(),s=Fi(),m=va(),d=Pi(),g=Mt(),C=mr();function b(...v){return v.length===1&&Array.isArray(v[0])&&(v=v[0]),new n(v)}return b.plugin=function(E,w){let y=!1;function S(...M){console&&console.warn&&!y&&(y=!0,console.warn(E+`: postcss.plugin was deprecated. Migration guide:
21
+ `)&&(o=`\r
22
+ `),this.css+=o+"/*# sourceMappingURL="+f+" */"}applyPrevMaps(){for(let f of this.previous()){let o=this.toUrl(this.path(f.file)),m=f.root||r(f.file),d;this.mapOpts.sourcesContent===!1?(d=new e(f.text),d.sourcesContent&&(d.sourcesContent=null)):d=f.consumer(),this.map.applySourceMap(d,o,this.toUrl(this.path(m)))}}clearAnnotation(){if(this.mapOpts.annotation!==!1)if(this.root){let f;for(let o=this.root.nodes.length-1;o>=0;o--)f=this.root.nodes[o],f.type==="comment"&&f.text.indexOf("# sourceMappingURL=")===0&&this.root.removeChild(o)}else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),p&&l&&this.isMap())return this.generateMap();{let f="";return this.stringify(this.root,o=>{f+=o}),[f]}}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let f=this.previous()[0].consumer();f.file=this.outputFile(),this.map=t.fromSourceMap(f,{ignoreInvalidMapping:!0})}else this.map=new t({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 t({file:this.outputFile(),ignoreInvalidMapping:!0});let f=1,o=1,m="<no source>",d={generated:{column:0,line:0},original:{column:0,line:0},source:""},g,C;this.stringify(this.root,(b,v,E)=>{if(this.css+=b,v&&E!=="end"&&(d.generated.line=f,d.generated.column=o-1,v.source&&v.source.start?(d.source=this.sourcePath(v),d.original.line=v.source.start.line,d.original.column=v.source.start.column-1,this.map.addMapping(d)):(d.source=m,d.original.line=1,d.original.column=0,this.map.addMapping(d))),g=b.match(/\n/g),g?(f+=g.length,C=b.lastIndexOf(`
23
+ `),o=b.length-C):o+=b.length,v&&E!=="start"){let w=v.parent||{raws:{}};(!(v.type==="decl"||v.type==="atrule"&&!v.nodes)||v!==w.last||w.raws.semicolon)&&(v.source&&v.source.end?(d.source=this.sourcePath(v),d.original.line=v.source.end.line,d.original.column=v.source.end.column-1,d.generated.line=f,d.generated.column=o-2,this.map.addMapping(d)):(d.source=m,d.original.line=1,d.original.column=0,d.generated.line=f,d.generated.column=o-1,this.map.addMapping(d)))}})}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation<"u"?this.mapOpts.annotation:this.previous().length?this.previous().some(f=>f.annotation):!0}isInline(){if(typeof this.mapOpts.inline<"u")return this.mapOpts.inline;let f=this.mapOpts.annotation;return typeof f<"u"&&f!==!0?!1:this.previous().length?this.previous().some(o=>o.inline):!0}isMap(){return typeof this.opts.map<"u"?!!this.opts.map:this.previous().length>0}isSourcesContent(){return typeof this.mapOpts.sourcesContent<"u"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(f=>f.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(f){if(this.mapOpts.absolute||f.charCodeAt(0)===60||/^\w+:\/\//.test(f))return f;let o=this.memoizedPaths.get(f);if(o)return o;let m=this.opts.to?r(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(m=r(n(m,this.mapOpts.annotation)));let d=i(m,f);return this.memoizedPaths.set(f,d),d}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(f=>{if(f.source&&f.source.input.map){let o=f.source.input.map;this.previousMaps.includes(o)||this.previousMaps.push(o)}});else{let f=new c(this.originalCSS,this.opts);f.map&&this.previousMaps.push(f.map)}return this.previousMaps}setSourcesContent(){let f={};if(this.root)this.root.walk(o=>{if(o.source){let m=o.source.input.from;if(m&&!f[m]){f[m]=!0;let d=this.usesFileUrls?this.toFileUrl(m):this.toUrl(this.path(m));this.map.setSourceContent(d,o.source.input.css)}}});else if(this.css){let o=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(o,this.css)}}sourcePath(f){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(f.source.input.from):this.toUrl(this.path(f.source.input.from))}toBase64(f){return Buffer?Buffer.from(f).toString("base64"):window.btoa(unescape(encodeURIComponent(f)))}toFileUrl(f){let o=this.memoizedFileURLs.get(f);if(o)return o;if(u){let m=u(f).toString();return this.memoizedFileURLs.set(f,m),m}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(f){let o=this.memoizedURLs.get(f);if(o)return o;s==="\\"&&(f=f.replace(/\\/g,"/"));let m=encodeURI(f).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(f,m),m}}return On=a,On}var In,mo;function Tr(){if(mo)return In;mo=1;let e=Er();class t extends e{constructor(i){super(i),this.type="comment"}}return In=t,t.default=t,In}var An,go;function Ve(){if(go)return An;go=1;let{isClean:e,my:t}=Wi(),r=xr(),i=Tr(),n=Er(),s,u,c,l;function p(f){return f.map(o=>(o.nodes&&(o.nodes=p(o.nodes)),delete o.source,o))}function a(f){if(f[e]=!1,f.proxyOf.nodes)for(let o of f.proxyOf.nodes)a(o)}class h extends n{append(...o){for(let m of o){let d=this.normalize(m,this.last);for(let g of d)this.proxyOf.nodes.push(g)}return this.markDirty(),this}cleanRaws(o){if(super.cleanRaws(o),this.nodes)for(let m of this.nodes)m.cleanRaws(o)}each(o){if(!this.proxyOf.nodes)return;let m=this.getIterator(),d,g;for(;this.indexes[m]<this.proxyOf.nodes.length&&(d=this.indexes[m],g=o(this.proxyOf.nodes[d],d),g!==!1);)this.indexes[m]+=1;return delete this.indexes[m],g}every(o){return this.nodes.every(o)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let o=this.lastEach;return this.indexes[o]=0,o}getProxyProcessor(){return{get(o,m){return m==="proxyOf"?o:o[m]?m==="each"||typeof m=="string"&&m.startsWith("walk")?(...d)=>o[m](...d.map(g=>typeof g=="function"?(C,b)=>g(C.toProxy(),b):g)):m==="every"||m==="some"?d=>o[m]((g,...C)=>d(g.toProxy(),...C)):m==="root"?()=>o.root().toProxy():m==="nodes"?o.nodes.map(d=>d.toProxy()):m==="first"||m==="last"?o[m].toProxy():o[m]:o[m]},set(o,m,d){return o[m]===d||(o[m]=d,(m==="name"||m==="params"||m==="selector")&&o.markDirty()),!0}}}index(o){return typeof o=="number"?o:(o.proxyOf&&(o=o.proxyOf),this.proxyOf.nodes.indexOf(o))}insertAfter(o,m){let d=this.index(o),g=this.normalize(m,this.proxyOf.nodes[d]).reverse();d=this.index(o);for(let b of g)this.proxyOf.nodes.splice(d+1,0,b);let C;for(let b in this.indexes)C=this.indexes[b],d<C&&(this.indexes[b]=C+g.length);return this.markDirty(),this}insertBefore(o,m){let d=this.index(o),g=d===0?"prepend":!1,C=this.normalize(m,this.proxyOf.nodes[d],g).reverse();d=this.index(o);for(let v of C)this.proxyOf.nodes.splice(d,0,v);let b;for(let v in this.indexes)b=this.indexes[v],d<=b&&(this.indexes[v]=b+C.length);return this.markDirty(),this}normalize(o,m){if(typeof o=="string")o=p(s(o).nodes);else if(typeof o>"u")o=[];else if(Array.isArray(o)){o=o.slice(0);for(let g of o)g.parent&&g.parent.removeChild(g,"ignore")}else if(o.type==="root"&&this.type!=="document"){o=o.nodes.slice(0);for(let g of o)g.parent&&g.parent.removeChild(g,"ignore")}else if(o.type)o=[o];else if(o.prop){if(typeof o.value>"u")throw new Error("Value field is missed in node creation");typeof o.value!="string"&&(o.value=String(o.value)),o=[new r(o)]}else if(o.selector)o=[new u(o)];else if(o.name)o=[new c(o)];else if(o.text)o=[new i(o)];else throw new Error("Unknown node type in node creation");return o.map(g=>(g[t]||h.rebuild(g),g=g.proxyOf,g.parent&&g.parent.removeChild(g),g[e]&&a(g),typeof g.raws.before>"u"&&m&&typeof m.raws.before<"u"&&(g.raws.before=m.raws.before.replace(/\S/g,"")),g.parent=this.proxyOf,g))}prepend(...o){o=o.reverse();for(let m of o){let d=this.normalize(m,this.first,"prepend").reverse();for(let g of d)this.proxyOf.nodes.unshift(g);for(let g in this.indexes)this.indexes[g]=this.indexes[g]+d.length}return this.markDirty(),this}push(o){return o.parent=this,this.proxyOf.nodes.push(o),this}removeAll(){for(let o of this.proxyOf.nodes)o.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(o){o=this.index(o),this.proxyOf.nodes[o].parent=void 0,this.proxyOf.nodes.splice(o,1);let m;for(let d in this.indexes)m=this.indexes[d],m>=o&&(this.indexes[d]=m-1);return this.markDirty(),this}replaceValues(o,m,d){return d||(d=m,m={}),this.walkDecls(g=>{m.props&&!m.props.includes(g.prop)||m.fast&&!g.value.includes(m.fast)||(g.value=g.value.replace(o,d))}),this.markDirty(),this}some(o){return this.nodes.some(o)}walk(o){return this.each((m,d)=>{let g;try{g=o(m,d)}catch(C){throw m.addToError(C)}return g!==!1&&m.walk&&(g=m.walk(o)),g})}walkAtRules(o,m){return m?o instanceof RegExp?this.walk((d,g)=>{if(d.type==="atrule"&&o.test(d.name))return m(d,g)}):this.walk((d,g)=>{if(d.type==="atrule"&&d.name===o)return m(d,g)}):(m=o,this.walk((d,g)=>{if(d.type==="atrule")return m(d,g)}))}walkComments(o){return this.walk((m,d)=>{if(m.type==="comment")return o(m,d)})}walkDecls(o,m){return m?o instanceof RegExp?this.walk((d,g)=>{if(d.type==="decl"&&o.test(d.prop))return m(d,g)}):this.walk((d,g)=>{if(d.type==="decl"&&d.prop===o)return m(d,g)}):(m=o,this.walk((d,g)=>{if(d.type==="decl")return m(d,g)}))}walkRules(o,m){return m?o instanceof RegExp?this.walk((d,g)=>{if(d.type==="rule"&&o.test(d.selector))return m(d,g)}):this.walk((d,g)=>{if(d.type==="rule"&&d.selector===o)return m(d,g)}):(m=o,this.walk((d,g)=>{if(d.type==="rule")return m(d,g)}))}get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}}return h.registerParse=f=>{s=f},h.registerRule=f=>{u=f},h.registerAtRule=f=>{c=f},h.registerRoot=f=>{l=f},An=h,h.default=h,h.rebuild=f=>{f.type==="atrule"?Object.setPrototypeOf(f,c.prototype):f.type==="rule"?Object.setPrototypeOf(f,u.prototype):f.type==="decl"?Object.setPrototypeOf(f,r.prototype):f.type==="comment"?Object.setPrototypeOf(f,i.prototype):f.type==="root"&&Object.setPrototypeOf(f,l.prototype),f[t]=!0,f.nodes&&f.nodes.forEach(o=>{h.rebuild(o)})},An}var Dn,yo;function zi(){if(yo)return Dn;yo=1;let e=Ve(),t,r;class i extends e{constructor(s){super({type:"document",...s}),this.nodes||(this.nodes=[])}toResult(s={}){return new t(new r,this,s).stringify()}}return i.registerLazyResult=n=>{t=n},i.registerProcessor=n=>{r=n},Dn=i,i.default=i,Dn}var _n,bo;function _a(){if(bo)return _n;bo=1;let e={};return _n=function(r){e[r]||(e[r]=!0,typeof console<"u"&&console.warn&&console.warn(r))},_n}var Ln,wo;function La(){if(wo)return Ln;wo=1;class e{constructor(r,i={}){if(this.type="warning",this.text=r,i.node&&i.node.source){let n=i.node.rangeBy(i);this.line=n.start.line,this.column=n.start.column,this.endLine=n.end.line,this.endColumn=n.end.column}for(let n in i)this[n]=i[n]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}}return Ln=e,e.default=e,Ln}var Pn,vo;function qi(){if(vo)return Pn;vo=1;let e=La();class t{constructor(i,n,s){this.processor=i,this.messages=[],this.root=n,this.opts=s,this.css=void 0,this.map=void 0}toString(){return this.css}warn(i,n={}){n.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(n.plugin=this.lastPlugin.postcssPlugin);let s=new e(i,n);return this.messages.push(s),s}warnings(){return this.messages.filter(i=>i.type==="warning")}get content(){return this.css}}return Pn=t,t.default=t,Pn}var Fn,So;function td(){if(So)return Fn;So=1;let e=39,t=34,r=92,i=47,n=10,s=32,u=12,c=9,l=13,p=91,a=93,h=40,f=41,o=123,m=125,d=59,g=42,C=58,b=64,v=/[\t\n\f\r "#'()/;[\\\]{}]/g,E=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,w=/.[\r\n"'(/\\]/,y=/[\da-f]/i;return Fn=function(x,M={}){let T=x.css.valueOf(),I=M.ignoreErrors,O,R,re,ne,U,P,V,Z,$,B,ue=T.length,N=0,Me=[],me=[];function Mt(){return N}function se(A){throw x.error("Unclosed "+A,N)}function Ce(){return me.length===0&&N>=ue}function qe(A){if(me.length)return me.pop();if(N>=ue)return;let ee=A?A.ignoreUnclosed:!1;switch(O=T.charCodeAt(N),O){case n:case s:case c:case l:case u:{R=N;do R+=1,O=T.charCodeAt(R);while(O===s||O===n||O===c||O===l||O===u);B=["space",T.slice(N,R)],N=R-1;break}case p:case a:case o:case m:case C:case d:case f:{let W=String.fromCharCode(O);B=[W,W,N];break}case h:{if(Z=Me.length?Me.pop()[1]:"",$=T.charCodeAt(N+1),Z==="url"&&$!==e&&$!==t&&$!==s&&$!==n&&$!==c&&$!==u&&$!==l){R=N;do{if(P=!1,R=T.indexOf(")",R+1),R===-1)if(I||ee){R=N;break}else se("bracket");for(V=R;T.charCodeAt(V-1)===r;)V-=1,P=!P}while(P);B=["brackets",T.slice(N,R+1),N,R],N=R}else R=T.indexOf(")",N+1),ne=T.slice(N,R+1),R===-1||w.test(ne)?B=["(","(",N]:(B=["brackets",ne,N,R],N=R);break}case e:case t:{re=O===e?"'":'"',R=N;do{if(P=!1,R=T.indexOf(re,R+1),R===-1)if(I||ee){R=N+1;break}else se("string");for(V=R;T.charCodeAt(V-1)===r;)V-=1,P=!P}while(P);B=["string",T.slice(N,R+1),N,R],N=R;break}case b:{v.lastIndex=N+1,v.test(T),v.lastIndex===0?R=T.length-1:R=v.lastIndex-2,B=["at-word",T.slice(N,R+1),N,R],N=R;break}case r:{for(R=N,U=!0;T.charCodeAt(R+1)===r;)R+=1,U=!U;if(O=T.charCodeAt(R+1),U&&O!==i&&O!==s&&O!==n&&O!==c&&O!==l&&O!==u&&(R+=1,y.test(T.charAt(R)))){for(;y.test(T.charAt(R+1));)R+=1;T.charCodeAt(R+1)===s&&(R+=1)}B=["word",T.slice(N,R+1),N,R],N=R;break}default:{O===i&&T.charCodeAt(N+1)===g?(R=T.indexOf("*/",N+2)+1,R===0&&(I||ee?R=T.length:se("comment")),B=["comment",T.slice(N,R+1),N,R],N=R):(E.lastIndex=N+1,E.test(T),E.lastIndex===0?R=T.length-1:R=E.lastIndex-2,B=["word",T.slice(N,R+1),N,R],Me.push(B),N=R);break}}return N++,B}function _e(A){me.push(A)}return{back:_e,endOfFile:Ce,nextToken:qe,position:Mt}},Fn}var Un,Co;function ji(){if(Co)return Un;Co=1;let e=Ve();class t extends e{constructor(i){super(i),this.type="atrule"}append(...i){return this.proxyOf.nodes||(this.nodes=[]),super.append(...i)}prepend(...i){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...i)}}return Un=t,t.default=t,e.registerAtRule(t),Un}var Bn,Eo;function _t(){if(Eo)return Bn;Eo=1;let e=Ve(),t,r;class i extends e{constructor(s){super(s),this.type="root",this.nodes||(this.nodes=[])}normalize(s,u,c){let l=super.normalize(s);if(u){if(c==="prepend")this.nodes.length>1?u.raws.before=this.nodes[1].raws.before:delete u.raws.before;else if(this.first!==u)for(let p of l)p.raws.before=u.raws.before}return l}removeChild(s,u){let c=this.index(s);return!u&&c===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[c].raws.before),super.removeChild(s)}toResult(s={}){return new t(new r,this,s).stringify()}}return i.registerLazyResult=n=>{t=n},i.registerProcessor=n=>{r=n},Bn=i,i.default=i,e.registerRoot(i),Bn}var $n,xo;function Pa(){if(xo)return $n;xo=1;let e={comma(t){return e.split(t,[","],!0)},space(t){let r=[" ",`
24
+ `," "];return e.split(t,r)},split(t,r,i){let n=[],s="",u=!1,c=0,l=!1,p="",a=!1;for(let h of t)a?a=!1:h==="\\"?a=!0:l?h===p&&(l=!1):h==='"'||h==="'"?(l=!0,p=h):h==="("?c+=1:h===")"?c>0&&(c-=1):c===0&&r.includes(h)&&(u=!0),u?(s!==""&&n.push(s.trim()),s="",u=!1):s+=h;return(i||s!=="")&&n.push(s.trim()),n}};return $n=e,e.default=e,$n}var Wn,Ro;function Vi(){if(Ro)return Wn;Ro=1;let e=Ve(),t=Pa();class r extends e{constructor(n){super(n),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return t.comma(this.selector)}set selectors(n){let s=this.selector?this.selector.match(/,\s*/):null,u=s?s[0]:","+this.raw("between","beforeOpen");this.selector=n.join(u)}}return Wn=r,r.default=r,e.registerRule(r),Wn}var zn,To;function rd(){if(To)return zn;To=1;let e=xr(),t=td(),r=Tr(),i=ji(),n=_t(),s=Vi(),u={empty:!0,space:!0};function c(p){for(let a=p.length-1;a>=0;a--){let h=p[a],f=h[3]||h[2];if(f)return f}}class l{constructor(a){this.input=a,this.root=new n,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:a,start:{column:1,line:1,offset:0}}}atrule(a){let h=new i;h.name=a[1].slice(1),h.name===""&&this.unnamedAtrule(h,a),this.init(h,a[2]);let f,o,m,d=!1,g=!1,C=[],b=[];for(;!this.tokenizer.endOfFile();){if(a=this.tokenizer.nextToken(),f=a[0],f==="("||f==="["?b.push(f==="("?")":"]"):f==="{"&&b.length>0?b.push("}"):f===b[b.length-1]&&b.pop(),b.length===0)if(f===";"){h.source.end=this.getPosition(a[2]),h.source.end.offset++,this.semicolon=!0;break}else if(f==="{"){g=!0;break}else if(f==="}"){if(C.length>0){for(m=C.length-1,o=C[m];o&&o[0]==="space";)o=C[--m];o&&(h.source.end=this.getPosition(o[3]||o[2]),h.source.end.offset++)}this.end(a);break}else C.push(a);else C.push(a);if(this.tokenizer.endOfFile()){d=!0;break}}h.raws.between=this.spacesAndCommentsFromEnd(C),C.length?(h.raws.afterName=this.spacesAndCommentsFromStart(C),this.raw(h,"params",C),d&&(a=C[C.length-1],h.source.end=this.getPosition(a[3]||a[2]),h.source.end.offset++,this.spaces=h.raws.between,h.raws.between="")):(h.raws.afterName="",h.params=""),g&&(h.nodes=[],this.current=h)}checkMissedSemicolon(a){let h=this.colon(a);if(h===!1)return;let f=0,o;for(let m=h-1;m>=0&&(o=a[m],!(o[0]!=="space"&&(f+=1,f===2)));m--);throw this.input.error("Missed semicolon",o[0]==="word"?o[3]+1:o[2])}colon(a){let h=0,f,o,m;for(let[d,g]of a.entries()){if(f=g,o=f[0],o==="("&&(h+=1),o===")"&&(h-=1),h===0&&o===":")if(!m)this.doubleColon(f);else{if(m[0]==="word"&&m[1]==="progid")continue;return d}m=f}return!1}comment(a){let h=new r;this.init(h,a[2]),h.source.end=this.getPosition(a[3]||a[2]),h.source.end.offset++;let f=a[1].slice(2,-2);if(/^\s*$/.test(f))h.text="",h.raws.left=f,h.raws.right="";else{let o=f.match(/^(\s*)([^]*\S)(\s*)$/);h.text=o[2],h.raws.left=o[1],h.raws.right=o[3]}}createTokenizer(){this.tokenizer=t(this.input)}decl(a,h){let f=new e;this.init(f,a[0][2]);let o=a[a.length-1];for(o[0]===";"&&(this.semicolon=!0,a.pop()),f.source.end=this.getPosition(o[3]||o[2]||c(a)),f.source.end.offset++;a[0][0]!=="word";)a.length===1&&this.unknownWord(a),f.raws.before+=a.shift()[1];for(f.source.start=this.getPosition(a[0][2]),f.prop="";a.length;){let b=a[0][0];if(b===":"||b==="space"||b==="comment")break;f.prop+=a.shift()[1]}f.raws.between="";let m;for(;a.length;)if(m=a.shift(),m[0]===":"){f.raws.between+=m[1];break}else m[0]==="word"&&/\w/.test(m[1])&&this.unknownWord([m]),f.raws.between+=m[1];(f.prop[0]==="_"||f.prop[0]==="*")&&(f.raws.before+=f.prop[0],f.prop=f.prop.slice(1));let d=[],g;for(;a.length&&(g=a[0][0],!(g!=="space"&&g!=="comment"));)d.push(a.shift());this.precheckMissedSemicolon(a);for(let b=a.length-1;b>=0;b--){if(m=a[b],m[1].toLowerCase()==="!important"){f.important=!0;let v=this.stringFrom(a,b);v=this.spacesFromEnd(a)+v,v!==" !important"&&(f.raws.important=v);break}else if(m[1].toLowerCase()==="important"){let v=a.slice(0),E="";for(let w=b;w>0;w--){let y=v[w][0];if(E.trim().indexOf("!")===0&&y!=="space")break;E=v.pop()[1]+E}E.trim().indexOf("!")===0&&(f.important=!0,f.raws.important=E,a=v)}if(m[0]!=="space"&&m[0]!=="comment")break}a.some(b=>b[0]!=="space"&&b[0]!=="comment")&&(f.raws.between+=d.map(b=>b[1]).join(""),d=[]),this.raw(f,"value",d.concat(a),h),f.value.includes(":")&&!h&&this.checkMissedSemicolon(a)}doubleColon(a){throw this.input.error("Double colon",{offset:a[2]},{offset:a[2]+a[1].length})}emptyRule(a){let h=new s;this.init(h,a[2]),h.selector="",h.raws.between="",this.current=h}end(a){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(a[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(a)}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(a){if(this.spaces+=a[1],this.current.nodes){let h=this.current.nodes[this.current.nodes.length-1];h&&h.type==="rule"&&!h.raws.ownSemicolon&&(h.raws.ownSemicolon=this.spaces,this.spaces="")}}getPosition(a){let h=this.input.fromOffset(a);return{column:h.col,line:h.line,offset:a}}init(a,h){this.current.push(a),a.source={input:this.input,start:this.getPosition(h)},a.raws.before=this.spaces,this.spaces="",a.type!=="comment"&&(this.semicolon=!1)}other(a){let h=!1,f=null,o=!1,m=null,d=[],g=a[1].startsWith("--"),C=[],b=a;for(;b;){if(f=b[0],C.push(b),f==="("||f==="[")m||(m=b),d.push(f==="("?")":"]");else if(g&&o&&f==="{")m||(m=b),d.push("}");else if(d.length===0)if(f===";")if(o){this.decl(C,g);return}else break;else if(f==="{"){this.rule(C);return}else if(f==="}"){this.tokenizer.back(C.pop()),h=!0;break}else f===":"&&(o=!0);else f===d[d.length-1]&&(d.pop(),d.length===0&&(m=null));b=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(h=!0),d.length>0&&this.unclosedBracket(m),h&&o){if(!g)for(;C.length&&(b=C[C.length-1][0],!(b!=="space"&&b!=="comment"));)this.tokenizer.back(C.pop());this.decl(C,g)}else this.unknownWord(C)}parse(){let a;for(;!this.tokenizer.endOfFile();)switch(a=this.tokenizer.nextToken(),a[0]){case"space":this.spaces+=a[1];break;case";":this.freeSemicolon(a);break;case"}":this.end(a);break;case"comment":this.comment(a);break;case"at-word":this.atrule(a);break;case"{":this.emptyRule(a);break;default:this.other(a);break}this.endFile()}precheckMissedSemicolon(){}raw(a,h,f,o){let m,d,g=f.length,C="",b=!0,v,E;for(let w=0;w<g;w+=1)m=f[w],d=m[0],d==="space"&&w===g-1&&!o?b=!1:d==="comment"?(E=f[w-1]?f[w-1][0]:"empty",v=f[w+1]?f[w+1][0]:"empty",!u[E]&&!u[v]?C.slice(-1)===","?b=!1:C+=m[1]:b=!1):C+=m[1];if(!b){let w=f.reduce((y,S)=>y+S[1],"");a.raws[h]={raw:w,value:C}}a[h]=C}rule(a){a.pop();let h=new s;this.init(h,a[0][2]),h.raws.between=this.spacesAndCommentsFromEnd(a),this.raw(h,"selector",a),this.current=h}spacesAndCommentsFromEnd(a){let h,f="";for(;a.length&&(h=a[a.length-1][0],!(h!=="space"&&h!=="comment"));)f=a.pop()[1]+f;return f}spacesAndCommentsFromStart(a){let h,f="";for(;a.length&&(h=a[0][0],!(h!=="space"&&h!=="comment"));)f+=a.shift()[1];return f}spacesFromEnd(a){let h,f="";for(;a.length&&(h=a[a.length-1][0],h==="space");)f=a.pop()[1]+f;return f}stringFrom(a,h){let f="";for(let o=h;o<a.length;o++)f+=a[o][1];return a.splice(h,a.length-h),f}unclosedBlock(){let a=this.current.source.start;throw this.input.error("Unclosed block",a.line,a.column)}unclosedBracket(a){throw this.input.error("Unclosed bracket",{offset:a[2]},{offset:a[2]+1})}unexpectedClose(a){throw this.input.error("Unexpected }",{offset:a[2]},{offset:a[2]+1})}unknownWord(a){throw this.input.error("Unknown word",{offset:a[0][2]},{offset:a[0][2]+a[0][1].length})}unnamedAtrule(a,h){throw this.input.error("At-rule without name",{offset:h[2]},{offset:h[2]+h[1].length})}}return zn=l,zn}var qn,Mo;function Hi(){if(Mo)return qn;Mo=1;let e=Ve(),t=rd(),r=Rr();function i(n,s){let u=new r(n,s),c=new t(u);try{c.parse()}catch(l){throw l}return c.root}return qn=i,i.default=i,e.registerParse(i),qn}var jn,No;function Fa(){if(No)return jn;No=1;let{isClean:e,my:t}=Wi(),r=Da(),i=Cr(),n=Ve(),s=zi(),u=_a(),c=qi(),l=Hi(),p=_t(),a={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},h={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},f={Once:!0,postcssPlugin:!0,prepare:!0},o=0;function m(E){return typeof E=="object"&&typeof E.then=="function"}function d(E){let w=!1,y=a[E.type];return E.type==="decl"?w=E.prop.toLowerCase():E.type==="atrule"&&(w=E.name.toLowerCase()),w&&E.append?[y,y+"-"+w,o,y+"Exit",y+"Exit-"+w]:w?[y,y+"-"+w,y+"Exit",y+"Exit-"+w]:E.append?[y,o,y+"Exit"]:[y,y+"Exit"]}function g(E){let w;return E.type==="document"?w=["Document",o,"DocumentExit"]:E.type==="root"?w=["Root",o,"RootExit"]:w=d(E),{eventIndex:0,events:w,iterator:0,node:E,visitorIndex:0,visitors:[]}}function C(E){return E[e]=!1,E.nodes&&E.nodes.forEach(w=>C(w)),E}let b={};class v{constructor(w,y,S){this.stringified=!1,this.processed=!1;let x;if(typeof y=="object"&&y!==null&&(y.type==="root"||y.type==="document"))x=C(y);else if(y instanceof v||y instanceof c)x=C(y.root),y.map&&(typeof S.map>"u"&&(S.map={}),S.map.inline||(S.map.inline=!1),S.map.prev=y.map);else{let M=l;S.syntax&&(M=S.syntax.parse),S.parser&&(M=S.parser),M.parse&&(M=M.parse);try{x=M(y,S)}catch(T){this.processed=!0,this.error=T}x&&!x[t]&&n.rebuild(x)}this.result=new c(w,x,S),this.helpers={...b,postcss:b,result:this.result},this.plugins=this.processor.plugins.map(M=>typeof M=="object"&&M.prepare?{...M,...M.prepare(this.result)}:M)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(w){return this.async().catch(w)}finally(w){return this.async().then(w,w)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(w,y){let S=this.result.lastPlugin;try{y&&y.addToError(w),this.error=w,w.name==="CssSyntaxError"&&!w.plugin?(w.plugin=S.postcssPlugin,w.setMessage()):S.postcssVersion}catch(x){console&&console.error&&console.error(x)}return w}prepareVisitors(){this.listeners={};let w=(y,S,x)=>{this.listeners[S]||(this.listeners[S]=[]),this.listeners[S].push([y,x])};for(let y of this.plugins)if(typeof y=="object")for(let S in y){if(!h[S]&&/^[A-Z]/.test(S))throw new Error(`Unknown event ${S} in ${y.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!f[S])if(typeof y[S]=="object")for(let x in y[S])x==="*"?w(y,S,y[S][x]):w(y,S+"-"+x.toLowerCase(),y[S][x]);else typeof y[S]=="function"&&w(y,S,y[S])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let w=0;w<this.plugins.length;w++){let y=this.plugins[w],S=this.runOnRoot(y);if(m(S))try{await S}catch(x){throw this.handleError(x)}}if(this.prepareVisitors(),this.hasListener){let w=this.result.root;for(;!w[e];){w[e]=!0;let y=[g(w)];for(;y.length>0;){let S=this.visitTick(y);if(m(S))try{await S}catch(x){let M=y[y.length-1].node;throw this.handleError(x,M)}}}if(this.listeners.OnceExit)for(let[y,S]of this.listeners.OnceExit){this.result.lastPlugin=y;try{if(w.type==="document"){let x=w.nodes.map(M=>S(M,this.helpers));await Promise.all(x)}else await S(w,this.helpers)}catch(x){throw this.handleError(x)}}}return this.processed=!0,this.stringify()}runOnRoot(w){this.result.lastPlugin=w;try{if(typeof w=="object"&&w.Once){if(this.result.root.type==="document"){let y=this.result.root.nodes.map(S=>w.Once(S,this.helpers));return m(y[0])?Promise.all(y):y}return w.Once(this.result.root,this.helpers)}else if(typeof w=="function")return w(this.result.root,this.result)}catch(y){throw this.handleError(y)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let w=this.result.opts,y=i;w.syntax&&(y=w.syntax.stringify),w.stringifier&&(y=w.stringifier),y.stringify&&(y=y.stringify);let x=new r(y,this.result.root,this.result.opts).generate();return this.result.css=x[0],this.result.map=x[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let w of this.plugins){let y=this.runOnRoot(w);if(m(y))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let w=this.result.root;for(;!w[e];)w[e]=!0,this.walkSync(w);if(this.listeners.OnceExit)if(w.type==="document")for(let y of w.nodes)this.visitSync(this.listeners.OnceExit,y);else this.visitSync(this.listeners.OnceExit,w)}return this.result}then(w,y){return this.async().then(w,y)}toString(){return this.css}visitSync(w,y){for(let[S,x]of w){this.result.lastPlugin=S;let M;try{M=x(y,this.helpers)}catch(T){throw this.handleError(T,y.proxyOf)}if(y.type!=="root"&&y.type!=="document"&&!y.parent)return!0;if(m(M))throw this.getAsyncError()}}visitTick(w){let y=w[w.length-1],{node:S,visitors:x}=y;if(S.type!=="root"&&S.type!=="document"&&!S.parent){w.pop();return}if(x.length>0&&y.visitorIndex<x.length){let[T,I]=x[y.visitorIndex];y.visitorIndex+=1,y.visitorIndex===x.length&&(y.visitors=[],y.visitorIndex=0),this.result.lastPlugin=T;try{return I(S.toProxy(),this.helpers)}catch(O){throw this.handleError(O,S)}}if(y.iterator!==0){let T=y.iterator,I;for(;I=S.nodes[S.indexes[T]];)if(S.indexes[T]+=1,!I[e]){I[e]=!0,w.push(g(I));return}y.iterator=0,delete S.indexes[T]}let M=y.events;for(;y.eventIndex<M.length;){let T=M[y.eventIndex];if(y.eventIndex+=1,T===o){S.nodes&&S.nodes.length&&(S[e]=!0,y.iterator=S.getIterator());return}else if(this.listeners[T]){y.visitors=this.listeners[T];return}}w.pop()}walkSync(w){w[e]=!0;let y=d(w);for(let S of y)if(S===o)w.nodes&&w.each(x=>{x[e]||this.walkSync(x)});else{let x=this.listeners[S];if(x&&this.visitSync(x,w.toProxy()))return}}warnings(){return this.sync().warnings()}get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}}return v.registerPostcss=E=>{b=E},jn=v,v.default=v,p.registerLazyResult(v),s.registerLazyResult(v),jn}var Vn,ko;function nd(){if(ko)return Vn;ko=1;let e=Da(),t=Cr(),r=_a(),i=Hi(),n=qi();class s{constructor(c,l,p){l=l.toString(),this.stringified=!1,this._processor=c,this._css=l,this._opts=p,this._map=void 0;let a,h=t;this.result=new n(this._processor,a,this._opts),this.result.css=l;let f=this;Object.defineProperty(this.result,"root",{get(){return f.root}});let o=new e(h,a,this._opts,l);if(o.isMap()){let[m,d]=o.generate();m&&(this.result.css=m),d&&(this.result.map=d)}else o.clearAnnotation(),this.result.css=o.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(c){return this.async().catch(c)}finally(c){return this.async().then(c,c)}sync(){if(this.error)throw this.error;return this.result}then(c,l){return this.async().then(c,l)}toString(){return this._css}warnings(){return[]}get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let c,l=i;try{c=l(this._css,this._opts)}catch(p){this.error=p}if(this.error)throw this.error;return this._root=c,c}get[Symbol.toStringTag](){return"NoWorkResult"}}return Vn=s,s.default=s,Vn}var Hn,Oo;function id(){if(Oo)return Hn;Oo=1;let e=nd(),t=Fa(),r=zi(),i=_t();class n{constructor(u=[]){this.version="8.4.38",this.plugins=this.normalize(u)}normalize(u){let c=[];for(let l of u)if(l.postcss===!0?l=l():l.postcss&&(l=l.postcss),typeof l=="object"&&Array.isArray(l.plugins))c=c.concat(l.plugins);else if(typeof l=="object"&&l.postcssPlugin)c.push(l);else if(typeof l=="function")c.push(l);else if(!(typeof l=="object"&&(l.parse||l.stringify)))throw new Error(l+" is not a PostCSS plugin");return c}process(u,c={}){return!this.plugins.length&&!c.parser&&!c.stringifier&&!c.syntax?new e(this,u,c):new t(this,u,c)}use(u){return this.plugins=this.plugins.concat(this.normalize([u])),this}}return Hn=n,n.default=n,i.registerProcessor(n),r.registerProcessor(n),Hn}var Gn,Io;function sd(){if(Io)return Gn;Io=1;let e=xr(),t=Aa(),r=Tr(),i=ji(),n=Rr(),s=_t(),u=Vi();function c(l,p){if(Array.isArray(l))return l.map(f=>c(f));let{inputs:a,...h}=l;if(a){p=[];for(let f of a){let o={...f,__proto__:n.prototype};o.map&&(o.map={...o.map,__proto__:t.prototype}),p.push(o)}}if(h.nodes&&(h.nodes=l.nodes.map(f=>c(f,p))),h.source){let{inputId:f,...o}=h.source;h.source=o,f!=null&&(h.source.input=p[f])}if(h.type==="root")return new s(h);if(h.type==="decl")return new e(h);if(h.type==="rule")return new u(h);if(h.type==="comment")return new r(h);if(h.type==="atrule")return new i(h);throw new Error("Unknown node type: "+l.type)}return Gn=c,c.default=c,Gn}var Yn,Ao;function od(){if(Ao)return Yn;Ao=1;let e=$i(),t=xr(),r=Fa(),i=Ve(),n=id(),s=Cr(),u=sd(),c=zi(),l=La(),p=Tr(),a=ji(),h=qi(),f=Rr(),o=Hi(),m=Pa(),d=Vi(),g=_t(),C=Er();function b(...v){return v.length===1&&Array.isArray(v[0])&&(v=v[0]),new n(v)}return b.plugin=function(E,w){let y=!1;function S(...M){console&&console.warn&&!y&&(y=!0,console.warn(E+`: postcss.plugin was deprecated. Migration guide:
25
25
  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:
26
- https://www.w3ctech.com/topic/2226`));let T=w(...M);return T.postcssPlugin=E,T.postcssVersion=new n().version,T}let x;return Object.defineProperty(S,"postcss",{get(){return x||(x=S()),x}}),S.process=function(M,T,I){return b([S(I)]).process(M,T)},S},b.stringify=l,b.parse=s,b.fromJSON=u,b.list=m,b.comment=v=>new p(v),b.atRule=v=>new o(v),b.decl=v=>new t(v),b.rule=v=>new d(v),b.root=v=>new g(v),b.document=v=>new c(v),b.CssSyntaxError=e,b.Declaration=t,b.Container=i,b.Processor=n,b.Document=c,b.Comment=p,b.Warning=a,b.AtRule=o,b.Result=h,b.Input=f,b.Rule=d,b.Root=g,b.Node=C,r.registerPostcss(b),Bn=b,b.default=b,Bn}var If=kf(),H=wf(If);H.stringify;H.fromJSON;H.plugin;H.parse;H.list;H.document;H.comment;H.atRule;H.rule;H.decl;H.root;H.CssSyntaxError;H.Declaration;H.Container;H.Processor;H.Document;H.Comment;H.Warning;H.AtRule;H.Result;H.Input;H.Rule;H.Root;H.Node;var Af=Object.defineProperty,Df=(e,t,r)=>t in e?Af(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,me=(e,t,r)=>Df(e,typeof t!="symbol"?t+"":t,r);Date.now().toString();function _f(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Lf(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function i(){return this instanceof i?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(i){var n=Object.getOwnPropertyDescriptor(e,i);Object.defineProperty(r,i,n.get?n:{enumerable:!0,get:function(){return e[i]}})}),r}var Qt={exports:{}},yo;function Pf(){if(yo)return Qt.exports;yo=1;var e=String,t=function(){return{isColorSupported:!1,reset:e,bold:e,dim:e,italic:e,underline:e,inverse:e,hidden:e,strikethrough:e,black:e,red:e,green:e,yellow:e,blue:e,magenta:e,cyan:e,white:e,gray:e,bgBlack:e,bgRed:e,bgGreen:e,bgYellow:e,bgBlue:e,bgMagenta:e,bgCyan:e,bgWhite:e}};return Qt.exports=t(),Qt.exports.createColors=t,Qt.exports}var Ff={},Uf=Object.freeze(Object.defineProperty({__proto__:null,default:Ff},Symbol.toStringTag,{value:"Module"})),Ce=Lf(Uf),$n,bo;function Ui(){if(bo)return $n;bo=1;let e=Pf(),t=Ce;class r extends Error{constructor(n,l,u,c,a,p){super(n),this.name="CssSyntaxError",this.reason=n,a&&(this.file=a),c&&(this.source=c),p&&(this.plugin=p),typeof l<"u"&&typeof u<"u"&&(typeof l=="number"?(this.line=l,this.column=u):(this.line=l.line,this.column=l.column,this.endLine=u.line,this.endColumn=u.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,r)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line<"u"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(n){if(!this.source)return"";let l=this.source;n==null&&(n=e.isColorSupported),t&&n&&(l=t(l));let u=l.split(/\r?\n/),c=Math.max(this.line-3,0),a=Math.min(this.line+2,u.length),p=String(a).length,o,h;if(n){let{bold:f,gray:s,red:m}=e.createColors(!0);o=d=>f(m(d)),h=d=>s(d)}else o=h=f=>f;return u.slice(c,a).map((f,s)=>{let m=c+1+s,d=" "+(" "+m).slice(-p)+" | ";if(m===this.line){let g=h(d.replace(/\d/g," "))+f.slice(0,this.column-1).replace(/[^\t]/g," ");return o(">")+h(d)+f+`
27
- `+g+o("^")}return" "+h(d)+f}).join(`
26
+ https://www.w3ctech.com/topic/2226`));let T=w(...M);return T.postcssPlugin=E,T.postcssVersion=new n().version,T}let x;return Object.defineProperty(S,"postcss",{get(){return x||(x=S()),x}}),S.process=function(M,T,I){return b([S(I)]).process(M,T)},S},b.stringify=s,b.parse=o,b.fromJSON=u,b.list=m,b.comment=v=>new p(v),b.atRule=v=>new a(v),b.decl=v=>new t(v),b.rule=v=>new d(v),b.root=v=>new g(v),b.document=v=>new c(v),b.CssSyntaxError=e,b.Declaration=t,b.Container=i,b.Processor=n,b.Document=c,b.Comment=p,b.Warning=l,b.AtRule=a,b.Result=h,b.Input=f,b.Rule=d,b.Root=g,b.Node=C,r.registerPostcss(b),Yn=b,b.default=b,Yn}var ad=od(),H=Xf(ad);H.stringify;H.fromJSON;H.plugin;H.parse;H.list;H.document;H.comment;H.atRule;H.rule;H.decl;H.root;H.CssSyntaxError;H.Declaration;H.Container;H.Processor;H.Document;H.Comment;H.Warning;H.AtRule;H.Result;H.Input;H.Rule;H.Root;H.Node;var ld=Object.defineProperty,ud=(e,t,r)=>t in e?ld(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,ge=(e,t,r)=>ud(e,typeof t!="symbol"?t+"":t,r);Date.now().toString();function cd(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function fd(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function i(){return this instanceof i?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(i){var n=Object.getOwnPropertyDescriptor(e,i);Object.defineProperty(r,i,n.get?n:{enumerable:!0,get:function(){return e[i]}})}),r}var or={exports:{}},Do;function dd(){if(Do)return or.exports;Do=1;var e=String,t=function(){return{isColorSupported:!1,reset:e,bold:e,dim:e,italic:e,underline:e,inverse:e,hidden:e,strikethrough:e,black:e,red:e,green:e,yellow:e,blue:e,magenta:e,cyan:e,white:e,gray:e,bgBlack:e,bgRed:e,bgGreen:e,bgYellow:e,bgBlue:e,bgMagenta:e,bgCyan:e,bgWhite:e}};return or.exports=t(),or.exports.createColors=t,or.exports}var hd={},pd=Object.freeze(Object.defineProperty({__proto__:null,default:hd},Symbol.toStringTag,{value:"Module"})),Re=fd(pd),Xn,_o;function Gi(){if(_o)return Xn;_o=1;let e=dd(),t=Re;class r extends Error{constructor(n,s,u,c,l,p){super(n),this.name="CssSyntaxError",this.reason=n,l&&(this.file=l),c&&(this.source=c),p&&(this.plugin=p),typeof s<"u"&&typeof u<"u"&&(typeof s=="number"?(this.line=s,this.column=u):(this.line=s.line,this.column=s.column,this.endLine=u.line,this.endColumn=u.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,r)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line<"u"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(n){if(!this.source)return"";let s=this.source;n==null&&(n=e.isColorSupported),t&&n&&(s=t(s));let u=s.split(/\r?\n/),c=Math.max(this.line-3,0),l=Math.min(this.line+2,u.length),p=String(l).length,a,h;if(n){let{bold:f,gray:o,red:m}=e.createColors(!0);a=d=>f(m(d)),h=d=>o(d)}else a=h=f=>f;return u.slice(c,l).map((f,o)=>{let m=c+1+o,d=" "+(" "+m).slice(-p)+" | ";if(m===this.line){let g=h(d.replace(/\d/g," "))+f.slice(0,this.column-1).replace(/[^\t]/g," ");return a(">")+h(d)+f+`
27
+ `+g+a("^")}return" "+h(d)+f}).join(`
28
28
  `)}toString(){let n=this.showSourceCode();return n&&(n=`
29
29
 
30
30
  `+n+`
31
- `),this.name+": "+this.message+n}}return $n=r,r.default=r,$n}var Zt={},wo;function Bi(){return wo||(wo=1,Zt.isClean=Symbol("isClean"),Zt.my=Symbol("my")),Zt}var Wn,vo;function Ca(){if(vo)return Wn;vo=1;let e={after:`
31
+ `),this.name+": "+this.message+n}}return Xn=r,r.default=r,Xn}var ar={},Lo;function Yi(){return Lo||(Lo=1,ar.isClean=Symbol("isClean"),ar.my=Symbol("my")),ar}var Jn,Po;function Ua(){if(Po)return Jn;Po=1;let e={after:`
32
32
  `,beforeClose:`
33
33
  `,beforeComment:`
34
34
  `,beforeDecl:`
35
35
  `,beforeOpen:" ",beforeRule:`
36
- `,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function t(i){return i[0].toUpperCase()+i.slice(1)}class r{constructor(n){this.builder=n}atrule(n,l){let u="@"+n.name,c=n.params?this.rawValue(n,"params"):"";if(typeof n.raws.afterName<"u"?u+=n.raws.afterName:c&&(u+=" "),n.nodes)this.block(n,u+c);else{let a=(n.raws.between||"")+(l?";":"");this.builder(u+c+a,n)}}beforeAfter(n,l){let u;n.type==="decl"?u=this.raw(n,null,"beforeDecl"):n.type==="comment"?u=this.raw(n,null,"beforeComment"):l==="before"?u=this.raw(n,null,"beforeRule"):u=this.raw(n,null,"beforeClose");let c=n.parent,a=0;for(;c&&c.type!=="root";)a+=1,c=c.parent;if(u.includes(`
37
- `)){let p=this.raw(n,null,"indent");if(p.length)for(let o=0;o<a;o++)u+=p}return u}block(n,l){let u=this.raw(n,"between","beforeOpen");this.builder(l+u+"{",n,"start");let c;n.nodes&&n.nodes.length?(this.body(n),c=this.raw(n,"after")):c=this.raw(n,"after","emptyBody"),c&&this.builder(c),this.builder("}",n,"end")}body(n){let l=n.nodes.length-1;for(;l>0&&n.nodes[l].type==="comment";)l-=1;let u=this.raw(n,"semicolon");for(let c=0;c<n.nodes.length;c++){let a=n.nodes[c],p=this.raw(a,"before");p&&this.builder(p),this.stringify(a,l!==c||u)}}comment(n){let l=this.raw(n,"left","commentLeft"),u=this.raw(n,"right","commentRight");this.builder("/*"+l+n.text+u+"*/",n)}decl(n,l){let u=this.raw(n,"between","colon"),c=n.prop+u+this.rawValue(n,"value");n.important&&(c+=n.raws.important||" !important"),l&&(c+=";"),this.builder(c,n)}document(n){this.body(n)}raw(n,l,u){let c;if(u||(u=l),l&&(c=n.raws[l],typeof c<"u"))return c;let a=n.parent;if(u==="before"&&(!a||a.type==="root"&&a.first===n||a&&a.type==="document"))return"";if(!a)return e[u];let p=n.root();if(p.rawCache||(p.rawCache={}),typeof p.rawCache[u]<"u")return p.rawCache[u];if(u==="before"||u==="after")return this.beforeAfter(n,u);{let o="raw"+t(u);this[o]?c=this[o](p,n):p.walk(h=>{if(c=h.raws[l],typeof c<"u")return!1})}return typeof c>"u"&&(c=e[u]),p.rawCache[u]=c,c}rawBeforeClose(n){let l;return n.walk(u=>{if(u.nodes&&u.nodes.length>0&&typeof u.raws.after<"u")return l=u.raws.after,l.includes(`
38
- `)&&(l=l.replace(/[^\n]+$/,"")),!1}),l&&(l=l.replace(/\S/g,"")),l}rawBeforeComment(n,l){let u;return n.walkComments(c=>{if(typeof c.raws.before<"u")return u=c.raws.before,u.includes(`
39
- `)&&(u=u.replace(/[^\n]+$/,"")),!1}),typeof u>"u"?u=this.raw(l,null,"beforeDecl"):u&&(u=u.replace(/\S/g,"")),u}rawBeforeDecl(n,l){let u;return n.walkDecls(c=>{if(typeof c.raws.before<"u")return u=c.raws.before,u.includes(`
40
- `)&&(u=u.replace(/[^\n]+$/,"")),!1}),typeof u>"u"?u=this.raw(l,null,"beforeRule"):u&&(u=u.replace(/\S/g,"")),u}rawBeforeOpen(n){let l;return n.walk(u=>{if(u.type!=="decl"&&(l=u.raws.between,typeof l<"u"))return!1}),l}rawBeforeRule(n){let l;return n.walk(u=>{if(u.nodes&&(u.parent!==n||n.first!==u)&&typeof u.raws.before<"u")return l=u.raws.before,l.includes(`
41
- `)&&(l=l.replace(/[^\n]+$/,"")),!1}),l&&(l=l.replace(/\S/g,"")),l}rawColon(n){let l;return n.walkDecls(u=>{if(typeof u.raws.between<"u")return l=u.raws.between.replace(/[^\s:]/g,""),!1}),l}rawEmptyBody(n){let l;return n.walk(u=>{if(u.nodes&&u.nodes.length===0&&(l=u.raws.after,typeof l<"u"))return!1}),l}rawIndent(n){if(n.raws.indent)return n.raws.indent;let l;return n.walk(u=>{let c=u.parent;if(c&&c!==n&&c.parent&&c.parent===n&&typeof u.raws.before<"u"){let a=u.raws.before.split(`
42
- `);return l=a[a.length-1],l=l.replace(/\S/g,""),!1}}),l}rawSemicolon(n){let l;return n.walk(u=>{if(u.nodes&&u.nodes.length&&u.last.type==="decl"&&(l=u.raws.semicolon,typeof l<"u"))return!1}),l}rawValue(n,l){let u=n[l],c=n.raws[l];return c&&c.value===u?c.raw:u}root(n){this.body(n),n.raws.after&&this.builder(n.raws.after)}rule(n){this.block(n,this.rawValue(n,"selector")),n.raws.ownSemicolon&&this.builder(n.raws.ownSemicolon,n,"end")}stringify(n,l){if(!this[n.type])throw new Error("Unknown AST node type "+n.type+". Maybe you need to change PostCSS stringifier.");this[n.type](n,l)}}return Wn=r,r.default=r,Wn}var zn,So;function wr(){if(So)return zn;So=1;let e=Ca();function t(r,i){new e(i).stringify(r)}return zn=t,t.default=t,zn}var qn,Co;function vr(){if(Co)return qn;Co=1;let{isClean:e,my:t}=Bi(),r=Ui(),i=Ca(),n=wr();function l(c,a){let p=new c.constructor;for(let o in c){if(!Object.prototype.hasOwnProperty.call(c,o)||o==="proxyCache")continue;let h=c[o],f=typeof h;o==="parent"&&f==="object"?a&&(p[o]=a):o==="source"?p[o]=h:Array.isArray(h)?p[o]=h.map(s=>l(s,p)):(f==="object"&&h!==null&&(h=l(h)),p[o]=h)}return p}class u{constructor(a={}){this.raws={},this[e]=!1,this[t]=!0;for(let p in a)if(p==="nodes"){this.nodes=[];for(let o of a[p])typeof o.clone=="function"?this.append(o.clone()):this.append(o)}else this[p]=a[p]}addToError(a){if(a.postcssNode=this,a.stack&&this.source&&/\n\s{4}at /.test(a.stack)){let p=this.source;a.stack=a.stack.replace(/\n\s{4}at /,`$&${p.input.from}:${p.start.line}:${p.start.column}$&`)}return a}after(a){return this.parent.insertAfter(this,a),this}assign(a={}){for(let p in a)this[p]=a[p];return this}before(a){return this.parent.insertBefore(this,a),this}cleanRaws(a){delete this.raws.before,delete this.raws.after,a||delete this.raws.between}clone(a={}){let p=l(this);for(let o in a)p[o]=a[o];return p}cloneAfter(a={}){let p=this.clone(a);return this.parent.insertAfter(this,p),p}cloneBefore(a={}){let p=this.clone(a);return this.parent.insertBefore(this,p),p}error(a,p={}){if(this.source){let{end:o,start:h}=this.rangeBy(p);return this.source.input.error(a,{column:h.column,line:h.line},{column:o.column,line:o.line},p)}return new r(a)}getProxyProcessor(){return{get(a,p){return p==="proxyOf"?a:p==="root"?()=>a.root().toProxy():a[p]},set(a,p,o){return a[p]===o||(a[p]=o,(p==="prop"||p==="value"||p==="name"||p==="params"||p==="important"||p==="text")&&a.markDirty()),!0}}}markDirty(){if(this[e]){this[e]=!1;let a=this;for(;a=a.parent;)a[e]=!1}}next(){if(!this.parent)return;let a=this.parent.index(this);return this.parent.nodes[a+1]}positionBy(a,p){let o=this.source.start;if(a.index)o=this.positionInside(a.index,p);else if(a.word){p=this.toString();let h=p.indexOf(a.word);h!==-1&&(o=this.positionInside(h,p))}return o}positionInside(a,p){let o=p||this.toString(),h=this.source.start.column,f=this.source.start.line;for(let s=0;s<a;s++)o[s]===`
43
- `?(h=1,f+=1):h+=1;return{column:h,line:f}}prev(){if(!this.parent)return;let a=this.parent.index(this);return this.parent.nodes[a-1]}rangeBy(a){let p={column:this.source.start.column,line:this.source.start.line},o=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:p.column+1,line:p.line};if(a.word){let h=this.toString(),f=h.indexOf(a.word);f!==-1&&(p=this.positionInside(f,h),o=this.positionInside(f+a.word.length,h))}else a.start?p={column:a.start.column,line:a.start.line}:a.index&&(p=this.positionInside(a.index)),a.end?o={column:a.end.column,line:a.end.line}:typeof a.endIndex=="number"?o=this.positionInside(a.endIndex):a.index&&(o=this.positionInside(a.index+1));return(o.line<p.line||o.line===p.line&&o.column<=p.column)&&(o={column:p.column+1,line:p.line}),{end:o,start:p}}raw(a,p){return new i().raw(this,a,p)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...a){if(this.parent){let p=this,o=!1;for(let h of a)h===this?o=!0:o?(this.parent.insertAfter(p,h),p=h):this.parent.insertBefore(p,h);o||this.remove()}return this}root(){let a=this;for(;a.parent&&a.parent.type!=="document";)a=a.parent;return a}toJSON(a,p){let o={},h=p==null;p=p||new Map;let f=0;for(let s in this){if(!Object.prototype.hasOwnProperty.call(this,s)||s==="parent"||s==="proxyCache")continue;let m=this[s];if(Array.isArray(m))o[s]=m.map(d=>typeof d=="object"&&d.toJSON?d.toJSON(null,p):d);else if(typeof m=="object"&&m.toJSON)o[s]=m.toJSON(null,p);else if(s==="source"){let d=p.get(m.input);d==null&&(d=f,p.set(m.input,f),f++),o[s]={end:m.end,inputId:d,start:m.start}}else o[s]=m}return h&&(o.inputs=[...p.keys()].map(s=>s.toJSON())),o}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(a=n){a.stringify&&(a=a.stringify);let p="";return a(this,o=>{p+=o}),p}warn(a,p,o){let h={node:this};for(let f in o)h[f]=o[f];return a.warn(p,h)}get proxyOf(){return this}}return qn=u,u.default=u,qn}var jn,Eo;function Sr(){if(Eo)return jn;Eo=1;let e=vr();class t extends e{constructor(i){i&&typeof i.value<"u"&&typeof i.value!="string"&&(i={...i,value:String(i.value)}),super(i),this.type="decl"}get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}}return jn=t,t.default=t,jn}var Vn,xo;function Bf(){if(xo)return Vn;xo=1;let e="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";return Vn={nanoid:(i=21)=>{let n="",l=i;for(;l--;)n+=e[Math.random()*64|0];return n},customAlphabet:(i,n=21)=>(l=n)=>{let u="",c=l;for(;c--;)u+=i[Math.random()*i.length|0];return u}},Vn}var Hn,Ro;function Ea(){if(Ro)return Hn;Ro=1;let{SourceMapConsumer:e,SourceMapGenerator:t}=Ce,{existsSync:r,readFileSync:i}=Ce,{dirname:n,join:l}=Ce;function u(a){return Buffer?Buffer.from(a,"base64").toString():window.atob(a)}class c{constructor(p,o){if(o.map===!1)return;this.loadAnnotation(p),this.inline=this.startWith(this.annotation,"data:");let h=o.map?o.map.prev:void 0,f=this.loadMap(o.from,h);!this.mapFile&&o.from&&(this.mapFile=o.from),this.mapFile&&(this.root=n(this.mapFile)),f&&(this.text=f)}consumer(){return this.consumerCache||(this.consumerCache=new e(this.text)),this.consumerCache}decodeInline(p){let o=/^data:application\/json;charset=utf-?8;base64,/,h=/^data:application\/json;base64,/,f=/^data:application\/json;charset=utf-?8,/,s=/^data:application\/json,/;if(f.test(p)||s.test(p))return decodeURIComponent(p.substr(RegExp.lastMatch.length));if(o.test(p)||h.test(p))return u(p.substr(RegExp.lastMatch.length));let m=p.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+m)}getAnnotationURL(p){return p.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(p){return typeof p!="object"?!1:typeof p.mappings=="string"||typeof p._mappings=="string"||Array.isArray(p.sections)}loadAnnotation(p){let o=p.match(/\/\*\s*# sourceMappingURL=/gm);if(!o)return;let h=p.lastIndexOf(o.pop()),f=p.indexOf("*/",h);h>-1&&f>-1&&(this.annotation=this.getAnnotationURL(p.substring(h,f)))}loadFile(p){if(this.root=n(p),r(p))return this.mapFile=p,i(p,"utf-8").toString().trim()}loadMap(p,o){if(o===!1)return!1;if(o){if(typeof o=="string")return o;if(typeof o=="function"){let h=o(p);if(h){let f=this.loadFile(h);if(!f)throw new Error("Unable to load previous source map: "+h.toString());return f}}else{if(o instanceof e)return t.fromSourceMap(o).toString();if(o instanceof t)return o.toString();if(this.isMap(o))return JSON.stringify(o);throw new Error("Unsupported previous source map format: "+o.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let h=this.annotation;return p&&(h=l(n(p),h)),this.loadFile(h)}}}startWith(p,o){return p?p.substr(0,o.length)===o:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}}return Hn=c,c.default=c,Hn}var Gn,To;function Cr(){if(To)return Gn;To=1;let{SourceMapConsumer:e,SourceMapGenerator:t}=Ce,{fileURLToPath:r,pathToFileURL:i}=Ce,{isAbsolute:n,resolve:l}=Ce,{nanoid:u}=Bf(),c=Ce,a=Ui(),p=Ea(),o=Symbol("fromOffsetCache"),h=!!(e&&t),f=!!(l&&n);class s{constructor(d,g={}){if(d===null||typeof d>"u"||typeof d=="object"&&!d.toString)throw new Error(`PostCSS received ${d} instead of CSS string`);if(this.css=d.toString(),this.css[0]==="\uFEFF"||this.css[0]==="\uFFFE"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,g.from&&(!f||/^\w+:\/\//.test(g.from)||n(g.from)?this.file=g.from:this.file=l(g.from)),f&&h){let C=new p(this.css,g);if(C.text){this.map=C;let b=C.consumer().file;!this.file&&b&&(this.file=this.mapResolve(b))}}this.file||(this.id="<input css "+u(6)+">"),this.map&&(this.map.file=this.from)}error(d,g,C,b={}){let v,E,w;if(g&&typeof g=="object"){let S=g,x=C;if(typeof S.offset=="number"){let M=this.fromOffset(S.offset);g=M.line,C=M.col}else g=S.line,C=S.column;if(typeof x.offset=="number"){let M=this.fromOffset(x.offset);E=M.line,w=M.col}else E=x.line,w=x.column}else if(!C){let S=this.fromOffset(g);g=S.line,C=S.col}let y=this.origin(g,C,E,w);return y?v=new a(d,y.endLine===void 0?y.line:{column:y.column,line:y.line},y.endLine===void 0?y.column:{column:y.endColumn,line:y.endLine},y.source,y.file,b.plugin):v=new a(d,E===void 0?g:{column:C,line:g},E===void 0?C:{column:w,line:E},this.css,this.file,b.plugin),v.input={column:C,endColumn:w,endLine:E,line:g,source:this.css},this.file&&(i&&(v.input.url=i(this.file).toString()),v.input.file=this.file),v}fromOffset(d){let g,C;if(this[o])C=this[o];else{let v=this.css.split(`
44
- `);C=new Array(v.length);let E=0;for(let w=0,y=v.length;w<y;w++)C[w]=E,E+=v[w].length+1;this[o]=C}g=C[C.length-1];let b=0;if(d>=g)b=C.length-1;else{let v=C.length-2,E;for(;b<v;)if(E=b+(v-b>>1),d<C[E])v=E-1;else if(d>=C[E+1])b=E+1;else{b=E;break}}return{col:d-C[b]+1,line:b+1}}mapResolve(d){return/^\w+:\/\//.test(d)?d:l(this.map.consumer().sourceRoot||this.map.root||".",d)}origin(d,g,C,b){if(!this.map)return!1;let v=this.map.consumer(),E=v.originalPositionFor({column:g,line:d});if(!E.source)return!1;let w;typeof C=="number"&&(w=v.originalPositionFor({column:b,line:C}));let y;n(E.source)?y=i(E.source):y=new URL(E.source,this.map.consumer().sourceRoot||i(this.map.mapFile));let S={column:E.column,endColumn:w&&w.column,endLine:w&&w.line,line:E.line,url:y.toString()};if(y.protocol==="file:")if(r)S.file=r(y);else throw new Error("file: protocol is not available in this PostCSS build");let x=v.sourceContentFor(E.source);return x&&(S.source=x),S}toJSON(){let d={};for(let g of["hasBOM","css","file","id"])this[g]!=null&&(d[g]=this[g]);return this.map&&(d.map={...this.map},d.map.consumerCache&&(d.map.consumerCache=void 0)),d}get from(){return this.file||this.id}}return Gn=s,s.default=s,c&&c.registerInput&&c.registerInput(s),Gn}var Yn,Mo;function xa(){if(Mo)return Yn;Mo=1;let{SourceMapConsumer:e,SourceMapGenerator:t}=Ce,{dirname:r,relative:i,resolve:n,sep:l}=Ce,{pathToFileURL:u}=Ce,c=Cr(),a=!!(e&&t),p=!!(r&&n&&i&&l);class o{constructor(f,s,m,d){this.stringify=f,this.mapOpts=m.map||{},this.root=s,this.opts=m,this.css=d,this.originalCSS=d,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let f;this.isInline()?f="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?f=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?f=this.mapOpts.annotation(this.opts.to,this.root):f=this.outputFile()+".map";let s=`
36
+ `,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function t(i){return i[0].toUpperCase()+i.slice(1)}class r{constructor(n){this.builder=n}atrule(n,s){let u="@"+n.name,c=n.params?this.rawValue(n,"params"):"";if(typeof n.raws.afterName<"u"?u+=n.raws.afterName:c&&(u+=" "),n.nodes)this.block(n,u+c);else{let l=(n.raws.between||"")+(s?";":"");this.builder(u+c+l,n)}}beforeAfter(n,s){let u;n.type==="decl"?u=this.raw(n,null,"beforeDecl"):n.type==="comment"?u=this.raw(n,null,"beforeComment"):s==="before"?u=this.raw(n,null,"beforeRule"):u=this.raw(n,null,"beforeClose");let c=n.parent,l=0;for(;c&&c.type!=="root";)l+=1,c=c.parent;if(u.includes(`
37
+ `)){let p=this.raw(n,null,"indent");if(p.length)for(let a=0;a<l;a++)u+=p}return u}block(n,s){let u=this.raw(n,"between","beforeOpen");this.builder(s+u+"{",n,"start");let c;n.nodes&&n.nodes.length?(this.body(n),c=this.raw(n,"after")):c=this.raw(n,"after","emptyBody"),c&&this.builder(c),this.builder("}",n,"end")}body(n){let s=n.nodes.length-1;for(;s>0&&n.nodes[s].type==="comment";)s-=1;let u=this.raw(n,"semicolon");for(let c=0;c<n.nodes.length;c++){let l=n.nodes[c],p=this.raw(l,"before");p&&this.builder(p),this.stringify(l,s!==c||u)}}comment(n){let s=this.raw(n,"left","commentLeft"),u=this.raw(n,"right","commentRight");this.builder("/*"+s+n.text+u+"*/",n)}decl(n,s){let u=this.raw(n,"between","colon"),c=n.prop+u+this.rawValue(n,"value");n.important&&(c+=n.raws.important||" !important"),s&&(c+=";"),this.builder(c,n)}document(n){this.body(n)}raw(n,s,u){let c;if(u||(u=s),s&&(c=n.raws[s],typeof c<"u"))return c;let l=n.parent;if(u==="before"&&(!l||l.type==="root"&&l.first===n||l&&l.type==="document"))return"";if(!l)return e[u];let p=n.root();if(p.rawCache||(p.rawCache={}),typeof p.rawCache[u]<"u")return p.rawCache[u];if(u==="before"||u==="after")return this.beforeAfter(n,u);{let a="raw"+t(u);this[a]?c=this[a](p,n):p.walk(h=>{if(c=h.raws[s],typeof c<"u")return!1})}return typeof c>"u"&&(c=e[u]),p.rawCache[u]=c,c}rawBeforeClose(n){let s;return n.walk(u=>{if(u.nodes&&u.nodes.length>0&&typeof u.raws.after<"u")return s=u.raws.after,s.includes(`
38
+ `)&&(s=s.replace(/[^\n]+$/,"")),!1}),s&&(s=s.replace(/\S/g,"")),s}rawBeforeComment(n,s){let u;return n.walkComments(c=>{if(typeof c.raws.before<"u")return u=c.raws.before,u.includes(`
39
+ `)&&(u=u.replace(/[^\n]+$/,"")),!1}),typeof u>"u"?u=this.raw(s,null,"beforeDecl"):u&&(u=u.replace(/\S/g,"")),u}rawBeforeDecl(n,s){let u;return n.walkDecls(c=>{if(typeof c.raws.before<"u")return u=c.raws.before,u.includes(`
40
+ `)&&(u=u.replace(/[^\n]+$/,"")),!1}),typeof u>"u"?u=this.raw(s,null,"beforeRule"):u&&(u=u.replace(/\S/g,"")),u}rawBeforeOpen(n){let s;return n.walk(u=>{if(u.type!=="decl"&&(s=u.raws.between,typeof s<"u"))return!1}),s}rawBeforeRule(n){let s;return n.walk(u=>{if(u.nodes&&(u.parent!==n||n.first!==u)&&typeof u.raws.before<"u")return s=u.raws.before,s.includes(`
41
+ `)&&(s=s.replace(/[^\n]+$/,"")),!1}),s&&(s=s.replace(/\S/g,"")),s}rawColon(n){let s;return n.walkDecls(u=>{if(typeof u.raws.between<"u")return s=u.raws.between.replace(/[^\s:]/g,""),!1}),s}rawEmptyBody(n){let s;return n.walk(u=>{if(u.nodes&&u.nodes.length===0&&(s=u.raws.after,typeof s<"u"))return!1}),s}rawIndent(n){if(n.raws.indent)return n.raws.indent;let s;return n.walk(u=>{let c=u.parent;if(c&&c!==n&&c.parent&&c.parent===n&&typeof u.raws.before<"u"){let l=u.raws.before.split(`
42
+ `);return s=l[l.length-1],s=s.replace(/\S/g,""),!1}}),s}rawSemicolon(n){let s;return n.walk(u=>{if(u.nodes&&u.nodes.length&&u.last.type==="decl"&&(s=u.raws.semicolon,typeof s<"u"))return!1}),s}rawValue(n,s){let u=n[s],c=n.raws[s];return c&&c.value===u?c.raw:u}root(n){this.body(n),n.raws.after&&this.builder(n.raws.after)}rule(n){this.block(n,this.rawValue(n,"selector")),n.raws.ownSemicolon&&this.builder(n.raws.ownSemicolon,n,"end")}stringify(n,s){if(!this[n.type])throw new Error("Unknown AST node type "+n.type+". Maybe you need to change PostCSS stringifier.");this[n.type](n,s)}}return Jn=r,r.default=r,Jn}var Kn,Fo;function Mr(){if(Fo)return Kn;Fo=1;let e=Ua();function t(r,i){new e(i).stringify(r)}return Kn=t,t.default=t,Kn}var Qn,Uo;function Nr(){if(Uo)return Qn;Uo=1;let{isClean:e,my:t}=Yi(),r=Gi(),i=Ua(),n=Mr();function s(c,l){let p=new c.constructor;for(let a in c){if(!Object.prototype.hasOwnProperty.call(c,a)||a==="proxyCache")continue;let h=c[a],f=typeof h;a==="parent"&&f==="object"?l&&(p[a]=l):a==="source"?p[a]=h:Array.isArray(h)?p[a]=h.map(o=>s(o,p)):(f==="object"&&h!==null&&(h=s(h)),p[a]=h)}return p}class u{constructor(l={}){this.raws={},this[e]=!1,this[t]=!0;for(let p in l)if(p==="nodes"){this.nodes=[];for(let a of l[p])typeof a.clone=="function"?this.append(a.clone()):this.append(a)}else this[p]=l[p]}addToError(l){if(l.postcssNode=this,l.stack&&this.source&&/\n\s{4}at /.test(l.stack)){let p=this.source;l.stack=l.stack.replace(/\n\s{4}at /,`$&${p.input.from}:${p.start.line}:${p.start.column}$&`)}return l}after(l){return this.parent.insertAfter(this,l),this}assign(l={}){for(let p in l)this[p]=l[p];return this}before(l){return this.parent.insertBefore(this,l),this}cleanRaws(l){delete this.raws.before,delete this.raws.after,l||delete this.raws.between}clone(l={}){let p=s(this);for(let a in l)p[a]=l[a];return p}cloneAfter(l={}){let p=this.clone(l);return this.parent.insertAfter(this,p),p}cloneBefore(l={}){let p=this.clone(l);return this.parent.insertBefore(this,p),p}error(l,p={}){if(this.source){let{end:a,start:h}=this.rangeBy(p);return this.source.input.error(l,{column:h.column,line:h.line},{column:a.column,line:a.line},p)}return new r(l)}getProxyProcessor(){return{get(l,p){return p==="proxyOf"?l:p==="root"?()=>l.root().toProxy():l[p]},set(l,p,a){return l[p]===a||(l[p]=a,(p==="prop"||p==="value"||p==="name"||p==="params"||p==="important"||p==="text")&&l.markDirty()),!0}}}markDirty(){if(this[e]){this[e]=!1;let l=this;for(;l=l.parent;)l[e]=!1}}next(){if(!this.parent)return;let l=this.parent.index(this);return this.parent.nodes[l+1]}positionBy(l,p){let a=this.source.start;if(l.index)a=this.positionInside(l.index,p);else if(l.word){p=this.toString();let h=p.indexOf(l.word);h!==-1&&(a=this.positionInside(h,p))}return a}positionInside(l,p){let a=p||this.toString(),h=this.source.start.column,f=this.source.start.line;for(let o=0;o<l;o++)a[o]===`
43
+ `?(h=1,f+=1):h+=1;return{column:h,line:f}}prev(){if(!this.parent)return;let l=this.parent.index(this);return this.parent.nodes[l-1]}rangeBy(l){let p={column:this.source.start.column,line:this.source.start.line},a=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:p.column+1,line:p.line};if(l.word){let h=this.toString(),f=h.indexOf(l.word);f!==-1&&(p=this.positionInside(f,h),a=this.positionInside(f+l.word.length,h))}else l.start?p={column:l.start.column,line:l.start.line}:l.index&&(p=this.positionInside(l.index)),l.end?a={column:l.end.column,line:l.end.line}:typeof l.endIndex=="number"?a=this.positionInside(l.endIndex):l.index&&(a=this.positionInside(l.index+1));return(a.line<p.line||a.line===p.line&&a.column<=p.column)&&(a={column:p.column+1,line:p.line}),{end:a,start:p}}raw(l,p){return new i().raw(this,l,p)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...l){if(this.parent){let p=this,a=!1;for(let h of l)h===this?a=!0:a?(this.parent.insertAfter(p,h),p=h):this.parent.insertBefore(p,h);a||this.remove()}return this}root(){let l=this;for(;l.parent&&l.parent.type!=="document";)l=l.parent;return l}toJSON(l,p){let a={},h=p==null;p=p||new Map;let f=0;for(let o in this){if(!Object.prototype.hasOwnProperty.call(this,o)||o==="parent"||o==="proxyCache")continue;let m=this[o];if(Array.isArray(m))a[o]=m.map(d=>typeof d=="object"&&d.toJSON?d.toJSON(null,p):d);else if(typeof m=="object"&&m.toJSON)a[o]=m.toJSON(null,p);else if(o==="source"){let d=p.get(m.input);d==null&&(d=f,p.set(m.input,f),f++),a[o]={end:m.end,inputId:d,start:m.start}}else a[o]=m}return h&&(a.inputs=[...p.keys()].map(o=>o.toJSON())),a}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(l=n){l.stringify&&(l=l.stringify);let p="";return l(this,a=>{p+=a}),p}warn(l,p,a){let h={node:this};for(let f in a)h[f]=a[f];return l.warn(p,h)}get proxyOf(){return this}}return Qn=u,u.default=u,Qn}var Zn,Bo;function kr(){if(Bo)return Zn;Bo=1;let e=Nr();class t extends e{constructor(i){i&&typeof i.value<"u"&&typeof i.value!="string"&&(i={...i,value:String(i.value)}),super(i),this.type="decl"}get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}}return Zn=t,t.default=t,Zn}var ei,$o;function md(){if($o)return ei;$o=1;let e="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";return ei={nanoid:(i=21)=>{let n="",s=i;for(;s--;)n+=e[Math.random()*64|0];return n},customAlphabet:(i,n=21)=>(s=n)=>{let u="",c=s;for(;c--;)u+=i[Math.random()*i.length|0];return u}},ei}var ti,Wo;function Ba(){if(Wo)return ti;Wo=1;let{SourceMapConsumer:e,SourceMapGenerator:t}=Re,{existsSync:r,readFileSync:i}=Re,{dirname:n,join:s}=Re;function u(l){return Buffer?Buffer.from(l,"base64").toString():window.atob(l)}class c{constructor(p,a){if(a.map===!1)return;this.loadAnnotation(p),this.inline=this.startWith(this.annotation,"data:");let h=a.map?a.map.prev:void 0,f=this.loadMap(a.from,h);!this.mapFile&&a.from&&(this.mapFile=a.from),this.mapFile&&(this.root=n(this.mapFile)),f&&(this.text=f)}consumer(){return this.consumerCache||(this.consumerCache=new e(this.text)),this.consumerCache}decodeInline(p){let a=/^data:application\/json;charset=utf-?8;base64,/,h=/^data:application\/json;base64,/,f=/^data:application\/json;charset=utf-?8,/,o=/^data:application\/json,/;if(f.test(p)||o.test(p))return decodeURIComponent(p.substr(RegExp.lastMatch.length));if(a.test(p)||h.test(p))return u(p.substr(RegExp.lastMatch.length));let m=p.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+m)}getAnnotationURL(p){return p.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(p){return typeof p!="object"?!1:typeof p.mappings=="string"||typeof p._mappings=="string"||Array.isArray(p.sections)}loadAnnotation(p){let a=p.match(/\/\*\s*# sourceMappingURL=/gm);if(!a)return;let h=p.lastIndexOf(a.pop()),f=p.indexOf("*/",h);h>-1&&f>-1&&(this.annotation=this.getAnnotationURL(p.substring(h,f)))}loadFile(p){if(this.root=n(p),r(p))return this.mapFile=p,i(p,"utf-8").toString().trim()}loadMap(p,a){if(a===!1)return!1;if(a){if(typeof a=="string")return a;if(typeof a=="function"){let h=a(p);if(h){let f=this.loadFile(h);if(!f)throw new Error("Unable to load previous source map: "+h.toString());return f}}else{if(a instanceof e)return t.fromSourceMap(a).toString();if(a instanceof t)return a.toString();if(this.isMap(a))return JSON.stringify(a);throw new Error("Unsupported previous source map format: "+a.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let h=this.annotation;return p&&(h=s(n(p),h)),this.loadFile(h)}}}startWith(p,a){return p?p.substr(0,a.length)===a:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}}return ti=c,c.default=c,ti}var ri,zo;function Or(){if(zo)return ri;zo=1;let{SourceMapConsumer:e,SourceMapGenerator:t}=Re,{fileURLToPath:r,pathToFileURL:i}=Re,{isAbsolute:n,resolve:s}=Re,{nanoid:u}=md(),c=Re,l=Gi(),p=Ba(),a=Symbol("fromOffsetCache"),h=!!(e&&t),f=!!(s&&n);class o{constructor(d,g={}){if(d===null||typeof d>"u"||typeof d=="object"&&!d.toString)throw new Error(`PostCSS received ${d} instead of CSS string`);if(this.css=d.toString(),this.css[0]==="\uFEFF"||this.css[0]==="\uFFFE"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,g.from&&(!f||/^\w+:\/\//.test(g.from)||n(g.from)?this.file=g.from:this.file=s(g.from)),f&&h){let C=new p(this.css,g);if(C.text){this.map=C;let b=C.consumer().file;!this.file&&b&&(this.file=this.mapResolve(b))}}this.file||(this.id="<input css "+u(6)+">"),this.map&&(this.map.file=this.from)}error(d,g,C,b={}){let v,E,w;if(g&&typeof g=="object"){let S=g,x=C;if(typeof S.offset=="number"){let M=this.fromOffset(S.offset);g=M.line,C=M.col}else g=S.line,C=S.column;if(typeof x.offset=="number"){let M=this.fromOffset(x.offset);E=M.line,w=M.col}else E=x.line,w=x.column}else if(!C){let S=this.fromOffset(g);g=S.line,C=S.col}let y=this.origin(g,C,E,w);return y?v=new l(d,y.endLine===void 0?y.line:{column:y.column,line:y.line},y.endLine===void 0?y.column:{column:y.endColumn,line:y.endLine},y.source,y.file,b.plugin):v=new l(d,E===void 0?g:{column:C,line:g},E===void 0?C:{column:w,line:E},this.css,this.file,b.plugin),v.input={column:C,endColumn:w,endLine:E,line:g,source:this.css},this.file&&(i&&(v.input.url=i(this.file).toString()),v.input.file=this.file),v}fromOffset(d){let g,C;if(this[a])C=this[a];else{let v=this.css.split(`
44
+ `);C=new Array(v.length);let E=0;for(let w=0,y=v.length;w<y;w++)C[w]=E,E+=v[w].length+1;this[a]=C}g=C[C.length-1];let b=0;if(d>=g)b=C.length-1;else{let v=C.length-2,E;for(;b<v;)if(E=b+(v-b>>1),d<C[E])v=E-1;else if(d>=C[E+1])b=E+1;else{b=E;break}}return{col:d-C[b]+1,line:b+1}}mapResolve(d){return/^\w+:\/\//.test(d)?d:s(this.map.consumer().sourceRoot||this.map.root||".",d)}origin(d,g,C,b){if(!this.map)return!1;let v=this.map.consumer(),E=v.originalPositionFor({column:g,line:d});if(!E.source)return!1;let w;typeof C=="number"&&(w=v.originalPositionFor({column:b,line:C}));let y;n(E.source)?y=i(E.source):y=new URL(E.source,this.map.consumer().sourceRoot||i(this.map.mapFile));let S={column:E.column,endColumn:w&&w.column,endLine:w&&w.line,line:E.line,url:y.toString()};if(y.protocol==="file:")if(r)S.file=r(y);else throw new Error("file: protocol is not available in this PostCSS build");let x=v.sourceContentFor(E.source);return x&&(S.source=x),S}toJSON(){let d={};for(let g of["hasBOM","css","file","id"])this[g]!=null&&(d[g]=this[g]);return this.map&&(d.map={...this.map},d.map.consumerCache&&(d.map.consumerCache=void 0)),d}get from(){return this.file||this.id}}return ri=o,o.default=o,c&&c.registerInput&&c.registerInput(o),ri}var ni,qo;function $a(){if(qo)return ni;qo=1;let{SourceMapConsumer:e,SourceMapGenerator:t}=Re,{dirname:r,relative:i,resolve:n,sep:s}=Re,{pathToFileURL:u}=Re,c=Or(),l=!!(e&&t),p=!!(r&&n&&i&&s);class a{constructor(f,o,m,d){this.stringify=f,this.mapOpts=m.map||{},this.root=o,this.opts=m,this.css=d,this.originalCSS=d,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let f;this.isInline()?f="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?f=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?f=this.mapOpts.annotation(this.opts.to,this.root):f=this.outputFile()+".map";let o=`
45
45
  `;this.css.includes(`\r
46
- `)&&(s=`\r
47
- `),this.css+=s+"/*# sourceMappingURL="+f+" */"}applyPrevMaps(){for(let f of this.previous()){let s=this.toUrl(this.path(f.file)),m=f.root||r(f.file),d;this.mapOpts.sourcesContent===!1?(d=new e(f.text),d.sourcesContent&&(d.sourcesContent=null)):d=f.consumer(),this.map.applySourceMap(d,s,this.toUrl(this.path(m)))}}clearAnnotation(){if(this.mapOpts.annotation!==!1)if(this.root){let f;for(let s=this.root.nodes.length-1;s>=0;s--)f=this.root.nodes[s],f.type==="comment"&&f.text.indexOf("# sourceMappingURL=")===0&&this.root.removeChild(s)}else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),p&&a&&this.isMap())return this.generateMap();{let f="";return this.stringify(this.root,s=>{f+=s}),[f]}}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let f=this.previous()[0].consumer();f.file=this.outputFile(),this.map=t.fromSourceMap(f,{ignoreInvalidMapping:!0})}else this.map=new t({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 t({file:this.outputFile(),ignoreInvalidMapping:!0});let f=1,s=1,m="<no source>",d={generated:{column:0,line:0},original:{column:0,line:0},source:""},g,C;this.stringify(this.root,(b,v,E)=>{if(this.css+=b,v&&E!=="end"&&(d.generated.line=f,d.generated.column=s-1,v.source&&v.source.start?(d.source=this.sourcePath(v),d.original.line=v.source.start.line,d.original.column=v.source.start.column-1,this.map.addMapping(d)):(d.source=m,d.original.line=1,d.original.column=0,this.map.addMapping(d))),g=b.match(/\n/g),g?(f+=g.length,C=b.lastIndexOf(`
48
- `),s=b.length-C):s+=b.length,v&&E!=="start"){let w=v.parent||{raws:{}};(!(v.type==="decl"||v.type==="atrule"&&!v.nodes)||v!==w.last||w.raws.semicolon)&&(v.source&&v.source.end?(d.source=this.sourcePath(v),d.original.line=v.source.end.line,d.original.column=v.source.end.column-1,d.generated.line=f,d.generated.column=s-2,this.map.addMapping(d)):(d.source=m,d.original.line=1,d.original.column=0,d.generated.line=f,d.generated.column=s-1,this.map.addMapping(d)))}})}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation<"u"?this.mapOpts.annotation:this.previous().length?this.previous().some(f=>f.annotation):!0}isInline(){if(typeof this.mapOpts.inline<"u")return this.mapOpts.inline;let f=this.mapOpts.annotation;return typeof f<"u"&&f!==!0?!1:this.previous().length?this.previous().some(s=>s.inline):!0}isMap(){return typeof this.opts.map<"u"?!!this.opts.map:this.previous().length>0}isSourcesContent(){return typeof this.mapOpts.sourcesContent<"u"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(f=>f.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(f){if(this.mapOpts.absolute||f.charCodeAt(0)===60||/^\w+:\/\//.test(f))return f;let s=this.memoizedPaths.get(f);if(s)return s;let m=this.opts.to?r(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(m=r(n(m,this.mapOpts.annotation)));let d=i(m,f);return this.memoizedPaths.set(f,d),d}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(f=>{if(f.source&&f.source.input.map){let s=f.source.input.map;this.previousMaps.includes(s)||this.previousMaps.push(s)}});else{let f=new c(this.originalCSS,this.opts);f.map&&this.previousMaps.push(f.map)}return this.previousMaps}setSourcesContent(){let f={};if(this.root)this.root.walk(s=>{if(s.source){let m=s.source.input.from;if(m&&!f[m]){f[m]=!0;let d=this.usesFileUrls?this.toFileUrl(m):this.toUrl(this.path(m));this.map.setSourceContent(d,s.source.input.css)}}});else if(this.css){let s=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(s,this.css)}}sourcePath(f){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(f.source.input.from):this.toUrl(this.path(f.source.input.from))}toBase64(f){return Buffer?Buffer.from(f).toString("base64"):window.btoa(unescape(encodeURIComponent(f)))}toFileUrl(f){let s=this.memoizedFileURLs.get(f);if(s)return s;if(u){let m=u(f).toString();return this.memoizedFileURLs.set(f,m),m}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(f){let s=this.memoizedURLs.get(f);if(s)return s;l==="\\"&&(f=f.replace(/\\/g,"/"));let m=encodeURI(f).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(f,m),m}}return Yn=o,Yn}var Xn,No;function Er(){if(No)return Xn;No=1;let e=vr();class t extends e{constructor(i){super(i),this.type="comment"}}return Xn=t,t.default=t,Xn}var Jn,Oo;function qe(){if(Oo)return Jn;Oo=1;let{isClean:e,my:t}=Bi(),r=Sr(),i=Er(),n=vr(),l,u,c,a;function p(f){return f.map(s=>(s.nodes&&(s.nodes=p(s.nodes)),delete s.source,s))}function o(f){if(f[e]=!1,f.proxyOf.nodes)for(let s of f.proxyOf.nodes)o(s)}class h extends n{append(...s){for(let m of s){let d=this.normalize(m,this.last);for(let g of d)this.proxyOf.nodes.push(g)}return this.markDirty(),this}cleanRaws(s){if(super.cleanRaws(s),this.nodes)for(let m of this.nodes)m.cleanRaws(s)}each(s){if(!this.proxyOf.nodes)return;let m=this.getIterator(),d,g;for(;this.indexes[m]<this.proxyOf.nodes.length&&(d=this.indexes[m],g=s(this.proxyOf.nodes[d],d),g!==!1);)this.indexes[m]+=1;return delete this.indexes[m],g}every(s){return this.nodes.every(s)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let s=this.lastEach;return this.indexes[s]=0,s}getProxyProcessor(){return{get(s,m){return m==="proxyOf"?s:s[m]?m==="each"||typeof m=="string"&&m.startsWith("walk")?(...d)=>s[m](...d.map(g=>typeof g=="function"?(C,b)=>g(C.toProxy(),b):g)):m==="every"||m==="some"?d=>s[m]((g,...C)=>d(g.toProxy(),...C)):m==="root"?()=>s.root().toProxy():m==="nodes"?s.nodes.map(d=>d.toProxy()):m==="first"||m==="last"?s[m].toProxy():s[m]:s[m]},set(s,m,d){return s[m]===d||(s[m]=d,(m==="name"||m==="params"||m==="selector")&&s.markDirty()),!0}}}index(s){return typeof s=="number"?s:(s.proxyOf&&(s=s.proxyOf),this.proxyOf.nodes.indexOf(s))}insertAfter(s,m){let d=this.index(s),g=this.normalize(m,this.proxyOf.nodes[d]).reverse();d=this.index(s);for(let b of g)this.proxyOf.nodes.splice(d+1,0,b);let C;for(let b in this.indexes)C=this.indexes[b],d<C&&(this.indexes[b]=C+g.length);return this.markDirty(),this}insertBefore(s,m){let d=this.index(s),g=d===0?"prepend":!1,C=this.normalize(m,this.proxyOf.nodes[d],g).reverse();d=this.index(s);for(let v of C)this.proxyOf.nodes.splice(d,0,v);let b;for(let v in this.indexes)b=this.indexes[v],d<=b&&(this.indexes[v]=b+C.length);return this.markDirty(),this}normalize(s,m){if(typeof s=="string")s=p(l(s).nodes);else if(typeof s>"u")s=[];else if(Array.isArray(s)){s=s.slice(0);for(let g of s)g.parent&&g.parent.removeChild(g,"ignore")}else if(s.type==="root"&&this.type!=="document"){s=s.nodes.slice(0);for(let g of s)g.parent&&g.parent.removeChild(g,"ignore")}else if(s.type)s=[s];else if(s.prop){if(typeof s.value>"u")throw new Error("Value field is missed in node creation");typeof s.value!="string"&&(s.value=String(s.value)),s=[new r(s)]}else if(s.selector)s=[new u(s)];else if(s.name)s=[new c(s)];else if(s.text)s=[new i(s)];else throw new Error("Unknown node type in node creation");return s.map(g=>(g[t]||h.rebuild(g),g=g.proxyOf,g.parent&&g.parent.removeChild(g),g[e]&&o(g),typeof g.raws.before>"u"&&m&&typeof m.raws.before<"u"&&(g.raws.before=m.raws.before.replace(/\S/g,"")),g.parent=this.proxyOf,g))}prepend(...s){s=s.reverse();for(let m of s){let d=this.normalize(m,this.first,"prepend").reverse();for(let g of d)this.proxyOf.nodes.unshift(g);for(let g in this.indexes)this.indexes[g]=this.indexes[g]+d.length}return this.markDirty(),this}push(s){return s.parent=this,this.proxyOf.nodes.push(s),this}removeAll(){for(let s of this.proxyOf.nodes)s.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(s){s=this.index(s),this.proxyOf.nodes[s].parent=void 0,this.proxyOf.nodes.splice(s,1);let m;for(let d in this.indexes)m=this.indexes[d],m>=s&&(this.indexes[d]=m-1);return this.markDirty(),this}replaceValues(s,m,d){return d||(d=m,m={}),this.walkDecls(g=>{m.props&&!m.props.includes(g.prop)||m.fast&&!g.value.includes(m.fast)||(g.value=g.value.replace(s,d))}),this.markDirty(),this}some(s){return this.nodes.some(s)}walk(s){return this.each((m,d)=>{let g;try{g=s(m,d)}catch(C){throw m.addToError(C)}return g!==!1&&m.walk&&(g=m.walk(s)),g})}walkAtRules(s,m){return m?s instanceof RegExp?this.walk((d,g)=>{if(d.type==="atrule"&&s.test(d.name))return m(d,g)}):this.walk((d,g)=>{if(d.type==="atrule"&&d.name===s)return m(d,g)}):(m=s,this.walk((d,g)=>{if(d.type==="atrule")return m(d,g)}))}walkComments(s){return this.walk((m,d)=>{if(m.type==="comment")return s(m,d)})}walkDecls(s,m){return m?s instanceof RegExp?this.walk((d,g)=>{if(d.type==="decl"&&s.test(d.prop))return m(d,g)}):this.walk((d,g)=>{if(d.type==="decl"&&d.prop===s)return m(d,g)}):(m=s,this.walk((d,g)=>{if(d.type==="decl")return m(d,g)}))}walkRules(s,m){return m?s instanceof RegExp?this.walk((d,g)=>{if(d.type==="rule"&&s.test(d.selector))return m(d,g)}):this.walk((d,g)=>{if(d.type==="rule"&&d.selector===s)return m(d,g)}):(m=s,this.walk((d,g)=>{if(d.type==="rule")return m(d,g)}))}get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}}return h.registerParse=f=>{l=f},h.registerRule=f=>{u=f},h.registerAtRule=f=>{c=f},h.registerRoot=f=>{a=f},Jn=h,h.default=h,h.rebuild=f=>{f.type==="atrule"?Object.setPrototypeOf(f,c.prototype):f.type==="rule"?Object.setPrototypeOf(f,u.prototype):f.type==="decl"?Object.setPrototypeOf(f,r.prototype):f.type==="comment"?Object.setPrototypeOf(f,i.prototype):f.type==="root"&&Object.setPrototypeOf(f,a.prototype),f[t]=!0,f.nodes&&f.nodes.forEach(s=>{h.rebuild(s)})},Jn}var Kn,ko;function $i(){if(ko)return Kn;ko=1;let e=qe(),t,r;class i extends e{constructor(l){super({type:"document",...l}),this.nodes||(this.nodes=[])}toResult(l={}){return new t(new r,this,l).stringify()}}return i.registerLazyResult=n=>{t=n},i.registerProcessor=n=>{r=n},Kn=i,i.default=i,Kn}var Qn,Io;function Ra(){if(Io)return Qn;Io=1;let e={};return Qn=function(r){e[r]||(e[r]=!0,typeof console<"u"&&console.warn&&console.warn(r))},Qn}var Zn,Ao;function Ta(){if(Ao)return Zn;Ao=1;class e{constructor(r,i={}){if(this.type="warning",this.text=r,i.node&&i.node.source){let n=i.node.rangeBy(i);this.line=n.start.line,this.column=n.start.column,this.endLine=n.end.line,this.endColumn=n.end.column}for(let n in i)this[n]=i[n]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}}return Zn=e,e.default=e,Zn}var ei,Do;function Wi(){if(Do)return ei;Do=1;let e=Ta();class t{constructor(i,n,l){this.processor=i,this.messages=[],this.root=n,this.opts=l,this.css=void 0,this.map=void 0}toString(){return this.css}warn(i,n={}){n.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(n.plugin=this.lastPlugin.postcssPlugin);let l=new e(i,n);return this.messages.push(l),l}warnings(){return this.messages.filter(i=>i.type==="warning")}get content(){return this.css}}return ei=t,t.default=t,ei}var ti,_o;function $f(){if(_o)return ti;_o=1;let e=39,t=34,r=92,i=47,n=10,l=32,u=12,c=9,a=13,p=91,o=93,h=40,f=41,s=123,m=125,d=59,g=42,C=58,b=64,v=/[\t\n\f\r "#'()/;[\\\]{}]/g,E=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,w=/.[\r\n"'(/\\]/,y=/[\da-f]/i;return ti=function(x,M={}){let T=x.css.valueOf(),I=M.ignoreErrors,k,R,re,ne,U,P,V,Q,$,B,ue=T.length,N=0,xe=[],pe=[];function vt(){return N}function se(A){throw x.error("Unclosed "+A,N)}function we(){return pe.length===0&&N>=ue}function $e(A){if(pe.length)return pe.pop();if(N>=ue)return;let ee=A?A.ignoreUnclosed:!1;switch(k=T.charCodeAt(N),k){case n:case l:case c:case a:case u:{R=N;do R+=1,k=T.charCodeAt(R);while(k===l||k===n||k===c||k===a||k===u);B=["space",T.slice(N,R)],N=R-1;break}case p:case o:case s:case m:case C:case d:case f:{let W=String.fromCharCode(k);B=[W,W,N];break}case h:{if(Q=xe.length?xe.pop()[1]:"",$=T.charCodeAt(N+1),Q==="url"&&$!==e&&$!==t&&$!==l&&$!==n&&$!==c&&$!==u&&$!==a){R=N;do{if(P=!1,R=T.indexOf(")",R+1),R===-1)if(I||ee){R=N;break}else se("bracket");for(V=R;T.charCodeAt(V-1)===r;)V-=1,P=!P}while(P);B=["brackets",T.slice(N,R+1),N,R],N=R}else R=T.indexOf(")",N+1),ne=T.slice(N,R+1),R===-1||w.test(ne)?B=["(","(",N]:(B=["brackets",ne,N,R],N=R);break}case e:case t:{re=k===e?"'":'"',R=N;do{if(P=!1,R=T.indexOf(re,R+1),R===-1)if(I||ee){R=N+1;break}else se("string");for(V=R;T.charCodeAt(V-1)===r;)V-=1,P=!P}while(P);B=["string",T.slice(N,R+1),N,R],N=R;break}case b:{v.lastIndex=N+1,v.test(T),v.lastIndex===0?R=T.length-1:R=v.lastIndex-2,B=["at-word",T.slice(N,R+1),N,R],N=R;break}case r:{for(R=N,U=!0;T.charCodeAt(R+1)===r;)R+=1,U=!U;if(k=T.charCodeAt(R+1),U&&k!==i&&k!==l&&k!==n&&k!==c&&k!==a&&k!==u&&(R+=1,y.test(T.charAt(R)))){for(;y.test(T.charAt(R+1));)R+=1;T.charCodeAt(R+1)===l&&(R+=1)}B=["word",T.slice(N,R+1),N,R],N=R;break}default:{k===i&&T.charCodeAt(N+1)===g?(R=T.indexOf("*/",N+2)+1,R===0&&(I||ee?R=T.length:se("comment")),B=["comment",T.slice(N,R+1),N,R],N=R):(E.lastIndex=N+1,E.test(T),E.lastIndex===0?R=T.length-1:R=E.lastIndex-2,B=["word",T.slice(N,R+1),N,R],xe.push(B),N=R);break}}return N++,B}function Ae(A){pe.push(A)}return{back:Ae,endOfFile:we,nextToken:$e,position:vt}},ti}var ri,Lo;function zi(){if(Lo)return ri;Lo=1;let e=qe();class t extends e{constructor(i){super(i),this.type="atrule"}append(...i){return this.proxyOf.nodes||(this.nodes=[]),super.append(...i)}prepend(...i){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...i)}}return ri=t,t.default=t,e.registerAtRule(t),ri}var ni,Po;function Nt(){if(Po)return ni;Po=1;let e=qe(),t,r;class i extends e{constructor(l){super(l),this.type="root",this.nodes||(this.nodes=[])}normalize(l,u,c){let a=super.normalize(l);if(u){if(c==="prepend")this.nodes.length>1?u.raws.before=this.nodes[1].raws.before:delete u.raws.before;else if(this.first!==u)for(let p of a)p.raws.before=u.raws.before}return a}removeChild(l,u){let c=this.index(l);return!u&&c===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[c].raws.before),super.removeChild(l)}toResult(l={}){return new t(new r,this,l).stringify()}}return i.registerLazyResult=n=>{t=n},i.registerProcessor=n=>{r=n},ni=i,i.default=i,e.registerRoot(i),ni}var ii,Fo;function Ma(){if(Fo)return ii;Fo=1;let e={comma(t){return e.split(t,[","],!0)},space(t){let r=[" ",`
49
- `," "];return e.split(t,r)},split(t,r,i){let n=[],l="",u=!1,c=0,a=!1,p="",o=!1;for(let h of t)o?o=!1:h==="\\"?o=!0:a?h===p&&(a=!1):h==='"'||h==="'"?(a=!0,p=h):h==="("?c+=1:h===")"?c>0&&(c-=1):c===0&&r.includes(h)&&(u=!0),u?(l!==""&&n.push(l.trim()),l="",u=!1):l+=h;return(i||l!=="")&&n.push(l.trim()),n}};return ii=e,e.default=e,ii}var si,Uo;function qi(){if(Uo)return si;Uo=1;let e=qe(),t=Ma();class r extends e{constructor(n){super(n),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return t.comma(this.selector)}set selectors(n){let l=this.selector?this.selector.match(/,\s*/):null,u=l?l[0]:","+this.raw("between","beforeOpen");this.selector=n.join(u)}}return si=r,r.default=r,e.registerRule(r),si}var oi,Bo;function Wf(){if(Bo)return oi;Bo=1;let e=Sr(),t=$f(),r=Er(),i=zi(),n=Nt(),l=qi(),u={empty:!0,space:!0};function c(p){for(let o=p.length-1;o>=0;o--){let h=p[o],f=h[3]||h[2];if(f)return f}}class a{constructor(o){this.input=o,this.root=new n,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:o,start:{column:1,line:1,offset:0}}}atrule(o){let h=new i;h.name=o[1].slice(1),h.name===""&&this.unnamedAtrule(h,o),this.init(h,o[2]);let f,s,m,d=!1,g=!1,C=[],b=[];for(;!this.tokenizer.endOfFile();){if(o=this.tokenizer.nextToken(),f=o[0],f==="("||f==="["?b.push(f==="("?")":"]"):f==="{"&&b.length>0?b.push("}"):f===b[b.length-1]&&b.pop(),b.length===0)if(f===";"){h.source.end=this.getPosition(o[2]),h.source.end.offset++,this.semicolon=!0;break}else if(f==="{"){g=!0;break}else if(f==="}"){if(C.length>0){for(m=C.length-1,s=C[m];s&&s[0]==="space";)s=C[--m];s&&(h.source.end=this.getPosition(s[3]||s[2]),h.source.end.offset++)}this.end(o);break}else C.push(o);else C.push(o);if(this.tokenizer.endOfFile()){d=!0;break}}h.raws.between=this.spacesAndCommentsFromEnd(C),C.length?(h.raws.afterName=this.spacesAndCommentsFromStart(C),this.raw(h,"params",C),d&&(o=C[C.length-1],h.source.end=this.getPosition(o[3]||o[2]),h.source.end.offset++,this.spaces=h.raws.between,h.raws.between="")):(h.raws.afterName="",h.params=""),g&&(h.nodes=[],this.current=h)}checkMissedSemicolon(o){let h=this.colon(o);if(h===!1)return;let f=0,s;for(let m=h-1;m>=0&&(s=o[m],!(s[0]!=="space"&&(f+=1,f===2)));m--);throw this.input.error("Missed semicolon",s[0]==="word"?s[3]+1:s[2])}colon(o){let h=0,f,s,m;for(let[d,g]of o.entries()){if(f=g,s=f[0],s==="("&&(h+=1),s===")"&&(h-=1),h===0&&s===":")if(!m)this.doubleColon(f);else{if(m[0]==="word"&&m[1]==="progid")continue;return d}m=f}return!1}comment(o){let h=new r;this.init(h,o[2]),h.source.end=this.getPosition(o[3]||o[2]),h.source.end.offset++;let f=o[1].slice(2,-2);if(/^\s*$/.test(f))h.text="",h.raws.left=f,h.raws.right="";else{let s=f.match(/^(\s*)([^]*\S)(\s*)$/);h.text=s[2],h.raws.left=s[1],h.raws.right=s[3]}}createTokenizer(){this.tokenizer=t(this.input)}decl(o,h){let f=new e;this.init(f,o[0][2]);let s=o[o.length-1];for(s[0]===";"&&(this.semicolon=!0,o.pop()),f.source.end=this.getPosition(s[3]||s[2]||c(o)),f.source.end.offset++;o[0][0]!=="word";)o.length===1&&this.unknownWord(o),f.raws.before+=o.shift()[1];for(f.source.start=this.getPosition(o[0][2]),f.prop="";o.length;){let b=o[0][0];if(b===":"||b==="space"||b==="comment")break;f.prop+=o.shift()[1]}f.raws.between="";let m;for(;o.length;)if(m=o.shift(),m[0]===":"){f.raws.between+=m[1];break}else m[0]==="word"&&/\w/.test(m[1])&&this.unknownWord([m]),f.raws.between+=m[1];(f.prop[0]==="_"||f.prop[0]==="*")&&(f.raws.before+=f.prop[0],f.prop=f.prop.slice(1));let d=[],g;for(;o.length&&(g=o[0][0],!(g!=="space"&&g!=="comment"));)d.push(o.shift());this.precheckMissedSemicolon(o);for(let b=o.length-1;b>=0;b--){if(m=o[b],m[1].toLowerCase()==="!important"){f.important=!0;let v=this.stringFrom(o,b);v=this.spacesFromEnd(o)+v,v!==" !important"&&(f.raws.important=v);break}else if(m[1].toLowerCase()==="important"){let v=o.slice(0),E="";for(let w=b;w>0;w--){let y=v[w][0];if(E.trim().indexOf("!")===0&&y!=="space")break;E=v.pop()[1]+E}E.trim().indexOf("!")===0&&(f.important=!0,f.raws.important=E,o=v)}if(m[0]!=="space"&&m[0]!=="comment")break}o.some(b=>b[0]!=="space"&&b[0]!=="comment")&&(f.raws.between+=d.map(b=>b[1]).join(""),d=[]),this.raw(f,"value",d.concat(o),h),f.value.includes(":")&&!h&&this.checkMissedSemicolon(o)}doubleColon(o){throw this.input.error("Double colon",{offset:o[2]},{offset:o[2]+o[1].length})}emptyRule(o){let h=new l;this.init(h,o[2]),h.selector="",h.raws.between="",this.current=h}end(o){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(o[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(o)}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(o){if(this.spaces+=o[1],this.current.nodes){let h=this.current.nodes[this.current.nodes.length-1];h&&h.type==="rule"&&!h.raws.ownSemicolon&&(h.raws.ownSemicolon=this.spaces,this.spaces="")}}getPosition(o){let h=this.input.fromOffset(o);return{column:h.col,line:h.line,offset:o}}init(o,h){this.current.push(o),o.source={input:this.input,start:this.getPosition(h)},o.raws.before=this.spaces,this.spaces="",o.type!=="comment"&&(this.semicolon=!1)}other(o){let h=!1,f=null,s=!1,m=null,d=[],g=o[1].startsWith("--"),C=[],b=o;for(;b;){if(f=b[0],C.push(b),f==="("||f==="[")m||(m=b),d.push(f==="("?")":"]");else if(g&&s&&f==="{")m||(m=b),d.push("}");else if(d.length===0)if(f===";")if(s){this.decl(C,g);return}else break;else if(f==="{"){this.rule(C);return}else if(f==="}"){this.tokenizer.back(C.pop()),h=!0;break}else f===":"&&(s=!0);else f===d[d.length-1]&&(d.pop(),d.length===0&&(m=null));b=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(h=!0),d.length>0&&this.unclosedBracket(m),h&&s){if(!g)for(;C.length&&(b=C[C.length-1][0],!(b!=="space"&&b!=="comment"));)this.tokenizer.back(C.pop());this.decl(C,g)}else this.unknownWord(C)}parse(){let o;for(;!this.tokenizer.endOfFile();)switch(o=this.tokenizer.nextToken(),o[0]){case"space":this.spaces+=o[1];break;case";":this.freeSemicolon(o);break;case"}":this.end(o);break;case"comment":this.comment(o);break;case"at-word":this.atrule(o);break;case"{":this.emptyRule(o);break;default:this.other(o);break}this.endFile()}precheckMissedSemicolon(){}raw(o,h,f,s){let m,d,g=f.length,C="",b=!0,v,E;for(let w=0;w<g;w+=1)m=f[w],d=m[0],d==="space"&&w===g-1&&!s?b=!1:d==="comment"?(E=f[w-1]?f[w-1][0]:"empty",v=f[w+1]?f[w+1][0]:"empty",!u[E]&&!u[v]?C.slice(-1)===","?b=!1:C+=m[1]:b=!1):C+=m[1];if(!b){let w=f.reduce((y,S)=>y+S[1],"");o.raws[h]={raw:w,value:C}}o[h]=C}rule(o){o.pop();let h=new l;this.init(h,o[0][2]),h.raws.between=this.spacesAndCommentsFromEnd(o),this.raw(h,"selector",o),this.current=h}spacesAndCommentsFromEnd(o){let h,f="";for(;o.length&&(h=o[o.length-1][0],!(h!=="space"&&h!=="comment"));)f=o.pop()[1]+f;return f}spacesAndCommentsFromStart(o){let h,f="";for(;o.length&&(h=o[0][0],!(h!=="space"&&h!=="comment"));)f+=o.shift()[1];return f}spacesFromEnd(o){let h,f="";for(;o.length&&(h=o[o.length-1][0],h==="space");)f=o.pop()[1]+f;return f}stringFrom(o,h){let f="";for(let s=h;s<o.length;s++)f+=o[s][1];return o.splice(h,o.length-h),f}unclosedBlock(){let o=this.current.source.start;throw this.input.error("Unclosed block",o.line,o.column)}unclosedBracket(o){throw this.input.error("Unclosed bracket",{offset:o[2]},{offset:o[2]+1})}unexpectedClose(o){throw this.input.error("Unexpected }",{offset:o[2]},{offset:o[2]+1})}unknownWord(o){throw this.input.error("Unknown word",{offset:o[0][2]},{offset:o[0][2]+o[0][1].length})}unnamedAtrule(o,h){throw this.input.error("At-rule without name",{offset:h[2]},{offset:h[2]+h[1].length})}}return oi=a,oi}var ai,$o;function ji(){if($o)return ai;$o=1;let e=qe(),t=Wf(),r=Cr();function i(n,l){let u=new r(n,l),c=new t(u);try{c.parse()}catch(a){throw a}return c.root}return ai=i,i.default=i,e.registerParse(i),ai}var li,Wo;function Na(){if(Wo)return li;Wo=1;let{isClean:e,my:t}=Bi(),r=xa(),i=wr(),n=qe(),l=$i(),u=Ra(),c=Wi(),a=ji(),p=Nt(),o={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},h={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},f={Once:!0,postcssPlugin:!0,prepare:!0},s=0;function m(E){return typeof E=="object"&&typeof E.then=="function"}function d(E){let w=!1,y=o[E.type];return E.type==="decl"?w=E.prop.toLowerCase():E.type==="atrule"&&(w=E.name.toLowerCase()),w&&E.append?[y,y+"-"+w,s,y+"Exit",y+"Exit-"+w]:w?[y,y+"-"+w,y+"Exit",y+"Exit-"+w]:E.append?[y,s,y+"Exit"]:[y,y+"Exit"]}function g(E){let w;return E.type==="document"?w=["Document",s,"DocumentExit"]:E.type==="root"?w=["Root",s,"RootExit"]:w=d(E),{eventIndex:0,events:w,iterator:0,node:E,visitorIndex:0,visitors:[]}}function C(E){return E[e]=!1,E.nodes&&E.nodes.forEach(w=>C(w)),E}let b={};class v{constructor(w,y,S){this.stringified=!1,this.processed=!1;let x;if(typeof y=="object"&&y!==null&&(y.type==="root"||y.type==="document"))x=C(y);else if(y instanceof v||y instanceof c)x=C(y.root),y.map&&(typeof S.map>"u"&&(S.map={}),S.map.inline||(S.map.inline=!1),S.map.prev=y.map);else{let M=a;S.syntax&&(M=S.syntax.parse),S.parser&&(M=S.parser),M.parse&&(M=M.parse);try{x=M(y,S)}catch(T){this.processed=!0,this.error=T}x&&!x[t]&&n.rebuild(x)}this.result=new c(w,x,S),this.helpers={...b,postcss:b,result:this.result},this.plugins=this.processor.plugins.map(M=>typeof M=="object"&&M.prepare?{...M,...M.prepare(this.result)}:M)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(w){return this.async().catch(w)}finally(w){return this.async().then(w,w)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(w,y){let S=this.result.lastPlugin;try{y&&y.addToError(w),this.error=w,w.name==="CssSyntaxError"&&!w.plugin?(w.plugin=S.postcssPlugin,w.setMessage()):S.postcssVersion}catch(x){console&&console.error&&console.error(x)}return w}prepareVisitors(){this.listeners={};let w=(y,S,x)=>{this.listeners[S]||(this.listeners[S]=[]),this.listeners[S].push([y,x])};for(let y of this.plugins)if(typeof y=="object")for(let S in y){if(!h[S]&&/^[A-Z]/.test(S))throw new Error(`Unknown event ${S} in ${y.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!f[S])if(typeof y[S]=="object")for(let x in y[S])x==="*"?w(y,S,y[S][x]):w(y,S+"-"+x.toLowerCase(),y[S][x]);else typeof y[S]=="function"&&w(y,S,y[S])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let w=0;w<this.plugins.length;w++){let y=this.plugins[w],S=this.runOnRoot(y);if(m(S))try{await S}catch(x){throw this.handleError(x)}}if(this.prepareVisitors(),this.hasListener){let w=this.result.root;for(;!w[e];){w[e]=!0;let y=[g(w)];for(;y.length>0;){let S=this.visitTick(y);if(m(S))try{await S}catch(x){let M=y[y.length-1].node;throw this.handleError(x,M)}}}if(this.listeners.OnceExit)for(let[y,S]of this.listeners.OnceExit){this.result.lastPlugin=y;try{if(w.type==="document"){let x=w.nodes.map(M=>S(M,this.helpers));await Promise.all(x)}else await S(w,this.helpers)}catch(x){throw this.handleError(x)}}}return this.processed=!0,this.stringify()}runOnRoot(w){this.result.lastPlugin=w;try{if(typeof w=="object"&&w.Once){if(this.result.root.type==="document"){let y=this.result.root.nodes.map(S=>w.Once(S,this.helpers));return m(y[0])?Promise.all(y):y}return w.Once(this.result.root,this.helpers)}else if(typeof w=="function")return w(this.result.root,this.result)}catch(y){throw this.handleError(y)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let w=this.result.opts,y=i;w.syntax&&(y=w.syntax.stringify),w.stringifier&&(y=w.stringifier),y.stringify&&(y=y.stringify);let x=new r(y,this.result.root,this.result.opts).generate();return this.result.css=x[0],this.result.map=x[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let w of this.plugins){let y=this.runOnRoot(w);if(m(y))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let w=this.result.root;for(;!w[e];)w[e]=!0,this.walkSync(w);if(this.listeners.OnceExit)if(w.type==="document")for(let y of w.nodes)this.visitSync(this.listeners.OnceExit,y);else this.visitSync(this.listeners.OnceExit,w)}return this.result}then(w,y){return this.async().then(w,y)}toString(){return this.css}visitSync(w,y){for(let[S,x]of w){this.result.lastPlugin=S;let M;try{M=x(y,this.helpers)}catch(T){throw this.handleError(T,y.proxyOf)}if(y.type!=="root"&&y.type!=="document"&&!y.parent)return!0;if(m(M))throw this.getAsyncError()}}visitTick(w){let y=w[w.length-1],{node:S,visitors:x}=y;if(S.type!=="root"&&S.type!=="document"&&!S.parent){w.pop();return}if(x.length>0&&y.visitorIndex<x.length){let[T,I]=x[y.visitorIndex];y.visitorIndex+=1,y.visitorIndex===x.length&&(y.visitors=[],y.visitorIndex=0),this.result.lastPlugin=T;try{return I(S.toProxy(),this.helpers)}catch(k){throw this.handleError(k,S)}}if(y.iterator!==0){let T=y.iterator,I;for(;I=S.nodes[S.indexes[T]];)if(S.indexes[T]+=1,!I[e]){I[e]=!0,w.push(g(I));return}y.iterator=0,delete S.indexes[T]}let M=y.events;for(;y.eventIndex<M.length;){let T=M[y.eventIndex];if(y.eventIndex+=1,T===s){S.nodes&&S.nodes.length&&(S[e]=!0,y.iterator=S.getIterator());return}else if(this.listeners[T]){y.visitors=this.listeners[T];return}}w.pop()}walkSync(w){w[e]=!0;let y=d(w);for(let S of y)if(S===s)w.nodes&&w.each(x=>{x[e]||this.walkSync(x)});else{let x=this.listeners[S];if(x&&this.visitSync(x,w.toProxy()))return}}warnings(){return this.sync().warnings()}get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}}return v.registerPostcss=E=>{b=E},li=v,v.default=v,p.registerLazyResult(v),l.registerLazyResult(v),li}var ui,zo;function zf(){if(zo)return ui;zo=1;let e=xa(),t=wr(),r=Ra(),i=ji(),n=Wi();class l{constructor(c,a,p){a=a.toString(),this.stringified=!1,this._processor=c,this._css=a,this._opts=p,this._map=void 0;let o,h=t;this.result=new n(this._processor,o,this._opts),this.result.css=a;let f=this;Object.defineProperty(this.result,"root",{get(){return f.root}});let s=new e(h,o,this._opts,a);if(s.isMap()){let[m,d]=s.generate();m&&(this.result.css=m),d&&(this.result.map=d)}else s.clearAnnotation(),this.result.css=s.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(c){return this.async().catch(c)}finally(c){return this.async().then(c,c)}sync(){if(this.error)throw this.error;return this.result}then(c,a){return this.async().then(c,a)}toString(){return this._css}warnings(){return[]}get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let c,a=i;try{c=a(this._css,this._opts)}catch(p){this.error=p}if(this.error)throw this.error;return this._root=c,c}get[Symbol.toStringTag](){return"NoWorkResult"}}return ui=l,l.default=l,ui}var ci,qo;function qf(){if(qo)return ci;qo=1;let e=zf(),t=Na(),r=$i(),i=Nt();class n{constructor(u=[]){this.version="8.4.38",this.plugins=this.normalize(u)}normalize(u){let c=[];for(let a of u)if(a.postcss===!0?a=a():a.postcss&&(a=a.postcss),typeof a=="object"&&Array.isArray(a.plugins))c=c.concat(a.plugins);else if(typeof a=="object"&&a.postcssPlugin)c.push(a);else if(typeof a=="function")c.push(a);else if(!(typeof a=="object"&&(a.parse||a.stringify)))throw new Error(a+" is not a PostCSS plugin");return c}process(u,c={}){return!this.plugins.length&&!c.parser&&!c.stringifier&&!c.syntax?new e(this,u,c):new t(this,u,c)}use(u){return this.plugins=this.plugins.concat(this.normalize([u])),this}}return ci=n,n.default=n,i.registerProcessor(n),r.registerProcessor(n),ci}var fi,jo;function jf(){if(jo)return fi;jo=1;let e=Sr(),t=Ea(),r=Er(),i=zi(),n=Cr(),l=Nt(),u=qi();function c(a,p){if(Array.isArray(a))return a.map(f=>c(f));let{inputs:o,...h}=a;if(o){p=[];for(let f of o){let s={...f,__proto__:n.prototype};s.map&&(s.map={...s.map,__proto__:t.prototype}),p.push(s)}}if(h.nodes&&(h.nodes=a.nodes.map(f=>c(f,p))),h.source){let{inputId:f,...s}=h.source;h.source=s,f!=null&&(h.source.input=p[f])}if(h.type==="root")return new l(h);if(h.type==="decl")return new e(h);if(h.type==="rule")return new u(h);if(h.type==="comment")return new r(h);if(h.type==="atrule")return new i(h);throw new Error("Unknown node type: "+a.type)}return fi=c,c.default=c,fi}var di,Vo;function Vf(){if(Vo)return di;Vo=1;let e=Ui(),t=Sr(),r=Na(),i=qe(),n=qf(),l=wr(),u=jf(),c=$i(),a=Ta(),p=Er(),o=zi(),h=Wi(),f=Cr(),s=ji(),m=Ma(),d=qi(),g=Nt(),C=vr();function b(...v){return v.length===1&&Array.isArray(v[0])&&(v=v[0]),new n(v)}return b.plugin=function(E,w){let y=!1;function S(...M){console&&console.warn&&!y&&(y=!0,console.warn(E+`: postcss.plugin was deprecated. Migration guide:
46
+ `)&&(o=`\r
47
+ `),this.css+=o+"/*# sourceMappingURL="+f+" */"}applyPrevMaps(){for(let f of this.previous()){let o=this.toUrl(this.path(f.file)),m=f.root||r(f.file),d;this.mapOpts.sourcesContent===!1?(d=new e(f.text),d.sourcesContent&&(d.sourcesContent=null)):d=f.consumer(),this.map.applySourceMap(d,o,this.toUrl(this.path(m)))}}clearAnnotation(){if(this.mapOpts.annotation!==!1)if(this.root){let f;for(let o=this.root.nodes.length-1;o>=0;o--)f=this.root.nodes[o],f.type==="comment"&&f.text.indexOf("# sourceMappingURL=")===0&&this.root.removeChild(o)}else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),p&&l&&this.isMap())return this.generateMap();{let f="";return this.stringify(this.root,o=>{f+=o}),[f]}}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let f=this.previous()[0].consumer();f.file=this.outputFile(),this.map=t.fromSourceMap(f,{ignoreInvalidMapping:!0})}else this.map=new t({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 t({file:this.outputFile(),ignoreInvalidMapping:!0});let f=1,o=1,m="<no source>",d={generated:{column:0,line:0},original:{column:0,line:0},source:""},g,C;this.stringify(this.root,(b,v,E)=>{if(this.css+=b,v&&E!=="end"&&(d.generated.line=f,d.generated.column=o-1,v.source&&v.source.start?(d.source=this.sourcePath(v),d.original.line=v.source.start.line,d.original.column=v.source.start.column-1,this.map.addMapping(d)):(d.source=m,d.original.line=1,d.original.column=0,this.map.addMapping(d))),g=b.match(/\n/g),g?(f+=g.length,C=b.lastIndexOf(`
48
+ `),o=b.length-C):o+=b.length,v&&E!=="start"){let w=v.parent||{raws:{}};(!(v.type==="decl"||v.type==="atrule"&&!v.nodes)||v!==w.last||w.raws.semicolon)&&(v.source&&v.source.end?(d.source=this.sourcePath(v),d.original.line=v.source.end.line,d.original.column=v.source.end.column-1,d.generated.line=f,d.generated.column=o-2,this.map.addMapping(d)):(d.source=m,d.original.line=1,d.original.column=0,d.generated.line=f,d.generated.column=o-1,this.map.addMapping(d)))}})}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation<"u"?this.mapOpts.annotation:this.previous().length?this.previous().some(f=>f.annotation):!0}isInline(){if(typeof this.mapOpts.inline<"u")return this.mapOpts.inline;let f=this.mapOpts.annotation;return typeof f<"u"&&f!==!0?!1:this.previous().length?this.previous().some(o=>o.inline):!0}isMap(){return typeof this.opts.map<"u"?!!this.opts.map:this.previous().length>0}isSourcesContent(){return typeof this.mapOpts.sourcesContent<"u"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(f=>f.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(f){if(this.mapOpts.absolute||f.charCodeAt(0)===60||/^\w+:\/\//.test(f))return f;let o=this.memoizedPaths.get(f);if(o)return o;let m=this.opts.to?r(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(m=r(n(m,this.mapOpts.annotation)));let d=i(m,f);return this.memoizedPaths.set(f,d),d}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(f=>{if(f.source&&f.source.input.map){let o=f.source.input.map;this.previousMaps.includes(o)||this.previousMaps.push(o)}});else{let f=new c(this.originalCSS,this.opts);f.map&&this.previousMaps.push(f.map)}return this.previousMaps}setSourcesContent(){let f={};if(this.root)this.root.walk(o=>{if(o.source){let m=o.source.input.from;if(m&&!f[m]){f[m]=!0;let d=this.usesFileUrls?this.toFileUrl(m):this.toUrl(this.path(m));this.map.setSourceContent(d,o.source.input.css)}}});else if(this.css){let o=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(o,this.css)}}sourcePath(f){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(f.source.input.from):this.toUrl(this.path(f.source.input.from))}toBase64(f){return Buffer?Buffer.from(f).toString("base64"):window.btoa(unescape(encodeURIComponent(f)))}toFileUrl(f){let o=this.memoizedFileURLs.get(f);if(o)return o;if(u){let m=u(f).toString();return this.memoizedFileURLs.set(f,m),m}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(f){let o=this.memoizedURLs.get(f);if(o)return o;s==="\\"&&(f=f.replace(/\\/g,"/"));let m=encodeURI(f).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(f,m),m}}return ni=a,ni}var ii,jo;function Ir(){if(jo)return ii;jo=1;let e=Nr();class t extends e{constructor(i){super(i),this.type="comment"}}return ii=t,t.default=t,ii}var si,Vo;function He(){if(Vo)return si;Vo=1;let{isClean:e,my:t}=Yi(),r=kr(),i=Ir(),n=Nr(),s,u,c,l;function p(f){return f.map(o=>(o.nodes&&(o.nodes=p(o.nodes)),delete o.source,o))}function a(f){if(f[e]=!1,f.proxyOf.nodes)for(let o of f.proxyOf.nodes)a(o)}class h extends n{append(...o){for(let m of o){let d=this.normalize(m,this.last);for(let g of d)this.proxyOf.nodes.push(g)}return this.markDirty(),this}cleanRaws(o){if(super.cleanRaws(o),this.nodes)for(let m of this.nodes)m.cleanRaws(o)}each(o){if(!this.proxyOf.nodes)return;let m=this.getIterator(),d,g;for(;this.indexes[m]<this.proxyOf.nodes.length&&(d=this.indexes[m],g=o(this.proxyOf.nodes[d],d),g!==!1);)this.indexes[m]+=1;return delete this.indexes[m],g}every(o){return this.nodes.every(o)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let o=this.lastEach;return this.indexes[o]=0,o}getProxyProcessor(){return{get(o,m){return m==="proxyOf"?o:o[m]?m==="each"||typeof m=="string"&&m.startsWith("walk")?(...d)=>o[m](...d.map(g=>typeof g=="function"?(C,b)=>g(C.toProxy(),b):g)):m==="every"||m==="some"?d=>o[m]((g,...C)=>d(g.toProxy(),...C)):m==="root"?()=>o.root().toProxy():m==="nodes"?o.nodes.map(d=>d.toProxy()):m==="first"||m==="last"?o[m].toProxy():o[m]:o[m]},set(o,m,d){return o[m]===d||(o[m]=d,(m==="name"||m==="params"||m==="selector")&&o.markDirty()),!0}}}index(o){return typeof o=="number"?o:(o.proxyOf&&(o=o.proxyOf),this.proxyOf.nodes.indexOf(o))}insertAfter(o,m){let d=this.index(o),g=this.normalize(m,this.proxyOf.nodes[d]).reverse();d=this.index(o);for(let b of g)this.proxyOf.nodes.splice(d+1,0,b);let C;for(let b in this.indexes)C=this.indexes[b],d<C&&(this.indexes[b]=C+g.length);return this.markDirty(),this}insertBefore(o,m){let d=this.index(o),g=d===0?"prepend":!1,C=this.normalize(m,this.proxyOf.nodes[d],g).reverse();d=this.index(o);for(let v of C)this.proxyOf.nodes.splice(d,0,v);let b;for(let v in this.indexes)b=this.indexes[v],d<=b&&(this.indexes[v]=b+C.length);return this.markDirty(),this}normalize(o,m){if(typeof o=="string")o=p(s(o).nodes);else if(typeof o>"u")o=[];else if(Array.isArray(o)){o=o.slice(0);for(let g of o)g.parent&&g.parent.removeChild(g,"ignore")}else if(o.type==="root"&&this.type!=="document"){o=o.nodes.slice(0);for(let g of o)g.parent&&g.parent.removeChild(g,"ignore")}else if(o.type)o=[o];else if(o.prop){if(typeof o.value>"u")throw new Error("Value field is missed in node creation");typeof o.value!="string"&&(o.value=String(o.value)),o=[new r(o)]}else if(o.selector)o=[new u(o)];else if(o.name)o=[new c(o)];else if(o.text)o=[new i(o)];else throw new Error("Unknown node type in node creation");return o.map(g=>(g[t]||h.rebuild(g),g=g.proxyOf,g.parent&&g.parent.removeChild(g),g[e]&&a(g),typeof g.raws.before>"u"&&m&&typeof m.raws.before<"u"&&(g.raws.before=m.raws.before.replace(/\S/g,"")),g.parent=this.proxyOf,g))}prepend(...o){o=o.reverse();for(let m of o){let d=this.normalize(m,this.first,"prepend").reverse();for(let g of d)this.proxyOf.nodes.unshift(g);for(let g in this.indexes)this.indexes[g]=this.indexes[g]+d.length}return this.markDirty(),this}push(o){return o.parent=this,this.proxyOf.nodes.push(o),this}removeAll(){for(let o of this.proxyOf.nodes)o.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(o){o=this.index(o),this.proxyOf.nodes[o].parent=void 0,this.proxyOf.nodes.splice(o,1);let m;for(let d in this.indexes)m=this.indexes[d],m>=o&&(this.indexes[d]=m-1);return this.markDirty(),this}replaceValues(o,m,d){return d||(d=m,m={}),this.walkDecls(g=>{m.props&&!m.props.includes(g.prop)||m.fast&&!g.value.includes(m.fast)||(g.value=g.value.replace(o,d))}),this.markDirty(),this}some(o){return this.nodes.some(o)}walk(o){return this.each((m,d)=>{let g;try{g=o(m,d)}catch(C){throw m.addToError(C)}return g!==!1&&m.walk&&(g=m.walk(o)),g})}walkAtRules(o,m){return m?o instanceof RegExp?this.walk((d,g)=>{if(d.type==="atrule"&&o.test(d.name))return m(d,g)}):this.walk((d,g)=>{if(d.type==="atrule"&&d.name===o)return m(d,g)}):(m=o,this.walk((d,g)=>{if(d.type==="atrule")return m(d,g)}))}walkComments(o){return this.walk((m,d)=>{if(m.type==="comment")return o(m,d)})}walkDecls(o,m){return m?o instanceof RegExp?this.walk((d,g)=>{if(d.type==="decl"&&o.test(d.prop))return m(d,g)}):this.walk((d,g)=>{if(d.type==="decl"&&d.prop===o)return m(d,g)}):(m=o,this.walk((d,g)=>{if(d.type==="decl")return m(d,g)}))}walkRules(o,m){return m?o instanceof RegExp?this.walk((d,g)=>{if(d.type==="rule"&&o.test(d.selector))return m(d,g)}):this.walk((d,g)=>{if(d.type==="rule"&&d.selector===o)return m(d,g)}):(m=o,this.walk((d,g)=>{if(d.type==="rule")return m(d,g)}))}get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}}return h.registerParse=f=>{s=f},h.registerRule=f=>{u=f},h.registerAtRule=f=>{c=f},h.registerRoot=f=>{l=f},si=h,h.default=h,h.rebuild=f=>{f.type==="atrule"?Object.setPrototypeOf(f,c.prototype):f.type==="rule"?Object.setPrototypeOf(f,u.prototype):f.type==="decl"?Object.setPrototypeOf(f,r.prototype):f.type==="comment"?Object.setPrototypeOf(f,i.prototype):f.type==="root"&&Object.setPrototypeOf(f,l.prototype),f[t]=!0,f.nodes&&f.nodes.forEach(o=>{h.rebuild(o)})},si}var oi,Ho;function Xi(){if(Ho)return oi;Ho=1;let e=He(),t,r;class i extends e{constructor(s){super({type:"document",...s}),this.nodes||(this.nodes=[])}toResult(s={}){return new t(new r,this,s).stringify()}}return i.registerLazyResult=n=>{t=n},i.registerProcessor=n=>{r=n},oi=i,i.default=i,oi}var ai,Go;function Wa(){if(Go)return ai;Go=1;let e={};return ai=function(r){e[r]||(e[r]=!0,typeof console<"u"&&console.warn&&console.warn(r))},ai}var li,Yo;function za(){if(Yo)return li;Yo=1;class e{constructor(r,i={}){if(this.type="warning",this.text=r,i.node&&i.node.source){let n=i.node.rangeBy(i);this.line=n.start.line,this.column=n.start.column,this.endLine=n.end.line,this.endColumn=n.end.column}for(let n in i)this[n]=i[n]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}}return li=e,e.default=e,li}var ui,Xo;function Ji(){if(Xo)return ui;Xo=1;let e=za();class t{constructor(i,n,s){this.processor=i,this.messages=[],this.root=n,this.opts=s,this.css=void 0,this.map=void 0}toString(){return this.css}warn(i,n={}){n.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(n.plugin=this.lastPlugin.postcssPlugin);let s=new e(i,n);return this.messages.push(s),s}warnings(){return this.messages.filter(i=>i.type==="warning")}get content(){return this.css}}return ui=t,t.default=t,ui}var ci,Jo;function gd(){if(Jo)return ci;Jo=1;let e=39,t=34,r=92,i=47,n=10,s=32,u=12,c=9,l=13,p=91,a=93,h=40,f=41,o=123,m=125,d=59,g=42,C=58,b=64,v=/[\t\n\f\r "#'()/;[\\\]{}]/g,E=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,w=/.[\r\n"'(/\\]/,y=/[\da-f]/i;return ci=function(x,M={}){let T=x.css.valueOf(),I=M.ignoreErrors,O,R,re,ne,U,P,V,Z,$,B,ue=T.length,N=0,Me=[],me=[];function Mt(){return N}function se(A){throw x.error("Unclosed "+A,N)}function Ce(){return me.length===0&&N>=ue}function qe(A){if(me.length)return me.pop();if(N>=ue)return;let ee=A?A.ignoreUnclosed:!1;switch(O=T.charCodeAt(N),O){case n:case s:case c:case l:case u:{R=N;do R+=1,O=T.charCodeAt(R);while(O===s||O===n||O===c||O===l||O===u);B=["space",T.slice(N,R)],N=R-1;break}case p:case a:case o:case m:case C:case d:case f:{let W=String.fromCharCode(O);B=[W,W,N];break}case h:{if(Z=Me.length?Me.pop()[1]:"",$=T.charCodeAt(N+1),Z==="url"&&$!==e&&$!==t&&$!==s&&$!==n&&$!==c&&$!==u&&$!==l){R=N;do{if(P=!1,R=T.indexOf(")",R+1),R===-1)if(I||ee){R=N;break}else se("bracket");for(V=R;T.charCodeAt(V-1)===r;)V-=1,P=!P}while(P);B=["brackets",T.slice(N,R+1),N,R],N=R}else R=T.indexOf(")",N+1),ne=T.slice(N,R+1),R===-1||w.test(ne)?B=["(","(",N]:(B=["brackets",ne,N,R],N=R);break}case e:case t:{re=O===e?"'":'"',R=N;do{if(P=!1,R=T.indexOf(re,R+1),R===-1)if(I||ee){R=N+1;break}else se("string");for(V=R;T.charCodeAt(V-1)===r;)V-=1,P=!P}while(P);B=["string",T.slice(N,R+1),N,R],N=R;break}case b:{v.lastIndex=N+1,v.test(T),v.lastIndex===0?R=T.length-1:R=v.lastIndex-2,B=["at-word",T.slice(N,R+1),N,R],N=R;break}case r:{for(R=N,U=!0;T.charCodeAt(R+1)===r;)R+=1,U=!U;if(O=T.charCodeAt(R+1),U&&O!==i&&O!==s&&O!==n&&O!==c&&O!==l&&O!==u&&(R+=1,y.test(T.charAt(R)))){for(;y.test(T.charAt(R+1));)R+=1;T.charCodeAt(R+1)===s&&(R+=1)}B=["word",T.slice(N,R+1),N,R],N=R;break}default:{O===i&&T.charCodeAt(N+1)===g?(R=T.indexOf("*/",N+2)+1,R===0&&(I||ee?R=T.length:se("comment")),B=["comment",T.slice(N,R+1),N,R],N=R):(E.lastIndex=N+1,E.test(T),E.lastIndex===0?R=T.length-1:R=E.lastIndex-2,B=["word",T.slice(N,R+1),N,R],Me.push(B),N=R);break}}return N++,B}function _e(A){me.push(A)}return{back:_e,endOfFile:Ce,nextToken:qe,position:Mt}},ci}var fi,Ko;function Ki(){if(Ko)return fi;Ko=1;let e=He();class t extends e{constructor(i){super(i),this.type="atrule"}append(...i){return this.proxyOf.nodes||(this.nodes=[]),super.append(...i)}prepend(...i){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...i)}}return fi=t,t.default=t,e.registerAtRule(t),fi}var di,Qo;function Lt(){if(Qo)return di;Qo=1;let e=He(),t,r;class i extends e{constructor(s){super(s),this.type="root",this.nodes||(this.nodes=[])}normalize(s,u,c){let l=super.normalize(s);if(u){if(c==="prepend")this.nodes.length>1?u.raws.before=this.nodes[1].raws.before:delete u.raws.before;else if(this.first!==u)for(let p of l)p.raws.before=u.raws.before}return l}removeChild(s,u){let c=this.index(s);return!u&&c===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[c].raws.before),super.removeChild(s)}toResult(s={}){return new t(new r,this,s).stringify()}}return i.registerLazyResult=n=>{t=n},i.registerProcessor=n=>{r=n},di=i,i.default=i,e.registerRoot(i),di}var hi,Zo;function qa(){if(Zo)return hi;Zo=1;let e={comma(t){return e.split(t,[","],!0)},space(t){let r=[" ",`
49
+ `," "];return e.split(t,r)},split(t,r,i){let n=[],s="",u=!1,c=0,l=!1,p="",a=!1;for(let h of t)a?a=!1:h==="\\"?a=!0:l?h===p&&(l=!1):h==='"'||h==="'"?(l=!0,p=h):h==="("?c+=1:h===")"?c>0&&(c-=1):c===0&&r.includes(h)&&(u=!0),u?(s!==""&&n.push(s.trim()),s="",u=!1):s+=h;return(i||s!=="")&&n.push(s.trim()),n}};return hi=e,e.default=e,hi}var pi,ea;function Qi(){if(ea)return pi;ea=1;let e=He(),t=qa();class r extends e{constructor(n){super(n),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return t.comma(this.selector)}set selectors(n){let s=this.selector?this.selector.match(/,\s*/):null,u=s?s[0]:","+this.raw("between","beforeOpen");this.selector=n.join(u)}}return pi=r,r.default=r,e.registerRule(r),pi}var mi,ta;function yd(){if(ta)return mi;ta=1;let e=kr(),t=gd(),r=Ir(),i=Ki(),n=Lt(),s=Qi(),u={empty:!0,space:!0};function c(p){for(let a=p.length-1;a>=0;a--){let h=p[a],f=h[3]||h[2];if(f)return f}}class l{constructor(a){this.input=a,this.root=new n,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:a,start:{column:1,line:1,offset:0}}}atrule(a){let h=new i;h.name=a[1].slice(1),h.name===""&&this.unnamedAtrule(h,a),this.init(h,a[2]);let f,o,m,d=!1,g=!1,C=[],b=[];for(;!this.tokenizer.endOfFile();){if(a=this.tokenizer.nextToken(),f=a[0],f==="("||f==="["?b.push(f==="("?")":"]"):f==="{"&&b.length>0?b.push("}"):f===b[b.length-1]&&b.pop(),b.length===0)if(f===";"){h.source.end=this.getPosition(a[2]),h.source.end.offset++,this.semicolon=!0;break}else if(f==="{"){g=!0;break}else if(f==="}"){if(C.length>0){for(m=C.length-1,o=C[m];o&&o[0]==="space";)o=C[--m];o&&(h.source.end=this.getPosition(o[3]||o[2]),h.source.end.offset++)}this.end(a);break}else C.push(a);else C.push(a);if(this.tokenizer.endOfFile()){d=!0;break}}h.raws.between=this.spacesAndCommentsFromEnd(C),C.length?(h.raws.afterName=this.spacesAndCommentsFromStart(C),this.raw(h,"params",C),d&&(a=C[C.length-1],h.source.end=this.getPosition(a[3]||a[2]),h.source.end.offset++,this.spaces=h.raws.between,h.raws.between="")):(h.raws.afterName="",h.params=""),g&&(h.nodes=[],this.current=h)}checkMissedSemicolon(a){let h=this.colon(a);if(h===!1)return;let f=0,o;for(let m=h-1;m>=0&&(o=a[m],!(o[0]!=="space"&&(f+=1,f===2)));m--);throw this.input.error("Missed semicolon",o[0]==="word"?o[3]+1:o[2])}colon(a){let h=0,f,o,m;for(let[d,g]of a.entries()){if(f=g,o=f[0],o==="("&&(h+=1),o===")"&&(h-=1),h===0&&o===":")if(!m)this.doubleColon(f);else{if(m[0]==="word"&&m[1]==="progid")continue;return d}m=f}return!1}comment(a){let h=new r;this.init(h,a[2]),h.source.end=this.getPosition(a[3]||a[2]),h.source.end.offset++;let f=a[1].slice(2,-2);if(/^\s*$/.test(f))h.text="",h.raws.left=f,h.raws.right="";else{let o=f.match(/^(\s*)([^]*\S)(\s*)$/);h.text=o[2],h.raws.left=o[1],h.raws.right=o[3]}}createTokenizer(){this.tokenizer=t(this.input)}decl(a,h){let f=new e;this.init(f,a[0][2]);let o=a[a.length-1];for(o[0]===";"&&(this.semicolon=!0,a.pop()),f.source.end=this.getPosition(o[3]||o[2]||c(a)),f.source.end.offset++;a[0][0]!=="word";)a.length===1&&this.unknownWord(a),f.raws.before+=a.shift()[1];for(f.source.start=this.getPosition(a[0][2]),f.prop="";a.length;){let b=a[0][0];if(b===":"||b==="space"||b==="comment")break;f.prop+=a.shift()[1]}f.raws.between="";let m;for(;a.length;)if(m=a.shift(),m[0]===":"){f.raws.between+=m[1];break}else m[0]==="word"&&/\w/.test(m[1])&&this.unknownWord([m]),f.raws.between+=m[1];(f.prop[0]==="_"||f.prop[0]==="*")&&(f.raws.before+=f.prop[0],f.prop=f.prop.slice(1));let d=[],g;for(;a.length&&(g=a[0][0],!(g!=="space"&&g!=="comment"));)d.push(a.shift());this.precheckMissedSemicolon(a);for(let b=a.length-1;b>=0;b--){if(m=a[b],m[1].toLowerCase()==="!important"){f.important=!0;let v=this.stringFrom(a,b);v=this.spacesFromEnd(a)+v,v!==" !important"&&(f.raws.important=v);break}else if(m[1].toLowerCase()==="important"){let v=a.slice(0),E="";for(let w=b;w>0;w--){let y=v[w][0];if(E.trim().indexOf("!")===0&&y!=="space")break;E=v.pop()[1]+E}E.trim().indexOf("!")===0&&(f.important=!0,f.raws.important=E,a=v)}if(m[0]!=="space"&&m[0]!=="comment")break}a.some(b=>b[0]!=="space"&&b[0]!=="comment")&&(f.raws.between+=d.map(b=>b[1]).join(""),d=[]),this.raw(f,"value",d.concat(a),h),f.value.includes(":")&&!h&&this.checkMissedSemicolon(a)}doubleColon(a){throw this.input.error("Double colon",{offset:a[2]},{offset:a[2]+a[1].length})}emptyRule(a){let h=new s;this.init(h,a[2]),h.selector="",h.raws.between="",this.current=h}end(a){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(a[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(a)}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(a){if(this.spaces+=a[1],this.current.nodes){let h=this.current.nodes[this.current.nodes.length-1];h&&h.type==="rule"&&!h.raws.ownSemicolon&&(h.raws.ownSemicolon=this.spaces,this.spaces="")}}getPosition(a){let h=this.input.fromOffset(a);return{column:h.col,line:h.line,offset:a}}init(a,h){this.current.push(a),a.source={input:this.input,start:this.getPosition(h)},a.raws.before=this.spaces,this.spaces="",a.type!=="comment"&&(this.semicolon=!1)}other(a){let h=!1,f=null,o=!1,m=null,d=[],g=a[1].startsWith("--"),C=[],b=a;for(;b;){if(f=b[0],C.push(b),f==="("||f==="[")m||(m=b),d.push(f==="("?")":"]");else if(g&&o&&f==="{")m||(m=b),d.push("}");else if(d.length===0)if(f===";")if(o){this.decl(C,g);return}else break;else if(f==="{"){this.rule(C);return}else if(f==="}"){this.tokenizer.back(C.pop()),h=!0;break}else f===":"&&(o=!0);else f===d[d.length-1]&&(d.pop(),d.length===0&&(m=null));b=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(h=!0),d.length>0&&this.unclosedBracket(m),h&&o){if(!g)for(;C.length&&(b=C[C.length-1][0],!(b!=="space"&&b!=="comment"));)this.tokenizer.back(C.pop());this.decl(C,g)}else this.unknownWord(C)}parse(){let a;for(;!this.tokenizer.endOfFile();)switch(a=this.tokenizer.nextToken(),a[0]){case"space":this.spaces+=a[1];break;case";":this.freeSemicolon(a);break;case"}":this.end(a);break;case"comment":this.comment(a);break;case"at-word":this.atrule(a);break;case"{":this.emptyRule(a);break;default:this.other(a);break}this.endFile()}precheckMissedSemicolon(){}raw(a,h,f,o){let m,d,g=f.length,C="",b=!0,v,E;for(let w=0;w<g;w+=1)m=f[w],d=m[0],d==="space"&&w===g-1&&!o?b=!1:d==="comment"?(E=f[w-1]?f[w-1][0]:"empty",v=f[w+1]?f[w+1][0]:"empty",!u[E]&&!u[v]?C.slice(-1)===","?b=!1:C+=m[1]:b=!1):C+=m[1];if(!b){let w=f.reduce((y,S)=>y+S[1],"");a.raws[h]={raw:w,value:C}}a[h]=C}rule(a){a.pop();let h=new s;this.init(h,a[0][2]),h.raws.between=this.spacesAndCommentsFromEnd(a),this.raw(h,"selector",a),this.current=h}spacesAndCommentsFromEnd(a){let h,f="";for(;a.length&&(h=a[a.length-1][0],!(h!=="space"&&h!=="comment"));)f=a.pop()[1]+f;return f}spacesAndCommentsFromStart(a){let h,f="";for(;a.length&&(h=a[0][0],!(h!=="space"&&h!=="comment"));)f+=a.shift()[1];return f}spacesFromEnd(a){let h,f="";for(;a.length&&(h=a[a.length-1][0],h==="space");)f=a.pop()[1]+f;return f}stringFrom(a,h){let f="";for(let o=h;o<a.length;o++)f+=a[o][1];return a.splice(h,a.length-h),f}unclosedBlock(){let a=this.current.source.start;throw this.input.error("Unclosed block",a.line,a.column)}unclosedBracket(a){throw this.input.error("Unclosed bracket",{offset:a[2]},{offset:a[2]+1})}unexpectedClose(a){throw this.input.error("Unexpected }",{offset:a[2]},{offset:a[2]+1})}unknownWord(a){throw this.input.error("Unknown word",{offset:a[0][2]},{offset:a[0][2]+a[0][1].length})}unnamedAtrule(a,h){throw this.input.error("At-rule without name",{offset:h[2]},{offset:h[2]+h[1].length})}}return mi=l,mi}var gi,ra;function Zi(){if(ra)return gi;ra=1;let e=He(),t=yd(),r=Or();function i(n,s){let u=new r(n,s),c=new t(u);try{c.parse()}catch(l){throw l}return c.root}return gi=i,i.default=i,e.registerParse(i),gi}var yi,na;function ja(){if(na)return yi;na=1;let{isClean:e,my:t}=Yi(),r=$a(),i=Mr(),n=He(),s=Xi(),u=Wa(),c=Ji(),l=Zi(),p=Lt(),a={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},h={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},f={Once:!0,postcssPlugin:!0,prepare:!0},o=0;function m(E){return typeof E=="object"&&typeof E.then=="function"}function d(E){let w=!1,y=a[E.type];return E.type==="decl"?w=E.prop.toLowerCase():E.type==="atrule"&&(w=E.name.toLowerCase()),w&&E.append?[y,y+"-"+w,o,y+"Exit",y+"Exit-"+w]:w?[y,y+"-"+w,y+"Exit",y+"Exit-"+w]:E.append?[y,o,y+"Exit"]:[y,y+"Exit"]}function g(E){let w;return E.type==="document"?w=["Document",o,"DocumentExit"]:E.type==="root"?w=["Root",o,"RootExit"]:w=d(E),{eventIndex:0,events:w,iterator:0,node:E,visitorIndex:0,visitors:[]}}function C(E){return E[e]=!1,E.nodes&&E.nodes.forEach(w=>C(w)),E}let b={};class v{constructor(w,y,S){this.stringified=!1,this.processed=!1;let x;if(typeof y=="object"&&y!==null&&(y.type==="root"||y.type==="document"))x=C(y);else if(y instanceof v||y instanceof c)x=C(y.root),y.map&&(typeof S.map>"u"&&(S.map={}),S.map.inline||(S.map.inline=!1),S.map.prev=y.map);else{let M=l;S.syntax&&(M=S.syntax.parse),S.parser&&(M=S.parser),M.parse&&(M=M.parse);try{x=M(y,S)}catch(T){this.processed=!0,this.error=T}x&&!x[t]&&n.rebuild(x)}this.result=new c(w,x,S),this.helpers={...b,postcss:b,result:this.result},this.plugins=this.processor.plugins.map(M=>typeof M=="object"&&M.prepare?{...M,...M.prepare(this.result)}:M)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(w){return this.async().catch(w)}finally(w){return this.async().then(w,w)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(w,y){let S=this.result.lastPlugin;try{y&&y.addToError(w),this.error=w,w.name==="CssSyntaxError"&&!w.plugin?(w.plugin=S.postcssPlugin,w.setMessage()):S.postcssVersion}catch(x){console&&console.error&&console.error(x)}return w}prepareVisitors(){this.listeners={};let w=(y,S,x)=>{this.listeners[S]||(this.listeners[S]=[]),this.listeners[S].push([y,x])};for(let y of this.plugins)if(typeof y=="object")for(let S in y){if(!h[S]&&/^[A-Z]/.test(S))throw new Error(`Unknown event ${S} in ${y.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!f[S])if(typeof y[S]=="object")for(let x in y[S])x==="*"?w(y,S,y[S][x]):w(y,S+"-"+x.toLowerCase(),y[S][x]);else typeof y[S]=="function"&&w(y,S,y[S])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let w=0;w<this.plugins.length;w++){let y=this.plugins[w],S=this.runOnRoot(y);if(m(S))try{await S}catch(x){throw this.handleError(x)}}if(this.prepareVisitors(),this.hasListener){let w=this.result.root;for(;!w[e];){w[e]=!0;let y=[g(w)];for(;y.length>0;){let S=this.visitTick(y);if(m(S))try{await S}catch(x){let M=y[y.length-1].node;throw this.handleError(x,M)}}}if(this.listeners.OnceExit)for(let[y,S]of this.listeners.OnceExit){this.result.lastPlugin=y;try{if(w.type==="document"){let x=w.nodes.map(M=>S(M,this.helpers));await Promise.all(x)}else await S(w,this.helpers)}catch(x){throw this.handleError(x)}}}return this.processed=!0,this.stringify()}runOnRoot(w){this.result.lastPlugin=w;try{if(typeof w=="object"&&w.Once){if(this.result.root.type==="document"){let y=this.result.root.nodes.map(S=>w.Once(S,this.helpers));return m(y[0])?Promise.all(y):y}return w.Once(this.result.root,this.helpers)}else if(typeof w=="function")return w(this.result.root,this.result)}catch(y){throw this.handleError(y)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let w=this.result.opts,y=i;w.syntax&&(y=w.syntax.stringify),w.stringifier&&(y=w.stringifier),y.stringify&&(y=y.stringify);let x=new r(y,this.result.root,this.result.opts).generate();return this.result.css=x[0],this.result.map=x[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let w of this.plugins){let y=this.runOnRoot(w);if(m(y))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let w=this.result.root;for(;!w[e];)w[e]=!0,this.walkSync(w);if(this.listeners.OnceExit)if(w.type==="document")for(let y of w.nodes)this.visitSync(this.listeners.OnceExit,y);else this.visitSync(this.listeners.OnceExit,w)}return this.result}then(w,y){return this.async().then(w,y)}toString(){return this.css}visitSync(w,y){for(let[S,x]of w){this.result.lastPlugin=S;let M;try{M=x(y,this.helpers)}catch(T){throw this.handleError(T,y.proxyOf)}if(y.type!=="root"&&y.type!=="document"&&!y.parent)return!0;if(m(M))throw this.getAsyncError()}}visitTick(w){let y=w[w.length-1],{node:S,visitors:x}=y;if(S.type!=="root"&&S.type!=="document"&&!S.parent){w.pop();return}if(x.length>0&&y.visitorIndex<x.length){let[T,I]=x[y.visitorIndex];y.visitorIndex+=1,y.visitorIndex===x.length&&(y.visitors=[],y.visitorIndex=0),this.result.lastPlugin=T;try{return I(S.toProxy(),this.helpers)}catch(O){throw this.handleError(O,S)}}if(y.iterator!==0){let T=y.iterator,I;for(;I=S.nodes[S.indexes[T]];)if(S.indexes[T]+=1,!I[e]){I[e]=!0,w.push(g(I));return}y.iterator=0,delete S.indexes[T]}let M=y.events;for(;y.eventIndex<M.length;){let T=M[y.eventIndex];if(y.eventIndex+=1,T===o){S.nodes&&S.nodes.length&&(S[e]=!0,y.iterator=S.getIterator());return}else if(this.listeners[T]){y.visitors=this.listeners[T];return}}w.pop()}walkSync(w){w[e]=!0;let y=d(w);for(let S of y)if(S===o)w.nodes&&w.each(x=>{x[e]||this.walkSync(x)});else{let x=this.listeners[S];if(x&&this.visitSync(x,w.toProxy()))return}}warnings(){return this.sync().warnings()}get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}}return v.registerPostcss=E=>{b=E},yi=v,v.default=v,p.registerLazyResult(v),s.registerLazyResult(v),yi}var bi,ia;function bd(){if(ia)return bi;ia=1;let e=$a(),t=Mr(),r=Wa(),i=Zi(),n=Ji();class s{constructor(c,l,p){l=l.toString(),this.stringified=!1,this._processor=c,this._css=l,this._opts=p,this._map=void 0;let a,h=t;this.result=new n(this._processor,a,this._opts),this.result.css=l;let f=this;Object.defineProperty(this.result,"root",{get(){return f.root}});let o=new e(h,a,this._opts,l);if(o.isMap()){let[m,d]=o.generate();m&&(this.result.css=m),d&&(this.result.map=d)}else o.clearAnnotation(),this.result.css=o.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(c){return this.async().catch(c)}finally(c){return this.async().then(c,c)}sync(){if(this.error)throw this.error;return this.result}then(c,l){return this.async().then(c,l)}toString(){return this._css}warnings(){return[]}get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let c,l=i;try{c=l(this._css,this._opts)}catch(p){this.error=p}if(this.error)throw this.error;return this._root=c,c}get[Symbol.toStringTag](){return"NoWorkResult"}}return bi=s,s.default=s,bi}var wi,sa;function wd(){if(sa)return wi;sa=1;let e=bd(),t=ja(),r=Xi(),i=Lt();class n{constructor(u=[]){this.version="8.4.38",this.plugins=this.normalize(u)}normalize(u){let c=[];for(let l of u)if(l.postcss===!0?l=l():l.postcss&&(l=l.postcss),typeof l=="object"&&Array.isArray(l.plugins))c=c.concat(l.plugins);else if(typeof l=="object"&&l.postcssPlugin)c.push(l);else if(typeof l=="function")c.push(l);else if(!(typeof l=="object"&&(l.parse||l.stringify)))throw new Error(l+" is not a PostCSS plugin");return c}process(u,c={}){return!this.plugins.length&&!c.parser&&!c.stringifier&&!c.syntax?new e(this,u,c):new t(this,u,c)}use(u){return this.plugins=this.plugins.concat(this.normalize([u])),this}}return wi=n,n.default=n,i.registerProcessor(n),r.registerProcessor(n),wi}var vi,oa;function vd(){if(oa)return vi;oa=1;let e=kr(),t=Ba(),r=Ir(),i=Ki(),n=Or(),s=Lt(),u=Qi();function c(l,p){if(Array.isArray(l))return l.map(f=>c(f));let{inputs:a,...h}=l;if(a){p=[];for(let f of a){let o={...f,__proto__:n.prototype};o.map&&(o.map={...o.map,__proto__:t.prototype}),p.push(o)}}if(h.nodes&&(h.nodes=l.nodes.map(f=>c(f,p))),h.source){let{inputId:f,...o}=h.source;h.source=o,f!=null&&(h.source.input=p[f])}if(h.type==="root")return new s(h);if(h.type==="decl")return new e(h);if(h.type==="rule")return new u(h);if(h.type==="comment")return new r(h);if(h.type==="atrule")return new i(h);throw new Error("Unknown node type: "+l.type)}return vi=c,c.default=c,vi}var Si,aa;function Sd(){if(aa)return Si;aa=1;let e=Gi(),t=kr(),r=ja(),i=He(),n=wd(),s=Mr(),u=vd(),c=Xi(),l=za(),p=Ir(),a=Ki(),h=Ji(),f=Or(),o=Zi(),m=qa(),d=Qi(),g=Lt(),C=Nr();function b(...v){return v.length===1&&Array.isArray(v[0])&&(v=v[0]),new n(v)}return b.plugin=function(E,w){let y=!1;function S(...M){console&&console.warn&&!y&&(y=!0,console.warn(E+`: postcss.plugin was deprecated. Migration guide:
50
50
  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:
51
- https://www.w3ctech.com/topic/2226`));let T=w(...M);return T.postcssPlugin=E,T.postcssVersion=new n().version,T}let x;return Object.defineProperty(S,"postcss",{get(){return x||(x=S()),x}}),S.process=function(M,T,I){return b([S(I)]).process(M,T)},S},b.stringify=l,b.parse=s,b.fromJSON=u,b.list=m,b.comment=v=>new p(v),b.atRule=v=>new o(v),b.decl=v=>new t(v),b.rule=v=>new d(v),b.root=v=>new g(v),b.document=v=>new c(v),b.CssSyntaxError=e,b.Declaration=t,b.Container=i,b.Processor=n,b.Document=c,b.Comment=p,b.Warning=a,b.AtRule=o,b.Result=h,b.Input=f,b.Rule=d,b.Root=g,b.Node=C,r.registerPostcss(b),di=b,b.default=b,di}var Hf=Vf(),G=_f(Hf);G.stringify;G.fromJSON;G.plugin;G.parse;G.list;G.document;G.comment;G.atRule;G.rule;G.decl;G.root;G.CssSyntaxError;G.Declaration;G.Container;G.Processor;G.Document;G.Comment;G.Warning;G.AtRule;G.Result;G.Input;G.Rule;G.Root;G.Node;var bi=class e{constructor(...t){me(this,"parentElement",null),me(this,"parentNode",null),me(this,"ownerDocument"),me(this,"firstChild",null),me(this,"lastChild",null),me(this,"previousSibling",null),me(this,"nextSibling",null),me(this,"ELEMENT_NODE",1),me(this,"TEXT_NODE",3),me(this,"nodeType"),me(this,"nodeName"),me(this,"RRNodeType")}get childNodes(){let t=[],r=this.firstChild;for(;r;)t.push(r),r=r.nextSibling;return t}contains(t){if(t instanceof e){if(t.ownerDocument!==this.ownerDocument)return!1;if(t===this)return!0}else return!1;for(;t.parentNode;){if(t.parentNode===this)return!0;t=t.parentNode}return!1}appendChild(t){throw new Error("RRDomException: Failed to execute 'appendChild' on 'RRNode': This RRNode type does not support this method.")}insertBefore(t,r){throw new Error("RRDomException: Failed to execute 'insertBefore' on 'RRNode': This RRNode type does not support this method.")}removeChild(t){throw new Error("RRDomException: Failed to execute 'removeChild' on 'RRNode': This RRNode type does not support this method.")}toString(){return"RRNode"}};var Ho={Node:["childNodes","parentNode","parentElement","textContent","ownerDocument","firstChild","lastChild","nextSibling","previousSibling"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},Go={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},er={},Oa={},Gf=()=>!!globalThis.Zone;function Vi(e){if(er[e])return er[e];let t=globalThis[e],r=t.prototype,i=e in Ho?Ho[e]:void 0,n=!!(i&&i.every(c=>{var a,p;return!!((p=(a=Object.getOwnPropertyDescriptor(r,c))==null?void 0:a.get)!=null&&p.toString().includes("[native code]"))})),l=e in Go?Go[e]:void 0,u=!!(l&&l.every(c=>{var a;return typeof r[c]=="function"&&((a=r[c])==null?void 0:a.toString().includes("[native code]"))}));if(n&&u&&!Gf())return er[e]=t.prototype,t.prototype;try{let c=document.createElement("iframe");c.style.display="none",document.body.appendChild(c);let a=c.contentWindow;if(!a)return t.prototype;let p=a[e].prototype;if(!p)return c.remove(),r;let o=navigator.userAgent;return o.includes("Safari")&&!o.includes("Chrome")?(c.classList.add("rr-block"),c.setAttribute("__rrwebUntaintedMutationObserver",""),Oa[e]=()=>c.remove()):c.remove(),er[e]=p}catch{return r}}var hi={};function de(e,t,r){var i,n;let l=(i=hi[e])==null?void 0:i[r];if(l)return l.call(t);let u=Vi(e),c=(n=Object.getOwnPropertyDescriptor(u,r))==null?void 0:n.get;return c?((hi[e]||(hi[e]={}))[r]=c,c.call(t)):t[r]}var pi={};function ka(e,t,r){let i=`${e}.${String(r)}`;if(pi[i])return pi[i].bind(t);let l=Vi(e)[r];return typeof l!="function"?t[r]:(pi[i]=l,l.bind(t))}function Yf(e){return de("Node",e,"ownerDocument")}function Xf(e){return de("Node",e,"childNodes")}function Jf(e){return de("Node",e,"parentNode")}function Kf(e){return de("Node",e,"parentElement")}function Qf(e){return de("Node",e,"textContent")}function Zf(e){return de("Node",e,"firstChild")}function ed(e){return de("Node",e,"lastChild")}function td(e){return de("Node",e,"nextSibling")}function rd(e){return de("Node",e,"previousSibling")}function nd(e,t){return ka("Node",e,"contains")(t)}function id(e){return ka("Node",e,"getRootNode")()}function sd(e){return!e||!("host"in e)?null:de("ShadowRoot",e,"host")}function od(e){return e.styleSheets}function ad(e){return!e||!("shadowRoot"in e)?null:de("Element",e,"shadowRoot")}function ld(e,t){return de("Element",e,"querySelector")(t)}function ud(e,t){return de("Element",e,"querySelectorAll")(t)}function Ia(){return[Vi("MutationObserver").constructor,Oa.MutationObserver??(()=>{})]}var Rt=Date.now;/[1-9][0-9]{12}/.test(Date.now().toString())||(Rt=()=>new Date().getTime());function je(e,t,r){try{if(!(t in e))return()=>{};let i=e[t],n=r(i);return typeof n=="function"&&(n.prototype=n.prototype||{},Object.defineProperties(n,{__rrweb_original__:{enumerable:!1,value:i}})),e[t]=n,()=>{e[t]=i}}catch{return()=>{}}}var D={ownerDocument:Yf,childNodes:Xf,parentNode:Jf,parentElement:Kf,textContent:Qf,firstChild:Zf,lastChild:ed,nextSibling:td,previousSibling:rd,contains:nd,getRootNode:id,host:sd,styleSheets:od,shadowRoot:ad,querySelector:ld,querySelectorAll:ud,nowTimestamp:Rt,mutationObserverCtor:Ia,patch:je};function oe(e,t,r=document){let i={capture:!0,passive:!0};return r.addEventListener(e,t,i),()=>r.removeEventListener(e,t,i)}var Ze=`Please stop import mirror directly. Instead of that,\r
51
+ https://www.w3ctech.com/topic/2226`));let T=w(...M);return T.postcssPlugin=E,T.postcssVersion=new n().version,T}let x;return Object.defineProperty(S,"postcss",{get(){return x||(x=S()),x}}),S.process=function(M,T,I){return b([S(I)]).process(M,T)},S},b.stringify=s,b.parse=o,b.fromJSON=u,b.list=m,b.comment=v=>new p(v),b.atRule=v=>new a(v),b.decl=v=>new t(v),b.rule=v=>new d(v),b.root=v=>new g(v),b.document=v=>new c(v),b.CssSyntaxError=e,b.Declaration=t,b.Container=i,b.Processor=n,b.Document=c,b.Comment=p,b.Warning=l,b.AtRule=a,b.Result=h,b.Input=f,b.Rule=d,b.Root=g,b.Node=C,r.registerPostcss(b),Si=b,b.default=b,Si}var Cd=Sd(),G=cd(Cd);G.stringify;G.fromJSON;G.plugin;G.parse;G.list;G.document;G.comment;G.atRule;G.rule;G.decl;G.root;G.CssSyntaxError;G.Declaration;G.Container;G.Processor;G.Document;G.Comment;G.Warning;G.AtRule;G.Result;G.Input;G.Rule;G.Root;G.Node;var Mi=class e{constructor(...t){ge(this,"parentElement",null),ge(this,"parentNode",null),ge(this,"ownerDocument"),ge(this,"firstChild",null),ge(this,"lastChild",null),ge(this,"previousSibling",null),ge(this,"nextSibling",null),ge(this,"ELEMENT_NODE",1),ge(this,"TEXT_NODE",3),ge(this,"nodeType"),ge(this,"nodeName"),ge(this,"RRNodeType")}get childNodes(){let t=[],r=this.firstChild;for(;r;)t.push(r),r=r.nextSibling;return t}contains(t){if(t instanceof e){if(t.ownerDocument!==this.ownerDocument)return!1;if(t===this)return!0}else return!1;for(;t.parentNode;){if(t.parentNode===this)return!0;t=t.parentNode}return!1}appendChild(t){throw new Error("RRDomException: Failed to execute 'appendChild' on 'RRNode': This RRNode type does not support this method.")}insertBefore(t,r){throw new Error("RRDomException: Failed to execute 'insertBefore' on 'RRNode': This RRNode type does not support this method.")}removeChild(t){throw new Error("RRDomException: Failed to execute 'removeChild' on 'RRNode': This RRNode type does not support this method.")}toString(){return"RRNode"}};var la={Node:["childNodes","parentNode","parentElement","textContent","ownerDocument","firstChild","lastChild","nextSibling","previousSibling"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},ua={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},lr={},Va={},Ed=()=>!!globalThis.Zone;function es(e){if(lr[e])return lr[e];let t=globalThis[e],r=t.prototype,i=e in la?la[e]:void 0,n=!!(i&&i.every(c=>{var l,p;return!!((p=(l=Object.getOwnPropertyDescriptor(r,c))==null?void 0:l.get)!=null&&p.toString().includes("[native code]"))})),s=e in ua?ua[e]:void 0,u=!!(s&&s.every(c=>{var l;return typeof r[c]=="function"&&((l=r[c])==null?void 0:l.toString().includes("[native code]"))}));if(n&&u&&!Ed())return lr[e]=t.prototype,t.prototype;try{let c=document.createElement("iframe");c.style.display="none",document.body.appendChild(c);let l=c.contentWindow;if(!l)return t.prototype;let p=l[e].prototype;if(!p)return c.remove(),r;let a=navigator.userAgent;return a.includes("Safari")&&!a.includes("Chrome")?(c.classList.add("rr-block"),c.setAttribute("__rrwebUntaintedMutationObserver",""),Va[e]=()=>c.remove()):c.remove(),lr[e]=p}catch{return r}}var Ci={};function de(e,t,r){var i,n;let s=(i=Ci[e])==null?void 0:i[r];if(s)return s.call(t);let u=es(e),c=(n=Object.getOwnPropertyDescriptor(u,r))==null?void 0:n.get;return c?((Ci[e]||(Ci[e]={}))[r]=c,c.call(t)):t[r]}var Ei={};function Ha(e,t,r){let i=`${e}.${String(r)}`;if(Ei[i])return Ei[i].bind(t);let s=es(e)[r];return typeof s!="function"?t[r]:(Ei[i]=s,s.bind(t))}function xd(e){return de("Node",e,"ownerDocument")}function Rd(e){return de("Node",e,"childNodes")}function Td(e){return de("Node",e,"parentNode")}function Md(e){return de("Node",e,"parentElement")}function Nd(e){return de("Node",e,"textContent")}function kd(e){return de("Node",e,"firstChild")}function Od(e){return de("Node",e,"lastChild")}function Id(e){return de("Node",e,"nextSibling")}function Ad(e){return de("Node",e,"previousSibling")}function Dd(e,t){return Ha("Node",e,"contains")(t)}function _d(e){return Ha("Node",e,"getRootNode")()}function Ld(e){return!e||!("host"in e)?null:de("ShadowRoot",e,"host")}function Pd(e){return e.styleSheets}function Fd(e){return!e||!("shadowRoot"in e)?null:de("Element",e,"shadowRoot")}function Ud(e,t){return de("Element",e,"querySelector")(t)}function Bd(e,t){return de("Element",e,"querySelectorAll")(t)}function Ga(){return[es("MutationObserver").constructor,Va.MutationObserver??(()=>{})]}var At=Date.now;/[1-9][0-9]{12}/.test(Date.now().toString())||(At=()=>new Date().getTime());function Ge(e,t,r){try{if(!(t in e))return()=>{};let i=e[t],n=r(i);return typeof n=="function"&&(n.prototype=n.prototype||{},Object.defineProperties(n,{__rrweb_original__:{enumerable:!1,value:i}})),e[t]=n,()=>{e[t]=i}}catch{return()=>{}}}var D={ownerDocument:xd,childNodes:Rd,parentNode:Td,parentElement:Md,textContent:Nd,firstChild:kd,lastChild:Od,nextSibling:Id,previousSibling:Ad,contains:Dd,getRootNode:_d,host:Ld,styleSheets:Pd,shadowRoot:Fd,querySelector:Ud,querySelectorAll:Bd,nowTimestamp:At,mutationObserverCtor:Ga,patch:Ge};function oe(e,t,r=document){let i={capture:!0,passive:!0};return r.addEventListener(e,t,i),()=>r.removeEventListener(e,t,i)}var it=`Please stop import mirror directly. Instead of that,\r
52
52
  now you can use replayer.getMirror() to access the mirror instance of a replayer,\r
53
- or you can use record.mirror to access the mirror instance during recording.`,Yo={map:{},getId(){return console.error(Ze),-1},getNode(){return console.error(Ze),null},removeNodeFromMap(){console.error(Ze)},has(){return console.error(Ze),!1},reset(){console.error(Ze)}};typeof window<"u"&&window.Proxy&&window.Reflect&&(Yo=new Proxy(Yo,{get(e,t,r){return t==="map"&&console.error(Ze),Reflect.get(e,t,r)}}));function Tt(e,t,r={}){let i=null,n=0;return function(...l){let u=Date.now();!n&&r.leading===!1&&(n=u);let c=t-(u-n),a=this;c<=0||c>t?(i&&(clearTimeout(i),i=null),n=u,e.apply(a,l)):!i&&r.trailing!==!1&&(i=setTimeout(()=>{n=r.leading===!1?0:Date.now(),i=null,e.apply(a,l)},c))}}function xr(e,t,r,i,n=window){let l=n.Object.getOwnPropertyDescriptor(e,t);return n.Object.defineProperty(e,t,i?r:{set(u){setTimeout(()=>{r.set.call(this,u)},0),l&&l.set&&l.set.call(this,u)}}),()=>xr(e,t,l||{},!0)}function Aa(e){var t,r,i,n;let l=e.document;return{left:l.scrollingElement?l.scrollingElement.scrollLeft:e.pageXOffset!==void 0?e.pageXOffset:l.documentElement.scrollLeft||l?.body&&((t=D.parentElement(l.body))==null?void 0:t.scrollLeft)||((r=l?.body)==null?void 0:r.scrollLeft)||0,top:l.scrollingElement?l.scrollingElement.scrollTop:e.pageYOffset!==void 0?e.pageYOffset:l?.documentElement.scrollTop||l?.body&&((i=D.parentElement(l.body))==null?void 0:i.scrollTop)||((n=l?.body)==null?void 0:n.scrollTop)||0}}function Da(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function _a(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function La(e){return e?e.nodeType===e.ELEMENT_NODE?e:D.parentElement(e):null}function ae(e,t,r,i){if(!e)return!1;let n=La(e);if(!n)return!1;try{if(typeof t=="string"){if(n.classList.contains(t)||i&&n.closest("."+t)!==null)return!0}else if(cr(n,t,i))return!0}catch{}return!!(r&&(n.matches(r)||i&&n.closest(r)!==null))}function cd(e,t){return t.getId(e)!==-1}function mi(e,t,r){return e.tagName==="TITLE"&&r.headTitleMutations?!0:t.getId(e)===ur}function Pa(e,t){if(Ct(e))return!1;let r=t.getId(e);if(!t.has(r))return!0;let i=D.parentNode(e);return i&&i.nodeType===e.DOCUMENT_NODE?!1:i?Pa(i,t):!0}function wi(e){return!!e.changedTouches}function fd(e=window){"NodeList"in e&&!e.NodeList.prototype.forEach&&(e.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in e&&!e.DOMTokenList.prototype.forEach&&(e.DOMTokenList.prototype.forEach=Array.prototype.forEach)}function Fa(e,t){return!!(e.nodeName==="IFRAME"&&t.getMeta(e))}function Ua(e,t){return!!(e.nodeName==="LINK"&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&e.getAttribute("rel")==="stylesheet"&&t.getMeta(e))}function vi(e){return e?e instanceof bi&&"shadowRoot"in e?!!e.shadowRoot:!!D.shadowRoot(e):!1}var Si=class{constructor(){O(this,"id",1),O(this,"styleIDMap",new WeakMap),O(this,"idStyleMap",new Map)}getId(t){return this.styleIDMap.get(t)??-1}has(t){return this.styleIDMap.has(t)}add(t,r){if(this.has(t))return this.getId(t);let i;return r===void 0?i=this.id++:i=r,this.styleIDMap.set(t,i),this.idStyleMap.set(i,t),i}getStyle(t){return this.idStyleMap.get(t)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}};function Ba(e){var t;let r=null;return"getRootNode"in e&&((t=D.getRootNode(e))==null?void 0:t.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&D.host(D.getRootNode(e))&&(r=D.host(D.getRootNode(e))),r}function dd(e){let t=e,r;for(;r=Ba(t);)t=r;return t}function hd(e){let t=D.ownerDocument(e);if(!t)return!1;let r=dd(e);return D.contains(t,r)}function $a(e){let t=D.ownerDocument(e);return t?D.contains(t,e)||hd(e):!1}var _=(e=>(e[e.DomContentLoaded=0]="DomContentLoaded",e[e.Load=1]="Load",e[e.FullSnapshot=2]="FullSnapshot",e[e.IncrementalSnapshot=3]="IncrementalSnapshot",e[e.Meta=4]="Meta",e[e.Custom=5]="Custom",e[e.Plugin=6]="Plugin",e[e.Asset=7]="Asset",e))(_||{}),L=(e=>(e[e.Mutation=0]="Mutation",e[e.MouseMove=1]="MouseMove",e[e.MouseInteraction=2]="MouseInteraction",e[e.Scroll=3]="Scroll",e[e.ViewportResize=4]="ViewportResize",e[e.Input=5]="Input",e[e.TouchMove=6]="TouchMove",e[e.MediaInteraction=7]="MediaInteraction",e[e.StyleSheetRule=8]="StyleSheetRule",e[e.CanvasMutation=9]="CanvasMutation",e[e.Font=10]="Font",e[e.Log=11]="Log",e[e.Drag=12]="Drag",e[e.StyleDeclaration=13]="StyleDeclaration",e[e.Selection=14]="Selection",e[e.AdoptedStyleSheet=15]="AdoptedStyleSheet",e[e.CustomElement=16]="CustomElement",e))(L||{}),le=(e=>(e[e.MouseUp=0]="MouseUp",e[e.MouseDown=1]="MouseDown",e[e.Click=2]="Click",e[e.ContextMenu=3]="ContextMenu",e[e.DblClick=4]="DblClick",e[e.Focus=5]="Focus",e[e.Blur=6]="Blur",e[e.TouchStart=7]="TouchStart",e[e.TouchMove_Departed=8]="TouchMove_Departed",e[e.TouchEnd=9]="TouchEnd",e[e.TouchCancel=10]="TouchCancel",e))(le||{}),Ne=(e=>(e[e.Mouse=0]="Mouse",e[e.Pen=1]="Pen",e[e.Touch=2]="Touch",e))(Ne||{}),it=(e=>(e[e["2D"]=0]="2D",e[e.WebGL=1]="WebGL",e[e.WebGL2=2]="WebGL2",e))(it||{}),et=(e=>(e[e.Play=0]="Play",e[e.Pause=1]="Pause",e[e.Seeked=2]="Seeked",e[e.VolumeChange=3]="VolumeChange",e[e.RateChange=4]="RateChange",e))(et||{});var Wa=(e=>(e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment",e))(Wa||{}),Xo=(e,t)=>`${e}@${t}`,Ci=class{constructor(){O(this,"frozen",!1),O(this,"locked",!1),O(this,"texts",[]),O(this,"attributes",[]),O(this,"attributeMap",new WeakMap),O(this,"removes",[]),O(this,"mapRemoves",[]),O(this,"movedMap",{}),O(this,"addedSet",new Set),O(this,"movedSet",new Set),O(this,"droppedSet",new Set),O(this,"removesSubTreeCache",new Set),O(this,"mutationCb"),O(this,"blockClass"),O(this,"blockSelector"),O(this,"maskTextClass"),O(this,"maskTextSelector"),O(this,"inlineStylesheet"),O(this,"maskInputOptions"),O(this,"maskTextFn"),O(this,"maskInputFn"),O(this,"keepIframeSrcFn"),O(this,"recordCanvas"),O(this,"inlineImages"),O(this,"slimDOMOptions"),O(this,"dataURLOptions"),O(this,"doc"),O(this,"mirror"),O(this,"iframeManager"),O(this,"stylesheetManager"),O(this,"shadowDomManager"),O(this,"canvasManager"),O(this,"processedNodeManager"),O(this,"unattachedDoc"),O(this,"processMutations",t=>{t.forEach(this.processMutation),this.emit()}),O(this,"emit",()=>{if(this.frozen||this.locked)return;let t=[],r=new Set;for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(let f of this.movedSet){let s=D.parentNode(f);this.removesSubTreeCache.has(s)&&!this.movedSet.has(s)||this.addedSet.add(f)}let i=null,n=null,l=-1,u=null,c=!1,a=new Set,p=this.addedSet.values(),o=p.next();for(;this.addedSet.size;){if(i!==null&&this.addedSet.has(D.previousSibling(i)))u=i,i=D.previousSibling(i);else{for(this.addedSet.has(o.value)||(o=p.next()),i=o.value;;){if(n=D.parentNode(i),this.addedSet.has(n)){i=n;continue}break}if(a.has(n))n=null;else if(n){if($a(n)?(c=Jo(this.droppedSet,n)||this.removesSubTreeCache.has(n),c&&Jo(this.movedSet,i)&&(c=!1)):c=!0,this.addedSet.has(D.lastChild(n)))i=D.lastChild(n),u=null;else for(;;){if(u=D.nextSibling(i),this.addedSet.has(u)){i=u;continue}break}if(l=Ct(n)?this.mirror.getId(Ba(i)):this.mirror.getId(n),l===-1&&n.nodeType===Node.DOCUMENT_FRAGMENT_NODE){let d=D.host(n);l=this.mirror.getId(d)}}}if(this.addedSet.delete(i),!n||l===-1){a.add(i);continue}else if(c){this.droppedSet.add(i);continue}let f=!1;if(i.nodeType===Node.TEXT_NODE){let d=n.tagName;if(d==="TEXTAREA")continue;d==="STYLE"&&r.has(l)&&(f=!0)}let s=u?this.mirror.getId(u):null;for(;s===ur;)u=u&&D.nextSibling(u),s=u&&this.mirror.getId(u);if(s===-1){console.warn("Couldn't record new node. Couldn't find mirror id for nextSibling:",u),i=null;continue}let m=rt(i,{doc:this.doc,mirror:this.mirror,blockClass:this.blockClass,blockSelector:this.blockSelector,maskTextClass:this.maskTextClass,maskTextSelector:this.maskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:this.inlineStylesheet,maskInputOptions:this.maskInputOptions,maskTextFn:this.maskTextFn,maskInputFn:this.maskInputFn,slimDOMOptions:this.slimDOMOptions,dataURLOptions:this.dataURLOptions,recordCanvas:this.recordCanvas,inlineImages:this.inlineImages,onSerialize:d=>{Fa(d,this.mirror)&&this.iframeManager.addIframe(d),Ua(d,this.mirror)&&this.stylesheetManager.trackLinkElement(d),vi(i)&&this.shadowDomManager.addShadowRoot(D.shadowRoot(i),this.doc)},onIframeLoad:(d,g)=>{this.iframeManager.attachIframe(d,g),this.shadowDomManager.observeAttachShadow(d)},onStylesheetLoad:(d,g)=>{this.stylesheetManager.attachLinkElement(d,g)},cssCaptured:f});m&&(t.push({parentId:l,nextId:s,node:m}),r.add(m.id))}let h={texts:this.texts.map(f=>{let s=f.node,m=D.parentNode(s);return m&&m.tagName==="TEXTAREA"&&this.genTextAreaValueMutation(m),{id:this.mirror.getId(s),value:f.value}}).filter(f=>!r.has(f.id)).filter(f=>this.mirror.has(f.id)),attributes:this.attributes.map(f=>{let{attributes:s}=f;if(typeof s.style=="string"){let m=JSON.stringify(f.styleDiff),d=JSON.stringify(f._unchangedStyles);m.length<s.style.length&&(m+d).split("var(").length===s.style.split("var(").length&&(s.style=f.styleDiff)}return{id:this.mirror.getId(f.node),attributes:s}}).filter(f=>!r.has(f.id)).filter(f=>this.mirror.has(f.id)),removes:this.removes,adds:t};!h.texts.length&&!h.attributes.length&&!h.removes.length&&!h.adds.length||(this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.removesSubTreeCache=new Set,this.movedMap={},this.mutationCb(h))}),O(this,"genTextAreaValueMutation",t=>{let r=this.attributeMap.get(t);r||(r={node:t,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(r),this.attributeMap.set(t,r));let i=Array.from(D.childNodes(t),n=>D.textContent(n)||"").join("");r.attributes.value=or({element:t,maskInputOptions:this.maskInputOptions,tagName:t.tagName,type:ar(t),value:i,maskInputFn:this.maskInputFn})}),O(this,"processMutation",t=>{if(!mi(t.target,this.mirror,this.slimDOMOptions))switch(t.type){case"characterData":{let r=D.textContent(t.target);!ae(t.target,this.blockClass,this.blockSelector,!1)&&r!==t.oldValue&&this.texts.push({value:ha(t.target,this.maskTextClass,this.maskTextSelector,!0)&&r?this.maskTextFn?this.maskTextFn(r,La(t.target)):r.replace(/[\S]/g,"*"):r,node:t.target});break}case"attributes":{let r=t.target,i=_e(r.tagName),n=t.attributeName,l=t.target.getAttribute(n);if(n==="value"){let c=ar(r);l=or({element:r,maskInputOptions:this.maskInputOptions,tagName:r.tagName,type:c,value:l,maskInputFn:this.maskInputFn})}if(ae(t.target,this.blockClass,this.blockSelector,!1)||l===t.oldValue)return;let u=this.attributeMap.get(t.target);if(i==="iframe"&&n==="src"&&!this.keepIframeSrcFn(l))if(!r.contentDocument)n="rr_src";else return;if(u||(u={node:t.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(u),this.attributeMap.set(t.target,u)),n==="type"&&i==="input"&&(t.oldValue||"").toLowerCase()==="password"&&r.setAttribute("data-rr-is-password","true"),!da(i,n))if(u.attributes[n]=fa(this.doc,i,_e(n),l),n==="style"){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch{this.unattachedDoc=this.doc}let c=this.unattachedDoc.createElement("span");t.oldValue&&c.setAttribute("style",t.oldValue);for(let a of Array.from(r.style)){let p=r.style.getPropertyValue(a),o=r.style.getPropertyPriority(a);p!==c.style.getPropertyValue(a)||o!==c.style.getPropertyPriority(a)?o===""?u.styleDiff[a]=p:u.styleDiff[a]=[p,o]:u._unchangedStyles[a]=[p,o]}for(let a of Array.from(c.style))r.style.getPropertyValue(a)===""&&(u.styleDiff[a]=!1)}else n==="open"&&r.tagName==="DIALOG"&&(r.matches("dialog:modal")?u.attributes.rr_open_mode="modal":u.attributes.rr_open_mode="non-modal");break}case"childList":{if(ae(t.target,this.blockClass,this.blockSelector,!0))return;if(t.target.tagName==="TEXTAREA"){this.genTextAreaValueMutation(t.target);return}t.addedNodes.forEach(r=>this.genAdds(r,t.target)),t.removedNodes.forEach(r=>{let i=this.mirror.getId(r),n=Ct(t.target)?this.mirror.getId(D.host(t.target)):this.mirror.getId(t.target);ae(t.target,this.blockClass,this.blockSelector,!1)||mi(r,this.mirror,this.slimDOMOptions)||!cd(r,this.mirror)||(this.addedSet.has(r)?(Ei(this.addedSet,r),this.droppedSet.add(r)):this.addedSet.has(t.target)&&i===-1||Pa(t.target,this.mirror)||(this.movedSet.has(r)&&this.movedMap[Xo(i,n)]?Ei(this.movedSet,r):(this.removes.push({parentId:n,id:i,isShadow:Ct(t.target)&&Et(t.target)?!0:void 0}),pd(r,this.removesSubTreeCache))),this.mapRemoves.push(r))});break}}}),O(this,"genAdds",(t,r)=>{if(!this.processedNodeManager.inOtherBuffer(t,this)&&!(this.addedSet.has(t)||this.movedSet.has(t))){if(this.mirror.hasNode(t)){if(mi(t,this.mirror,this.slimDOMOptions))return;this.movedSet.add(t);let i=null;r&&this.mirror.hasNode(r)&&(i=this.mirror.getId(r)),i&&i!==-1&&(this.movedMap[Xo(this.mirror.getId(t),i)]=!0)}else this.addedSet.add(t),this.droppedSet.delete(t);ae(t,this.blockClass,this.blockSelector,!1)||(D.childNodes(t).forEach(i=>this.genAdds(i)),vi(t)&&D.childNodes(D.shadowRoot(t)).forEach(i=>{this.processedNodeManager.add(i,this),this.genAdds(i,t)}))}})}init(t){["mutationCb","blockClass","blockSelector","maskTextClass","maskTextSelector","inlineStylesheet","maskInputOptions","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager"].forEach(r=>{this[r]=t[r]})}freeze(){this.frozen=!0,this.canvasManager.freeze()}unfreeze(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()}isFrozen(){return this.frozen}lock(){this.locked=!0,this.canvasManager.lock()}unlock(){this.locked=!1,this.canvasManager.unlock(),this.emit()}reset(){this.shadowDomManager.reset(),this.canvasManager.reset()}};function Ei(e,t){e.delete(t),D.childNodes(t).forEach(r=>Ei(e,r))}function pd(e,t){let r=[e];for(;r.length;){let i=r.pop();t.has(i)||(t.add(i),D.childNodes(i).forEach(n=>r.push(n)))}}function Jo(e,t){return e.size===0?!1:za(e,t)}function za(e,t){if(e.has(t))return!0;let r=D.parentNode(t);return r?za(e,r):!1}var xt;function md(e){xt=e}function gd(){xt=void 0}var F=e=>xt?(...r)=>{try{return e(...r)}catch(i){if(xt&&xt(i)===!0)return;throw i}}:e,We=[];function Ot(e){try{if("composedPath"in e){let t=e.composedPath();if(t.length)return t[0]}else if("path"in e&&e.path.length)return e.path[0]}catch{}return e&&e.target}function qa(e,t){let r=new Ci;We.push(r),r.init(e);let[i,n]=Ia(),l=new i(F(r.processMutations.bind(r)));return l.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),[l,n]}function yd({mousemoveCb:e,sampling:t,doc:r,mirror:i}){if(t.mousemove===!1)return()=>{};let n=typeof t.mousemove=="number"?t.mousemove:50,l=typeof t.mousemoveCallback=="number"?t.mousemoveCallback:500,u=[],c,a=Tt(F(h=>{let f=Date.now()-c;e(u.map(s=>(s.timeOffset-=f,s)),h),u=[],c=null}),l),p=F(Tt(F(h=>{let f=Ot(h),{clientX:s,clientY:m}=wi(h)?h.changedTouches[0]:h;c||(c=Rt()),u.push({x:s,y:m,id:i.getId(f),timeOffset:Rt()-c}),a(typeof DragEvent<"u"&&h instanceof DragEvent?L.Drag:h instanceof MouseEvent?L.MouseMove:L.TouchMove)}),n,{trailing:!1})),o=[oe("mousemove",p,r),oe("touchmove",p,r),oe("drag",p,r)];return F(()=>{o.forEach(h=>h())})}function bd({mouseInteractionCb:e,doc:t,mirror:r,blockClass:i,blockSelector:n,sampling:l}){if(l.mouseInteraction===!1)return()=>{};let u=l.mouseInteraction===!0||l.mouseInteraction===void 0?{}:l.mouseInteraction,c=[],a=null,p=o=>h=>{let f=Ot(h);if(ae(f,i,n,!0))return;let s=null,m=o;if("pointerType"in h){switch(h.pointerType){case"mouse":s=Ne.Mouse;break;case"touch":s=Ne.Touch;break;case"pen":s=Ne.Pen;break}s===Ne.Touch?le[o]===le.MouseDown?m="TouchStart":le[o]===le.MouseUp&&(m="TouchEnd"):Ne.Pen}else wi(h)&&(s=Ne.Touch);s!==null?(a=s,(m.startsWith("Touch")&&s===Ne.Touch||m.startsWith("Mouse")&&s===Ne.Mouse)&&(s=null)):le[o]===le.Click&&(s=a,a=null);let d=wi(h)?h.changedTouches[0]:h;if(!d)return;let g=r.getId(f),{clientX:C,clientY:b}=d;F(e)({type:le[m],id:g,x:C,y:b,...s!==null&&{pointerType:s}})};return Object.keys(le).filter(o=>Number.isNaN(Number(o))&&!o.endsWith("_Departed")&&u[o]!==!1).forEach(o=>{let h=_e(o),f=p(o);if(window.PointerEvent)switch(le[o]){case le.MouseDown:case le.MouseUp:h=h.replace("mouse","pointer");break;case le.TouchStart:case le.TouchEnd:return}c.push(oe(h,f,t))}),F(()=>{c.forEach(o=>o())})}function ja({scrollCb:e,doc:t,mirror:r,blockClass:i,blockSelector:n,sampling:l}){let u=F(Tt(F(c=>{let a=Ot(c);if(!a||ae(a,i,n,!0))return;let p=r.getId(a);if(a===t&&t.defaultView){let o=Aa(t.defaultView);e({id:p,x:o.left,y:o.top})}else e({id:p,x:a.scrollLeft,y:a.scrollTop})}),l.scroll||100));return oe("scroll",u,t)}function wd({viewportResizeCb:e},{win:t}){let r=-1,i=-1,n=F(Tt(F(()=>{let l=Da(),u=_a();(r!==l||i!==u)&&(e({width:Number(u),height:Number(l)}),r=l,i=u)}),200));return oe("resize",n,t)}var vd=["INPUT","TEXTAREA","SELECT"],Ko=new WeakMap;function Sd({inputCb:e,doc:t,mirror:r,blockClass:i,blockSelector:n,ignoreClass:l,ignoreSelector:u,maskInputOptions:c,maskInputFn:a,sampling:p,userTriggeredOnInput:o}){function h(b){let v=Ot(b),E=b.isTrusted,w=v&&v.tagName;if(v&&w==="OPTION"&&(v=D.parentElement(v)),!v||!w||vd.indexOf(w)<0||ae(v,i,n,!0)||v.classList.contains(l)||u&&v.matches(u))return;let y=v.value,S=!1,x=ar(v)||"";x==="radio"||x==="checkbox"?S=v.checked:(c[w.toLowerCase()]||c[x])&&(y=or({element:v,maskInputOptions:c,tagName:w,type:x,value:y,maskInputFn:a})),f(v,o?{text:y,isChecked:S,userTriggered:E}:{text:y,isChecked:S});let M=v.name;x==="radio"&&M&&S&&t.querySelectorAll(`input[type="radio"][name="${M}"]`).forEach(T=>{if(T!==v){let I=T.value;f(T,o?{text:I,isChecked:!S,userTriggered:!1}:{text:I,isChecked:!S})}})}function f(b,v){let E=Ko.get(b);if(!E||E.text!==v.text||E.isChecked!==v.isChecked){Ko.set(b,v);let w=r.getId(b);F(e)({...v,id:w})}}let m=(p.input==="last"?["change"]:["input","change"]).map(b=>oe(b,F(h),t)),d=t.defaultView;if(!d)return()=>{m.forEach(b=>b())};let g=d.Object.getOwnPropertyDescriptor(d.HTMLInputElement.prototype,"value"),C=[[d.HTMLInputElement.prototype,"value"],[d.HTMLInputElement.prototype,"checked"],[d.HTMLSelectElement.prototype,"value"],[d.HTMLTextAreaElement.prototype,"value"],[d.HTMLSelectElement.prototype,"selectedIndex"],[d.HTMLOptionElement.prototype,"selected"]];return g&&g.set&&m.push(...C.map(b=>xr(b[0],b[1],{set(){F(h)({target:this,isTrusted:!1})}},!1,d))),F(()=>{m.forEach(b=>b())})}function fr(e){let t=[];function r(i,n){if(tr("CSSGroupingRule")&&i.parentRule instanceof CSSGroupingRule||tr("CSSMediaRule")&&i.parentRule instanceof CSSMediaRule||tr("CSSSupportsRule")&&i.parentRule instanceof CSSSupportsRule||tr("CSSConditionRule")&&i.parentRule instanceof CSSConditionRule){let u=Array.from(i.parentRule.cssRules).indexOf(i);return n.unshift(u),r(i.parentRule,n)}else if(i.parentStyleSheet){let u=Array.from(i.parentStyleSheet.cssRules).indexOf(i);n.unshift(u)}return n}return r(e,t)}function De(e,t,r){let i,n;return e?(e.ownerNode?i=t.getId(e.ownerNode):n=r.getId(e),{styleId:n,id:i}):{}}function Cd({styleSheetRuleCb:e,mirror:t,stylesheetManager:r},{win:i}){if(!i.CSSStyleSheet||!i.CSSStyleSheet.prototype)return()=>{};let n=i.CSSStyleSheet.prototype.insertRule;i.CSSStyleSheet.prototype.insertRule=new Proxy(n,{apply:F((o,h,f)=>{let[s,m]=f,{id:d,styleId:g}=De(h,t,r.styleMirror);return(d&&d!==-1||g&&g!==-1)&&e({id:d,styleId:g,adds:[{rule:s,index:m}]}),o.apply(h,f)})}),i.CSSStyleSheet.prototype.addRule=function(o,h,f=this.cssRules.length){let s=`${o} { ${h} }`;return i.CSSStyleSheet.prototype.insertRule.apply(this,[s,f])};let l=i.CSSStyleSheet.prototype.deleteRule;i.CSSStyleSheet.prototype.deleteRule=new Proxy(l,{apply:F((o,h,f)=>{let[s]=f,{id:m,styleId:d}=De(h,t,r.styleMirror);return(m&&m!==-1||d&&d!==-1)&&e({id:m,styleId:d,removes:[{index:s}]}),o.apply(h,f)})}),i.CSSStyleSheet.prototype.removeRule=function(o){return i.CSSStyleSheet.prototype.deleteRule.apply(this,[o])};let u;i.CSSStyleSheet.prototype.replace&&(u=i.CSSStyleSheet.prototype.replace,i.CSSStyleSheet.prototype.replace=new Proxy(u,{apply:F((o,h,f)=>{let[s]=f,{id:m,styleId:d}=De(h,t,r.styleMirror);return(m&&m!==-1||d&&d!==-1)&&e({id:m,styleId:d,replace:s}),o.apply(h,f)})}));let c;i.CSSStyleSheet.prototype.replaceSync&&(c=i.CSSStyleSheet.prototype.replaceSync,i.CSSStyleSheet.prototype.replaceSync=new Proxy(c,{apply:F((o,h,f)=>{let[s]=f,{id:m,styleId:d}=De(h,t,r.styleMirror);return(m&&m!==-1||d&&d!==-1)&&e({id:m,styleId:d,replaceSync:s}),o.apply(h,f)})}));let a={};rr("CSSGroupingRule")?a.CSSGroupingRule=i.CSSGroupingRule:(rr("CSSMediaRule")&&(a.CSSMediaRule=i.CSSMediaRule),rr("CSSConditionRule")&&(a.CSSConditionRule=i.CSSConditionRule),rr("CSSSupportsRule")&&(a.CSSSupportsRule=i.CSSSupportsRule));let p={};return Object.entries(a).forEach(([o,h])=>{p[o]={insertRule:h.prototype.insertRule,deleteRule:h.prototype.deleteRule},h.prototype.insertRule=new Proxy(p[o].insertRule,{apply:F((f,s,m)=>{let[d,g]=m,{id:C,styleId:b}=De(s.parentStyleSheet,t,r.styleMirror);return(C&&C!==-1||b&&b!==-1)&&e({id:C,styleId:b,adds:[{rule:d,index:[...fr(s),g||0]}]}),f.apply(s,m)})}),h.prototype.deleteRule=new Proxy(p[o].deleteRule,{apply:F((f,s,m)=>{let[d]=m,{id:g,styleId:C}=De(s.parentStyleSheet,t,r.styleMirror);return(g&&g!==-1||C&&C!==-1)&&e({id:g,styleId:C,removes:[{index:[...fr(s),d]}]}),f.apply(s,m)})})}),F(()=>{i.CSSStyleSheet.prototype.insertRule=n,i.CSSStyleSheet.prototype.deleteRule=l,u&&(i.CSSStyleSheet.prototype.replace=u),c&&(i.CSSStyleSheet.prototype.replaceSync=c),Object.entries(a).forEach(([o,h])=>{h.prototype.insertRule=p[o].insertRule,h.prototype.deleteRule=p[o].deleteRule})})}function Va({mirror:e,stylesheetManager:t},r){var i,n,l;let u=null;r.nodeName==="#document"?u=e.getId(r):u=e.getId(D.host(r));let c=r.nodeName==="#document"?(i=r.defaultView)==null?void 0:i.Document:(l=(n=r.ownerDocument)==null?void 0:n.defaultView)==null?void 0:l.ShadowRoot,a=c?.prototype?Object.getOwnPropertyDescriptor(c?.prototype,"adoptedStyleSheets"):void 0;return u===null||u===-1||!c||!a?()=>{}:(Object.defineProperty(r,"adoptedStyleSheets",{configurable:a.configurable,enumerable:a.enumerable,get(){var p;return(p=a.get)==null?void 0:p.call(this)},set(p){var o;let h=(o=a.set)==null?void 0:o.call(this,p);if(u!==null&&u!==-1)try{t.adoptStyleSheets(p,u)}catch{}return h}}),F(()=>{Object.defineProperty(r,"adoptedStyleSheets",{configurable:a.configurable,enumerable:a.enumerable,get:a.get,set:a.set})}))}function Ed({styleDeclarationCb:e,mirror:t,ignoreCSSAttributes:r,stylesheetManager:i},{win:n}){let l=n.CSSStyleDeclaration.prototype.setProperty;n.CSSStyleDeclaration.prototype.setProperty=new Proxy(l,{apply:F((c,a,p)=>{var o;let[h,f,s]=p;if(r.has(h))return l.apply(a,[h,f,s]);let{id:m,styleId:d}=De((o=a.parentRule)==null?void 0:o.parentStyleSheet,t,i.styleMirror);return(m&&m!==-1||d&&d!==-1)&&e({id:m,styleId:d,set:{property:h,value:f,priority:s},index:fr(a.parentRule)}),c.apply(a,p)})});let u=n.CSSStyleDeclaration.prototype.removeProperty;return n.CSSStyleDeclaration.prototype.removeProperty=new Proxy(u,{apply:F((c,a,p)=>{var o;let[h]=p;if(r.has(h))return u.apply(a,[h]);let{id:f,styleId:s}=De((o=a.parentRule)==null?void 0:o.parentStyleSheet,t,i.styleMirror);return(f&&f!==-1||s&&s!==-1)&&e({id:f,styleId:s,remove:{property:h},index:fr(a.parentRule)}),c.apply(a,p)})}),F(()=>{n.CSSStyleDeclaration.prototype.setProperty=l,n.CSSStyleDeclaration.prototype.removeProperty=u})}function xd({mediaInteractionCb:e,blockClass:t,blockSelector:r,mirror:i,sampling:n,doc:l}){let u=F(a=>Tt(F(p=>{let o=Ot(p);if(!o||ae(o,t,r,!0))return;let{currentTime:h,volume:f,muted:s,playbackRate:m,loop:d}=o;e({type:a,id:i.getId(o),currentTime:h,volume:f,muted:s,playbackRate:m,loop:d})}),n.media||500)),c=[oe("play",u(et.Play),l),oe("pause",u(et.Pause),l),oe("seeked",u(et.Seeked),l),oe("volumechange",u(et.VolumeChange),l),oe("ratechange",u(et.RateChange),l)];return F(()=>{c.forEach(a=>a())})}function Rd({fontCb:e,doc:t}){let r=t.defaultView;if(!r)return()=>{};let i=[],n=new WeakMap,l=r.FontFace;r.FontFace=function(a,p,o){let h=new l(a,p,o);return n.set(h,{family:a,buffer:typeof p!="string",descriptors:o,fontSource:typeof p=="string"?p:JSON.stringify(Array.from(new Uint8Array(p)))}),h};let u=je(t.fonts,"add",function(c){return function(a){return setTimeout(F(()=>{let p=n.get(a);p&&(e(p),n.delete(a))}),0),c.apply(this,[a])}});return i.push(()=>{r.FontFace=l}),i.push(u),F(()=>{i.forEach(c=>c())})}function Td(e){let{doc:t,mirror:r,blockClass:i,blockSelector:n,selectionCb:l}=e,u=!0,c=F(()=>{let a=t.getSelection();if(!a||u&&a?.isCollapsed)return;u=a.isCollapsed||!1;let p=[],o=a.rangeCount||0;for(let h=0;h<o;h++){let f=a.getRangeAt(h),{startContainer:s,startOffset:m,endContainer:d,endOffset:g}=f;ae(s,i,n,!0)||ae(d,i,n,!0)||p.push({start:r.getId(s),startOffset:m,end:r.getId(d),endOffset:g})}l({ranges:p})});return c(),oe("selectionchange",c)}function Md({doc:e,customElementCb:t}){let r=e.defaultView;return!r||!r.customElements?()=>{}:je(r.customElements,"define",function(n){return function(l,u,c){try{t({define:{name:l}})}catch{console.warn(`Custom element callback failed for ${l}`)}return n.apply(this,[l,u,c])}})}function Nd(e,t){let{mutationCb:r,mousemoveCb:i,mouseInteractionCb:n,scrollCb:l,viewportResizeCb:u,inputCb:c,mediaInteractionCb:a,styleSheetRuleCb:p,styleDeclarationCb:o,canvasMutationCb:h,fontCb:f,selectionCb:s,customElementCb:m}=e;e.mutationCb=(...d)=>{t.mutation&&t.mutation(...d),r(...d)},e.mousemoveCb=(...d)=>{t.mousemove&&t.mousemove(...d),i(...d)},e.mouseInteractionCb=(...d)=>{t.mouseInteraction&&t.mouseInteraction(...d),n(...d)},e.scrollCb=(...d)=>{t.scroll&&t.scroll(...d),l(...d)},e.viewportResizeCb=(...d)=>{t.viewportResize&&t.viewportResize(...d),u(...d)},e.inputCb=(...d)=>{t.input&&t.input(...d),c(...d)},e.mediaInteractionCb=(...d)=>{t.mediaInteaction&&t.mediaInteaction(...d),a(...d)},e.styleSheetRuleCb=(...d)=>{t.styleSheetRule&&t.styleSheetRule(...d),p(...d)},e.styleDeclarationCb=(...d)=>{t.styleDeclaration&&t.styleDeclaration(...d),o(...d)},e.canvasMutationCb=(...d)=>{t.canvasMutation&&t.canvasMutation(...d),h(...d)},e.fontCb=(...d)=>{t.font&&t.font(...d),f(...d)},e.selectionCb=(...d)=>{t.selection&&t.selection(...d),s(...d)},e.customElementCb=(...d)=>{t.customElement&&t.customElement(...d),m(...d)}}function Od(e,t={}){let r=e.doc.defaultView;if(!r)return()=>{};Nd(e,t);let i,n=()=>{};e.recordDOM&&([i,n]=qa(e,e.doc));let l=yd(e),u=bd(e),c=ja(e),a=wd(e,{win:r}),p=Sd(e),o=xd(e),h=()=>{},f=()=>{},s=()=>{},m=()=>{};e.recordDOM&&(h=Cd(e,{win:r}),f=Va(e,e.doc),s=Ed(e,{win:r}),e.collectFonts&&(m=Rd(e)));let d=Td(e),g=Md(e),C=[];for(let b of e.plugins)C.push(b.observer(b.callback,r,b.options));return F(()=>{We.forEach(b=>b.reset()),i?.disconnect(),n(),l(),u(),c(),a(),p(),o(),h(),f(),s(),m(),d(),g(),C.forEach(b=>b())})}function tr(e){return typeof window[e]<"u"}function rr(e){return!!(typeof window[e]<"u"&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}var dr=class{constructor(t){O(this,"iframeIdToRemoteIdMap",new WeakMap),O(this,"iframeRemoteIdToIdMap",new WeakMap),this.generateIdFn=t}getId(t,r,i,n){let l=i||this.getIdToRemoteIdMap(t),u=n||this.getRemoteIdToIdMap(t),c=l.get(r);return c||(c=this.generateIdFn(),l.set(r,c),u.set(c,r)),c}getIds(t,r){let i=this.getIdToRemoteIdMap(t),n=this.getRemoteIdToIdMap(t);return r.map(l=>this.getId(t,l,i,n))}getRemoteId(t,r,i){let n=i||this.getRemoteIdToIdMap(t);if(typeof r!="number")return r;let l=n.get(r);return l||-1}getRemoteIds(t,r){let i=this.getRemoteIdToIdMap(t);return r.map(n=>this.getRemoteId(t,n,i))}reset(t){if(!t){this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap;return}this.iframeIdToRemoteIdMap.delete(t),this.iframeRemoteIdToIdMap.delete(t)}getIdToRemoteIdMap(t){let r=this.iframeIdToRemoteIdMap.get(t);return r||(r=new Map,this.iframeIdToRemoteIdMap.set(t,r)),r}getRemoteIdToIdMap(t){let r=this.iframeRemoteIdToIdMap.get(t);return r||(r=new Map,this.iframeRemoteIdToIdMap.set(t,r)),r}},xi=class{constructor(t){O(this,"iframes",new WeakMap),O(this,"crossOriginIframeMap",new WeakMap),O(this,"crossOriginIframeMirror",new dr(ca)),O(this,"crossOriginIframeStyleMirror"),O(this,"crossOriginIframeRootIdMap",new WeakMap),O(this,"mirror"),O(this,"mutationCb"),O(this,"wrappedEmit"),O(this,"loadListener"),O(this,"stylesheetManager"),O(this,"recordCrossOriginIframes"),this.mutationCb=t.mutationCb,this.wrappedEmit=t.wrappedEmit,this.stylesheetManager=t.stylesheetManager,this.recordCrossOriginIframes=t.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new dr(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=t.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}addIframe(t){this.iframes.set(t,!0),t.contentWindow&&this.crossOriginIframeMap.set(t.contentWindow,t)}addLoadListener(t){this.loadListener=t}attachIframe(t,r){var i,n;this.mutationCb({adds:[{parentId:this.mirror.getId(t),nextId:null,node:r}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),this.recordCrossOriginIframes&&((i=t.contentWindow)==null||i.addEventListener("message",this.handleMessage.bind(this))),(n=this.loadListener)==null||n.call(this,t),t.contentDocument&&t.contentDocument.adoptedStyleSheets&&t.contentDocument.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(t.contentDocument.adoptedStyleSheets,this.mirror.getId(t.contentDocument))}handleMessage(t){let r=t;if(r.data.type!=="rrweb"||r.origin!==r.data.origin||!t.source)return;let n=this.crossOriginIframeMap.get(t.source);if(!n)return;let l=this.transformCrossOriginEvent(n,r.data.event);l&&this.wrappedEmit(l,r.data.isCheckout)}transformCrossOriginEvent(t,r){var i;switch(r.type){case _.FullSnapshot:{this.crossOriginIframeMirror.reset(t),this.crossOriginIframeStyleMirror.reset(t),this.replaceIdOnNode(r.data.node,t);let n=r.data.node.id;return this.crossOriginIframeRootIdMap.set(t,n),this.patchRootIdOnNode(r.data.node,n),{timestamp:r.timestamp,type:_.IncrementalSnapshot,data:{source:L.Mutation,adds:[{parentId:this.mirror.getId(t),nextId:null,node:r.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case _.Meta:case _.Load:case _.DomContentLoaded:return!1;case _.Plugin:return r;case _.Custom:return this.replaceIds(r.data.payload,t,["id","parentId","previousId","nextId"]),r;case _.IncrementalSnapshot:switch(r.data.source){case L.Mutation:return r.data.adds.forEach(n=>{this.replaceIds(n,t,["parentId","nextId","previousId"]),this.replaceIdOnNode(n.node,t);let l=this.crossOriginIframeRootIdMap.get(t);l&&this.patchRootIdOnNode(n.node,l)}),r.data.removes.forEach(n=>{this.replaceIds(n,t,["parentId","id"])}),r.data.attributes.forEach(n=>{this.replaceIds(n,t,["id"])}),r.data.texts.forEach(n=>{this.replaceIds(n,t,["id"])}),r;case L.Drag:case L.TouchMove:case L.MouseMove:return r.data.positions.forEach(n=>{this.replaceIds(n,t,["id"])}),r;case L.ViewportResize:return!1;case L.MediaInteraction:case L.MouseInteraction:case L.Scroll:case L.CanvasMutation:case L.Input:return this.replaceIds(r.data,t,["id"]),r;case L.StyleSheetRule:case L.StyleDeclaration:return this.replaceIds(r.data,t,["id"]),this.replaceStyleIds(r.data,t,["styleId"]),r;case L.Font:return r;case L.Selection:return r.data.ranges.forEach(n=>{this.replaceIds(n,t,["start","end"])}),r;case L.AdoptedStyleSheet:return this.replaceIds(r.data,t,["id"]),this.replaceStyleIds(r.data,t,["styleIds"]),(i=r.data.styles)==null||i.forEach(n=>{this.replaceStyleIds(n,t,["styleId"])}),r}}return!1}replace(t,r,i,n){for(let l of n)!Array.isArray(r[l])&&typeof r[l]!="number"||(Array.isArray(r[l])?r[l]=t.getIds(i,r[l]):r[l]=t.getId(i,r[l]));return r}replaceIds(t,r,i){return this.replace(this.crossOriginIframeMirror,t,r,i)}replaceStyleIds(t,r,i){return this.replace(this.crossOriginIframeStyleMirror,t,r,i)}replaceIdOnNode(t,r){this.replaceIds(t,r,["id","rootId"]),"childNodes"in t&&t.childNodes.forEach(i=>{this.replaceIdOnNode(i,r)})}patchRootIdOnNode(t,r){t.type!==Wa.Document&&!t.rootId&&(t.rootId=r),"childNodes"in t&&t.childNodes.forEach(i=>{this.patchRootIdOnNode(i,r)})}},Ri=class{constructor(t){O(this,"shadowDoms",new WeakSet),O(this,"mutationCb"),O(this,"scrollCb"),O(this,"bypassOptions"),O(this,"mirror"),O(this,"restoreHandlers",[]),this.mutationCb=t.mutationCb,this.scrollCb=t.scrollCb,this.bypassOptions=t.bypassOptions,this.mirror=t.mirror,this.init()}init(){this.reset(),this.patchAttachShadow(Element,document)}addShadowRoot(t,r){if(!Et(t)||this.shadowDoms.has(t))return;this.shadowDoms.add(t);let[i]=qa({...this.bypassOptions,doc:r,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this},t);this.restoreHandlers.push(()=>i.disconnect()),this.restoreHandlers.push(ja({...this.bypassOptions,scrollCb:this.scrollCb,doc:t,mirror:this.mirror})),setTimeout(()=>{t.adoptedStyleSheets&&t.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(t.adoptedStyleSheets,this.mirror.getId(D.host(t))),this.restoreHandlers.push(Va({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},t))},0)}observeAttachShadow(t){!t.contentWindow||!t.contentDocument||this.patchAttachShadow(t.contentWindow.Element,t.contentDocument)}patchAttachShadow(t,r){let i=this;this.restoreHandlers.push(je(t.prototype,"attachShadow",function(n){return function(l){let u=n.call(this,l),c=D.shadowRoot(this);return c&&$a(this)&&i.addShadowRoot(c,r),u}}))}reset(){this.restoreHandlers.forEach(t=>{try{t()}catch{}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet}},nt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",kd=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(St=0;St<nt.length;St++)kd[nt.charCodeAt(St)]=St;var St,Id=function(e){var t=new Uint8Array(e),r,i=t.length,n="";for(r=0;r<i;r+=3)n+=nt[t[r]>>2],n+=nt[(t[r]&3)<<4|t[r+1]>>4],n+=nt[(t[r+1]&15)<<2|t[r+2]>>6],n+=nt[t[r+2]&63];return i%3===2?n=n.substring(0,n.length-1)+"=":i%3===1&&(n=n.substring(0,n.length-2)+"=="),n};var Qo=new Map;function Ad(e,t){let r=Qo.get(e);return r||(r=new Map,Qo.set(e,r)),r.has(t)||r.set(t,[]),r.get(t)}var Ha=(e,t,r)=>{if(!e||!(Ya(e,t)||typeof e=="object"))return;let i=e.constructor.name,n=Ad(r,i),l=n.indexOf(e);return l===-1&&(l=n.length,n.push(e)),l};function nr(e,t,r){if(e instanceof Array)return e.map(i=>nr(i,t,r));if(e===null)return e;if(e instanceof Float32Array||e instanceof Float64Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Uint8Array||e instanceof Uint16Array||e instanceof Int16Array||e instanceof Int8Array||e instanceof Uint8ClampedArray)return{rr_type:e.constructor.name,args:[Object.values(e)]};if(e instanceof ArrayBuffer){let i=e.constructor.name,n=Id(e);return{rr_type:i,base64:n}}else{if(e instanceof DataView)return{rr_type:e.constructor.name,args:[nr(e.buffer,t,r),e.byteOffset,e.byteLength]};if(e instanceof HTMLImageElement){let i=e.constructor.name,{src:n}=e;return{rr_type:i,src:n}}else if(e instanceof HTMLCanvasElement){let i="HTMLImageElement",n=e.toDataURL();return{rr_type:i,src:n}}else{if(e instanceof ImageData)return{rr_type:e.constructor.name,args:[nr(e.data,t,r),e.width,e.height]};if(Ya(e,t)||typeof e=="object"){let i=e.constructor.name,n=Ha(e,t,r);return{rr_type:i,index:n}}}}return e}var Ga=(e,t,r)=>e.map(i=>nr(i,t,r)),Ya=(e,t)=>!!["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"].filter(n=>typeof t[n]=="function").find(n=>e instanceof t[n]);function Dd(e,t,r,i){let n=[],l=Object.getOwnPropertyNames(t.CanvasRenderingContext2D.prototype);for(let u of l)try{if(typeof t.CanvasRenderingContext2D.prototype[u]!="function")continue;let c=je(t.CanvasRenderingContext2D.prototype,u,function(a){return function(...p){return ae(this.canvas,r,i,!0)||setTimeout(()=>{let o=Ga(p,t,this);e(this.canvas,{type:it["2D"],property:u,args:o})},0),a.apply(this,p)}});n.push(c)}catch{let c=xr(t.CanvasRenderingContext2D.prototype,u,{set(a){e(this.canvas,{type:it["2D"],property:u,args:[a],setter:!0})}});n.push(c)}return()=>{n.forEach(u=>u())}}function _d(e){return e==="experimental-webgl"?"webgl":e}function Zo(e,t,r,i){let n=[];try{let l=je(e.HTMLCanvasElement.prototype,"getContext",function(u){return function(c,...a){if(!ae(this,t,r,!0)){let p=_d(c);if("__context"in this||(this.__context=p),i&&["webgl","webgl2"].includes(p))if(a[0]&&typeof a[0]=="object"){let o=a[0];o.preserveDrawingBuffer||(o.preserveDrawingBuffer=!0)}else a.splice(0,1,{preserveDrawingBuffer:!0})}return u.apply(this,[c,...a])}});n.push(l)}catch{console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return()=>{n.forEach(l=>l())}}function ea(e,t,r,i,n,l){let u=[],c=Object.getOwnPropertyNames(e);for(let a of c)if(!["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(a))try{if(typeof e[a]!="function")continue;let p=je(e,a,function(o){return function(...h){let f=o.apply(this,h);if(Ha(f,l,this),"tagName"in this.canvas&&!ae(this.canvas,i,n,!0)){let s=Ga(h,l,this),m={type:t,property:a,args:s};r(this.canvas,m)}return f}});u.push(p)}catch{let p=xr(e,a,{set(o){r(this.canvas,{type:t,property:a,args:[o],setter:!0})}});u.push(p)}return u}function Ld(e,t,r,i){let n=[];return typeof t.WebGLRenderingContext<"u"&&n.push(...ea(t.WebGLRenderingContext.prototype,it.WebGL,e,r,i,t)),typeof t.WebGL2RenderingContext<"u"&&n.push(...ea(t.WebGL2RenderingContext.prototype,it.WebGL2,e,r,i,t)),()=>{n.forEach(l=>l())}}var Xa=`(function() {
53
+ or you can use record.mirror to access the mirror instance during recording.`,ca={map:{},getId(){return console.error(it),-1},getNode(){return console.error(it),null},removeNodeFromMap(){console.error(it)},has(){return console.error(it),!1},reset(){console.error(it)}};typeof window<"u"&&window.Proxy&&window.Reflect&&(ca=new Proxy(ca,{get(e,t,r){return t==="map"&&console.error(it),Reflect.get(e,t,r)}}));function Dt(e,t,r={}){let i=null,n=0;return function(...s){let u=Date.now();!n&&r.leading===!1&&(n=u);let c=t-(u-n),l=this;c<=0||c>t?(i&&(clearTimeout(i),i=null),n=u,e.apply(l,s)):!i&&r.trailing!==!1&&(i=setTimeout(()=>{n=r.leading===!1?0:Date.now(),i=null,e.apply(l,s)},c))}}function Ar(e,t,r,i,n=window){let s=n.Object.getOwnPropertyDescriptor(e,t);return n.Object.defineProperty(e,t,i?r:{set(u){setTimeout(()=>{r.set.call(this,u)},0),s&&s.set&&s.set.call(this,u)}}),()=>Ar(e,t,s||{},!0)}function Ya(e){var t,r,i,n;let s=e.document;return{left:s.scrollingElement?s.scrollingElement.scrollLeft:e.pageXOffset!==void 0?e.pageXOffset:s.documentElement.scrollLeft||s?.body&&((t=D.parentElement(s.body))==null?void 0:t.scrollLeft)||((r=s?.body)==null?void 0:r.scrollLeft)||0,top:s.scrollingElement?s.scrollingElement.scrollTop:e.pageYOffset!==void 0?e.pageYOffset:s?.documentElement.scrollTop||s?.body&&((i=D.parentElement(s.body))==null?void 0:i.scrollTop)||((n=s?.body)==null?void 0:n.scrollTop)||0}}function Xa(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function Ja(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function Ka(e){return e?e.nodeType===e.ELEMENT_NODE?e:D.parentElement(e):null}function ae(e,t,r,i){if(!e)return!1;let n=Ka(e);if(!n)return!1;try{if(typeof t=="string"){if(n.classList.contains(t)||i&&n.closest("."+t)!==null)return!0}else if(br(n,t,i))return!0}catch{}return!!(r&&(n.matches(r)||i&&n.closest(r)!==null))}function $d(e,t){return t.getId(e)!==-1}function xi(e,t,r){return e.tagName==="TITLE"&&r.headTitleMutations?!0:t.getId(e)===yr}function Qa(e,t){if(kt(e))return!1;let r=t.getId(e);if(!t.has(r))return!0;let i=D.parentNode(e);return i&&i.nodeType===e.DOCUMENT_NODE?!1:i?Qa(i,t):!0}function Ni(e){return!!e.changedTouches}function Wd(e=window){"NodeList"in e&&!e.NodeList.prototype.forEach&&(e.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in e&&!e.DOMTokenList.prototype.forEach&&(e.DOMTokenList.prototype.forEach=Array.prototype.forEach)}function Za(e,t){return!!(e.nodeName==="IFRAME"&&t.getMeta(e))}function el(e,t){return!!(e.nodeName==="LINK"&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&e.getAttribute("rel")==="stylesheet"&&t.getMeta(e))}function ki(e){return e?e instanceof Mi&&"shadowRoot"in e?!!e.shadowRoot:!!D.shadowRoot(e):!1}var Oi=class{constructor(){k(this,"id",1),k(this,"styleIDMap",new WeakMap),k(this,"idStyleMap",new Map)}getId(t){return this.styleIDMap.get(t)??-1}has(t){return this.styleIDMap.has(t)}add(t,r){if(this.has(t))return this.getId(t);let i;return r===void 0?i=this.id++:i=r,this.styleIDMap.set(t,i),this.idStyleMap.set(i,t),i}getStyle(t){return this.idStyleMap.get(t)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}};function tl(e){var t;let r=null;return"getRootNode"in e&&((t=D.getRootNode(e))==null?void 0:t.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&D.host(D.getRootNode(e))&&(r=D.host(D.getRootNode(e))),r}function zd(e){let t=e,r;for(;r=tl(t);)t=r;return t}function qd(e){let t=D.ownerDocument(e);if(!t)return!1;let r=zd(e);return D.contains(t,r)}function rl(e){let t=D.ownerDocument(e);return t?D.contains(t,e)||qd(e):!1}var _=(e=>(e[e.DomContentLoaded=0]="DomContentLoaded",e[e.Load=1]="Load",e[e.FullSnapshot=2]="FullSnapshot",e[e.IncrementalSnapshot=3]="IncrementalSnapshot",e[e.Meta=4]="Meta",e[e.Custom=5]="Custom",e[e.Plugin=6]="Plugin",e[e.Asset=7]="Asset",e))(_||{}),L=(e=>(e[e.Mutation=0]="Mutation",e[e.MouseMove=1]="MouseMove",e[e.MouseInteraction=2]="MouseInteraction",e[e.Scroll=3]="Scroll",e[e.ViewportResize=4]="ViewportResize",e[e.Input=5]="Input",e[e.TouchMove=6]="TouchMove",e[e.MediaInteraction=7]="MediaInteraction",e[e.StyleSheetRule=8]="StyleSheetRule",e[e.CanvasMutation=9]="CanvasMutation",e[e.Font=10]="Font",e[e.Log=11]="Log",e[e.Drag=12]="Drag",e[e.StyleDeclaration=13]="StyleDeclaration",e[e.Selection=14]="Selection",e[e.AdoptedStyleSheet=15]="AdoptedStyleSheet",e[e.CustomElement=16]="CustomElement",e))(L||{}),le=(e=>(e[e.MouseUp=0]="MouseUp",e[e.MouseDown=1]="MouseDown",e[e.Click=2]="Click",e[e.ContextMenu=3]="ContextMenu",e[e.DblClick=4]="DblClick",e[e.Focus=5]="Focus",e[e.Blur=6]="Blur",e[e.TouchStart=7]="TouchStart",e[e.TouchMove_Departed=8]="TouchMove_Departed",e[e.TouchEnd=9]="TouchEnd",e[e.TouchCancel=10]="TouchCancel",e))(le||{}),Ie=(e=>(e[e.Mouse=0]="Mouse",e[e.Pen=1]="Pen",e[e.Touch=2]="Touch",e))(Ie||{}),ut=(e=>(e[e["2D"]=0]="2D",e[e.WebGL=1]="WebGL",e[e.WebGL2=2]="WebGL2",e))(ut||{}),st=(e=>(e[e.Play=0]="Play",e[e.Pause=1]="Pause",e[e.Seeked=2]="Seeked",e[e.VolumeChange=3]="VolumeChange",e[e.RateChange=4]="RateChange",e))(st||{});var nl=(e=>(e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment",e))(nl||{}),fa=(e,t)=>`${e}@${t}`,Ii=class{constructor(){k(this,"frozen",!1),k(this,"locked",!1),k(this,"texts",[]),k(this,"attributes",[]),k(this,"attributeMap",new WeakMap),k(this,"removes",[]),k(this,"mapRemoves",[]),k(this,"movedMap",{}),k(this,"addedSet",new Set),k(this,"movedSet",new Set),k(this,"droppedSet",new Set),k(this,"removesSubTreeCache",new Set),k(this,"mutationCb"),k(this,"blockClass"),k(this,"blockSelector"),k(this,"maskTextClass"),k(this,"maskTextSelector"),k(this,"inlineStylesheet"),k(this,"maskInputOptions"),k(this,"maskTextFn"),k(this,"maskInputFn"),k(this,"keepIframeSrcFn"),k(this,"recordCanvas"),k(this,"inlineImages"),k(this,"slimDOMOptions"),k(this,"dataURLOptions"),k(this,"doc"),k(this,"mirror"),k(this,"iframeManager"),k(this,"stylesheetManager"),k(this,"shadowDomManager"),k(this,"canvasManager"),k(this,"processedNodeManager"),k(this,"unattachedDoc"),k(this,"processMutations",t=>{t.forEach(this.processMutation),this.emit()}),k(this,"emit",()=>{if(this.frozen||this.locked)return;let t=[],r=new Set;for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(let f of this.movedSet){let o=D.parentNode(f);this.removesSubTreeCache.has(o)&&!this.movedSet.has(o)||this.addedSet.add(f)}let i=null,n=null,s=-1,u=null,c=!1,l=new Set,p=this.addedSet.values(),a=p.next();for(;this.addedSet.size;){if(i!==null&&this.addedSet.has(D.previousSibling(i)))u=i,i=D.previousSibling(i);else{for(this.addedSet.has(a.value)||(a=p.next()),i=a.value;;){if(n=D.parentNode(i),this.addedSet.has(n)){i=n;continue}break}if(l.has(n))n=null;else if(n){if(rl(n)?(c=da(this.droppedSet,n)||this.removesSubTreeCache.has(n),c&&da(this.movedSet,i)&&(c=!1)):c=!0,this.addedSet.has(D.lastChild(n)))i=D.lastChild(n),u=null;else for(;;){if(u=D.nextSibling(i),this.addedSet.has(u)){i=u;continue}break}if(s=kt(n)?this.mirror.getId(tl(i)):this.mirror.getId(n),s===-1&&n.nodeType===Node.DOCUMENT_FRAGMENT_NODE){let d=D.host(n);s=this.mirror.getId(d)}}}if(this.addedSet.delete(i),!n||s===-1){l.add(i);continue}else if(c){this.droppedSet.add(i);continue}let f=!1;if(i.nodeType===Node.TEXT_NODE){let d=n.tagName;if(d==="TEXTAREA")continue;d==="STYLE"&&r.has(s)&&(f=!0)}let o=u?this.mirror.getId(u):null;for(;o===yr;)u=u&&D.nextSibling(u),o=u&&this.mirror.getId(u);if(o===-1){console.warn("Couldn't record new node. Couldn't find mirror id for nextSibling:",u),i=null;continue}let m=at(i,{doc:this.doc,mirror:this.mirror,blockClass:this.blockClass,blockSelector:this.blockSelector,maskTextClass:this.maskTextClass,maskTextSelector:this.maskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:this.inlineStylesheet,maskInputOptions:this.maskInputOptions,maskTextFn:this.maskTextFn,maskInputFn:this.maskInputFn,slimDOMOptions:this.slimDOMOptions,dataURLOptions:this.dataURLOptions,recordCanvas:this.recordCanvas,inlineImages:this.inlineImages,onSerialize:d=>{Za(d,this.mirror)&&this.iframeManager.addIframe(d),el(d,this.mirror)&&this.stylesheetManager.trackLinkElement(d),ki(i)&&this.shadowDomManager.addShadowRoot(D.shadowRoot(i),this.doc)},onIframeLoad:(d,g)=>{this.iframeManager.attachIframe(d,g),this.shadowDomManager.observeAttachShadow(d)},onStylesheetLoad:(d,g)=>{this.stylesheetManager.attachLinkElement(d,g)},cssCaptured:f});m&&(t.push({parentId:s,nextId:o,node:m}),r.add(m.id))}let h={texts:this.texts.map(f=>{let o=f.node,m=D.parentNode(o);return m&&m.tagName==="TEXTAREA"&&this.genTextAreaValueMutation(m),{id:this.mirror.getId(o),value:f.value}}).filter(f=>!r.has(f.id)).filter(f=>this.mirror.has(f.id)),attributes:this.attributes.map(f=>{let{attributes:o}=f;if(typeof o.style=="string"){let m=JSON.stringify(f.styleDiff),d=JSON.stringify(f._unchangedStyles);m.length<o.style.length&&(m+d).split("var(").length===o.style.split("var(").length&&(o.style=f.styleDiff)}return{id:this.mirror.getId(f.node),attributes:o}}).filter(f=>!r.has(f.id)).filter(f=>this.mirror.has(f.id)),removes:this.removes,adds:t};!h.texts.length&&!h.attributes.length&&!h.removes.length&&!h.adds.length||(this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.removesSubTreeCache=new Set,this.movedMap={},this.mutationCb(h))}),k(this,"genTextAreaValueMutation",t=>{let r=this.attributeMap.get(t);r||(r={node:t,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(r),this.attributeMap.set(t,r));let i=Array.from(D.childNodes(t),n=>D.textContent(n)||"").join("");r.attributes.value=pr({element:t,maskInputOptions:this.maskInputOptions,tagName:t.tagName,type:mr(t),value:i,maskInputFn:this.maskInputFn})}),k(this,"processMutation",t=>{if(!xi(t.target,this.mirror,this.slimDOMOptions))switch(t.type){case"characterData":{let r=D.textContent(t.target);!ae(t.target,this.blockClass,this.blockSelector,!1)&&r!==t.oldValue&&this.texts.push({value:ka(t.target,this.maskTextClass,this.maskTextSelector,!0)&&r?this.maskTextFn?this.maskTextFn(r,Ka(t.target)):r.replace(/[\S]/g,"*"):r,node:t.target});break}case"attributes":{let r=t.target,i=Pe(r.tagName),n=t.attributeName,s=t.target.getAttribute(n);if(n==="value"){let c=mr(r);s=pr({element:r,maskInputOptions:this.maskInputOptions,tagName:r.tagName,type:c,value:s,maskInputFn:this.maskInputFn})}if(ae(t.target,this.blockClass,this.blockSelector,!1)||s===t.oldValue)return;let u=this.attributeMap.get(t.target);if(i==="iframe"&&n==="src"&&!this.keepIframeSrcFn(s))if(!r.contentDocument)n="rr_src";else return;if(u||(u={node:t.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(u),this.attributeMap.set(t.target,u)),n==="type"&&i==="input"&&(t.oldValue||"").toLowerCase()==="password"&&r.setAttribute("data-rr-is-password","true"),!Na(i,n))if(u.attributes[n]=Ma(this.doc,i,Pe(n),s),n==="style"){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch{this.unattachedDoc=this.doc}let c=this.unattachedDoc.createElement("span");t.oldValue&&c.setAttribute("style",t.oldValue);for(let l of Array.from(r.style)){let p=r.style.getPropertyValue(l),a=r.style.getPropertyPriority(l);p!==c.style.getPropertyValue(l)||a!==c.style.getPropertyPriority(l)?a===""?u.styleDiff[l]=p:u.styleDiff[l]=[p,a]:u._unchangedStyles[l]=[p,a]}for(let l of Array.from(c.style))r.style.getPropertyValue(l)===""&&(u.styleDiff[l]=!1)}else n==="open"&&r.tagName==="DIALOG"&&(r.matches("dialog:modal")?u.attributes.rr_open_mode="modal":u.attributes.rr_open_mode="non-modal");break}case"childList":{if(ae(t.target,this.blockClass,this.blockSelector,!0))return;if(t.target.tagName==="TEXTAREA"){this.genTextAreaValueMutation(t.target);return}t.addedNodes.forEach(r=>this.genAdds(r,t.target)),t.removedNodes.forEach(r=>{let i=this.mirror.getId(r),n=kt(t.target)?this.mirror.getId(D.host(t.target)):this.mirror.getId(t.target);ae(t.target,this.blockClass,this.blockSelector,!1)||xi(r,this.mirror,this.slimDOMOptions)||!$d(r,this.mirror)||(this.addedSet.has(r)?(Ai(this.addedSet,r),this.droppedSet.add(r)):this.addedSet.has(t.target)&&i===-1||Qa(t.target,this.mirror)||(this.movedSet.has(r)&&this.movedMap[fa(i,n)]?Ai(this.movedSet,r):(this.removes.push({parentId:n,id:i,isShadow:kt(t.target)&&Ot(t.target)?!0:void 0}),jd(r,this.removesSubTreeCache))),this.mapRemoves.push(r))});break}}}),k(this,"genAdds",(t,r)=>{if(!this.processedNodeManager.inOtherBuffer(t,this)&&!(this.addedSet.has(t)||this.movedSet.has(t))){if(this.mirror.hasNode(t)){if(xi(t,this.mirror,this.slimDOMOptions))return;this.movedSet.add(t);let i=null;r&&this.mirror.hasNode(r)&&(i=this.mirror.getId(r)),i&&i!==-1&&(this.movedMap[fa(this.mirror.getId(t),i)]=!0)}else this.addedSet.add(t),this.droppedSet.delete(t);ae(t,this.blockClass,this.blockSelector,!1)||(D.childNodes(t).forEach(i=>this.genAdds(i)),ki(t)&&D.childNodes(D.shadowRoot(t)).forEach(i=>{this.processedNodeManager.add(i,this),this.genAdds(i,t)}))}})}init(t){["mutationCb","blockClass","blockSelector","maskTextClass","maskTextSelector","inlineStylesheet","maskInputOptions","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager"].forEach(r=>{this[r]=t[r]})}freeze(){this.frozen=!0,this.canvasManager.freeze()}unfreeze(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()}isFrozen(){return this.frozen}lock(){this.locked=!0,this.canvasManager.lock()}unlock(){this.locked=!1,this.canvasManager.unlock(),this.emit()}reset(){this.shadowDomManager.reset(),this.canvasManager.reset()}};function Ai(e,t){e.delete(t),D.childNodes(t).forEach(r=>Ai(e,r))}function jd(e,t){let r=[e];for(;r.length;){let i=r.pop();t.has(i)||(t.add(i),D.childNodes(i).forEach(n=>r.push(n)))}}function da(e,t){return e.size===0?!1:il(e,t)}function il(e,t){if(e.has(t))return!0;let r=D.parentNode(t);return r?il(e,r):!1}var It;function Vd(e){It=e}function Hd(){It=void 0}var F=e=>It?(...r)=>{try{return e(...r)}catch(i){if(It&&It(i)===!0)return;throw i}}:e,je=[];function Pt(e){try{if("composedPath"in e){let t=e.composedPath();if(t.length)return t[0]}else if("path"in e&&e.path.length)return e.path[0]}catch{}return e&&e.target}function sl(e,t){let r=new Ii;je.push(r),r.init(e);let[i,n]=Ga(),s=new i(F(r.processMutations.bind(r)));return s.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),[s,n]}function Gd({mousemoveCb:e,sampling:t,doc:r,mirror:i}){if(t.mousemove===!1)return()=>{};let n=typeof t.mousemove=="number"?t.mousemove:50,s=typeof t.mousemoveCallback=="number"?t.mousemoveCallback:500,u=[],c,l=Dt(F(h=>{let f=Date.now()-c;e(u.map(o=>(o.timeOffset-=f,o)),h),u=[],c=null}),s),p=F(Dt(F(h=>{let f=Pt(h),{clientX:o,clientY:m}=Ni(h)?h.changedTouches[0]:h;c||(c=At()),u.push({x:o,y:m,id:i.getId(f),timeOffset:At()-c}),l(typeof DragEvent<"u"&&h instanceof DragEvent?L.Drag:h instanceof MouseEvent?L.MouseMove:L.TouchMove)}),n,{trailing:!1})),a=[oe("mousemove",p,r),oe("touchmove",p,r),oe("drag",p,r)];return F(()=>{a.forEach(h=>h())})}function Yd({mouseInteractionCb:e,doc:t,mirror:r,blockClass:i,blockSelector:n,sampling:s}){if(s.mouseInteraction===!1)return()=>{};let u=s.mouseInteraction===!0||s.mouseInteraction===void 0?{}:s.mouseInteraction,c=[],l=null,p=a=>h=>{let f=Pt(h);if(ae(f,i,n,!0))return;let o=null,m=a;if("pointerType"in h){switch(h.pointerType){case"mouse":o=Ie.Mouse;break;case"touch":o=Ie.Touch;break;case"pen":o=Ie.Pen;break}o===Ie.Touch?le[a]===le.MouseDown?m="TouchStart":le[a]===le.MouseUp&&(m="TouchEnd"):Ie.Pen}else Ni(h)&&(o=Ie.Touch);o!==null?(l=o,(m.startsWith("Touch")&&o===Ie.Touch||m.startsWith("Mouse")&&o===Ie.Mouse)&&(o=null)):le[a]===le.Click&&(o=l,l=null);let d=Ni(h)?h.changedTouches[0]:h;if(!d)return;let g=r.getId(f),{clientX:C,clientY:b}=d;F(e)({type:le[m],id:g,x:C,y:b,...o!==null&&{pointerType:o}})};return Object.keys(le).filter(a=>Number.isNaN(Number(a))&&!a.endsWith("_Departed")&&u[a]!==!1).forEach(a=>{let h=Pe(a),f=p(a);if(window.PointerEvent)switch(le[a]){case le.MouseDown:case le.MouseUp:h=h.replace("mouse","pointer");break;case le.TouchStart:case le.TouchEnd:return}c.push(oe(h,f,t))}),F(()=>{c.forEach(a=>a())})}function ol({scrollCb:e,doc:t,mirror:r,blockClass:i,blockSelector:n,sampling:s}){let u=F(Dt(F(c=>{let l=Pt(c);if(!l||ae(l,i,n,!0))return;let p=r.getId(l);if(l===t&&t.defaultView){let a=Ya(t.defaultView);e({id:p,x:a.left,y:a.top})}else e({id:p,x:l.scrollLeft,y:l.scrollTop})}),s.scroll||100));return oe("scroll",u,t)}function Xd({viewportResizeCb:e},{win:t}){let r=-1,i=-1,n=F(Dt(F(()=>{let s=Xa(),u=Ja();(r!==s||i!==u)&&(e({width:Number(u),height:Number(s)}),r=s,i=u)}),200));return oe("resize",n,t)}var Jd=["INPUT","TEXTAREA","SELECT"],ha=new WeakMap;function Kd({inputCb:e,doc:t,mirror:r,blockClass:i,blockSelector:n,ignoreClass:s,ignoreSelector:u,maskInputOptions:c,maskInputFn:l,sampling:p,userTriggeredOnInput:a}){function h(b){let v=Pt(b),E=b.isTrusted,w=v&&v.tagName;if(v&&w==="OPTION"&&(v=D.parentElement(v)),!v||!w||Jd.indexOf(w)<0||ae(v,i,n,!0)||v.classList.contains(s)||u&&v.matches(u))return;let y=v.value,S=!1,x=mr(v)||"";x==="radio"||x==="checkbox"?S=v.checked:(c[w.toLowerCase()]||c[x])&&(y=pr({element:v,maskInputOptions:c,tagName:w,type:x,value:y,maskInputFn:l})),f(v,a?{text:y,isChecked:S,userTriggered:E}:{text:y,isChecked:S});let M=v.name;x==="radio"&&M&&S&&t.querySelectorAll(`input[type="radio"][name="${M}"]`).forEach(T=>{if(T!==v){let I=T.value;f(T,a?{text:I,isChecked:!S,userTriggered:!1}:{text:I,isChecked:!S})}})}function f(b,v){let E=ha.get(b);if(!E||E.text!==v.text||E.isChecked!==v.isChecked){ha.set(b,v);let w=r.getId(b);F(e)({...v,id:w})}}let m=(p.input==="last"?["change"]:["input","change"]).map(b=>oe(b,F(h),t)),d=t.defaultView;if(!d)return()=>{m.forEach(b=>b())};let g=d.Object.getOwnPropertyDescriptor(d.HTMLInputElement.prototype,"value"),C=[[d.HTMLInputElement.prototype,"value"],[d.HTMLInputElement.prototype,"checked"],[d.HTMLSelectElement.prototype,"value"],[d.HTMLTextAreaElement.prototype,"value"],[d.HTMLSelectElement.prototype,"selectedIndex"],[d.HTMLOptionElement.prototype,"selected"]];return g&&g.set&&m.push(...C.map(b=>Ar(b[0],b[1],{set(){F(h)({target:this,isTrusted:!1})}},!1,d))),F(()=>{m.forEach(b=>b())})}function wr(e){let t=[];function r(i,n){if(ur("CSSGroupingRule")&&i.parentRule instanceof CSSGroupingRule||ur("CSSMediaRule")&&i.parentRule instanceof CSSMediaRule||ur("CSSSupportsRule")&&i.parentRule instanceof CSSSupportsRule||ur("CSSConditionRule")&&i.parentRule instanceof CSSConditionRule){let u=Array.from(i.parentRule.cssRules).indexOf(i);return n.unshift(u),r(i.parentRule,n)}else if(i.parentStyleSheet){let u=Array.from(i.parentStyleSheet.cssRules).indexOf(i);n.unshift(u)}return n}return r(e,t)}function Le(e,t,r){let i,n;return e?(e.ownerNode?i=t.getId(e.ownerNode):n=r.getId(e),{styleId:n,id:i}):{}}function Qd({styleSheetRuleCb:e,mirror:t,stylesheetManager:r},{win:i}){if(!i.CSSStyleSheet||!i.CSSStyleSheet.prototype)return()=>{};let n=i.CSSStyleSheet.prototype.insertRule;i.CSSStyleSheet.prototype.insertRule=new Proxy(n,{apply:F((a,h,f)=>{let[o,m]=f,{id:d,styleId:g}=Le(h,t,r.styleMirror);return(d&&d!==-1||g&&g!==-1)&&e({id:d,styleId:g,adds:[{rule:o,index:m}]}),a.apply(h,f)})}),i.CSSStyleSheet.prototype.addRule=function(a,h,f=this.cssRules.length){let o=`${a} { ${h} }`;return i.CSSStyleSheet.prototype.insertRule.apply(this,[o,f])};let s=i.CSSStyleSheet.prototype.deleteRule;i.CSSStyleSheet.prototype.deleteRule=new Proxy(s,{apply:F((a,h,f)=>{let[o]=f,{id:m,styleId:d}=Le(h,t,r.styleMirror);return(m&&m!==-1||d&&d!==-1)&&e({id:m,styleId:d,removes:[{index:o}]}),a.apply(h,f)})}),i.CSSStyleSheet.prototype.removeRule=function(a){return i.CSSStyleSheet.prototype.deleteRule.apply(this,[a])};let u;i.CSSStyleSheet.prototype.replace&&(u=i.CSSStyleSheet.prototype.replace,i.CSSStyleSheet.prototype.replace=new Proxy(u,{apply:F((a,h,f)=>{let[o]=f,{id:m,styleId:d}=Le(h,t,r.styleMirror);return(m&&m!==-1||d&&d!==-1)&&e({id:m,styleId:d,replace:o}),a.apply(h,f)})}));let c;i.CSSStyleSheet.prototype.replaceSync&&(c=i.CSSStyleSheet.prototype.replaceSync,i.CSSStyleSheet.prototype.replaceSync=new Proxy(c,{apply:F((a,h,f)=>{let[o]=f,{id:m,styleId:d}=Le(h,t,r.styleMirror);return(m&&m!==-1||d&&d!==-1)&&e({id:m,styleId:d,replaceSync:o}),a.apply(h,f)})}));let l={};cr("CSSGroupingRule")?l.CSSGroupingRule=i.CSSGroupingRule:(cr("CSSMediaRule")&&(l.CSSMediaRule=i.CSSMediaRule),cr("CSSConditionRule")&&(l.CSSConditionRule=i.CSSConditionRule),cr("CSSSupportsRule")&&(l.CSSSupportsRule=i.CSSSupportsRule));let p={};return Object.entries(l).forEach(([a,h])=>{p[a]={insertRule:h.prototype.insertRule,deleteRule:h.prototype.deleteRule},h.prototype.insertRule=new Proxy(p[a].insertRule,{apply:F((f,o,m)=>{let[d,g]=m,{id:C,styleId:b}=Le(o.parentStyleSheet,t,r.styleMirror);return(C&&C!==-1||b&&b!==-1)&&e({id:C,styleId:b,adds:[{rule:d,index:[...wr(o),g||0]}]}),f.apply(o,m)})}),h.prototype.deleteRule=new Proxy(p[a].deleteRule,{apply:F((f,o,m)=>{let[d]=m,{id:g,styleId:C}=Le(o.parentStyleSheet,t,r.styleMirror);return(g&&g!==-1||C&&C!==-1)&&e({id:g,styleId:C,removes:[{index:[...wr(o),d]}]}),f.apply(o,m)})})}),F(()=>{i.CSSStyleSheet.prototype.insertRule=n,i.CSSStyleSheet.prototype.deleteRule=s,u&&(i.CSSStyleSheet.prototype.replace=u),c&&(i.CSSStyleSheet.prototype.replaceSync=c),Object.entries(l).forEach(([a,h])=>{h.prototype.insertRule=p[a].insertRule,h.prototype.deleteRule=p[a].deleteRule})})}function al({mirror:e,stylesheetManager:t},r){var i,n,s;let u=null;r.nodeName==="#document"?u=e.getId(r):u=e.getId(D.host(r));let c=r.nodeName==="#document"?(i=r.defaultView)==null?void 0:i.Document:(s=(n=r.ownerDocument)==null?void 0:n.defaultView)==null?void 0:s.ShadowRoot,l=c?.prototype?Object.getOwnPropertyDescriptor(c?.prototype,"adoptedStyleSheets"):void 0;return u===null||u===-1||!c||!l?()=>{}:(Object.defineProperty(r,"adoptedStyleSheets",{configurable:l.configurable,enumerable:l.enumerable,get(){var p;return(p=l.get)==null?void 0:p.call(this)},set(p){var a;let h=(a=l.set)==null?void 0:a.call(this,p);if(u!==null&&u!==-1)try{t.adoptStyleSheets(p,u)}catch{}return h}}),F(()=>{Object.defineProperty(r,"adoptedStyleSheets",{configurable:l.configurable,enumerable:l.enumerable,get:l.get,set:l.set})}))}function Zd({styleDeclarationCb:e,mirror:t,ignoreCSSAttributes:r,stylesheetManager:i},{win:n}){let s=n.CSSStyleDeclaration.prototype.setProperty;n.CSSStyleDeclaration.prototype.setProperty=new Proxy(s,{apply:F((c,l,p)=>{var a;let[h,f,o]=p;if(r.has(h))return s.apply(l,[h,f,o]);let{id:m,styleId:d}=Le((a=l.parentRule)==null?void 0:a.parentStyleSheet,t,i.styleMirror);return(m&&m!==-1||d&&d!==-1)&&e({id:m,styleId:d,set:{property:h,value:f,priority:o},index:wr(l.parentRule)}),c.apply(l,p)})});let u=n.CSSStyleDeclaration.prototype.removeProperty;return n.CSSStyleDeclaration.prototype.removeProperty=new Proxy(u,{apply:F((c,l,p)=>{var a;let[h]=p;if(r.has(h))return u.apply(l,[h]);let{id:f,styleId:o}=Le((a=l.parentRule)==null?void 0:a.parentStyleSheet,t,i.styleMirror);return(f&&f!==-1||o&&o!==-1)&&e({id:f,styleId:o,remove:{property:h},index:wr(l.parentRule)}),c.apply(l,p)})}),F(()=>{n.CSSStyleDeclaration.prototype.setProperty=s,n.CSSStyleDeclaration.prototype.removeProperty=u})}function eh({mediaInteractionCb:e,blockClass:t,blockSelector:r,mirror:i,sampling:n,doc:s}){let u=F(l=>Dt(F(p=>{let a=Pt(p);if(!a||ae(a,t,r,!0))return;let{currentTime:h,volume:f,muted:o,playbackRate:m,loop:d}=a;e({type:l,id:i.getId(a),currentTime:h,volume:f,muted:o,playbackRate:m,loop:d})}),n.media||500)),c=[oe("play",u(st.Play),s),oe("pause",u(st.Pause),s),oe("seeked",u(st.Seeked),s),oe("volumechange",u(st.VolumeChange),s),oe("ratechange",u(st.RateChange),s)];return F(()=>{c.forEach(l=>l())})}function th({fontCb:e,doc:t}){let r=t.defaultView;if(!r)return()=>{};let i=[],n=new WeakMap,s=r.FontFace;r.FontFace=function(l,p,a){let h=new s(l,p,a);return n.set(h,{family:l,buffer:typeof p!="string",descriptors:a,fontSource:typeof p=="string"?p:JSON.stringify(Array.from(new Uint8Array(p)))}),h};let u=Ge(t.fonts,"add",function(c){return function(l){return setTimeout(F(()=>{let p=n.get(l);p&&(e(p),n.delete(l))}),0),c.apply(this,[l])}});return i.push(()=>{r.FontFace=s}),i.push(u),F(()=>{i.forEach(c=>c())})}function rh(e){let{doc:t,mirror:r,blockClass:i,blockSelector:n,selectionCb:s}=e,u=!0,c=F(()=>{let l=t.getSelection();if(!l||u&&l?.isCollapsed)return;u=l.isCollapsed||!1;let p=[],a=l.rangeCount||0;for(let h=0;h<a;h++){let f=l.getRangeAt(h),{startContainer:o,startOffset:m,endContainer:d,endOffset:g}=f;ae(o,i,n,!0)||ae(d,i,n,!0)||p.push({start:r.getId(o),startOffset:m,end:r.getId(d),endOffset:g})}s({ranges:p})});return c(),oe("selectionchange",c)}function nh({doc:e,customElementCb:t}){let r=e.defaultView;return!r||!r.customElements?()=>{}:Ge(r.customElements,"define",function(n){return function(s,u,c){try{t({define:{name:s}})}catch{console.warn(`Custom element callback failed for ${s}`)}return n.apply(this,[s,u,c])}})}function ih(e,t){let{mutationCb:r,mousemoveCb:i,mouseInteractionCb:n,scrollCb:s,viewportResizeCb:u,inputCb:c,mediaInteractionCb:l,styleSheetRuleCb:p,styleDeclarationCb:a,canvasMutationCb:h,fontCb:f,selectionCb:o,customElementCb:m}=e;e.mutationCb=(...d)=>{t.mutation&&t.mutation(...d),r(...d)},e.mousemoveCb=(...d)=>{t.mousemove&&t.mousemove(...d),i(...d)},e.mouseInteractionCb=(...d)=>{t.mouseInteraction&&t.mouseInteraction(...d),n(...d)},e.scrollCb=(...d)=>{t.scroll&&t.scroll(...d),s(...d)},e.viewportResizeCb=(...d)=>{t.viewportResize&&t.viewportResize(...d),u(...d)},e.inputCb=(...d)=>{t.input&&t.input(...d),c(...d)},e.mediaInteractionCb=(...d)=>{t.mediaInteaction&&t.mediaInteaction(...d),l(...d)},e.styleSheetRuleCb=(...d)=>{t.styleSheetRule&&t.styleSheetRule(...d),p(...d)},e.styleDeclarationCb=(...d)=>{t.styleDeclaration&&t.styleDeclaration(...d),a(...d)},e.canvasMutationCb=(...d)=>{t.canvasMutation&&t.canvasMutation(...d),h(...d)},e.fontCb=(...d)=>{t.font&&t.font(...d),f(...d)},e.selectionCb=(...d)=>{t.selection&&t.selection(...d),o(...d)},e.customElementCb=(...d)=>{t.customElement&&t.customElement(...d),m(...d)}}function sh(e,t={}){let r=e.doc.defaultView;if(!r)return()=>{};ih(e,t);let i,n=()=>{};e.recordDOM&&([i,n]=sl(e,e.doc));let s=Gd(e),u=Yd(e),c=ol(e),l=Xd(e,{win:r}),p=Kd(e),a=eh(e),h=()=>{},f=()=>{},o=()=>{},m=()=>{};e.recordDOM&&(h=Qd(e,{win:r}),f=al(e,e.doc),o=Zd(e,{win:r}),e.collectFonts&&(m=th(e)));let d=rh(e),g=nh(e),C=[];for(let b of e.plugins)C.push(b.observer(b.callback,r,b.options));return F(()=>{je.forEach(b=>b.reset()),i?.disconnect(),n(),s(),u(),c(),l(),p(),a(),h(),f(),o(),m(),d(),g(),C.forEach(b=>b())})}function ur(e){return typeof window[e]<"u"}function cr(e){return!!(typeof window[e]<"u"&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}var vr=class{constructor(t){k(this,"iframeIdToRemoteIdMap",new WeakMap),k(this,"iframeRemoteIdToIdMap",new WeakMap),this.generateIdFn=t}getId(t,r,i,n){let s=i||this.getIdToRemoteIdMap(t),u=n||this.getRemoteIdToIdMap(t),c=s.get(r);return c||(c=this.generateIdFn(),s.set(r,c),u.set(c,r)),c}getIds(t,r){let i=this.getIdToRemoteIdMap(t),n=this.getRemoteIdToIdMap(t);return r.map(s=>this.getId(t,s,i,n))}getRemoteId(t,r,i){let n=i||this.getRemoteIdToIdMap(t);if(typeof r!="number")return r;let s=n.get(r);return s||-1}getRemoteIds(t,r){let i=this.getRemoteIdToIdMap(t);return r.map(n=>this.getRemoteId(t,n,i))}reset(t){if(!t){this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap;return}this.iframeIdToRemoteIdMap.delete(t),this.iframeRemoteIdToIdMap.delete(t)}getIdToRemoteIdMap(t){let r=this.iframeIdToRemoteIdMap.get(t);return r||(r=new Map,this.iframeIdToRemoteIdMap.set(t,r)),r}getRemoteIdToIdMap(t){let r=this.iframeRemoteIdToIdMap.get(t);return r||(r=new Map,this.iframeRemoteIdToIdMap.set(t,r)),r}},Di=class{constructor(t){k(this,"iframes",new WeakMap),k(this,"crossOriginIframeMap",new WeakMap),k(this,"crossOriginIframeMirror",new vr(Ta)),k(this,"crossOriginIframeStyleMirror"),k(this,"crossOriginIframeRootIdMap",new WeakMap),k(this,"mirror"),k(this,"mutationCb"),k(this,"wrappedEmit"),k(this,"loadListener"),k(this,"stylesheetManager"),k(this,"recordCrossOriginIframes"),this.mutationCb=t.mutationCb,this.wrappedEmit=t.wrappedEmit,this.stylesheetManager=t.stylesheetManager,this.recordCrossOriginIframes=t.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new vr(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=t.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}addIframe(t){this.iframes.set(t,!0),t.contentWindow&&this.crossOriginIframeMap.set(t.contentWindow,t)}addLoadListener(t){this.loadListener=t}attachIframe(t,r){var i,n;this.mutationCb({adds:[{parentId:this.mirror.getId(t),nextId:null,node:r}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),this.recordCrossOriginIframes&&((i=t.contentWindow)==null||i.addEventListener("message",this.handleMessage.bind(this))),(n=this.loadListener)==null||n.call(this,t),t.contentDocument&&t.contentDocument.adoptedStyleSheets&&t.contentDocument.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(t.contentDocument.adoptedStyleSheets,this.mirror.getId(t.contentDocument))}handleMessage(t){let r=t;if(r.data.type!=="rrweb"||r.origin!==r.data.origin||!t.source)return;let n=this.crossOriginIframeMap.get(t.source);if(!n)return;let s=this.transformCrossOriginEvent(n,r.data.event);s&&this.wrappedEmit(s,r.data.isCheckout)}transformCrossOriginEvent(t,r){var i;switch(r.type){case _.FullSnapshot:{this.crossOriginIframeMirror.reset(t),this.crossOriginIframeStyleMirror.reset(t),this.replaceIdOnNode(r.data.node,t);let n=r.data.node.id;return this.crossOriginIframeRootIdMap.set(t,n),this.patchRootIdOnNode(r.data.node,n),{timestamp:r.timestamp,type:_.IncrementalSnapshot,data:{source:L.Mutation,adds:[{parentId:this.mirror.getId(t),nextId:null,node:r.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case _.Meta:case _.Load:case _.DomContentLoaded:return!1;case _.Plugin:return r;case _.Custom:return this.replaceIds(r.data.payload,t,["id","parentId","previousId","nextId"]),r;case _.IncrementalSnapshot:switch(r.data.source){case L.Mutation:return r.data.adds.forEach(n=>{this.replaceIds(n,t,["parentId","nextId","previousId"]),this.replaceIdOnNode(n.node,t);let s=this.crossOriginIframeRootIdMap.get(t);s&&this.patchRootIdOnNode(n.node,s)}),r.data.removes.forEach(n=>{this.replaceIds(n,t,["parentId","id"])}),r.data.attributes.forEach(n=>{this.replaceIds(n,t,["id"])}),r.data.texts.forEach(n=>{this.replaceIds(n,t,["id"])}),r;case L.Drag:case L.TouchMove:case L.MouseMove:return r.data.positions.forEach(n=>{this.replaceIds(n,t,["id"])}),r;case L.ViewportResize:return!1;case L.MediaInteraction:case L.MouseInteraction:case L.Scroll:case L.CanvasMutation:case L.Input:return this.replaceIds(r.data,t,["id"]),r;case L.StyleSheetRule:case L.StyleDeclaration:return this.replaceIds(r.data,t,["id"]),this.replaceStyleIds(r.data,t,["styleId"]),r;case L.Font:return r;case L.Selection:return r.data.ranges.forEach(n=>{this.replaceIds(n,t,["start","end"])}),r;case L.AdoptedStyleSheet:return this.replaceIds(r.data,t,["id"]),this.replaceStyleIds(r.data,t,["styleIds"]),(i=r.data.styles)==null||i.forEach(n=>{this.replaceStyleIds(n,t,["styleId"])}),r}}return!1}replace(t,r,i,n){for(let s of n)!Array.isArray(r[s])&&typeof r[s]!="number"||(Array.isArray(r[s])?r[s]=t.getIds(i,r[s]):r[s]=t.getId(i,r[s]));return r}replaceIds(t,r,i){return this.replace(this.crossOriginIframeMirror,t,r,i)}replaceStyleIds(t,r,i){return this.replace(this.crossOriginIframeStyleMirror,t,r,i)}replaceIdOnNode(t,r){this.replaceIds(t,r,["id","rootId"]),"childNodes"in t&&t.childNodes.forEach(i=>{this.replaceIdOnNode(i,r)})}patchRootIdOnNode(t,r){t.type!==nl.Document&&!t.rootId&&(t.rootId=r),"childNodes"in t&&t.childNodes.forEach(i=>{this.patchRootIdOnNode(i,r)})}},_i=class{constructor(t){k(this,"shadowDoms",new WeakSet),k(this,"mutationCb"),k(this,"scrollCb"),k(this,"bypassOptions"),k(this,"mirror"),k(this,"restoreHandlers",[]),this.mutationCb=t.mutationCb,this.scrollCb=t.scrollCb,this.bypassOptions=t.bypassOptions,this.mirror=t.mirror,this.init()}init(){this.reset(),this.patchAttachShadow(Element,document)}addShadowRoot(t,r){if(!Ot(t)||this.shadowDoms.has(t))return;this.shadowDoms.add(t);let[i]=sl({...this.bypassOptions,doc:r,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this},t);this.restoreHandlers.push(()=>i.disconnect()),this.restoreHandlers.push(ol({...this.bypassOptions,scrollCb:this.scrollCb,doc:t,mirror:this.mirror})),setTimeout(()=>{t.adoptedStyleSheets&&t.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(t.adoptedStyleSheets,this.mirror.getId(D.host(t))),this.restoreHandlers.push(al({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},t))},0)}observeAttachShadow(t){!t.contentWindow||!t.contentDocument||this.patchAttachShadow(t.contentWindow.Element,t.contentDocument)}patchAttachShadow(t,r){let i=this;this.restoreHandlers.push(Ge(t.prototype,"attachShadow",function(n){return function(s){let u=n.call(this,s),c=D.shadowRoot(this);return c&&rl(this)&&i.addShadowRoot(c,r),u}}))}reset(){this.restoreHandlers.forEach(t=>{try{t()}catch{}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet}},lt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",oh=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(Nt=0;Nt<lt.length;Nt++)oh[lt.charCodeAt(Nt)]=Nt;var Nt,ah=function(e){var t=new Uint8Array(e),r,i=t.length,n="";for(r=0;r<i;r+=3)n+=lt[t[r]>>2],n+=lt[(t[r]&3)<<4|t[r+1]>>4],n+=lt[(t[r+1]&15)<<2|t[r+2]>>6],n+=lt[t[r+2]&63];return i%3===2?n=n.substring(0,n.length-1)+"=":i%3===1&&(n=n.substring(0,n.length-2)+"=="),n};var pa=new Map;function lh(e,t){let r=pa.get(e);return r||(r=new Map,pa.set(e,r)),r.has(t)||r.set(t,[]),r.get(t)}var ll=(e,t,r)=>{if(!e||!(cl(e,t)||typeof e=="object"))return;let i=e.constructor.name,n=lh(r,i),s=n.indexOf(e);return s===-1&&(s=n.length,n.push(e)),s};function fr(e,t,r){if(e instanceof Array)return e.map(i=>fr(i,t,r));if(e===null)return e;if(e instanceof Float32Array||e instanceof Float64Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Uint8Array||e instanceof Uint16Array||e instanceof Int16Array||e instanceof Int8Array||e instanceof Uint8ClampedArray)return{rr_type:e.constructor.name,args:[Object.values(e)]};if(e instanceof ArrayBuffer){let i=e.constructor.name,n=ah(e);return{rr_type:i,base64:n}}else{if(e instanceof DataView)return{rr_type:e.constructor.name,args:[fr(e.buffer,t,r),e.byteOffset,e.byteLength]};if(e instanceof HTMLImageElement){let i=e.constructor.name,{src:n}=e;return{rr_type:i,src:n}}else if(e instanceof HTMLCanvasElement){let i="HTMLImageElement",n=e.toDataURL();return{rr_type:i,src:n}}else{if(e instanceof ImageData)return{rr_type:e.constructor.name,args:[fr(e.data,t,r),e.width,e.height]};if(cl(e,t)||typeof e=="object"){let i=e.constructor.name,n=ll(e,t,r);return{rr_type:i,index:n}}}}return e}var ul=(e,t,r)=>e.map(i=>fr(i,t,r)),cl=(e,t)=>!!["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"].filter(n=>typeof t[n]=="function").find(n=>e instanceof t[n]);function uh(e,t,r,i){let n=[],s=Object.getOwnPropertyNames(t.CanvasRenderingContext2D.prototype);for(let u of s)try{if(typeof t.CanvasRenderingContext2D.prototype[u]!="function")continue;let c=Ge(t.CanvasRenderingContext2D.prototype,u,function(l){return function(...p){return ae(this.canvas,r,i,!0)||setTimeout(()=>{let a=ul(p,t,this);e(this.canvas,{type:ut["2D"],property:u,args:a})},0),l.apply(this,p)}});n.push(c)}catch{let c=Ar(t.CanvasRenderingContext2D.prototype,u,{set(l){e(this.canvas,{type:ut["2D"],property:u,args:[l],setter:!0})}});n.push(c)}return()=>{n.forEach(u=>u())}}function ch(e){return e==="experimental-webgl"?"webgl":e}function ma(e,t,r,i){let n=[];try{let s=Ge(e.HTMLCanvasElement.prototype,"getContext",function(u){return function(c,...l){if(!ae(this,t,r,!0)){let p=ch(c);if("__context"in this||(this.__context=p),i&&["webgl","webgl2"].includes(p))if(l[0]&&typeof l[0]=="object"){let a=l[0];a.preserveDrawingBuffer||(a.preserveDrawingBuffer=!0)}else l.splice(0,1,{preserveDrawingBuffer:!0})}return u.apply(this,[c,...l])}});n.push(s)}catch{console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return()=>{n.forEach(s=>s())}}function ga(e,t,r,i,n,s){let u=[],c=Object.getOwnPropertyNames(e);for(let l of c)if(!["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(l))try{if(typeof e[l]!="function")continue;let p=Ge(e,l,function(a){return function(...h){let f=a.apply(this,h);if(ll(f,s,this),"tagName"in this.canvas&&!ae(this.canvas,i,n,!0)){let o=ul(h,s,this),m={type:t,property:l,args:o};r(this.canvas,m)}return f}});u.push(p)}catch{let p=Ar(e,l,{set(a){r(this.canvas,{type:t,property:l,args:[a],setter:!0})}});u.push(p)}return u}function fh(e,t,r,i){let n=[];return typeof t.WebGLRenderingContext<"u"&&n.push(...ga(t.WebGLRenderingContext.prototype,ut.WebGL,e,r,i,t)),typeof t.WebGL2RenderingContext<"u"&&n.push(...ga(t.WebGL2RenderingContext.prototype,ut.WebGL2,e,r,i,t)),()=>{n.forEach(s=>s())}}var fl=`(function() {
54
54
  "use strict";
55
55
  var chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
56
56
  var lookup = typeof Uint8Array === "undefined" ? [] : new Uint8Array(256);
@@ -125,9 +125,21 @@ or you can use record.mirror to access the mirror instance during recording.`,Yo
125
125
  };
126
126
  })();
127
127
  //# sourceMappingURL=image-bitmap-data-url-worker-IJpC7g_b.js.map
128
- `,ta=typeof self<"u"&&self.Blob&&new Blob([Xa],{type:"text/javascript;charset=utf-8"});function Pd(e){let t;try{if(t=ta&&(self.URL||self.webkitURL).createObjectURL(ta),!t)throw"";let r=new Worker(t,{name:e?.name});return r.addEventListener("error",()=>{(self.URL||self.webkitURL).revokeObjectURL(t)}),r}catch{return new Worker("data:text/javascript;charset=utf-8,"+encodeURIComponent(Xa),{name:e?.name})}finally{t&&(self.URL||self.webkitURL).revokeObjectURL(t)}}var Ti=class{constructor(t){O(this,"pendingCanvasMutations",new Map),O(this,"rafStamps",{latestId:0,invokeId:null}),O(this,"mirror"),O(this,"mutationCb"),O(this,"resetObservers"),O(this,"frozen",!1),O(this,"locked",!1),O(this,"processMutation",(a,p)=>{(this.rafStamps.invokeId&&this.rafStamps.latestId!==this.rafStamps.invokeId||!this.rafStamps.invokeId)&&(this.rafStamps.invokeId=this.rafStamps.latestId),this.pendingCanvasMutations.has(a)||this.pendingCanvasMutations.set(a,[]),this.pendingCanvasMutations.get(a).push(p)});let{sampling:r="all",win:i,blockClass:n,blockSelector:l,recordCanvas:u,dataURLOptions:c}=t;this.mutationCb=t.mutationCb,this.mirror=t.mirror,u&&r==="all"&&this.initCanvasMutationObserver(i,n,l),u&&typeof r=="number"&&this.initCanvasFPSObserver(r,i,n,l,{dataURLOptions:c})}reset(){this.pendingCanvasMutations.clear(),this.resetObservers&&this.resetObservers()}freeze(){this.frozen=!0}unfreeze(){this.frozen=!1}lock(){this.locked=!0}unlock(){this.locked=!1}initCanvasFPSObserver(t,r,i,n,l){let u=Zo(r,i,n,!0),c=new Map,a=new Pd;a.onmessage=m=>{let{id:d}=m.data;if(c.set(d,!1),!("base64"in m.data))return;let{base64:g,type:C,width:b,height:v}=m.data;this.mutationCb({id:d,type:it["2D"],commands:[{property:"clearRect",args:[0,0,b,v]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:g}],type:C}]},0,0]}]})};let p=1e3/t,o=0,h,f=()=>{let m=[];return r.document.querySelectorAll("canvas").forEach(d=>{ae(d,i,n,!0)||m.push(d)}),m},s=m=>{if(o&&m-o<p){h=requestAnimationFrame(s);return}o=m,f().forEach(async d=>{var g;let C=this.mirror.getId(d);if(c.get(C)||d.width===0||d.height===0)return;if(c.set(C,!0),["webgl","webgl2"].includes(d.__context)){let v=d.getContext(d.__context);((g=v?.getContextAttributes())==null?void 0:g.preserveDrawingBuffer)===!1&&v.clear(v.COLOR_BUFFER_BIT)}let b=await createImageBitmap(d);a.postMessage({id:C,bitmap:b,width:d.width,height:d.height,dataURLOptions:l.dataURLOptions},[b])}),h=requestAnimationFrame(s)};h=requestAnimationFrame(s),this.resetObservers=()=>{u(),cancelAnimationFrame(h)}}initCanvasMutationObserver(t,r,i){this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher();let n=Zo(t,r,i,!1),l=Dd(this.processMutation.bind(this),t,r,i),u=Ld(this.processMutation.bind(this),t,r,i);this.resetObservers=()=>{n(),l(),u()}}startPendingCanvasMutationFlusher(){requestAnimationFrame(()=>this.flushPendingCanvasMutations())}startRAFTimestamping(){let t=r=>{this.rafStamps.latestId=r,requestAnimationFrame(t)};requestAnimationFrame(t)}flushPendingCanvasMutations(){this.pendingCanvasMutations.forEach((t,r)=>{let i=this.mirror.getId(r);this.flushPendingCanvasMutationFor(r,i)}),requestAnimationFrame(()=>this.flushPendingCanvasMutations())}flushPendingCanvasMutationFor(t,r){if(this.frozen||this.locked)return;let i=this.pendingCanvasMutations.get(t);if(!i||r===-1)return;let n=i.map(u=>{let{type:c,...a}=u;return a}),{type:l}=i[0];this.mutationCb({id:r,type:l,commands:n}),this.pendingCanvasMutations.delete(t)}},Mi=class{constructor(t){O(this,"trackedLinkElements",new WeakSet),O(this,"mutationCb"),O(this,"adoptedStyleSheetCb"),O(this,"styleMirror",new Si),this.mutationCb=t.mutationCb,this.adoptedStyleSheetCb=t.adoptedStyleSheetCb}attachLinkElement(t,r){"_cssText"in r.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:r.id,attributes:r.attributes}]}),this.trackLinkElement(t)}trackLinkElement(t){this.trackedLinkElements.has(t)||(this.trackedLinkElements.add(t),this.trackStylesheetInLinkElement(t))}adoptStyleSheets(t,r){if(t.length===0)return;let i={id:r,styleIds:[]},n=[];for(let l of t){let u;this.styleMirror.has(l)?u=this.styleMirror.getId(l):(u=this.styleMirror.add(l),n.push({styleId:u,rules:Array.from(l.rules||CSSRule,(c,a)=>({rule:aa(c,l.href),index:a}))})),i.styleIds.push(u)}n.length>0&&(i.styles=n),this.adoptedStyleSheetCb(i)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(t){}},Ni=class{constructor(){O(this,"nodeMap",new WeakMap),O(this,"active",!1)}inOtherBuffer(t,r){let i=this.nodeMap.get(t);return i&&Array.from(i).some(n=>n!==r)}add(t,r){this.active||(this.active=!0,requestAnimationFrame(()=>{this.nodeMap=new WeakMap,this.active=!1})),this.nodeMap.set(t,(this.nodeMap.get(t)||new Set).add(r))}destroy(){}},J,ir,gi,hr=!1;try{if(Array.from([1],e=>e*2)[0]!==2){let e=document.createElement("iframe");document.body.appendChild(e),Array.from=((_s=e.contentWindow)==null?void 0:_s.Array.from)||Array.from,document.body.removeChild(e)}}catch(e){console.debug("Unable to override Array.from",e)}var ve=jc();function Z(e={}){let{emit:t,checkoutEveryNms:r,checkoutEveryNth:i,blockClass:n="rr-block",blockSelector:l=null,ignoreClass:u="rr-ignore",ignoreSelector:c=null,maskTextClass:a="rr-mask",maskTextSelector:p=null,inlineStylesheet:o=!0,maskAllInputs:h,maskInputOptions:f,slimDOMOptions:s,maskInputFn:m,maskTextFn:d,hooks:g,packFn:C,sampling:b={},dataURLOptions:v={},mousemoveWait:E,recordDOM:w=!0,recordCanvas:y=!1,recordCrossOriginIframes:S=!1,recordAfter:x=e.recordAfter==="DOMContentLoaded"?e.recordAfter:"load",userTriggeredOnInput:M=!1,collectFonts:T=!1,inlineImages:I=!1,plugins:k,keepIframeSrcFn:R=()=>!1,ignoreCSSAttributes:re=new Set([]),errorHandler:ne}=e;md(ne);let U=S?window.parent===window:!0,P=!1;if(!U)try{window.parent.document&&(P=!1)}catch{P=!0}if(U&&!t)throw new Error("emit function is required");if(!U&&!P)return()=>{};E!==void 0&&b.mousemove===void 0&&(b.mousemove=E),ve.reset();let V=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}:f!==void 0?f:{password:!0},Q=pa(s);fd();let $,B=0,ue=A=>{for(let ee of k||[])ee.eventProcessor&&(A=ee.eventProcessor(A));return C&&!P&&(A=C(A)),A};J=(A,ee)=>{var W;let X=A;if(X.timestamp=Rt(),(W=We[0])!=null&&W.isFrozen()&&X.type!==_.FullSnapshot&&!(X.type===_.IncrementalSnapshot&&X.data.source===L.Mutation)&&We.forEach(ce=>ce.unfreeze()),U)t?.(ue(X),ee);else if(P){let ce={type:"rrweb",event:ue(X),origin:window.location.origin,isCheckout:ee};window.parent.postMessage(ce,"*")}if(X.type===_.FullSnapshot)$=X,B=0;else if(X.type===_.IncrementalSnapshot){if(X.data.source===L.Mutation&&X.data.isAttachIframe)return;B++;let ce=i&&B>=i,z=r&&X.timestamp-$.timestamp>r;(ce||z)&&ir(!0)}};let N=A=>{J({type:_.IncrementalSnapshot,data:{source:L.Mutation,...A}})},xe=A=>J({type:_.IncrementalSnapshot,data:{source:L.Scroll,...A}}),pe=A=>J({type:_.IncrementalSnapshot,data:{source:L.CanvasMutation,...A}}),vt=A=>J({type:_.IncrementalSnapshot,data:{source:L.AdoptedStyleSheet,...A}}),se=new Mi({mutationCb:N,adoptedStyleSheetCb:vt}),we=new xi({mirror:ve,mutationCb:N,stylesheetManager:se,recordCrossOriginIframes:S,wrappedEmit:J});for(let A of k||[])A.getMirror&&A.getMirror({nodeMirror:ve,crossOriginIframeMirror:we.crossOriginIframeMirror,crossOriginIframeStyleMirror:we.crossOriginIframeStyleMirror});let $e=new Ni;gi=new Ti({recordCanvas:y,mutationCb:pe,win:window,blockClass:n,blockSelector:l,mirror:ve,sampling:b.canvas,dataURLOptions:v});let Ae=new Ri({mutationCb:N,scrollCb:xe,bypassOptions:{blockClass:n,blockSelector:l,maskTextClass:a,maskTextSelector:p,inlineStylesheet:o,maskInputOptions:V,dataURLOptions:v,maskTextFn:d,maskInputFn:m,recordCanvas:y,inlineImages:I,sampling:b,slimDOMOptions:Q,iframeManager:we,stylesheetManager:se,canvasManager:gi,keepIframeSrcFn:R,processedNodeManager:$e},mirror:ve});ir=(A=!1)=>{if(!w)return;J({type:_.Meta,data:{href:window.location.href,width:_a(),height:Da()}},A),se.reset(),Ae.init(),We.forEach(W=>W.lock());let ee=yf(document,{mirror:ve,blockClass:n,blockSelector:l,maskTextClass:a,maskTextSelector:p,inlineStylesheet:o,maskAllInputs:V,maskTextFn:d,maskInputFn:m,slimDOM:Q,dataURLOptions:v,recordCanvas:y,inlineImages:I,onSerialize:W=>{Fa(W,ve)&&we.addIframe(W),Ua(W,ve)&&se.trackLinkElement(W),vi(W)&&Ae.addShadowRoot(D.shadowRoot(W),document)},onIframeLoad:(W,X)=>{we.attachIframe(W,X),Ae.observeAttachShadow(W)},onStylesheetLoad:(W,X)=>{se.attachLinkElement(W,X)},keepIframeSrcFn:R});if(!ee)return console.warn("Failed to snapshot the document");J({type:_.FullSnapshot,data:{node:ee,initialOffset:Aa(window)}},A),We.forEach(W=>W.unlock()),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&se.adoptStyleSheets(document.adoptedStyleSheets,ve.getId(document))};try{let A=[],ee=X=>{var ce;return F(Od)({mutationCb:N,mousemoveCb:(z,cn)=>J({type:_.IncrementalSnapshot,data:{source:cn,positions:z}}),mouseInteractionCb:z=>J({type:_.IncrementalSnapshot,data:{source:L.MouseInteraction,...z}}),scrollCb:xe,viewportResizeCb:z=>J({type:_.IncrementalSnapshot,data:{source:L.ViewportResize,...z}}),inputCb:z=>J({type:_.IncrementalSnapshot,data:{source:L.Input,...z}}),mediaInteractionCb:z=>J({type:_.IncrementalSnapshot,data:{source:L.MediaInteraction,...z}}),styleSheetRuleCb:z=>J({type:_.IncrementalSnapshot,data:{source:L.StyleSheetRule,...z}}),styleDeclarationCb:z=>J({type:_.IncrementalSnapshot,data:{source:L.StyleDeclaration,...z}}),canvasMutationCb:pe,fontCb:z=>J({type:_.IncrementalSnapshot,data:{source:L.Font,...z}}),selectionCb:z=>{J({type:_.IncrementalSnapshot,data:{source:L.Selection,...z}})},customElementCb:z=>{J({type:_.IncrementalSnapshot,data:{source:L.CustomElement,...z}})},blockClass:n,ignoreClass:u,ignoreSelector:c,maskTextClass:a,maskTextSelector:p,maskInputOptions:V,inlineStylesheet:o,sampling:b,recordDOM:w,recordCanvas:y,inlineImages:I,userTriggeredOnInput:M,collectFonts:T,doc:X,maskInputFn:m,maskTextFn:d,keepIframeSrcFn:R,blockSelector:l,slimDOMOptions:Q,dataURLOptions:v,mirror:ve,iframeManager:we,stylesheetManager:se,shadowDomManager:Ae,processedNodeManager:$e,canvasManager:gi,ignoreCSSAttributes:re,plugins:((ce=k?.filter(z=>z.observer))==null?void 0:ce.map(z=>({observer:z.observer,options:z.options,callback:cn=>J({type:_.Plugin,data:{plugin:z.name,payload:cn}})})))||[]},g)};we.addLoadListener(X=>{try{A.push(ee(X.contentDocument))}catch(ce){console.warn(ce)}});let W=()=>{ir(),A.push(ee(document)),hr=!0};return["interactive","complete"].includes(document.readyState)?W():(A.push(oe("DOMContentLoaded",()=>{J({type:_.DomContentLoaded,data:{}}),x==="DOMContentLoaded"&&W()})),A.push(oe("load",()=>{J({type:_.Load,data:{}}),x==="load"&&W()},window))),()=>{A.forEach(X=>{try{X()}catch(ce){String(ce).toLowerCase().includes("cross-origin")||console.warn(ce)}}),$e.destroy(),hr=!1,gd()}}catch(A){console.warn(A)}}Z.addCustomEvent=(e,t)=>{if(!hr)throw new Error("please add custom event after start recording");J({type:_.Custom,data:{tag:e,payload:t}})};Z.freezePage=()=>{We.forEach(e=>e.freeze())};Z.takeFullSnapshot=e=>{if(!hr)throw new Error("please take full snapshot after start recording");ir(e)};Z.mirror=ve;var ra;(function(e){e[e.NotStarted=0]="NotStarted",e[e.Running=1]="Running",e[e.Stopped=2]="Stopped"})(ra||(ra={}));var Mp=5*1e3;var{addCustomEvent:Np}=Z,{freezePage:Op}=Z,{takeFullSnapshot:kp}=Z;var Fd=/card.?(num|exp|cvc|cvv|code)|cc.?(num|exp|csc|cvc|cvv)|^(cvc|cvv|csc)\d?$|security.?code|^exp(iry|iration)?.?(date|month|year)?$/i;function Ja(e){return(e.getAttribute("autocomplete")??"").toLowerCase().split(/\s+/).some(r=>r.startsWith("cc-"))?!0:[e.getAttribute("name"),e.getAttribute("id")].some(r=>!!r&&Fd.test(r))}function Ka(e=window){if(e.parent===e||e.location.href==="about:blank")return!1;try{return e.parent.document,!1}catch{return!0}}var he={data:"__tabtape:data",flush:"__tabtape:flush",hello:"__tabtape:hello",control:"__tabtape:control",info:"__tabtape:info",infoReply:"__tabtape:info-reply",snapshot:"__tabtape:snapshot"},Qa="tabtape.state",Rr="/__tabtape/";function Ve(){try{return window[Symbol.for(Qa)]}catch{return}}function el(e){let t="",r=!1,i=null,n=c=>{try{e.emit(c)}catch{}};function l(c,a,p){let o=e.title(),h,f=()=>{},s=!1,m=()=>{s||(s=!0,i===m&&(i=null),f(),e.clearTimer(h),e.clearTimer(d),n({kind:c,url:a,title:e.title(),ts:p}))};i=m;let d=e.setTimer(m,2e3);try{f=e.watchTitle(()=>{s||e.title()===o||(e.clearTimer(h),h=e.setTimer(m,100))})}catch{}}let u=()=>i?.();return{reset(c){u(),t="",r=c},view(c,a=e.now()){let p=c==="push"||c==="replace"||c==="pop"||c==="hash";if(p&&r)return;p||(r=!1);let o=e.url();if(!(p&&o===t)){if(c==="replace"&&Za(o)===Za(t)){t=o;return}t=o,u(),p?l(c,o,a):n({kind:c,url:o,title:e.title(),ts:a})}},flush:u}}function Za(e){let t=e.search(/[?#]/);return t<0?e:e.slice(0,t)}var Ee=JSON.stringify,It=JSON.parse,Ud=Object.prototype.toString,He="********",Bd=/passw(or)?d|^pwd$|^pass$/i,Tr=/json|text\/|xml|javascript|ecmascript|graphql|x-www-form-urlencoded|csv|yaml/i,j=(e,t)=>e.length>t?e.slice(0,t-1)+"\u2026":e,K=e=>Math.round(e*10)/10;function Le(e){return Bd.test(e)}function Pe(e){try{return new URL(e,location.href).href}catch{return e}}function rl(e){let t=e,r="";for(let i of["currentSrc","src","href"]){let n=t[i];if(typeof n=="string"&&n){r=n;break}}if(!r){let i=e.getAttribute("src")||e.getAttribute("href");i&&(r=Pe(i))}return r?j(Y(r),1e3):""}function Mr(e){let t=new URLSearchParams(e),r=!1;for(let i of new Set(t.keys()))Le(i)&&(t.set(i,He),r=!0);return r?t.toString():e}function Y(e){let t=e.indexOf("?");if(t<0)return e;let r=e.indexOf("#",t),i=e.slice(t+1,r<0?void 0:r),n=Mr(i);return n===i?e:e.slice(0,t+1)+n+(r<0?"":e.slice(r))}function Hi(e){let t=!1;if(Array.isArray(e))for(let r of e)t=Hi(r)||t;else if(e&&typeof e=="object"){let r=e;for(let i of Object.keys(r)){let n=r[i];Le(i)&&(typeof n=="string"||typeof n=="number")?(r[i]=He,t=!0):t=Hi(n)||t}}return t}var $d=/^[\w.%[\]-]+=[^&]*(&[\w.%[\]-]+=[^&]*)*$/,Wd=/multipart\/form-data/i,zd=/^--[^\r\n]{1,200}\r?\ncontent-disposition:\s*form-data/i;function Nr(e,t=""){let r=e.trimStart();if(r.startsWith("{")||r.startsWith("["))try{let i=It(e);return Hi(i)?Ee(i):e}catch{return e}return Wd.test(t)||zd.test(r)?qd(e,t):/x-www-form-urlencoded/i.test(t)||r.length<1e5&&$d.test(r)?Mr(e):e}function qd(e,t=""){let r=/boundary=(?:"([^"]+)"|([^;,\s]+))/i.exec(t),i=r?.[1]??r?.[2]??/^--([^\r\n]+)/.exec(e.trimStart())?.[1];if(!i)return e;let n=`--${i}`,l=e.split(n),u=!1;for(let c=1;c<l.length;c++){let a=l[c],p=/\r?\n\r?\n/.exec(a);if(!p)continue;let o=a.slice(0,p.index);if(/;\s*filename\*?=/i.test(o))continue;let h=/;\s*name="([^"]*)"/i.exec(o)?.[1]??/;\s*name=([^;\s]+)/i.exec(o)?.[1];if(h===void 0||!Le(h))continue;let f=p.index+p[0].length,s=a.endsWith(`\r
129
- `)?a.length-2:a.endsWith(`
130
- `)?a.length-1:a.length;l[c]=a.slice(0,f)+He+a.slice(Math.max(f,s)),u=!0}return u?l.join(n):e}var Gi={depth:4,items:50,string:2e3};function st(e){if(!e||typeof e!="object")return!1;if(e instanceof Error)return!0;let t=e;return typeof t.message=="string"&&typeof t.name=="string"&&"stack"in t}function jd(e){if(e.nodeType===1){let t=e,r="<"+t.tagName.toLowerCase();t.id&&(r+="#"+t.id);let i=t.getAttribute("class")?.trim();return i&&(r+="."+i.split(/\s+/).slice(0,3).join(".")),r+">"}return e.nodeType===3?`#text "${j(e.textContent??"",60)}"`:e.nodeName}function At(e,t=Gi){return kt(e,0,new WeakSet,t)}function kt(e,t,r,i){switch(typeof e){case"string":return j(e,i.string);case"number":return Number.isFinite(e)?e:String(e);case"boolean":return e;case"undefined":return"undefined";case"bigint":return`${e}n`;case"symbol":return e.toString();case"function":return`\u0192 ${e.name||"anonymous"}()`}if(e===null)return null;let n=e;if(r.has(n))return"[Circular]";try{if(st(n))return{name:n.name,message:j(String(n.message),i.string),stack:j(String(n.stack??""),Math.min(4e3,i.string*2))};let l=n;if(typeof l.nodeType=="number"&&typeof l.nodeName=="string")return jd(l);if(n.window===n)return"[Window]";let u=Ud.call(n).slice(8,-1);if(u==="Date"){let p=n;return Number.isNaN(p.getTime())?"Invalid Date":p.toISOString()}if(u==="RegExp")return String(n);if(u==="Promise")return"[Promise]";if(n instanceof ArrayBuffer||ArrayBuffer.isView(n))return`[${u} ${n.byteLength} bytes]`;if(t>=i.depth)return Array.isArray(n)?`[Array(${n.length})]`:`[${u}]`;if(r.add(n),Array.isArray(n)){let p=n.slice(0,i.items).map(o=>kt(o,t+1,r,i));return n.length>i.items&&p.push(`\u2026 ${n.length-i.items} more`),p}if(u==="Map")return{"[[Map]]":kt([...n].slice(0,i.items),t+1,r,i)};if(u==="Set")return{"[[Set]]":kt([...n].slice(0,i.items),t+1,r,i)};let c={},a=Object.keys(n);for(let p of a.slice(0,i.items))try{c[p]=kt(n[p],t+1,r,i)}catch{c[p]="[unreadable]"}return a.length>i.items&&(c["\u2026"]=`${a.length-i.items} more keys`),c}catch{return"[unserializable]"}}function tl(e,t){if(typeof e=="string")return e;if(st(e))return`${e.name}: ${e.message}`;if(typeof t=="string")return t;try{return j(Ee(t)??String(t),1e3)}catch{return String(t)}}function Yi(e,t){let r=[],i=0;for(typeof e[0]=="string"&&e[0].includes("%")&&(i=1,r.push(e[0].replace(/%([sdifoOc%])/g,(n,l)=>{if(l==="%")return"%";if(i>=e.length)return n;let u=i++,c=e[u];switch(l){case"c":return"";case"d":case"i":return String(Number.parseInt(String(c),10));case"f":return String(Number(c));default:return tl(c,t[u])}})));i<e.length;i++)r.push(tl(e[i],t[i]));return j(r.join(" "),5e3)}function nl(e){if(!e)return;let t=e.split(`
131
- `).filter((r,i)=>i>0&&!r.includes("chrome-extension://")&&!r.includes(Rr));return t.length?j(t.join(`
132
- `),4e3):void 0}var Vd=["a","button","input","select","textarea","label","summary","option",'[role="button"]','[role="link"]','[role="menuitem"]','[role="tab"]','[role="checkbox"]','[role="radio"]','[role="switch"]','[role="option"]',"[onclick]","[data-testid]"].join(","),Hd=[["name","name"],["type","type"],["role","role"],["aria-label","ariaLabel"],["data-testid","testId"],["placeholder","placeholder"],["title","title"],["alt","alt"]],Gd=4,il=1e3,Yd=30,ol=history.pushState,al=history.replaceState,at=()=>{},Ge=!1,ot=[],sl=0,Or=el({emit:({kind:e,url:t,title:r,ts:i})=>{Ge&&at({name:"page_view",kind:e,url:t,title:r,referrer:e==="load"&&document.referrer?Y(document.referrer):void 0,viewport:{w:innerWidth,h:innerHeight}},i)},url:()=>Y(location.href),title:()=>document.title,now:()=>Date.now(),watchTitle:e=>{let t=new MutationObserver(e);return t.observe(document.head??document.documentElement,{subtree:!0,childList:!0,characterData:!0}),()=>t.disconnect()},setTimer:(e,t)=>setTimeout(e,t),clearTimer:e=>clearTimeout(e)});function ll(e,t){if(at=e,Ge)return;Ge=!0,document.addEventListener("click",ml,!0),document.addEventListener("change",gl,!0),document.addEventListener("submit",yl,!0),addEventListener("popstate",hl),addEventListener("hashchange",pl),history.pushState=fl,history.replaceState=dl;let r=document.readyState==="loading";Or.reset(r),r?document.addEventListener("DOMContentLoaded",()=>Fe(t),{once:!0}):Fe(t)}function ul(){Ge&&(Or.flush(),Ge=!1,document.removeEventListener("click",ml,!0),document.removeEventListener("change",gl,!0),document.removeEventListener("submit",yl,!0),removeEventListener("popstate",hl),removeEventListener("hashchange",pl),history.pushState===fl&&(history.pushState=ol),history.replaceState===dl&&(history.replaceState=al))}function Fe(e,t=Date.now()){Ge&&Or.view(e,t)}function cl(){Ge&&Or.flush()}function fl(...e){ol.apply(this,e),Ye(()=>Fe("push"))}function dl(...e){al.apply(this,e),Ye(()=>Fe("replace"))}var hl=()=>Ye(()=>Fe("pop")),pl=()=>Ye(()=>Fe("hash"));function ml(e){e.isTrusted&&Ye(()=>{let t=e.composedPath()[0];if(!t||t.nodeType!==1)return;let r=t.closest(Vd)??t,i=Xi(r),n=Date.now(),l=Y(location.href),u=Math.round(e.clientX),c=Math.round(e.clientY);at({name:"click",url:l,target:i,x:u,y:c},n),ot=ot.filter(a=>n-a.ts<il&&Math.hypot(a.x-u,a.y-c)<Yd),ot.push({ts:n,x:u,y:c}),ot.length>=Gd&&n>=sl&&(at({name:"rage_click",url:l,target:i,x:u,y:c,count:ot.length},n),sl=n+il,ot=[])})}function gl(e){Ye(()=>{let t=e.composedPath()[0];if(!t||t.nodeType!==1)return;let r=t.tagName;if(r!=="INPUT"&&r!=="SELECT"&&r!=="TEXTAREA"||bl(t))return;let i=(t.getAttribute("type")??"").toLowerCase(),n={name:"change",url:Y(location.href),target:Xi(t)};Xd(t)?n.masked=!0:i==="checkbox"||i==="radio"?n.value=t.checked?"checked":"unchecked":i==="file"?n.value=Array.from(t.files??[],l=>l.name).join(", "):n.value=j(String(t.value??""),500),at(n,Date.now())})}function yl(e){Ye(()=>{let t=e.target;if(!t||t.nodeType!==1)return;let r=t.getAttribute("action");at({name:"submit",url:Y(location.href),target:Xi(t),action:r?Y(Pe(r)):void 0,method:(t.getAttribute("method")??"get").toUpperCase()},Date.now())})}function bl(e){return e.closest(".rr-block")!==null}function Xd(e){return(e.getAttribute("type")??"").toLowerCase()==="password"||e.hasAttribute("data-rr-is-password")||/password/i.test(e.getAttribute("autocomplete")??"")}function Xi(e){let t={tag:e.tagName.toLowerCase(),selector:Qd(e)};e.id&&(t.id=j(e.id,100));let r=e.getAttribute("class")?.trim();r&&(t.classes=j(r.split(/\s+/).slice(0,6).join(" "),200));let i=bl(e)?"":Jd(e);i&&(t.text=i);for(let[n,l]of Hd){let u=e.getAttribute(n);u&&(t[l]=j(u,200))}if(t.tag==="a"){let n=e.getAttribute("href");n&&(t.href=Y(Pe(n)))}return t}function Jd(e){let t=e.tagName;if(t==="INPUT"){let n=(e.getAttribute("type")??"").toLowerCase();return n==="button"||n==="submit"||n==="reset"?j(e.value,120):""}if(t==="SELECT"||t==="TEXTAREA")return"";let r="",i=document.createTreeWalker(e,NodeFilter.SHOW_TEXT);for(let n=i.nextNode();n&&r.length<200;n=i.nextNode()){let l=n.parentElement?.tagName;l==="SCRIPT"||l==="STYLE"||(r+=" "+(n.nodeValue??""))}return j(r.replace(/\s+/g," ").trim(),120)}var Kd=/^(css|sc|jsx|emotion)-|[0-9a-f]{5,}|__/i;function Qd(e){let t=[];for(let r=e;r&&r.nodeType===1&&t.length<5;r=r.parentElement){let i=r.tagName.toLowerCase();if(r.id&&/^[A-Za-z][\w-]*$/.test(r.id)){t.unshift(`${i}#${r.id}`);break}let n=r.getAttribute("data-testid");if(n){t.unshift(`${i}[data-testid="${n.replace(/"/g,'\\"')}"]`);break}let l=i,u=(r.getAttribute("class")??"").trim().split(/\s+/).filter(a=>a&&!Kd.test(a)).slice(0,2);u.length&&(l+="."+u.map(a=>CSS.escape(a)).join("."));let c=r.parentElement;if(c){let a=Array.from(c.children).filter(p=>p.tagName===r.tagName);a.length>1&&(l+=`:nth-of-type(${a.indexOf(r)+1})`)}t.unshift(l)}return t.join(" > ")}function Ye(e){try{e()}catch{}}var eh="tabtape/canvas",th=100,rh=500,nh=5e3,ih=4e5,wl=2e6,sh=4e6,vl="image/webp",Sl=.8,oh=["clearRect","fillRect","strokeRect","fill","stroke","fillText","strokeText","drawImage","putImageData","drawFocusIfNeeded","reset"],ah=2,lh=3,uh=0,Tl=setTimeout.bind(globalThis),Ml=clearTimeout.bind(globalThis),_t=Date.now,lt=typeof CanvasRenderingContext2D=="function"?CanvasRenderingContext2D.prototype:void 0,ch=typeof HTMLCanvasElement=="function"?HTMLCanvasElement.prototype.toBlob:void 0,Cl=typeof FileReader=="function"?FileReader:void 0,El=typeof OffscreenCanvas=="function"?OffscreenCanvas:void 0,Ji=new Map,Ki=new Map,ut=!1,Oe=!1,kr=0,Qi=0,es=new WeakSet,ke=new Map,Ir=new WeakMap,Nl=new WeakSet,Xe,Ue,Dt=1/0,Zi;function ct(e){if(!ut||!e||typeof e!="object")return;if(Zi)return Zi(e);if(e===Xe||(Xe=e,es.add(e),!Oe||ke.has(e)))return;let t=Ir.get(e);ke.set(e,Math.max(_t()+th,t?fh(t.at,t.chars):0)),Ar()}function fh(e,t){return e+Math.min(nh,Math.max(rh,Math.round(t/ih*1e3)))}function dh(e,t){let r=e*t;if(r<=wl)return{width:e,height:t};let i=Math.sqrt(wl/r);return{width:Math.max(1,Math.floor(e*i)),height:Math.max(1,Math.floor(t*i))}}function Ar(){let e=1/0;for(let t of ke.values())e=Math.min(e,t);if(Ue!==void 0){if(Dt<=e)return;Ml(Ue),Ue=void 0}Dt=1/0,!(!Oe||e===1/0)&&(Dt=e,Ue=Tl(hh,Math.max(0,e-_t())))}function hh(){Ue=void 0,Dt=1/0,Xe=void 0;let e=_t();for(let[t,r]of ke)r>e||(ke.delete(t),Ol(t));Ar()}function ph(){if(!Oe)return;Xe=void 0;let e=Z.mirror;for(let t of e.getIds()){let r=e.getNode(t);!r||!es.has(r)||(ke.delete(r),Ol(r))}Ar()}function mh(e){let t=Ir.get(e);t&&(t.epoch=-1),Oe&&(ke.set(e,Math.min(ke.get(e)??1/0,_t())),Ar())}function Ol(e){try{if(!Oe||Nl.has(e)||!e.isConnected||!e.width||!e.height||e.closest(".rr-block, .rr-mask"))return;let t=Z.mirror.getId(e);if(t<0)return;let r=Ir.get(e);r||Ir.set(e,r={at:0,chars:0,epoch:-1,taken:0,written:0});let i=r,n=++i.taken,l=kr;i.at=_t(),gh(e).then(u=>{if(!(l!==kr||n<i.written||!u)&&(i.chars=u.length,!(u.length>sh||u===i.src&&i.epoch===Qi))){i.written=n,i.src=u,i.epoch=Qi;try{Z.addCustomEvent(eh,{id:t,src:u})}catch{}}},u=>xl(e,u))}catch(t){xl(e,t)}}function xl(e,t){t?.name==="SecurityError"&&Nl.add(e)}function gh(e){let t=dh(e.width,e.height);if(El&&(t.width!==e.width||t.height!==e.height)){let r=new El(t.width,t.height),i=r.getContext("2d");return i?(i.drawImage(e,0,0,t.width,t.height),r.convertToBlob({type:vl,quality:Sl}).then(Rl)):Promise.resolve(null)}return new Promise(r=>ch.call(e,r,vl,Sl)).then(Rl)}function Rl(e){return!e||!Cl?Promise.resolve(null):new Promise(t=>{let r=new Cl;r.onload=()=>t(typeof r.result=="string"?r.result:null),r.onerror=()=>t(null),r.readAsDataURL(e)})}function kl(e,t=[]){if(!e)return t;if(e.tagName==="canvas"&&typeof e.id=="number"&&t.push(e.id),e.childNodes)for(let r of e.childNodes)kl(r,t);return t}function yh(e){if(e.type===ah){Qi++,Tl(ph,0);return}if(e.type!==lh)return;let t=e.data;if(!(t?.source!==uh||!t.adds?.length))for(let r of t.adds)for(let i of kl(r.node)){let n=Z.mirror.getNode(i);n&&es.has(n)&&mh(n)}}var Il={name:"tabtape/canvas",eventProcessor:e=>{try{yh(e)}catch{}return e},options:{}};function bh(e,t){let r=function(){if(ut)try{ct(this.canvas)}catch{}return t.apply(this,arguments)};return Object.defineProperty(r,"name",{value:e}),Object.defineProperty(r,"length",{value:t.length}),r}function ft(){if(!(ut||!lt)){ut=!0;for(let e of oh)try{let t=Ji.get(e)??lt[e];if(typeof t!="function")continue;Ji.set(e,t);let r=Ki.get(e);r||Ki.set(e,r=bh(e,t)),lt[e]===t&&(lt[e]=r)}catch{}try{for(let e of Al(document))ct(e)}catch{}Xe=void 0}}function Al(e,t=[],r=0){if(t.push(...Array.from(e.getElementsByTagName("canvas"))),r>=5)return t;for(let i of Array.from(e.getElementsByTagName("iframe")))try{let n=i.contentDocument;n&&Al(n,t,r+1)}catch{}return t}function Dr(){if(ut){Lt(),ut=!1;for(let[e,t]of Ki)try{lt[e]===t&&(lt[e]=Ji.get(e))}catch{}}}function _r(){Oe||(Oe=!0,kr++,Xe=void 0)}function Lt(){Oe&&(Oe=!1,kr++,ke.clear(),Xe=void 0,Ue!==void 0&&Ml(Ue),Ue=void 0,Dt=1/0)}function Dl(e){let t;Zi=r=>(t??=e())?.(r),ft()}var wh=["log","info","warn","error","debug","trace"],Pt=()=>{},Ur=!1,Lr=!1,ts=!1,Pr=new Map,Fr=new Map;function Pl(e){Pt=e}function rs(e){Ur=e}function Fl(){if(Lr)return;Lr=!0;let e=console;for(let r of wh){let i=e[r];if(typeof i!="function")continue;let n=function(...l){return Ll(r,l),i.apply(this,l)};Pr.set(r,i),Fr.set(r,n),e[r]=n}let t=e.assert;if(typeof t=="function"){let r=function(...i){return i[0]||Ll("error",["Assertion failed:",...i.slice(1)]),t.apply(this,i)};Pr.set("assert",t),Fr.set("assert",r),e.assert=r}addEventListener("error",Bl,!0),addEventListener("unhandledrejection",$l)}function Ul(){if(!Lr)return;Lr=!1;let e=console;for(let[t,r]of Fr)e[t]===r&&(e[t]=Pr.get(t));Fr.clear(),Pr.clear(),removeEventListener("error",Bl,!0),removeEventListener("unhandledrejection",$l)}function Ll(e,t){if(!(!Ur||ts)){ts=!0;try{let r=t.map(l=>At(l)),i={level:e,source:"console",text:Yi(t,r),args:r},n=t.find(st);n?.stack?i.stack=j(String(n.stack),4e3):e==="trace"&&(i.stack=nl(new Error().stack)),Pt(i,Date.now())}catch{}finally{ts=!1}}}function Bl(e){if(Ur)try{if(e instanceof ErrorEvent){let r={level:"error",source:"uncaught",text:e.message||String(e.error),url:e.filename||void 0,line:e.lineno||void 0,col:e.colno||void 0};st(e.error)&&e.error.stack&&(r.stack=j(String(e.error.stack),4e3)),Pt(r,Date.now());return}let t=e.target;if(t&&t.nodeType===1){let r=rl(t);Pt({level:"error",source:"resource",text:`Failed to load <${t.tagName.toLowerCase()}>${r?` ${r}`:""}`,url:r||void 0},Date.now())}}catch{}}function $l(e){if(Ur)try{let t=e.reason,r=At(t),i={level:"error",source:"unhandledrejection",text:`Uncaught (in promise) ${Yi([t],[r])}`,args:[r]};st(t)&&t.stack&&(i.stack=j(String(t.stack),4e3)),Pt(i,Date.now())}catch{}}function dt(e){return e.includes(": ;")||e.includes(": !important")}function Sh(e){let t=[],r=0,i=0,n=0,l=u=>{let c=e.slice(r,u+1).trim();c&&t.push(c),r=u+1};for(let u=0;u<e.length;u++){let c=e[u];if(c==="\\")u++;else if(c==='"'||c==="'")for(u++;u<e.length&&e[u]!==c;u++)e[u]==="\\"&&u++;else if(c==="(")n++;else if(c===")")n=Math.max(0,n-1);else{if(n>0)continue;if(c==="/"&&e[u+1]==="*"){let a=e.indexOf("*/",u+2);u=a<0?e.length:a+1}else c==="{"?i++:c==="}"?(i=Math.max(0,i-1),i===0&&l(u)):c===";"&&i===0&&l(u)}}return l(e.length),t}function Wl(e,t){let r=[];for(let i of Sh(e)){if(!i.includes("var(")||/^@import/i.test(i))continue;let n=t(i);n!==null&&dt(n)&&r.push({written:n,source:i})}return r}var Ch=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm;function Eh(e,t){return e.replace(Ch,(r,i,n,l,u,c)=>{let a=n||u||c,p=i||l||"";if(!a)return r;if(/^(?:[a-z+]+:)?\/\//i.test(a)||/^www\./i.test(a)||/^data:[^,]*,/i.test(a))return`url(${p}${a}${p})`;if(a[0]==="/"){let s=(t.includes("//")?t.split("/").slice(0,3).join("/"):t.split("/")[0]).split("?")[0];return`url(${p}${s}${a}${p})`}let o=a.split("#")[0],h=a.slice(o.length),f=t.split("#")[0].split("/");f.pop();for(let s of o.split("/"))s===".."?f.pop():s!=="."&&f.push(s);return`url(${p}${f.join("/")}${h}${p})`})}var xh=e=>e.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;");function Br(e,t,r){let i=n=>r===null?n:Eh(n,r);for(let n of t){let l=i(n.written);for(let u of[l,xh(l)]){let c=e.indexOf(u);if(!(c<0)){e=e.slice(0,c)+i(n.source)+e.slice(c+u.length);break}}}return e}function Rh(e,t){let r=e.attributes?._cssText;if(e.type!==2||e.tagName!=="style"&&e.tagName!=="link"||typeof r!="string"||e.id===void 0||!dt(r))return;let i=t.elementCss(e.id,r);return i===r?void 0:{...e.attributes,_cssText:i}}function ns(e,t){let r=Rh(e,t),i=e.childNodes?.map(l=>ns(l,t)),n=i?.some((l,u)=>l!==e.childNodes[u]);return!r&&!n?e:{...e,...r&&{attributes:r},...n&&{childNodes:i}}}function Th(e,t,r){let i=t.adds,n=t.attributes,l=i?.map(c=>{let a=ns(c.node,r);return a===c.node?c:{...c,node:a}});l?.some((c,a)=>c!==i[a])&&(i=l);let u=n?.map(c=>{let a=c.attributes._cssText;if(typeof a!="string"||!dt(a))return c;let p=r.elementCss(c.id,a);return p===a?c:{...c,attributes:{...c.attributes,_cssText:p}}});return u?.some((c,a)=>c!==n[a])&&(n=u),i===t.adds&&n===t.attributes?e:{...e,data:{...t,adds:i,attributes:n}}}function Mh(e,t,r){let{id:i,styleIds:n,styles:l}=t;if(i===void 0||!n||!l)return e;let u=!1,c=l.map(a=>{let p=n.indexOf(a.styleId),o=a.rules.map(h=>{if(!dt(h.rule))return h;let f=r.adoptedRule(i,p,h.rule);return f===h.rule?h:{...h,rule:f}});return o.every((h,f)=>h===a.rules[f])?a:(u=!0,{...a,rules:o})});return u?{...e,data:{...t,styles:c}}:e}function zl(e,t){let r=e,i=r.data;if(!i)return e;if(r.type===2&&i.node){let n=ns(i.node,t);return n===i.node?e:{...r,data:{...i,node:n}}}return r.type!==3?e:i.source===0?Th(r,i,t):i.source===15?Mh(r,i,t):e}function ql(e,t,r){return{type:3,timestamp:r,data:{source:0,texts:[],attributes:[{id:e,attributes:{_cssText:t}}],removes:[],adds:[]}}}var ge=CSSStyleSheet.prototype,Vl=ge.insertRule,os=ge.replace,Ft=ge.replaceSync,Nh=CSSStyleSheet,Oh=window.fetch,ht=!1,is,Ut=new WeakMap,Hl=new Map,jl=new Map,$r=new Map,kh=500;function Gl(e,t){let r=Vl.apply(this,arguments);try{if(ht&&typeof e=="string"&&e.includes("var(")&&dt(this.cssRules[r].cssText)){let i=Ut.get(this);i?i.add(e):Ut.set(this,new Set([e]))}}catch{}return r}function Yl(e,t){ht&&(typeof t=="string"&&t.includes("var(")?Ut.set(e,new Set([t])):Ut.delete(e))}function Xl(e){return Yl(this,e),os.apply(this,arguments)}function Jl(e){Yl(this,e),Ft.apply(this,arguments)}function Bt(){ht||(ht=!0,ge.insertRule=Gl,os&&(ge.replace=Xl),Ft&&(ge.replaceSync=Jl))}function Wr(){ht&&(ht=!1,ge.insertRule===Gl&&(ge.insertRule=Vl),ge.replace===Xl&&(ge.replace=os),ge.replaceSync===Jl&&(ge.replaceSync=Ft))}var Ih=e=>{try{if(!Ft)return null;is??=new Nh,Ft.call(is,e);let t=is.cssRules;return t.length===1?t[0].cssText:null}catch{return null}};function as(e){let t=$r.get(e);return t||($r.size>=kh&&$r.clear(),t=Wl(e,Ih),$r.set(e,t)),t}var ss=e=>[...e&&Ut.get(e)||[]].flatMap(as);function Ah(e){let t=e.href,r=jl.get(t);if(!r){let i=e.crossOrigin==="use-credentials"?"include":"same-origin";r=Oh.call(window,t,{cache:"force-cache",credentials:i}).then(n=>n.ok?n.text():null).catch(()=>null).then(n=>(Hl.set(t,n),n)),jl.set(t,r)}return r}function Dh(e,t,r,i){if(!i)return t;let n=r.href,l=c=>Br(t,[...as(c??""),...ss(r.sheet)],n),u=Hl.get(n);return u!==void 0?l(u):(Ah(r).then(c=>{let a=l(c);a!==t&&i(ql(e,a,Date.now()))}),t)}function _h(e,t){return{elementCss(r,i){let n=e(r);if(!n)return i;if(n.nodeName==="LINK")return Dh(r,i,n,t);let l=n;return Br(i,[...as(l.textContent??""),...ss(l.sheet)],l.baseURI)},adoptedRule(r,i,n){let l=e(r),u=l?.adoptedStyleSheets??l?.shadowRoot?.adoptedStyleSheets;return Br(n,ss(u?.[i]),null)}}}function Kl(e,t){let r=_h(e,t);return{name:"tabtape/css-source",eventProcessor:i=>zl(i,r),options:{}}}var Lh="data-tabtape-sandbox";function Zl(e){return!!e&&("srcdoc"in e||"sandbox"in e)}function eu(e){let{srcdoc:t,sandbox:r,...i}=e;return r!==void 0&&(i[Lh]=r),i}function ls(e){let t=e.attributes,r=e.childNodes,i=!1;if(Zl(t)&&(t=eu(t),i=!0),r){let n=r.map(ls);n.some((l,u)=>l!==r[u])&&(r=n,i=!0)}return i?{...e,attributes:t,childNodes:r}:e}var Ph=2,Fh=3,Uh=0;function Bh(e){let t=e,r=t.data;if(!r)return e;if(t.type===Ph&&r.node){let i=ls(r.node);return i===r.node?e:{...t,data:{...r,node:i}}}if(t.type===Fh&&r.source===Uh){let i=!1,n=r.adds?.map(u=>{let c=ls(u.node);return c===u.node?u:(i=!0,{...u,node:c})}),l=r.attributes?.map(u=>Zl(u.attributes)?(i=!0,{...u,attributes:eu(u.attributes)}):u);return i?{...t,data:{...r,adds:n,attributes:l}}:e}return e}var tu={name:"tabtape/iframe-attrs",eventProcessor:Bh,options:{}};function us(e,t){return{recordAfter:"DOMContentLoaded",maskAllInputs:!1,maskInputOptions:{password:!0},inlineStylesheet:!0,collectFonts:!1,recordCanvas:!1,recordCrossOriginIframes:!0,sampling:{mousemove:50,scroll:150,media:800,input:"last"},slimDOMOptions:{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:!0,headMetaDescKeywords:!0},checkoutEveryNms:e.checkoutEveryNms>0?e.checkoutEveryNms:void 0,errorHandler:()=>!0,plugins:[tu,Kl(r=>Z.mirror.getNode(r),t),Il]}}function ru(e){return{...us(e),checkoutEveryNms:void 0,maskInputOptions:{password:!0,text:!0,tel:!0,number:!0},maskInputFn:(t,r)=>r?.type==="password"||r&&Ja(r)?"*".repeat(t.length):t}}function nu(e){let t,r=EventTarget.prototype.dispatchEvent,i=()=>r.call(document,new CustomEvent(he.hello));function n(){try{Z.takeFullSnapshot(!0)}catch{}}function l(){Lt();try{t?.()}catch{}t=void 0,Wr(),Dr()}Bt(),ft(),document.addEventListener(he.control,u=>{let c;try{c=It(String(u.detail))}catch{return}c.cmd==="start"?t||(Bt(),ft(),t=Z(ru(c.options))??(()=>{}),_r()):c.cmd==="checkout"?t&&n():l()}),addEventListener("pageshow",u=>{u.persisted&&t&&n()}),Object.defineProperty(window,e,{value:{hello:i,get active(){return t!==void 0},canvas:ct},configurable:!0}),i()}var $h=5e3,Wh=setInterval.bind(globalThis),zh=clearInterval.bind(globalThis),iu=()=>{},pt;function su(e){iu=e,pt===void 0&&lu()&&(zr(),pt=Wh(zr,$h))}function ou(){pt!==void 0&&zr()}function au(){pt!==void 0&&(zr(),zh(pt),pt=void 0)}function zr(){try{let e=lu();if(!e)return;iu(jh(e,qh(),Y(location.href)),Date.now())}catch{}}function lu(){try{let e=performance.memory;return e&&typeof e.usedJSHeapSize=="number"?e:void 0}catch{return}}function qh(){try{return document.getElementsByTagName("*").length}catch{return}}function jh(e,t,r){let i={kind:"memory",used:cs(e.usedJSHeapSize),total:cs(e.totalJSHeapSize),limit:cs(e.jsHeapSizeLimit),url:r};return t!==void 0&&(i.nodes=t),i}var cs=e=>Number.isFinite(e)&&e>0?Math.round(e):0;function uu(e){let t=0;for(let r=0;r<e.length;r++){let i=e.charCodeAt(r);i<128?t+=1:i<2048?t+=2:Hh(e,r,i)?(t+=4,r++):t+=3}return t}function Hh(e,t,r){return r>=55296&&r<=56319&&t+1<e.length&&(e.charCodeAt(t+1)&64512)===56320}var cu=Symbol("timeout");async function fs(e,t,r=0,i=15e3){let n={text:"",bytes:0,truncated:!1,timedOut:!1,countStopped:!1};if(!e)return n;let l=e.getReader(),u=new TextDecoder,c=performance.now()+i;try{for(;;){let a=c-performance.now(),p,o=await Promise.race([l.read(),new Promise(h=>{p=setTimeout(()=>h(cu),Math.max(0,a))})]);if(clearTimeout(p),o===cu){n.timedOut=!0;break}if(o.done){n.truncated||(n.text+=u.decode());break}if(n.bytes+=o.value.byteLength,n.truncated||(n.text+=u.decode(o.value,{stream:!0}),n.text.length>t&&(n.text=n.text.slice(0,t),n.truncated=!0)),n.truncated&&n.bytes>=r){n.countStopped=r>0;break}}}catch(a){if(!n.truncated)throw a;n.failed=a}finally{l.cancel().catch(()=>{})}return n}var hu=new Set([101,204,205,304]),hs=window.fetch,ye=XMLHttpRequest.prototype,pu=ye.open,mu=ye.send,gu=ye.setRequestHeader,qr=Navigator.prototype,gs=qr.sendBeacon,Gr=()=>{},be={captureBodies:!0,maxBodyChars:1e6},Ie=!1,jr=!1,yu=0,Wt=!1,Yh=0,Je,zt=new Map,Vr=new WeakMap,Yr=()=>`${Date.now().toString(36)}-${(++Yh).toString(36)}`;function ys(e,t){be=e,Gr=t}function Xr(e){Ie=e}function bu(e=!1){jr||(jr=!0,yu=performance.now(),Wt=e,window.fetch=vu,ye.open=Su,ye.send=Eu,ye.setRequestHeader=Cu,typeof gs=="function"&&(qr.sendBeacon=xu),Zh())}function bs(){jr&&(jr=!1,window.fetch===vu&&(window.fetch=hs),ye.open===Su&&(ye.open=pu),ye.send===Eu&&(ye.send=mu),ye.setRequestHeader===Cu&&(ye.setRequestHeader=gu),qr.sendBeacon===xu&&(qr.sendBeacon=gs),Je?.disconnect(),Je=void 0,zt.clear())}function wu(){let e=Ie;Ie=!0;try{let t=performance.getEntriesByType("navigation")[0];t&&(Wt=!1,Hr(t,!0))}catch{}finally{Ie=e}}function ws(){try{for(let t of Je?.takeRecords()??[])Hr(t);let e=performance.getEntriesByType("navigation")[0];e&&!Wt&&Hr(e,!0)}catch{}for(let e of[...zt.values()])e.data.pending=!0,Jr(e)}function Jr(e){e.done||(e.done=!0,zt.delete(e.data.id),e.data.duration=K(performance.now()-e.t0),Gr(e.data,e.ts))}function Xh(e){let t={data:e,ts:Date.now(),t0:performance.now(),done:!1};return zt.set(e.id,t),t}function vu(e,t){let r=arguments;if(!Ie)return hs.apply(this,r);let i;try{i=Jh(e,t)}catch{}let n=hs.apply(this,r);if(i){let l=i;n.then(u=>Kh(l,u),u=>{l.data.error=ms(u),Jr(l)})}return n}function Jh(e,t){let r=e instanceof Request?e:void 0,i=r?r.url:e instanceof URL?e.href:String(e),n={id:Yr(),kind:"fetch",method:String(t?.method??r?.method??"GET").toUpperCase(),url:Y(Pe(i))},l=ep(r?.headers,t?.headers);l&&(n.reqHeaders=l);let u=Xh(n);if(be.captureBodies){let c=l?.["content-type"];t?.body!=null?$t(n,vs(t.body,c)):r?.body&&!r.bodyUsed&&(u.reqBody=fs(r.clone().body,be.maxBodyChars).then(a=>$t(n,{text:Nr(a.text,c),truncated:a.truncated}),()=>$t(n,{note:"unreadable"})))}return u}async function Kh(e,t){let r=e.data;try{r.ttfb=K(performance.now()-e.t0),r.status=t.status,t.statusText&&(r.statusText=t.statusText),r.resHeaders=ps(t.headers);let i=t.headers.get("content-type")??"";if(i&&(r.mime=i),t.type==="opaque"||t.type==="opaqueredirect")r.resBodyNote="opaque response (no-cors)";else if(be.captureBodies&&r.method!=="HEAD"&&!hu.has(t.status))if(/event-stream/i.test(i))r.resBodyNote="event stream, not captured";else if(!i||Tr.test(i)){let n=await fs(t.clone().body,be.maxBodyChars,67108864);r.resBody=n.text,r.resSize=n.bytes,n.truncated&&(r.resBodyTruncated=!0),n.timedOut?r.resBodyNote=`body still streaming after ${15e3/1e3}s, captured partially`:n.countStopped?r.resBodyNote=`over ${67108864/(1024*1024)} MB, size not measured further`:n.failed!==void 0&&(r.resBodyNote=`body broke off: ${ms(n.failed)}`)}else{let n=t.headers.get("content-length");r.resBodyNote=`binary (${i}${n?`, ${n} bytes`:""})`}await e.reqBody}catch(i){r.resBodyNote=`unreadable: ${ms(i)}`}Jr(e)}function Su(e,t){if(Ie)try{Vr.set(this,{data:{id:Yr(),kind:"xhr",method:String(e).toUpperCase(),url:Y(Pe(String(t)))},ts:0,t0:0,done:!1})}catch{}else Vr.delete(this);return pu.apply(this,arguments)}function Cu(e,t){let r=Vr.get(this);return r&&((r.data.reqHeaders??={})[String(e).toLowerCase()]=String(t)),gu.call(this,e,t)}function Eu(e){let t=Vr.get(this);if(t&&Ie&&t.t0===0)try{t.ts=Date.now(),t.t0=performance.now(),zt.set(t.data.id,t),be.captureBodies&&e!=null&&$t(t.data,vs(e,t.data.reqHeaders?.["content-type"]));let r=this;r.addEventListener("readystatechange",()=>{r.readyState===2&&t.data.ttfb===void 0&&(t.data.ttfb=K(performance.now()-t.t0))}),r.addEventListener("error",()=>t.data.error??="network error"),r.addEventListener("abort",()=>t.data.error??="aborted"),r.addEventListener("timeout",()=>t.data.error??="timeout"),r.addEventListener("loadend",()=>{try{Qh(r,t.data)}catch{}Jr(t)})}catch{}return mu.apply(this,arguments)}function Qh(e,t){t.status=e.status,e.statusText&&(t.statusText=e.statusText),t.resHeaders=tp(e.getAllResponseHeaders());let r=e.getResponseHeader("content-type")??"";if(r&&(t.mime=r),!(!be.captureBodies||t.error||hu.has(e.status)))switch(e.responseType){case"":case"text":{if(r&&!Tr.test(r)){t.resBodyNote=`binary (${r})`;return}du(t,e.responseText);return}case"json":du(t,Ee(e.response)??"null");return;case"arraybuffer":t.resBodyNote=`ArrayBuffer, ${e.response?.byteLength??0} bytes`;return;case"blob":t.resBodyNote=`Blob, ${e.response?.size??0} bytes`;return;default:t.resBodyNote=e.responseType}}function du(e,t){e.resSize=uu(t),t.length>be.maxBodyChars?(e.resBody=t.slice(0,be.maxBodyChars),e.resBodyTruncated=!0):e.resBody=t}function xu(e,t){let r=gs.apply(this,arguments);if(Ie)try{let i={id:Yr(),kind:"beacon",method:"POST",url:Y(Pe(String(e)))};r?i.statusText="queued":i.error="rejected by the browser",be.captureBodies&&t!=null&&$t(i,vs(t)),Gr(i,Date.now())}catch{}return r}function Zh(){try{Je=new PerformanceObserver(e=>{for(let t of e.getEntries())Hr(t)}),Je.observe({type:"resource",buffered:!0}),Je.observe({type:"navigation",buffered:!0})}catch{Je=void 0}}function Hr(e,t=!1){if(!Ie)return;let r=e;if(r.entryType==="resource"){if(r.initiatorType==="fetch"||r.initiatorType==="xmlhttprequest"||r.initiatorType==="beacon"||r.startTime<yu-50||r.name.startsWith("chrome-extension:")||r.name.startsWith(location.origin+Rr)||r.initiatorType==="other"&&/\/favicon\.ico($|\?)/.test(r.name))return}else if(r.entryType==="navigation"){if(Wt||r.duration===0&&!t)return;Wt=!0}else return;let i={id:Yr(),kind:r.entryType==="navigation"?"navigation":"resource",method:"GET",url:Y(r.name),duration:K(r.duration)};r.entryType==="navigation"?(i.navType=r.type,r.duration===0&&(i.pending=!0)):i.initiator=r.initiatorType,r.responseStatus&&(i.status=r.responseStatus),r.responseStart>0&&(i.ttfb=K(r.responseStart-r.startTime)),r.transferSize&&(i.transferSize=r.transferSize),r.decodedBodySize&&(i.resSize=r.decodedBodySize),r.contentType&&(i.mime=r.contentType),Gr(i,Math.round(performance.timeOrigin+r.startTime))}function $t(e,t){t.text!==void 0&&(e.reqBody=t.text),t.note&&(e.reqBodyNote=t.note),t.truncated&&(e.reqBodyTruncated=!0)}function ds(e){return e.length>be.maxBodyChars?{text:e.slice(0,be.maxBodyChars),truncated:!0}:{text:e}}function vs(e,t=""){try{if(typeof e=="string")return ds(Nr(e,t));if(e instanceof URLSearchParams)return ds(Mr(e.toString()));if(e instanceof FormData){let r={};return e.forEach((i,n)=>{let l=typeof i=="string"?Le(n)?He:j(i,1e4):`[File ${i.name}, ${i.size} bytes${i.type?`, ${i.type}`:""}]`,u=r[n];r[n]=u===void 0?l:Array.isArray(u)?[...u,l]:[u,l]}),{text:Ee(r),note:"FormData"}}if(e instanceof Blob)return{note:`Blob, ${e.size} bytes${e.type?`, ${e.type}`:""}`};if(e instanceof ArrayBuffer||ArrayBuffer.isView(e)){let r=e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength);return Tr.test(t)?ds(Nr(new TextDecoder().decode(r),t)):{note:`binary, ${r.byteLength} bytes`}}return e instanceof ReadableStream?{note:"stream"}:e instanceof Document?{note:"Document"}:{note:typeof e}}catch{return{note:"unreadable"}}}function ps(e){if(!e)return;let t={};try{if(e instanceof Headers)e.forEach((r,i)=>t[i]=r);else if(Array.isArray(e))for(let[r,i]of e)t[String(r).toLowerCase()]=String(i);else for(let[r,i]of Object.entries(e))t[r.toLowerCase()]=String(i)}catch{}return Object.keys(t).length?t:void 0}function ep(e,t){let r=ps(e),i=ps(t);return r||i?{...r,...i}:void 0}function tp(e){let t={};for(let r of e.trim().split(/[\r\n]+/)){let i=r.indexOf(":");i>0&&(t[r.slice(0,i).trim().toLowerCase()]=r.slice(i+1).trim())}return Object.keys(t).length?t:void 0}function ms(e){return e instanceof Error?`${e.name}: ${e.message}`:String(e)}var Qr=class{t;o=0;i=[];u(t){if(t.hadRecentInput)return;let r=this.i[0],i=this.i.at(-1);this.o&&r&&i&&t.startTime-i.startTime<1e3&&t.startTime-r.startTime<5e3?(this.o+=t.value,this.i.push(t)):(this.o=t.value,this.i=[t]),this.t?.(t)}},bt=()=>{let e=performance.getEntriesByType("navigation")[0];if(e&&e.responseStart>0&&e.responseStart<performance.now())return e},Zr=e=>{if(document.readyState==="loading")return"loading";let t=bt();if(t){if(e<t.domInteractive)return"loading";if(t.domContentLoadedEventStart===0||e<t.domContentLoadedEventStart)return"dom-interactive";if(t.domComplete===0||e<t.domComplete)return"dom-content-loaded"}return"complete"},np=e=>{let t=e.nodeName;return e.nodeType===1?t.toLowerCase():t.toUpperCase().replace(/^#/,"")},Ts=e=>{let t="";try{for(;e?.nodeType!==9;){let r=e,i=r.id?"#"+r.id:[np(r),...Array.from(r.classList).sort()].join(".");if(t.length+i.length>99)return t||i;if(t=t?i+">"+t:i,r.id)break;e=r.parentNode}}catch{}return t},Ru=new WeakMap;function gt(e,t){let r=Ru.get(t);return r||(r=new WeakMap,Ru.set(t,r)),r.get(e)||r.set(e,new t),r.get(e)}var Lu=-1,Pu=()=>Lu,wt=e=>{addEventListener("pageshow",t=>{t.persisted&&(Lu=t.timeStamp,e(t))},!0)},Re=(e,t,r,i)=>{let n,l;return u=>{t.value>=0&&(u||i)&&(l=t.value-(n??0),(l||n===void 0)&&(n=t.value,t.delta=l,t.rating=((c,a)=>c>a[1]?"poor":c>a[0]?"needs-improvement":"good")(t.value,r),e(t)))}},Ms=e=>{requestAnimationFrame(()=>requestAnimationFrame(e))},qt=()=>bt()?.activationStart??0,Te=(e,t=-1)=>{let r=bt(),i="navigate";return Pu()>=0?i="back-forward-cache":r&&(document.prerendering||qt()>0?i="prerender":document.wasDiscarded?i="restore":r.type&&(i=r.type.replace(/_/g,"-"))),{name:e,value:t,rating:"good",delta:0,entries:[],id:`v5-${Date.now()}-${Math.floor(8999999999999*Math.random())+1e12}`,navigationType:i}},yt=(e,t,r={})=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){let i=new PerformanceObserver(n=>{queueMicrotask(()=>{t(n.getEntries())})});return i.observe({type:e,buffered:!0,...r}),i}}catch{}},Ns=e=>{let t=!1;return()=>{t||(e(),t=!0)}},mt=-1,Fu=new Set,Tu=()=>document.visibilityState!=="hidden"||document.prerendering?1/0:0,Cs=e=>{if(document.visibilityState==="hidden"){if(e.type==="visibilitychange")for(let t of Fu)t();isFinite(mt)||(mt=e.type==="visibilitychange"?e.timeStamp:0,removeEventListener("prerenderingchange",Cs,!0))}},rn=()=>{if(mt<0){let e=qt();mt=(document.prerendering?void 0:globalThis.performance.getEntriesByType("visibility-state").find(r=>r.name==="hidden"&&r.startTime>=e)?.startTime)??Tu(),addEventListener("visibilitychange",Cs,!0),addEventListener("prerenderingchange",Cs,!0),wt(()=>{setTimeout(()=>{mt=Tu()})})}return{get firstHiddenTime(){return mt},onHidden(e){Fu.add(e)}}},nn=e=>{document.prerendering?addEventListener("prerenderingchange",e,!0):e()},Mu=[1800,3e3],Uu=(e,t={})=>{nn(()=>{let r=rn(),i,n=Te("FCP"),l=yt("paint",u=>{for(let c of u)c.name==="first-contentful-paint"&&(l.disconnect(),c.startTime<r.firstHiddenTime&&(n.value=Math.max(c.startTime-qt(),0),n.entries.push(c),i(!0)))});l&&(i=Re(e,n,Mu,t.reportAllChanges),wt(u=>{n=Te("FCP"),i=Re(e,n,Mu,t.reportAllChanges),Ms(()=>{n.value=performance.now()-u.timeStamp,i(!0)})}))})},Nu=[.1,.25],Ou=e=>e.find(t=>t.node?.nodeType===1)||e[0],Bu=(e,t={})=>{let r=gt(t=Object.assign({},t),Qr),i=new WeakMap;r.t=n=>{if(n?.sources?.length){let l=Ou(n.sources),u=l?.node;if(u){let c=t.generateTarget?.(u)??Ts(u);i.set(l,c)}}},((n,l={})=>{let u=rn();Uu(Ns(()=>{let c,a=Te("CLS",0),p=gt(l,Qr),o=f=>{for(let s of f)p.u(s);p.o>a.value&&(a.value=p.o,a.entries=p.i,c())},h=yt("layout-shift",o);h&&(c=Re(n,a,Nu,l.reportAllChanges),u.onHidden(()=>{o(h.takeRecords()),c(!0)}),wt(()=>{p.o=0,a=Te("CLS",0),c=Re(n,a,Nu,l.reportAllChanges),Ms(c)}),setTimeout(c))}))})(n=>{e((l=>{let u={};if(l.entries.length){let c=l.entries.reduce((a,p)=>a.value>p.value?a:p);if(c?.sources?.length){let a=Ou(c.sources);a&&(u={largestShiftTarget:i.get(a),largestShiftTime:c.startTime,largestShiftValue:c.value,largestShiftSource:a,largestShiftEntry:c,loadState:Zr(c.startTime)})}}return Object.assign(l,{attribution:u})})(n))},t)},$u=(e,t={})=>{Uu(r=>{e((i=>{let n={timeToFirstByte:0,firstByteToFCP:i.value,loadState:Zr(Pu())};if(i.entries.length){let l=bt(),u=i.entries.at(-1);if(l){let c=l.activationStart||0,a=Math.max(0,l.responseStart-c);n={timeToFirstByte:a,firstByteToFCP:i.value-a,loadState:Zr(i.entries[0].startTime),navigationEntry:l,fcpEntry:u}}}return Object.assign(i,{attribution:n})})(r))},t)},Wu=0,Ss=1/0,Kr=0,ip=e=>{for(let t of e)t.interactionId&&(Ss=Math.min(Ss,t.interactionId),Kr=Math.max(Kr,t.interactionId),Wu=Kr?(Kr-Ss)/7+1:0)},Es,ku=()=>Es?Wu:performance.interactionCount??0,sp=()=>{"interactionCount"in performance||Es||(Es=yt("event",ip,{durationThreshold:0}))},Iu=0,en=class{l=[];h=new Map;m;p;v(){Iu=ku(),this.l.length=0,this.h.clear()}M(){let t=Math.min(this.l.length-1,Math.floor((ku()-Iu)/50));return this.l[t]}u(t){if(this.m?.(t),!t.interactionId&&t.entryType!=="first-input")return;let r=this.l.at(-1),i=this.h.get(t.interactionId);if(i||this.l.length<10||t.duration>r.T){if(i?t.duration>i.T?(i.entries=[t],i.T=t.duration):t.duration===i.T&&t.startTime===i.entries[0].startTime&&i.entries.push(t):(i={id:t.interactionId,entries:[t],T:t.duration},this.h.set(i.id,i),this.l.push(i)),this.l.sort((n,l)=>l.T-n.T),this.l.length>10){let n=this.l.splice(10);for(let l of n)this.h.delete(l.id)}this.p?.(i)}}},xs=e=>{let t=globalThis.requestIdleCallback||setTimeout,r=globalThis.cancelIdleCallback||clearTimeout;if(document.visibilityState==="hidden")e();else{let i=Ns(e),n=-1,l=()=>{r(n),i()};addEventListener("visibilitychange",l,{once:!0,capture:!0}),n=t(()=>{removeEventListener("visibilitychange",l,{capture:!0}),i()})}},Au=[200,500],zu=(e,t={})=>{let r=gt(t=Object.assign({},t),en),i=[],n=[],l=0,u=new WeakMap,c=new WeakMap,a=!1,p=()=>{a||(xs(o),a=!0)},o=()=>{let s=new Set(r.l.map(g=>u.get(g.entries[0]))),m=n.length-10;n=n.filter((g,C)=>C>=m||s.has(g));let d=new Set;for(let g of n){let C=h(g.startTime,g.processingEnd);for(let b of C)d.add(b)}i=i.filter(g=>g.startTime>l||d.has(g)),a=!1};r.m=s=>{let m=s.startTime+s.duration,d;l=Math.max(l,s.processingEnd);for(let g=n.length-1;g>=0;g--){let C=n[g];if(Math.abs(m-C.renderTime)<=8){d=C,d.startTime=Math.min(s.startTime,d.startTime),d.processingStart=Math.min(s.processingStart,d.processingStart),d.processingEnd=Math.max(s.processingEnd,d.processingEnd),t.includeProcessedEventEntries!==!1&&d.entries.push(s);break}}d||(d={startTime:s.startTime,processingStart:s.processingStart,processingEnd:s.processingEnd,renderTime:m,entries:t.includeProcessedEventEntries!==!1?[s]:[]},n.push(d)),(s.interactionId||s.entryType==="first-input")&&u.set(s,d),p()},r.p=s=>{if(!c.get(s)){let m=s.entries.find(d=>d.target)?.target;if(m){let d=t.generateTarget?.(m)??Ts(m);c.set(s,d)}else{let d=s.entries.find(g=>g.targetSelector)?.targetSelector;d&&c.set(s,d)}}};let h=(s,m)=>{let d=[];for(let g of i)if(!(g.startTime+g.duration<s)){if(g.startTime>m)break;d.push(g)}return d},f=s=>{let m=s.entries[0],d=u.get(m),g=m.processingStart,C=Math.max(m.startTime+m.duration,g),b=Math.min(d.processingEnd,C),v=d.entries.sort((S,x)=>S.processingStart-x.processingStart),E=h(m.startTime,b),w=r.h.get(m.interactionId),y={interactionTarget:c.get(w),interactionType:m.name.startsWith("key")?"keyboard":"pointer",interactionTime:m.startTime,nextPaintTime:C,processedEventEntries:v,longAnimationFrameEntries:E,inputDelay:g-m.startTime,processingDuration:b-g,presentationDelay:C-b,loadState:Zr(m.startTime),longestScript:void 0,totalScriptDuration:void 0,totalStyleAndLayoutDuration:void 0,totalPaintDuration:void 0,totalUnattributedDuration:void 0};return(S=>{if(!S.longAnimationFrameEntries?.length)return;let x=S.interactionTime,M=S.inputDelay,T=S.processingDuration,I,k,R=0,re=0,ne=0,U=0;for(let Q of S.longAnimationFrameEntries){re=re+Q.startTime+Q.duration-Q.styleAndLayoutStart;for(let $ of Q.scripts){let B=$.startTime+$.duration;if(B<x)continue;let ue=B-Math.max(x,$.startTime),N=$.duration?ue/$.duration*$.forcedStyleAndLayoutDuration:0;R+=ue-N,re+=N,ue>U&&(k=$.startTime<x+M?"input-delay":$.startTime>=x+M+T?"presentation-delay":"processing-duration",I=$,U=ue)}}let P=S.longAnimationFrameEntries.at(-1),V=P?P.startTime+P.duration:0;V>=x+M+T&&(ne=S.nextPaintTime-V),I&&k&&(S.longestScript={entry:I,subpart:k,intersectingDuration:U}),S.totalScriptDuration=R,S.totalStyleAndLayoutDuration=re,S.totalPaintDuration=ne,S.totalUnattributedDuration=S.nextPaintTime-x-R-re-ne})(y),Object.assign(s,{attribution:y})};yt("long-animation-frame",s=>{i=i.concat(s),p()}),((s,m={})=>{if(!globalThis.PerformanceEventTiming||!("interactionId"in PerformanceEventTiming.prototype))return;let d=rn();nn(()=>{sp();let g,C=Te("INP"),b=gt(m,en),v=w=>{xs(()=>{for(let S of w)b.u(S);let y=b.M();y&&y.T!==C.value&&(C.value=y.T,C.entries=y.entries,g())})},E=yt("event",v,{durationThreshold:m.durationThreshold??40});g=Re(s,C,Au,m.reportAllChanges),E&&(E.observe({type:"first-input",buffered:!0}),d.onHidden(()=>{v(E.takeRecords()),g(!0)}),wt(()=>{b.v(),C=Te("INP"),g=Re(s,C,Au,m.reportAllChanges)}))})})(s=>{e(f(s))},t)},tn=class{m;u(t){this.m?.(t)}},Du=[2500,4e3],qu=(e,t={})=>{let r=gt(t=Object.assign({},t),tn),i=new WeakMap;r.m=n=>{let l=n.element;if(l){let u=t.generateTarget?.(l)??Ts(l);i.set(n,u)}else n.id&&i.set(n,`#${n.id}`)},((n,l={})=>{nn(()=>{let u=rn(),c,a=Te("LCP"),p=gt(l,tn),o=f=>{l.reportAllChanges||(f=f.slice(-1));for(let s of f)p.u(s),s.startTime<u.firstHiddenTime&&(a.value=Math.max(s.startTime-qt(),0),a.entries=[s],c())},h=yt("largest-contentful-paint",o);if(h){c=Re(n,a,Du,l.reportAllChanges);let f=Ns(()=>{o(h.takeRecords()),h.disconnect(),c(!0)}),s=m=>{m.isTrusted&&(xs(f),removeEventListener(m.type,s,{capture:!0}))};for(let m of["keydown","click","visibilitychange"])addEventListener(m,s,{capture:!0});wt(m=>{a=Te("LCP"),c=Re(n,a,Du,l.reportAllChanges),Ms(()=>{a.value=performance.now()-m.timeStamp,c(!0)})})}})})(n=>{e((l=>{let u={timeToFirstByte:0,resourceLoadDelay:0,resourceLoadDuration:0,elementRenderDelay:l.value};if(l.entries.length){let c=l.entries.at(-1),a=c.url&&performance.getEntriesByType("resource").find(o=>o.name===c.url);u.target=i.get(c),u.lcpEntry=c,c.url&&(u.url=c.url),a&&(u.lcpResourceEntry=a);let p=bt();if(p){let o=p.activationStart||0,h=Math.max(0,p.responseStart-o),f=Math.max(h,a?(a.requestStart||a.startTime)-o:0),s=Math.min(l.value,Math.max(f,a?a.responseEnd-o:0));u={...u,timeToFirstByte:h,resourceLoadDelay:f-h,resourceLoadDuration:s-f,elementRenderDelay:l.value-s,navigationEntry:p}}}return Object.assign(l,{attribution:u})})(n))},t)},_u=[800,1800],Rs=e=>{document.prerendering?nn(()=>Rs(e)):document.readyState!=="complete"?addEventListener("load",()=>Rs(e),!0):setTimeout(e)},ju=(e,t={})=>{((r,i={})=>{let n=Te("TTFB"),l=Re(r,n,_u,i.reportAllChanges);Rs(()=>{let u=bt();u&&(n.value=Math.max(u.responseStart-qt(),0),n.entries=[u],l(!0),wt(()=>{n=Te("TTFB",0),l=Re(r,n,_u,i.reportAllChanges),l(!0)}))})})(r=>{e((i=>{let n={waitingDuration:0,cacheDuration:0,dnsDuration:0,connectionDuration:0,requestDuration:0};if(i.entries.length){let l=i.entries[0],u=l.activationStart||0,c=Math.max((l.workerStart||l.fetchStart)-u,0),a=Math.max(l.domainLookupStart-u,0),p=Math.max(l.connectStart-u,0),o=Math.max(l.connectEnd-u,0);n={waitingDuration:c,cacheDuration:a-c,dnsDuration:p-a,connectionDuration:o-p,requestDuration:i.value-o,navigationEntry:l}}return Object.assign(i,{attribution:n})})(r))},t)};var Vu="long-animation-frame",op=5,sn=()=>{},Ke=!1,Hu=!1,Vt,Yu=0,Os=new Map;function Xu(e,t){if(sn=e,Ke)return;Ke=!0;let r=Date.now();for(let i of Os.values())Me(()=>sn(i,r));Hu||(Hu=!0,ap()),lp(t?0:performance.now())}function ks(){let e=Vt;Ke&&e&&Me(()=>Ku(e.takeRecords()))}function Ju(){Ke&&(ks(),Ke=!1,Vt?.disconnect(),Vt=void 0)}function ap(){addEventListener("pageshow",t=>t.persisted&&Os.clear(),!0);let e={reportAllChanges:!0};Me(()=>qu(jt,e)),Me(()=>Bu(jt,e)),Me(()=>zu(jt,e)),Me(()=>$u(jt,e)),Me(()=>ju(jt,e))}function jt(e){Me(()=>{let t=up(e,{timeOrigin:performance.timeOrigin,now:performance.now(),url:Y(location.href)});Os.set(t.name,t),Ke&&sn(t,Date.now())})}function lp(e){Yu=e,!Vt&&Me(()=>{if(!PerformanceObserver.supportedEntryTypes?.includes(Vu))return;let t=new PerformanceObserver(r=>Me(()=>Ku(r.getEntries())));t.observe({type:Vu,buffered:!0}),Vt=t})}function Ku(e){if(!Ke)return;let t=Y(location.href);for(let r of e){let i=r;i.startTime+i.duration<Yu||sn(cp(i,t),Math.round(performance.timeOrigin+i.startTime))}}function up(e,t){let r=c=>Math.round(t.timeOrigin+c),i=()=>r(e.entries.at(-1)?.startTime??t.now),n={};switch(e.name){case"LCP":{let c=e.attribution;n.target=c.target,c.url&&(n.url=Y(c.url)),n.timeToFirstByte=K(c.timeToFirstByte),n.resourceLoadDelay=K(c.resourceLoadDelay),n.resourceLoadDuration=K(c.resourceLoadDuration),n.elementRenderDelay=K(c.elementRenderDelay),n.time=i();break}case"CLS":{let c=e.attribution;n.target=c.largestShiftTarget,c.largestShiftValue!==void 0&&(n.largestShiftValue=Gu(c.largestShiftValue)),c.largestShiftTime!==void 0&&(n.time=r(c.largestShiftTime)),n.loadState=c.loadState;break}case"INP":{let c=e.attribution;n.target=c.interactionTarget||void 0,n.interactionType=c.interactionType,n.inputDelay=K(c.inputDelay),n.processingDuration=K(c.processingDuration),n.presentationDelay=K(c.presentationDelay),n.loadState=c.loadState,n.time=r(c.interactionTime);break}case"FCP":{let c=e.attribution;n.timeToFirstByte=K(c.timeToFirstByte),n.firstByteToFCP=K(c.firstByteToFCP),n.loadState=c.loadState,n.time=i();break}case"TTFB":{let c=e.attribution;n.waitingDuration=K(c.waitingDuration),n.cacheDuration=K(c.cacheDuration),n.dnsDuration=K(c.dnsDuration),n.connectionDuration=K(c.connectionDuration),n.requestDuration=K(c.requestDuration);break}}let l={kind:"vital",name:e.name,value:e.name==="CLS"?Gu(e.value):K(e.value),rating:e.rating,id:e.id,navigationType:e.navigationType,url:t.url},u=fp(n);return Object.keys(u).length&&(l.attribution=u),l}function cp(e,t){let r=[...e.scripts??[]].sort((i,n)=>n.duration-i.duration).slice(0,op).map(i=>{let n={duration:Math.round(i.duration)};return i.sourceURL&&(n.url=j(Y(i.sourceURL),2e3)),i.sourceFunctionName&&(n.fn=j(i.sourceFunctionName,200)),i.invoker&&(n.invoker=j(i.invoker,500)),i.invokerType&&(n.invokerType=i.invokerType),n});return{kind:"loaf",duration:Math.round(e.duration),blockingDuration:Math.round(e.blockingDuration),scripts:r,url:t}}var Gu=e=>Math.round(e*1e4)/1e4;function fp(e){let t={};for(let[r,i]of Object.entries(e))i!==void 0&&(t[r]=i);return t}function Me(e){try{e()}catch{}}var ic="tabtape:track",sc="tabtape:identify",oc="tabtape:state",Is=100,on=200,ac=8*1024,Qu={calls:100,perMs:1e3},hp=[Gi,{depth:4,items:50,string:500},{depth:4,items:20,string:200},{depth:3,items:10,string:100},{depth:2,items:10,string:50}],an="\u2026";function pp(e){if(typeof e!="string")return;let t=e.trim();return t&&t.length<=Is*2&&[...t].length<=Is?t:void 0}function mp(e){let t;if(typeof e=="string")t=e.trim();else if(typeof e=="number"&&Number.isFinite(e)||typeof e=="bigint")t=String(e);else return;if(!t)return;if(t.length<=on)return t;let r=/[\uD800-\uDBFF]/.test(t[on-1])?on-1:on;return t.slice(0,r)}function gp(e){let t=0;for(let r=0;r<e.length;r++){let i=e.charCodeAt(r);i<128?t+=1:i<2048?t+=2:i>=55296&&i<=56319&&(e.charCodeAt(r+1)&64512)===56320?(t+=4,r++):t+=3}return t}function Ht(e,t=!1){if(Array.isArray(e)){for(let r=0;r<e.length;r++)e[r]=Ht(e[r],t);return e}if(e&&typeof e=="object"){let r=e;for(let i of Object.keys(r)){let n=r[i];i==="[[Map]]"&&Array.isArray(n)?r[i]=n.map(l=>Array.isArray(l)&&l.length===2&&typeof l[0]=="string"?[l[0],Ht(l[1],t||Le(l[0]))]:Ht(l,t)):r[i]=Ht(n,t||Le(i))}return r}return t&&(typeof e=="string"||typeof e=="number")?He:e}function Zu(e){if(e==null)return{};let t={};for(let[r,i]of hp.entries())if(t=yp(Ht(At(e,i))),lc(t)<=ac)return ec(t,r>0);return ec(bp(t),!0)}function yp(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)?e:{value:e}}function ec(e,t){let r={};return Object.keys(e).length&&(r.props=e),t&&(r.truncated=!0),r}function lc(e){return gp(Ee(e)??"")}function bp(e){let t=e[an],r=typeof t=="string"&&Number.parseInt(t,10)||0,i=Object.keys(e).filter(c=>c!==an),n={},l=0;for(let c of i){n[c]=e[c];let a=i.length-l-1+r;if(lc(a?{...n,[an]:`${a} more keys`}:n)>ac){delete n[c];break}l++}let u=i.length-l+r;return u&&(n[an]=`${u} more keys`),n}var As=class{calls;perMs;clock;times=[];oldest=0;constructor(t,r,i){this.calls=t,this.perMs=r,this.clock=i}take(){let t=this.clock();return this.times.length<this.calls?(this.times.push(t),!0):t-this.times[this.oldest]<this.perMs?!1:(this.times[this.oldest]=t,this.oldest=(this.oldest+1)%this.calls,!0)}};function wp(e){let t=e.now??Date.now,r=e.url??(()=>Y(location.href)),i=e.warn??(s=>console.warn(s)),n=new As(Qu.calls,Qu.perMs,e.clock??(()=>performance.now())),l=new Set,u=!1,c=0,a=!1;function p(s){if(!(!u||a)){a=!0;try{s()}catch{}finally{a=!1}}}function o(s,m){if(!l.has(s)){l.add(s);try{i(m())}catch{}}}function h(){return n.take()?!0:(c++,!1)}function f(s){c&&(s.dropped=c,c=0),e.emit(s,t())}return{get active(){return u},setActive(s){s&&!u&&(c=0),u=s},track(s,m){p(()=>{let d=pp(s);if(d===void 0){o("track",()=>`tabtape.track: the event name must be a string of 1\u2013${Is} characters, got ${tc(s)}. The event was not recorded.`);return}if(!h())return;let g=Zu(m),C={name:"custom",event:d,url:r()};g.props&&(C.props=g.props),g.truncated&&(C.propsTruncated=!0),f(C)})},identify(s,m){p(()=>{let d=mp(s);if(d===void 0){o("identify",()=>`tabtape.identify: the user id must be a non-empty string or a number, got ${tc(s)}. The call was ignored.`);return}if(!h())return;let g=Zu(m),C={name:"identify",userId:d,url:r()};g.props&&(C.traits=g.props),g.truncated&&(C.propsTruncated=!0),f(C)})}}}function tc(e){return typeof e=="string"?e.trim()?`${[...e.trim()].length} characters`:"an empty string":e===null?"null":typeof e}var rc=()=>{},Be,ln,un=!1,nc=!1;function uc(e){rc=e,Be??=wp({emit:(t,r)=>rc(t,r)}),Be.setActive(!0),vp(Be),un||(un=!0,addEventListener(ic,fc),addEventListener(sc,dc),addEventListener(oc,hc))}function cc(){Be?.setActive(!1),un&&(un=!1,removeEventListener(ic,fc),removeEventListener(sc,dc),removeEventListener(oc,hc))}function vp(e){try{if(ln&&window.tabtape===ln||"tabtape"in window)return;ln??=Object.freeze({track(t,r){e.track(t,r)},identify(t,r){e.identify(t,r)},state(t,r,i){pc(e,t,r,i)},get isRecording(){return e.active}}),Object.defineProperty(window,"tabtape",{value:ln,configurable:!0,writable:!0,enumerable:!1})}catch{}}function Ds(e){let t=e.detail;return t!==null&&typeof t=="object"?t:{}}function fc(e){try{let t=Ds(e);Be?.track(t.name,t.props)}catch{}}function dc(e){try{let t=Ds(e);Be?.identify(t.userId,t.traits)}catch{}}function hc(e){try{let t=Ds(e);Be&&pc(Be,t.store,t.action,t.state)}catch{}}function pc(e,t,r,i){if(e.active)try{let n=Ve();n?n.manual(t,r,i):nc||(nc=!0,console.warn("tabtape.state: state recording is off in the tabtape extension settings; the call was ignored."))}catch{}}var Gt=Symbol.for("tabtape.recorder"),Cp=5e3,Ep=15e3,mc=window;mc[Gt]?mc[Gt].hello():window.top!==window?Ka()?nu(Gt):Dl(xp):Rp();function xp(){let e=window;for(;e.parent!==e;){e=e.parent;try{let t=e[Gt];if(t?.canvas)return t.canvas}catch{return}}}function Rp(){let e=EventTarget.prototype.dispatchEvent,t=document.readyState==="loading",r="pending",i="",n=!1,l,u,c=!1,a=[],p=(y,S)=>e.call(document,new CustomEvent(y,{detail:S}));function o(y,S,x){if(r==="off")return;let M;try{M=Ee({ts:Math.round(S),type:y,data:x})}catch{return}f(y,M)}function h(y,S,x){r!=="off"&&f(y,`{"ts":${Math.round(S)},"type":${Ee(y)},"data":${x}}`)}function f(y,S){r==="active"?p(he.data,S):a.length<Cp&&a.push({type:y,line:S})}let s={captureBodies:!0,maxBodyChars:1e6,checkoutEveryNms:0,inPageNetwork:!0,recordState:!0};function m(y){Pl((S,x)=>o("console",x,S)),Fl(),rs(!0),Bt(),ft(),y.inPageNetwork?(ys(y,(S,x)=>o("network",x,S)),bu(u?.inPageNetwork===!1),Xr(!0)):(Xr(!1),bs())}function d(y){if(y===c)return;c=y;let S=Ve();if(S)try{y?S.start((x,M)=>h("state",M,x)):S.stop()}catch{}}function g(){Xr(!1),rs(!1),bs(),Ul(),Wr(),Dr()}m(s);let C=setTimeout(()=>r==="pending"&&E(),Ep);function b(y,S){if(clearTimeout(C),r==="active"&&y===i){m(S),u=S,d(S.recordState);return}r==="active"&&v(),i=y,m(S),u=S,r="active";for(let{type:x,line:M}of a.splice(0))x==="network"&&!S.inPageNetwork||p(he.data,M);!S.inPageNetwork&&!t&&(ys(S,(x,M)=>o("network",M,x)),wu()),l=Z({...us(S,x=>o("rrweb",x.timestamp,x)),emit:(x,M)=>{o("rrweb",x.timestamp,x),M&&c&&Ve()?.checkout(),x.type===_.FullSnapshot&&p(he.snapshot)}})??void 0,_r(),ll((x,M)=>o("event",M,x),t&&!n?"load":"start"),uc((x,M)=>o("event",M,x)),Xu((x,M)=>o("perf",M,x),t&&!n),su((x,M)=>o("perf",M,x)),d(S.recordState),n=!0}function v(){ws(),d(!1),Ju(),au(),cc(),ul(),Lt();try{l?.()}catch{}l=void 0,p(he.flush)}function E(){clearTimeout(C),r==="active"&&v(),r="off",a.length=0,g();try{Ve()?.disable()}catch{}}document.addEventListener(he.control,y=>{let S;try{S=It(String(y.detail))}catch{return}S.cmd==="start"?b(S.sessionId,S.options):E()}),document.addEventListener(he.info,()=>{let y={stateHook:"off",stores:[]};try{let S=Ve()?.info();S&&(y={stateHook:S.hook,stores:S.stores})}catch{}p(he.infoReply,Ee(y))}),addEventListener("pagehide",()=>{r==="active"&&(cl(),u?.inPageNetwork!==!1&&ws(),ks(),ou(),p(he.flush))}),addEventListener("pageshow",y=>{if(!(!y.persisted||r!=="active")){try{Z.takeFullSnapshot(!0)}catch{}Fe("bfcache")}});let w=()=>p(he.hello);Object.defineProperty(window,Gt,{value:{hello:w,get active(){return r==="active"},canvas:ct},configurable:!0}),w()}})();
128
+ `,ya=typeof self<"u"&&self.Blob&&new Blob([fl],{type:"text/javascript;charset=utf-8"});function dh(e){let t;try{if(t=ya&&(self.URL||self.webkitURL).createObjectURL(ya),!t)throw"";let r=new Worker(t,{name:e?.name});return r.addEventListener("error",()=>{(self.URL||self.webkitURL).revokeObjectURL(t)}),r}catch{return new Worker("data:text/javascript;charset=utf-8,"+encodeURIComponent(fl),{name:e?.name})}finally{t&&(self.URL||self.webkitURL).revokeObjectURL(t)}}var Li=class{constructor(t){k(this,"pendingCanvasMutations",new Map),k(this,"rafStamps",{latestId:0,invokeId:null}),k(this,"mirror"),k(this,"mutationCb"),k(this,"resetObservers"),k(this,"frozen",!1),k(this,"locked",!1),k(this,"processMutation",(l,p)=>{(this.rafStamps.invokeId&&this.rafStamps.latestId!==this.rafStamps.invokeId||!this.rafStamps.invokeId)&&(this.rafStamps.invokeId=this.rafStamps.latestId),this.pendingCanvasMutations.has(l)||this.pendingCanvasMutations.set(l,[]),this.pendingCanvasMutations.get(l).push(p)});let{sampling:r="all",win:i,blockClass:n,blockSelector:s,recordCanvas:u,dataURLOptions:c}=t;this.mutationCb=t.mutationCb,this.mirror=t.mirror,u&&r==="all"&&this.initCanvasMutationObserver(i,n,s),u&&typeof r=="number"&&this.initCanvasFPSObserver(r,i,n,s,{dataURLOptions:c})}reset(){this.pendingCanvasMutations.clear(),this.resetObservers&&this.resetObservers()}freeze(){this.frozen=!0}unfreeze(){this.frozen=!1}lock(){this.locked=!0}unlock(){this.locked=!1}initCanvasFPSObserver(t,r,i,n,s){let u=ma(r,i,n,!0),c=new Map,l=new dh;l.onmessage=m=>{let{id:d}=m.data;if(c.set(d,!1),!("base64"in m.data))return;let{base64:g,type:C,width:b,height:v}=m.data;this.mutationCb({id:d,type:ut["2D"],commands:[{property:"clearRect",args:[0,0,b,v]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:g}],type:C}]},0,0]}]})};let p=1e3/t,a=0,h,f=()=>{let m=[];return r.document.querySelectorAll("canvas").forEach(d=>{ae(d,i,n,!0)||m.push(d)}),m},o=m=>{if(a&&m-a<p){h=requestAnimationFrame(o);return}a=m,f().forEach(async d=>{var g;let C=this.mirror.getId(d);if(c.get(C)||d.width===0||d.height===0)return;if(c.set(C,!0),["webgl","webgl2"].includes(d.__context)){let v=d.getContext(d.__context);((g=v?.getContextAttributes())==null?void 0:g.preserveDrawingBuffer)===!1&&v.clear(v.COLOR_BUFFER_BIT)}let b=await createImageBitmap(d);l.postMessage({id:C,bitmap:b,width:d.width,height:d.height,dataURLOptions:s.dataURLOptions},[b])}),h=requestAnimationFrame(o)};h=requestAnimationFrame(o),this.resetObservers=()=>{u(),cancelAnimationFrame(h)}}initCanvasMutationObserver(t,r,i){this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher();let n=ma(t,r,i,!1),s=uh(this.processMutation.bind(this),t,r,i),u=fh(this.processMutation.bind(this),t,r,i);this.resetObservers=()=>{n(),s(),u()}}startPendingCanvasMutationFlusher(){requestAnimationFrame(()=>this.flushPendingCanvasMutations())}startRAFTimestamping(){let t=r=>{this.rafStamps.latestId=r,requestAnimationFrame(t)};requestAnimationFrame(t)}flushPendingCanvasMutations(){this.pendingCanvasMutations.forEach((t,r)=>{let i=this.mirror.getId(r);this.flushPendingCanvasMutationFor(r,i)}),requestAnimationFrame(()=>this.flushPendingCanvasMutations())}flushPendingCanvasMutationFor(t,r){if(this.frozen||this.locked)return;let i=this.pendingCanvasMutations.get(t);if(!i||r===-1)return;let n=i.map(u=>{let{type:c,...l}=u;return l}),{type:s}=i[0];this.mutationCb({id:r,type:s,commands:n}),this.pendingCanvasMutations.delete(t)}},Pi=class{constructor(t){k(this,"trackedLinkElements",new WeakSet),k(this,"mutationCb"),k(this,"adoptedStyleSheetCb"),k(this,"styleMirror",new Oi),this.mutationCb=t.mutationCb,this.adoptedStyleSheetCb=t.adoptedStyleSheetCb}attachLinkElement(t,r){"_cssText"in r.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:r.id,attributes:r.attributes}]}),this.trackLinkElement(t)}trackLinkElement(t){this.trackedLinkElements.has(t)||(this.trackedLinkElements.add(t),this.trackStylesheetInLinkElement(t))}adoptStyleSheets(t,r){if(t.length===0)return;let i={id:r,styleIds:[]},n=[];for(let s of t){let u;this.styleMirror.has(s)?u=this.styleMirror.getId(s):(u=this.styleMirror.add(s),n.push({styleId:u,rules:Array.from(s.rules||CSSRule,(c,l)=>({rule:Ea(c,s.href),index:l}))})),i.styleIds.push(u)}n.length>0&&(i.styles=n),this.adoptedStyleSheetCb(i)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(t){}},Fi=class{constructor(){k(this,"nodeMap",new WeakMap),k(this,"active",!1)}inOtherBuffer(t,r){let i=this.nodeMap.get(t);return i&&Array.from(i).some(n=>n!==r)}add(t,r){this.active||(this.active=!0,requestAnimationFrame(()=>{this.nodeMap=new WeakMap,this.active=!1})),this.nodeMap.set(t,(this.nodeMap.get(t)||new Set).add(r))}destroy(){}},J,dr,Ri,Sr=!1;try{if(Array.from([1],e=>e*2)[0]!==2){let e=document.createElement("iframe");document.body.appendChild(e),Array.from=((Js=e.contentWindow)==null?void 0:Js.Array.from)||Array.from,document.body.removeChild(e)}}catch(e){console.debug("Unable to override Array.from",e)}var Ee=Sf();function K(e={}){let{emit:t,checkoutEveryNms:r,checkoutEveryNth:i,blockClass:n="rr-block",blockSelector:s=null,ignoreClass:u="rr-ignore",ignoreSelector:c=null,maskTextClass:l="rr-mask",maskTextSelector:p=null,inlineStylesheet:a=!0,maskAllInputs:h,maskInputOptions:f,slimDOMOptions:o,maskInputFn:m,maskTextFn:d,hooks:g,packFn:C,sampling:b={},dataURLOptions:v={},mousemoveWait:E,recordDOM:w=!0,recordCanvas:y=!1,recordCrossOriginIframes:S=!1,recordAfter:x=e.recordAfter==="DOMContentLoaded"?e.recordAfter:"load",userTriggeredOnInput:M=!1,collectFonts:T=!1,inlineImages:I=!1,plugins:O,keepIframeSrcFn:R=()=>!1,ignoreCSSAttributes:re=new Set([]),errorHandler:ne}=e;Vd(ne);let U=S?window.parent===window:!0,P=!1;if(!U)try{window.parent.document&&(P=!1)}catch{P=!0}if(U&&!t)throw new Error("emit function is required");if(!U&&!P)return()=>{};E!==void 0&&b.mousemove===void 0&&(b.mousemove=E),Ee.reset();let V=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}:f!==void 0?f:{password:!0},Z=Oa(o);Wd();let $,B=0,ue=A=>{for(let ee of O||[])ee.eventProcessor&&(A=ee.eventProcessor(A));return C&&!P&&(A=C(A)),A};J=(A,ee)=>{var W;let X=A;if(X.timestamp=At(),(W=je[0])!=null&&W.isFrozen()&&X.type!==_.FullSnapshot&&!(X.type===_.IncrementalSnapshot&&X.data.source===L.Mutation)&&je.forEach(ce=>ce.unfreeze()),U)t?.(ue(X),ee);else if(P){let ce={type:"rrweb",event:ue(X),origin:window.location.origin,isCheckout:ee};window.parent.postMessage(ce,"*")}if(X.type===_.FullSnapshot)$=X,B=0;else if(X.type===_.IncrementalSnapshot){if(X.data.source===L.Mutation&&X.data.isAttachIframe)return;B++;let ce=i&&B>=i,z=r&&X.timestamp-$.timestamp>r;(ce||z)&&dr(!0)}};let N=A=>{J({type:_.IncrementalSnapshot,data:{source:L.Mutation,...A}})},Me=A=>J({type:_.IncrementalSnapshot,data:{source:L.Scroll,...A}}),me=A=>J({type:_.IncrementalSnapshot,data:{source:L.CanvasMutation,...A}}),Mt=A=>J({type:_.IncrementalSnapshot,data:{source:L.AdoptedStyleSheet,...A}}),se=new Pi({mutationCb:N,adoptedStyleSheetCb:Mt}),Ce=new Di({mirror:Ee,mutationCb:N,stylesheetManager:se,recordCrossOriginIframes:S,wrappedEmit:J});for(let A of O||[])A.getMirror&&A.getMirror({nodeMirror:Ee,crossOriginIframeMirror:Ce.crossOriginIframeMirror,crossOriginIframeStyleMirror:Ce.crossOriginIframeStyleMirror});let qe=new Fi;Ri=new Li({recordCanvas:y,mutationCb:me,win:window,blockClass:n,blockSelector:s,mirror:Ee,sampling:b.canvas,dataURLOptions:v});let _e=new _i({mutationCb:N,scrollCb:Me,bypassOptions:{blockClass:n,blockSelector:s,maskTextClass:l,maskTextSelector:p,inlineStylesheet:a,maskInputOptions:V,dataURLOptions:v,maskTextFn:d,maskInputFn:m,recordCanvas:y,inlineImages:I,sampling:b,slimDOMOptions:Z,iframeManager:Ce,stylesheetManager:se,canvasManager:Ri,keepIframeSrcFn:R,processedNodeManager:qe},mirror:Ee});dr=(A=!1)=>{if(!w)return;J({type:_.Meta,data:{href:window.location.href,width:Ja(),height:Xa()}},A),se.reset(),_e.init(),je.forEach(W=>W.lock());let ee=Gf(document,{mirror:Ee,blockClass:n,blockSelector:s,maskTextClass:l,maskTextSelector:p,inlineStylesheet:a,maskAllInputs:V,maskTextFn:d,maskInputFn:m,slimDOM:Z,dataURLOptions:v,recordCanvas:y,inlineImages:I,onSerialize:W=>{Za(W,Ee)&&Ce.addIframe(W),el(W,Ee)&&se.trackLinkElement(W),ki(W)&&_e.addShadowRoot(D.shadowRoot(W),document)},onIframeLoad:(W,X)=>{Ce.attachIframe(W,X),_e.observeAttachShadow(W)},onStylesheetLoad:(W,X)=>{se.attachLinkElement(W,X)},keepIframeSrcFn:R});if(!ee)return console.warn("Failed to snapshot the document");J({type:_.FullSnapshot,data:{node:ee,initialOffset:Ya(window)}},A),je.forEach(W=>W.unlock()),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&se.adoptStyleSheets(document.adoptedStyleSheets,Ee.getId(document))};try{let A=[],ee=X=>{var ce;return F(sh)({mutationCb:N,mousemoveCb:(z,wn)=>J({type:_.IncrementalSnapshot,data:{source:wn,positions:z}}),mouseInteractionCb:z=>J({type:_.IncrementalSnapshot,data:{source:L.MouseInteraction,...z}}),scrollCb:Me,viewportResizeCb:z=>J({type:_.IncrementalSnapshot,data:{source:L.ViewportResize,...z}}),inputCb:z=>J({type:_.IncrementalSnapshot,data:{source:L.Input,...z}}),mediaInteractionCb:z=>J({type:_.IncrementalSnapshot,data:{source:L.MediaInteraction,...z}}),styleSheetRuleCb:z=>J({type:_.IncrementalSnapshot,data:{source:L.StyleSheetRule,...z}}),styleDeclarationCb:z=>J({type:_.IncrementalSnapshot,data:{source:L.StyleDeclaration,...z}}),canvasMutationCb:me,fontCb:z=>J({type:_.IncrementalSnapshot,data:{source:L.Font,...z}}),selectionCb:z=>{J({type:_.IncrementalSnapshot,data:{source:L.Selection,...z}})},customElementCb:z=>{J({type:_.IncrementalSnapshot,data:{source:L.CustomElement,...z}})},blockClass:n,ignoreClass:u,ignoreSelector:c,maskTextClass:l,maskTextSelector:p,maskInputOptions:V,inlineStylesheet:a,sampling:b,recordDOM:w,recordCanvas:y,inlineImages:I,userTriggeredOnInput:M,collectFonts:T,doc:X,maskInputFn:m,maskTextFn:d,keepIframeSrcFn:R,blockSelector:s,slimDOMOptions:Z,dataURLOptions:v,mirror:Ee,iframeManager:Ce,stylesheetManager:se,shadowDomManager:_e,processedNodeManager:qe,canvasManager:Ri,ignoreCSSAttributes:re,plugins:((ce=O?.filter(z=>z.observer))==null?void 0:ce.map(z=>({observer:z.observer,options:z.options,callback:wn=>J({type:_.Plugin,data:{plugin:z.name,payload:wn}})})))||[]},g)};Ce.addLoadListener(X=>{try{A.push(ee(X.contentDocument))}catch(ce){console.warn(ce)}});let W=()=>{dr(),A.push(ee(document)),Sr=!0};return["interactive","complete"].includes(document.readyState)?W():(A.push(oe("DOMContentLoaded",()=>{J({type:_.DomContentLoaded,data:{}}),x==="DOMContentLoaded"&&W()})),A.push(oe("load",()=>{J({type:_.Load,data:{}}),x==="load"&&W()},window))),()=>{A.forEach(X=>{try{X()}catch(ce){String(ce).toLowerCase().includes("cross-origin")||console.warn(ce)}}),qe.destroy(),Sr=!1,Hd()}}catch(A){console.warn(A)}}K.addCustomEvent=(e,t)=>{if(!Sr)throw new Error("please add custom event after start recording");J({type:_.Custom,data:{tag:e,payload:t}})};K.freezePage=()=>{je.forEach(e=>e.freeze())};K.takeFullSnapshot=e=>{if(!Sr)throw new Error("please take full snapshot after start recording");dr(e)};K.mirror=Ee;var ba;(function(e){e[e.NotStarted=0]="NotStarted",e[e.Running=1]="Running",e[e.Stopped=2]="Stopped"})(ba||(ba={}));var dm=5*1e3;var{addCustomEvent:hm}=K,{freezePage:pm}=K,{takeFullSnapshot:mm}=K;var hh=/card.?(num|exp|cvc|cvv|code)|cc.?(num|exp|csc|cvc|cvv)|^(cvc|cvv|csc)\d?$|security.?code|^exp(iry|iration)?.?(date|month|year)?$/i;function dl(e){return(e.getAttribute("autocomplete")??"").toLowerCase().split(/\s+/).some(r=>r.startsWith("cc-"))?!0:[e.getAttribute("name"),e.getAttribute("id")].some(r=>!!r&&hh.test(r))}function hl(e=window){if(e.parent===e||e.location.href==="about:blank")return!1;try{return e.parent.document,!1}catch{return!0}}var he={data:"__tabtape:data",flush:"__tabtape:flush",hello:"__tabtape:hello",control:"__tabtape:control",info:"__tabtape:info",infoReply:"__tabtape:info-reply",snapshot:"__tabtape:snapshot"},pl="tabtape.state",Dr="/__tabtape/";function Ye(){try{return window[Symbol.for(pl)]}catch{return}}function gl(e){let t="",r=!1,i=null,n=c=>{try{e.emit(c)}catch{}};function s(c,l,p){let a=e.title(),h,f=()=>{},o=!1,m=()=>{o||(o=!0,i===m&&(i=null),f(),e.clearTimer(h),e.clearTimer(d),n({kind:c,url:l,title:e.title(),ts:p}))};i=m;let d=e.setTimer(m,2e3);try{f=e.watchTitle(()=>{o||e.title()===a||(e.clearTimer(h),h=e.setTimer(m,100))})}catch{}}let u=()=>i?.();return{reset(c){u(),t="",r=c},view(c,l=e.now()){let p=c==="push"||c==="replace"||c==="pop"||c==="hash";if(p&&r)return;p||(r=!1);let a=e.url();if(!(p&&a===t)){if(c==="replace"&&ml(a)===ml(t)){t=a;return}t=a,u(),p?s(c,a,l):n({kind:c,url:a,title:e.title(),ts:l})}},flush:u}}function ml(e){let t=e.search(/[?#]/);return t<0?e:e.slice(0,t)}var Te=JSON.stringify,Ut=JSON.parse,ph=Object.prototype.toString,Xe="********",mh=/passw(or)?d|^pwd$|^pass$/i,_r=/json|text\/|xml|javascript|ecmascript|graphql|x-www-form-urlencoded|csv|yaml/i,j=(e,t)=>e.length>t?e.slice(0,t-1)+"\u2026":e,Q=e=>Math.round(e*10)/10;function Fe(e){return mh.test(e)}function Ue(e){try{return new URL(e,location.href).href}catch{return e}}function bl(e){let t=e,r="";for(let i of["currentSrc","src","href"]){let n=t[i];if(typeof n=="string"&&n){r=n;break}}if(!r){let i=e.getAttribute("src")||e.getAttribute("href");i&&(r=Ue(i))}return r?j(Y(r),1e3):""}function Lr(e){let t=new URLSearchParams(e),r=!1;for(let i of new Set(t.keys()))Fe(i)&&(t.set(i,Xe),r=!0);return r?t.toString():e}function Y(e){let t=e.indexOf("?");if(t<0)return e;let r=e.indexOf("#",t),i=e.slice(t+1,r<0?void 0:r),n=Lr(i);return n===i?e:e.slice(0,t+1)+n+(r<0?"":e.slice(r))}function ts(e){let t=!1;if(Array.isArray(e))for(let r of e)t=ts(r)||t;else if(e&&typeof e=="object"){let r=e;for(let i of Object.keys(r)){let n=r[i];Fe(i)&&(typeof n=="string"||typeof n=="number")?(r[i]=Xe,t=!0):t=ts(n)||t}}return t}var gh=/^[\w.%[\]-]+=[^&]*(&[\w.%[\]-]+=[^&]*)*$/,yh=/multipart\/form-data/i,bh=/^--[^\r\n]{1,200}\r?\ncontent-disposition:\s*form-data/i;function Pr(e,t=""){let r=e.trimStart();if(r.startsWith("{")||r.startsWith("["))try{let i=Ut(e);return ts(i)?Te(i):e}catch{return e}return yh.test(t)||bh.test(r)?wh(e,t):/x-www-form-urlencoded/i.test(t)||r.length<1e5&&gh.test(r)?Lr(e):e}function wh(e,t=""){let r=/boundary=(?:"([^"]+)"|([^;,\s]+))/i.exec(t),i=r?.[1]??r?.[2]??/^--([^\r\n]+)/.exec(e.trimStart())?.[1];if(!i)return e;let n=`--${i}`,s=e.split(n),u=!1;for(let c=1;c<s.length;c++){let l=s[c],p=/\r?\n\r?\n/.exec(l);if(!p)continue;let a=l.slice(0,p.index);if(/;\s*filename\*?=/i.test(a))continue;let h=/;\s*name="([^"]*)"/i.exec(a)?.[1]??/;\s*name=([^;\s]+)/i.exec(a)?.[1];if(h===void 0||!Fe(h))continue;let f=p.index+p[0].length,o=l.endsWith(`\r
129
+ `)?l.length-2:l.endsWith(`
130
+ `)?l.length-1:l.length;s[c]=l.slice(0,f)+Xe+l.slice(Math.max(f,o)),u=!0}return u?s.join(n):e}var rs={depth:4,items:50,string:2e3};function ct(e){if(!e||typeof e!="object")return!1;if(e instanceof Error)return!0;let t=e;return typeof t.message=="string"&&typeof t.name=="string"&&"stack"in t}function vh(e){if(e.nodeType===1){let t=e,r="<"+t.tagName.toLowerCase();t.id&&(r+="#"+t.id);let i=t.getAttribute("class")?.trim();return i&&(r+="."+i.split(/\s+/).slice(0,3).join(".")),r+">"}return e.nodeType===3?`#text "${j(e.textContent??"",60)}"`:e.nodeName}function Bt(e,t=rs){return Ft(e,0,new WeakSet,t)}function Ft(e,t,r,i){switch(typeof e){case"string":return j(e,i.string);case"number":return Number.isFinite(e)?e:String(e);case"boolean":return e;case"undefined":return"undefined";case"bigint":return`${e}n`;case"symbol":return e.toString();case"function":return`\u0192 ${e.name||"anonymous"}()`}if(e===null)return null;let n=e;if(r.has(n))return"[Circular]";try{if(ct(n))return{name:n.name,message:j(String(n.message),i.string),stack:j(String(n.stack??""),Math.min(4e3,i.string*2))};let s=n;if(typeof s.nodeType=="number"&&typeof s.nodeName=="string")return vh(s);if(n.window===n)return"[Window]";let u=ph.call(n).slice(8,-1);if(u==="Date"){let p=n;return Number.isNaN(p.getTime())?"Invalid Date":p.toISOString()}if(u==="RegExp")return String(n);if(u==="Promise")return"[Promise]";if(n instanceof ArrayBuffer||ArrayBuffer.isView(n))return`[${u} ${n.byteLength} bytes]`;if(t>=i.depth)return Array.isArray(n)?`[Array(${n.length})]`:`[${u}]`;if(r.add(n),Array.isArray(n)){let p=n.slice(0,i.items).map(a=>Ft(a,t+1,r,i));return n.length>i.items&&p.push(`\u2026 ${n.length-i.items} more`),p}if(u==="Map")return{"[[Map]]":Ft([...n].slice(0,i.items),t+1,r,i)};if(u==="Set")return{"[[Set]]":Ft([...n].slice(0,i.items),t+1,r,i)};let c={},l=Object.keys(n);for(let p of l.slice(0,i.items))try{c[p]=Ft(n[p],t+1,r,i)}catch{c[p]="[unreadable]"}return l.length>i.items&&(c["\u2026"]=`${l.length-i.items} more keys`),c}catch{return"[unserializable]"}}function yl(e,t){if(typeof e=="string")return e;if(ct(e))return`${e.name}: ${e.message}`;if(typeof t=="string")return t;try{return j(Te(t)??String(t),1e3)}catch{return String(t)}}function ns(e,t){let r=[],i=0;for(typeof e[0]=="string"&&e[0].includes("%")&&(i=1,r.push(e[0].replace(/%([sdifoOc%])/g,(n,s)=>{if(s==="%")return"%";if(i>=e.length)return n;let u=i++,c=e[u];switch(s){case"c":return"";case"d":case"i":return String(Number.parseInt(String(c),10));case"f":return String(Number(c));default:return yl(c,t[u])}})));i<e.length;i++)r.push(yl(e[i],t[i]));return j(r.join(" "),5e3)}function wl(e){if(!e)return;let t=e.split(`
131
+ `).filter((r,i)=>i>0&&!r.includes("chrome-extension://")&&!r.includes(Dr));return t.length?j(t.join(`
132
+ `),4e3):void 0}var Sh=["a","button","input","select","textarea","label","summary","option",'[role="button"]','[role="link"]','[role="menuitem"]','[role="tab"]','[role="checkbox"]','[role="radio"]','[role="switch"]','[role="option"]',"[onclick]","[data-testid]"].join(","),Ch=[["name","name"],["type","type"],["role","role"],["aria-label","ariaLabel"],["data-testid","testId"],["placeholder","placeholder"],["title","title"],["alt","alt"]],Eh=4,vl=1e3,xh=30,Cl=history.pushState,El=history.replaceState,dt=()=>{},Je=!1,ft=[],Sl=0,Fr=gl({emit:({kind:e,url:t,title:r,ts:i})=>{Je&&dt({name:"page_view",kind:e,url:t,title:r,referrer:e==="load"&&document.referrer?Y(document.referrer):void 0,viewport:{w:innerWidth,h:innerHeight}},i)},url:()=>Y(location.href),title:()=>document.title,now:()=>Date.now(),watchTitle:e=>{let t=new MutationObserver(e);return t.observe(document.head??document.documentElement,{subtree:!0,childList:!0,characterData:!0}),()=>t.disconnect()},setTimer:(e,t)=>setTimeout(e,t),clearTimer:e=>clearTimeout(e)});function xl(e,t){if(dt=e,Je)return;Je=!0,document.addEventListener("click",Il,!0),document.addEventListener("change",Al,!0),document.addEventListener("submit",Dl,!0),addEventListener("popstate",kl),addEventListener("hashchange",Ol),history.pushState=Ml,history.replaceState=Nl;let r=document.readyState==="loading";Fr.reset(r),r?document.addEventListener("DOMContentLoaded",()=>Be(t),{once:!0}):Be(t)}function Rl(){Je&&(Fr.flush(),Je=!1,document.removeEventListener("click",Il,!0),document.removeEventListener("change",Al,!0),document.removeEventListener("submit",Dl,!0),removeEventListener("popstate",kl),removeEventListener("hashchange",Ol),history.pushState===Ml&&(history.pushState=Cl),history.replaceState===Nl&&(history.replaceState=El))}function Be(e,t=Date.now()){Je&&Fr.view(e,t)}function Tl(){Je&&Fr.flush()}function Ml(...e){Cl.apply(this,e),Ke(()=>Be("push"))}function Nl(...e){El.apply(this,e),Ke(()=>Be("replace"))}var kl=()=>Ke(()=>Be("pop")),Ol=()=>Ke(()=>Be("hash"));function Il(e){e.isTrusted&&Ke(()=>{let t=e.composedPath()[0];if(!t||t.nodeType!==1)return;let r=t.closest(Sh)??t,i=is(r),n=Date.now(),s=Y(location.href),u=Math.round(e.clientX),c=Math.round(e.clientY);dt({name:"click",url:s,target:i,x:u,y:c},n),ft=ft.filter(l=>n-l.ts<vl&&Math.hypot(l.x-u,l.y-c)<xh),ft.push({ts:n,x:u,y:c}),ft.length>=Eh&&n>=Sl&&(dt({name:"rage_click",url:s,target:i,x:u,y:c,count:ft.length},n),Sl=n+vl,ft=[])})}function Al(e){Ke(()=>{let t=e.composedPath()[0];if(!t||t.nodeType!==1)return;let r=t.tagName;if(r!=="INPUT"&&r!=="SELECT"&&r!=="TEXTAREA"||_l(t))return;let i=(t.getAttribute("type")??"").toLowerCase(),n={name:"change",url:Y(location.href),target:is(t)};Rh(t)?n.masked=!0:i==="checkbox"||i==="radio"?n.value=t.checked?"checked":"unchecked":i==="file"?n.value=Array.from(t.files??[],s=>s.name).join(", "):n.value=j(String(t.value??""),500),dt(n,Date.now())})}function Dl(e){Ke(()=>{let t=e.target;if(!t||t.nodeType!==1)return;let r=t.getAttribute("action");dt({name:"submit",url:Y(location.href),target:is(t),action:r?Y(Ue(r)):void 0,method:(t.getAttribute("method")??"get").toUpperCase()},Date.now())})}function _l(e){return e.closest(".rr-block")!==null}function Rh(e){return(e.getAttribute("type")??"").toLowerCase()==="password"||e.hasAttribute("data-rr-is-password")||/password/i.test(e.getAttribute("autocomplete")??"")}function is(e){let t={tag:e.tagName.toLowerCase(),selector:Nh(e)};e.id&&(t.id=j(e.id,100));let r=e.getAttribute("class")?.trim();r&&(t.classes=j(r.split(/\s+/).slice(0,6).join(" "),200));let i=_l(e)?"":Th(e);i&&(t.text=i);for(let[n,s]of Ch){let u=e.getAttribute(n);u&&(t[s]=j(u,200))}if(t.tag==="a"){let n=e.getAttribute("href");n&&(t.href=Y(Ue(n)))}return t}function Th(e){let t=e.tagName;if(t==="INPUT"){let n=(e.getAttribute("type")??"").toLowerCase();return n==="button"||n==="submit"||n==="reset"?j(e.value,120):""}if(t==="SELECT"||t==="TEXTAREA")return"";let r="",i=document.createTreeWalker(e,NodeFilter.SHOW_TEXT);for(let n=i.nextNode();n&&r.length<200;n=i.nextNode()){let s=n.parentElement?.tagName;s==="SCRIPT"||s==="STYLE"||(r+=" "+(n.nodeValue??""))}return j(r.replace(/\s+/g," ").trim(),120)}var Mh=/^(css|sc|jsx|emotion)-|[0-9a-f]{5,}|__/i;function Nh(e){let t=[];for(let r=e;r&&r.nodeType===1&&t.length<5;r=r.parentElement){let i=r.tagName.toLowerCase();if(r.id&&/^[A-Za-z][\w-]*$/.test(r.id)){t.unshift(`${i}#${r.id}`);break}let n=r.getAttribute("data-testid");if(n){t.unshift(`${i}[data-testid="${n.replace(/"/g,'\\"')}"]`);break}let s=i,u=(r.getAttribute("class")??"").trim().split(/\s+/).filter(l=>l&&!Mh.test(l)).slice(0,2);u.length&&(s+="."+u.map(l=>CSS.escape(l)).join("."));let c=r.parentElement;if(c){let l=Array.from(c.children).filter(p=>p.tagName===r.tagName);l.length>1&&(s+=`:nth-of-type(${l.indexOf(r)+1})`)}t.unshift(s)}return t.join(" > ")}function Ke(e){try{e()}catch{}}var Gl="tabtape/canvas",Oh=100,Ih=500,Ah=5e3,Dh=4e5,Ll=2e6,_h=4e6,Lh=50,Pl=100,Ph=2e3,hs="image/webp",ps=.8,Fh=["clearRect","fillRect","strokeRect","fill","stroke","fillText","strokeText","drawImage","putImageData","drawFocusIfNeeded","reset"],Yl=["clear","drawArrays","drawElements"],Uh=[...Yl,"drawArraysInstanced","drawElementsInstanced","drawRangeElements","clearBufferfv","clearBufferiv","clearBufferuiv","clearBufferfi","blitFramebuffer"],Bh=2,$h=3,Wh=0,Xl=setTimeout.bind(globalThis),Jl=clearTimeout.bind(globalThis),zh=typeof queueMicrotask=="function"?queueMicrotask.bind(globalThis):e=>{Promise.resolve().then(e)},Ze=Date.now,qh=typeof HTMLCanvasElement=="function"?HTMLCanvasElement.prototype.toBlob:void 0,Fl=typeof FileReader=="function"?FileReader:void 0,os=typeof OffscreenCanvas=="function"?OffscreenCanvas:void 0,Ul=typeof createImageBitmap=="function"?createImageBitmap.bind(globalThis):void 0,Bl=typeof Worker=="function"?Worker:void 0,$l=typeof Blob=="function"?Blob:void 0,Wl=typeof URL=="function"&&typeof URL.createObjectURL=="function"?URL.createObjectURL.bind(URL):void 0,ss=e=>typeof e=="function"?e.prototype:void 0,Kl=[{key:"2d",proto:ss(globalThis.CanvasRenderingContext2D),names:Fh,gl:!1},{key:"webgl",proto:ss(globalThis.WebGLRenderingContext),names:Yl,gl:!0},{key:"webgl2",proto:ss(globalThis.WebGL2RenderingContext),names:Uh,gl:!0}],as=new Map,ls=new Map,We=!1,be=!1,Ur=0,Wt=0,$r=new WeakSet,pe=new Map,ht=new WeakMap,Ql=new WeakSet,Qe,$e,$t=1/0,us,Br=new WeakSet,zl=new WeakMap,ql=new WeakMap,pt=new Set,mt=new Set,Ae=new Map,yt,cs=!1,jl=new WeakMap;function et(e,t=!1){if(!We||!e||typeof e!="object")return;if(us)return us(e,t);if(t)return Hh(e);if(e===Qe||(Qe=e,$r.add(e),!be||pe.has(e)))return;let r=ht.get(e);pe.set(e,Math.max(Ze()+Oh,r?fs(r.at,r.chars):0)),zt()}function fs(e,t){return e+Math.min(Ah,Math.max(Ih,Math.round(t/Dh*1e3)))}function Zl(e,t){let r=e*t;if(r<=Ll)return{width:e,height:t};let i=Math.sqrt(Ll/r);return{width:Math.max(1,Math.floor(e*i)),height:Math.max(1,Math.floor(t*i))}}function jh(e){yt=e,eu();let t=e.canvas;t.nodeType===1&&et(t,!Vh(e))}function Vh(e){let t=jl.get(e);if(t===void 0){let r=e.getContextAttributes();if(!r)return!1;jl.set(e,t=r.preserveDrawingBuffer===!0)}return t}function Hh(e){let t=Ze(),r=zl.get(e);zl.set(e,t);let i=r===void 0||t-r>=Lh;i&&ql.set(e,t),$r.add(e);let n=Br.has(e);if(n||(Br.add(e),pe.delete(e)),eu(),pt.has(e)||mt.has(e))return;let s=ht.get(e),u=t-(Ae.get(e)?.at??-1/0);be&&(!n||!s||t>=fs(s.at,s.chars))?(ds(e),pt.add(e)):i||t-ql.get(e)<Ph&&u>=Pl?(mt.add(e),be&&s&&!pe.has(e)&&(pe.set(e,fs(s.at,s.chars)),zt())):u>=Pl&&ds(e)}function eu(){cs||(cs=!0,zh(Gh))}function Gh(){cs=!1,yt=void 0;let e=[...pt],t=[...mt];if(pt.clear(),mt.clear(),!!We){for(let r of e)gs(r)>=0&&Wr(r,Vl(r));for(let r of t){if(ms(r),!ru(r)||be&&K.mirror.getId(r)<0)continue;let i=Vl(r);i&&Ae.set(r,{copy:i,at:Ze()})}}}function Vl(e){if(Ul)try{return Ul(e).catch(()=>null)}catch{return}}function ms(e){let t=Ae.get(e);t&&(Ae.delete(e),t.copy.then(r=>r?.close()))}function ds(e){Ae.has(e)&&(ms(e),pe.delete(e))}function zt(){let e=1/0;for(let t of pe.values())e=Math.min(e,t);if($e!==void 0){if($t<=e)return;Jl($e),$e=void 0}$t=1/0,!(!be||e===1/0)&&($t=e,$e=Xl(Yh,Math.max(0,e-Ze())))}function Yh(){$e=void 0,$t=1/0,Qe=void 0;let e=Ze();for(let[t,r]of pe)r>e||(pe.delete(t),Br.has(t)?tu(t):Wr(t));zt()}function tu(e){let t=Ae.get(e);if(t)return Ae.delete(e),Wr(e,t.copy);let r=ht.get(e);if(!r?.src||r.epoch===Wt)return;let i=gs(e);if(!(i<0)){r.epoch=Wt;try{K.addCustomEvent(Gl,{id:i,src:r.src})}catch{}}}function Xh(){if(!be)return;Qe=void 0;let e=K.mirror;for(let t of e.getIds()){let r=e.getNode(t);!r||!$r.has(r)||(pe.delete(r),Br.has(r)?tu(r):Wr(r))}zt()}function Jh(e){let t=ht.get(e);t&&(t.epoch=-1),be&&(pe.set(e,Math.min(pe.get(e)??1/0,Ze())),zt())}function ru(e){return!Ql.has(e)&&e.isConnected&&!!e.width&&!!e.height&&!e.closest(".rr-block, .rr-mask")}function gs(e){return!be||!ru(e)?-1:K.mirror.getId(e)}function Wr(e,t){try{let r=gs(e);if(r<0){t?.then(c=>c?.close());return}let i=ht.get(e);i||ht.set(e,i={at:0,chars:0,epoch:-1,taken:0,written:0});let n=i,s=++n.taken,u=Ur;n.at=Ze(),(t?t.then(Qh):Kh(e)).then(c=>{if(!(u!==Ur||s<n.written||!c)&&(n.chars=c.length,!(c.length>_h||c===n.src&&n.epoch===Wt))){n.written=s,n.src=c,n.epoch=Wt;try{K.addCustomEvent(Gl,{id:r,src:c})}catch{}}},c=>Hl(e,c))}catch(r){Hl(e,r)}}function Hl(e,t){t?.name==="SecurityError"&&Ql.add(e)}function Kh(e){let t=Zl(e.width,e.height);return os&&(t.width!==e.width||t.height!==e.height)?iu(e,t):new Promise(r=>qh.call(e,r,hs,ps)).then(su)}function Qh(e){if(!e)return Promise.resolve(null);let t=Zl(e.width,e.height),r=tp();if(r)return new Promise(i=>{let n=++ep;gt.set(n,i);try{r.postMessage({n,bitmap:e,width:t.width,height:t.height,type:hs,quality:ps},[e])}catch{gt.delete(n),e.close(),i(null)}});try{return iu(e,t)}finally{e.close()}}var Zh=`onmessage = async (e) => {
133
+ const { n, bitmap, width, height, type, quality } = e.data;
134
+ let src = null;
135
+ try {
136
+ const canvas = new OffscreenCanvas(width, height);
137
+ canvas.getContext('2d').drawImage(bitmap, 0, 0, width, height);
138
+ bitmap.close();
139
+ src = new FileReaderSync().readAsDataURL(await canvas.convertToBlob({ type, quality }));
140
+ } catch {
141
+ bitmap.close();
142
+ }
143
+ postMessage({ n, src });
144
+ };`,ye,ep=0,gt=new Map;function tp(){if(ye!==void 0)return ye;if(ye=null,!Bl||!$l||!Wl)return null;try{let e=Wl(new $l([Zh],{type:"text/javascript"}));try{ye=new Bl(e,{name:"tabtape canvas"})}finally{URL.revokeObjectURL(e)}}catch{return ye=null}return ye.onmessage=e=>{let{n:t,src:r}=e.data??{},i=typeof t=="number"?gt.get(t):void 0;i&&(gt.delete(t),i(typeof r=="string"?r:null))},ye.onerror=()=>nu(),ye}function nu(){ye?.terminate(),ye=null;for(let e of gt.values())e(null);gt.clear()}function iu(e,t){if(!os)return Promise.resolve(null);let r=new os(t.width,t.height),i=r.getContext("2d");return i?(i.drawImage(e,0,0,t.width,t.height),r.convertToBlob({type:hs,quality:ps}).then(su)):Promise.resolve(null)}function su(e){return!e||!Fl?Promise.resolve(null):new Promise(t=>{let r=new Fl;r.onload=()=>t(typeof r.result=="string"?r.result:null),r.onerror=()=>t(null),r.readAsDataURL(e)})}function ou(e,t=[]){if(!e)return t;if(e.tagName==="canvas"&&typeof e.id=="number"&&t.push(e.id),e.childNodes)for(let r of e.childNodes)ou(r,t);return t}function rp(e){if(e.type===Bh){Wt++,Xl(Xh,0);return}if(e.type!==$h)return;let t=e.data;if(!(t?.source!==Wh||!t.adds?.length))for(let r of t.adds)for(let i of ou(r.node)){let n=K.mirror.getNode(i);n&&$r.has(n)&&Jh(n)}}var au={name:"tabtape/canvas",eventProcessor:e=>{try{rp(e)}catch{}return e},options:{}};function np(e,t,r){let i=r?function(){if(this!==yt&&We)try{jh(this)}catch{}return t.apply(this,arguments)}:function(){if(We)try{et(this.canvas)}catch{}return t.apply(this,arguments)};return Object.defineProperty(i,"name",{value:e}),Object.defineProperty(i,"length",{value:t.length}),i}function bt(){if(!We){We=!0;for(let{key:e,proto:t,names:r,gl:i}of Kl)if(t)for(let n of r)try{let s=`${e}.${n}`,u=as.get(s)??t[n];if(typeof u!="function")continue;as.set(s,u);let c=ls.get(s);c||ls.set(s,c=np(n,u,i)),t[n]===u&&(t[n]=c)}catch{}try{for(let e of lu(document))et(e)}catch{}Qe=void 0}}function lu(e,t=[],r=0){if(t.push(...Array.from(e.getElementsByTagName("canvas"))),r>=5)return t;for(let i of Array.from(e.getElementsByTagName("iframe")))try{let n=i.contentDocument;n&&lu(n,t,r+1)}catch{}return t}function zr(){if(We){qt(),We=!1,yt=void 0,pt.clear(),mt.clear();for(let e of[...Ae.keys()])ms(e);ye&&(nu(),ye=void 0);for(let{key:e,proto:t,names:r}of Kl)if(t)for(let i of r){let n=`${e}.${i}`,s=ls.get(n);try{s&&t[i]===s&&(t[i]=as.get(n))}catch{}}}}function qr(){be||(be=!0,Ur++,Qe=void 0,yt=void 0)}function qt(){if(be){be=!1,Ur++,pe.clear(),pt.clear(),mt.clear();for(let e of[...Ae.keys()])ds(e);Qe=void 0,yt=void 0,$e!==void 0&&Jl($e),$e=void 0,$t=1/0}}function uu(e){let t;us=(r,i)=>(t??=e())?.(r,i),bt()}var ip=["log","info","warn","error","debug","trace"],jt=()=>{},Gr=!1,jr=!1,ys=!1,Vr=new Map,Hr=new Map;function du(e){jt=e}function bs(e){Gr=e}function hu(){if(jr)return;jr=!0;let e=console;for(let r of ip){let i=e[r];if(typeof i!="function")continue;let n=function(...s){return fu(r,s),i.apply(this,s)};Vr.set(r,i),Hr.set(r,n),e[r]=n}let t=e.assert;if(typeof t=="function"){let r=function(...i){return i[0]||fu("error",["Assertion failed:",...i.slice(1)]),t.apply(this,i)};Vr.set("assert",t),Hr.set("assert",r),e.assert=r}addEventListener("error",mu,!0),addEventListener("unhandledrejection",gu)}function pu(){if(!jr)return;jr=!1;let e=console;for(let[t,r]of Hr)e[t]===r&&(e[t]=Vr.get(t));Hr.clear(),Vr.clear(),removeEventListener("error",mu,!0),removeEventListener("unhandledrejection",gu)}function fu(e,t){if(!(!Gr||ys)){ys=!0;try{let r=t.map(s=>Bt(s)),i={level:e,source:"console",text:ns(t,r),args:r},n=t.find(ct);n?.stack?i.stack=j(String(n.stack),4e3):e==="trace"&&(i.stack=wl(new Error().stack)),jt(i,Date.now())}catch{}finally{ys=!1}}}function mu(e){if(Gr)try{if(e instanceof ErrorEvent){let r={level:"error",source:"uncaught",text:e.message||String(e.error),url:e.filename||void 0,line:e.lineno||void 0,col:e.colno||void 0};ct(e.error)&&e.error.stack&&(r.stack=j(String(e.error.stack),4e3)),jt(r,Date.now());return}let t=e.target;if(t&&t.nodeType===1){let r=bl(t);jt({level:"error",source:"resource",text:`Failed to load <${t.tagName.toLowerCase()}>${r?` ${r}`:""}`,url:r||void 0},Date.now())}}catch{}}function gu(e){if(Gr)try{let t=e.reason,r=Bt(t),i={level:"error",source:"unhandledrejection",text:`Uncaught (in promise) ${ns([t],[r])}`,args:[r]};ct(t)&&t.stack&&(i.stack=j(String(t.stack),4e3)),jt(i,Date.now())}catch{}}function wt(e){return e.includes(": ;")||e.includes(": !important")}function op(e){let t=[],r=0,i=0,n=0,s=u=>{let c=e.slice(r,u+1).trim();c&&t.push(c),r=u+1};for(let u=0;u<e.length;u++){let c=e[u];if(c==="\\")u++;else if(c==='"'||c==="'")for(u++;u<e.length&&e[u]!==c;u++)e[u]==="\\"&&u++;else if(c==="(")n++;else if(c===")")n=Math.max(0,n-1);else{if(n>0)continue;if(c==="/"&&e[u+1]==="*"){let l=e.indexOf("*/",u+2);u=l<0?e.length:l+1}else c==="{"?i++:c==="}"?(i=Math.max(0,i-1),i===0&&s(u)):c===";"&&i===0&&s(u)}}return s(e.length),t}function yu(e,t){let r=[];for(let i of op(e)){if(!i.includes("var(")||/^@import/i.test(i))continue;let n=t(i);n!==null&&wt(n)&&r.push({written:n,source:i})}return r}var ap=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm;function lp(e,t){return e.replace(ap,(r,i,n,s,u,c)=>{let l=n||u||c,p=i||s||"";if(!l)return r;if(/^(?:[a-z+]+:)?\/\//i.test(l)||/^www\./i.test(l)||/^data:[^,]*,/i.test(l))return`url(${p}${l}${p})`;if(l[0]==="/"){let o=(t.includes("//")?t.split("/").slice(0,3).join("/"):t.split("/")[0]).split("?")[0];return`url(${p}${o}${l}${p})`}let a=l.split("#")[0],h=l.slice(a.length),f=t.split("#")[0].split("/");f.pop();for(let o of a.split("/"))o===".."?f.pop():o!=="."&&f.push(o);return`url(${p}${f.join("/")}${h}${p})`})}var up=e=>e.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;");function Yr(e,t,r){let i=n=>r===null?n:lp(n,r);for(let n of t){let s=i(n.written);for(let u of[s,up(s)]){let c=e.indexOf(u);if(!(c<0)){e=e.slice(0,c)+i(n.source)+e.slice(c+u.length);break}}}return e}function cp(e,t){let r=e.attributes?._cssText;if(e.type!==2||e.tagName!=="style"&&e.tagName!=="link"||typeof r!="string"||e.id===void 0||!wt(r))return;let i=t.elementCss(e.id,r);return i===r?void 0:{...e.attributes,_cssText:i}}function ws(e,t){let r=cp(e,t),i=e.childNodes?.map(s=>ws(s,t)),n=i?.some((s,u)=>s!==e.childNodes[u]);return!r&&!n?e:{...e,...r&&{attributes:r},...n&&{childNodes:i}}}function fp(e,t,r){let i=t.adds,n=t.attributes,s=i?.map(c=>{let l=ws(c.node,r);return l===c.node?c:{...c,node:l}});s?.some((c,l)=>c!==i[l])&&(i=s);let u=n?.map(c=>{let l=c.attributes._cssText;if(typeof l!="string"||!wt(l))return c;let p=r.elementCss(c.id,l);return p===l?c:{...c,attributes:{...c.attributes,_cssText:p}}});return u?.some((c,l)=>c!==n[l])&&(n=u),i===t.adds&&n===t.attributes?e:{...e,data:{...t,adds:i,attributes:n}}}function dp(e,t,r){let{id:i,styleIds:n,styles:s}=t;if(i===void 0||!n||!s)return e;let u=!1,c=s.map(l=>{let p=n.indexOf(l.styleId),a=l.rules.map(h=>{if(!wt(h.rule))return h;let f=r.adoptedRule(i,p,h.rule);return f===h.rule?h:{...h,rule:f}});return a.every((h,f)=>h===l.rules[f])?l:(u=!0,{...l,rules:a})});return u?{...e,data:{...t,styles:c}}:e}function bu(e,t){let r=e,i=r.data;if(!i)return e;if(r.type===2&&i.node){let n=ws(i.node,t);return n===i.node?e:{...r,data:{...i,node:n}}}return r.type!==3?e:i.source===0?fp(r,i,t):i.source===15?dp(r,i,t):e}function wu(e,t,r){return{type:3,timestamp:r,data:{source:0,texts:[],attributes:[{id:e,attributes:{_cssText:t}}],removes:[],adds:[]}}}var we=CSSStyleSheet.prototype,Su=we.insertRule,Cs=we.replace,Vt=we.replaceSync,hp=CSSStyleSheet,pp=window.fetch,vt=!1,vs,Ht=new WeakMap,Cu=new Map,vu=new Map,Xr=new Map,mp=500;function Eu(e,t){let r=Su.apply(this,arguments);try{if(vt&&typeof e=="string"&&e.includes("var(")&&wt(this.cssRules[r].cssText)){let i=Ht.get(this);i?i.add(e):Ht.set(this,new Set([e]))}}catch{}return r}function xu(e,t){vt&&(typeof t=="string"&&t.includes("var(")?Ht.set(e,new Set([t])):Ht.delete(e))}function Ru(e){return xu(this,e),Cs.apply(this,arguments)}function Tu(e){xu(this,e),Vt.apply(this,arguments)}function Gt(){vt||(vt=!0,we.insertRule=Eu,Cs&&(we.replace=Ru),Vt&&(we.replaceSync=Tu))}function Jr(){vt&&(vt=!1,we.insertRule===Eu&&(we.insertRule=Su),we.replace===Ru&&(we.replace=Cs),we.replaceSync===Tu&&(we.replaceSync=Vt))}var gp=e=>{try{if(!Vt)return null;vs??=new hp,Vt.call(vs,e);let t=vs.cssRules;return t.length===1?t[0].cssText:null}catch{return null}};function Es(e){let t=Xr.get(e);return t||(Xr.size>=mp&&Xr.clear(),t=yu(e,gp),Xr.set(e,t)),t}var Ss=e=>[...e&&Ht.get(e)||[]].flatMap(Es);function yp(e){let t=e.href,r=vu.get(t);if(!r){let i=e.crossOrigin==="use-credentials"?"include":"same-origin";r=pp.call(window,t,{cache:"force-cache",credentials:i}).then(n=>n.ok?n.text():null).catch(()=>null).then(n=>(Cu.set(t,n),n)),vu.set(t,r)}return r}function bp(e,t,r,i){if(!i)return t;let n=r.href,s=c=>Yr(t,[...Es(c??""),...Ss(r.sheet)],n),u=Cu.get(n);return u!==void 0?s(u):(yp(r).then(c=>{let l=s(c);l!==t&&i(wu(e,l,Date.now()))}),t)}function wp(e,t){return{elementCss(r,i){let n=e(r);if(!n)return i;if(n.nodeName==="LINK")return bp(r,i,n,t);let s=n;return Yr(i,[...Es(s.textContent??""),...Ss(s.sheet)],s.baseURI)},adoptedRule(r,i,n){let s=e(r),u=s?.adoptedStyleSheets??s?.shadowRoot?.adoptedStyleSheets;return Yr(n,Ss(u?.[i]),null)}}}function Mu(e,t){let r=wp(e,t);return{name:"tabtape/css-source",eventProcessor:i=>bu(i,r),options:{}}}var vp="data-tabtape-sandbox";function ku(e){return!!e&&("srcdoc"in e||"sandbox"in e)}function Ou(e){let{srcdoc:t,sandbox:r,...i}=e;return r!==void 0&&(i[vp]=r),i}function xs(e){let t=e.attributes,r=e.childNodes,i=!1;if(ku(t)&&(t=Ou(t),i=!0),r){let n=r.map(xs);n.some((s,u)=>s!==r[u])&&(r=n,i=!0)}return i?{...e,attributes:t,childNodes:r}:e}var Sp=2,Cp=3,Ep=0;function xp(e){let t=e,r=t.data;if(!r)return e;if(t.type===Sp&&r.node){let i=xs(r.node);return i===r.node?e:{...t,data:{...r,node:i}}}if(t.type===Cp&&r.source===Ep){let i=!1,n=r.adds?.map(u=>{let c=xs(u.node);return c===u.node?u:(i=!0,{...u,node:c})}),s=r.attributes?.map(u=>ku(u.attributes)?(i=!0,{...u,attributes:Ou(u.attributes)}):u);return i?{...t,data:{...r,adds:n,attributes:s}}:e}return e}var Iu={name:"tabtape/iframe-attrs",eventProcessor:xp,options:{}};function Rs(e,t){return{recordAfter:"DOMContentLoaded",maskAllInputs:!1,maskInputOptions:{password:!0},inlineStylesheet:!0,collectFonts:!1,recordCanvas:!1,recordCrossOriginIframes:!0,sampling:{mousemove:50,scroll:150,media:800,input:"last"},slimDOMOptions:{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:!0,headMetaDescKeywords:!0},checkoutEveryNms:e.checkoutEveryNms>0?e.checkoutEveryNms:void 0,errorHandler:()=>!0,plugins:[Iu,Mu(r=>K.mirror.getNode(r),t),au]}}function Au(e){return{...Rs(e),checkoutEveryNms:void 0,maskInputOptions:{password:!0,text:!0,tel:!0,number:!0},maskInputFn:(t,r)=>r?.type==="password"||r&&dl(r)?"*".repeat(t.length):t}}function Du(e){let t,r=EventTarget.prototype.dispatchEvent,i=()=>r.call(document,new CustomEvent(he.hello));function n(){try{K.takeFullSnapshot(!0)}catch{}}function s(){qt();try{t?.()}catch{}t=void 0,Jr(),zr()}Gt(),bt(),document.addEventListener(he.control,u=>{let c;try{c=Ut(String(u.detail))}catch{return}c.cmd==="start"?t||(Gt(),bt(),t=K(Au(c.options))??(()=>{}),qr()):c.cmd==="checkout"?t&&n():s()}),addEventListener("pageshow",u=>{u.persisted&&t&&n()}),Object.defineProperty(window,e,{value:{hello:i,get active(){return t!==void 0},canvas:et},configurable:!0}),i()}var Rp=5e3,Tp=setInterval.bind(globalThis),Mp=clearInterval.bind(globalThis),_u=()=>{},St;function Lu(e){_u=e,St===void 0&&Uu()&&(Kr(),St=Tp(Kr,Rp))}function Pu(){St!==void 0&&Kr()}function Fu(){St!==void 0&&(Kr(),Mp(St),St=void 0)}function Kr(){try{let e=Uu();if(!e)return;_u(kp(e,Np(),Y(location.href)),Date.now())}catch{}}function Uu(){try{let e=performance.memory;return e&&typeof e.usedJSHeapSize=="number"?e:void 0}catch{return}}function Np(){try{return document.getElementsByTagName("*").length}catch{return}}function kp(e,t,r){let i={kind:"memory",used:Ts(e.usedJSHeapSize),total:Ts(e.totalJSHeapSize),limit:Ts(e.jsHeapSizeLimit),url:r};return t!==void 0&&(i.nodes=t),i}var Ts=e=>Number.isFinite(e)&&e>0?Math.round(e):0;function Bu(e){let t=0;for(let r=0;r<e.length;r++){let i=e.charCodeAt(r);i<128?t+=1:i<2048?t+=2:Ip(e,r,i)?(t+=4,r++):t+=3}return t}function Ip(e,t,r){return r>=55296&&r<=56319&&t+1<e.length&&(e.charCodeAt(t+1)&64512)===56320}var $u=Symbol("timeout");async function Ms(e,t,r=0,i=15e3){let n={text:"",bytes:0,truncated:!1,timedOut:!1,countStopped:!1};if(!e)return n;let s=e.getReader(),u=new TextDecoder,c=performance.now()+i;try{for(;;){let l=c-performance.now(),p,a=await Promise.race([s.read(),new Promise(h=>{p=setTimeout(()=>h($u),Math.max(0,l))})]);if(clearTimeout(p),a===$u){n.timedOut=!0;break}if(a.done){n.truncated||(n.text+=u.decode());break}if(n.bytes+=a.value.byteLength,n.truncated||(n.text+=u.decode(a.value,{stream:!0}),n.text.length>t&&(n.text=n.text.slice(0,t),n.truncated=!0)),n.truncated&&n.bytes>=r){n.countStopped=r>0;break}}}catch(l){if(!n.truncated)throw l;n.failed=l}finally{s.cancel().catch(()=>{})}return n}var qu=new Set([101,204,205,304]),ks=window.fetch,ve=XMLHttpRequest.prototype,ju=ve.open,Vu=ve.send,Hu=ve.setRequestHeader,Qr=Navigator.prototype,As=Qr.sendBeacon,rn=()=>{},Se={captureBodies:!0,maxBodyChars:1e6},De=!1,Zr=!1,Gu=0,Xt=!1,Dp=0,tt,Jt=new Map,en=new WeakMap,nn=()=>`${Date.now().toString(36)}-${(++Dp).toString(36)}`;function Ds(e,t){Se=e,rn=t}function sn(e){De=e}function Yu(e=!1){Zr||(Zr=!0,Gu=performance.now(),Xt=e,window.fetch=Ju,ve.open=Ku,ve.send=Zu,ve.setRequestHeader=Qu,typeof As=="function"&&(Qr.sendBeacon=ec),Up())}function _s(){Zr&&(Zr=!1,window.fetch===Ju&&(window.fetch=ks),ve.open===Ku&&(ve.open=ju),ve.send===Zu&&(ve.send=Vu),ve.setRequestHeader===Qu&&(ve.setRequestHeader=Hu),Qr.sendBeacon===ec&&(Qr.sendBeacon=As),tt?.disconnect(),tt=void 0,Jt.clear())}function Xu(){let e=De;De=!0;try{let t=performance.getEntriesByType("navigation")[0];t&&(Xt=!1,tn(t,!0))}catch{}finally{De=e}}function Ls(){try{for(let t of tt?.takeRecords()??[])tn(t);let e=performance.getEntriesByType("navigation")[0];e&&!Xt&&tn(e,!0)}catch{}for(let e of[...Jt.values()])e.data.pending=!0,on(e)}function on(e){e.done||(e.done=!0,Jt.delete(e.data.id),e.data.duration=Q(performance.now()-e.t0),rn(e.data,e.ts))}function _p(e){let t={data:e,ts:Date.now(),t0:performance.now(),done:!1};return Jt.set(e.id,t),t}function Ju(e,t){let r=arguments;if(!De)return ks.apply(this,r);let i;try{i=Lp(e,t)}catch{}let n=ks.apply(this,r);if(i){let s=i;n.then(u=>Pp(s,u),u=>{s.data.error=Is(u),on(s)})}return n}function Lp(e,t){let r=e instanceof Request?e:void 0,i=r?r.url:e instanceof URL?e.href:String(e),n={id:nn(),kind:"fetch",method:String(t?.method??r?.method??"GET").toUpperCase(),url:Y(Ue(i))},s=Bp(r?.headers,t?.headers);s&&(n.reqHeaders=s);let u=_p(n);if(Se.captureBodies){let c=s?.["content-type"];t?.body!=null?Yt(n,Ps(t.body,c)):r?.body&&!r.bodyUsed&&(u.reqBody=Ms(r.clone().body,Se.maxBodyChars).then(l=>Yt(n,{text:Pr(l.text,c),truncated:l.truncated}),()=>Yt(n,{note:"unreadable"})))}return u}async function Pp(e,t){let r=e.data;try{r.ttfb=Q(performance.now()-e.t0),r.status=t.status,t.statusText&&(r.statusText=t.statusText),r.resHeaders=Os(t.headers);let i=t.headers.get("content-type")??"";if(i&&(r.mime=i),t.type==="opaque"||t.type==="opaqueredirect")r.resBodyNote="opaque response (no-cors)";else if(Se.captureBodies&&r.method!=="HEAD"&&!qu.has(t.status))if(/event-stream/i.test(i))r.resBodyNote="event stream, not captured";else if(!i||_r.test(i)){let n=await Ms(t.clone().body,Se.maxBodyChars,67108864);r.resBody=n.text,r.resSize=n.bytes,n.truncated&&(r.resBodyTruncated=!0),n.timedOut?r.resBodyNote=`body still streaming after ${15e3/1e3}s, captured partially`:n.countStopped?r.resBodyNote=`over ${67108864/(1024*1024)} MB, size not measured further`:n.failed!==void 0&&(r.resBodyNote=`body broke off: ${Is(n.failed)}`)}else{let n=t.headers.get("content-length");r.resBodyNote=`binary (${i}${n?`, ${n} bytes`:""})`}await e.reqBody}catch(i){r.resBodyNote=`unreadable: ${Is(i)}`}on(e)}function Ku(e,t){if(De)try{en.set(this,{data:{id:nn(),kind:"xhr",method:String(e).toUpperCase(),url:Y(Ue(String(t)))},ts:0,t0:0,done:!1})}catch{}else en.delete(this);return ju.apply(this,arguments)}function Qu(e,t){let r=en.get(this);return r&&((r.data.reqHeaders??={})[String(e).toLowerCase()]=String(t)),Hu.call(this,e,t)}function Zu(e){let t=en.get(this);if(t&&De&&t.t0===0)try{t.ts=Date.now(),t.t0=performance.now(),Jt.set(t.data.id,t),Se.captureBodies&&e!=null&&Yt(t.data,Ps(e,t.data.reqHeaders?.["content-type"]));let r=this;r.addEventListener("readystatechange",()=>{r.readyState===2&&t.data.ttfb===void 0&&(t.data.ttfb=Q(performance.now()-t.t0))}),r.addEventListener("error",()=>t.data.error??="network error"),r.addEventListener("abort",()=>t.data.error??="aborted"),r.addEventListener("timeout",()=>t.data.error??="timeout"),r.addEventListener("loadend",()=>{try{Fp(r,t.data)}catch{}on(t)})}catch{}return Vu.apply(this,arguments)}function Fp(e,t){t.status=e.status,e.statusText&&(t.statusText=e.statusText),t.resHeaders=$p(e.getAllResponseHeaders());let r=e.getResponseHeader("content-type")??"";if(r&&(t.mime=r),!(!Se.captureBodies||t.error||qu.has(e.status)))switch(e.responseType){case"":case"text":{if(r&&!_r.test(r)){t.resBodyNote=`binary (${r})`;return}zu(t,e.responseText);return}case"json":zu(t,Te(e.response)??"null");return;case"arraybuffer":t.resBodyNote=`ArrayBuffer, ${e.response?.byteLength??0} bytes`;return;case"blob":t.resBodyNote=`Blob, ${e.response?.size??0} bytes`;return;default:t.resBodyNote=e.responseType}}function zu(e,t){e.resSize=Bu(t),t.length>Se.maxBodyChars?(e.resBody=t.slice(0,Se.maxBodyChars),e.resBodyTruncated=!0):e.resBody=t}function ec(e,t){let r=As.apply(this,arguments);if(De)try{let i={id:nn(),kind:"beacon",method:"POST",url:Y(Ue(String(e)))};r?i.statusText="queued":i.error="rejected by the browser",Se.captureBodies&&t!=null&&Yt(i,Ps(t)),rn(i,Date.now())}catch{}return r}function Up(){try{tt=new PerformanceObserver(e=>{for(let t of e.getEntries())tn(t)}),tt.observe({type:"resource",buffered:!0}),tt.observe({type:"navigation",buffered:!0})}catch{tt=void 0}}function tn(e,t=!1){if(!De)return;let r=e;if(r.entryType==="resource"){if(r.initiatorType==="fetch"||r.initiatorType==="xmlhttprequest"||r.initiatorType==="beacon"||r.startTime<Gu-50||r.name.startsWith("chrome-extension:")||r.name.startsWith(location.origin+Dr)||r.initiatorType==="other"&&/\/favicon\.ico($|\?)/.test(r.name))return}else if(r.entryType==="navigation"){if(Xt||r.duration===0&&!t)return;Xt=!0}else return;let i={id:nn(),kind:r.entryType==="navigation"?"navigation":"resource",method:"GET",url:Y(r.name),duration:Q(r.duration)};r.entryType==="navigation"?(i.navType=r.type,r.duration===0&&(i.pending=!0)):i.initiator=r.initiatorType,r.responseStatus&&(i.status=r.responseStatus),r.responseStart>0&&(i.ttfb=Q(r.responseStart-r.startTime)),r.transferSize&&(i.transferSize=r.transferSize),r.decodedBodySize&&(i.resSize=r.decodedBodySize),r.contentType&&(i.mime=r.contentType),rn(i,Math.round(performance.timeOrigin+r.startTime))}function Yt(e,t){t.text!==void 0&&(e.reqBody=t.text),t.note&&(e.reqBodyNote=t.note),t.truncated&&(e.reqBodyTruncated=!0)}function Ns(e){return e.length>Se.maxBodyChars?{text:e.slice(0,Se.maxBodyChars),truncated:!0}:{text:e}}function Ps(e,t=""){try{if(typeof e=="string")return Ns(Pr(e,t));if(e instanceof URLSearchParams)return Ns(Lr(e.toString()));if(e instanceof FormData){let r={};return e.forEach((i,n)=>{let s=typeof i=="string"?Fe(n)?Xe:j(i,1e4):`[File ${i.name}, ${i.size} bytes${i.type?`, ${i.type}`:""}]`,u=r[n];r[n]=u===void 0?s:Array.isArray(u)?[...u,s]:[u,s]}),{text:Te(r),note:"FormData"}}if(e instanceof Blob)return{note:`Blob, ${e.size} bytes${e.type?`, ${e.type}`:""}`};if(e instanceof ArrayBuffer||ArrayBuffer.isView(e)){let r=e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength);return _r.test(t)?Ns(Pr(new TextDecoder().decode(r),t)):{note:`binary, ${r.byteLength} bytes`}}return e instanceof ReadableStream?{note:"stream"}:e instanceof Document?{note:"Document"}:{note:typeof e}}catch{return{note:"unreadable"}}}function Os(e){if(!e)return;let t={};try{if(e instanceof Headers)e.forEach((r,i)=>t[i]=r);else if(Array.isArray(e))for(let[r,i]of e)t[String(r).toLowerCase()]=String(i);else for(let[r,i]of Object.entries(e))t[r.toLowerCase()]=String(i)}catch{}return Object.keys(t).length?t:void 0}function Bp(e,t){let r=Os(e),i=Os(t);return r||i?{...r,...i}:void 0}function $p(e){let t={};for(let r of e.trim().split(/[\r\n]+/)){let i=r.indexOf(":");i>0&&(t[r.slice(0,i).trim().toLowerCase()]=r.slice(i+1).trim())}return Object.keys(t).length?t:void 0}function Is(e){return e instanceof Error?`${e.name}: ${e.message}`:String(e)}var ln=class{t;o=0;i=[];u(t){if(t.hadRecentInput)return;let r=this.i[0],i=this.i.at(-1);this.o&&r&&i&&t.startTime-i.startTime<1e3&&t.startTime-r.startTime<5e3?(this.o+=t.value,this.i.push(t)):(this.o=t.value,this.i=[t]),this.t?.(t)}},Rt=()=>{let e=performance.getEntriesByType("navigation")[0];if(e&&e.responseStart>0&&e.responseStart<performance.now())return e},un=e=>{if(document.readyState==="loading")return"loading";let t=Rt();if(t){if(e<t.domInteractive)return"loading";if(t.domContentLoadedEventStart===0||e<t.domContentLoadedEventStart)return"dom-interactive";if(t.domComplete===0||e<t.domComplete)return"dom-content-loaded"}return"complete"},zp=e=>{let t=e.nodeName;return e.nodeType===1?t.toLowerCase():t.toUpperCase().replace(/^#/,"")},zs=e=>{let t="";try{for(;e?.nodeType!==9;){let r=e,i=r.id?"#"+r.id:[zp(r),...Array.from(r.classList).sort()].join(".");if(t.length+i.length>99)return t||i;if(t=t?i+">"+t:i,r.id)break;e=r.parentNode}}catch{}return t},tc=new WeakMap;function Et(e,t){let r=tc.get(t);return r||(r=new WeakMap,tc.set(t,r)),r.get(e)||r.set(e,new t),r.get(e)}var fc=-1,dc=()=>fc,Tt=e=>{addEventListener("pageshow",t=>{t.persisted&&(fc=t.timeStamp,e(t))},!0)},Ne=(e,t,r,i)=>{let n,s;return u=>{t.value>=0&&(u||i)&&(s=t.value-(n??0),(s||n===void 0)&&(n=t.value,t.delta=s,t.rating=((c,l)=>c>l[1]?"poor":c>l[0]?"needs-improvement":"good")(t.value,r),e(t)))}},qs=e=>{requestAnimationFrame(()=>requestAnimationFrame(e))},Kt=()=>Rt()?.activationStart??0,ke=(e,t=-1)=>{let r=Rt(),i="navigate";return dc()>=0?i="back-forward-cache":r&&(document.prerendering||Kt()>0?i="prerender":document.wasDiscarded?i="restore":r.type&&(i=r.type.replace(/_/g,"-"))),{name:e,value:t,rating:"good",delta:0,entries:[],id:`v5-${Date.now()}-${Math.floor(8999999999999*Math.random())+1e12}`,navigationType:i}},xt=(e,t,r={})=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){let i=new PerformanceObserver(n=>{queueMicrotask(()=>{t(n.getEntries())})});return i.observe({type:e,buffered:!0,...r}),i}}catch{}},js=e=>{let t=!1;return()=>{t||(e(),t=!0)}},Ct=-1,hc=new Set,rc=()=>document.visibilityState!=="hidden"||document.prerendering?1/0:0,Us=e=>{if(document.visibilityState==="hidden"){if(e.type==="visibilitychange")for(let t of hc)t();isFinite(Ct)||(Ct=e.type==="visibilitychange"?e.timeStamp:0,removeEventListener("prerenderingchange",Us,!0))}},dn=()=>{if(Ct<0){let e=Kt();Ct=(document.prerendering?void 0:globalThis.performance.getEntriesByType("visibility-state").find(r=>r.name==="hidden"&&r.startTime>=e)?.startTime)??rc(),addEventListener("visibilitychange",Us,!0),addEventListener("prerenderingchange",Us,!0),Tt(()=>{setTimeout(()=>{Ct=rc()})})}return{get firstHiddenTime(){return Ct},onHidden(e){hc.add(e)}}},hn=e=>{document.prerendering?addEventListener("prerenderingchange",e,!0):e()},nc=[1800,3e3],pc=(e,t={})=>{hn(()=>{let r=dn(),i,n=ke("FCP"),s=xt("paint",u=>{for(let c of u)c.name==="first-contentful-paint"&&(s.disconnect(),c.startTime<r.firstHiddenTime&&(n.value=Math.max(c.startTime-Kt(),0),n.entries.push(c),i(!0)))});s&&(i=Ne(e,n,nc,t.reportAllChanges),Tt(u=>{n=ke("FCP"),i=Ne(e,n,nc,t.reportAllChanges),qs(()=>{n.value=performance.now()-u.timeStamp,i(!0)})}))})},ic=[.1,.25],sc=e=>e.find(t=>t.node?.nodeType===1)||e[0],mc=(e,t={})=>{let r=Et(t=Object.assign({},t),ln),i=new WeakMap;r.t=n=>{if(n?.sources?.length){let s=sc(n.sources),u=s?.node;if(u){let c=t.generateTarget?.(u)??zs(u);i.set(s,c)}}},((n,s={})=>{let u=dn();pc(js(()=>{let c,l=ke("CLS",0),p=Et(s,ln),a=f=>{for(let o of f)p.u(o);p.o>l.value&&(l.value=p.o,l.entries=p.i,c())},h=xt("layout-shift",a);h&&(c=Ne(n,l,ic,s.reportAllChanges),u.onHidden(()=>{a(h.takeRecords()),c(!0)}),Tt(()=>{p.o=0,l=ke("CLS",0),c=Ne(n,l,ic,s.reportAllChanges),qs(c)}),setTimeout(c))}))})(n=>{e((s=>{let u={};if(s.entries.length){let c=s.entries.reduce((l,p)=>l.value>p.value?l:p);if(c?.sources?.length){let l=sc(c.sources);l&&(u={largestShiftTarget:i.get(l),largestShiftTime:c.startTime,largestShiftValue:c.value,largestShiftSource:l,largestShiftEntry:c,loadState:un(c.startTime)})}}return Object.assign(s,{attribution:u})})(n))},t)},gc=(e,t={})=>{pc(r=>{e((i=>{let n={timeToFirstByte:0,firstByteToFCP:i.value,loadState:un(dc())};if(i.entries.length){let s=Rt(),u=i.entries.at(-1);if(s){let c=s.activationStart||0,l=Math.max(0,s.responseStart-c);n={timeToFirstByte:l,firstByteToFCP:i.value-l,loadState:un(i.entries[0].startTime),navigationEntry:s,fcpEntry:u}}}return Object.assign(i,{attribution:n})})(r))},t)},yc=0,Fs=1/0,an=0,qp=e=>{for(let t of e)t.interactionId&&(Fs=Math.min(Fs,t.interactionId),an=Math.max(an,t.interactionId),yc=an?(an-Fs)/7+1:0)},Bs,oc=()=>Bs?yc:performance.interactionCount??0,jp=()=>{"interactionCount"in performance||Bs||(Bs=xt("event",qp,{durationThreshold:0}))},ac=0,cn=class{l=[];h=new Map;m;p;v(){ac=oc(),this.l.length=0,this.h.clear()}M(){let t=Math.min(this.l.length-1,Math.floor((oc()-ac)/50));return this.l[t]}u(t){if(this.m?.(t),!t.interactionId&&t.entryType!=="first-input")return;let r=this.l.at(-1),i=this.h.get(t.interactionId);if(i||this.l.length<10||t.duration>r.T){if(i?t.duration>i.T?(i.entries=[t],i.T=t.duration):t.duration===i.T&&t.startTime===i.entries[0].startTime&&i.entries.push(t):(i={id:t.interactionId,entries:[t],T:t.duration},this.h.set(i.id,i),this.l.push(i)),this.l.sort((n,s)=>s.T-n.T),this.l.length>10){let n=this.l.splice(10);for(let s of n)this.h.delete(s.id)}this.p?.(i)}}},$s=e=>{let t=globalThis.requestIdleCallback||setTimeout,r=globalThis.cancelIdleCallback||clearTimeout;if(document.visibilityState==="hidden")e();else{let i=js(e),n=-1,s=()=>{r(n),i()};addEventListener("visibilitychange",s,{once:!0,capture:!0}),n=t(()=>{removeEventListener("visibilitychange",s,{capture:!0}),i()})}},lc=[200,500],bc=(e,t={})=>{let r=Et(t=Object.assign({},t),cn),i=[],n=[],s=0,u=new WeakMap,c=new WeakMap,l=!1,p=()=>{l||($s(a),l=!0)},a=()=>{let o=new Set(r.l.map(g=>u.get(g.entries[0]))),m=n.length-10;n=n.filter((g,C)=>C>=m||o.has(g));let d=new Set;for(let g of n){let C=h(g.startTime,g.processingEnd);for(let b of C)d.add(b)}i=i.filter(g=>g.startTime>s||d.has(g)),l=!1};r.m=o=>{let m=o.startTime+o.duration,d;s=Math.max(s,o.processingEnd);for(let g=n.length-1;g>=0;g--){let C=n[g];if(Math.abs(m-C.renderTime)<=8){d=C,d.startTime=Math.min(o.startTime,d.startTime),d.processingStart=Math.min(o.processingStart,d.processingStart),d.processingEnd=Math.max(o.processingEnd,d.processingEnd),t.includeProcessedEventEntries!==!1&&d.entries.push(o);break}}d||(d={startTime:o.startTime,processingStart:o.processingStart,processingEnd:o.processingEnd,renderTime:m,entries:t.includeProcessedEventEntries!==!1?[o]:[]},n.push(d)),(o.interactionId||o.entryType==="first-input")&&u.set(o,d),p()},r.p=o=>{if(!c.get(o)){let m=o.entries.find(d=>d.target)?.target;if(m){let d=t.generateTarget?.(m)??zs(m);c.set(o,d)}else{let d=o.entries.find(g=>g.targetSelector)?.targetSelector;d&&c.set(o,d)}}};let h=(o,m)=>{let d=[];for(let g of i)if(!(g.startTime+g.duration<o)){if(g.startTime>m)break;d.push(g)}return d},f=o=>{let m=o.entries[0],d=u.get(m),g=m.processingStart,C=Math.max(m.startTime+m.duration,g),b=Math.min(d.processingEnd,C),v=d.entries.sort((S,x)=>S.processingStart-x.processingStart),E=h(m.startTime,b),w=r.h.get(m.interactionId),y={interactionTarget:c.get(w),interactionType:m.name.startsWith("key")?"keyboard":"pointer",interactionTime:m.startTime,nextPaintTime:C,processedEventEntries:v,longAnimationFrameEntries:E,inputDelay:g-m.startTime,processingDuration:b-g,presentationDelay:C-b,loadState:un(m.startTime),longestScript:void 0,totalScriptDuration:void 0,totalStyleAndLayoutDuration:void 0,totalPaintDuration:void 0,totalUnattributedDuration:void 0};return(S=>{if(!S.longAnimationFrameEntries?.length)return;let x=S.interactionTime,M=S.inputDelay,T=S.processingDuration,I,O,R=0,re=0,ne=0,U=0;for(let Z of S.longAnimationFrameEntries){re=re+Z.startTime+Z.duration-Z.styleAndLayoutStart;for(let $ of Z.scripts){let B=$.startTime+$.duration;if(B<x)continue;let ue=B-Math.max(x,$.startTime),N=$.duration?ue/$.duration*$.forcedStyleAndLayoutDuration:0;R+=ue-N,re+=N,ue>U&&(O=$.startTime<x+M?"input-delay":$.startTime>=x+M+T?"presentation-delay":"processing-duration",I=$,U=ue)}}let P=S.longAnimationFrameEntries.at(-1),V=P?P.startTime+P.duration:0;V>=x+M+T&&(ne=S.nextPaintTime-V),I&&O&&(S.longestScript={entry:I,subpart:O,intersectingDuration:U}),S.totalScriptDuration=R,S.totalStyleAndLayoutDuration=re,S.totalPaintDuration=ne,S.totalUnattributedDuration=S.nextPaintTime-x-R-re-ne})(y),Object.assign(o,{attribution:y})};xt("long-animation-frame",o=>{i=i.concat(o),p()}),((o,m={})=>{if(!globalThis.PerformanceEventTiming||!("interactionId"in PerformanceEventTiming.prototype))return;let d=dn();hn(()=>{jp();let g,C=ke("INP"),b=Et(m,cn),v=w=>{$s(()=>{for(let S of w)b.u(S);let y=b.M();y&&y.T!==C.value&&(C.value=y.T,C.entries=y.entries,g())})},E=xt("event",v,{durationThreshold:m.durationThreshold??40});g=Ne(o,C,lc,m.reportAllChanges),E&&(E.observe({type:"first-input",buffered:!0}),d.onHidden(()=>{v(E.takeRecords()),g(!0)}),Tt(()=>{b.v(),C=ke("INP"),g=Ne(o,C,lc,m.reportAllChanges)}))})})(o=>{e(f(o))},t)},fn=class{m;u(t){this.m?.(t)}},uc=[2500,4e3],wc=(e,t={})=>{let r=Et(t=Object.assign({},t),fn),i=new WeakMap;r.m=n=>{let s=n.element;if(s){let u=t.generateTarget?.(s)??zs(s);i.set(n,u)}else n.id&&i.set(n,`#${n.id}`)},((n,s={})=>{hn(()=>{let u=dn(),c,l=ke("LCP"),p=Et(s,fn),a=f=>{s.reportAllChanges||(f=f.slice(-1));for(let o of f)p.u(o),o.startTime<u.firstHiddenTime&&(l.value=Math.max(o.startTime-Kt(),0),l.entries=[o],c())},h=xt("largest-contentful-paint",a);if(h){c=Ne(n,l,uc,s.reportAllChanges);let f=js(()=>{a(h.takeRecords()),h.disconnect(),c(!0)}),o=m=>{m.isTrusted&&($s(f),removeEventListener(m.type,o,{capture:!0}))};for(let m of["keydown","click","visibilitychange"])addEventListener(m,o,{capture:!0});Tt(m=>{l=ke("LCP"),c=Ne(n,l,uc,s.reportAllChanges),qs(()=>{l.value=performance.now()-m.timeStamp,c(!0)})})}})})(n=>{e((s=>{let u={timeToFirstByte:0,resourceLoadDelay:0,resourceLoadDuration:0,elementRenderDelay:s.value};if(s.entries.length){let c=s.entries.at(-1),l=c.url&&performance.getEntriesByType("resource").find(a=>a.name===c.url);u.target=i.get(c),u.lcpEntry=c,c.url&&(u.url=c.url),l&&(u.lcpResourceEntry=l);let p=Rt();if(p){let a=p.activationStart||0,h=Math.max(0,p.responseStart-a),f=Math.max(h,l?(l.requestStart||l.startTime)-a:0),o=Math.min(s.value,Math.max(f,l?l.responseEnd-a:0));u={...u,timeToFirstByte:h,resourceLoadDelay:f-h,resourceLoadDuration:o-f,elementRenderDelay:s.value-o,navigationEntry:p}}}return Object.assign(s,{attribution:u})})(n))},t)},cc=[800,1800],Ws=e=>{document.prerendering?hn(()=>Ws(e)):document.readyState!=="complete"?addEventListener("load",()=>Ws(e),!0):setTimeout(e)},vc=(e,t={})=>{((r,i={})=>{let n=ke("TTFB"),s=Ne(r,n,cc,i.reportAllChanges);Ws(()=>{let u=Rt();u&&(n.value=Math.max(u.responseStart-Kt(),0),n.entries=[u],s(!0),Tt(()=>{n=ke("TTFB",0),s=Ne(r,n,cc,i.reportAllChanges),s(!0)}))})})(r=>{e((i=>{let n={waitingDuration:0,cacheDuration:0,dnsDuration:0,connectionDuration:0,requestDuration:0};if(i.entries.length){let s=i.entries[0],u=s.activationStart||0,c=Math.max((s.workerStart||s.fetchStart)-u,0),l=Math.max(s.domainLookupStart-u,0),p=Math.max(s.connectStart-u,0),a=Math.max(s.connectEnd-u,0);n={waitingDuration:c,cacheDuration:l-c,dnsDuration:p-l,connectionDuration:a-p,requestDuration:i.value-a,navigationEntry:s}}return Object.assign(i,{attribution:n})})(r))},t)};var Sc="long-animation-frame",Vp=5,pn=()=>{},rt=!1,Cc=!1,Zt,xc=0,Vs=new Map;function Rc(e,t){if(pn=e,rt)return;rt=!0;let r=Date.now();for(let i of Vs.values())Oe(()=>pn(i,r));Cc||(Cc=!0,Hp()),Gp(t?0:performance.now())}function Hs(){let e=Zt;rt&&e&&Oe(()=>Mc(e.takeRecords()))}function Tc(){rt&&(Hs(),rt=!1,Zt?.disconnect(),Zt=void 0)}function Hp(){addEventListener("pageshow",t=>t.persisted&&Vs.clear(),!0);let e={reportAllChanges:!0};Oe(()=>wc(Qt,e)),Oe(()=>mc(Qt,e)),Oe(()=>bc(Qt,e)),Oe(()=>gc(Qt,e)),Oe(()=>vc(Qt,e))}function Qt(e){Oe(()=>{let t=Yp(e,{timeOrigin:performance.timeOrigin,now:performance.now(),url:Y(location.href)});Vs.set(t.name,t),rt&&pn(t,Date.now())})}function Gp(e){xc=e,!Zt&&Oe(()=>{if(!PerformanceObserver.supportedEntryTypes?.includes(Sc))return;let t=new PerformanceObserver(r=>Oe(()=>Mc(r.getEntries())));t.observe({type:Sc,buffered:!0}),Zt=t})}function Mc(e){if(!rt)return;let t=Y(location.href);for(let r of e){let i=r;i.startTime+i.duration<xc||pn(Xp(i,t),Math.round(performance.timeOrigin+i.startTime))}}function Yp(e,t){let r=c=>Math.round(t.timeOrigin+c),i=()=>r(e.entries.at(-1)?.startTime??t.now),n={};switch(e.name){case"LCP":{let c=e.attribution;n.target=c.target,c.url&&(n.url=Y(c.url)),n.timeToFirstByte=Q(c.timeToFirstByte),n.resourceLoadDelay=Q(c.resourceLoadDelay),n.resourceLoadDuration=Q(c.resourceLoadDuration),n.elementRenderDelay=Q(c.elementRenderDelay),n.time=i();break}case"CLS":{let c=e.attribution;n.target=c.largestShiftTarget,c.largestShiftValue!==void 0&&(n.largestShiftValue=Ec(c.largestShiftValue)),c.largestShiftTime!==void 0&&(n.time=r(c.largestShiftTime)),n.loadState=c.loadState;break}case"INP":{let c=e.attribution;n.target=c.interactionTarget||void 0,n.interactionType=c.interactionType,n.inputDelay=Q(c.inputDelay),n.processingDuration=Q(c.processingDuration),n.presentationDelay=Q(c.presentationDelay),n.loadState=c.loadState,n.time=r(c.interactionTime);break}case"FCP":{let c=e.attribution;n.timeToFirstByte=Q(c.timeToFirstByte),n.firstByteToFCP=Q(c.firstByteToFCP),n.loadState=c.loadState,n.time=i();break}case"TTFB":{let c=e.attribution;n.waitingDuration=Q(c.waitingDuration),n.cacheDuration=Q(c.cacheDuration),n.dnsDuration=Q(c.dnsDuration),n.connectionDuration=Q(c.connectionDuration),n.requestDuration=Q(c.requestDuration);break}}let s={kind:"vital",name:e.name,value:e.name==="CLS"?Ec(e.value):Q(e.value),rating:e.rating,id:e.id,navigationType:e.navigationType,url:t.url},u=Jp(n);return Object.keys(u).length&&(s.attribution=u),s}function Xp(e,t){let r=[...e.scripts??[]].sort((i,n)=>n.duration-i.duration).slice(0,Vp).map(i=>{let n={duration:Math.round(i.duration)};return i.sourceURL&&(n.url=j(Y(i.sourceURL),2e3)),i.sourceFunctionName&&(n.fn=j(i.sourceFunctionName,200)),i.invoker&&(n.invoker=j(i.invoker,500)),i.invokerType&&(n.invokerType=i.invokerType),n});return{kind:"loaf",duration:Math.round(e.duration),blockingDuration:Math.round(e.blockingDuration),scripts:r,url:t}}var Ec=e=>Math.round(e*1e4)/1e4;function Jp(e){let t={};for(let[r,i]of Object.entries(e))i!==void 0&&(t[r]=i);return t}function Oe(e){try{e()}catch{}}var _c="tabtape:track",Lc="tabtape:identify",Pc="tabtape:state",Gs=100,mn=200,Fc=8*1024,Nc={calls:100,perMs:1e3},Qp=[rs,{depth:4,items:50,string:500},{depth:4,items:20,string:200},{depth:3,items:10,string:100},{depth:2,items:10,string:50}],gn="\u2026";function Zp(e){if(typeof e!="string")return;let t=e.trim();return t&&t.length<=Gs*2&&[...t].length<=Gs?t:void 0}function em(e){let t;if(typeof e=="string")t=e.trim();else if(typeof e=="number"&&Number.isFinite(e)||typeof e=="bigint")t=String(e);else return;if(!t)return;if(t.length<=mn)return t;let r=/[\uD800-\uDBFF]/.test(t[mn-1])?mn-1:mn;return t.slice(0,r)}function tm(e){let t=0;for(let r=0;r<e.length;r++){let i=e.charCodeAt(r);i<128?t+=1:i<2048?t+=2:i>=55296&&i<=56319&&(e.charCodeAt(r+1)&64512)===56320?(t+=4,r++):t+=3}return t}function er(e,t=!1){if(Array.isArray(e)){for(let r=0;r<e.length;r++)e[r]=er(e[r],t);return e}if(e&&typeof e=="object"){let r=e;for(let i of Object.keys(r)){let n=r[i];i==="[[Map]]"&&Array.isArray(n)?r[i]=n.map(s=>Array.isArray(s)&&s.length===2&&typeof s[0]=="string"?[s[0],er(s[1],t||Fe(s[0]))]:er(s,t)):r[i]=er(n,t||Fe(i))}return r}return t&&(typeof e=="string"||typeof e=="number")?Xe:e}function kc(e){if(e==null)return{};let t={};for(let[r,i]of Qp.entries())if(t=rm(er(Bt(e,i))),Uc(t)<=Fc)return Oc(t,r>0);return Oc(nm(t),!0)}function rm(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)?e:{value:e}}function Oc(e,t){let r={};return Object.keys(e).length&&(r.props=e),t&&(r.truncated=!0),r}function Uc(e){return tm(Te(e)??"")}function nm(e){let t=e[gn],r=typeof t=="string"&&Number.parseInt(t,10)||0,i=Object.keys(e).filter(c=>c!==gn),n={},s=0;for(let c of i){n[c]=e[c];let l=i.length-s-1+r;if(Uc(l?{...n,[gn]:`${l} more keys`}:n)>Fc){delete n[c];break}s++}let u=i.length-s+r;return u&&(n[gn]=`${u} more keys`),n}var Ys=class{calls;perMs;clock;times=[];oldest=0;constructor(t,r,i){this.calls=t,this.perMs=r,this.clock=i}take(){let t=this.clock();return this.times.length<this.calls?(this.times.push(t),!0):t-this.times[this.oldest]<this.perMs?!1:(this.times[this.oldest]=t,this.oldest=(this.oldest+1)%this.calls,!0)}};function im(e){let t=e.now??Date.now,r=e.url??(()=>Y(location.href)),i=e.warn??(o=>console.warn(o)),n=new Ys(Nc.calls,Nc.perMs,e.clock??(()=>performance.now())),s=new Set,u=!1,c=0,l=!1;function p(o){if(!(!u||l)){l=!0;try{o()}catch{}finally{l=!1}}}function a(o,m){if(!s.has(o)){s.add(o);try{i(m())}catch{}}}function h(){return n.take()?!0:(c++,!1)}function f(o){c&&(o.dropped=c,c=0),e.emit(o,t())}return{get active(){return u},setActive(o){o&&!u&&(c=0),u=o},track(o,m){p(()=>{let d=Zp(o);if(d===void 0){a("track",()=>`tabtape.track: the event name must be a string of 1\u2013${Gs} characters, got ${Ic(o)}. The event was not recorded.`);return}if(!h())return;let g=kc(m),C={name:"custom",event:d,url:r()};g.props&&(C.props=g.props),g.truncated&&(C.propsTruncated=!0),f(C)})},identify(o,m){p(()=>{let d=em(o);if(d===void 0){a("identify",()=>`tabtape.identify: the user id must be a non-empty string or a number, got ${Ic(o)}. The call was ignored.`);return}if(!h())return;let g=kc(m),C={name:"identify",userId:d,url:r()};g.props&&(C.traits=g.props),g.truncated&&(C.propsTruncated=!0),f(C)})}}}function Ic(e){return typeof e=="string"?e.trim()?`${[...e.trim()].length} characters`:"an empty string":e===null?"null":typeof e}var Ac=()=>{},ze,yn,bn=!1,Dc=!1;function Bc(e){Ac=e,ze??=im({emit:(t,r)=>Ac(t,r)}),ze.setActive(!0),sm(ze),bn||(bn=!0,addEventListener(_c,Wc),addEventListener(Lc,zc),addEventListener(Pc,qc))}function $c(){ze?.setActive(!1),bn&&(bn=!1,removeEventListener(_c,Wc),removeEventListener(Lc,zc),removeEventListener(Pc,qc))}function sm(e){try{if(yn&&window.tabtape===yn||"tabtape"in window)return;yn??=Object.freeze({track(t,r){e.track(t,r)},identify(t,r){e.identify(t,r)},state(t,r,i){jc(e,t,r,i)},get isRecording(){return e.active}}),Object.defineProperty(window,"tabtape",{value:yn,configurable:!0,writable:!0,enumerable:!1})}catch{}}function Xs(e){let t=e.detail;return t!==null&&typeof t=="object"?t:{}}function Wc(e){try{let t=Xs(e);ze?.track(t.name,t.props)}catch{}}function zc(e){try{let t=Xs(e);ze?.identify(t.userId,t.traits)}catch{}}function qc(e){try{let t=Xs(e);ze&&jc(ze,t.store,t.action,t.state)}catch{}}function jc(e,t,r,i){if(e.active)try{let n=Ye();n?n.manual(t,r,i):Dc||(Dc=!0,console.warn("tabtape.state: state recording is off in the tabtape extension settings; the call was ignored."))}catch{}}var tr=Symbol.for("tabtape.recorder"),am=5e3,lm=15e3,Vc=window;Vc[tr]?Vc[tr].hello():window.top!==window?hl()?Du(tr):uu(um):cm();function um(){let e=window;for(;e.parent!==e;){e=e.parent;try{let t=e[tr];if(t?.canvas)return t.canvas}catch{return}}}function cm(){let e=EventTarget.prototype.dispatchEvent,t=document.readyState==="loading",r="pending",i="",n=!1,s,u,c=!1,l=[],p=(y,S)=>e.call(document,new CustomEvent(y,{detail:S}));function a(y,S,x){if(r==="off")return;let M;try{M=Te({ts:Math.round(S),type:y,data:x})}catch{return}f(y,M)}function h(y,S,x){r!=="off"&&f(y,`{"ts":${Math.round(S)},"type":${Te(y)},"data":${x}}`)}function f(y,S){r==="active"?p(he.data,S):l.length<am&&l.push({type:y,line:S})}let o={captureBodies:!0,maxBodyChars:1e6,checkoutEveryNms:0,inPageNetwork:!0,recordState:!0};function m(y){du((S,x)=>a("console",x,S)),hu(),bs(!0),Gt(),bt(),y.inPageNetwork?(Ds(y,(S,x)=>a("network",x,S)),Yu(u?.inPageNetwork===!1),sn(!0)):(sn(!1),_s())}function d(y){if(y===c)return;c=y;let S=Ye();if(S)try{y?S.start((x,M)=>h("state",M,x)):S.stop()}catch{}}function g(){sn(!1),bs(!1),_s(),pu(),Jr(),zr()}m(o);let C=setTimeout(()=>r==="pending"&&E(),lm);function b(y,S){if(clearTimeout(C),r==="active"&&y===i){m(S),u=S,d(S.recordState);return}r==="active"&&v(),i=y,m(S),u=S,r="active";for(let{type:x,line:M}of l.splice(0))x==="network"&&!S.inPageNetwork||p(he.data,M);!S.inPageNetwork&&!t&&(Ds(S,(x,M)=>a("network",M,x)),Xu()),s=K({...Rs(S,x=>a("rrweb",x.timestamp,x)),emit:(x,M)=>{a("rrweb",x.timestamp,x),M&&c&&Ye()?.checkout(),x.type===_.FullSnapshot&&p(he.snapshot)}})??void 0,qr(),xl((x,M)=>a("event",M,x),t&&!n?"load":"start"),Bc((x,M)=>a("event",M,x)),Rc((x,M)=>a("perf",M,x),t&&!n),Lu((x,M)=>a("perf",M,x)),d(S.recordState),n=!0}function v(){Ls(),d(!1),Tc(),Fu(),$c(),Rl(),qt();try{s?.()}catch{}s=void 0,p(he.flush)}function E(){clearTimeout(C),r==="active"&&v(),r="off",l.length=0,g();try{Ye()?.disable()}catch{}}document.addEventListener(he.control,y=>{let S;try{S=Ut(String(y.detail))}catch{return}S.cmd==="start"?b(S.sessionId,S.options):E()}),document.addEventListener(he.info,()=>{let y={stateHook:"off",stores:[]};try{let S=Ye()?.info();S&&(y={stateHook:S.hook,stores:S.stores})}catch{}p(he.infoReply,Te(y))}),addEventListener("pagehide",()=>{r==="active"&&(Tl(),u?.inPageNetwork!==!1&&Ls(),Hs(),Pu(),p(he.flush))}),addEventListener("pageshow",y=>{if(!(!y.persisted||r!=="active")){try{K.takeFullSnapshot(!0)}catch{}Be("bfcache")}});let w=()=>p(he.hello);Object.defineProperty(window,tr,{value:{hello:w,get active(){return r==="active"},canvas:et},configurable:!0}),w()}})();
133
145
  //# sourceMappingURL=recorder.js.map