@appsurify-testmap/rrweb-snapshot 2.1.0-alpha.1 → 2.1.0-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/rrweb-snapshot.cjs +0 -1
- package/dist/rrweb-snapshot.cjs.map +1 -1
- package/dist/rrweb-snapshot.js +0 -1
- package/dist/rrweb-snapshot.js.map +1 -1
- package/dist/rrweb-snapshot.umd.cjs +0 -1
- package/dist/rrweb-snapshot.umd.cjs.map +2 -2
- package/dist/rrweb-snapshot.umd.min.cjs +1 -1
- package/dist/rrweb-snapshot.umd.min.cjs.map +2 -2
- package/package.json +3 -3
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
}(this, () => {
|
|
12
12
|
var exports = {};
|
|
13
13
|
var module = { exports };
|
|
14
|
-
"use strict";var oi=Object.defineProperty,li=Object.defineProperties;var ai=Object.getOwnPropertyDescriptors;var fe=Object.getOwnPropertySymbols;var Mt=Object.prototype.hasOwnProperty,_t=Object.prototype.propertyIsEnumerable;var At=(i,e,t)=>e in i?oi(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,D=(i,e)=>{for(var t in e||(e={}))Mt.call(e,t)&&At(i,t,e[t]);if(fe)for(var t of fe(e))_t.call(e,t)&&At(i,t,e[t]);return i},Z=(i,e)=>li(i,ai(e));var We=(i,e)=>{var t={};for(var r in i)Mt.call(i,r)&&e.indexOf(r)<0&&(t[r]=i[r]);if(i!=null&&fe)for(var r of fe(i))e.indexOf(r)<0&&_t.call(i,r)&&(t[r]=i[r]);return t};var ui=Object.defineProperty,ci=(i,e,t)=>e in i?ui(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,kt=(i,e,t)=>ci(i,typeof e!="symbol"?e+"":e,t);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var w=(i=>(i[i.Document=0]="Document",i[i.DocumentType=1]="DocumentType",i[i.Element=2]="Element",i[i.Text=3]="Text",i[i.CDATA=4]="CDATA",i[i.Comment=5]="Comment",i))(w||{});const It={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},Pt={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},he={},fi=()=>!!globalThis.Zone;function ht(i){if(he[i])return he[i];const e=globalThis[i],t=e.prototype,r=i in It?It[i]:void 0,s=!!(r&&r.every(l=>{var a,u;return!!((u=(a=Object.getOwnPropertyDescriptor(t,l))==null?void 0:a.get)!=null&&u.toString().includes("[native code]"))})),o=i in Pt?Pt[i]:void 0,n=!!(o&&o.every(l=>{var a;return typeof t[l]=="function"&&((a=t[l])==null?void 0:a.toString().includes("[native code]"))}));if(s&&n&&!fi())return he[i]=e.prototype,e.prototype;try{const l=document.createElement("iframe");document.body.appendChild(l);const a=l.contentWindow;if(!a)return e.prototype;const u=a[i].prototype;return document.body.removeChild(l),u?he[i]=u:t}catch(l){return t}}const Ve={};function F(i,e,t){var r;const s=`${i}.${String(t)}`;if(Ve[s])return Ve[s].call(e);const o=ht(i),n=(r=Object.getOwnPropertyDescriptor(o,t))==null?void 0:r.get;return n?(Ve[s]=n,n.call(e)):e[t]}const Ge={};function rr(i,e,t){const r=`${i}.${String(t)}`;if(Ge[r])return Ge[r].bind(e);const o=ht(i)[t];return typeof o!="function"?e[t]:(Ge[r]=o,o.bind(e))}function hi(i){return F("Node",i,"childNodes")}function pi(i){return F("Node",i,"parentNode")}function di(i){return F("Node",i,"parentElement")}function mi(i){return F("Node",i,"textContent")}function gi(i,e){return rr("Node",i,"contains")(e)}function yi(i){return rr("Node",i,"getRootNode")()}function wi(i){return!i||!("host"in i)?null:F("ShadowRoot",i,"host")}function bi(i){return i.styleSheets}function Ci(i){return!i||!("shadowRoot"in i)?null:F("Element",i,"shadowRoot")}function Si(i,e){return F("Element",i,"querySelector")(e)}function vi(i,e){return F("Element",i,"querySelectorAll")(e)}function xi(){return ht("MutationObserver").constructor}function Ei(i,e,t){try{if(!(e in i))return()=>{};const r=i[e],s=t(r);return typeof s=="function"&&(s.prototype=s.prototype||{},Object.defineProperties(s,{__rrweb_original__:{enumerable:!1,value:r}})),i[e]=s,()=>{i[e]=r}}catch(r){return()=>{}}}const A={childNodes:hi,parentNode:pi,parentElement:di,textContent:mi,contains:gi,getRootNode:yi,host:wi,styleSheets:bi,shadowRoot:Ci,querySelector:Si,querySelectorAll:vi,mutationObserver:xi,patch:Ei};function ke(i){return i.nodeType===i.ELEMENT_NODE}function ir(i){const e=i&&"host"in i&&"mode"in i&&A.host(i)||null;return!!(e&&"shadowRoot"in e&&A.shadowRoot(e)===i)}function ve(i){return Object.prototype.toString.call(i)==="[object ShadowRoot]"}function Ni(i){return i.includes(" background-clip: text;")&&!i.includes(" -webkit-background-clip: text;")&&(i=i.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;")),i}function sr(i){const{cssText:e}=i;if(e.split('"').length<3)return e;const t=["@import",`url(${JSON.stringify(i.href)})`];return i.layerName===""?t.push("layer"):i.layerName&&t.push(`layer(${i.layerName})`),i.supportsText&&t.push(`supports(${i.supportsText})`),i.media.length&&t.push(i.media.mediaText),t.join(" ")+";"}function Ne(i){try{const e=i.rules||i.cssRules;if(!e)return null;let t=i.href;!t&&i.ownerNode&&i.ownerNode.ownerDocument&&(t=i.ownerNode.ownerDocument.location.href);const r=Array.from(e,s=>nr(s,t)).join("");return Ni(r)}catch(e){return null}}function nr(i,e){if(lr(i)){let t;try{t=Ne(i.styleSheet)||sr(i)}catch(r){t=i.cssText}return i.styleSheet.href?ie(t,i.styleSheet.href):t}else{let t=i.cssText;return ar(i)&&i.selectorText.includes(":")&&(t=or(t)),e?ie(t,e):t}}function or(i){const e=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return i.replace(e,"$1\\$2")}function lr(i){return"styleSheet"in i}function ar(i){return"selectorText"in i}class Ie{constructor(){kt(this,"idNodeMap",new Map),kt(this,"nodeMetaMap",new WeakMap)}getId(e){var t;if(!e)return-1;const r=(t=this.getMeta(e))==null?void 0:t.id;return r!=null?r:-1}getNode(e){return this.idNodeMap.get(e)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(e){return this.nodeMetaMap.get(e)||null}removeNodeFromMap(e){const t=this.getId(e);this.idNodeMap.delete(t),e.childNodes&&e.childNodes.forEach(r=>this.removeNodeFromMap(r))}has(e){return this.idNodeMap.has(e)}hasNode(e){return this.nodeMetaMap.has(e)}add(e,t){const r=t.id;this.idNodeMap.set(r,e),this.nodeMetaMap.set(e,t)}replace(e,t){const r=this.getNode(e);if(r){const s=this.nodeMetaMap.get(r);s&&this.nodeMetaMap.set(t,s)}this.idNodeMap.set(e,t)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function Oi(){return new Ie}function ur({element:i,maskInputOptions:e,tagName:t,type:r,value:s,maskInputFn:o}){let n=s||"";const l=r&&ae(r);return(e[t.toLowerCase()]||l&&e[l])&&(o?n=o(n,i):n="*".repeat(n.length)),n}function ae(i){return i.toLowerCase()}const Tt="__rrweb_original__";function cr(i){const e=i.getContext("2d");if(!e)return!0;const t=50;for(let r=0;r<i.width;r+=t)for(let s=0;s<i.height;s+=t){const o=e.getImageData,n=Tt in o?o[Tt]:o;if(new Uint32Array(n.call(e,r,s,Math.min(t,i.width-r),Math.min(t,i.height-s)).data.buffer).some(a=>a!==0))return!1}return!0}function fr(i,e){return!i||!e||i.type!==e.type?!1:i.type===w.Document?i.compatMode===e.compatMode:i.type===w.DocumentType?i.name===e.name&&i.publicId===e.publicId&&i.systemId===e.systemId:i.type===w.Comment||i.type===w.Text||i.type===w.CDATA?i.textContent===e.textContent:i.type===w.Element?i.tagName===e.tagName&&JSON.stringify(i.attributes)===JSON.stringify(e.attributes)&&i.isSVG===e.isSVG&&i.needBlock===e.needBlock:!1}function hr(i){const e=i.type;return i.hasAttribute("data-rr-is-password")?"password":e?ae(e):null}function Pe(i,e){var o;let t;try{t=new URL(i,e!=null?e:window.location.href)}catch(n){return null}const r=/\.([0-9a-z]+)(?:$)/i,s=t.pathname.match(r);return(o=s==null?void 0:s[1])!=null?o:null}function Ri(i){let e="";return i.indexOf("//")>-1?e=i.split("/").slice(0,3).join("/"):e=i.split("/")[0],e=e.split("?")[0],e}const Ai=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,Mi=/^(?:[a-z+]+:)?\/\//i,_i=/^www\..*/i,ki=/^(data:)([^,]*),(.*)/i;function ie(i,e){return(i||"").replace(Ai,(t,r,s,o,n,l)=>{const a=s||n||l,u=r||o||"";if(!a)return t;if(Mi.test(a)||_i.test(a))return`url(${u}${a}${u})`;if(ki.test(a))return`url(${u}${a}${u})`;if(a[0]==="/")return`url(${u}${Ri(e)+a}${u})`;const c=e.split("/"),f=a.split("/");c.pop();for(const h of f)h!=="."&&(h===".."?c.pop():c.push(h));return`url(${u}${c.join("/")}${u})`})}function re(i,e=!1){return e?i.replace(/(\/\*[^*]*\*\/)|[\s;]/g,""):i.replace(/(\/\*[^*]*\*\/)|[\s;]/g,"").replace(/0px/g,"0")}function pr(i,e,t=!1){const r=Array.from(e.childNodes),s=[];let o=0;if(r.length>1&&i&&typeof i=="string"){let n=re(i,t);const l=n.length/i.length;for(let a=1;a<r.length;a++)if(r[a].textContent&&typeof r[a].textContent=="string"){const u=re(r[a].textContent,t),c=100;let f=3;for(;f<u.length&&(u[f].match(/[a-zA-Z0-9]/)||u.indexOf(u.substring(0,f),1)!==-1);f++);for(;f<u.length;f++){let h=u.substring(0,f),y=n.split(h),m=-1;if(y.length===2)m=y[0].length;else if(y.length>2&&y[0]===""&&r[a-1].textContent!=="")m=n.indexOf(h,1);else if(y.length===1){if(h=h.substring(0,h.length-1),y=n.split(h),y.length<=1)return s.push(i),s;f=c+1}else f===u.length-1&&(m=n.indexOf(h));if(y.length>=2&&f>c){const x=r[a-1].textContent;if(x&&typeof x=="string"){const p=re(x).length;m=n.indexOf(h,p)}m===-1&&(m=y[0].length)}if(m!==-1){let x=Math.floor(m/l);for(;x>0&&x<i.length;){if(o+=1,o>50*r.length)return s.push(i),s;const p=re(i.substring(0,x),t);if(p.length===m){s.push(i.substring(0,x)),i=i.substring(x),n=n.substring(m);break}else p.length<m?x+=Math.max(1,Math.floor((m-p.length)/l)):x-=Math.max(1,Math.floor((p.length-m)*l))}break}}}}return s.push(i),s}function dr(i,e){return pr(i,e).join("/* rr_split */")}function V(i){if(i.nodeType===Node.DOCUMENT_NODE)return"/";if(i.nodeType===Node.DOCUMENT_TYPE_NODE)return"/html/doctype";if(i.nodeType===Node.ELEMENT_NODE){const e=i;if(e.id)return`//*[@id="${e.id}"]`;if(e.tagName&&e.tagName.toLowerCase()==="html")return"/html";if(e===document.head)return"/html/head";if(e===document.body)return"/html/body";const t=e.parentNode;if(!t)return"";const r=Array.from(t.children).filter(o=>o.tagName===e.tagName),s=r.length>1?`[${r.indexOf(e)+1}]`:"";return`${V(t)}/${e.tagName.toLowerCase()}${s}`}if(i.nodeType===Node.TEXT_NODE){const e=i.parentNode;if(!e)return"";const t=Array.from(e.childNodes).filter(s=>s.nodeType===Node.TEXT_NODE),r=t.length>1?`[${t.indexOf(i)+1}]`:"";return`${V(e)}/text()${r}`}if(i.nodeType===Node.CDATA_SECTION_NODE){const e=i.parentNode;if(!e)return"";const t=Array.from(e.childNodes).filter(s=>s.nodeType===Node.CDATA_SECTION_NODE),r=t.length>1?`[${t.indexOf(i)+1}]`:"";return`${V(e)}/text()${r}`}if(i.nodeType===Node.COMMENT_NODE){const e=i.parentNode;if(!e)return"";const t=Array.from(e.childNodes).filter(s=>s.nodeType===Node.COMMENT_NODE),r=t.length>1?`[${t.indexOf(i)+1}]`:"";return`${V(e)}/comment()${r}`}return""}function mr(i){var e;const t=A.parentNode(i),r=t&&t;return!r||!pt(r)?!1:((e=i.textContent)==null?void 0:e.trim())!==""}function pt(i){var l;var e;const t=(l=(e=i.ownerDocument)==null?void 0:e.defaultView)!=null?l:null,r=t?t.getComputedStyle(i):null,s=r!=null&&r.display!=="none"&&r.visibility!=="hidden"&&parseFloat(r.opacity)!==0,o=i.getBoundingClientRect();return s&&Ii(o)}function Ii(i,e=window){var a,u,c,f;var t,r,s,o;const n=(u=(a=e==null?void 0:e.innerHeight)!=null?a:(r=(t=e==null?void 0:e.document)==null?void 0:t.documentElement)==null?void 0:r.clientHeight)!=null?u:0,l=(f=(c=e==null?void 0:e.innerWidth)!=null?c:(o=(s=e==null?void 0:e.document)==null?void 0:s.documentElement)==null?void 0:o.clientWidth)!=null?f:0;return i.width>0&&i.height>0&&i.top>=0&&i.left>=0&&i.bottom<=n&&i.right<=l}const gr=["change","submit","dragstart","drop","pointerdown","pointerup","input","keydown","keyup","keypress","mouseenter","mouseleave","mouseup","mousedown","click","contextmenu","dblclick","focus","blur","touchstart","touchmove","touchend","touchcancel"],yr=["a","button","input","select","textarea","label","details","summary","dialog","video","audio"],Pi=["onclick","ondblclick","onmousedown","onmouseup","onmouseover","onmouseout","onmousemove","onfocus","onblur","onkeydown","onkeypress","onkeyup","onchange","oninput","onsubmit","onreset","onselect","oncontextmenu","ontouchstart","ontouchmove","ontouchend","ontouchcancel"],dt=new WeakSet,Ti=EventTarget.prototype.addEventListener;EventTarget.prototype.addEventListener=function(i,e,t){if(Ti.call(this,i,e,t),this instanceof Element){const r=i.toLowerCase();gr.includes(r)&&dt.add(this)}};const Li=EventTarget.prototype.removeEventListener;EventTarget.prototype.removeEventListener=function(i,e,t){Li.call(this,i,e,t)};function $i(i){return i instanceof Element&&dt.has(i)}function mt(i){if(i.nodeType===Node.ELEMENT_NODE){const e=i,t=e.tagName.toLowerCase();if(yr.includes(t))return!0;const r=e.hasAttribute("tabindex")&&e.getAttribute("tabindex")!=="-1",s=["button","link","checkbox","switch","menuitem"].includes(e.getAttribute("role")||"");return $i(e)||r||s||e instanceof HTMLAnchorElement&&e.hasAttribute("href")||e instanceof HTMLButtonElement&&!e.disabled}return!1}function Lt(){document.querySelectorAll("*").forEach(e=>{Pi.forEach(t=>{e.hasAttribute(t)&&dt.add(e)})})}document.readyState==="complete"||document.readyState==="interactive"?Lt():document.addEventListener("DOMContentLoaded",Lt);let wr=1;const Di=new RegExp("[^a-z0-9-_:]"),Ke=-2;function br(){return wr++}function Cr(i){if(i instanceof HTMLFormElement)return"form";const e=ae(i.tagName);return Di.test(e)?"div":e}let W,$t;const Ui=/^[^ \t\n\r\u000c]+/,Fi=/^[, \t\n\r\u000c]+/;function Bi(i,e){if(e.trim()==="")return e;let t=0;function r(o){let n;const l=o.exec(e.substring(t));return l?(n=l[0],t+=n.length,n):""}const s=[];for(;r(Fi),!(t>=e.length);){let o=r(Ui);if(o.slice(-1)===",")o=G(i,o.substring(0,o.length-1)),s.push(o);else{let n="";o=G(i,o);let l=!1;for(;;){const a=e.charAt(t);if(a===""){s.push((o+n).trim());break}else if(l)a===")"&&(l=!1);else if(a===","){t+=1,s.push((o+n).trim());break}else a==="("&&(l=!0);n+=a,t+=1}}}return s.join(", ")}const Dt=new WeakMap;function G(i,e){return!e||e.trim()===""?e:gt(i,e)}function zi(i){return!!(i.tagName==="svg"||i.ownerSVGElement)}function gt(i,e){let t=Dt.get(i);if(t||(t=i.createElement("a"),Dt.set(i,t)),!e)e="";else if(e.startsWith("blob:")||e.startsWith("data:"))return e;return t.setAttribute("href",e),t.href}function Sr(i,e,t,r){return r&&(t==="src"||t==="href"&&!(e==="use"&&r[0]==="#")||t==="xlink:href"&&r[0]!=="#"||t==="background"&&(e==="table"||e==="td"||e==="th")?G(i,r):t==="srcset"?Bi(i,r):t==="style"?ie(r,gt(i)):e==="object"&&t==="data"?G(i,r):r)}function vr(i,e,t){return(i==="video"||i==="audio")&&e==="autoplay"}function ji(i,e,t){const r=Cr(e),s={},o=e.attributes.length;for(let n=0;n<o;n++){const l=e.attributes[n],a=l.name,u=l.value;!(typeof t=="string"?a===t:t.test(a))&&!vr(r,a)&&(s[a]=Sr(i,r,ae(a),u))}return s}function Wi(i,e,t){try{if(typeof e=="string"){if(i.classList.contains(e))return!0}else for(let r=i.classList.length;r--;){const s=i.classList[r];if(e.test(s))return!0}if(t)return i.matches(t)}catch(r){}return!1}function Oe(i,e,t){if(!i)return!1;if(i.nodeType!==i.ELEMENT_NODE)return t?Oe(A.parentNode(i),e,t):!1;for(let r=i.classList.length;r--;){const s=i.classList[r];if(e.test(s))return!0}return t?Oe(A.parentNode(i),e,t):!1}function xr(i,e,t,r){let s;if(ke(i)){if(s=i,!A.childNodes(s).length)return!1}else{if(A.parentElement(i)===null)return!1;s=A.parentElement(i)}try{if(typeof e=="string"){if(r){if(s.closest(`.${e}`))return!0}else if(s.classList.contains(e))return!0}else if(Oe(s,e,r))return!0;if(t){if(r){if(s.closest(t))return!0}else if(s.matches(t))return!0}}catch(o){}return!1}function Vi(i,e,t){const r=i.contentWindow;if(!r)return;let s=!1,o;try{o=r.document.readyState}catch(l){return}if(o!=="complete"){const l=setTimeout(()=>{s||(e(),s=!0)},t);i.addEventListener("load",()=>{clearTimeout(l),s=!0,e()});return}const n="about:blank";if(r.location.href!==n||i.src===n||i.src==="")return setTimeout(e,0),i.addEventListener("load",e);i.addEventListener("load",e)}function Gi(i,e,t){let r=!1,s;try{s=i.sheet}catch(n){return}if(s)return;const o=setTimeout(()=>{r||(e(),r=!0)},t);i.addEventListener("load",()=>{clearTimeout(o),r=!0,e()})}function Hi(i,e){const{doc:t,mirror:r,blockClass:s,blockSelector:o,ignoreAttribute:n,needsMask:l,inlineStylesheet:a,maskInputOptions:u={},maskTextFn:c,maskInputFn:f,dataURLOptions:h={},inlineImages:y,recordCanvas:m,keepIframeSrcFn:x,newlyAddedElement:p=!1,cssCaptured:C=!1}=e,g=qi(t,r),R=V(i);switch(i.nodeType){case i.DOCUMENT_NODE:return i.compatMode!=="CSS1Compat"?{type:w.Document,childNodes:[],xPath:R,compatMode:i.compatMode}:{type:w.Document,childNodes:[],xPath:R};case i.DOCUMENT_TYPE_NODE:return{type:w.DocumentType,name:i.name,publicId:i.publicId,systemId:i.systemId,rootId:g,xPath:R};case i.ELEMENT_NODE:return Yi(i,{doc:t,blockClass:s,blockSelector:o,ignoreAttribute:n,inlineStylesheet:a,maskInputOptions:u,maskInputFn:f,dataURLOptions:h,inlineImages:y,recordCanvas:m,keepIframeSrcFn:x,newlyAddedElement:p,rootId:g,xPath:R});case i.TEXT_NODE:return Ji(i,{doc:t,needsMask:l,maskTextFn:c,rootId:g,cssCaptured:C,xPath:R});case i.CDATA_SECTION_NODE:return{type:w.CDATA,textContent:"",rootId:g,xPath:R};case i.COMMENT_NODE:return{type:w.Comment,textContent:A.textContent(i)||"",rootId:g,xPath:R};default:return!1}}function qi(i,e){if(!e.hasNode(i))return;const t=e.getId(i);return t===1?void 0:t}function Ji(i,e){const{needsMask:t,maskTextFn:r,rootId:s,cssCaptured:o,xPath:n}=e,l=A.parentNode(i),a=l&&l.tagName;let u="";const c=a==="STYLE"?!0:void 0,f=a==="SCRIPT"?!0:void 0;f?u="SCRIPT_PLACEHOLDER":o||(u=A.textContent(i),c&&u&&(u=ie(u,gt(e.doc)))),!c&&!f&&u&&t&&(u=r?r(u,A.parentElement(i)):u.replace(/[\S]/g,"*"));const h=mr(i),y=mt(i);return{type:w.Text,textContent:u||"",rootId:s,isVisible:h,isInteractive:y,xPath:n}}function Yi(i,e){const{doc:t,blockClass:r,blockSelector:s,ignoreAttribute:o,inlineStylesheet:n,maskInputOptions:l={},maskInputFn:a,dataURLOptions:u={},inlineImages:c,recordCanvas:f,keepIframeSrcFn:h,newlyAddedElement:y=!1,rootId:m,xPath:x}=e,p=Wi(i,r,s),C=Cr(i);let g=ji(t,i,o);if(C==="link"&&n){const d=Array.from(t.styleSheets).find(M=>M.href===i.href);let O=null;d&&(O=Ne(d)),O&&(delete g.rel,delete g.href,g._cssText=O)}if(C==="style"&&i.sheet){let d=Ne(i.sheet);d&&(i.childNodes.length>1&&(d=dr(d,i)),g._cssText=d)}if(C==="input"||C==="textarea"||C==="select"){const d=i.value,O=i.checked;g.type!=="radio"&&g.type!=="checkbox"&&g.type!=="submit"&&g.type!=="button"&&d?g.value=ur({element:i,type:hr(i),tagName:C,value:d,maskInputOptions:l,maskInputFn:a}):O&&(g.checked=O)}if(C==="option"&&(i.selected&&!l.select?g.selected=!0:delete g.selected),C==="dialog"&&i.open&&(g.rr_open_mode=i.matches("dialog:modal")?"modal":"non-modal"),C==="canvas"&&f){if(i.__context==="2d")cr(i)||(g.rr_dataURL=i.toDataURL(u.type,u.quality));else if(!("__context"in i)){const d=i.toDataURL(u.type,u.quality),O=t.createElement("canvas");O.width=i.width,O.height=i.height;const M=O.toDataURL(u.type,u.quality);d!==M&&(g.rr_dataURL=d)}}if(C==="img"&&c){W||(W=t.createElement("canvas"),$t=W.getContext("2d"));const d=i,O=d.currentSrc||d.getAttribute("src")||"<unknown-src>",M=d.crossOrigin,T=()=>{d.removeEventListener("load",T);try{W.width=d.naturalWidth,W.height=d.naturalHeight,$t.drawImage(d,0,0),g.rr_dataURL=W.toDataURL(u.type,u.quality)}catch(I){if(d.crossOrigin!=="anonymous"){d.crossOrigin="anonymous",d.complete&&d.naturalWidth!==0?T():d.addEventListener("load",T);return}else console.warn(`Cannot inline img src=${O}! Error: ${I}`)}d.crossOrigin==="anonymous"&&(M?g.crossOrigin=M:d.removeAttribute("crossorigin"))};d.complete&&d.naturalWidth!==0?T():d.addEventListener("load",T)}if(C==="audio"||C==="video"){const d=g;d.rr_mediaState=i.paused?"paused":"played",d.rr_mediaCurrentTime=i.currentTime,d.rr_mediaPlaybackRate=i.playbackRate,d.rr_mediaMuted=i.muted,d.rr_mediaLoop=i.loop,d.rr_mediaVolume=i.volume}if(y||(i.scrollLeft&&(g.rr_scrollLeft=i.scrollLeft),i.scrollTop&&(g.rr_scrollTop=i.scrollTop)),p){const{width:d,height:O}=i.getBoundingClientRect();g={class:g.class,rr_width:`${d}px`,rr_height:`${O}px`}}C==="iframe"&&!h(g.src)&&(i.contentDocument||(g.rr_src=g.src),delete g.src);let R;try{customElements.get(C)&&(R=!0)}catch(d){}const k=pt(i),P=mt(i);return{type:w.Element,tagName:C,attributes:g,childNodes:[],isSVG:zi(i)||void 0,needBlock:p,rootId:m,isCustom:R,isVisible:k,isInteractive:P,xPath:x}}function v(i){return i==null?"":i.toLowerCase()}function Ki(i,e){if(e.comment&&i.type===w.Comment)return!0;if(i.type===w.Element){if(e.script&&(i.tagName==="script"||i.tagName==="link"&&(i.attributes.rel==="preload"&&i.attributes.as==="script"||i.attributes.rel==="modulepreload")||i.tagName==="link"&&i.attributes.rel==="prefetch"&&typeof i.attributes.href=="string"&&Pe(i.attributes.href)==="js"))return!0;if(e.headFavicon&&(i.tagName==="link"&&i.attributes.rel==="shortcut icon"||i.tagName==="meta"&&(v(i.attributes.name).match(/^msapplication-tile(image|color)$/)||v(i.attributes.name)==="application-name"||v(i.attributes.rel)==="icon"||v(i.attributes.rel)==="apple-touch-icon"||v(i.attributes.rel)==="shortcut icon")))return!0;if(i.tagName==="meta"){if(e.headMetaDescKeywords&&v(i.attributes.name).match(/^description|keywords$/))return!0;if(e.headMetaSocial&&(v(i.attributes.property).match(/^(og|twitter|fb):/)||v(i.attributes.name).match(/^(og|twitter):/)||v(i.attributes.name)==="pinterest"))return!0;if(e.headMetaRobots&&(v(i.attributes.name)==="robots"||v(i.attributes.name)==="googlebot"||v(i.attributes.name)==="bingbot"))return!0;if(e.headMetaHttpEquiv&&i.attributes["http-equiv"]!==void 0)return!0;if(e.headMetaAuthorship&&(v(i.attributes.name)==="author"||v(i.attributes.name)==="generator"||v(i.attributes.name)==="framework"||v(i.attributes.name)==="publisher"||v(i.attributes.name)==="progid"||v(i.attributes.property).match(/^article:/)||v(i.attributes.property).match(/^product:/)))return!0;if(e.headMetaVerification&&(v(i.attributes.name)==="google-site-verification"||v(i.attributes.name)==="yandex-verification"||v(i.attributes.name)==="csrf-token"||v(i.attributes.name)==="p:domain_verify"||v(i.attributes.name)==="verify-v1"||v(i.attributes.name)==="verification"||v(i.attributes.name)==="shopify-checkout-api-token"))return!0}}return!1}function H(i,e){const{doc:t,mirror:r,blockClass:s,blockSelector:o,maskTextClass:n,maskTextSelector:l,ignoreAttribute:a,skipChild:u=!1,inlineStylesheet:c=!0,maskInputOptions:f={},maskTextFn:h,maskInputFn:y,slimDOMOptions:m,dataURLOptions:x={},inlineImages:p=!1,recordCanvas:C=!1,onSerialize:g,onIframeLoad:R,iframeLoadTimeout:k=5e3,onStylesheetLoad:P,stylesheetLoadTimeout:d=5e3,keepIframeSrcFn:O=()=>!1,newlyAddedElement:M=!1,cssCaptured:T=!1}=e;let{needsMask:I}=e,{preserveWhiteSpace:K=!0}=e;I||(I=xr(i,n,l,I===void 0));const Q=Hi(i,{doc:t,mirror:r,blockClass:s,blockSelector:o,ignoreAttribute:a,needsMask:I,inlineStylesheet:c,maskInputOptions:f,maskTextFn:h,maskInputFn:y,dataURLOptions:x,inlineImages:p,recordCanvas:C,keepIframeSrcFn:O,newlyAddedElement:M,cssCaptured:T});if(!Q)return console.warn(i,"not serialized"),null;let X;r.hasNode(i)?X=r.getId(i):Ki(Q,m)||!K&&Q.type===w.Text&&!Q.textContent.replace(/^\s+|\s+$/gm,"").length?X=Ke:X=br();const S=Object.assign(Q,{id:X});if(r.add(i,S),X===Ke)return null;g&&g(i);let Be=!u;if(S.type===w.Element){Be=Be&&!S.needBlock,delete S.needBlock;const _=A.shadowRoot(i);_&&ve(_)&&(S.isShadowHost=!0)}if((S.type===w.Document||S.type===w.Element)&&Be){m.headWhitespace&&S.type===w.Element&&S.tagName==="head"&&(K=!1);const _={doc:t,mirror:r,blockClass:s,blockSelector:o,needsMask:I,maskTextClass:n,maskTextSelector:l,ignoreAttribute:a,skipChild:u,inlineStylesheet:c,maskInputOptions:f,maskTextFn:h,maskInputFn:y,slimDOMOptions:m,dataURLOptions:x,inlineImages:p,recordCanvas:C,preserveWhiteSpace:K,onSerialize:g,onIframeLoad:R,iframeLoadTimeout:k,onStylesheetLoad:P,stylesheetLoadTimeout:d,keepIframeSrcFn:O,cssCaptured:!1};if(!(S.type===w.Element&&S.tagName==="textarea"&&S.attributes.value!==void 0)){S.type===w.Element&&S.attributes._cssText!==void 0&&typeof S.attributes._cssText=="string"&&(_.cssCaptured=!0);for(const je of Array.from(A.childNodes(i))){const j=H(je,_);j&&S.childNodes.push(j)}}let z=null;if(ke(i)&&(z=A.shadowRoot(i)))for(const je of Array.from(A.childNodes(z))){const j=H(je,_);j&&(ve(z)&&(j.isShadow=!0),S.childNodes.push(j))}}const ze=A.parentNode(i);return ze&&ir(ze)&&ve(ze)&&(S.isShadow=!0),S.type===w.Element&&S.tagName==="iframe"&&Vi(i,()=>{const _=i.contentDocument;if(_&&R){const z=H(_,{doc:_,mirror:r,blockClass:s,blockSelector:o,needsMask:I,maskTextClass:n,maskTextSelector:l,ignoreAttribute:a,skipChild:!1,inlineStylesheet:c,maskInputOptions:f,maskTextFn:h,maskInputFn:y,slimDOMOptions:m,dataURLOptions:x,inlineImages:p,recordCanvas:C,preserveWhiteSpace:K,onSerialize:g,onIframeLoad:R,iframeLoadTimeout:k,onStylesheetLoad:P,stylesheetLoadTimeout:d,keepIframeSrcFn:O});z&&R(i,z)}},k),S.type===w.Element&&S.tagName==="link"&&typeof S.attributes.rel=="string"&&(S.attributes.rel==="stylesheet"||S.attributes.rel==="preload"&&typeof S.attributes.href=="string"&&Pe(S.attributes.href)==="css")&&Gi(i,()=>{if(P){const _=H(i,{doc:t,mirror:r,blockClass:s,blockSelector:o,needsMask:I,maskTextClass:n,maskTextSelector:l,ignoreAttribute:a,skipChild:!1,inlineStylesheet:c,maskInputOptions:f,maskTextFn:h,maskInputFn:y,slimDOMOptions:m,dataURLOptions:x,inlineImages:p,recordCanvas:C,preserveWhiteSpace:K,onSerialize:g,onIframeLoad:R,iframeLoadTimeout:k,onStylesheetLoad:P,stylesheetLoadTimeout:d,keepIframeSrcFn:O});_&&P(i,_)}},d),S}function Qi(i,e){const{mirror:t=new Ie,blockClass:r="rr-block",blockSelector:s=null,maskTextClass:o="rr-mask",maskTextSelector:n=null,ignoreAttribute:l="rr-ignore",inlineStylesheet:a=!0,inlineImages:u=!1,recordCanvas:c=!1,maskAllInputs:f=!1,maskTextFn:h,maskInputFn:y,slimDOM:m=!1,dataURLOptions:x,preserveWhiteSpace:p,onSerialize:C,onIframeLoad:g,iframeLoadTimeout:R,onStylesheetLoad:k,stylesheetLoadTimeout:P,keepIframeSrcFn:d=()=>!1}=e||{};return console.debug(`${Date.now()} [rrweb-snapshot] snapshot:options:`,e),H(i,{doc:i,mirror:t,blockClass:r,blockSelector:s,maskTextClass:o,maskTextSelector:n,ignoreAttribute:l,skipChild:!1,inlineStylesheet:a,maskInputOptions:f===!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===!1?{password:!0}:f,maskTextFn:h,maskInputFn:y,slimDOMOptions:m===!0||m==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:m==="all",headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:m===!1?{}:m,dataURLOptions:x,inlineImages:u,recordCanvas:c,preserveWhiteSpace:p,onSerialize:C,onIframeLoad:g,iframeLoadTimeout:R,onStylesheetLoad:k,stylesheetLoadTimeout:P,keepIframeSrcFn:d,newlyAddedElement:!1})}function Xi(i,e){function t(r){e(r),(r.type===w.Document||r.type===w.Element)&&r.childNodes.forEach(t)}t(i)}function Zi(){wr=1}const es=/(max|min)-device-(width|height)/,Ut=new RegExp(es.source,"g"),ts={postcssPlugin:"postcss-custom-selectors",prepare(){return{postcssPlugin:"postcss-custom-selectors",AtRule:function(i){i.params.match(Ut)&&(i.params=i.params.replace(Ut,"$1-$2"))}}}},rs={postcssPlugin:"postcss-hover-classes",prepare:function(){const i=[];return{Rule:function(e){i.indexOf(e)===-1&&(i.push(e),e.selectors.forEach(function(t){t.includes(":hover")&&(e.selector+=`,
|
|
14
|
+
"use strict";var oi=Object.defineProperty,li=Object.defineProperties;var ai=Object.getOwnPropertyDescriptors;var fe=Object.getOwnPropertySymbols;var Mt=Object.prototype.hasOwnProperty,_t=Object.prototype.propertyIsEnumerable;var At=(i,e,t)=>e in i?oi(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,D=(i,e)=>{for(var t in e||(e={}))Mt.call(e,t)&&At(i,t,e[t]);if(fe)for(var t of fe(e))_t.call(e,t)&&At(i,t,e[t]);return i},Z=(i,e)=>li(i,ai(e));var We=(i,e)=>{var t={};for(var r in i)Mt.call(i,r)&&e.indexOf(r)<0&&(t[r]=i[r]);if(i!=null&&fe)for(var r of fe(i))e.indexOf(r)<0&&_t.call(i,r)&&(t[r]=i[r]);return t};var ui=Object.defineProperty,ci=(i,e,t)=>e in i?ui(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,kt=(i,e,t)=>ci(i,typeof e!="symbol"?e+"":e,t);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var w=(i=>(i[i.Document=0]="Document",i[i.DocumentType=1]="DocumentType",i[i.Element=2]="Element",i[i.Text=3]="Text",i[i.CDATA=4]="CDATA",i[i.Comment=5]="Comment",i))(w||{});const It={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},Pt={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},he={},fi=()=>!!globalThis.Zone;function ht(i){if(he[i])return he[i];const e=globalThis[i],t=e.prototype,r=i in It?It[i]:void 0,s=!!(r&&r.every(l=>{var a,u;return!!((u=(a=Object.getOwnPropertyDescriptor(t,l))==null?void 0:a.get)!=null&&u.toString().includes("[native code]"))})),o=i in Pt?Pt[i]:void 0,n=!!(o&&o.every(l=>{var a;return typeof t[l]=="function"&&((a=t[l])==null?void 0:a.toString().includes("[native code]"))}));if(s&&n&&!fi())return he[i]=e.prototype,e.prototype;try{const l=document.createElement("iframe");document.body.appendChild(l);const a=l.contentWindow;if(!a)return e.prototype;const u=a[i].prototype;return document.body.removeChild(l),u?he[i]=u:t}catch(l){return t}}const Ve={};function F(i,e,t){var r;const s=`${i}.${String(t)}`;if(Ve[s])return Ve[s].call(e);const o=ht(i),n=(r=Object.getOwnPropertyDescriptor(o,t))==null?void 0:r.get;return n?(Ve[s]=n,n.call(e)):e[t]}const Ge={};function rr(i,e,t){const r=`${i}.${String(t)}`;if(Ge[r])return Ge[r].bind(e);const o=ht(i)[t];return typeof o!="function"?e[t]:(Ge[r]=o,o.bind(e))}function hi(i){return F("Node",i,"childNodes")}function pi(i){return F("Node",i,"parentNode")}function di(i){return F("Node",i,"parentElement")}function mi(i){return F("Node",i,"textContent")}function gi(i,e){return rr("Node",i,"contains")(e)}function yi(i){return rr("Node",i,"getRootNode")()}function wi(i){return!i||!("host"in i)?null:F("ShadowRoot",i,"host")}function bi(i){return i.styleSheets}function Ci(i){return!i||!("shadowRoot"in i)?null:F("Element",i,"shadowRoot")}function Si(i,e){return F("Element",i,"querySelector")(e)}function vi(i,e){return F("Element",i,"querySelectorAll")(e)}function xi(){return ht("MutationObserver").constructor}function Ei(i,e,t){try{if(!(e in i))return()=>{};const r=i[e],s=t(r);return typeof s=="function"&&(s.prototype=s.prototype||{},Object.defineProperties(s,{__rrweb_original__:{enumerable:!1,value:r}})),i[e]=s,()=>{i[e]=r}}catch(r){return()=>{}}}const A={childNodes:hi,parentNode:pi,parentElement:di,textContent:mi,contains:gi,getRootNode:yi,host:wi,styleSheets:bi,shadowRoot:Ci,querySelector:Si,querySelectorAll:vi,mutationObserver:xi,patch:Ei};function ke(i){return i.nodeType===i.ELEMENT_NODE}function ir(i){const e=i&&"host"in i&&"mode"in i&&A.host(i)||null;return!!(e&&"shadowRoot"in e&&A.shadowRoot(e)===i)}function ve(i){return Object.prototype.toString.call(i)==="[object ShadowRoot]"}function Ni(i){return i.includes(" background-clip: text;")&&!i.includes(" -webkit-background-clip: text;")&&(i=i.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;")),i}function sr(i){const{cssText:e}=i;if(e.split('"').length<3)return e;const t=["@import",`url(${JSON.stringify(i.href)})`];return i.layerName===""?t.push("layer"):i.layerName&&t.push(`layer(${i.layerName})`),i.supportsText&&t.push(`supports(${i.supportsText})`),i.media.length&&t.push(i.media.mediaText),t.join(" ")+";"}function Ne(i){try{const e=i.rules||i.cssRules;if(!e)return null;let t=i.href;!t&&i.ownerNode&&i.ownerNode.ownerDocument&&(t=i.ownerNode.ownerDocument.location.href);const r=Array.from(e,s=>nr(s,t)).join("");return Ni(r)}catch(e){return null}}function nr(i,e){if(lr(i)){let t;try{t=Ne(i.styleSheet)||sr(i)}catch(r){t=i.cssText}return i.styleSheet.href?ie(t,i.styleSheet.href):t}else{let t=i.cssText;return ar(i)&&i.selectorText.includes(":")&&(t=or(t)),e?ie(t,e):t}}function or(i){const e=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return i.replace(e,"$1\\$2")}function lr(i){return"styleSheet"in i}function ar(i){return"selectorText"in i}class Ie{constructor(){kt(this,"idNodeMap",new Map),kt(this,"nodeMetaMap",new WeakMap)}getId(e){var t;if(!e)return-1;const r=(t=this.getMeta(e))==null?void 0:t.id;return r!=null?r:-1}getNode(e){return this.idNodeMap.get(e)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(e){return this.nodeMetaMap.get(e)||null}removeNodeFromMap(e){const t=this.getId(e);this.idNodeMap.delete(t),e.childNodes&&e.childNodes.forEach(r=>this.removeNodeFromMap(r))}has(e){return this.idNodeMap.has(e)}hasNode(e){return this.nodeMetaMap.has(e)}add(e,t){const r=t.id;this.idNodeMap.set(r,e),this.nodeMetaMap.set(e,t)}replace(e,t){const r=this.getNode(e);if(r){const s=this.nodeMetaMap.get(r);s&&this.nodeMetaMap.set(t,s)}this.idNodeMap.set(e,t)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function Oi(){return new Ie}function ur({element:i,maskInputOptions:e,tagName:t,type:r,value:s,maskInputFn:o}){let n=s||"";const l=r&&ae(r);return(e[t.toLowerCase()]||l&&e[l])&&(o?n=o(n,i):n="*".repeat(n.length)),n}function ae(i){return i.toLowerCase()}const Tt="__rrweb_original__";function cr(i){const e=i.getContext("2d");if(!e)return!0;const t=50;for(let r=0;r<i.width;r+=t)for(let s=0;s<i.height;s+=t){const o=e.getImageData,n=Tt in o?o[Tt]:o;if(new Uint32Array(n.call(e,r,s,Math.min(t,i.width-r),Math.min(t,i.height-s)).data.buffer).some(a=>a!==0))return!1}return!0}function fr(i,e){return!i||!e||i.type!==e.type?!1:i.type===w.Document?i.compatMode===e.compatMode:i.type===w.DocumentType?i.name===e.name&&i.publicId===e.publicId&&i.systemId===e.systemId:i.type===w.Comment||i.type===w.Text||i.type===w.CDATA?i.textContent===e.textContent:i.type===w.Element?i.tagName===e.tagName&&JSON.stringify(i.attributes)===JSON.stringify(e.attributes)&&i.isSVG===e.isSVG&&i.needBlock===e.needBlock:!1}function hr(i){const e=i.type;return i.hasAttribute("data-rr-is-password")?"password":e?ae(e):null}function Pe(i,e){var o;let t;try{t=new URL(i,e!=null?e:window.location.href)}catch(n){return null}const r=/\.([0-9a-z]+)(?:$)/i,s=t.pathname.match(r);return(o=s==null?void 0:s[1])!=null?o:null}function Ri(i){let e="";return i.indexOf("//")>-1?e=i.split("/").slice(0,3).join("/"):e=i.split("/")[0],e=e.split("?")[0],e}const Ai=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,Mi=/^(?:[a-z+]+:)?\/\//i,_i=/^www\..*/i,ki=/^(data:)([^,]*),(.*)/i;function ie(i,e){return(i||"").replace(Ai,(t,r,s,o,n,l)=>{const a=s||n||l,u=r||o||"";if(!a)return t;if(Mi.test(a)||_i.test(a))return`url(${u}${a}${u})`;if(ki.test(a))return`url(${u}${a}${u})`;if(a[0]==="/")return`url(${u}${Ri(e)+a}${u})`;const c=e.split("/"),f=a.split("/");c.pop();for(const h of f)h!=="."&&(h===".."?c.pop():c.push(h));return`url(${u}${c.join("/")}${u})`})}function re(i,e=!1){return e?i.replace(/(\/\*[^*]*\*\/)|[\s;]/g,""):i.replace(/(\/\*[^*]*\*\/)|[\s;]/g,"").replace(/0px/g,"0")}function pr(i,e,t=!1){const r=Array.from(e.childNodes),s=[];let o=0;if(r.length>1&&i&&typeof i=="string"){let n=re(i,t);const l=n.length/i.length;for(let a=1;a<r.length;a++)if(r[a].textContent&&typeof r[a].textContent=="string"){const u=re(r[a].textContent,t),c=100;let f=3;for(;f<u.length&&(u[f].match(/[a-zA-Z0-9]/)||u.indexOf(u.substring(0,f),1)!==-1);f++);for(;f<u.length;f++){let h=u.substring(0,f),y=n.split(h),m=-1;if(y.length===2)m=y[0].length;else if(y.length>2&&y[0]===""&&r[a-1].textContent!=="")m=n.indexOf(h,1);else if(y.length===1){if(h=h.substring(0,h.length-1),y=n.split(h),y.length<=1)return s.push(i),s;f=c+1}else f===u.length-1&&(m=n.indexOf(h));if(y.length>=2&&f>c){const x=r[a-1].textContent;if(x&&typeof x=="string"){const p=re(x).length;m=n.indexOf(h,p)}m===-1&&(m=y[0].length)}if(m!==-1){let x=Math.floor(m/l);for(;x>0&&x<i.length;){if(o+=1,o>50*r.length)return s.push(i),s;const p=re(i.substring(0,x),t);if(p.length===m){s.push(i.substring(0,x)),i=i.substring(x),n=n.substring(m);break}else p.length<m?x+=Math.max(1,Math.floor((m-p.length)/l)):x-=Math.max(1,Math.floor((p.length-m)*l))}break}}}}return s.push(i),s}function dr(i,e){return pr(i,e).join("/* rr_split */")}function V(i){if(i.nodeType===Node.DOCUMENT_NODE)return"/";if(i.nodeType===Node.DOCUMENT_TYPE_NODE)return"/html/doctype";if(i.nodeType===Node.ELEMENT_NODE){const e=i;if(e.id)return`//*[@id="${e.id}"]`;if(e.tagName&&e.tagName.toLowerCase()==="html")return"/html";if(e===document.head)return"/html/head";if(e===document.body)return"/html/body";const t=e.parentNode;if(!t)return"";const r=Array.from(t.children).filter(o=>o.tagName===e.tagName),s=r.length>1?`[${r.indexOf(e)+1}]`:"";return`${V(t)}/${e.tagName.toLowerCase()}${s}`}if(i.nodeType===Node.TEXT_NODE){const e=i.parentNode;if(!e)return"";const t=Array.from(e.childNodes).filter(s=>s.nodeType===Node.TEXT_NODE),r=t.length>1?`[${t.indexOf(i)+1}]`:"";return`${V(e)}/text()${r}`}if(i.nodeType===Node.CDATA_SECTION_NODE){const e=i.parentNode;if(!e)return"";const t=Array.from(e.childNodes).filter(s=>s.nodeType===Node.CDATA_SECTION_NODE),r=t.length>1?`[${t.indexOf(i)+1}]`:"";return`${V(e)}/text()${r}`}if(i.nodeType===Node.COMMENT_NODE){const e=i.parentNode;if(!e)return"";const t=Array.from(e.childNodes).filter(s=>s.nodeType===Node.COMMENT_NODE),r=t.length>1?`[${t.indexOf(i)+1}]`:"";return`${V(e)}/comment()${r}`}return""}function mr(i){var e;const t=A.parentNode(i),r=t&&t;return!r||!pt(r)?!1:((e=i.textContent)==null?void 0:e.trim())!==""}function pt(i){var l;var e;const t=(l=(e=i.ownerDocument)==null?void 0:e.defaultView)!=null?l:null,r=t?t.getComputedStyle(i):null,s=r!=null&&r.display!=="none"&&r.visibility!=="hidden"&&parseFloat(r.opacity)!==0,o=i.getBoundingClientRect();return s&&Ii(o)}function Ii(i,e=window){var a,u,c,f;var t,r,s,o;const n=(u=(a=e==null?void 0:e.innerHeight)!=null?a:(r=(t=e==null?void 0:e.document)==null?void 0:t.documentElement)==null?void 0:r.clientHeight)!=null?u:0,l=(f=(c=e==null?void 0:e.innerWidth)!=null?c:(o=(s=e==null?void 0:e.document)==null?void 0:s.documentElement)==null?void 0:o.clientWidth)!=null?f:0;return i.width>0&&i.height>0&&i.top>=0&&i.left>=0&&i.bottom<=n&&i.right<=l}const gr=["change","submit","dragstart","drop","pointerdown","pointerup","input","keydown","keyup","keypress","mouseenter","mouseleave","mouseup","mousedown","click","contextmenu","dblclick","focus","blur","touchstart","touchmove","touchend","touchcancel"],yr=["a","button","input","select","textarea","label","details","summary","dialog","video","audio"],Pi=["onclick","ondblclick","onmousedown","onmouseup","onmouseover","onmouseout","onmousemove","onfocus","onblur","onkeydown","onkeypress","onkeyup","onchange","oninput","onsubmit","onreset","onselect","oncontextmenu","ontouchstart","ontouchmove","ontouchend","ontouchcancel"],dt=new WeakSet,Ti=EventTarget.prototype.addEventListener;EventTarget.prototype.addEventListener=function(i,e,t){if(Ti.call(this,i,e,t),this instanceof Element){const r=i.toLowerCase();gr.includes(r)&&dt.add(this)}};const Li=EventTarget.prototype.removeEventListener;EventTarget.prototype.removeEventListener=function(i,e,t){Li.call(this,i,e,t)};function $i(i){return i instanceof Element&&dt.has(i)}function mt(i){if(i.nodeType===Node.ELEMENT_NODE){const e=i,t=e.tagName.toLowerCase();if(yr.includes(t))return!0;const r=e.hasAttribute("tabindex")&&e.getAttribute("tabindex")!=="-1",s=["button","link","checkbox","switch","menuitem"].includes(e.getAttribute("role")||"");return $i(e)||r||s||e instanceof HTMLAnchorElement&&e.hasAttribute("href")||e instanceof HTMLButtonElement&&!e.disabled}return!1}function Lt(){document.querySelectorAll("*").forEach(e=>{Pi.forEach(t=>{e.hasAttribute(t)&&dt.add(e)})})}document.readyState==="complete"||document.readyState==="interactive"?Lt():document.addEventListener("DOMContentLoaded",Lt);let wr=1;const Di=new RegExp("[^a-z0-9-_:]"),Ke=-2;function br(){return wr++}function Cr(i){if(i instanceof HTMLFormElement)return"form";const e=ae(i.tagName);return Di.test(e)?"div":e}let W,$t;const Ui=/^[^ \t\n\r\u000c]+/,Fi=/^[, \t\n\r\u000c]+/;function Bi(i,e){if(e.trim()==="")return e;let t=0;function r(o){let n;const l=o.exec(e.substring(t));return l?(n=l[0],t+=n.length,n):""}const s=[];for(;r(Fi),!(t>=e.length);){let o=r(Ui);if(o.slice(-1)===",")o=G(i,o.substring(0,o.length-1)),s.push(o);else{let n="";o=G(i,o);let l=!1;for(;;){const a=e.charAt(t);if(a===""){s.push((o+n).trim());break}else if(l)a===")"&&(l=!1);else if(a===","){t+=1,s.push((o+n).trim());break}else a==="("&&(l=!0);n+=a,t+=1}}}return s.join(", ")}const Dt=new WeakMap;function G(i,e){return!e||e.trim()===""?e:gt(i,e)}function zi(i){return!!(i.tagName==="svg"||i.ownerSVGElement)}function gt(i,e){let t=Dt.get(i);if(t||(t=i.createElement("a"),Dt.set(i,t)),!e)e="";else if(e.startsWith("blob:")||e.startsWith("data:"))return e;return t.setAttribute("href",e),t.href}function Sr(i,e,t,r){return r&&(t==="src"||t==="href"&&!(e==="use"&&r[0]==="#")||t==="xlink:href"&&r[0]!=="#"||t==="background"&&(e==="table"||e==="td"||e==="th")?G(i,r):t==="srcset"?Bi(i,r):t==="style"?ie(r,gt(i)):e==="object"&&t==="data"?G(i,r):r)}function vr(i,e,t){return(i==="video"||i==="audio")&&e==="autoplay"}function ji(i,e,t){const r=Cr(e),s={},o=e.attributes.length;for(let n=0;n<o;n++){const l=e.attributes[n],a=l.name,u=l.value;!(typeof t=="string"?a===t:t.test(a))&&!vr(r,a)&&(s[a]=Sr(i,r,ae(a),u))}return s}function Wi(i,e,t){try{if(typeof e=="string"){if(i.classList.contains(e))return!0}else for(let r=i.classList.length;r--;){const s=i.classList[r];if(e.test(s))return!0}if(t)return i.matches(t)}catch(r){}return!1}function Oe(i,e,t){if(!i)return!1;if(i.nodeType!==i.ELEMENT_NODE)return t?Oe(A.parentNode(i),e,t):!1;for(let r=i.classList.length;r--;){const s=i.classList[r];if(e.test(s))return!0}return t?Oe(A.parentNode(i),e,t):!1}function xr(i,e,t,r){let s;if(ke(i)){if(s=i,!A.childNodes(s).length)return!1}else{if(A.parentElement(i)===null)return!1;s=A.parentElement(i)}try{if(typeof e=="string"){if(r){if(s.closest(`.${e}`))return!0}else if(s.classList.contains(e))return!0}else if(Oe(s,e,r))return!0;if(t){if(r){if(s.closest(t))return!0}else if(s.matches(t))return!0}}catch(o){}return!1}function Vi(i,e,t){const r=i.contentWindow;if(!r)return;let s=!1,o;try{o=r.document.readyState}catch(l){return}if(o!=="complete"){const l=setTimeout(()=>{s||(e(),s=!0)},t);i.addEventListener("load",()=>{clearTimeout(l),s=!0,e()});return}const n="about:blank";if(r.location.href!==n||i.src===n||i.src==="")return setTimeout(e,0),i.addEventListener("load",e);i.addEventListener("load",e)}function Gi(i,e,t){let r=!1,s;try{s=i.sheet}catch(n){return}if(s)return;const o=setTimeout(()=>{r||(e(),r=!0)},t);i.addEventListener("load",()=>{clearTimeout(o),r=!0,e()})}function Hi(i,e){const{doc:t,mirror:r,blockClass:s,blockSelector:o,ignoreAttribute:n,needsMask:l,inlineStylesheet:a,maskInputOptions:u={},maskTextFn:c,maskInputFn:f,dataURLOptions:h={},inlineImages:y,recordCanvas:m,keepIframeSrcFn:x,newlyAddedElement:p=!1,cssCaptured:C=!1}=e,g=qi(t,r),R=V(i);switch(i.nodeType){case i.DOCUMENT_NODE:return i.compatMode!=="CSS1Compat"?{type:w.Document,childNodes:[],xPath:R,compatMode:i.compatMode}:{type:w.Document,childNodes:[],xPath:R};case i.DOCUMENT_TYPE_NODE:return{type:w.DocumentType,name:i.name,publicId:i.publicId,systemId:i.systemId,rootId:g,xPath:R};case i.ELEMENT_NODE:return Yi(i,{doc:t,blockClass:s,blockSelector:o,ignoreAttribute:n,inlineStylesheet:a,maskInputOptions:u,maskInputFn:f,dataURLOptions:h,inlineImages:y,recordCanvas:m,keepIframeSrcFn:x,newlyAddedElement:p,rootId:g,xPath:R});case i.TEXT_NODE:return Ji(i,{doc:t,needsMask:l,maskTextFn:c,rootId:g,cssCaptured:C,xPath:R});case i.CDATA_SECTION_NODE:return{type:w.CDATA,textContent:"",rootId:g,xPath:R};case i.COMMENT_NODE:return{type:w.Comment,textContent:A.textContent(i)||"",rootId:g,xPath:R};default:return!1}}function qi(i,e){if(!e.hasNode(i))return;const t=e.getId(i);return t===1?void 0:t}function Ji(i,e){const{needsMask:t,maskTextFn:r,rootId:s,cssCaptured:o,xPath:n}=e,l=A.parentNode(i),a=l&&l.tagName;let u="";const c=a==="STYLE"?!0:void 0,f=a==="SCRIPT"?!0:void 0;f?u="SCRIPT_PLACEHOLDER":o||(u=A.textContent(i),c&&u&&(u=ie(u,gt(e.doc)))),!c&&!f&&u&&t&&(u=r?r(u,A.parentElement(i)):u.replace(/[\S]/g,"*"));const h=mr(i),y=mt(i);return{type:w.Text,textContent:u||"",rootId:s,isVisible:h,isInteractive:y,xPath:n}}function Yi(i,e){const{doc:t,blockClass:r,blockSelector:s,ignoreAttribute:o,inlineStylesheet:n,maskInputOptions:l={},maskInputFn:a,dataURLOptions:u={},inlineImages:c,recordCanvas:f,keepIframeSrcFn:h,newlyAddedElement:y=!1,rootId:m,xPath:x}=e,p=Wi(i,r,s),C=Cr(i);let g=ji(t,i,o);if(C==="link"&&n){const d=Array.from(t.styleSheets).find(M=>M.href===i.href);let O=null;d&&(O=Ne(d)),O&&(delete g.rel,delete g.href,g._cssText=O)}if(C==="style"&&i.sheet){let d=Ne(i.sheet);d&&(i.childNodes.length>1&&(d=dr(d,i)),g._cssText=d)}if(C==="input"||C==="textarea"||C==="select"){const d=i.value,O=i.checked;g.type!=="radio"&&g.type!=="checkbox"&&g.type!=="submit"&&g.type!=="button"&&d?g.value=ur({element:i,type:hr(i),tagName:C,value:d,maskInputOptions:l,maskInputFn:a}):O&&(g.checked=O)}if(C==="option"&&(i.selected&&!l.select?g.selected=!0:delete g.selected),C==="dialog"&&i.open&&(g.rr_open_mode=i.matches("dialog:modal")?"modal":"non-modal"),C==="canvas"&&f){if(i.__context==="2d")cr(i)||(g.rr_dataURL=i.toDataURL(u.type,u.quality));else if(!("__context"in i)){const d=i.toDataURL(u.type,u.quality),O=t.createElement("canvas");O.width=i.width,O.height=i.height;const M=O.toDataURL(u.type,u.quality);d!==M&&(g.rr_dataURL=d)}}if(C==="img"&&c){W||(W=t.createElement("canvas"),$t=W.getContext("2d"));const d=i,O=d.currentSrc||d.getAttribute("src")||"<unknown-src>",M=d.crossOrigin,T=()=>{d.removeEventListener("load",T);try{W.width=d.naturalWidth,W.height=d.naturalHeight,$t.drawImage(d,0,0),g.rr_dataURL=W.toDataURL(u.type,u.quality)}catch(I){if(d.crossOrigin!=="anonymous"){d.crossOrigin="anonymous",d.complete&&d.naturalWidth!==0?T():d.addEventListener("load",T);return}else console.warn(`Cannot inline img src=${O}! Error: ${I}`)}d.crossOrigin==="anonymous"&&(M?g.crossOrigin=M:d.removeAttribute("crossorigin"))};d.complete&&d.naturalWidth!==0?T():d.addEventListener("load",T)}if(C==="audio"||C==="video"){const d=g;d.rr_mediaState=i.paused?"paused":"played",d.rr_mediaCurrentTime=i.currentTime,d.rr_mediaPlaybackRate=i.playbackRate,d.rr_mediaMuted=i.muted,d.rr_mediaLoop=i.loop,d.rr_mediaVolume=i.volume}if(y||(i.scrollLeft&&(g.rr_scrollLeft=i.scrollLeft),i.scrollTop&&(g.rr_scrollTop=i.scrollTop)),p){const{width:d,height:O}=i.getBoundingClientRect();g={class:g.class,rr_width:`${d}px`,rr_height:`${O}px`}}C==="iframe"&&!h(g.src)&&(i.contentDocument||(g.rr_src=g.src),delete g.src);let R;try{customElements.get(C)&&(R=!0)}catch(d){}const k=pt(i),P=mt(i);return{type:w.Element,tagName:C,attributes:g,childNodes:[],isSVG:zi(i)||void 0,needBlock:p,rootId:m,isCustom:R,isVisible:k,isInteractive:P,xPath:x}}function v(i){return i==null?"":i.toLowerCase()}function Ki(i,e){if(e.comment&&i.type===w.Comment)return!0;if(i.type===w.Element){if(e.script&&(i.tagName==="script"||i.tagName==="link"&&(i.attributes.rel==="preload"&&i.attributes.as==="script"||i.attributes.rel==="modulepreload")||i.tagName==="link"&&i.attributes.rel==="prefetch"&&typeof i.attributes.href=="string"&&Pe(i.attributes.href)==="js"))return!0;if(e.headFavicon&&(i.tagName==="link"&&i.attributes.rel==="shortcut icon"||i.tagName==="meta"&&(v(i.attributes.name).match(/^msapplication-tile(image|color)$/)||v(i.attributes.name)==="application-name"||v(i.attributes.rel)==="icon"||v(i.attributes.rel)==="apple-touch-icon"||v(i.attributes.rel)==="shortcut icon")))return!0;if(i.tagName==="meta"){if(e.headMetaDescKeywords&&v(i.attributes.name).match(/^description|keywords$/))return!0;if(e.headMetaSocial&&(v(i.attributes.property).match(/^(og|twitter|fb):/)||v(i.attributes.name).match(/^(og|twitter):/)||v(i.attributes.name)==="pinterest"))return!0;if(e.headMetaRobots&&(v(i.attributes.name)==="robots"||v(i.attributes.name)==="googlebot"||v(i.attributes.name)==="bingbot"))return!0;if(e.headMetaHttpEquiv&&i.attributes["http-equiv"]!==void 0)return!0;if(e.headMetaAuthorship&&(v(i.attributes.name)==="author"||v(i.attributes.name)==="generator"||v(i.attributes.name)==="framework"||v(i.attributes.name)==="publisher"||v(i.attributes.name)==="progid"||v(i.attributes.property).match(/^article:/)||v(i.attributes.property).match(/^product:/)))return!0;if(e.headMetaVerification&&(v(i.attributes.name)==="google-site-verification"||v(i.attributes.name)==="yandex-verification"||v(i.attributes.name)==="csrf-token"||v(i.attributes.name)==="p:domain_verify"||v(i.attributes.name)==="verify-v1"||v(i.attributes.name)==="verification"||v(i.attributes.name)==="shopify-checkout-api-token"))return!0}}return!1}function H(i,e){const{doc:t,mirror:r,blockClass:s,blockSelector:o,maskTextClass:n,maskTextSelector:l,ignoreAttribute:a,skipChild:u=!1,inlineStylesheet:c=!0,maskInputOptions:f={},maskTextFn:h,maskInputFn:y,slimDOMOptions:m,dataURLOptions:x={},inlineImages:p=!1,recordCanvas:C=!1,onSerialize:g,onIframeLoad:R,iframeLoadTimeout:k=5e3,onStylesheetLoad:P,stylesheetLoadTimeout:d=5e3,keepIframeSrcFn:O=()=>!1,newlyAddedElement:M=!1,cssCaptured:T=!1}=e;let{needsMask:I}=e,{preserveWhiteSpace:K=!0}=e;I||(I=xr(i,n,l,I===void 0));const Q=Hi(i,{doc:t,mirror:r,blockClass:s,blockSelector:o,ignoreAttribute:a,needsMask:I,inlineStylesheet:c,maskInputOptions:f,maskTextFn:h,maskInputFn:y,dataURLOptions:x,inlineImages:p,recordCanvas:C,keepIframeSrcFn:O,newlyAddedElement:M,cssCaptured:T});if(!Q)return console.warn(i,"not serialized"),null;let X;r.hasNode(i)?X=r.getId(i):Ki(Q,m)||!K&&Q.type===w.Text&&!Q.textContent.replace(/^\s+|\s+$/gm,"").length?X=Ke:X=br();const S=Object.assign(Q,{id:X});if(r.add(i,S),X===Ke)return null;g&&g(i);let Be=!u;if(S.type===w.Element){Be=Be&&!S.needBlock,delete S.needBlock;const _=A.shadowRoot(i);_&&ve(_)&&(S.isShadowHost=!0)}if((S.type===w.Document||S.type===w.Element)&&Be){m.headWhitespace&&S.type===w.Element&&S.tagName==="head"&&(K=!1);const _={doc:t,mirror:r,blockClass:s,blockSelector:o,needsMask:I,maskTextClass:n,maskTextSelector:l,ignoreAttribute:a,skipChild:u,inlineStylesheet:c,maskInputOptions:f,maskTextFn:h,maskInputFn:y,slimDOMOptions:m,dataURLOptions:x,inlineImages:p,recordCanvas:C,preserveWhiteSpace:K,onSerialize:g,onIframeLoad:R,iframeLoadTimeout:k,onStylesheetLoad:P,stylesheetLoadTimeout:d,keepIframeSrcFn:O,cssCaptured:!1};if(!(S.type===w.Element&&S.tagName==="textarea"&&S.attributes.value!==void 0)){S.type===w.Element&&S.attributes._cssText!==void 0&&typeof S.attributes._cssText=="string"&&(_.cssCaptured=!0);for(const je of Array.from(A.childNodes(i))){const j=H(je,_);j&&S.childNodes.push(j)}}let z=null;if(ke(i)&&(z=A.shadowRoot(i)))for(const je of Array.from(A.childNodes(z))){const j=H(je,_);j&&(ve(z)&&(j.isShadow=!0),S.childNodes.push(j))}}const ze=A.parentNode(i);return ze&&ir(ze)&&ve(ze)&&(S.isShadow=!0),S.type===w.Element&&S.tagName==="iframe"&&Vi(i,()=>{const _=i.contentDocument;if(_&&R){const z=H(_,{doc:_,mirror:r,blockClass:s,blockSelector:o,needsMask:I,maskTextClass:n,maskTextSelector:l,ignoreAttribute:a,skipChild:!1,inlineStylesheet:c,maskInputOptions:f,maskTextFn:h,maskInputFn:y,slimDOMOptions:m,dataURLOptions:x,inlineImages:p,recordCanvas:C,preserveWhiteSpace:K,onSerialize:g,onIframeLoad:R,iframeLoadTimeout:k,onStylesheetLoad:P,stylesheetLoadTimeout:d,keepIframeSrcFn:O});z&&R(i,z)}},k),S.type===w.Element&&S.tagName==="link"&&typeof S.attributes.rel=="string"&&(S.attributes.rel==="stylesheet"||S.attributes.rel==="preload"&&typeof S.attributes.href=="string"&&Pe(S.attributes.href)==="css")&&Gi(i,()=>{if(P){const _=H(i,{doc:t,mirror:r,blockClass:s,blockSelector:o,needsMask:I,maskTextClass:n,maskTextSelector:l,ignoreAttribute:a,skipChild:!1,inlineStylesheet:c,maskInputOptions:f,maskTextFn:h,maskInputFn:y,slimDOMOptions:m,dataURLOptions:x,inlineImages:p,recordCanvas:C,preserveWhiteSpace:K,onSerialize:g,onIframeLoad:R,iframeLoadTimeout:k,onStylesheetLoad:P,stylesheetLoadTimeout:d,keepIframeSrcFn:O});_&&P(i,_)}},d),S}function Qi(i,e){const{mirror:t=new Ie,blockClass:r="rr-block",blockSelector:s=null,maskTextClass:o="rr-mask",maskTextSelector:n=null,ignoreAttribute:l="rr-ignore",inlineStylesheet:a=!0,inlineImages:u=!1,recordCanvas:c=!1,maskAllInputs:f=!1,maskTextFn:h,maskInputFn:y,slimDOM:m=!1,dataURLOptions:x,preserveWhiteSpace:p,onSerialize:C,onIframeLoad:g,iframeLoadTimeout:R,onStylesheetLoad:k,stylesheetLoadTimeout:P,keepIframeSrcFn:d=()=>!1}=e||{};return H(i,{doc:i,mirror:t,blockClass:r,blockSelector:s,maskTextClass:o,maskTextSelector:n,ignoreAttribute:l,skipChild:!1,inlineStylesheet:a,maskInputOptions:f===!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===!1?{password:!0}:f,maskTextFn:h,maskInputFn:y,slimDOMOptions:m===!0||m==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:m==="all",headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:m===!1?{}:m,dataURLOptions:x,inlineImages:u,recordCanvas:c,preserveWhiteSpace:p,onSerialize:C,onIframeLoad:g,iframeLoadTimeout:R,onStylesheetLoad:k,stylesheetLoadTimeout:P,keepIframeSrcFn:d,newlyAddedElement:!1})}function Xi(i,e){function t(r){e(r),(r.type===w.Document||r.type===w.Element)&&r.childNodes.forEach(t)}t(i)}function Zi(){wr=1}const es=/(max|min)-device-(width|height)/,Ut=new RegExp(es.source,"g"),ts={postcssPlugin:"postcss-custom-selectors",prepare(){return{postcssPlugin:"postcss-custom-selectors",AtRule:function(i){i.params.match(Ut)&&(i.params=i.params.replace(Ut,"$1-$2"))}}}},rs={postcssPlugin:"postcss-hover-classes",prepare:function(){const i=[];return{Rule:function(e){i.indexOf(e)===-1&&(i.push(e),e.selectors.forEach(function(t){t.includes(":hover")&&(e.selector+=`,
|
|
15
15
|
`+t.replace(/:hover/g,".\\:hover"))}))}}}};function is(i){return i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}function ss(i){if(i.__esModule)return i;var e=i.default;if(typeof e=="function"){var t=function r(){return this instanceof r?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};t.prototype=e.prototype}else t={};return Object.defineProperty(t,"__esModule",{value:!0}),Object.keys(i).forEach(function(r){var s=Object.getOwnPropertyDescriptor(i,r);Object.defineProperty(t,r,s.get?s:{enumerable:!0,get:function(){return i[r]}})}),t}var yt={exports:{}},E=String,Er=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}};yt.exports=Er();yt.exports.createColors=Er;var ns=yt.exports;const os={},ls=Object.freeze(Object.defineProperty({__proto__:null,default:os},Symbol.toStringTag,{value:"Module"})),L=ss(ls);let Ft=ns,Bt=L,Qe=class Nr extends Error{constructor(e,t,r,s,o,n){super(e),this.name="CssSyntaxError",this.reason=e,o&&(this.file=o),s&&(this.source=s),n&&(this.plugin=n),typeof t!="undefined"&&typeof r!="undefined"&&(typeof t=="number"?(this.line=t,this.column=r):(this.line=t.line,this.column=t.column,this.endLine=r.line,this.endColumn=r.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,Nr)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line!="undefined"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(e){if(!this.source)return"";let t=this.source;e==null&&(e=Ft.isColorSupported),Bt&&e&&(t=Bt(t));let r=t.split(/\r?\n/),s=Math.max(this.line-3,0),o=Math.min(this.line+2,r.length),n=String(o).length,l,a;if(e){let{bold:u,gray:c,red:f}=Ft.createColors(!0);l=h=>u(f(h)),a=h=>c(h)}else l=a=u=>u;return r.slice(s,o).map((u,c)=>{let f=s+1+c,h=" "+(" "+f).slice(-n)+" | ";if(f===this.line){let y=a(h.replace(/\d/g," "))+u.slice(0,this.column-1).replace(/[^\t]/g," ");return l(">")+a(h)+u+`
|
|
16
16
|
`+y+l("^")}return" "+a(h)+u}).join(`
|
|
17
17
|
`)}toString(){let e=this.showSourceCode();return e&&(e=`
|