@posthog/rrweb-snapshot 0.0.47 → 0.0.49

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,6 +1,6 @@
1
1
  (function (g, f) {if ("object" == typeof exports && "object" == typeof module) {module.exports = f();} else if ("function" == typeof define && define.amd) {define("rrwebSnapshot", [], f);} else if ("object" == typeof exports) {exports["rrwebSnapshot"] = f();} else {g["rrwebSnapshot"] = f();}}(typeof self !== 'undefined' ? self : typeof globalThis !== 'undefined' ? globalThis : this, () => {var exports = {};var module = { exports };
2
- "use strict";var Wr=Object.defineProperty,qr=Object.defineProperties;var jr=Object.getOwnPropertyDescriptors;var oe=Object.getOwnPropertySymbols;var xt=Object.prototype.hasOwnProperty,Ct=Object.prototype.propertyIsEnumerable;var bt=(e,r,c)=>r in e?Wr(e,r,{enumerable:!0,configurable:!0,writable:!0,value:c}):e[r]=c,H=(e,r)=>{for(var c in r||(r={}))xt.call(r,c)&&bt(e,c,r[c]);if(oe)for(var c of oe(r))Ct.call(r,c)&&bt(e,c,r[c]);return e},re=(e,r)=>qr(e,jr(r));var Ce=(e,r)=>{var c={};for(var o in e)xt.call(e,o)&&r.indexOf(o)<0&&(c[o]=e[o]);if(e!=null&&oe)for(var o of oe(e))r.indexOf(o)<0&&Ct.call(e,o)&&(c[o]=e[o]);return c};var ve=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports);var ce=ve(U=>{"use strict";var Vr=Object.defineProperty,Gr=(e,r,c)=>r in e?Vr(e,r,{enumerable:!0,configurable:!0,writable:!0,value:c}):e[r]=c,vt=(e,r,c)=>Gr(e,typeof r!="symbol"?r+"":r,c),J=(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))(J||{}),Rt={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},Et={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},ae={};function Hr(e){var r,c;let o=(c=(r=globalThis==null?void 0:globalThis.Zone)==null?void 0:r.__symbol__)==null?void 0:c.call(r,e);if(o&&globalThis[o])return globalThis[o]}function Ie(e){if(ae[e])return ae[e];let r=Hr(e)||globalThis[e],c=r.prototype,o=e in Rt?Rt[e]:void 0,i=!!(o&&o.every(h=>{var d,a;return!!((a=(d=Object.getOwnPropertyDescriptor(c,h))==null?void 0:d.get)!=null&&a.toString().includes("[native code]"))})),f=e in Et?Et[e]:void 0,u=!!(f&&f.every(h=>{var d;return typeof c[h]=="function"&&((d=c[h])==null?void 0:d.toString().includes("[native code]"))}));if(i&&u)return ae[e]=r.prototype,r.prototype;try{let h=document.createElement("iframe");document.body.appendChild(h);let d=h.contentWindow;if(!d)return r.prototype;let a=d[e].prototype;return document.body.removeChild(h),a?ae[e]=a:c}catch(h){return c}}var Re={};function Z(e,r,c){var o;let i=`${e}.${String(c)}`;if(Re[i])return Re[i].call(r);let f=Ie(e),u=(o=Object.getOwnPropertyDescriptor(f,c))==null?void 0:o.get;return u?(Re[i]=u,u.call(r)):r[c]}var Ee={};function Mt(e,r,c){let o=`${e}.${String(c)}`;if(Ee[o])return Ee[o].bind(r);let f=Ie(e)[c];return typeof f!="function"?r[c]:(Ee[o]=f,f.bind(r))}function Jr(e){return Z("Node",e,"childNodes")}function Zr(e){return Z("Node",e,"parentNode")}function Yr(e){return Z("Node",e,"parentElement")}function Xr(e){return Z("Node",e,"textContent")}function Qr(e,r){return Mt("Node",e,"contains")(r)}function Kr(e){return Mt("Node",e,"getRootNode")()}function ei(e){return!e||!("host"in e)?null:Z("ShadowRoot",e,"host")}function ti(e){return e.styleSheets}function ri(e){return!e||!("shadowRoot"in e)?null:Z("Element",e,"shadowRoot")}function ii(e,r){return Z("Element",e,"querySelector")(r)}function si(e,r){return Z("Element",e,"querySelectorAll")(r)}function ni(){return Ie("MutationObserver").constructor}function oi(e,r,c){try{if(!(r in e))return()=>{};let o=e[r],i=c(o);return typeof i=="function"&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:o}})),e[r]=i,()=>{e[r]=o}}catch(o){return()=>{}}}var le={childNodes:Jr,parentNode:Zr,parentElement:Yr,textContent:Xr,contains:Qr,getRootNode:Kr,host:ei,styleSheets:ti,shadowRoot:ri,querySelector:ii,querySelectorAll:si,mutationObserver:ni,patch:oi};function Ot(e){return e.nodeType===e.ELEMENT_NODE}function ai(e){let r=e&&"host"in e&&"mode"in e&&le.host(e)||null;return!!(r&&"shadowRoot"in r&&le.shadowRoot(r)===e)}function li(e){return Object.prototype.toString.call(e)==="[object ShadowRoot]"}function ui(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 At(e){let{cssText:r}=e;if(r.split('"').length<3)return r;let c=["@import",`url(${JSON.stringify(e.href)})`];return e.layerName===""?c.push("layer"):e.layerName&&c.push(`layer(${e.layerName})`),e.supportsText&&c.push(`supports(${e.supportsText})`),e.media.length&&c.push(e.media.mediaText),c.join(" ")+";"}function Pt(e){try{let r=e.rules||e.cssRules;if(!r)return null;let c=e.href;!c&&e.ownerNode&&(c=e.ownerNode.baseURI);let o=Array.from(r,i=>_t(i,c)).join("");return ui(o)}catch(r){return null}}function _t(e,r){var c;if(Dt(e)){let o;try{o=Pt(e.styleSheet)||At(e)}catch(i){o=e.cssText}try{if(o&&((c=e.styleSheet)!=null&&c.href))return Ne(o,e.styleSheet.href)}catch(i){}return o}else{let o=e.cssText;return kt(e)&&e.selectorText.includes(":")&&(o=Tt(o)),r?Ne(o,r):o}}function Tt(e){let r=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return e.replace(r,"$1\\$2")}function Dt(e){return"styleSheet"in e}function kt(e){return"selectorText"in e}var ue=class{constructor(){vt(this,"idNodeMap",new Map),vt(this,"nodeMetaMap",new WeakMap)}getId(r){var c;if(!r)return-1;let o=(c=this.getMeta(r))==null?void 0:c.id;return o!=null?o:-1}getNode(r){return this.idNodeMap.get(r)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(r){return this.nodeMetaMap.get(r)||null}removeNodeFromMap(r){let c=this.getId(r);if(this.idNodeMap.delete(c),r.childNodes&&r.childNodes.forEach(o=>this.removeNodeFromMap(o)),Ot(r)){let o=le.shadowRoot(r);o&&this.removeNodeFromMap(o),r.nodeName==="IFRAME"&&r.contentDocument&&this.removeNodeFromMap(r.contentDocument)}}has(r){return this.idNodeMap.has(r)}hasNode(r){return this.nodeMetaMap.has(r)}add(r,c){let o=c.id;this.idNodeMap.set(o,r),this.nodeMetaMap.set(r,c)}replace(r,c){let o=this.getNode(r);if(o){let i=this.nodeMetaMap.get(o);i&&this.nodeMetaMap.set(c,i)}this.idNodeMap.set(r,c)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}};function ci(){return new ue}function fi({element:e,maskInputOptions:r,tagName:c,type:o,value:i,maskInputFn:f}){let u=i||"",h=o&&Me(o);return(r[c.toLowerCase()]||h&&r[h])&&(f?u=f(u,e):u="*".repeat(u.length)),u}function Me(e){return e.toLowerCase()}var Nt="__rrweb_original__";function hi(e){let r=e.getContext("2d");if(!r)return!0;let c=50;for(let o=0;o<e.width;o+=c)for(let i=0;i<e.height;i+=c){let f=r.getImageData,u=Nt in f?f[Nt]:f;if(new Uint32Array(u.call(r,o,i,Math.min(c,e.width-o),Math.min(c,e.height-i)).data.buffer).some(d=>d!==0))return!1}return!0}function pi(e,r){return!e||!r||e.type!==r.type?!1:e.type===J.Document?e.compatMode===r.compatMode:e.type===J.DocumentType?e.name===r.name&&e.publicId===r.publicId&&e.systemId===r.systemId:e.type===J.Comment||e.type===J.Text||e.type===J.CDATA?e.textContent===r.textContent:e.type===J.Element?e.tagName===r.tagName&&JSON.stringify(e.attributes)===JSON.stringify(r.attributes)&&e.isSVG===r.isSVG&&e.needBlock===r.needBlock:!1}function di(e){let r=e.type;return e.hasAttribute("data-rr-is-password")?"password":r?Me(r):null}function mi(e,r){var f;let c;try{c=new URL(e,r!=null?r:window.location.href)}catch(u){return null}let o=/\.([0-9a-z]+)(?:$)/i,i=c.pathname.match(o);return(f=i==null?void 0:i[1])!=null?f:null}function gi(e){let r="";return e.indexOf("//")>-1?r=e.split("/").slice(0,3).join("/"):r=e.split("/")[0],r=r.split("?")[0],r}var yi=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,wi=/^(?:[a-z+]+:)?\/\//i,Si=/^www\..*/i,bi=/^(data:)([^,]*),(.*)/i;function Ne(e,r){return(e||"").replace(yi,(c,o,i,f,u,h)=>{let d=i||u||h,a=o||f||"";if(!d)return c;if(wi.test(d)||Si.test(d))return`url(${a}${d}${a})`;if(bi.test(d))return`url(${a}${d}${a})`;if(d[0]==="/")return`url(${a}${gi(r)+d}${a})`;let t=r.split("/"),l=d.split("/");t.pop();for(let n of l)n!=="."&&(n===".."?t.pop():t.push(n));return`url(${a}${t.join("/")}${a})`})}var xi="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPgogIDxkZWZzPgogICAgPHBhdHRlcm4gaWQ9InN0cmlwZXMiIHBhdHRlcm5Vbml0cz0idXNlclNwYWNlT25Vc2UiIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiI+CiAgICAgIDxyZWN0IHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgZmlsbD0iYmxhY2siLz4KICAgICAgPHBhdGggZD0iTTggMEgxNkwwIDE2VjhMOCAwWiIgZmlsbD0iIzJEMkQyRCIvPgogICAgICA8cGF0aCBkPSJNMTYgOFYxNkg4TDE2IDhaIiBmaWxsPSIjMkQyRDJEIi8+CiAgICA8L3BhdHRlcm4+CiAgPC9kZWZzPgogIDxyZWN0IHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIGZpbGw9InVybCgjc3RyaXBlcykiLz4KPC9zdmc+Cg==",It=4096;function Ci(e,r,c,o){if(!e.complete||e.naturalWidth===0||e.naturalWidth>It||e.naturalHeight>It)return r;try{let i=document.createElement("canvas");i.width=e.naturalWidth,i.height=e.naturalHeight;let f=i.getContext("2d");return f?(f.drawImage(e,0,0),i.toDataURL(c||"image/webp",o!=null?o:.4)):r}catch(i){return r}}function vi(e,r){return!r||e.length<=r?e:xi}var Lt=(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))(Lt||{});U.Mirror=ue;U.NodeType=Lt;U.NodeType$1=J;U.absolutifyURLs=Ne;U.checkDataURLSize=vi;U.createMirror=ci;U.escapeImportStatement=At;U.extractFileExtension=mi;U.fixSafariColons=Tt;U.getInputType=di;U.index=le;U.is2DCanvasBlank=hi;U.isCSSImportRule=Dt;U.isCSSStyleRule=kt;U.isElement=Ot;U.isNativeShadowDom=li;U.isNodeMetaEqual=pi;U.isShadowRoot=ai;U.maskInputValue=fi;U.recompressBase64Image=Ci;U.stringifyRule=_t;U.stringifyStylesheet=Pt;U.toLowerCase=Me});var Gt=ve(W=>{"use strict";var I=ce(),$t=1,Ri=new RegExp("[^a-z0-9-_:]"),Oe=-2;function zt(){return $t++}function Ei(e){if(e instanceof HTMLFormElement)return"form";let r=I.toLowerCase(e.tagName);return Ri.test(r)?"div":r}var K,Bt,Ni=/^[^ \t\n\r\u000c]+/,Ii=/^[, \t\n\r\u000c]+/;function Mi(e,r){if(r.trim()==="")return r;let c=0;function o(f){let u,h=f.exec(r.substring(c));return h?(u=h[0],c+=u.length,u):""}let i=[];for(;o(Ii),!(c>=r.length);){let f=o(Ni);if(f.slice(-1)===",")f=ee(e,f.substring(0,f.length-1)),i.push(f);else{let u="";f=ee(e,f);let h=!1;for(;;){let d=r.charAt(c);if(d===""){i.push((f+u).trim());break}else if(h)d===")"&&(h=!1);else if(d===","){c+=1,i.push((f+u).trim());break}else d==="("&&(h=!0);u+=d,c+=1}}}return i.join(", ")}var Ut=new WeakMap;function ee(e,r){return!r||r.trim()===""?r:Pe(e,r)}function Oi(e){return!!(e.tagName==="svg"||e.ownerSVGElement)}function Pe(e,r){let c=Ut.get(e);if(c||(c=e.createElement("a"),Ut.set(e,c)),!r)r="";else if(r.startsWith("blob:")||r.startsWith("data:"))return r;return c.setAttribute("href",r),c.href}function Wt(e,r,c,o,i,f){if(!o)return o;if(c==="src"||c==="href"&&!(r==="use"&&o[0]==="#")){let u=ee(e,o);if(r==="img"&&u.startsWith("data:")&&i){let h=i,d=u;return(f!=null&&f.type||(f==null?void 0:f.quality)!==void 0)&&(d=I.recompressBase64Image(h,u,f.type,f.quality)),f!=null&&f.maxBase64ImageLength&&(d=I.checkDataURLSize(d,f.maxBase64ImageLength)),d}return u}else{if(c==="xlink:href"&&o[0]!=="#")return ee(e,o);if(c==="background"&&(r==="table"||r==="td"||r==="th"))return ee(e,o);if(c==="srcset")return Mi(e,o);if(c==="style")return I.absolutifyURLs(o,Pe(e));if(r==="object"&&c==="data")return ee(e,o)}return o}function qt(e,r,c){return(e==="video"||e==="audio")&&r==="autoplay"}function Ai(e,r,c){try{if(typeof r=="string"){if(e.classList.contains(r))return!0}else for(let o=e.classList.length;o--;){let i=e.classList[o];if(r.test(i))return!0}if(c)return e.matches(c)}catch(o){}return!1}function fe(e,r,c){if(!e)return!1;if(e.nodeType!==e.ELEMENT_NODE)return c?fe(I.index.parentNode(e),r,c):!1;for(let o=e.classList.length;o--;){let i=e.classList[o];if(r.test(i))return!0}return c?fe(I.index.parentNode(e),r,c):!1}function jt(e,r,c,o){let i;if(I.isElement(e)){if(i=e,!I.index.childNodes(i).length)return!1}else{if(I.index.parentElement(e)===null)return!1;i=I.index.parentElement(e)}try{if(typeof r=="string"){if(o){if(i.closest(`.${r}`))return!0}else if(i.classList.contains(r))return!0}else if(fe(i,r,o))return!0;if(c){if(o){if(i.closest(c))return!0}else if(i.matches(c))return!0}}catch(f){}return!1}function Pi(e,r,c){let o=e.contentWindow;if(!o)return;let i=!1,f;try{f=o.document.readyState}catch(h){return}if(f!=="complete"){let h=setTimeout(()=>{i||(r(),i=!0)},c);e.addEventListener("load",()=>{clearTimeout(h),i=!0,r()});return}let u="about:blank";if(o.location.href!==u||e.src===u||e.src==="")return setTimeout(r,0),e.addEventListener("load",r);e.addEventListener("load",r)}function _i(e,r,c){let o=!1,i;try{i=e.sheet}catch(u){return}if(i)return;let f=setTimeout(()=>{o||(r(),o=!0)},c);e.addEventListener("load",()=>{clearTimeout(f),o=!0,r()})}function Ti(e,r){let{doc:c,mirror:o,blockClass:i,blockSelector:f,needsMask:u,inlineStylesheet:h,maskInputOptions:d={},maskTextFn:a,maskInputFn:t,dataURLOptions:l={},inlineImages:n,recordCanvas:s,keepIframeSrcFn:p,newlyAddedElement:m=!1}=r,y=Di(c,o);switch(e.nodeType){case e.DOCUMENT_NODE:return e.compatMode!=="CSS1Compat"?{type:I.NodeType$1.Document,childNodes:[],compatMode:e.compatMode}:{type:I.NodeType$1.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:I.NodeType$1.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:y};case e.ELEMENT_NODE:return Bi(e,{doc:c,blockClass:i,blockSelector:f,inlineStylesheet:h,maskInputOptions:d,maskInputFn:t,dataURLOptions:l,inlineImages:n,recordCanvas:s,keepIframeSrcFn:p,newlyAddedElement:m,rootId:y});case e.TEXT_NODE:return ki(e,{doc:c,needsMask:u,maskTextFn:a,rootId:y});case e.CDATA_SECTION_NODE:return{type:I.NodeType$1.CDATA,textContent:"",rootId:y};case e.COMMENT_NODE:return{type:I.NodeType$1.Comment,textContent:I.index.textContent(e)||"",rootId:y};default:return!1}}function Di(e,r){if(!r.hasNode(e))return;let c=r.getId(e);return c===1?void 0:c}function ki(e,r){var c;let{needsMask:o,maskTextFn:i,rootId:f}=r,u=I.index.parentNode(e),h=u&&u.tagName,d=I.index.textContent(e),a=h==="STYLE"?!0:void 0,t=h==="SCRIPT"?!0:void 0;if(a&&d){try{e.nextSibling||e.previousSibling||(c=u.sheet)!=null&&c.cssRules&&(d=I.stringifyStylesheet(u.sheet))}catch(l){console.warn(`Cannot get CSS styles from text's parentNode. Error: ${l}`,e)}d=I.absolutifyURLs(d,Pe(r.doc))}return t&&(d="SCRIPT_PLACEHOLDER"),!a&&!t&&d&&o&&(d=i?i(d,I.index.parentElement(e)):d.replace(/[\S]/g,"*")),{type:I.NodeType$1.Text,textContent:d||"",isStyle:a,rootId:f}}function Ft(e,r){return Array.from(e.styleSheets).find(c=>c.href===r)}function Li(e){return e.href}function Bi(e,r){var c,o;let{doc:i,blockClass:f,blockSelector:u,inlineStylesheet:h,maskInputOptions:d={},maskInputFn:a,dataURLOptions:t={},inlineImages:l,recordCanvas:n,keepIframeSrcFn:s,newlyAddedElement:p=!1,rootId:m}=r,y=Ai(e,f,u),b=Ei(e),w={},x=e.attributes.length;for(let g=0;g<x;g++){let S=e.attributes[g];qt(b,S.name,S.value)||(w[S.name]=Wt(i,b,I.toLowerCase(S.name),S.value,e,t))}if(b==="link"&&h){let g=Li(e);if(g){let S=Ft(i,g);if(!S&&g.includes(".css")){let v=window.location.origin,M=g.replace(window.location.href,""),E=v+"/"+M;S=Ft(i,E)}let C=null;S&&(C=I.stringifyStylesheet(S)),C&&(delete w.rel,delete w.href,w._cssText=C)}}if(b==="style"&&e.sheet&&!(e.innerText||I.index.textContent(e)||"").trim().length){let g=I.stringifyStylesheet(e.sheet);g&&(w._cssText=g)}if(b==="input"||b==="textarea"||b==="select"){let g=e.value,S=e.checked;w.type!=="radio"&&w.type!=="checkbox"&&w.type!=="submit"&&w.type!=="button"&&g?w.value=I.maskInputValue({element:e,type:I.getInputType(e),tagName:b,value:g,maskInputOptions:d,maskInputFn:a}):S&&(w.checked=S)}if(b==="option"&&(e.selected&&!d.select?w.selected=!0:delete w.selected),b==="dialog"&&e.open)try{w.rr_open_mode=e.matches("dialog:modal")?"modal":"non-modal"}catch(g){w.rr_open_mode="modal",w.ph_rr_could_not_detect_modal=!0}if(b==="canvas"&&n){if(e.__context==="2d")I.is2DCanvasBlank(e)||(w.rr_dataURL=e.toDataURL(t.type,t.quality));else if(!("__context"in e)){let g=e.toDataURL(t.type,t.quality),S=i.createElement("canvas");S.width=e.width,S.height=e.height;let C=S.toDataURL(t.type,t.quality);g!==C&&(w.rr_dataURL=g)}}if(b==="img"&&l){K||(K=i.createElement("canvas"),Bt=K.getContext("2d"));let g=e,S=g.currentSrc||g.getAttribute("src")||"<unknown-src>",C=g.crossOrigin,v=()=>{g.removeEventListener("load",v);try{K.width=g.naturalWidth,K.height=g.naturalHeight,Bt.drawImage(g,0,0),w.rr_dataURL=K.toDataURL(t.type,t.quality)}catch(M){if(g.crossOrigin!=="anonymous"){g.crossOrigin="anonymous",g.complete&&g.naturalWidth!==0?v():g.addEventListener("load",v);return}else console.warn(`Cannot inline img src=${S}! Error: ${M}`)}g.crossOrigin==="anonymous"&&(C?w.crossOrigin=C:g.removeAttribute("crossorigin"))};g.complete&&g.naturalWidth!==0?v():g.addEventListener("load",v)}if(b==="audio"||b==="video"){let g=w;g.rr_mediaState=e.paused?"paused":"played",g.rr_mediaCurrentTime=e.currentTime,g.rr_mediaPlaybackRate=e.playbackRate,g.rr_mediaMuted=e.muted,g.rr_mediaLoop=e.loop,g.rr_mediaVolume=e.volume}if(p||(e.scrollLeft&&(w.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(w.rr_scrollTop=e.scrollTop)),y){let{width:g,height:S,left:C,top:v}=e.getBoundingClientRect();w={class:w.class,rr_width:`${g}px`,rr_height:`${S}px`,rr_left:`${Math.floor(C+(((c=i.defaultView)==null?void 0:c.scrollX)||0))}px`,rr_top:`${Math.floor(v+(((o=i.defaultView)==null?void 0:o.scrollY)||0))}px`}}b==="iframe"&&!s(w.src)&&(e.contentDocument||(w.rr_src=w.src),delete w.src);let R;try{customElements.get(b)&&(R=!0)}catch(g){}return{type:I.NodeType$1.Element,tagName:b,attributes:w,childNodes:[],isSVG:Oi(e)||void 0,needBlock:y,rootId:m,isCustom:R}}function L(e){return e==null?"":e.toLowerCase()}function Ui(e,r){if(r.comment&&e.type===I.NodeType$1.Comment)return!0;if(e.type===I.NodeType$1.Element){if(r.script&&(e.tagName==="script"||e.tagName==="link"&&(e.attributes.rel==="preload"&&e.attributes.as==="script"||e.attributes.rel==="modulepreload")||e.tagName==="link"&&e.attributes.rel==="prefetch"&&typeof e.attributes.href=="string"&&I.extractFileExtension(e.attributes.href)==="js"))return!0;if(r.headFavicon&&(e.tagName==="link"&&e.attributes.rel==="shortcut icon"||e.tagName==="meta"&&(L(e.attributes.name).match(/^msapplication-tile(image|color)$/)||L(e.attributes.name)==="application-name"||L(e.attributes.rel)==="icon"||L(e.attributes.rel)==="apple-touch-icon"||L(e.attributes.rel)==="shortcut icon")))return!0;if(e.tagName==="meta"){if(r.headMetaDescKeywords&&L(e.attributes.name).match(/^description|keywords$/))return!0;if(r.headMetaSocial&&(L(e.attributes.property).match(/^(og|twitter|fb):/)||L(e.attributes.name).match(/^(og|twitter):/)||L(e.attributes.name)==="pinterest"))return!0;if(r.headMetaRobots&&(L(e.attributes.name)==="robots"||L(e.attributes.name)==="googlebot"||L(e.attributes.name)==="bingbot"))return!0;if(r.headMetaHttpEquiv&&e.attributes["http-equiv"]!==void 0)return!0;if(r.headMetaAuthorship&&(L(e.attributes.name)==="author"||L(e.attributes.name)==="generator"||L(e.attributes.name)==="framework"||L(e.attributes.name)==="publisher"||L(e.attributes.name)==="progid"||L(e.attributes.property).match(/^article:/)||L(e.attributes.property).match(/^product:/)))return!0;if(r.headMetaVerification&&(L(e.attributes.name)==="google-site-verification"||L(e.attributes.name)==="yandex-verification"||L(e.attributes.name)==="csrf-token"||L(e.attributes.name)==="p:domain_verify"||L(e.attributes.name)==="verify-v1"||L(e.attributes.name)==="verification"||L(e.attributes.name)==="shopify-checkout-api-token"))return!0}}return!1}var Vt=50,Ae=!1,_e=!1;function Fi(){return _e}function $i(){_e=!1,Ae=!1}function te(e,r){let{doc:c,mirror:o,blockClass:i,blockSelector:f,maskTextClass:u,maskTextSelector:h,skipChild:d=!1,inlineStylesheet:a=!0,maskInputOptions:t={},maskTextFn:l,maskInputFn:n,slimDOMOptions:s,dataURLOptions:p={},inlineImages:m=!1,recordCanvas:y=!1,onSerialize:b,onIframeLoad:w,iframeLoadTimeout:x=5e3,onStylesheetLoad:R,stylesheetLoadTimeout:g=5e3,keepIframeSrcFn:S=()=>!1,newlyAddedElement:C=!1,depth:v=0,maxDepth:M=Vt}=r,{needsMask:E}=r,{preserveWhiteSpace:D=!0}=r;if(v>=M)return _e=!0,Ae||(Ae=!0,console.warn(`[rrweb-snapshot] DOM tree depth exceeded max depth of ${M}. Children beyond this depth will not be recorded. This may indicate deeply nested DOM structures.`)),null;E||(E=jt(e,u,h,E===void 0));let P=Ti(e,{doc:c,mirror:o,blockClass:i,blockSelector:f,needsMask:E,inlineStylesheet:a,maskInputOptions:t,maskTextFn:l,maskInputFn:n,dataURLOptions:p,inlineImages:m,recordCanvas:y,keepIframeSrcFn:S,newlyAddedElement:C});if(!P)return console.warn(e,"not serialized"),null;let G;o.hasNode(e)?G=o.getId(e):Ui(P,s)||!D&&P.type===I.NodeType$1.Text&&!P.isStyle&&!P.textContent.replace(/^\s+|\s+$/gm,"").length?G=Oe:G=zt();let _=Object.assign(P,{id:G});if(o.add(e,_),G===Oe)return null;b&&b(e);let N=!d;if(_.type===I.NodeType$1.Element){N=N&&!_.needBlock,delete _.needBlock;let k=I.index.shadowRoot(e);k&&I.isNativeShadowDom(k)&&(_.isShadowHost=!0)}if((_.type===I.NodeType$1.Document||_.type===I.NodeType$1.Element)&&N){s.headWhitespace&&_.type===I.NodeType$1.Element&&_.tagName==="head"&&(D=!1);let k={doc:c,mirror:o,blockClass:i,blockSelector:f,needsMask:E,maskTextClass:u,maskTextSelector:h,skipChild:d,inlineStylesheet:a,maskInputOptions:t,maskTextFn:l,maskInputFn:n,slimDOMOptions:s,dataURLOptions:p,inlineImages:m,recordCanvas:y,preserveWhiteSpace:D,onSerialize:b,onIframeLoad:w,iframeLoadTimeout:x,onStylesheetLoad:R,stylesheetLoadTimeout:g,keepIframeSrcFn:S,depth:v+1,maxDepth:M};if(!(_.type===I.NodeType$1.Element&&_.tagName==="textarea"&&_.attributes.value!==void 0))for(let V of Array.from(I.index.childNodes(e))){let z=te(V,k);z&&_.childNodes.push(z)}let $=null;if(I.isElement(e)&&($=I.index.shadowRoot(e)))for(let V of Array.from(I.index.childNodes($))){let z=te(V,k);z&&(I.isNativeShadowDom($)&&(z.isShadow=!0),_.childNodes.push(z))}}let X=I.index.parentNode(e);return X&&I.isShadowRoot(X)&&I.isNativeShadowDom(X)&&(_.isShadow=!0),_.type===I.NodeType$1.Element&&_.tagName==="iframe"&&Pi(e,()=>{let k=e.contentDocument;if(k&&w){let $=te(k,{doc:k,mirror:o,blockClass:i,blockSelector:f,needsMask:E,maskTextClass:u,maskTextSelector:h,skipChild:!1,inlineStylesheet:a,maskInputOptions:t,maskTextFn:l,maskInputFn:n,slimDOMOptions:s,dataURLOptions:p,inlineImages:m,recordCanvas:y,preserveWhiteSpace:D,onSerialize:b,onIframeLoad:w,iframeLoadTimeout:x,onStylesheetLoad:R,stylesheetLoadTimeout:g,keepIframeSrcFn:S,depth:v+1,maxDepth:M});$&&w(e,$)}},x),_.type===I.NodeType$1.Element&&_.tagName==="link"&&typeof _.attributes.rel=="string"&&(_.attributes.rel==="stylesheet"||_.attributes.rel==="preload"&&typeof _.attributes.href=="string"&&I.extractFileExtension(_.attributes.href)==="css")&&_i(e,()=>{if(R){let k=te(e,{doc:c,mirror:o,blockClass:i,blockSelector:f,needsMask:E,maskTextClass:u,maskTextSelector:h,skipChild:!1,inlineStylesheet:a,maskInputOptions:t,maskTextFn:l,maskInputFn:n,slimDOMOptions:s,dataURLOptions:p,inlineImages:m,recordCanvas:y,preserveWhiteSpace:D,onSerialize:b,onIframeLoad:w,iframeLoadTimeout:x,onStylesheetLoad:R,stylesheetLoadTimeout:g,keepIframeSrcFn:S,depth:v,maxDepth:M});k&&R(e,k)}},g),_}function zi(e,r){let{mirror:c=new I.Mirror,blockClass:o="rr-block",blockSelector:i=null,maskTextClass:f="rr-mask",maskTextSelector:u=null,inlineStylesheet:h=!0,inlineImages:d=!1,recordCanvas:a=!1,maskAllInputs:t=!1,maskTextFn:l,maskInputFn:n,slimDOM:s=!1,dataURLOptions:p,preserveWhiteSpace:m,onSerialize:y,onIframeLoad:b,iframeLoadTimeout:w,onStylesheetLoad:x,stylesheetLoadTimeout:R,keepIframeSrcFn:g=()=>!1,maxDepth:S}=r||{};return te(e,{doc:e,mirror:c,blockClass:o,blockSelector:i,maskTextClass:f,maskTextSelector:u,skipChild:!1,inlineStylesheet:h,maskInputOptions:t===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0}:t===!1?{password:!0}:t,maskTextFn:l,maskInputFn:n,slimDOMOptions:s===!0||s==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:s==="all",headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:s===!1?{}:s,dataURLOptions:p,inlineImages:d,recordCanvas:a,preserveWhiteSpace:m,onSerialize:y,onIframeLoad:b,iframeLoadTimeout:w,onStylesheetLoad:x,stylesheetLoadTimeout:R,keepIframeSrcFn:g,newlyAddedElement:!1,maxDepth:S})}function Wi(e,r){function c(o){r(o),(o.type===I.NodeType$1.Document||o.type===I.NodeType$1.Element)&&o.childNodes.forEach(c)}c(e)}function qi(){$t=1}W.DEFAULT_MAX_DEPTH=Vt;W.IGNORED_NODE=Oe;W.classMatchesRegex=fe;W.cleanupSnapshot=qi;W.genId=zt;W.ignoreAttribute=qt;W.needMaskingText=jt;W.resetMaxDepthState=$i;W.serializeNodeWithId=te;W.snapshot=zi;W.transformAttribute=Wt;W.visitSnapshot=Wi;W.wasMaxDepthReached=Fi});var Br=ve(T=>{"use strict";Object.defineProperty(T,Symbol.toStringTag,{value:"Module"});var A=ce(),ji=/(max|min)-device-(width|height)/,Ht=new RegExp(ji.source,"g"),Vi={postcssPlugin:"postcss-custom-selectors",prepare(){return{postcssPlugin:"postcss-custom-selectors",AtRule:function(e){e.params.match(Ht)&&(e.params=e.params.replace(Ht,"$1-$2"))}}}},Gi={postcssPlugin:"postcss-hover-classes",prepare:function(){let e=[];return{Rule:function(r){e.indexOf(r)===-1&&(e.push(r),r.selectors.forEach(function(c){c.includes(":hover")&&(r.selector+=`,
3
- `+c.replace(/:hover/g,".\\:hover"))}))}}}};function Nr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Hi(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var r=e.default;if(typeof r=="function"){var c=function o(){return this instanceof o?Reflect.construct(r,arguments,this.constructor):r.apply(this,arguments)};c.prototype=r.prototype}else c={};return Object.defineProperty(c,"__esModule",{value:!0}),Object.keys(e).forEach(function(o){var i=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(c,o,i.get?i:{enumerable:!0,get:function(){return e[o]}})}),c}var he={exports:{}},Jt;function Ji(){if(Jt)return he.exports;Jt=1;var e=String,r=function(){return{isColorSupported:!1,reset:e,bold:e,dim:e,italic:e,underline:e,inverse:e,hidden:e,strikethrough:e,black:e,red:e,green:e,yellow:e,blue:e,magenta:e,cyan:e,white:e,gray:e,bgBlack:e,bgRed:e,bgGreen:e,bgYellow:e,bgBlue:e,bgMagenta:e,bgCyan:e,bgWhite:e,blackBright:e,redBright:e,greenBright:e,yellowBright:e,blueBright:e,magentaBright:e,cyanBright:e,whiteBright:e,bgBlackBright:e,bgRedBright:e,bgGreenBright:e,bgYellowBright:e,bgBlueBright:e,bgMagentaBright:e,bgCyanBright:e,bgWhiteBright:e}};return he.exports=r(),he.exports.createColors=r,he.exports}var Zi={},Yi=Object.freeze(Object.defineProperty({__proto__:null,default:Zi},Symbol.toStringTag,{value:"Module"})),j=Hi(Yi),Te,Zt;function lt(){if(Zt)return Te;Zt=1;let e=Ji(),r=j;class c extends Error{constructor(i,f,u,h,d,a){super(i),this.name="CssSyntaxError",this.reason=i,d&&(this.file=d),h&&(this.source=h),a&&(this.plugin=a),typeof f!="undefined"&&typeof u!="undefined"&&(typeof f=="number"?(this.line=f,this.column=u):(this.line=f.line,this.column=f.column,this.endLine=u.line,this.endColumn=u.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,c)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line!="undefined"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(i){if(!this.source)return"";let f=this.source;i==null&&(i=e.isColorSupported);let u=s=>s,h=s=>s,d=s=>s;if(i){let{bold:s,gray:p,red:m}=e.createColors(!0);h=y=>s(m(y)),u=y=>p(y),r&&(d=y=>r(y))}let a=f.split(/\r?\n/),t=Math.max(this.line-3,0),l=Math.min(this.line+2,a.length),n=String(l).length;return a.slice(t,l).map((s,p)=>{let m=t+1+p,y=" "+(" "+m).slice(-n)+" | ";if(m===this.line){if(s.length>160){let w=20,x=Math.max(0,this.column-w),R=Math.max(this.column+w,this.endColumn+w),g=s.slice(x,R),S=u(y.replace(/\d/g," "))+s.slice(0,Math.min(this.column-1,w-1)).replace(/[^\t]/g," ");return h(">")+u(y)+d(g)+`
2
+ "use strict";var Wr=Object.defineProperty,qr=Object.defineProperties;var jr=Object.getOwnPropertyDescriptors;var oe=Object.getOwnPropertySymbols;var xt=Object.prototype.hasOwnProperty,Ct=Object.prototype.propertyIsEnumerable;var bt=(e,r,c)=>r in e?Wr(e,r,{enumerable:!0,configurable:!0,writable:!0,value:c}):e[r]=c,H=(e,r)=>{for(var c in r||(r={}))xt.call(r,c)&&bt(e,c,r[c]);if(oe)for(var c of oe(r))Ct.call(r,c)&&bt(e,c,r[c]);return e},re=(e,r)=>qr(e,jr(r));var Ce=(e,r)=>{var c={};for(var o in e)xt.call(e,o)&&r.indexOf(o)<0&&(c[o]=e[o]);if(e!=null&&oe)for(var o of oe(e))r.indexOf(o)<0&&Ct.call(e,o)&&(c[o]=e[o]);return c};var ve=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports);var ce=ve(U=>{"use strict";var Vr=Object.defineProperty,Gr=(e,r,c)=>r in e?Vr(e,r,{enumerable:!0,configurable:!0,writable:!0,value:c}):e[r]=c,vt=(e,r,c)=>Gr(e,typeof r!="symbol"?r+"":r,c),J=(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))(J||{}),Rt={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},Et={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},ae={};function Hr(e){var r,c;let o=(c=(r=globalThis==null?void 0:globalThis.Zone)==null?void 0:r.__symbol__)==null?void 0:c.call(r,e);if(o&&globalThis[o])return globalThis[o]}function Ie(e){if(ae[e])return ae[e];let r=Hr(e)||globalThis[e],c=r.prototype,o=e in Rt?Rt[e]:void 0,i=!!(o&&o.every(h=>{var d,a;return!!((a=(d=Object.getOwnPropertyDescriptor(c,h))==null?void 0:d.get)!=null&&a.toString().includes("[native code]"))})),f=e in Et?Et[e]:void 0,u=!!(f&&f.every(h=>{var d;return typeof c[h]=="function"&&((d=c[h])==null?void 0:d.toString().includes("[native code]"))}));if(i&&u)return ae[e]=r.prototype,r.prototype;try{let h=document.createElement("iframe");document.body.appendChild(h);let d=h.contentWindow;if(!d)return r.prototype;let a=d[e].prototype;return document.body.removeChild(h),a?ae[e]=a:c}catch(h){return c}}var Re={};function Z(e,r,c){var o;let i=`${e}.${String(c)}`;if(Re[i])return Re[i].call(r);let f=Ie(e),u=(o=Object.getOwnPropertyDescriptor(f,c))==null?void 0:o.get;return u?(Re[i]=u,u.call(r)):r[c]}var Ee={};function Mt(e,r,c){let o=`${e}.${String(c)}`;if(Ee[o])return Ee[o].bind(r);let f=Ie(e)[c];return typeof f!="function"?r[c]:(Ee[o]=f,f.bind(r))}function Jr(e){return Z("Node",e,"childNodes")}function Zr(e){return Z("Node",e,"parentNode")}function Yr(e){return Z("Node",e,"parentElement")}function Xr(e){return Z("Node",e,"textContent")}function Qr(e,r){return Mt("Node",e,"contains")(r)}function Kr(e){return Mt("Node",e,"getRootNode")()}function ei(e){return!e||!("host"in e)?null:Z("ShadowRoot",e,"host")}function ti(e){return e.styleSheets}function ri(e){return!e||!("shadowRoot"in e)?null:Z("Element",e,"shadowRoot")}function ii(e,r){return Z("Element",e,"querySelector")(r)}function si(e,r){return Z("Element",e,"querySelectorAll")(r)}function ni(){return Ie("MutationObserver").constructor}function oi(e,r,c){try{if(!(r in e))return()=>{};let o=e[r],i=c(o);return typeof i=="function"&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:o}})),e[r]=i,()=>{e[r]=o}}catch(o){return()=>{}}}var le={childNodes:Jr,parentNode:Zr,parentElement:Yr,textContent:Xr,contains:Qr,getRootNode:Kr,host:ei,styleSheets:ti,shadowRoot:ri,querySelector:ii,querySelectorAll:si,mutationObserver:ni,patch:oi};function Ot(e){return e.nodeType===e.ELEMENT_NODE}function ai(e){let r=e&&"host"in e&&"mode"in e&&le.host(e)||null;return!!(r&&"shadowRoot"in r&&le.shadowRoot(r)===e)}function li(e){return Object.prototype.toString.call(e)==="[object ShadowRoot]"}function ui(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 At(e){let{cssText:r}=e;if(r.split('"').length<3)return r;let c=["@import",`url(${JSON.stringify(e.href)})`];return e.layerName===""?c.push("layer"):e.layerName&&c.push(`layer(${e.layerName})`),e.supportsText&&c.push(`supports(${e.supportsText})`),e.media.length&&c.push(e.media.mediaText),c.join(" ")+";"}function Pt(e){try{let r=e.rules||e.cssRules;if(!r)return null;let c=e.href;!c&&e.ownerNode&&(c=e.ownerNode.baseURI);let o=Array.from(r,i=>_t(i,c)).join("");return ui(o)}catch(r){return null}}function _t(e,r){var c;if(Dt(e)){let o;try{o=Pt(e.styleSheet)||At(e)}catch(i){o=e.cssText}try{if(o&&((c=e.styleSheet)!=null&&c.href))return Ne(o,e.styleSheet.href)}catch(i){}return o}else{let o=e.cssText;return kt(e)&&e.selectorText.includes(":")&&(o=Tt(o)),r?Ne(o,r):o}}function Tt(e){let r=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return e.replace(r,"$1\\$2")}function Dt(e){return"styleSheet"in e}function kt(e){return"selectorText"in e}var ue=class{constructor(){vt(this,"idNodeMap",new Map),vt(this,"nodeMetaMap",new WeakMap)}getId(r){var c;if(!r)return-1;let o=(c=this.getMeta(r))==null?void 0:c.id;return o!=null?o:-1}getNode(r){return this.idNodeMap.get(r)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(r){return this.nodeMetaMap.get(r)||null}removeNodeFromMap(r){let c=this.getId(r);if(this.idNodeMap.delete(c),r.childNodes&&r.childNodes.forEach(o=>this.removeNodeFromMap(o)),Ot(r)){let o=le.shadowRoot(r);o&&this.removeNodeFromMap(o),r.nodeName==="IFRAME"&&r.contentDocument&&this.removeNodeFromMap(r.contentDocument)}}has(r){return this.idNodeMap.has(r)}hasNode(r){return this.nodeMetaMap.has(r)}add(r,c){let o=c.id;this.idNodeMap.set(o,r),this.nodeMetaMap.set(r,c)}replace(r,c){let o=this.getNode(r);if(o){let i=this.nodeMetaMap.get(o);i&&this.nodeMetaMap.set(c,i)}this.idNodeMap.set(r,c)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}};function ci(){return new ue}function fi({element:e,maskInputOptions:r,tagName:c,type:o,value:i,maskInputFn:f}){let u=i||"",h=o&&Me(o);return(r[c.toLowerCase()]||h&&r[h])&&(f?u=f(u,e):u="*".repeat(u.length)),u}function Me(e){return e.toLowerCase()}var Nt="__rrweb_original__";function hi(e){let r=e.getContext("2d");if(!r)return!0;let c=50;for(let o=0;o<e.width;o+=c)for(let i=0;i<e.height;i+=c){let f=r.getImageData,u=Nt in f?f[Nt]:f;if(new Uint32Array(u.call(r,o,i,Math.min(c,e.width-o),Math.min(c,e.height-i)).data.buffer).some(d=>d!==0))return!1}return!0}function pi(e,r){return!e||!r||e.type!==r.type?!1:e.type===J.Document?e.compatMode===r.compatMode:e.type===J.DocumentType?e.name===r.name&&e.publicId===r.publicId&&e.systemId===r.systemId:e.type===J.Comment||e.type===J.Text||e.type===J.CDATA?e.textContent===r.textContent:e.type===J.Element?e.tagName===r.tagName&&JSON.stringify(e.attributes)===JSON.stringify(r.attributes)&&e.isSVG===r.isSVG&&e.needBlock===r.needBlock:!1}function di(e){let r=e.type;return e.hasAttribute("data-rr-is-password")?"password":r?Me(r):null}function mi(e,r){var f;let c;try{c=new URL(e,r!=null?r:window.location.href)}catch(u){return null}let o=/\.([0-9a-z]+)(?:$)/i,i=c.pathname.match(o);return(f=i==null?void 0:i[1])!=null?f:null}function gi(e){let r="";return e.indexOf("//")>-1?r=e.split("/").slice(0,3).join("/"):r=e.split("/")[0],r=r.split("?")[0],r}var yi=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,wi=/^(?:[a-z+]+:)?\/\//i,Si=/^www\..*/i,bi=/^(data:)([^,]*),(.*)/i;function Ne(e,r){return(e||"").replace(yi,(c,o,i,f,u,h)=>{let d=i||u||h,a=o||f||"";if(!d)return c;if(wi.test(d)||Si.test(d))return`url(${a}${d}${a})`;if(bi.test(d))return`url(${a}${d}${a})`;if(d[0]==="/")return`url(${a}${gi(r)+d}${a})`;let t=r.split("/"),l=d.split("/");t.pop();for(let n of l)n!=="."&&(n===".."?t.pop():t.push(n));return`url(${a}${t.join("/")}${a})`})}var xi="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPgogIDxkZWZzPgogICAgPHBhdHRlcm4gaWQ9InN0cmlwZXMiIHBhdHRlcm5Vbml0cz0idXNlclNwYWNlT25Vc2UiIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiI+CiAgICAgIDxyZWN0IHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgZmlsbD0iYmxhY2siLz4KICAgICAgPHBhdGggZD0iTTggMEgxNkwwIDE2VjhMOCAwWiIgZmlsbD0iIzJEMkQyRCIvPgogICAgICA8cGF0aCBkPSJNMTYgOFYxNkg4TDE2IDhaIiBmaWxsPSIjMkQyRDJEIi8+CiAgICA8L3BhdHRlcm4+CiAgPC9kZWZzPgogIDxyZWN0IHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIGZpbGw9InVybCgjc3RyaXBlcykiLz4KPC9zdmc+Cg==",It=4096;function Ci(e,r,c,o){if(!e.complete||e.naturalWidth===0||e.naturalWidth>It||e.naturalHeight>It)return r;try{let i=document.createElement("canvas");i.width=e.naturalWidth,i.height=e.naturalHeight;let f=i.getContext("2d");return f?(f.drawImage(e,0,0),i.toDataURL(c||"image/webp",o!=null?o:.4)):r}catch(i){return r}}function vi(e,r){return!r||e.length<=r?e:xi}var Lt=(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))(Lt||{});U.Mirror=ue;U.NodeType=Lt;U.NodeType$1=J;U.absolutifyURLs=Ne;U.checkDataURLSize=vi;U.createMirror=ci;U.escapeImportStatement=At;U.extractFileExtension=mi;U.fixSafariColons=Tt;U.getInputType=di;U.index=le;U.is2DCanvasBlank=hi;U.isCSSImportRule=Dt;U.isCSSStyleRule=kt;U.isElement=Ot;U.isNativeShadowDom=li;U.isNodeMetaEqual=pi;U.isShadowRoot=ai;U.maskInputValue=fi;U.recompressBase64Image=Ci;U.stringifyRule=_t;U.stringifyStylesheet=Pt;U.toLowerCase=Me});var Gt=ve(W=>{"use strict";var I=ce(),$t=1,Ri=new RegExp("[^a-z0-9-_:]"),Oe=-2;function zt(){return $t++}function Ei(e){if(e instanceof HTMLFormElement)return"form";let r=I.toLowerCase(e.tagName);return Ri.test(r)?"div":r}var K,Bt,Ni=/^[^ \t\n\r\u000c]+/,Ii=/^[, \t\n\r\u000c]+/;function Mi(e,r){if(r.trim()==="")return r;let c=0;function o(f){let u,h=f.exec(r.substring(c));return h?(u=h[0],c+=u.length,u):""}let i=[];for(;o(Ii),!(c>=r.length);){let f=o(Ni);if(f.slice(-1)===",")f=ee(e,f.substring(0,f.length-1)),i.push(f);else{let u="";f=ee(e,f);let h=!1;for(;;){let d=r.charAt(c);if(d===""){i.push((f+u).trim());break}else if(h)d===")"&&(h=!1);else if(d===","){c+=1,i.push((f+u).trim());break}else d==="("&&(h=!0);u+=d,c+=1}}}return i.join(", ")}var Ut=new WeakMap;function ee(e,r){return!r||r.trim()===""?r:Pe(e,r)}function Oi(e){return!!(e.tagName==="svg"||e.ownerSVGElement)}function Pe(e,r){let c=Ut.get(e);if(c||(c=e.createElement("a"),Ut.set(e,c)),!r)r="";else if(r.startsWith("blob:")||r.startsWith("data:"))return r;return c.setAttribute("href",r),c.href}function Wt(e,r,c,o,i,f){if(!o)return o;if(c==="src"||c==="href"&&!(r==="use"&&o[0]==="#")){let u=ee(e,o);if(r==="img"&&u.startsWith("data:")&&i){let h=i,d=u;return(f!=null&&f.type||(f==null?void 0:f.quality)!==void 0)&&(d=I.recompressBase64Image(h,u,f.type,f.quality)),f!=null&&f.maxBase64ImageLength&&(d=I.checkDataURLSize(d,f.maxBase64ImageLength)),d}return u}else{if(c==="xlink:href"&&o[0]!=="#")return ee(e,o);if(c==="background"&&(r==="table"||r==="td"||r==="th"))return ee(e,o);if(c==="srcset")return Mi(e,o);if(c==="style")return I.absolutifyURLs(o,Pe(e));if(r==="object"&&c==="data")return ee(e,o)}return o}function qt(e,r,c){return(e==="video"||e==="audio")&&r==="autoplay"}function Ai(e,r,c){try{if(typeof r=="string"){if(e.classList.contains(r))return!0}else for(let o=e.classList.length;o--;){let i=e.classList[o];if(r.test(i))return!0}if(c)return e.matches(c)}catch(o){}return!1}function fe(e,r,c){if(!e)return!1;if(e.nodeType!==e.ELEMENT_NODE)return c?fe(I.index.parentNode(e),r,c):!1;for(let o=e.classList.length;o--;){let i=e.classList[o];if(r.test(i))return!0}return c?fe(I.index.parentNode(e),r,c):!1}function jt(e,r,c,o){let i;if(I.isElement(e)){if(i=e,!I.index.childNodes(i).length)return!1}else{if(I.index.parentElement(e)===null)return!1;i=I.index.parentElement(e)}try{if(typeof r=="string"){if(o){if(i.closest(`.${r}`))return!0}else if(i.classList.contains(r))return!0}else if(fe(i,r,o))return!0;if(c){if(o){if(i.closest(c))return!0}else if(i.matches(c))return!0}}catch(f){}return!1}function Pi(e,r,c){let o=e.contentWindow;if(!o)return;let i=!1,f;try{f=o.document.readyState}catch(h){return}if(f!=="complete"){let h=setTimeout(()=>{i||(r(),i=!0)},c);e.addEventListener("load",()=>{clearTimeout(h),i=!0,r()});return}let u="about:blank";if(o.location.href!==u||e.src===u||e.src==="")return setTimeout(r,0),e.addEventListener("load",r);e.addEventListener("load",r)}function _i(e,r,c){let o=!1,i;try{i=e.sheet}catch(u){return}if(i)return;let f=setTimeout(()=>{o||(r(),o=!0)},c);e.addEventListener("load",()=>{clearTimeout(f),o=!0,r()})}function Ti(e,r){let{doc:c,mirror:o,blockClass:i,blockSelector:f,needsMask:u,inlineStylesheet:h,maskInputOptions:d={},maskTextFn:a,maskInputFn:t,dataURLOptions:l={},inlineImages:n,recordCanvas:s,keepIframeSrcFn:p,newlyAddedElement:m=!1}=r,y=Di(c,o);switch(e.nodeType){case e.DOCUMENT_NODE:return e.compatMode!=="CSS1Compat"?{type:I.NodeType$1.Document,childNodes:[],compatMode:e.compatMode}:{type:I.NodeType$1.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:I.NodeType$1.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:y};case e.ELEMENT_NODE:return Bi(e,{doc:c,blockClass:i,blockSelector:f,inlineStylesheet:h,maskInputOptions:d,maskInputFn:t,dataURLOptions:l,inlineImages:n,recordCanvas:s,keepIframeSrcFn:p,newlyAddedElement:m,rootId:y});case e.TEXT_NODE:return ki(e,{doc:c,needsMask:u,maskTextFn:a,rootId:y});case e.CDATA_SECTION_NODE:return{type:I.NodeType$1.CDATA,textContent:"",rootId:y};case e.COMMENT_NODE:return{type:I.NodeType$1.Comment,textContent:I.index.textContent(e)||"",rootId:y};default:return!1}}function Di(e,r){if(!r.hasNode(e))return;let c=r.getId(e);return c===1?void 0:c}function ki(e,r){var c;let{needsMask:o,maskTextFn:i,rootId:f}=r,u=I.index.parentNode(e),h=u&&u.tagName,d=I.index.textContent(e),a=h==="STYLE"?!0:void 0,t=h==="SCRIPT"?!0:void 0;if(a&&d){try{e.nextSibling||e.previousSibling||(c=u.sheet)!=null&&c.cssRules&&(d=I.stringifyStylesheet(u.sheet))}catch(l){console.warn(`Cannot get CSS styles from text's parentNode. Error: ${l}`,e)}d=I.absolutifyURLs(d,Pe(r.doc))}return t&&(d="SCRIPT_PLACEHOLDER"),!a&&!t&&d&&o&&(d=i?i(d,I.index.parentElement(e)):d.replace(/[\S]/g,"*")),{type:I.NodeType$1.Text,textContent:d||"",isStyle:a,rootId:f}}function Ft(e,r){return Array.from(e.styleSheets).find(c=>c.href===r)}function Li(e){return e.href}function Bi(e,r){var c,o;let{doc:i,blockClass:f,blockSelector:u,inlineStylesheet:h,maskInputOptions:d={},maskInputFn:a,dataURLOptions:t={},inlineImages:l,recordCanvas:n,keepIframeSrcFn:s,newlyAddedElement:p=!1,rootId:m}=r,y=Ai(e,f,u),b=Ei(e),w={},x=e.attributes.length;for(let g=0;g<x;g++){let S=e.attributes[g];qt(b,S.name,S.value)||(w[S.name]=Wt(i,b,I.toLowerCase(S.name),S.value,e,t))}if(b==="link"&&h){let g=Li(e);if(g){let S=Ft(i,g);if(!S&&g.includes(".css")){let v=window.location.origin,M=g.replace(window.location.href,""),E=v+"/"+M;S=Ft(i,E)}let C=null;S&&(C=I.stringifyStylesheet(S)),C&&(delete w.rel,delete w.href,w._cssText=C)}}if(b==="style"&&e.sheet&&!(e.innerText||I.index.textContent(e)||"").trim().length){let g=I.stringifyStylesheet(e.sheet);g&&(w._cssText=g)}if(b==="input"||b==="textarea"||b==="select"){let g=e.value,S=e.checked;w.type!=="radio"&&w.type!=="checkbox"&&w.type!=="submit"&&w.type!=="button"&&g?w.value=I.maskInputValue({element:e,type:I.getInputType(e),tagName:b,value:g,maskInputOptions:d,maskInputFn:a}):S&&(w.checked=S)}if(b==="option"&&(e.selected&&!d.select?w.selected=!0:delete w.selected),b==="dialog"&&e.open)try{w.rr_open_mode=e.matches("dialog:modal")?"modal":"non-modal"}catch(g){w.rr_open_mode="modal",w.ph_rr_could_not_detect_modal=!0}if(b==="canvas"&&n){if(e.__context==="2d")I.is2DCanvasBlank(e)||(w.rr_dataURL=e.toDataURL(t.type,t.quality));else if(!("__context"in e)){let g=e.toDataURL(t.type,t.quality),S=i.createElement("canvas");S.width=e.width,S.height=e.height;let C=S.toDataURL(t.type,t.quality);g!==C&&(w.rr_dataURL=g)}}if(b==="img"&&l){K||(K=i.createElement("canvas"),Bt=K.getContext("2d"));let g=e,S=g.currentSrc||g.getAttribute("src")||"<unknown-src>",C=g.crossOrigin,v=()=>{g.removeEventListener("load",v);try{K.width=g.naturalWidth,K.height=g.naturalHeight,Bt.drawImage(g,0,0),w.rr_dataURL=K.toDataURL(t.type,t.quality)}catch(M){if(g.crossOrigin!=="anonymous"){g.crossOrigin="anonymous",g.complete&&g.naturalWidth!==0?v():g.addEventListener("load",v);return}else console.warn(`Cannot inline img src=${S}! Error: ${M}`)}g.crossOrigin==="anonymous"&&(C?w.crossOrigin=C:g.removeAttribute("crossorigin"))};g.complete&&g.naturalWidth!==0?v():g.addEventListener("load",v)}if(b==="audio"||b==="video"){let g=w;g.rr_mediaState=e.paused?"paused":"played",g.rr_mediaCurrentTime=e.currentTime,g.rr_mediaPlaybackRate=e.playbackRate,g.rr_mediaMuted=e.muted,g.rr_mediaLoop=e.loop,g.rr_mediaVolume=e.volume}if(p||(e.scrollLeft&&(w.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(w.rr_scrollTop=e.scrollTop)),y){let{width:g,height:S,left:C,top:v}=e.getBoundingClientRect();w={class:w.class,rr_width:`${g}px`,rr_height:`${S}px`,rr_left:`${Math.floor(C+(((c=i.defaultView)==null?void 0:c.scrollX)||0))}px`,rr_top:`${Math.floor(v+(((o=i.defaultView)==null?void 0:o.scrollY)||0))}px`}}b==="iframe"&&!s(w.src)&&(e.contentDocument||(w.rr_src=w.src),delete w.src);let R;try{customElements.get(b)&&(R=!0)}catch(g){}return{type:I.NodeType$1.Element,tagName:b,attributes:w,childNodes:[],isSVG:Oi(e)||void 0,needBlock:y,rootId:m,isCustom:R}}function L(e){return e==null?"":e.toLowerCase()}function Ui(e,r){if(r.comment&&e.type===I.NodeType$1.Comment)return!0;if(e.type===I.NodeType$1.Element){if(r.script&&(e.tagName==="script"||e.tagName==="link"&&(e.attributes.rel==="preload"&&e.attributes.as==="script"||e.attributes.rel==="modulepreload")||e.tagName==="link"&&e.attributes.rel==="prefetch"&&typeof e.attributes.href=="string"&&I.extractFileExtension(e.attributes.href)==="js"))return!0;if(r.headFavicon&&(e.tagName==="link"&&e.attributes.rel==="shortcut icon"||e.tagName==="meta"&&(L(e.attributes.name).match(/^msapplication-tile(image|color)$/)||L(e.attributes.name)==="application-name"||L(e.attributes.rel)==="icon"||L(e.attributes.rel)==="apple-touch-icon"||L(e.attributes.rel)==="shortcut icon")))return!0;if(e.tagName==="meta"){if(r.headMetaDescKeywords&&L(e.attributes.name).match(/^description|keywords$/))return!0;if(r.headMetaSocial&&(L(e.attributes.property).match(/^(og|twitter|fb):/)||L(e.attributes.name).match(/^(og|twitter):/)||L(e.attributes.name)==="pinterest"))return!0;if(r.headMetaRobots&&(L(e.attributes.name)==="robots"||L(e.attributes.name)==="googlebot"||L(e.attributes.name)==="bingbot"))return!0;if(r.headMetaHttpEquiv&&e.attributes["http-equiv"]!==void 0)return!0;if(r.headMetaAuthorship&&(L(e.attributes.name)==="author"||L(e.attributes.name)==="generator"||L(e.attributes.name)==="framework"||L(e.attributes.name)==="publisher"||L(e.attributes.name)==="progid"||L(e.attributes.property).match(/^article:/)||L(e.attributes.property).match(/^product:/)))return!0;if(r.headMetaVerification&&(L(e.attributes.name)==="google-site-verification"||L(e.attributes.name)==="yandex-verification"||L(e.attributes.name)==="csrf-token"||L(e.attributes.name)==="p:domain_verify"||L(e.attributes.name)==="verify-v1"||L(e.attributes.name)==="verification"||L(e.attributes.name)==="shopify-checkout-api-token"))return!0}}return!1}var Vt=50,Ae=!1,_e=!1;function Fi(){return _e}function $i(){_e=!1,Ae=!1}function te(e,r){let{doc:c,mirror:o,blockClass:i,blockSelector:f,maskTextClass:u,maskTextSelector:h,skipChild:d=!1,inlineStylesheet:a=!0,maskInputOptions:t={},maskTextFn:l,maskInputFn:n,slimDOMOptions:s,dataURLOptions:p={},inlineImages:m=!1,recordCanvas:y=!1,onSerialize:b,onIframeLoad:w,iframeLoadTimeout:x=5e3,onStylesheetLoad:R,stylesheetLoadTimeout:g=5e3,keepIframeSrcFn:S=()=>!1,newlyAddedElement:C=!1,depth:v=0,maxDepth:M=Vt}=r,{needsMask:E}=r,{preserveWhiteSpace:D=!0}=r;if(v>=M)return _e=!0,Ae||(Ae=!0,console.warn(`[rrweb-snapshot] DOM tree depth exceeded max depth of ${M}. Children beyond this depth will not be recorded. This may indicate deeply nested DOM structures.`)),null;E||(E=jt(e,u,h,E===void 0));let P=Ti(e,{doc:c,mirror:o,blockClass:i,blockSelector:f,needsMask:E,inlineStylesheet:a,maskInputOptions:t,maskTextFn:l,maskInputFn:n,dataURLOptions:p,inlineImages:m,recordCanvas:y,keepIframeSrcFn:S,newlyAddedElement:C});if(!P)return console.warn(e,"not serialized"),null;let G;o.hasNode(e)?G=o.getId(e):Ui(P,s)||!D&&P.type===I.NodeType$1.Text&&!P.isStyle&&!P.textContent.replace(/^\s+|\s+$/gm,"").length?G=Oe:G=zt();let _=Object.assign(P,{id:G});if(o.add(e,_),G===Oe)return null;b&&b(e);let N=!d;if(_.type===I.NodeType$1.Element){N=N&&!_.needBlock,delete _.needBlock;let k=I.index.shadowRoot(e);k&&I.isNativeShadowDom(k)&&(_.isShadowHost=!0)}if((_.type===I.NodeType$1.Document||_.type===I.NodeType$1.Element)&&N){s.headWhitespace&&_.type===I.NodeType$1.Element&&_.tagName==="head"&&(D=!1);let k={doc:c,mirror:o,blockClass:i,blockSelector:f,needsMask:E,maskTextClass:u,maskTextSelector:h,skipChild:d,inlineStylesheet:a,maskInputOptions:t,maskTextFn:l,maskInputFn:n,slimDOMOptions:s,dataURLOptions:p,inlineImages:m,recordCanvas:y,preserveWhiteSpace:D,onSerialize:b,onIframeLoad:w,iframeLoadTimeout:x,onStylesheetLoad:R,stylesheetLoadTimeout:g,keepIframeSrcFn:S,depth:v+1,maxDepth:M};if(!(_.type===I.NodeType$1.Element&&_.tagName==="textarea"&&_.attributes.value!==void 0))for(let V of Array.from(I.index.childNodes(e))){let z=te(V,k);z&&_.childNodes.push(z)}let $=null;if(I.isElement(e)&&($=I.index.shadowRoot(e)))for(let V of Array.from(I.index.childNodes($))){let z=te(V,k);z&&(I.isNativeShadowDom($)&&(z.isShadow=!0),_.childNodes.push(z))}}let X=I.index.parentNode(e);return X&&I.isShadowRoot(X)&&I.isNativeShadowDom(X)&&(_.isShadow=!0),_.type===I.NodeType$1.Element&&_.tagName==="iframe"&&Pi(e,()=>{let k=e.contentDocument;if(k&&w){let $=te(k,{doc:k,mirror:o,blockClass:i,blockSelector:f,needsMask:E,maskTextClass:u,maskTextSelector:h,skipChild:!1,inlineStylesheet:a,maskInputOptions:t,maskTextFn:l,maskInputFn:n,slimDOMOptions:s,dataURLOptions:p,inlineImages:m,recordCanvas:y,preserveWhiteSpace:D,onSerialize:b,onIframeLoad:w,iframeLoadTimeout:x,onStylesheetLoad:R,stylesheetLoadTimeout:g,keepIframeSrcFn:S,depth:v+1,maxDepth:M});$&&w(e,$)}},x),_.type===I.NodeType$1.Element&&_.tagName==="link"&&typeof _.attributes.rel=="string"&&(_.attributes.rel==="stylesheet"||_.attributes.rel==="preload"&&typeof _.attributes.href=="string"&&I.extractFileExtension(_.attributes.href)==="css")&&_i(e,()=>{if(R){let k=te(e,{doc:c,mirror:o,blockClass:i,blockSelector:f,needsMask:E,maskTextClass:u,maskTextSelector:h,skipChild:!1,inlineStylesheet:a,maskInputOptions:t,maskTextFn:l,maskInputFn:n,slimDOMOptions:s,dataURLOptions:p,inlineImages:m,recordCanvas:y,preserveWhiteSpace:D,onSerialize:b,onIframeLoad:w,iframeLoadTimeout:x,onStylesheetLoad:R,stylesheetLoadTimeout:g,keepIframeSrcFn:S,depth:v,maxDepth:M});k&&R(e,k)}},g),_}function zi(e,r){let{mirror:c=new I.Mirror,blockClass:o="rr-block",blockSelector:i=null,maskTextClass:f="rr-mask",maskTextSelector:u=null,inlineStylesheet:h=!0,inlineImages:d=!1,recordCanvas:a=!1,maskAllInputs:t=!1,maskTextFn:l,maskInputFn:n,slimDOM:s=!1,dataURLOptions:p,preserveWhiteSpace:m,onSerialize:y,onIframeLoad:b,iframeLoadTimeout:w,onStylesheetLoad:x,stylesheetLoadTimeout:R,keepIframeSrcFn:g=()=>!1,maxDepth:S}=r||{};return te(e,{doc:e,mirror:c,blockClass:o,blockSelector:i,maskTextClass:f,maskTextSelector:u,skipChild:!1,inlineStylesheet:h,maskInputOptions:t===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0}:t===!1?{password:!0}:t,maskTextFn:l,maskInputFn:n,slimDOMOptions:s===!0||s==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:s==="all",headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:s===!1?{}:s,dataURLOptions:p,inlineImages:d,recordCanvas:a,preserveWhiteSpace:m,onSerialize:y,onIframeLoad:b,iframeLoadTimeout:w,onStylesheetLoad:x,stylesheetLoadTimeout:R,keepIframeSrcFn:g,newlyAddedElement:!1,maxDepth:S})}function Wi(e,r){function c(o){r(o),(o.type===I.NodeType$1.Document||o.type===I.NodeType$1.Element)&&o.childNodes.forEach(c)}c(e)}function qi(){$t=1}W.DEFAULT_MAX_DEPTH=Vt;W.IGNORED_NODE=Oe;W.classMatchesRegex=fe;W.cleanupSnapshot=qi;W.genId=zt;W.ignoreAttribute=qt;W.needMaskingText=jt;W.resetMaxDepthState=$i;W.serializeNodeWithId=te;W.snapshot=zi;W.transformAttribute=Wt;W.visitSnapshot=Wi;W.wasMaxDepthReached=Fi});var Br=ve(T=>{"use strict";Object.defineProperty(T,Symbol.toStringTag,{value:"Module"});var A=ce(),ji=/(max|min)-device-(width|height)/,Ht=new RegExp(ji.source,"g"),Vi={postcssPlugin:"postcss-custom-selectors",prepare(){return{postcssPlugin:"postcss-custom-selectors",AtRule:function(e){e.params.match(Ht)&&(e.params=e.params.replace(Ht,"$1-$2"))}}}},Gi={postcssPlugin:"postcss-hover-classes",prepare:function(){let e=[];return{Rule:function(r){e.indexOf(r)===-1&&(e.push(r),r.selectors.forEach(function(c){if(c.includes(":hover")){let o=c.replace(new RegExp("(?<!\\\\):hover","g"),".\\:hover");o!==c&&(r.selector+=`,
3
+ `+o)}}))}}}};function Nr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Hi(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var r=e.default;if(typeof r=="function"){var c=function o(){return this instanceof o?Reflect.construct(r,arguments,this.constructor):r.apply(this,arguments)};c.prototype=r.prototype}else c={};return Object.defineProperty(c,"__esModule",{value:!0}),Object.keys(e).forEach(function(o){var i=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(c,o,i.get?i:{enumerable:!0,get:function(){return e[o]}})}),c}var he={exports:{}},Jt;function Ji(){if(Jt)return he.exports;Jt=1;var e=String,r=function(){return{isColorSupported:!1,reset:e,bold:e,dim:e,italic:e,underline:e,inverse:e,hidden:e,strikethrough:e,black:e,red:e,green:e,yellow:e,blue:e,magenta:e,cyan:e,white:e,gray:e,bgBlack:e,bgRed:e,bgGreen:e,bgYellow:e,bgBlue:e,bgMagenta:e,bgCyan:e,bgWhite:e,blackBright:e,redBright:e,greenBright:e,yellowBright:e,blueBright:e,magentaBright:e,cyanBright:e,whiteBright:e,bgBlackBright:e,bgRedBright:e,bgGreenBright:e,bgYellowBright:e,bgBlueBright:e,bgMagentaBright:e,bgCyanBright:e,bgWhiteBright:e}};return he.exports=r(),he.exports.createColors=r,he.exports}var Zi={},Yi=Object.freeze(Object.defineProperty({__proto__:null,default:Zi},Symbol.toStringTag,{value:"Module"})),j=Hi(Yi),Te,Zt;function lt(){if(Zt)return Te;Zt=1;let e=Ji(),r=j;class c extends Error{constructor(i,f,u,h,d,a){super(i),this.name="CssSyntaxError",this.reason=i,d&&(this.file=d),h&&(this.source=h),a&&(this.plugin=a),typeof f!="undefined"&&typeof u!="undefined"&&(typeof f=="number"?(this.line=f,this.column=u):(this.line=f.line,this.column=f.column,this.endLine=u.line,this.endColumn=u.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,c)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line!="undefined"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(i){if(!this.source)return"";let f=this.source;i==null&&(i=e.isColorSupported);let u=s=>s,h=s=>s,d=s=>s;if(i){let{bold:s,gray:p,red:m}=e.createColors(!0);h=y=>s(m(y)),u=y=>p(y),r&&(d=y=>r(y))}let a=f.split(/\r?\n/),t=Math.max(this.line-3,0),l=Math.min(this.line+2,a.length),n=String(l).length;return a.slice(t,l).map((s,p)=>{let m=t+1+p,y=" "+(" "+m).slice(-n)+" | ";if(m===this.line){if(s.length>160){let w=20,x=Math.max(0,this.column-w),R=Math.max(this.column+w,this.endColumn+w),g=s.slice(x,R),S=u(y.replace(/\d/g," "))+s.slice(0,Math.min(this.column-1,w-1)).replace(/[^\t]/g," ");return h(">")+u(y)+d(g)+`
4
4
  `+S+h("^")}let b=u(y.replace(/\d/g," "))+s.slice(0,this.column-1).replace(/[^\t]/g," ");return h(">")+u(y)+d(s)+`
5
5
  `+b+h("^")}return" "+u(y)+d(s)}).join(`
6
6
  `)}toString(){let i=this.showSourceCode();return i&&(i=`