@glimt/record 0.0.12 → 0.0.13
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/record.cjs +3 -1
- package/dist/record.cjs.map +1 -1
- package/dist/record.js +3 -1
- package/dist/record.js.map +1 -1
- package/dist/record.umd.cjs +3 -1
- package/dist/record.umd.cjs.map +2 -2
- package/dist/record.umd.min.cjs +1 -1
- package/dist/record.umd.min.cjs.map +2 -2
- package/package.json +1 -1
package/dist/record.umd.min.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
(function (g, f) {if ("object" == typeof exports && "object" == typeof module) {module.exports = f();} else if ("function" == typeof define && define.amd) {define("rrweb", [], f);} else if ("object" == typeof exports) {exports["rrweb"] = f();} else {g["rrweb"] = f();}}(typeof self !== 'undefined' ? self : typeof globalThis !== 'undefined' ? globalThis : this, () => {var exports = {};var module = { exports };
|
|
2
|
-
"use strict";var zo=Object.defineProperty,Go=Object.defineProperties;var Vo=Object.getOwnPropertyDescriptors;var gt=Object.getOwnPropertySymbols;var Gs=Object.prototype.hasOwnProperty,Vs=Object.prototype.propertyIsEnumerable;var zs=(s,e,t)=>e in s?zo(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t,O=(s,e)=>{for(var t in e||(e={}))Gs.call(e,t)&&zs(s,t,e[t]);if(gt)for(var t of gt(e))Vs.call(e,t)&&zs(s,t,e[t]);return s},ee=(s,e)=>Go(s,Vo(e));var Ae=(s,e)=>{var t={};for(var r in s)Gs.call(s,r)&&e.indexOf(r)<0&&(t[r]=s[r]);if(s!=null&>)for(var r of gt(s))e.indexOf(r)<0&&Vs.call(s,r)&&(t[r]=s[r]);return t};Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var jo=Object.defineProperty,Ho=(s,e,t)=>e in s?jo(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t,w=(s,e,t)=>Ho(s,typeof e!="symbol"?e+"":e,t),js,Yo=Object.defineProperty,Zo=(s,e,t)=>e in s?Yo(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t,Hs=(s,e,t)=>Zo(s,typeof e!="symbol"?e+"":e,t),H=(s=>(s[s.Document=0]="Document",s[s.DocumentType=1]="DocumentType",s[s.Element=2]="Element",s[s.Text=3]="Text",s[s.CDATA=4]="CDATA",s[s.Comment=5]="Comment",s))(H||{});const Ys={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},Zs={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},yt={},Jo=()=>!!globalThis.Zone;function ds(s){if(yt[s])return yt[s];const e=globalThis[s],t=e.prototype,r=s in Ys?Ys[s]:void 0,i=!!(r&&r.every(l=>{var o,u;return!!((u=(o=Object.getOwnPropertyDescriptor(t,l))==null?void 0:o.get)!=null&&u.toString().includes("[native code]"))})),n=s in Zs?Zs[s]:void 0,a=!!(n&&n.every(l=>{var o;return typeof t[l]=="function"&&((o=t[l])==null?void 0:o.toString().includes("[native code]"))}));if(i&&a&&!Jo())return yt[s]=e.prototype,e.prototype;try{const l=document.createElement("iframe");document.body.appendChild(l);const o=l.contentWindow;if(!o)return e.prototype;const u=o[s].prototype;return document.body.removeChild(l),u?yt[s]=u:t}catch(l){return t}}const Sr={};function ye(s,e,t){var r;const i=`${s}.${String(t)}`;if(Sr[i])return Sr[i].call(e);const n=ds(s),a=(r=Object.getOwnPropertyDescriptor(n,t))==null?void 0:r.get;return a?(Sr[i]=a,a.call(e)):e[t]}const Cr={};function Hi(s,e,t){const r=`${s}.${String(t)}`;if(Cr[r])return Cr[r].bind(e);const n=ds(s)[t];return typeof n!="function"?e[t]:(Cr[r]=n,n.bind(e))}function Xo(s){return ye("Node",s,"childNodes")}function Ko(s){return ye("Node",s,"parentNode")}function Qo(s){return ye("Node",s,"parentElement")}function qo(s){return ye("Node",s,"textContent")}function ea(s,e){return Hi("Node",s,"contains")(e)}function ta(s){return Hi("Node",s,"getRootNode")()}function ra(s){return!s||!("host"in s)?null:ye("ShadowRoot",s,"host")}function sa(s){return s.styleSheets}function ia(s){return!s||!("shadowRoot"in s)?null:ye("Element",s,"shadowRoot")}function na(s,e){return ye("Element",s,"querySelector")(e)}function oa(s,e){return ye("Element",s,"querySelectorAll")(e)}function aa(){return ds("MutationObserver").constructor}function la(s,e,t){try{if(!(e in s))return()=>{};const r=s[e],i=t(r);return typeof i=="function"&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:r}})),s[e]=i,()=>{s[e]=r}}catch(r){return()=>{}}}const Z={childNodes:Xo,parentNode:Ko,parentElement:Qo,textContent:qo,contains:ea,getRootNode:ta,host:ra,styleSheets:sa,shadowRoot:ia,querySelector:na,querySelectorAll:oa,mutationObserver:aa,patch:la};function Yi(s){return s.nodeType===s.ELEMENT_NODE}function Xe(s){const e=s&&"host"in s&&"mode"in s&&Z.host(s)||null;return!!(e&&"shadowRoot"in e&&Z.shadowRoot(e)===s)}function Ke(s){return Object.prototype.toString.call(s)==="[object ShadowRoot]"}function ua(s){return s.includes(" background-clip: text;")&&!s.includes(" -webkit-background-clip: text;")&&(s=s.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;")),s}function ca(s){const{cssText:e}=s;if(e.split('"').length<3)return e;const t=["@import",`url(${JSON.stringify(s.href)})`];return s.layerName===""?t.push("layer"):s.layerName&&t.push(`layer(${s.layerName})`),s.supportsText&&t.push(`supports(${s.supportsText})`),s.media.length&&t.push(s.media.mediaText),t.join(" ")+";"}function Lr(s){try{const e=s.rules||s.cssRules;if(!e)return null;let t=s.href;!t&&s.ownerNode&&s.ownerNode.ownerDocument&&(t=s.ownerNode.ownerDocument.location.href);const r=Array.from(e,i=>Zi(i,t)).join("");return ua(r)}catch(e){return null}}function Zi(s,e){if(fa(s)){let t;try{t=Lr(s.styleSheet)||ca(s)}catch(r){t=s.cssText}return s.styleSheet.href?Yt(t,s.styleSheet.href):t}else{let t=s.cssText;return pa(s)&&s.selectorText.includes(":")&&(t=ha(t)),e?Yt(t,e):t}}function ha(s){const e=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return s.replace(e,"$1\\$2")}function fa(s){return"styleSheet"in s}function pa(s){return"selectorText"in s}class Ji{constructor(){Hs(this,"idNodeMap",new Map),Hs(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 i=this.nodeMetaMap.get(r);i&&this.nodeMetaMap.set(t,i)}this.idNodeMap.set(e,t)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function da(){return new Ji}function jt({element:s,maskInputOptions:e,tagName:t,type:r,value:i,maskInputFn:n}){let a=i||"";const l=r&&xe(r);return(e[t.toLowerCase()]||l&&e[l])&&(n?a=n(a,s):a="*".repeat(a.length)),a}function xe(s){return s.toLowerCase()}const Js="__rrweb_original__";function ma(s){const e=s.getContext("2d");if(!e)return!0;const t=50;for(let r=0;r<s.width;r+=t)for(let i=0;i<s.height;i+=t){const n=e.getImageData,a=Js in n?n[Js]:n;if(new Uint32Array(a.call(e,r,i,Math.min(t,s.width-r),Math.min(t,s.height-i)).data.buffer).some(o=>o!==0))return!1}return!0}function Ht(s){const e=s.type;return s.hasAttribute("data-rr-is-password")?"password":e?xe(e):null}function Xi(s,e){var n;let t;try{t=new URL(s,e!=null?e:window.location.href)}catch(a){return null}const r=/\.([0-9a-z]+)(?:$)/i,i=t.pathname.match(r);return(n=i==null?void 0:i[1])!=null?n:null}function ga(s){let e="";return s.indexOf("//")>-1?e=s.split("/").slice(0,3).join("/"):e=s.split("/")[0],e=e.split("?")[0],e}const ya=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,wa=/^(?:[a-z+]+:)?\/\//i,ba=/^www\..*/i,Sa=/^(data:)([^,]*),(.*)/i;function Yt(s,e){return(s||"").replace(ya,(t,r,i,n,a,l)=>{const o=i||a||l,u=r||n||"";if(!o)return t;if(wa.test(o)||ba.test(o))return`url(${u}${o}${u})`;if(Sa.test(o))return`url(${u}${o}${u})`;if(o[0]==="/")return`url(${u}${ga(e)+o}${u})`;const c=e.split("/"),h=o.split("/");c.pop();for(const m of h)m!=="."&&(m===".."?c.pop():c.push(m));return`url(${u}${c.join("/")}${u})`})}function wt(s,e=!1){return e?s.replace(/(\/\*[^*]*\*\/)|[\s;]/g,""):s.replace(/(\/\*[^*]*\*\/)|[\s;]/g,"").replace(/0px/g,"0")}function Ca(s,e,t=!1){const r=Array.from(e.childNodes),i=[];let n=0;if(r.length>1&&s&&typeof s=="string"){let a=wt(s,t);const l=a.length/s.length;for(let o=1;o<r.length;o++)if(r[o].textContent&&typeof r[o].textContent=="string"){const u=wt(r[o].textContent,t),c=100;let h=3;for(;h<u.length&&(u[h].match(/[a-zA-Z0-9]/)||u.indexOf(u.substring(0,h),1)!==-1);h++);for(;h<u.length;h++){let m=u.substring(0,h),p=a.split(m),g=-1;if(p.length===2)g=p[0].length;else if(p.length>2&&p[0]===""&&r[o-1].textContent!=="")g=a.indexOf(m,1);else if(p.length===1){if(m=m.substring(0,m.length-1),p=a.split(m),p.length<=1)return i.push(s),i;h=c+1}else h===u.length-1&&(g=a.indexOf(m));if(p.length>=2&&h>c){const f=r[o-1].textContent;if(f&&typeof f=="string"){const d=wt(f).length;g=a.indexOf(m,d)}g===-1&&(g=p[0].length)}if(g!==-1){let f=Math.floor(g/l);for(;f>0&&f<s.length;){if(n+=1,n>50*r.length)return i.push(s),i;const d=wt(s.substring(0,f),t);if(d.length===g){i.push(s.substring(0,f)),s=s.substring(f),a=a.substring(g);break}else d.length<g?f+=Math.max(1,Math.floor((g-d.length)/l)):f-=Math.max(1,Math.floor((d.length-g)*l))}break}}}}return i.push(s),i}function va(s,e){return Ca(s,e).join("/* rr_split */")}let Ia=1;const xa=new RegExp("[^a-z0-9-_:]"),qe=-2;function Ki(){return Ia++}function Ra(s){if(s instanceof HTMLFormElement)return"form";const e=xe(s.tagName);return xa.test(e)?"div":e}let Ee,Xs;const Oa=/^[^ \t\n\r\u000c]+/,Ma=/^[, \t\n\r\u000c]+/;function Aa(s,e){if(e.trim()==="")return e;let t=0;function r(n){let a;const l=n.exec(e.substring(t));return l?(a=l[0],t+=a.length,a):""}const i=[];for(;r(Ma),!(t>=e.length);){let n=r(Oa);if(n.slice(-1)===",")n=ke(s,n.substring(0,n.length-1)),i.push(n);else{let a="";n=ke(s,n);let l=!1;for(;;){const o=e.charAt(t);if(o===""){i.push((n+a).trim());break}else if(l)o===")"&&(l=!1);else if(o===","){t+=1,i.push((n+a).trim());break}else o==="("&&(l=!0);a+=o,t+=1}}}return i.join(", ")}const Ks=new WeakMap;function ke(s,e){return!e||e.trim()===""?e:ms(s,e)}function Ea(s){return!!(s.tagName==="svg"||s.ownerSVGElement)}function ms(s,e){let t=Ks.get(s);if(t||(t=s.createElement("a"),Ks.set(s,t)),!e)e="";else if(e.startsWith("blob:")||e.startsWith("data:"))return e;return t.setAttribute("href",e),t.href}function Qi(s,e,t,r){return r&&(t==="src"||t==="href"&&!(e==="use"&&r[0]==="#")||t==="xlink:href"&&r[0]!=="#"||t==="background"&&(e==="table"||e==="td"||e==="th")?ke(s,r):t==="srcset"?Aa(s,r):t==="style"?Yt(r,ms(s)):e==="object"&&t==="data"?ke(s,r):r)}function qi(s,e,t){return(s==="video"||s==="audio")&&e==="autoplay"}function $a(s,e,t){try{if(typeof e=="string"){if(s.classList.contains(e))return!0}else for(let r=s.classList.length;r--;){const i=s.classList[r];if(e.test(i))return!0}if(t)return s.matches(t)}catch(r){}return!1}function Zt(s,e,t){if(!s)return!1;if(s.nodeType!==s.ELEMENT_NODE)return t?Zt(Z.parentNode(s),e,t):!1;for(let r=s.classList.length;r--;){const i=s.classList[r];if(e.test(i))return!0}return t?Zt(Z.parentNode(s),e,t):!1}function en(s,e,t,r){let i;if(Yi(s)){if(i=s,!Z.childNodes(i).length)return!1}else{if(Z.parentElement(s)===null)return!1;i=Z.parentElement(s)}try{if(typeof e=="string"){if(r){if(i.closest(`.${e}`))return!0}else if(i.classList.contains(e))return!0}else if(Zt(i,e,r))return!0;if(t){if(r){if(i.closest(t))return!0}else if(i.matches(t))return!0}}catch(n){}return!1}function Na(s,e,t){const r=s.contentWindow;if(!r)return;let i=!1,n;try{n=r.document.readyState}catch(l){return}if(n!=="complete"){const l=setTimeout(()=>{i||(e(),i=!0)},t);s.addEventListener("load",()=>{clearTimeout(l),i=!0,e()});return}const a="about:blank";if(r.location.href!==a||s.src===a||s.src==="")return setTimeout(e,0),s.addEventListener("load",e);s.addEventListener("load",e)}function ka(s,e,t){let r=!1,i;try{i=s.sheet}catch(a){return}if(i)return;const n=setTimeout(()=>{r||(e(),r=!0)},t);s.addEventListener("load",()=>{clearTimeout(n),r=!0,e()})}function Pa(s,e){const{doc:t,mirror:r,blockClass:i,blockSelector:n,needsMask:a,inlineStylesheet:l,maskInputOptions:o={},maskTextFn:u,maskInputFn:c,dataURLOptions:h={},inlineImages:m,recordCanvas:p,keepIframeSrcFn:g,newlyAddedElement:f=!1,cssCaptured:d=!1}=e,b=La(t,r);switch(s.nodeType){case s.DOCUMENT_NODE:return s.compatMode!=="CSS1Compat"?{type:H.Document,childNodes:[],compatMode:s.compatMode}:{type:H.Document,childNodes:[]};case s.DOCUMENT_TYPE_NODE:return{type:H.DocumentType,name:s.name,publicId:s.publicId,systemId:s.systemId,rootId:b};case s.ELEMENT_NODE:return Ta(s,{doc:t,blockClass:i,blockSelector:n,inlineStylesheet:l,maskInputOptions:o,maskInputFn:c,dataURLOptions:h,inlineImages:m,recordCanvas:p,keepIframeSrcFn:g,newlyAddedElement:f,rootId:b});case s.TEXT_NODE:return Da(s,{doc:t,needsMask:a,maskTextFn:u,rootId:b,cssCaptured:d});case s.CDATA_SECTION_NODE:return{type:H.CDATA,textContent:"",rootId:b};case s.COMMENT_NODE:return{type:H.Comment,textContent:Z.textContent(s)||"",rootId:b};default:return!1}}function La(s,e){if(!e.hasNode(s))return;const t=e.getId(s);return t===1?void 0:t}function Da(s,e){const{needsMask:t,maskTextFn:r,rootId:i,cssCaptured:n}=e,a=Z.parentNode(s),l=a&&a.tagName;let o="";const u=l==="STYLE"?!0:void 0,c=l==="SCRIPT"?!0:void 0;return c?o="SCRIPT_PLACEHOLDER":n||(o=Z.textContent(s),u&&o&&(o=Yt(o,ms(e.doc)))),!u&&!c&&o&&t&&(o=r?r(o,Z.parentElement(s)):o.replace(/[\S]/g,"*")),{type:H.Text,textContent:o||"",rootId:i}}function Ta(s,e){const{doc:t,blockClass:r,blockSelector:i,inlineStylesheet:n,maskInputOptions:a={},maskInputFn:l,dataURLOptions:o={},inlineImages:u,recordCanvas:c,keepIframeSrcFn:h,newlyAddedElement:m=!1,rootId:p}=e,g=$a(s,r,i),f=Ra(s);let d={};const b=s.attributes.length;for(let y=0;y<b;y++){const C=s.attributes[y];qi(f,C.name,C.value)||(d[C.name]=Qi(t,f,xe(C.name),C.value))}if(f==="link"&&n){const y=Array.from(t.styleSheets).find(P=>P.href===s.href);let C=null;y&&(C=Lr(y)),C&&(delete d.rel,delete d.href,d._cssText=C)}if(f==="style"&&s.sheet){let y=Lr(s.sheet);y&&(s.childNodes.length>1&&(y=va(y,s)),d._cssText=y)}if(f==="input"||f==="textarea"||f==="select"){const y=s.value,C=s.checked;d.type!=="radio"&&d.type!=="checkbox"&&d.type!=="submit"&&d.type!=="button"&&y?d.value=jt({element:s,type:Ht(s),tagName:f,value:y,maskInputOptions:a,maskInputFn:l}):C&&(d.checked=C)}if(f==="option"&&(s.selected&&!a.select?d.selected=!0:delete d.selected),f==="dialog"&&s.open&&(d.rr_open_mode=s.matches("dialog:modal")?"modal":"non-modal"),f==="canvas"&&c){if(s.__context==="2d")ma(s)||(d.rr_dataURL=s.toDataURL(o.type,o.quality));else if(!("__context"in s)){const y=s.toDataURL(o.type,o.quality),C=t.createElement("canvas");C.width=s.width,C.height=s.height;const P=C.toDataURL(o.type,o.quality);y!==P&&(d.rr_dataURL=y)}}if(f==="img"&&u){Ee||(Ee=t.createElement("canvas"),Xs=Ee.getContext("2d"));let y=s.cloneNode(!0);const C=y.currentSrc||y.getAttribute("src")||"<unknown-src>",P=()=>{y=null},D=()=>{y.removeEventListener("load",D),y.removeEventListener("error",G);try{Ee.width=y.naturalWidth,Ee.height=y.naturalHeight,Xs.drawImage(y,0,0),d.rr_dataURL=Ee.toDataURL(o.type,o.quality)}catch(T){if(y.crossOrigin!=="anonymous"){y.crossOrigin="anonymous",y.complete&&y.naturalWidth!==0?D():(y.addEventListener("load",D),y.addEventListener("error",G));return}else console.warn(`Cannot inline img src=${C}! Error: ${T}`)}P()},G=()=>{y.removeEventListener("load",D),y.removeEventListener("error",G),P()};y.complete&&y.naturalWidth!==0?D():(y.addEventListener("load",D),y.addEventListener("error",G))}if(f==="audio"||f==="video"){const y=d;y.rr_mediaState=s.paused?"paused":"played",y.rr_mediaCurrentTime=s.currentTime,y.rr_mediaPlaybackRate=s.playbackRate,y.rr_mediaMuted=s.muted,y.rr_mediaLoop=s.loop,y.rr_mediaVolume=s.volume}if(m||(s.scrollLeft&&(d.rr_scrollLeft=s.scrollLeft),s.scrollTop&&(d.rr_scrollTop=s.scrollTop)),g){const{width:y,height:C}=s.getBoundingClientRect();d={class:d.class,rr_width:`${y}px`,rr_height:`${C}px`}}f==="iframe"&&!h(d.src)&&(s.contentDocument||(d.rr_src=d.src),delete d.src);let S;try{customElements.get(f)&&(S=!0)}catch(y){}return{type:H.Element,tagName:f,attributes:d,childNodes:[],isSVG:Ea(s)||void 0,needBlock:g,rootId:p,isCustom:S}}function _(s){return s==null?"":s.toLowerCase()}function _a(s,e){if(e.comment&&s.type===H.Comment)return!0;if(s.type===H.Element){if(e.script&&(s.tagName==="script"||s.tagName==="link"&&(s.attributes.rel==="preload"&&s.attributes.as==="script"||s.attributes.rel==="modulepreload")||s.tagName==="link"&&s.attributes.rel==="prefetch"&&typeof s.attributes.href=="string"&&Xi(s.attributes.href)==="js"))return!0;if(e.headFavicon&&(s.tagName==="link"&&s.attributes.rel==="shortcut icon"||s.tagName==="meta"&&(_(s.attributes.name).match(/^msapplication-tile(image|color)$/)||_(s.attributes.name)==="application-name"||_(s.attributes.rel)==="icon"||_(s.attributes.rel)==="apple-touch-icon"||_(s.attributes.rel)==="shortcut icon")))return!0;if(s.tagName==="meta"){if(e.headMetaDescKeywords&&_(s.attributes.name).match(/^description|keywords$/))return!0;if(e.headMetaSocial&&(_(s.attributes.property).match(/^(og|twitter|fb):/)||_(s.attributes.name).match(/^(og|twitter):/)||_(s.attributes.name)==="pinterest"))return!0;if(e.headMetaRobots&&(_(s.attributes.name)==="robots"||_(s.attributes.name)==="googlebot"||_(s.attributes.name)==="bingbot"))return!0;if(e.headMetaHttpEquiv&&s.attributes["http-equiv"]!==void 0)return!0;if(e.headMetaAuthorship&&(_(s.attributes.name)==="author"||_(s.attributes.name)==="generator"||_(s.attributes.name)==="framework"||_(s.attributes.name)==="publisher"||_(s.attributes.name)==="progid"||_(s.attributes.property).match(/^article:/)||_(s.attributes.property).match(/^product:/)))return!0;if(e.headMetaVerification&&(_(s.attributes.name)==="google-site-verification"||_(s.attributes.name)==="yandex-verification"||_(s.attributes.name)==="csrf-token"||_(s.attributes.name)==="p:domain_verify"||_(s.attributes.name)==="verify-v1"||_(s.attributes.name)==="verification"||_(s.attributes.name)==="shopify-checkout-api-token"))return!0}}return!1}function Pe(s,e){const{doc:t,mirror:r,blockClass:i,blockSelector:n,maskTextClass:a,maskTextSelector:l,skipChild:o=!1,inlineStylesheet:u=!0,maskInputOptions:c={},maskTextFn:h,maskInputFn:m,slimDOMOptions:p,dataURLOptions:g={},inlineImages:f=!1,recordCanvas:d=!1,onSerialize:b,onIframeLoad:S,iframeLoadTimeout:y=5e3,onStylesheetLoad:C,stylesheetLoadTimeout:P=5e3,keepIframeSrcFn:D=()=>!1,newlyAddedElement:G=!1,cssCaptured:T=!1}=e;let{needsMask:V}=e,{preserveWhiteSpace:Y=!0}=e;V||(V=en(s,a,l,V===void 0));const Q=Pa(s,{doc:t,mirror:r,blockClass:i,blockSelector:n,needsMask:V,inlineStylesheet:u,maskInputOptions:c,maskTextFn:h,maskInputFn:m,dataURLOptions:g,inlineImages:f,recordCanvas:d,keepIframeSrcFn:D,newlyAddedElement:G,cssCaptured:T});if(!Q)return console.warn(s,"not serialized"),null;let oe;r.hasNode(s)?oe=r.getId(s):_a(Q,p)||!Y&&Q.type===H.Text&&!Q.textContent.replace(/^\s+|\s+$/gm,"").length?oe=qe:oe=Ki();const E=Object.assign(Q,{id:oe});if(r.add(s,E),oe===qe)return null;b&&b(s);let ze=!o;if(E.type===H.Element){ze=ze&&!E.needBlock,delete E.needBlock;const j=Z.shadowRoot(s);j&&Ke(j)&&(E.isShadowHost=!0)}if((E.type===H.Document||E.type===H.Element)&&ze){p.headWhitespace&&E.type===H.Element&&E.tagName==="head"&&(Y=!1);const j={doc:t,mirror:r,blockClass:i,blockSelector:n,needsMask:V,maskTextClass:a,maskTextSelector:l,skipChild:o,inlineStylesheet:u,maskInputOptions:c,maskTextFn:h,maskInputFn:m,slimDOMOptions:p,dataURLOptions:g,inlineImages:f,recordCanvas:d,preserveWhiteSpace:Y,onSerialize:b,onIframeLoad:S,iframeLoadTimeout:y,onStylesheetLoad:C,stylesheetLoadTimeout:P,keepIframeSrcFn:D,cssCaptured:!1};if(!(E.type===H.Element&&E.tagName==="textarea"&&E.attributes.value!==void 0)){E.type===H.Element&&E.attributes._cssText!==void 0&&typeof E.attributes._cssText=="string"&&(j.cssCaptured=!0);for(const Se of Array.from(Z.childNodes(s))){const ae=Pe(Se,j);ae&&E.childNodes.push(ae)}}let q=null;if(Yi(s)&&(q=Z.shadowRoot(s)))for(const Se of Array.from(Z.childNodes(q))){const ae=Pe(Se,j);ae&&(Ke(q)&&(ae.isShadow=!0),E.childNodes.push(ae))}}const Ge=Z.parentNode(s);return Ge&&Xe(Ge)&&Ke(Ge)&&(E.isShadow=!0),E.type===H.Element&&E.tagName==="iframe"&&Na(s,()=>{const j=s.contentDocument;if(j&&S){const q=Pe(j,{doc:j,mirror:r,blockClass:i,blockSelector:n,needsMask:V,maskTextClass:a,maskTextSelector:l,skipChild:!1,inlineStylesheet:u,maskInputOptions:c,maskTextFn:h,maskInputFn:m,slimDOMOptions:p,dataURLOptions:g,inlineImages:f,recordCanvas:d,preserveWhiteSpace:Y,onSerialize:b,onIframeLoad:S,iframeLoadTimeout:y,onStylesheetLoad:C,stylesheetLoadTimeout:P,keepIframeSrcFn:D});q&&S(s,q)}},y),E.type===H.Element&&E.tagName==="link"&&typeof E.attributes.rel=="string"&&(E.attributes.rel==="stylesheet"||E.attributes.rel==="preload"&&typeof E.attributes.href=="string"&&Xi(E.attributes.href)==="css")&&ka(s,()=>{if(C){const j=Pe(s,{doc:t,mirror:r,blockClass:i,blockSelector:n,needsMask:V,maskTextClass:a,maskTextSelector:l,skipChild:!1,inlineStylesheet:u,maskInputOptions:c,maskTextFn:h,maskInputFn:m,slimDOMOptions:p,dataURLOptions:g,inlineImages:f,recordCanvas:d,preserveWhiteSpace:Y,onSerialize:b,onIframeLoad:S,iframeLoadTimeout:y,onStylesheetLoad:C,stylesheetLoadTimeout:P,keepIframeSrcFn:D});j&&C(s,j)}},P),E}function Fa(s,e){const{mirror:t=new Ji,blockClass:r="rr-block",blockSelector:i=null,maskTextClass:n="rr-mask",maskTextSelector:a=null,inlineStylesheet:l=!0,inlineImages:o=!1,recordCanvas:u=!1,maskAllInputs:c=!1,maskTextFn:h,maskInputFn:m,slimDOM:p=!1,dataURLOptions:g,preserveWhiteSpace:f,onSerialize:d,onIframeLoad:b,iframeLoadTimeout:S,onStylesheetLoad:y,stylesheetLoadTimeout:C,keepIframeSrcFn:P=()=>!1}=e||{};return Pe(s,{doc:s,mirror:t,blockClass:r,blockSelector:i,maskTextClass:n,maskTextSelector:a,skipChild:!1,inlineStylesheet:l,maskInputOptions:c===!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}:c===!1?{password:!0}:c,maskTextFn:h,maskInputFn:m,slimDOMOptions:p===!0||p==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:p==="all",headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:p===!1?{}:p,dataURLOptions:g,inlineImages:o,recordCanvas:u,preserveWhiteSpace:f,onSerialize:d,onIframeLoad:b,iframeLoadTimeout:S,onStylesheetLoad:y,stylesheetLoadTimeout:C,keepIframeSrcFn:P,newlyAddedElement:!1})}function Ba(s){return s&&s.__esModule&&Object.prototype.hasOwnProperty.call(s,"default")?s.default:s}function Ua(s){if(s.__esModule)return s;var e=s.default;if(typeof e=="function"){var t=function r(){return this instanceof r?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};t.prototype=e.prototype}else t={};return Object.defineProperty(t,"__esModule",{value:!0}),Object.keys(s).forEach(function(r){var i=Object.getOwnPropertyDescriptor(s,r);Object.defineProperty(t,r,i.get?i:{enumerable:!0,get:function(){return s[r]}})}),t}var gs={exports:{}},v=String,tn=function(){return{isColorSupported:!1,reset:v,bold:v,dim:v,italic:v,underline:v,inverse:v,hidden:v,strikethrough:v,black:v,red:v,green:v,yellow:v,blue:v,magenta:v,cyan:v,white:v,gray:v,bgBlack:v,bgRed:v,bgGreen:v,bgYellow:v,bgBlue:v,bgMagenta:v,bgCyan:v,bgWhite:v,blackBright:v,redBright:v,greenBright:v,yellowBright:v,blueBright:v,magentaBright:v,cyanBright:v,whiteBright:v,bgBlackBright:v,bgRedBright:v,bgGreenBright:v,bgYellowBright:v,bgBlueBright:v,bgMagentaBright:v,bgCyanBright:v,bgWhiteBright:v}};gs.exports=tn();gs.exports.createColors=tn;var Wa=gs.exports;const za={},Ga=Object.freeze(Object.defineProperty({__proto__:null,default:za},Symbol.toStringTag,{value:"Module"})),ie=Ua(Ga);let Qs=Wa,qs=ie,Dr=class rn extends Error{constructor(e,t,r,i,n,a){super(e),this.name="CssSyntaxError",this.reason=e,n&&(this.file=n),i&&(this.source=i),a&&(this.plugin=a),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,rn)}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=Qs.isColorSupported);let r=c=>c,i=c=>c,n=c=>c;if(e){let{bold:c,gray:h,red:m}=Qs.createColors(!0);i=p=>c(m(p)),r=p=>h(p),qs&&(n=p=>qs(p))}let a=t.split(/\r?\n/),l=Math.max(this.line-3,0),o=Math.min(this.line+2,a.length),u=String(o).length;return a.slice(l,o).map((c,h)=>{let m=l+1+h,p=" "+(" "+m).slice(-u)+" | ";if(m===this.line){if(c.length>160){let f=20,d=Math.max(0,this.column-f),b=Math.max(this.column+f,this.endColumn+f),S=c.slice(d,b),y=r(p.replace(/\d/g," "))+c.slice(0,Math.min(this.column-1,f-1)).replace(/[^\t]/g," ");return i(">")+r(p)+n(S)+`
|
|
2
|
+
"use strict";var zo=Object.defineProperty,Go=Object.defineProperties;var Vo=Object.getOwnPropertyDescriptors;var gt=Object.getOwnPropertySymbols;var Gs=Object.prototype.hasOwnProperty,Vs=Object.prototype.propertyIsEnumerable;var zs=(s,e,t)=>e in s?zo(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t,O=(s,e)=>{for(var t in e||(e={}))Gs.call(e,t)&&zs(s,t,e[t]);if(gt)for(var t of gt(e))Vs.call(e,t)&&zs(s,t,e[t]);return s},ee=(s,e)=>Go(s,Vo(e));var Ae=(s,e)=>{var t={};for(var r in s)Gs.call(s,r)&&e.indexOf(r)<0&&(t[r]=s[r]);if(s!=null&>)for(var r of gt(s))e.indexOf(r)<0&&Vs.call(s,r)&&(t[r]=s[r]);return t};Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var jo=Object.defineProperty,Ho=(s,e,t)=>e in s?jo(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t,w=(s,e,t)=>Ho(s,typeof e!="symbol"?e+"":e,t),js,Yo=Object.defineProperty,Zo=(s,e,t)=>e in s?Yo(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t,Hs=(s,e,t)=>Zo(s,typeof e!="symbol"?e+"":e,t),H=(s=>(s[s.Document=0]="Document",s[s.DocumentType=1]="DocumentType",s[s.Element=2]="Element",s[s.Text=3]="Text",s[s.CDATA=4]="CDATA",s[s.Comment=5]="Comment",s))(H||{});const Ys={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},Zs={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},yt={},Jo=()=>!!globalThis.Zone;function ds(s){if(yt[s])return yt[s];const e=globalThis[s],t=e.prototype,r=s in Ys?Ys[s]:void 0,i=!!(r&&r.every(l=>{var o,u;return!!((u=(o=Object.getOwnPropertyDescriptor(t,l))==null?void 0:o.get)!=null&&u.toString().includes("[native code]"))})),n=s in Zs?Zs[s]:void 0,a=!!(n&&n.every(l=>{var o;return typeof t[l]=="function"&&((o=t[l])==null?void 0:o.toString().includes("[native code]"))}));if(i&&a&&!Jo())return yt[s]=e.prototype,e.prototype;try{const l=document.createElement("iframe");document.body.appendChild(l);const o=l.contentWindow;if(!o)return e.prototype;const u=o[s].prototype;return document.body.removeChild(l),u?yt[s]=u:t}catch(l){return t}}const Sr={};function ye(s,e,t){var r;const i=`${s}.${String(t)}`;if(Sr[i])return Sr[i].call(e);const n=ds(s),a=(r=Object.getOwnPropertyDescriptor(n,t))==null?void 0:r.get;return a?(Sr[i]=a,a.call(e)):e[t]}const Cr={};function Hi(s,e,t){const r=`${s}.${String(t)}`;if(Cr[r])return Cr[r].bind(e);const n=ds(s)[t];return typeof n!="function"?e[t]:(Cr[r]=n,n.bind(e))}function Xo(s){return ye("Node",s,"childNodes")}function Ko(s){return ye("Node",s,"parentNode")}function Qo(s){return ye("Node",s,"parentElement")}function qo(s){return ye("Node",s,"textContent")}function ea(s,e){return Hi("Node",s,"contains")(e)}function ta(s){return Hi("Node",s,"getRootNode")()}function ra(s){return!s||!("host"in s)?null:ye("ShadowRoot",s,"host")}function sa(s){return s.styleSheets}function ia(s){return!s||!("shadowRoot"in s)?null:ye("Element",s,"shadowRoot")}function na(s,e){return ye("Element",s,"querySelector")(e)}function oa(s,e){return ye("Element",s,"querySelectorAll")(e)}function aa(){return ds("MutationObserver").constructor}function la(s,e,t){try{if(!(e in s))return()=>{};const r=s[e],i=t(r);return typeof i=="function"&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:r}})),s[e]=i,()=>{s[e]=r}}catch(r){return()=>{}}}const Z={childNodes:Xo,parentNode:Ko,parentElement:Qo,textContent:qo,contains:ea,getRootNode:ta,host:ra,styleSheets:sa,shadowRoot:ia,querySelector:na,querySelectorAll:oa,mutationObserver:aa,patch:la};function Yi(s){return s.nodeType===s.ELEMENT_NODE}function Xe(s){const e=s&&"host"in s&&"mode"in s&&Z.host(s)||null;return!!(e&&"shadowRoot"in e&&Z.shadowRoot(e)===s)}function Ke(s){return Object.prototype.toString.call(s)==="[object ShadowRoot]"}function ua(s){return s.includes(" background-clip: text;")&&!s.includes(" -webkit-background-clip: text;")&&(s=s.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;")),s}function ca(s){const{cssText:e}=s;if(e.split('"').length<3)return e;const t=["@import",`url(${JSON.stringify(s.href)})`];return s.layerName===""?t.push("layer"):s.layerName&&t.push(`layer(${s.layerName})`),s.supportsText&&t.push(`supports(${s.supportsText})`),s.media.length&&t.push(s.media.mediaText),t.join(" ")+";"}function Lr(s){try{const e=s.rules||s.cssRules;if(!e)return null;let t=s.href;!t&&s.ownerNode&&s.ownerNode.ownerDocument&&(t=s.ownerNode.ownerDocument.location.href);const r=Array.from(e,i=>Zi(i,t)).join("");return ua(r)}catch(e){return null}}function Zi(s,e){if(fa(s)){let t;try{t=Lr(s.styleSheet)||ca(s)}catch(r){t=s.cssText}return s.styleSheet.href?Yt(t,s.styleSheet.href):t}else{let t=s.cssText;return pa(s)&&s.selectorText.includes(":")&&(t=ha(t)),e?Yt(t,e):t}}function ha(s){const e=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return s.replace(e,"$1\\$2")}function fa(s){return"styleSheet"in s}function pa(s){return"selectorText"in s}class Ji{constructor(){Hs(this,"idNodeMap",new Map),Hs(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 i=this.nodeMetaMap.get(r);i&&this.nodeMetaMap.set(t,i)}this.idNodeMap.set(e,t)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function da(){return new Ji}function jt({element:s,maskInputOptions:e,tagName:t,type:r,value:i,maskInputFn:n}){let a=i||"";const l=r&&xe(r);return(e[t.toLowerCase()]||l&&e[l])&&(n?a=n(a,s):a="*".repeat(a.length)),a}function xe(s){return s.toLowerCase()}const Js="__rrweb_original__";function ma(s){const e=s.getContext("2d",{willReadFrequently:!0});if(!e)return!0;const t=50;for(let r=0;r<s.width;r+=t)for(let i=0;i<s.height;i+=t){const n=e.getImageData,a=Js in n?n[Js]:n;if(new Uint32Array(a.call(e,r,i,Math.min(t,s.width-r),Math.min(t,s.height-i)).data.buffer).some(o=>o!==0))return!1}return!0}function Ht(s){const e=s.type;return s.hasAttribute("data-rr-is-password")?"password":e?xe(e):null}function Xi(s,e){var n;let t;try{t=new URL(s,e!=null?e:window.location.href)}catch(a){return null}const r=/\.([0-9a-z]+)(?:$)/i,i=t.pathname.match(r);return(n=i==null?void 0:i[1])!=null?n:null}function ga(s){let e="";return s.indexOf("//")>-1?e=s.split("/").slice(0,3).join("/"):e=s.split("/")[0],e=e.split("?")[0],e}const ya=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,wa=/^(?:[a-z+]+:)?\/\//i,ba=/^www\..*/i,Sa=/^(data:)([^,]*),(.*)/i;function Yt(s,e){return(s||"").replace(ya,(t,r,i,n,a,l)=>{const o=i||a||l,u=r||n||"";if(!o)return t;if(wa.test(o)||ba.test(o))return`url(${u}${o}${u})`;if(Sa.test(o))return`url(${u}${o}${u})`;if(o[0]==="/")return`url(${u}${ga(e)+o}${u})`;const c=e.split("/"),h=o.split("/");c.pop();for(const m of h)m!=="."&&(m===".."?c.pop():c.push(m));return`url(${u}${c.join("/")}${u})`})}function wt(s,e=!1){return e?s.replace(/(\/\*[^*]*\*\/)|[\s;]/g,""):s.replace(/(\/\*[^*]*\*\/)|[\s;]/g,"").replace(/0px/g,"0")}function Ca(s,e,t=!1){const r=Array.from(e.childNodes),i=[];let n=0;if(r.length>1&&s&&typeof s=="string"){let a=wt(s,t);const l=a.length/s.length;for(let o=1;o<r.length;o++)if(r[o].textContent&&typeof r[o].textContent=="string"){const u=wt(r[o].textContent,t),c=100;let h=3;for(;h<u.length&&(u[h].match(/[a-zA-Z0-9]/)||u.indexOf(u.substring(0,h),1)!==-1);h++);for(;h<u.length;h++){let m=u.substring(0,h),p=a.split(m),g=-1;if(p.length===2)g=p[0].length;else if(p.length>2&&p[0]===""&&r[o-1].textContent!=="")g=a.indexOf(m,1);else if(p.length===1){if(m=m.substring(0,m.length-1),p=a.split(m),p.length<=1)return i.push(s),i;h=c+1}else h===u.length-1&&(g=a.indexOf(m));if(p.length>=2&&h>c){const f=r[o-1].textContent;if(f&&typeof f=="string"){const d=wt(f).length;g=a.indexOf(m,d)}g===-1&&(g=p[0].length)}if(g!==-1){let f=Math.floor(g/l);for(;f>0&&f<s.length;){if(n+=1,n>50*r.length)return i.push(s),i;const d=wt(s.substring(0,f),t);if(d.length===g){i.push(s.substring(0,f)),s=s.substring(f),a=a.substring(g);break}else d.length<g?f+=Math.max(1,Math.floor((g-d.length)/l)):f-=Math.max(1,Math.floor((d.length-g)*l))}break}}}}return i.push(s),i}function va(s,e){return Ca(s,e).join("/* rr_split */")}let Ia=1;const xa=new RegExp("[^a-z0-9-_:]"),qe=-2;function Ki(){return Ia++}function Ra(s){if(s instanceof HTMLFormElement)return"form";const e=xe(s.tagName);return xa.test(e)?"div":e}let Ee,Xs;const Oa=/^[^ \t\n\r\u000c]+/,Ma=/^[, \t\n\r\u000c]+/;function Aa(s,e){if(e.trim()==="")return e;let t=0;function r(n){let a;const l=n.exec(e.substring(t));return l?(a=l[0],t+=a.length,a):""}const i=[];for(;r(Ma),!(t>=e.length);){let n=r(Oa);if(n.slice(-1)===",")n=ke(s,n.substring(0,n.length-1)),i.push(n);else{let a="";n=ke(s,n);let l=!1;for(;;){const o=e.charAt(t);if(o===""){i.push((n+a).trim());break}else if(l)o===")"&&(l=!1);else if(o===","){t+=1,i.push((n+a).trim());break}else o==="("&&(l=!0);a+=o,t+=1}}}return i.join(", ")}const Ks=new WeakMap;function ke(s,e){return!e||e.trim()===""?e:ms(s,e)}function Ea(s){return!!(s.tagName==="svg"||s.ownerSVGElement)}function ms(s,e){let t=Ks.get(s);if(t||(t=s.createElement("a"),Ks.set(s,t)),!e)e="";else if(e.startsWith("blob:")||e.startsWith("data:"))return e;return t.setAttribute("href",e),t.href}function Qi(s,e,t,r){return r&&(t==="src"||t==="href"&&!(e==="use"&&r[0]==="#")||t==="xlink:href"&&r[0]!=="#"||t==="background"&&(e==="table"||e==="td"||e==="th")?ke(s,r):t==="srcset"?Aa(s,r):t==="style"?Yt(r,ms(s)):e==="object"&&t==="data"?ke(s,r):r)}function qi(s,e,t){return(s==="video"||s==="audio")&&e==="autoplay"}function $a(s,e,t){try{if(typeof e=="string"){if(s.classList.contains(e))return!0}else for(let r=s.classList.length;r--;){const i=s.classList[r];if(e.test(i))return!0}if(t)return s.matches(t)}catch(r){}return!1}function Zt(s,e,t){if(!s)return!1;if(s.nodeType!==s.ELEMENT_NODE)return t?Zt(Z.parentNode(s),e,t):!1;for(let r=s.classList.length;r--;){const i=s.classList[r];if(e.test(i))return!0}return t?Zt(Z.parentNode(s),e,t):!1}function en(s,e,t,r){let i;if(Yi(s)){if(i=s,!Z.childNodes(i).length)return!1}else{if(Z.parentElement(s)===null)return!1;i=Z.parentElement(s)}try{if(typeof e=="string"){if(r){if(i.closest(`.${e}`))return!0}else if(i.classList.contains(e))return!0}else if(Zt(i,e,r))return!0;if(t){if(r){if(i.closest(t))return!0}else if(i.matches(t))return!0}}catch(n){}return!1}function Na(s,e,t){const r=s.contentWindow;if(!r)return;let i=!1,n;try{n=r.document.readyState}catch(l){return}if(n!=="complete"){const l=setTimeout(()=>{i||(e(),i=!0)},t);s.addEventListener("load",()=>{clearTimeout(l),i=!0,e()});return}const a="about:blank";if(r.location.href!==a||s.src===a||s.src==="")return setTimeout(e,0),s.addEventListener("load",e);s.addEventListener("load",e)}function ka(s,e,t){let r=!1,i;try{i=s.sheet}catch(a){return}if(i)return;const n=setTimeout(()=>{r||(e(),r=!0)},t);s.addEventListener("load",()=>{clearTimeout(n),r=!0,e()})}function Pa(s,e){const{doc:t,mirror:r,blockClass:i,blockSelector:n,needsMask:a,inlineStylesheet:l,maskInputOptions:o={},maskTextFn:u,maskInputFn:c,dataURLOptions:h={},inlineImages:m,recordCanvas:p,keepIframeSrcFn:g,newlyAddedElement:f=!1,cssCaptured:d=!1}=e,b=La(t,r);switch(s.nodeType){case s.DOCUMENT_NODE:return s.compatMode!=="CSS1Compat"?{type:H.Document,childNodes:[],compatMode:s.compatMode}:{type:H.Document,childNodes:[]};case s.DOCUMENT_TYPE_NODE:return{type:H.DocumentType,name:s.name,publicId:s.publicId,systemId:s.systemId,rootId:b};case s.ELEMENT_NODE:return Ta(s,{doc:t,blockClass:i,blockSelector:n,inlineStylesheet:l,maskInputOptions:o,maskInputFn:c,dataURLOptions:h,inlineImages:m,recordCanvas:p,keepIframeSrcFn:g,newlyAddedElement:f,rootId:b});case s.TEXT_NODE:return Da(s,{doc:t,needsMask:a,maskTextFn:u,rootId:b,cssCaptured:d});case s.CDATA_SECTION_NODE:return{type:H.CDATA,textContent:"",rootId:b};case s.COMMENT_NODE:return{type:H.Comment,textContent:Z.textContent(s)||"",rootId:b};default:return!1}}function La(s,e){if(!e.hasNode(s))return;const t=e.getId(s);return t===1?void 0:t}function Da(s,e){const{needsMask:t,maskTextFn:r,rootId:i,cssCaptured:n}=e,a=Z.parentNode(s),l=a&&a.tagName;let o="";const u=l==="STYLE"?!0:void 0,c=l==="SCRIPT"?!0:void 0;return c?o="SCRIPT_PLACEHOLDER":n||(o=Z.textContent(s),u&&o&&(o=Yt(o,ms(e.doc)))),!u&&!c&&o&&t&&(o=r?r(o,Z.parentElement(s)):o.replace(/[\S]/g,"*")),{type:H.Text,textContent:o||"",rootId:i}}function Ta(s,e){const{doc:t,blockClass:r,blockSelector:i,inlineStylesheet:n,maskInputOptions:a={},maskInputFn:l,dataURLOptions:o={},inlineImages:u,recordCanvas:c,keepIframeSrcFn:h,newlyAddedElement:m=!1,rootId:p}=e,g=$a(s,r,i),f=Ra(s);let d={};const b=s.attributes.length;for(let y=0;y<b;y++){const C=s.attributes[y];qi(f,C.name,C.value)||(d[C.name]=Qi(t,f,xe(C.name),C.value))}if(f==="link"&&n){const y=Array.from(t.styleSheets).find(P=>P.href===s.href);let C=null;y&&(C=Lr(y)),C&&(delete d.rel,delete d.href,d._cssText=C)}if(f==="style"&&s.sheet){let y=Lr(s.sheet);y&&(s.childNodes.length>1&&(y=va(y,s)),d._cssText=y)}if(f==="input"||f==="textarea"||f==="select"){const y=s.value,C=s.checked;d.type!=="radio"&&d.type!=="checkbox"&&d.type!=="submit"&&d.type!=="button"&&y?d.value=jt({element:s,type:Ht(s),tagName:f,value:y,maskInputOptions:a,maskInputFn:l}):C&&(d.checked=C)}if(f==="option"&&(s.selected&&!a.select?d.selected=!0:delete d.selected),f==="dialog"&&s.open&&(d.rr_open_mode=s.matches("dialog:modal")?"modal":"non-modal"),f==="canvas"&&c){if(s.__context==="2d")ma(s)||(d.rr_dataURL=s.toDataURL(o.type,o.quality));else if(!("__context"in s)){const y=s.toDataURL(o.type,o.quality),C=t.createElement("canvas");C.width=s.width,C.height=s.height;const P=C.toDataURL(o.type,o.quality);y!==P&&(d.rr_dataURL=y)}}if(f==="img"&&u){Ee||(Ee=t.createElement("canvas"),Xs=Ee.getContext("2d"));let y=s.cloneNode(!0);const C=y.currentSrc||y.getAttribute("src")||"<unknown-src>",P=()=>{y=null},D=()=>{y.removeEventListener("load",D),y.removeEventListener("error",G);try{Ee.width=y.naturalWidth,Ee.height=y.naturalHeight,Xs.drawImage(y,0,0),d.rr_dataURL=Ee.toDataURL(o.type,o.quality)}catch(T){if(y.crossOrigin!=="anonymous"){y.crossOrigin="anonymous",y.complete&&y.naturalWidth!==0?D():(y.addEventListener("load",D),y.addEventListener("error",G));return}else console.warn(`Cannot inline img src=${C}! Error: ${T}`)}P()},G=()=>{y.removeEventListener("load",D),y.removeEventListener("error",G),P()};y.complete&&y.naturalWidth!==0?D():(y.addEventListener("load",D),y.addEventListener("error",G))}if(f==="audio"||f==="video"){const y=d;y.rr_mediaState=s.paused?"paused":"played",y.rr_mediaCurrentTime=s.currentTime,y.rr_mediaPlaybackRate=s.playbackRate,y.rr_mediaMuted=s.muted,y.rr_mediaLoop=s.loop,y.rr_mediaVolume=s.volume}if(m||(s.scrollLeft&&(d.rr_scrollLeft=s.scrollLeft),s.scrollTop&&(d.rr_scrollTop=s.scrollTop)),g){const{width:y,height:C}=s.getBoundingClientRect();d={class:d.class,rr_width:`${y}px`,rr_height:`${C}px`}}f==="iframe"&&!h(d.src)&&(s.contentDocument||(d.rr_src=d.src),delete d.src);let S;try{customElements.get(f)&&(S=!0)}catch(y){}return{type:H.Element,tagName:f,attributes:d,childNodes:[],isSVG:Ea(s)||void 0,needBlock:g,rootId:p,isCustom:S}}function _(s){return s==null?"":s.toLowerCase()}function _a(s,e){if(e.comment&&s.type===H.Comment)return!0;if(s.type===H.Element){if(e.script&&(s.tagName==="script"||s.tagName==="link"&&(s.attributes.rel==="preload"&&s.attributes.as==="script"||s.attributes.rel==="modulepreload")||s.tagName==="link"&&s.attributes.rel==="prefetch"&&typeof s.attributes.href=="string"&&Xi(s.attributes.href)==="js"))return!0;if(e.headFavicon&&(s.tagName==="link"&&s.attributes.rel==="shortcut icon"||s.tagName==="meta"&&(_(s.attributes.name).match(/^msapplication-tile(image|color)$/)||_(s.attributes.name)==="application-name"||_(s.attributes.rel)==="icon"||_(s.attributes.rel)==="apple-touch-icon"||_(s.attributes.rel)==="shortcut icon")))return!0;if(s.tagName==="meta"){if(e.headMetaDescKeywords&&_(s.attributes.name).match(/^description|keywords$/))return!0;if(e.headMetaSocial&&(_(s.attributes.property).match(/^(og|twitter|fb):/)||_(s.attributes.name).match(/^(og|twitter):/)||_(s.attributes.name)==="pinterest"))return!0;if(e.headMetaRobots&&(_(s.attributes.name)==="robots"||_(s.attributes.name)==="googlebot"||_(s.attributes.name)==="bingbot"))return!0;if(e.headMetaHttpEquiv&&s.attributes["http-equiv"]!==void 0)return!0;if(e.headMetaAuthorship&&(_(s.attributes.name)==="author"||_(s.attributes.name)==="generator"||_(s.attributes.name)==="framework"||_(s.attributes.name)==="publisher"||_(s.attributes.name)==="progid"||_(s.attributes.property).match(/^article:/)||_(s.attributes.property).match(/^product:/)))return!0;if(e.headMetaVerification&&(_(s.attributes.name)==="google-site-verification"||_(s.attributes.name)==="yandex-verification"||_(s.attributes.name)==="csrf-token"||_(s.attributes.name)==="p:domain_verify"||_(s.attributes.name)==="verify-v1"||_(s.attributes.name)==="verification"||_(s.attributes.name)==="shopify-checkout-api-token"))return!0}}return!1}function Pe(s,e){const{doc:t,mirror:r,blockClass:i,blockSelector:n,maskTextClass:a,maskTextSelector:l,skipChild:o=!1,inlineStylesheet:u=!0,maskInputOptions:c={},maskTextFn:h,maskInputFn:m,slimDOMOptions:p,dataURLOptions:g={},inlineImages:f=!1,recordCanvas:d=!1,onSerialize:b,onIframeLoad:S,iframeLoadTimeout:y=5e3,onStylesheetLoad:C,stylesheetLoadTimeout:P=5e3,keepIframeSrcFn:D=()=>!1,newlyAddedElement:G=!1,cssCaptured:T=!1}=e;let{needsMask:V}=e,{preserveWhiteSpace:Y=!0}=e;V||(V=en(s,a,l,V===void 0));const Q=Pa(s,{doc:t,mirror:r,blockClass:i,blockSelector:n,needsMask:V,inlineStylesheet:u,maskInputOptions:c,maskTextFn:h,maskInputFn:m,dataURLOptions:g,inlineImages:f,recordCanvas:d,keepIframeSrcFn:D,newlyAddedElement:G,cssCaptured:T});if(!Q)return console.warn(s,"not serialized"),null;let oe;r.hasNode(s)?oe=r.getId(s):_a(Q,p)||!Y&&Q.type===H.Text&&!Q.textContent.replace(/^\s+|\s+$/gm,"").length?oe=qe:oe=Ki();const E=Object.assign(Q,{id:oe});if(r.add(s,E),oe===qe)return null;b&&b(s);let ze=!o;if(E.type===H.Element){ze=ze&&!E.needBlock,delete E.needBlock;const j=Z.shadowRoot(s);j&&Ke(j)&&(E.isShadowHost=!0)}if((E.type===H.Document||E.type===H.Element)&&ze){p.headWhitespace&&E.type===H.Element&&E.tagName==="head"&&(Y=!1);const j={doc:t,mirror:r,blockClass:i,blockSelector:n,needsMask:V,maskTextClass:a,maskTextSelector:l,skipChild:o,inlineStylesheet:u,maskInputOptions:c,maskTextFn:h,maskInputFn:m,slimDOMOptions:p,dataURLOptions:g,inlineImages:f,recordCanvas:d,preserveWhiteSpace:Y,onSerialize:b,onIframeLoad:S,iframeLoadTimeout:y,onStylesheetLoad:C,stylesheetLoadTimeout:P,keepIframeSrcFn:D,cssCaptured:!1};if(!(E.type===H.Element&&E.tagName==="textarea"&&E.attributes.value!==void 0)){E.type===H.Element&&E.attributes._cssText!==void 0&&typeof E.attributes._cssText=="string"&&(j.cssCaptured=!0);for(const Se of Array.from(Z.childNodes(s))){const ae=Pe(Se,j);ae&&E.childNodes.push(ae)}}let q=null;if(Yi(s)&&(q=Z.shadowRoot(s)))for(const Se of Array.from(Z.childNodes(q))){const ae=Pe(Se,j);ae&&(Ke(q)&&(ae.isShadow=!0),E.childNodes.push(ae))}}const Ge=Z.parentNode(s);return Ge&&Xe(Ge)&&Ke(Ge)&&(E.isShadow=!0),E.type===H.Element&&E.tagName==="iframe"&&Na(s,()=>{const j=s.contentDocument;if(j&&S){const q=Pe(j,{doc:j,mirror:r,blockClass:i,blockSelector:n,needsMask:V,maskTextClass:a,maskTextSelector:l,skipChild:!1,inlineStylesheet:u,maskInputOptions:c,maskTextFn:h,maskInputFn:m,slimDOMOptions:p,dataURLOptions:g,inlineImages:f,recordCanvas:d,preserveWhiteSpace:Y,onSerialize:b,onIframeLoad:S,iframeLoadTimeout:y,onStylesheetLoad:C,stylesheetLoadTimeout:P,keepIframeSrcFn:D});q&&S(s,q)}},y),E.type===H.Element&&E.tagName==="link"&&typeof E.attributes.rel=="string"&&(E.attributes.rel==="stylesheet"||E.attributes.rel==="preload"&&typeof E.attributes.href=="string"&&Xi(E.attributes.href)==="css")&&ka(s,()=>{if(C){const j=Pe(s,{doc:t,mirror:r,blockClass:i,blockSelector:n,needsMask:V,maskTextClass:a,maskTextSelector:l,skipChild:!1,inlineStylesheet:u,maskInputOptions:c,maskTextFn:h,maskInputFn:m,slimDOMOptions:p,dataURLOptions:g,inlineImages:f,recordCanvas:d,preserveWhiteSpace:Y,onSerialize:b,onIframeLoad:S,iframeLoadTimeout:y,onStylesheetLoad:C,stylesheetLoadTimeout:P,keepIframeSrcFn:D});j&&C(s,j)}},P),E}function Fa(s,e){const{mirror:t=new Ji,blockClass:r="rr-block",blockSelector:i=null,maskTextClass:n="rr-mask",maskTextSelector:a=null,inlineStylesheet:l=!0,inlineImages:o=!1,recordCanvas:u=!1,maskAllInputs:c=!1,maskTextFn:h,maskInputFn:m,slimDOM:p=!1,dataURLOptions:g,preserveWhiteSpace:f,onSerialize:d,onIframeLoad:b,iframeLoadTimeout:S,onStylesheetLoad:y,stylesheetLoadTimeout:C,keepIframeSrcFn:P=()=>!1}=e||{};return Pe(s,{doc:s,mirror:t,blockClass:r,blockSelector:i,maskTextClass:n,maskTextSelector:a,skipChild:!1,inlineStylesheet:l,maskInputOptions:c===!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}:c===!1?{password:!0}:c,maskTextFn:h,maskInputFn:m,slimDOMOptions:p===!0||p==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:p==="all",headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:p===!1?{}:p,dataURLOptions:g,inlineImages:o,recordCanvas:u,preserveWhiteSpace:f,onSerialize:d,onIframeLoad:b,iframeLoadTimeout:S,onStylesheetLoad:y,stylesheetLoadTimeout:C,keepIframeSrcFn:P,newlyAddedElement:!1})}function Ba(s){return s&&s.__esModule&&Object.prototype.hasOwnProperty.call(s,"default")?s.default:s}function Ua(s){if(s.__esModule)return s;var e=s.default;if(typeof e=="function"){var t=function r(){return this instanceof r?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};t.prototype=e.prototype}else t={};return Object.defineProperty(t,"__esModule",{value:!0}),Object.keys(s).forEach(function(r){var i=Object.getOwnPropertyDescriptor(s,r);Object.defineProperty(t,r,i.get?i:{enumerable:!0,get:function(){return s[r]}})}),t}var gs={exports:{}},v=String,tn=function(){return{isColorSupported:!1,reset:v,bold:v,dim:v,italic:v,underline:v,inverse:v,hidden:v,strikethrough:v,black:v,red:v,green:v,yellow:v,blue:v,magenta:v,cyan:v,white:v,gray:v,bgBlack:v,bgRed:v,bgGreen:v,bgYellow:v,bgBlue:v,bgMagenta:v,bgCyan:v,bgWhite:v,blackBright:v,redBright:v,greenBright:v,yellowBright:v,blueBright:v,magentaBright:v,cyanBright:v,whiteBright:v,bgBlackBright:v,bgRedBright:v,bgGreenBright:v,bgYellowBright:v,bgBlueBright:v,bgMagentaBright:v,bgCyanBright:v,bgWhiteBright:v}};gs.exports=tn();gs.exports.createColors=tn;var Wa=gs.exports;const za={},Ga=Object.freeze(Object.defineProperty({__proto__:null,default:za},Symbol.toStringTag,{value:"Module"})),ie=Ua(Ga);let Qs=Wa,qs=ie,Dr=class rn extends Error{constructor(e,t,r,i,n,a){super(e),this.name="CssSyntaxError",this.reason=e,n&&(this.file=n),i&&(this.source=i),a&&(this.plugin=a),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,rn)}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=Qs.isColorSupported);let r=c=>c,i=c=>c,n=c=>c;if(e){let{bold:c,gray:h,red:m}=Qs.createColors(!0);i=p=>c(m(p)),r=p=>h(p),qs&&(n=p=>qs(p))}let a=t.split(/\r?\n/),l=Math.max(this.line-3,0),o=Math.min(this.line+2,a.length),u=String(o).length;return a.slice(l,o).map((c,h)=>{let m=l+1+h,p=" "+(" "+m).slice(-u)+" | ";if(m===this.line){if(c.length>160){let f=20,d=Math.max(0,this.column-f),b=Math.max(this.column+f,this.endColumn+f),S=c.slice(d,b),y=r(p.replace(/\d/g," "))+c.slice(0,Math.min(this.column-1,f-1)).replace(/[^\t]/g," ");return i(">")+r(p)+n(S)+`
|
|
3
3
|
`+y+i("^")}let g=r(p.replace(/\d/g," "))+c.slice(0,this.column-1).replace(/[^\t]/g," ");return i(">")+r(p)+n(c)+`
|
|
4
4
|
`+g+i("^")}return" "+r(p)+n(c)}).join(`
|
|
5
5
|
`)}toString(){let e=this.showSourceCode();return e&&(e=`
|