@sentry-internal/rrweb-snapshot
Advanced tools
Comparing version 2.30.0 to 2.31.0
@@ -1,2 +0,2 @@ | ||
var rrwebSnapshot=function(e){"use strict";var t;function n(e){return e.nodeType===e.ELEMENT_NODE}function r(e){const t=e?.host;return Boolean(t?.shadowRoot===e)}function o(e){return"[object ShadowRoot]"===Object.prototype.toString.call(e)}function s(e){const{cssText:t}=e;if(t.split('"').length<3)return t;const n=["@import",`url(${JSON.stringify(e.href)})`];return""===e.layerName?n.push("layer"):e.layerName&&n.push(`layer(${e.layerName})`),e.supportsText&&n.push(`supports(${e.supportsText})`),e.media.length&&n.push(e.media.mediaText),n.join(" ")+";"}function a(e){try{const n=e.rules||e.cssRules;return n?((t=Array.from(n,c).join("")).includes(" background-clip: text;")&&!t.includes(" -webkit-background-clip: text;")&&(t=t.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;")),t):null}catch(e){return null}var t}function i(e){let t="";for(let n=0;n<e.style.length;n++){const r=e.style,o=r[n],s=r.getPropertyPriority(o);t+=`${o}:${r.getPropertyValue(o)}${s?" !important":""};`}return`${e.selectorText} { ${t} }`}function c(e){let t;if(u(e))try{t=a(e.styleSheet)||s(e)}catch(e){}else if(d(e)){let t=e.cssText;const n=e.selectorText.includes(":"),r="string"==typeof e.style.all&&e.style.all;if(r&&(t=i(e)),n&&(t=l(t)),n||r)return t}return t||e.cssText}function l(e){return e.replace(/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm,"$1\\$2")}function u(e){return"styleSheet"in e}function d(e){return"selectorText"in e}e.NodeType=void 0,(t=e.NodeType||(e.NodeType={}))[t.Document=0]="Document",t[t.DocumentType=1]="DocumentType",t[t.Element=2]="Element",t[t.Text=3]="Text",t[t.CDATA=4]="CDATA",t[t.Comment=5]="Comment";class m{constructor(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}getId(e){if(!e)return-1;const t=this.getMeta(e)?.id;return t??-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((e=>this.removeNodeFromMap(e)))}has(e){return this.idNodeMap.has(e)}hasNode(e){return this.nodeMetaMap.has(e)}add(e,t){const n=t.id;this.idNodeMap.set(n,e),this.nodeMetaMap.set(e,t)}replace(e,t){const n=this.getNode(e);if(n){const e=this.nodeMetaMap.get(n);e&&this.nodeMetaMap.set(t,e)}this.idNodeMap.set(e,t)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function p({maskInputOptions:e,tagName:t,type:n}){return"OPTION"===t&&(t="SELECT"),Boolean(e[t.toLowerCase()]||n&&e[n]||"password"===n||"INPUT"===t&&!n&&e.text)}function f({isMasked:e,element:t,value:n,maskInputFn:r}){let o=n||"";return e?(r&&(o=r(o,t)),"*".repeat(o.length)):o}function h(e){return e.toLowerCase()}function y(e){return e.toUpperCase()}const g="__rrweb_original__";function k(e){const t=e.getContext("2d");if(!t)return!0;for(let n=0;n<e.width;n+=50)for(let r=0;r<e.height;r+=50){const o=t.getImageData,s=g in o?o[g]:o;if(new Uint32Array(s.call(t,n,r,Math.min(50,e.width-n),Math.min(50,e.height-r)).data.buffer).some((e=>0!==e)))return!1}return!0}function T(t,n){return!(!t||!n||t.type!==n.type)&&(t.type===e.NodeType.Document?t.compatMode===n.compatMode:t.type===e.NodeType.DocumentType?t.name===n.name&&t.publicId===n.publicId&&t.systemId===n.systemId:t.type===e.NodeType.Comment||t.type===e.NodeType.Text||t.type===e.NodeType.CDATA?t.textContent===n.textContent:t.type===e.NodeType.Element&&(t.tagName===n.tagName&&JSON.stringify(t.attributes)===JSON.stringify(n.attributes)&&t.isSVG===n.isSVG&&t.needBlock===n.needBlock))}function b(e){const t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?h(t):null}function N(e,t,n){return"INPUT"!==t||"radio"!==n&&"checkbox"!==n?e.value:e.getAttribute("value")||""}function x(e,t){let n;try{n=new URL(e,t??window.location.href)}catch(e){return null}const r=n.pathname.match(/\.([0-9a-z]+)(?:$)/i);return r?.[1]??null}const S={};function C(e){const t=S[e];if(t)return t;const n=window.document;let r=window[e];if(n&&"function"==typeof n.createElement)try{const t=n.createElement("iframe");t.hidden=!0,n.head.appendChild(t);const o=t.contentWindow;o&&o[e]&&(r=o[e]),n.head.removeChild(t)}catch(e){}return S[e]=r.bind(window)}function w(...e){return C("setTimeout")(...e)}function E(...e){return C("clearTimeout")(...e)}function I(e){try{return e.contentDocument}catch(e){}}let v=1;const M=new RegExp("[^a-z0-9-_:]"),A=-2;function L(){return v++}let O,D;const F=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,R=/^(?:[a-z+]+:)?\/\//i,_=/^www\..*/i,$=/^(data:)([^,]*),(.*)/i;function U(e,t){return(e||"").replace(F,((e,n,r,o,s,a)=>{const i=r||s||a,c=n||o||"";if(!i)return e;if(R.test(i)||_.test(i))return`url(${c}${i}${c})`;if($.test(i))return`url(${c}${i}${c})`;if("/"===i[0])return`url(${c}${function(e){let t="";return t=e.indexOf("//")>-1?e.split("/").slice(0,3).join("/"):e.split("/")[0],t=t.split("?")[0],t}(t)+i}${c})`;const l=t.split("/"),u=i.split("/");l.pop();for(const e of u)"."!==e&&(".."===e?l.pop():l.push(e));return`url(${c}${l.join("/")}${c})`}))}const W=/^[^ \t\n\r\u000c]+/,P=/^[, \t\n\r\u000c]+/;const j=new WeakMap;function B(e,t){return t&&""!==t.trim()?G(e,t):t}function V(e){return Boolean("svg"===e.tagName||e.ownerSVGElement)}function G(e,t){let n=j.get(e);if(n||(n=e.createElement("a"),j.set(e,n)),t){if(t.startsWith("blob:")||t.startsWith("data:"))return t}else t="";return n.setAttribute("href",t),n.href}function H(e,t,n,r,o,s){return r?"src"===n||"href"===n&&("use"!==t||"#"!==r[0])||"xlink:href"===n&&"#"!==r[0]?B(e,r):"background"!==n||"table"!==t&&"td"!==t&&"th"!==t?"srcset"===n?function(e,t){if(""===t.trim())return t;let n=0;function r(e){let r;const o=e.exec(t.substring(n));return o?(r=o[0],n+=r.length,r):""}const o=[];for(;r(P),!(n>=t.length);){let s=r(W);if(","===s.slice(-1))s=B(e,s.substring(0,s.length-1)),o.push(s);else{let r="";s=B(e,s);let a=!1;for(;;){const e=t.charAt(n);if(""===e){o.push((s+r).trim());break}if(a)")"===e&&(a=!1);else{if(","===e){n+=1,o.push((s+r).trim());break}"("===e&&(a=!0)}r+=e,n+=1}}}return o.join(", ")}(e,r):"style"===n?U(r,G(e)):"object"===t&&"data"===n?B(e,r):"function"==typeof s?s(n,r,o):r:B(e,r):r}function z(e,t,n){return("video"===e||"audio"===e)&&"autoplay"===t}function q(e,t){for(let n=e.classList.length;n--;){const r=e.classList[n];if(t.test(r))return!0}return!1}function Y(e,t,n=1/0,r=0){return e?e.nodeType!==e.ELEMENT_NODE||r>n?-1:t(e)?r:Y(e.parentNode,t,n,r+1):-1}function X(e,t){return n=>{const r=n;if(null===r)return!1;try{if(e)if("string"==typeof e){if(r.matches(`.${e}`))return!0}else if(q(r,e))return!0;return!(!t||!r.matches(t))}catch{return!1}}}function J(e,t,n,r,o,s){try{const a=e.nodeType===e.ELEMENT_NODE?e:e.parentElement;if(null===a)return!1;if("INPUT"===a.tagName){const e=a.getAttribute("autocomplete");if(["current-password","new-password","cc-number","cc-exp","cc-exp-month","cc-exp-year","cc-csc"].includes(e))return!0}let i=-1,c=-1;if(s){if(c=Y(a,X(r,o)),c<0)return!0;i=Y(a,X(t,n),c>=0?c:1/0)}else{if(i=Y(a,X(t,n)),i<0)return!1;c=Y(a,X(r,o),i>=0?i:1/0)}return i>=0?!(c>=0)||i<=c:!(c>=0)&&!!s}catch(e){}return!!s}function K(t,n){const{doc:r,mirror:o,blockClass:s,blockSelector:i,unblockSelector:c,maskAllText:l,maskAttributeFn:u,maskTextClass:d,unmaskTextClass:m,maskTextSelector:g,unmaskTextSelector:T,inlineStylesheet:x,maskInputOptions:S={},maskTextFn:C,maskInputFn:w,dataURLOptions:E={},inlineImages:v,recordCanvas:A,keepIframeSrcFn:L,newlyAddedElement:F=!1}=n,R=function(e,t){if(!t.hasNode(e))return;const n=t.getId(e);return 1===n?void 0:n}(r,o);switch(t.nodeType){case t.DOCUMENT_NODE:return"CSS1Compat"!==t.compatMode?{type:e.NodeType.Document,childNodes:[],compatMode:t.compatMode}:{type:e.NodeType.Document,childNodes:[]};case t.DOCUMENT_TYPE_NODE:return{type:e.NodeType.DocumentType,name:t.name,publicId:t.publicId,systemId:t.systemId,rootId:R};case t.ELEMENT_NODE:return function(t,n){const{doc:r,blockClass:o,blockSelector:s,unblockSelector:i,inlineStylesheet:c,maskInputOptions:l={},maskAttributeFn:u,maskInputFn:d,dataURLOptions:m={},inlineImages:g,recordCanvas:T,keepIframeSrcFn:x,newlyAddedElement:S=!1,rootId:C,maskAllText:w,maskTextClass:E,unmaskTextClass:v,maskTextSelector:A,unmaskTextSelector:L}=n,F=function(e,t,n,r){try{if(r&&e.matches(r))return!1;if("string"==typeof t){if(e.classList.contains(t))return!0}else for(let n=e.classList.length;n--;){const r=e.classList[n];if(t.test(r))return!0}if(n)return e.matches(n)}catch(e){}return!1}(t,o,s,i),R=function(e){if(e instanceof HTMLFormElement)return"form";const t=h(e.tagName);return M.test(t)?"div":t}(t);let _={};const $=t.attributes.length;for(let e=0;e<$;e++){const n=t.attributes[e];n.name&&!z(R,n.name,n.value)&&(_[n.name]=H(r,R,h(n.name),n.value,t,u))}if("link"===R&&c){const e=Array.from(r.styleSheets).find((e=>e.href===t.href));let n=null;e&&(n=a(e)),n&&(delete _.rel,delete _.href,_._cssText=U(n,e.href))}if("style"===R&&t.sheet&&!(t.innerText||t.textContent||"").trim().length){const e=a(t.sheet);e&&(_._cssText=U(e,G(r)))}if("input"===R||"textarea"===R||"select"===R||"option"===R){const e=t,n=b(e),r=N(e,y(R),n),o=e.checked;if("submit"!==n&&"button"!==n&&r){const t=J(e,E,A,v,L,p({type:n,tagName:y(R),maskInputOptions:l}));_.value=f({isMasked:t,element:e,value:r,maskInputFn:d})}o&&(_.checked=o)}"option"===R&&(t.selected&&!l.select?_.selected=!0:delete _.selected);if("canvas"===R&&T)if("2d"===t.__context)k(t)||(_.rr_dataURL=t.toDataURL(m.type,m.quality));else if(!("__context"in t)){const e=t.toDataURL(m.type,m.quality),n=r.createElement("canvas");n.width=t.width,n.height=t.height;e!==n.toDataURL(m.type,m.quality)&&(_.rr_dataURL=e)}if("img"===R&&g){O||(O=r.createElement("canvas"),D=O.getContext("2d"));const e=t,n=e.currentSrc||e.getAttribute("src")||"<unknown-src>",o=e.crossOrigin,s=()=>{e.removeEventListener("load",s);try{O.width=e.naturalWidth,O.height=e.naturalHeight,D.drawImage(e,0,0),_.rr_dataURL=O.toDataURL(m.type,m.quality)}catch(t){if("anonymous"!==e.crossOrigin)return e.crossOrigin="anonymous",void(e.complete&&0!==e.naturalWidth?s():e.addEventListener("load",s));console.warn(`Cannot inline img src=${n}! Error: ${t}`)}"anonymous"===e.crossOrigin&&(o?_.crossOrigin=o:e.removeAttribute("crossorigin"))};e.complete&&0!==e.naturalWidth?s():e.addEventListener("load",s)}"audio"!==R&&"video"!==R||(_.rr_mediaState=t.paused?"paused":"played",_.rr_mediaCurrentTime=t.currentTime);S||(t.scrollLeft&&(_.rr_scrollLeft=t.scrollLeft),t.scrollTop&&(_.rr_scrollTop=t.scrollTop));if(F){const{width:e,height:n}=t.getBoundingClientRect();_={class:_.class,rr_width:`${e}px`,rr_height:`${n}px`}}"iframe"!==R||x(_.src)||(F||I(t)||(_.rr_src=_.src),delete _.src);let W;try{customElements.get(R)&&(W=!0)}catch(e){}return{type:e.NodeType.Element,tagName:R,attributes:_,childNodes:[],isSVG:V(t)||void 0,needBlock:F,rootId:C,isCustom:W}}(t,{doc:r,blockClass:s,blockSelector:i,unblockSelector:c,inlineStylesheet:x,maskAttributeFn:u,maskInputOptions:S,maskInputFn:w,dataURLOptions:E,inlineImages:v,recordCanvas:A,keepIframeSrcFn:L,newlyAddedElement:F,rootId:R,maskAllText:l,maskTextClass:d,unmaskTextClass:m,maskTextSelector:g,unmaskTextSelector:T});case t.TEXT_NODE:return function(t,n){const{maskAllText:r,maskTextClass:o,unmaskTextClass:s,maskTextSelector:i,unmaskTextSelector:c,maskTextFn:l,maskInputOptions:u,maskInputFn:d,rootId:m}=n,h=t.parentNode&&t.parentNode.tagName;let y=t.textContent;const g="STYLE"===h||void 0,k="SCRIPT"===h||void 0,T="TEXTAREA"===h||void 0;if(g&&y){try{t.nextSibling||t.previousSibling||t.parentNode.sheet?.cssRules&&(y=a(t.parentNode.sheet))}catch(e){console.warn(`Cannot get CSS styles from text's parentNode. Error: ${e}`,t)}y=U(y,G(n.doc))}k&&(y="SCRIPT_PLACEHOLDER");const b=J(t,o,i,s,c,r);g||k||T||!y||!b||(y=l?l(y,t.parentElement):y.replace(/[\S]/g,"*"));T&&y&&(u.textarea||b)&&(y=d?d(y,t.parentNode):y.replace(/[\S]/g,"*"));if("OPTION"===h&&y){y=f({isMasked:J(t,o,i,s,c,p({type:null,tagName:h,maskInputOptions:u})),element:t,value:y,maskInputFn:d})}return{type:e.NodeType.Text,textContent:y||"",isStyle:g,rootId:m}}(t,{doc:r,maskAllText:l,maskTextClass:d,unmaskTextClass:m,maskTextSelector:g,unmaskTextSelector:T,maskTextFn:C,maskInputOptions:S,maskInputFn:w,rootId:R});case t.CDATA_SECTION_NODE:return{type:e.NodeType.CDATA,textContent:"",rootId:R};case t.COMMENT_NODE:return{type:e.NodeType.Comment,textContent:t.textContent||"",rootId:R};default:return!1}}function Q(e){return null==e?"":e.toLowerCase()}function Z(t,s){const{doc:a,mirror:i,blockClass:c,blockSelector:l,unblockSelector:u,maskAllText:d,maskTextClass:m,unmaskTextClass:p,maskTextSelector:f,unmaskTextSelector:h,skipChild:y=!1,inlineStylesheet:g=!0,maskInputOptions:k={},maskAttributeFn:T,maskTextFn:b,maskInputFn:N,slimDOMOptions:S,dataURLOptions:C={},inlineImages:v=!1,recordCanvas:M=!1,onSerialize:O,onIframeLoad:D,iframeLoadTimeout:F=5e3,onStylesheetLoad:R,stylesheetLoadTimeout:_=5e3,keepIframeSrcFn:$=(()=>!1),newlyAddedElement:U=!1}=s;let{preserveWhiteSpace:W=!0}=s;const P=K(t,{doc:a,mirror:i,blockClass:c,blockSelector:l,maskAllText:d,unblockSelector:u,maskTextClass:m,unmaskTextClass:p,maskTextSelector:f,unmaskTextSelector:h,inlineStylesheet:g,maskInputOptions:k,maskAttributeFn:T,maskTextFn:b,maskInputFn:N,dataURLOptions:C,inlineImages:v,recordCanvas:M,keepIframeSrcFn:$,newlyAddedElement:U});if(!P)return console.warn(t,"not serialized"),null;let j;j=i.hasNode(t)?i.getId(t):!function(t,n){if(n.comment&&t.type===e.NodeType.Comment)return!0;if(t.type===e.NodeType.Element){if(n.script&&("script"===t.tagName||"link"===t.tagName&&("preload"===t.attributes.rel||"modulepreload"===t.attributes.rel)&&"script"===t.attributes.as||"link"===t.tagName&&"prefetch"===t.attributes.rel&&"string"==typeof t.attributes.href&&"js"===x(t.attributes.href)))return!0;if(n.headFavicon&&("link"===t.tagName&&"shortcut icon"===t.attributes.rel||"meta"===t.tagName&&(Q(t.attributes.name).match(/^msapplication-tile(image|color)$/)||"application-name"===Q(t.attributes.name)||"icon"===Q(t.attributes.rel)||"apple-touch-icon"===Q(t.attributes.rel)||"shortcut icon"===Q(t.attributes.rel))))return!0;if("meta"===t.tagName){if(n.headMetaDescKeywords&&Q(t.attributes.name).match(/^description|keywords$/))return!0;if(n.headMetaSocial&&(Q(t.attributes.property).match(/^(og|twitter|fb):/)||Q(t.attributes.name).match(/^(og|twitter):/)||"pinterest"===Q(t.attributes.name)))return!0;if(n.headMetaRobots&&("robots"===Q(t.attributes.name)||"googlebot"===Q(t.attributes.name)||"bingbot"===Q(t.attributes.name)))return!0;if(n.headMetaHttpEquiv&&void 0!==t.attributes["http-equiv"])return!0;if(n.headMetaAuthorship&&("author"===Q(t.attributes.name)||"generator"===Q(t.attributes.name)||"framework"===Q(t.attributes.name)||"publisher"===Q(t.attributes.name)||"progid"===Q(t.attributes.name)||Q(t.attributes.property).match(/^article:/)||Q(t.attributes.property).match(/^product:/)))return!0;if(n.headMetaVerification&&("google-site-verification"===Q(t.attributes.name)||"yandex-verification"===Q(t.attributes.name)||"csrf-token"===Q(t.attributes.name)||"p:domain_verify"===Q(t.attributes.name)||"verify-v1"===Q(t.attributes.name)||"verification"===Q(t.attributes.name)||"shopify-checkout-api-token"===Q(t.attributes.name)))return!0}}return!1}(P,S)&&(W||P.type!==e.NodeType.Text||P.isStyle||P.textContent.replace(/^\s+|\s+$/gm,"").length)?L():A;const B=Object.assign(P,{id:j});if(i.add(t,B),j===A)return null;O&&O(t);let V=!y;if(B.type===e.NodeType.Element){V=V&&!B.needBlock,delete B.needBlock;const e=t.shadowRoot;e&&o(e)&&(B.isShadowHost=!0)}if((B.type===e.NodeType.Document||B.type===e.NodeType.Element)&&V){S.headWhitespace&&B.type===e.NodeType.Element&&"head"===B.tagName&&(W=!1);const r={doc:a,mirror:i,blockClass:c,blockSelector:l,maskAllText:d,unblockSelector:u,maskTextClass:m,unmaskTextClass:p,maskTextSelector:f,unmaskTextSelector:h,skipChild:y,inlineStylesheet:g,maskInputOptions:k,maskAttributeFn:T,maskTextFn:b,maskInputFn:N,slimDOMOptions:S,dataURLOptions:C,inlineImages:v,recordCanvas:M,preserveWhiteSpace:W,onSerialize:O,onIframeLoad:D,iframeLoadTimeout:F,onStylesheetLoad:R,stylesheetLoadTimeout:_,keepIframeSrcFn:$};for(const e of Array.from(t.childNodes)){const t=Z(e,r);t&&B.childNodes.push(t)}if(n(t)&&t.shadowRoot)for(const e of Array.from(t.shadowRoot.childNodes)){const n=Z(e,r);n&&(o(t.shadowRoot)&&(n.isShadow=!0),B.childNodes.push(n))}}return t.parentNode&&r(t.parentNode)&&o(t.parentNode)&&(B.isShadow=!0),B.type===e.NodeType.Element&&"iframe"===B.tagName&&function(e,t,n){const r=e.contentWindow;if(!r)return;let o,s=!1;try{o=r.document.readyState}catch(e){return}if("complete"!==o){const r=w((()=>{s||(t(),s=!0)}),n);return void e.addEventListener("load",(()=>{E(r),s=!0,t()}))}const a="about:blank";if(r.location.href!==a||e.src===a||""===e.src)return w(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}(t,(()=>{const e=I(t);if(e&&D){const n=Z(e,{doc:e,mirror:i,blockClass:c,blockSelector:l,unblockSelector:u,maskAllText:d,maskTextClass:m,unmaskTextClass:p,maskTextSelector:f,unmaskTextSelector:h,skipChild:!1,inlineStylesheet:g,maskInputOptions:k,maskAttributeFn:T,maskTextFn:b,maskInputFn:N,slimDOMOptions:S,dataURLOptions:C,inlineImages:v,recordCanvas:M,preserveWhiteSpace:W,onSerialize:O,onIframeLoad:D,iframeLoadTimeout:F,onStylesheetLoad:R,stylesheetLoadTimeout:_,keepIframeSrcFn:$});n&&D(t,n)}}),F),B.type===e.NodeType.Element&&"link"===B.tagName&&"string"==typeof B.attributes.rel&&("stylesheet"===B.attributes.rel||"preload"===B.attributes.rel&&"string"==typeof B.attributes.href&&"css"===x(B.attributes.href))&&function(e,t,n){let r,o=!1;try{r=e.sheet}catch(e){return}if(r)return;const s=w((()=>{o||(t(),o=!0)}),n);e.addEventListener("load",(()=>{E(s),o=!0,t()}))}(t,(()=>{if(R){const e=Z(t,{doc:a,mirror:i,blockClass:c,blockSelector:l,unblockSelector:u,maskAllText:d,maskTextClass:m,unmaskTextClass:p,maskTextSelector:f,unmaskTextSelector:h,skipChild:!1,inlineStylesheet:g,maskInputOptions:k,maskAttributeFn:T,maskTextFn:b,maskInputFn:N,slimDOMOptions:S,dataURLOptions:C,inlineImages:v,recordCanvas:M,preserveWhiteSpace:W,onSerialize:O,onIframeLoad:D,iframeLoadTimeout:F,onStylesheetLoad:R,stylesheetLoadTimeout:_,keepIframeSrcFn:$});e&&R(t,e)}}),_),B}const ee=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g;function te(e,t={}){let n=1,r=1;function o(e){const t=e.match(/\n/g);t&&(n+=t.length);const o=e.lastIndexOf("\n");r=-1===o?r+e.length:e.length-o}function s(){const e={line:n,column:r};return t=>(t.position=new a(e),p(),t)}class a{constructor(e){this.start=e,this.end={line:n,column:r},this.source=t.source}}a.prototype.content=e;const i=[];function c(o){const s=new Error(`${t.source||""}:${n}:${r}: ${o}`);if(s.reason=o,s.filename=t.source,s.line=n,s.column=r,s.source=e,!t.silent)throw s;i.push(s)}function l(){return m(/^{\s*/)}function u(){return m(/^}/)}function d(){let t;const n=[];for(p(),f(n);e.length&&"}"!==e.charAt(0)&&(t=C()||w());)t&&(n.push(t),f(n));return n}function m(t){const n=t.exec(e);if(!n)return;const r=n[0];return o(r),e=e.slice(r.length),n}function p(){m(/^\s*/)}function f(e=[]){let t;for(;t=h();)t&&e.push(t),t=h();return e}function h(){const t=s();if("/"!==e.charAt(0)||"*"!==e.charAt(1))return;let n=2;for(;""!==e.charAt(n)&&("*"!==e.charAt(n)||"/"!==e.charAt(n+1));)++n;if(n+=2,""===e.charAt(n-1))return c("End of comment missing");const a=e.slice(2,n-2);return r+=2,o(a),e=e.slice(n),r+=2,t({type:"comment",comment:a})}function y(){const e=m(/^([^{]+)/);if(!e)return;const t=ne(e[0]).replace(/\/\*([^*]|[\r\n]|(\*+([^*/]|[\r\n])))*\*\/+/g,"").replace(/"(?:\\"|[^"])*"|'(?:\\'|[^'])*'/g,(e=>e.replace(/,/g,""))).split(/\s*(?![^(]*\)),\s*/);if(t.length<=1)return t.map((e=>e.replace(/\u200C/g,",")));let n=0,r=0;const o=t.length,s=[];for(;n<o;){let e=(t[n].match(/\(/g)||[]).length-(t[n].match(/\)/g)||[]).length;if(e>=1){let a=!1;for(r=n+1;r<o;){const o=(t[r].match(/\(/g)||[]).length,i=(t[r].match(/\)/g)||[]).length-o;if(i===e){s.push(t.slice(n,r+1).join(",")),n=r+1,a=!0;break}r++,e-=i}if(a)continue;t.slice(n,o).forEach((e=>e&&s.push(e)));break}t[n]&&s.push(t[n]),n++}return s.map((e=>e.replace(/\u200C/g,",")))}function g(){const e=s(),t=m(/^(\*?[-#\/\*\\\w]+(\[[0-9a-z_-]+\])?)\s*/);if(!t)return;const n=ne(t[0]);if(!m(/^:\s*/))return c("property missing ':'");const r=m(/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^\)]*?\)|[^};])+)/),o=e({type:"declaration",property:n.replace(ee,""),value:r?ne(r[0]).replace(ee,""):""});return m(/^[;\s]*/),o}function k(){const e=[];if(!l())return c("missing '{'");let t;for(f(e);t=g();)!1!==t&&(e.push(t),f(e)),t=g();return u()?e:c("missing '}'")}function T(){let e;const t=[],n=s();for(;e=m(/^((\d+\.\d+|\.\d+|\d+)%?|[a-z]+)\s*/);)t.push(e[1]),m(/^,\s*/);if(t.length)return n({type:"keyframe",values:t,declarations:k()})}const b=S("import"),N=S("charset"),x=S("namespace");function S(e){const t=new RegExp("^@"+e+"\\s*((?:"+[/[^\\]"(?:\\"|[^"])*"/.source,/[^\\]'(?:\\'|[^'])*'/.source,"[^;]"].join("|")+")+);");return()=>{const n=s(),r=m(t);if(!r)return;const o={type:e};return o[e]=r[1].trim(),n(o)}}function C(){if("@"===e[0])return function(){const e=s();let t=m(/^@([-\w]+)?keyframes\s*/);if(!t)return;const n=t[1];if(t=m(/^([-\w]+)\s*/),!t)return c("@keyframes missing name");const r=t[1];if(!l())return c("@keyframes missing '{'");let o,a=f();for(;o=T();)a.push(o),a=a.concat(f());return u()?e({type:"keyframes",name:r,vendor:n,keyframes:a}):c("@keyframes missing '}'")}()||function(){const e=s(),t=m(/^@media *([^{]+)/);if(!t)return;const n=ne(t[1]);if(!l())return c("@media missing '{'");const r=f().concat(d());return u()?e({type:"media",media:n,rules:r}):c("@media missing '}'")}()||function(){const e=s(),t=m(/^@custom-media\s+(--[^\s]+)\s*([^{;]+);/);if(t)return e({type:"custom-media",name:ne(t[1]),media:ne(t[2])})}()||function(){const e=s(),t=m(/^@supports *([^{]+)/);if(!t)return;const n=ne(t[1]);if(!l())return c("@supports missing '{'");const r=f().concat(d());return u()?e({type:"supports",supports:n,rules:r}):c("@supports missing '}'")}()||b()||N()||x()||function(){const e=s(),t=m(/^@([-\w]+)?document *([^{]+)/);if(!t)return;const n=ne(t[1]),r=ne(t[2]);if(!l())return c("@document missing '{'");const o=f().concat(d());return u()?e({type:"document",document:r,vendor:n,rules:o}):c("@document missing '}'")}()||function(){const e=s();if(!m(/^@page */))return;const t=y()||[];if(!l())return c("@page missing '{'");let n,r=f();for(;n=g();)r.push(n),r=r.concat(f());return u()?e({type:"page",selectors:t,declarations:r}):c("@page missing '}'")}()||function(){const e=s();if(!m(/^@host\s*/))return;if(!l())return c("@host missing '{'");const t=f().concat(d());return u()?e({type:"host",rules:t}):c("@host missing '}'")}()||function(){const e=s();if(!m(/^@font-face\s*/))return;if(!l())return c("@font-face missing '{'");let t,n=f();for(;t=g();)n.push(t),n=n.concat(f());return u()?e({type:"font-face",declarations:n}):c("@font-face missing '}'")}()}function w(){const e=s(),t=y();return t?(f(),e({type:"rule",selectors:t,declarations:k()})):c("selector missing")}return re(function(){const e=d();return{type:"stylesheet",stylesheet:{source:t.source,rules:e,parsingErrors:i}}}())}function ne(e){return e?e.replace(/^\s+|\s+$/g,""):""}function re(e,t){const n=e&&"string"==typeof e.type,r=n?e:t;for(const t of Object.keys(e)){const n=e[t];Array.isArray(n)?n.forEach((e=>{re(e,r)})):n&&"object"==typeof n&&re(n,r)}return n&&Object.defineProperty(e,"parent",{configurable:!0,writable:!0,enumerable:!1,value:t||null}),e}const oe={script:"noscript",altglyph:"altGlyph",altglyphdef:"altGlyphDef",altglyphitem:"altGlyphItem",animatecolor:"animateColor",animatemotion:"animateMotion",animatetransform:"animateTransform",clippath:"clipPath",feblend:"feBlend",fecolormatrix:"feColorMatrix",fecomponenttransfer:"feComponentTransfer",fecomposite:"feComposite",feconvolvematrix:"feConvolveMatrix",fediffuselighting:"feDiffuseLighting",fedisplacementmap:"feDisplacementMap",fedistantlight:"feDistantLight",fedropshadow:"feDropShadow",feflood:"feFlood",fefunca:"feFuncA",fefuncb:"feFuncB",fefuncg:"feFuncG",fefuncr:"feFuncR",fegaussianblur:"feGaussianBlur",feimage:"feImage",femerge:"feMerge",femergenode:"feMergeNode",femorphology:"feMorphology",feoffset:"feOffset",fepointlight:"fePointLight",fespecularlighting:"feSpecularLighting",fespotlight:"feSpotLight",fetile:"feTile",feturbulence:"feTurbulence",foreignobject:"foreignObject",glyphref:"glyphRef",lineargradient:"linearGradient",radialgradient:"radialGradient"};const se=/([^\\]):hover/,ae=new RegExp(se.source,"g");function ie(e,t){const n=t?.stylesWithHoverClass.get(e);if(n)return n;if(e.length>=1e6)return e;const r=te(e,{silent:!0});if(!r.stylesheet)return e;const o=[];if(r.stylesheet.rules.forEach((e=>{"selectors"in e&&(e.selectors||[]).forEach((e=>{se.test(e)&&o.push(e)}))})),0===o.length)return e;const s=new RegExp(o.filter(((e,t)=>o.indexOf(e)===t)).sort(((e,t)=>t.length-e.length)).map((e=>e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"))).join("|"),"g"),a=e.replace(s,(e=>{const t=e.replace(ae,"$1.\\:hover");return`${e}, ${t}`}));return t?.stylesWithHoverClass.set(e,a),a}function ce(t,n){const{doc:r,hackCss:o,cache:s}=n;switch(t.type){case e.NodeType.Document:return r.implementation.createDocument(null,"",null);case e.NodeType.DocumentType:return r.implementation.createDocumentType(t.name||"html",t.publicId,t.systemId);case e.NodeType.Element:{const e=function(e){let t=oe[e.tagName]?oe[e.tagName]:e.tagName;return"link"===t&&e.attributes._cssText&&(t="style"),t}(t);let n;t.isSVG?n=r.createElementNS("http://www.w3.org/2000/svg",e):(t.isCustom&&r.defaultView?.customElements&&!r.defaultView.customElements.get(t.tagName)&&r.defaultView.customElements.define(t.tagName,class extends r.defaultView.HTMLElement{}),n=r.createElement(e));const a={};for(const i in t.attributes){if(!Object.prototype.hasOwnProperty.call(t.attributes,i))continue;let c=t.attributes[i];if("option"===e&&"selected"===i&&!1===c)continue;if(null===c)continue;if(!0===c&&(c=""),i.startsWith("rr_")){a[i]=c;continue}const l="textarea"===e&&"value"===i,u="style"===e&&"_cssText"===i;if(u&&o&&"string"==typeof c&&(c=ie(c,s)),!l&&!u||"string"!=typeof c)try{if(t.isSVG&&"xlink:href"===i)n.setAttributeNS("http://www.w3.org/1999/xlink",i,c.toString());else if("onload"===i||"onclick"===i||"onmouse"===i.substring(0,7))n.setAttribute("_"+i,c.toString());else{if("meta"===e&&"Content-Security-Policy"===t.attributes["http-equiv"]&&"content"===i){n.setAttribute("csp-content",c.toString());continue}("link"!==e||"preload"!==t.attributes.rel&&"modulepreload"!==t.attributes.rel||"script"!==t.attributes.as)&&("link"===e&&"prefetch"===t.attributes.rel&&"string"==typeof t.attributes.href&&t.attributes.href.endsWith(".js")||("img"===e&&t.attributes.srcset&&t.attributes.rr_dataURL?n.setAttribute("rrweb-original-srcset",t.attributes.srcset):n.setAttribute(i,c.toString())))}}catch(e){}else{const e=r.createTextNode(c);for(const e of Array.from(n.childNodes))e.nodeType===n.TEXT_NODE&&n.removeChild(e);n.appendChild(e)}}for(const o in a){const s=a[o];if("canvas"===e&&"rr_dataURL"===o){const e=r.createElement("img");e.onload=()=>{const t=n.getContext("2d");t&&t.drawImage(e,0,0,e.width,e.height)},e.src=s.toString(),n.RRNodeType&&(n.rr_dataURL=s.toString())}else if("img"===e&&"rr_dataURL"===o){const e=n;e.currentSrc.startsWith("data:")||(e.setAttribute("rrweb-original-src",t.attributes.src),e.src=s.toString())}if("rr_width"===o)n.style.setProperty("width",s.toString());else if("rr_height"===o)n.style.setProperty("height",s.toString());else if("rr_mediaCurrentTime"===o&&"number"==typeof s)n.currentTime=s;else if("rr_mediaState"===o)switch(s){case"played":n.play().catch((e=>console.warn("media playback error",e)));break;case"paused":n.pause()}}if(t.isShadowHost)if(n.shadowRoot)for(;n.shadowRoot.firstChild;)n.shadowRoot.removeChild(n.shadowRoot.firstChild);else n.attachShadow({mode:"open"});return n}case e.NodeType.Text:return r.createTextNode(t.isStyle&&o?ie(t.textContent,s):t.textContent);case e.NodeType.CDATA:return r.createCDATASection(t.textContent);case e.NodeType.Comment:return r.createComment(t.textContent);default:return null}}function le(t,r){const{doc:o,mirror:s,skipChild:a=!1,hackCss:i=!0,afterAppend:c,cache:l}=r;if(s.has(t.id)){const e=s.getNode(t.id);if(T(s.getMeta(e),t))return s.getNode(t.id)}let u=ce(t,{doc:o,hackCss:i,cache:l});if(!u)return null;if(t.rootId&&s.getNode(t.rootId)!==o&&s.replace(t.rootId,o),t.type===e.NodeType.Document&&(o.close(),o.open(),"BackCompat"===t.compatMode&&t.childNodes&&t.childNodes[0].type!==e.NodeType.DocumentType&&(t.childNodes[0].type===e.NodeType.Element&&"xmlns"in t.childNodes[0].attributes&&"http://www.w3.org/1999/xhtml"===t.childNodes[0].attributes.xmlns?o.write('<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">'):o.write('<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "">')),u=o),s.add(u,t),(t.type===e.NodeType.Document||t.type===e.NodeType.Element)&&!a)for(const r of t.childNodes){const a=le(r,{doc:o,mirror:s,skipChild:!1,hackCss:i,afterAppend:c,cache:l});if(a){if(r.isShadow&&n(u)&&u.shadowRoot)u.shadowRoot.appendChild(a);else if(t.type===e.NodeType.Document&&r.type==e.NodeType.Element){const e=a;let t=null;e.childNodes.forEach((e=>{"BODY"===e.nodeName&&(t=e)})),t?(e.removeChild(t),u.appendChild(a),e.appendChild(t)):u.appendChild(a)}else u.appendChild(a);c&&c(a,r.id)}else console.warn("Failed to rebuild",r)}return u}return e.IGNORED_NODE=A,e.Mirror=m,e.addHoverClass=ie,e.buildNodeWithSN=le,e.classMatchesRegex=function(e,t,n){return!!e&&(n?Y(e,(e=>q(e,t)))>=0:e.nodeType===e.ELEMENT_NODE&&q(e,t))},e.cleanupSnapshot=function(){v=1},e.clearTimeout=E,e.createCache=function(){return{stylesWithHoverClass:new Map}},e.createMatchPredicate=X,e.createMirror=function(){return new m},e.distanceToMatch=Y,e.escapeImportStatement=s,e.extractFileExtension=x,e.fixAllCssProperty=i,e.fixSafariColons=l,e.genId=L,e.getIframeContentDocument=I,e.getInputType=b,e.getInputValue=N,e.ignoreAttribute=z,e.is2DCanvasBlank=k,e.isCSSImportRule=u,e.isCSSStyleRule=d,e.isElement=n,e.isNativeShadowDom=o,e.isNodeMetaEqual=T,e.isShadowRoot=r,e.maskInputValue=f,e.needMaskingText=J,e.onRequestAnimationFrame=function(...e){return C("requestAnimationFrame")(...e)},e.rebuild=function(t,n){const{doc:r,onVisit:o,hackCss:s=!0,afterAppend:a,cache:i,mirror:c=new m}=n,l=le(t,{doc:r,mirror:c,skipChild:!1,hackCss:s,afterAppend:a,cache:i});return function(e,t){for(const r of e.getIds())e.has(r)&&(n=e.getNode(r),t(n));var n}(c,(t=>{o&&o(t),function(t,n){const r=n.getMeta(t);if(r?.type!==e.NodeType.Element)return;const o=t;for(const e in r.attributes){if(!Object.prototype.hasOwnProperty.call(r.attributes,e)||!e.startsWith("rr_"))continue;const t=r.attributes[e];"rr_scrollLeft"===e&&(o.scrollLeft=t),"rr_scrollTop"===e&&(o.scrollTop=t)}}(t,c)})),l},e.serializeNodeWithId=Z,e.setTimeout=w,e.shouldMaskInput=p,e.snapshot=function(e,t){const{mirror:n=new m,blockClass:r="rr-block",blockSelector:o=null,unblockSelector:s=null,maskAllText:a=!1,maskTextClass:i="rr-mask",unmaskTextClass:c=null,maskTextSelector:l=null,unmaskTextSelector:u=null,inlineStylesheet:d=!0,inlineImages:p=!1,recordCanvas:f=!1,maskAllInputs:h=!1,maskAttributeFn:y,maskTextFn:g,maskInputFn:k,slimDOM:T=!1,dataURLOptions:b,preserveWhiteSpace:N,onSerialize:x,onIframeLoad:S,iframeLoadTimeout:C,onStylesheetLoad:w,stylesheetLoadTimeout:E,keepIframeSrcFn:I=(()=>!1)}=t||{};return Z(e,{doc:e,mirror:n,blockClass:r,blockSelector:o,unblockSelector:s,maskAllText:a,maskTextClass:i,unmaskTextClass:c,maskTextSelector:l,unmaskTextSelector:u,skipChild:!1,inlineStylesheet:d,maskInputOptions:!0===h?{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}:!1===h?{}:h,maskAttributeFn:y,maskTextFn:g,maskInputFn:k,slimDOMOptions:!0===T||"all"===T?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:"all"===T,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:!1===T?{}:T,dataURLOptions:b,inlineImages:p,recordCanvas:f,preserveWhiteSpace:N,onSerialize:x,onIframeLoad:S,iframeLoadTimeout:C,onStylesheetLoad:w,stylesheetLoadTimeout:E,keepIframeSrcFn:I,newlyAddedElement:!1})},e.stringifyRule=c,e.stringifyStylesheet=a,e.toLowerCase=h,e.toUpperCase=y,e.transformAttribute=H,e.visitSnapshot=function(t,n){!function t(r){n(r),r.type!==e.NodeType.Document&&r.type!==e.NodeType.Element||r.childNodes.forEach(t)}(t)},Object.defineProperty(e,"__esModule",{value:!0}),e}({}); | ||
var rrwebSnapshot=function(e){"use strict";var t;function n(e){return e.nodeType===e.ELEMENT_NODE}function r(e){const t=e?.host;return Boolean(t?.shadowRoot===e)}function o(e){return"[object ShadowRoot]"===Object.prototype.toString.call(e)}function s(e){const{cssText:t}=e;if(t.split('"').length<3)return t;const n=["@import",`url(${JSON.stringify(e.href)})`];return""===e.layerName?n.push("layer"):e.layerName&&n.push(`layer(${e.layerName})`),e.supportsText&&n.push(`supports(${e.supportsText})`),e.media.length&&n.push(e.media.mediaText),n.join(" ")+";"}function a(e){try{const n=e.rules||e.cssRules;return n?((t=Array.from(n,c).join("")).includes(" background-clip: text;")&&!t.includes(" -webkit-background-clip: text;")&&(t=t.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;")),t):null}catch(e){return null}var t}function i(e){let t="";for(let n=0;n<e.style.length;n++){const r=e.style,o=r[n],s=r.getPropertyPriority(o);t+=`${o}:${r.getPropertyValue(o)}${s?" !important":""};`}return`${e.selectorText} { ${t} }`}function c(e){let t;if(u(e))try{t=a(e.styleSheet)||s(e)}catch(e){}else if(d(e)){let t=e.cssText;const n=e.selectorText.includes(":"),r="string"==typeof e.style.all&&e.style.all;if(r&&(t=i(e)),n&&(t=l(t)),n||r)return t}return t||e.cssText}function l(e){return e.replace(/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm,"$1\\$2")}function u(e){return"styleSheet"in e}function d(e){return"selectorText"in e}e.NodeType=void 0,(t=e.NodeType||(e.NodeType={}))[t.Document=0]="Document",t[t.DocumentType=1]="DocumentType",t[t.Element=2]="Element",t[t.Text=3]="Text",t[t.CDATA=4]="CDATA",t[t.Comment=5]="Comment";class m{constructor(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}getId(e){if(!e)return-1;const t=this.getMeta(e)?.id;return t??-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((e=>this.removeNodeFromMap(e)))}has(e){return this.idNodeMap.has(e)}hasNode(e){return this.nodeMetaMap.has(e)}add(e,t){const n=t.id;this.idNodeMap.set(n,e),this.nodeMetaMap.set(e,t)}replace(e,t){const n=this.getNode(e);if(n){const e=this.nodeMetaMap.get(n);e&&this.nodeMetaMap.set(t,e)}this.idNodeMap.set(e,t)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function p({maskInputOptions:e,tagName:t,type:n}){return"OPTION"===t&&(t="SELECT"),Boolean(e[t.toLowerCase()]||n&&e[n]||"password"===n||"INPUT"===t&&!n&&e.text)}function f({isMasked:e,element:t,value:n,maskInputFn:r}){let o=n||"";return e?(r&&(o=r(o,t)),"*".repeat(o.length)):o}function h(e){return e.toLowerCase()}function y(e){return e.toUpperCase()}const g="__rrweb_original__";function k(e){const t=e.getContext("2d");if(!t)return!0;for(let n=0;n<e.width;n+=50)for(let r=0;r<e.height;r+=50){const o=t.getImageData,s=g in o?o[g]:o;if(new Uint32Array(s.call(t,n,r,Math.min(50,e.width-n),Math.min(50,e.height-r)).data.buffer).some((e=>0!==e)))return!1}return!0}function T(t,n){return!(!t||!n||t.type!==n.type)&&(t.type===e.NodeType.Document?t.compatMode===n.compatMode:t.type===e.NodeType.DocumentType?t.name===n.name&&t.publicId===n.publicId&&t.systemId===n.systemId:t.type===e.NodeType.Comment||t.type===e.NodeType.Text||t.type===e.NodeType.CDATA?t.textContent===n.textContent:t.type===e.NodeType.Element&&(t.tagName===n.tagName&&JSON.stringify(t.attributes)===JSON.stringify(n.attributes)&&t.isSVG===n.isSVG&&t.needBlock===n.needBlock))}function b(e){const t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?h(t):null}function N(e,t,n){return"INPUT"!==t||"radio"!==n&&"checkbox"!==n?e.value:e.getAttribute("value")||""}function x(e,t){let n;try{n=new URL(e,t??window.location.href)}catch(e){return null}const r=n.pathname.match(/\.([0-9a-z]+)(?:$)/i);return r?.[1]??null}const S={};function C(e){const t=S[e];if(t)return t;const n=window.document;let r=window[e];if(n&&"function"==typeof n.createElement)try{const t=n.createElement("iframe");t.hidden=!0,n.head.appendChild(t);const o=t.contentWindow;o&&o[e]&&(r=o[e]),n.head.removeChild(t)}catch(e){}return S[e]=r.bind(window)}function w(...e){return C("setTimeout")(...e)}function E(...e){return C("clearTimeout")(...e)}function I(e){try{return e.contentDocument}catch(e){}}let v=1;const M=new RegExp("[^a-z0-9-_:]"),A=-2;function L(){return v++}let O,D;const F=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,R=/^(?:[a-z+]+:)?\/\//i,_=/^www\..*/i,$=/^(data:)([^,]*),(.*)/i;function U(e,t){return(e||"").replace(F,((e,n,r,o,s,a)=>{const i=r||s||a,c=n||o||"";if(!i)return e;if(R.test(i)||_.test(i))return`url(${c}${i}${c})`;if($.test(i))return`url(${c}${i}${c})`;if("/"===i[0])return`url(${c}${function(e){let t="";return t=e.indexOf("//")>-1?e.split("/").slice(0,3).join("/"):e.split("/")[0],t=t.split("?")[0],t}(t)+i}${c})`;const l=t.split("/"),u=i.split("/");l.pop();for(const e of u)"."!==e&&(".."===e?l.pop():l.push(e));return`url(${c}${l.join("/")}${c})`}))}const W=/^[^ \t\n\r\u000c]+/,P=/^[, \t\n\r\u000c]+/;const j=new WeakMap;function B(e,t){return t&&""!==t.trim()?G(e,t):t}function V(e){return Boolean("svg"===e.tagName||e.ownerSVGElement)}function G(e,t){let n=j.get(e);if(n||(n=e.createElement("a"),j.set(e,n)),t){if(t.startsWith("blob:")||t.startsWith("data:"))return t}else t="";return n.setAttribute("href",t),n.href}function H(e,t,n,r,o,s){return r?"src"===n||"href"===n&&("use"!==t||"#"!==r[0])||"xlink:href"===n&&"#"!==r[0]?B(e,r):"background"!==n||"table"!==t&&"td"!==t&&"th"!==t?"srcset"===n?function(e,t){if(""===t.trim())return t;let n=0;function r(e){let r;const o=e.exec(t.substring(n));return o?(r=o[0],n+=r.length,r):""}const o=[];for(;r(P),!(n>=t.length);){let s=r(W);if(","===s.slice(-1))s=B(e,s.substring(0,s.length-1)),o.push(s);else{let r="";s=B(e,s);let a=!1;for(;;){const e=t.charAt(n);if(""===e){o.push((s+r).trim());break}if(a)")"===e&&(a=!1);else{if(","===e){n+=1,o.push((s+r).trim());break}"("===e&&(a=!0)}r+=e,n+=1}}}return o.join(", ")}(e,r):"style"===n?U(r,G(e)):"object"===t&&"data"===n?B(e,r):"function"==typeof s?s(n,r,o):r:B(e,r):r}function z(e,t,n){return("video"===e||"audio"===e)&&"autoplay"===t}function q(e,t){for(let n=e.classList.length;n--;){const r=e.classList[n];if(t.test(r))return!0}return!1}function Y(e,t,n=1/0,r=0){return e?e.nodeType!==e.ELEMENT_NODE||r>n?-1:t(e)?r:Y(e.parentNode,t,n,r+1):-1}function X(e,t){return n=>{const r=n;if(null===r)return!1;try{if(e)if("string"==typeof e){if(r.matches(`.${e}`))return!0}else if(q(r,e))return!0;return!(!t||!r.matches(t))}catch{return!1}}}function J(e,t,n,r,o,s){try{const a=e.nodeType===e.ELEMENT_NODE?e:e.parentElement;if(null===a)return!1;if("INPUT"===a.tagName){const e=a.getAttribute("autocomplete");if(["current-password","new-password","cc-number","cc-exp","cc-exp-month","cc-exp-year","cc-csc"].includes(e))return!0}let i=-1,c=-1;if(s){if(c=Y(a,X(r,o)),c<0)return!0;i=Y(a,X(t,n),c>=0?c:1/0)}else{if(i=Y(a,X(t,n)),i<0)return!1;c=Y(a,X(r,o),i>=0?i:1/0)}return i>=0?!(c>=0)||i<=c:!(c>=0)&&!!s}catch(e){}return!!s}function K(t,n){const{doc:r,mirror:o,blockClass:s,blockSelector:i,unblockSelector:c,maskAllText:l,maskAttributeFn:u,maskTextClass:d,unmaskTextClass:m,maskTextSelector:g,unmaskTextSelector:T,inlineStylesheet:x,maskInputOptions:S={},maskTextFn:C,maskInputFn:w,dataURLOptions:E={},inlineImages:v,recordCanvas:A,keepIframeSrcFn:L,newlyAddedElement:F=!1}=n,R=function(e,t){if(!t.hasNode(e))return;const n=t.getId(e);return 1===n?void 0:n}(r,o);switch(t.nodeType){case t.DOCUMENT_NODE:return"CSS1Compat"!==t.compatMode?{type:e.NodeType.Document,childNodes:[],compatMode:t.compatMode}:{type:e.NodeType.Document,childNodes:[]};case t.DOCUMENT_TYPE_NODE:return{type:e.NodeType.DocumentType,name:t.name,publicId:t.publicId,systemId:t.systemId,rootId:R};case t.ELEMENT_NODE:return function(t,n){const{doc:r,blockClass:o,blockSelector:s,unblockSelector:i,inlineStylesheet:c,maskInputOptions:l={},maskAttributeFn:u,maskInputFn:d,dataURLOptions:m={},inlineImages:g,recordCanvas:T,keepIframeSrcFn:x,newlyAddedElement:S=!1,rootId:C,maskAllText:w,maskTextClass:E,unmaskTextClass:v,maskTextSelector:A,unmaskTextSelector:L}=n,F=function(e,t,n,r){try{if(r&&e.matches(r))return!1;if("string"==typeof t){if(e.classList.contains(t))return!0}else for(let n=e.classList.length;n--;){const r=e.classList[n];if(t.test(r))return!0}if(n)return e.matches(n)}catch(e){}return!1}(t,o,s,i),R=function(e){if(e instanceof HTMLFormElement)return"form";const t=h(e.tagName);return M.test(t)?"div":t}(t);let _={};const $=t.attributes.length;for(let e=0;e<$;e++){const n=t.attributes[e];n.name&&!z(R,n.name,n.value)&&(_[n.name]=H(r,R,h(n.name),n.value,t,u))}if("link"===R&&c){const e=Array.from(r.styleSheets).find((e=>e.href===t.href));let n=null;e&&(n=a(e)),n&&(_.rel=null,_.href=null,_.crossorigin=null,_._cssText=U(n,e.href))}if("style"===R&&t.sheet&&!(t.innerText||t.textContent||"").trim().length){const e=a(t.sheet);e&&(_._cssText=U(e,G(r)))}if("input"===R||"textarea"===R||"select"===R||"option"===R){const e=t,n=b(e),r=N(e,y(R),n),o=e.checked;if("submit"!==n&&"button"!==n&&r){const t=J(e,E,A,v,L,p({type:n,tagName:y(R),maskInputOptions:l}));_.value=f({isMasked:t,element:e,value:r,maskInputFn:d})}o&&(_.checked=o)}"option"===R&&(t.selected&&!l.select?_.selected=!0:delete _.selected);if("canvas"===R&&T)if("2d"===t.__context)k(t)||(_.rr_dataURL=t.toDataURL(m.type,m.quality));else if(!("__context"in t)){const e=t.toDataURL(m.type,m.quality),n=r.createElement("canvas");n.width=t.width,n.height=t.height;e!==n.toDataURL(m.type,m.quality)&&(_.rr_dataURL=e)}if("img"===R&&g){O||(O=r.createElement("canvas"),D=O.getContext("2d"));const e=t,n=e.currentSrc||e.getAttribute("src")||"<unknown-src>",o=e.crossOrigin,s=()=>{e.removeEventListener("load",s);try{O.width=e.naturalWidth,O.height=e.naturalHeight,D.drawImage(e,0,0),_.rr_dataURL=O.toDataURL(m.type,m.quality)}catch(t){if("anonymous"!==e.crossOrigin)return e.crossOrigin="anonymous",void(e.complete&&0!==e.naturalWidth?s():e.addEventListener("load",s));console.warn(`Cannot inline img src=${n}! Error: ${t}`)}"anonymous"===e.crossOrigin&&(o?_.crossOrigin=o:e.removeAttribute("crossorigin"))};e.complete&&0!==e.naturalWidth?s():e.addEventListener("load",s)}"audio"!==R&&"video"!==R||(_.rr_mediaState=t.paused?"paused":"played",_.rr_mediaCurrentTime=t.currentTime);S||(t.scrollLeft&&(_.rr_scrollLeft=t.scrollLeft),t.scrollTop&&(_.rr_scrollTop=t.scrollTop));if(F){const{width:e,height:n}=t.getBoundingClientRect();_={class:_.class,rr_width:`${e}px`,rr_height:`${n}px`}}"iframe"!==R||x(_.src)||(F||I(t)||(_.rr_src=_.src),delete _.src);let W;try{customElements.get(R)&&(W=!0)}catch(e){}return{type:e.NodeType.Element,tagName:R,attributes:_,childNodes:[],isSVG:V(t)||void 0,needBlock:F,rootId:C,isCustom:W}}(t,{doc:r,blockClass:s,blockSelector:i,unblockSelector:c,inlineStylesheet:x,maskAttributeFn:u,maskInputOptions:S,maskInputFn:w,dataURLOptions:E,inlineImages:v,recordCanvas:A,keepIframeSrcFn:L,newlyAddedElement:F,rootId:R,maskAllText:l,maskTextClass:d,unmaskTextClass:m,maskTextSelector:g,unmaskTextSelector:T});case t.TEXT_NODE:return function(t,n){const{maskAllText:r,maskTextClass:o,unmaskTextClass:s,maskTextSelector:i,unmaskTextSelector:c,maskTextFn:l,maskInputOptions:u,maskInputFn:d,rootId:m}=n,h=t.parentNode&&t.parentNode.tagName;let y=t.textContent;const g="STYLE"===h||void 0,k="SCRIPT"===h||void 0,T="TEXTAREA"===h||void 0;if(g&&y){try{t.nextSibling||t.previousSibling||t.parentNode.sheet?.cssRules&&(y=a(t.parentNode.sheet))}catch(e){console.warn(`Cannot get CSS styles from text's parentNode. Error: ${e}`,t)}y=U(y,G(n.doc))}k&&(y="SCRIPT_PLACEHOLDER");const b=J(t,o,i,s,c,r);g||k||T||!y||!b||(y=l?l(y,t.parentElement):y.replace(/[\S]/g,"*"));T&&y&&(u.textarea||b)&&(y=d?d(y,t.parentNode):y.replace(/[\S]/g,"*"));if("OPTION"===h&&y){y=f({isMasked:J(t,o,i,s,c,p({type:null,tagName:h,maskInputOptions:u})),element:t,value:y,maskInputFn:d})}return{type:e.NodeType.Text,textContent:y||"",isStyle:g,rootId:m}}(t,{doc:r,maskAllText:l,maskTextClass:d,unmaskTextClass:m,maskTextSelector:g,unmaskTextSelector:T,maskTextFn:C,maskInputOptions:S,maskInputFn:w,rootId:R});case t.CDATA_SECTION_NODE:return{type:e.NodeType.CDATA,textContent:"",rootId:R};case t.COMMENT_NODE:return{type:e.NodeType.Comment,textContent:t.textContent||"",rootId:R};default:return!1}}function Q(e){return null==e?"":e.toLowerCase()}function Z(t,s){const{doc:a,mirror:i,blockClass:c,blockSelector:l,unblockSelector:u,maskAllText:d,maskTextClass:m,unmaskTextClass:p,maskTextSelector:f,unmaskTextSelector:h,skipChild:y=!1,inlineStylesheet:g=!0,maskInputOptions:k={},maskAttributeFn:T,maskTextFn:b,maskInputFn:N,slimDOMOptions:S,dataURLOptions:C={},inlineImages:v=!1,recordCanvas:M=!1,onSerialize:O,onIframeLoad:D,iframeLoadTimeout:F=5e3,onStylesheetLoad:R,stylesheetLoadTimeout:_=5e3,keepIframeSrcFn:$=(()=>!1),newlyAddedElement:U=!1}=s;let{preserveWhiteSpace:W=!0}=s;const P=K(t,{doc:a,mirror:i,blockClass:c,blockSelector:l,maskAllText:d,unblockSelector:u,maskTextClass:m,unmaskTextClass:p,maskTextSelector:f,unmaskTextSelector:h,inlineStylesheet:g,maskInputOptions:k,maskAttributeFn:T,maskTextFn:b,maskInputFn:N,dataURLOptions:C,inlineImages:v,recordCanvas:M,keepIframeSrcFn:$,newlyAddedElement:U});if(!P)return console.warn(t,"not serialized"),null;let j;j=i.hasNode(t)?i.getId(t):!function(t,n){if(n.comment&&t.type===e.NodeType.Comment)return!0;if(t.type===e.NodeType.Element){if(n.script&&("script"===t.tagName||"link"===t.tagName&&("preload"===t.attributes.rel||"modulepreload"===t.attributes.rel)||"link"===t.tagName&&"prefetch"===t.attributes.rel&&"string"==typeof t.attributes.href&&"js"===x(t.attributes.href)))return!0;if(n.headFavicon&&("link"===t.tagName&&"shortcut icon"===t.attributes.rel||"meta"===t.tagName&&(Q(t.attributes.name).match(/^msapplication-tile(image|color)$/)||"application-name"===Q(t.attributes.name)||"icon"===Q(t.attributes.rel)||"apple-touch-icon"===Q(t.attributes.rel)||"shortcut icon"===Q(t.attributes.rel))))return!0;if("meta"===t.tagName){if(n.headMetaDescKeywords&&Q(t.attributes.name).match(/^description|keywords$/))return!0;if(n.headMetaSocial&&(Q(t.attributes.property).match(/^(og|twitter|fb):/)||Q(t.attributes.name).match(/^(og|twitter):/)||"pinterest"===Q(t.attributes.name)))return!0;if(n.headMetaRobots&&("robots"===Q(t.attributes.name)||"googlebot"===Q(t.attributes.name)||"bingbot"===Q(t.attributes.name)))return!0;if(n.headMetaHttpEquiv&&void 0!==t.attributes["http-equiv"])return!0;if(n.headMetaAuthorship&&("author"===Q(t.attributes.name)||"generator"===Q(t.attributes.name)||"framework"===Q(t.attributes.name)||"publisher"===Q(t.attributes.name)||"progid"===Q(t.attributes.name)||Q(t.attributes.property).match(/^article:/)||Q(t.attributes.property).match(/^product:/)))return!0;if(n.headMetaVerification&&("google-site-verification"===Q(t.attributes.name)||"yandex-verification"===Q(t.attributes.name)||"csrf-token"===Q(t.attributes.name)||"p:domain_verify"===Q(t.attributes.name)||"verify-v1"===Q(t.attributes.name)||"verification"===Q(t.attributes.name)||"shopify-checkout-api-token"===Q(t.attributes.name)))return!0}}return!1}(P,S)&&(W||P.type!==e.NodeType.Text||P.isStyle||P.textContent.replace(/^\s+|\s+$/gm,"").length)?L():A;const B=Object.assign(P,{id:j});if(i.add(t,B),j===A)return null;O&&O(t);let V=!y;if(B.type===e.NodeType.Element){V=V&&!B.needBlock,delete B.needBlock;const e=t.shadowRoot;e&&o(e)&&(B.isShadowHost=!0)}if((B.type===e.NodeType.Document||B.type===e.NodeType.Element)&&V){S.headWhitespace&&B.type===e.NodeType.Element&&"head"===B.tagName&&(W=!1);const r={doc:a,mirror:i,blockClass:c,blockSelector:l,maskAllText:d,unblockSelector:u,maskTextClass:m,unmaskTextClass:p,maskTextSelector:f,unmaskTextSelector:h,skipChild:y,inlineStylesheet:g,maskInputOptions:k,maskAttributeFn:T,maskTextFn:b,maskInputFn:N,slimDOMOptions:S,dataURLOptions:C,inlineImages:v,recordCanvas:M,preserveWhiteSpace:W,onSerialize:O,onIframeLoad:D,iframeLoadTimeout:F,onStylesheetLoad:R,stylesheetLoadTimeout:_,keepIframeSrcFn:$};for(const e of Array.from(t.childNodes)){const t=Z(e,r);t&&B.childNodes.push(t)}if(n(t)&&t.shadowRoot)for(const e of Array.from(t.shadowRoot.childNodes)){const n=Z(e,r);n&&(o(t.shadowRoot)&&(n.isShadow=!0),B.childNodes.push(n))}}return t.parentNode&&r(t.parentNode)&&o(t.parentNode)&&(B.isShadow=!0),B.type===e.NodeType.Element&&"iframe"===B.tagName&&function(e,t,n){const r=e.contentWindow;if(!r)return;let o,s=!1;try{o=r.document.readyState}catch(e){return}if("complete"!==o){const r=w((()=>{s||(t(),s=!0)}),n);return void e.addEventListener("load",(()=>{E(r),s=!0,t()}))}const a="about:blank";if(r.location.href!==a||e.src===a||""===e.src)return w(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}(t,(()=>{const e=I(t);if(e&&D){const n=Z(e,{doc:e,mirror:i,blockClass:c,blockSelector:l,unblockSelector:u,maskAllText:d,maskTextClass:m,unmaskTextClass:p,maskTextSelector:f,unmaskTextSelector:h,skipChild:!1,inlineStylesheet:g,maskInputOptions:k,maskAttributeFn:T,maskTextFn:b,maskInputFn:N,slimDOMOptions:S,dataURLOptions:C,inlineImages:v,recordCanvas:M,preserveWhiteSpace:W,onSerialize:O,onIframeLoad:D,iframeLoadTimeout:F,onStylesheetLoad:R,stylesheetLoadTimeout:_,keepIframeSrcFn:$});n&&D(t,n)}}),F),B.type===e.NodeType.Element&&"link"===B.tagName&&"string"==typeof B.attributes.rel&&("stylesheet"===B.attributes.rel||"preload"===B.attributes.rel&&"string"==typeof B.attributes.href&&"css"===x(B.attributes.href))&&function(e,t,n){let r,o=!1;try{r=e.sheet}catch(e){return}if(r)return;const s=w((()=>{o||(t(),o=!0)}),n);e.addEventListener("load",(()=>{E(s),o=!0,t()}))}(t,(()=>{if(R){const e=Z(t,{doc:a,mirror:i,blockClass:c,blockSelector:l,unblockSelector:u,maskAllText:d,maskTextClass:m,unmaskTextClass:p,maskTextSelector:f,unmaskTextSelector:h,skipChild:!1,inlineStylesheet:g,maskInputOptions:k,maskAttributeFn:T,maskTextFn:b,maskInputFn:N,slimDOMOptions:S,dataURLOptions:C,inlineImages:v,recordCanvas:M,preserveWhiteSpace:W,onSerialize:O,onIframeLoad:D,iframeLoadTimeout:F,onStylesheetLoad:R,stylesheetLoadTimeout:_,keepIframeSrcFn:$});e&&R(t,e)}}),_),B}const ee=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g;function te(e,t={}){let n=1,r=1;function o(e){const t=e.match(/\n/g);t&&(n+=t.length);const o=e.lastIndexOf("\n");r=-1===o?r+e.length:e.length-o}function s(){const e={line:n,column:r};return t=>(t.position=new a(e),p(),t)}class a{constructor(e){this.start=e,this.end={line:n,column:r},this.source=t.source}}a.prototype.content=e;const i=[];function c(o){const s=new Error(`${t.source||""}:${n}:${r}: ${o}`);if(s.reason=o,s.filename=t.source,s.line=n,s.column=r,s.source=e,!t.silent)throw s;i.push(s)}function l(){return m(/^{\s*/)}function u(){return m(/^}/)}function d(){let t;const n=[];for(p(),f(n);e.length&&"}"!==e.charAt(0)&&(t=C()||w());)t&&(n.push(t),f(n));return n}function m(t){const n=t.exec(e);if(!n)return;const r=n[0];return o(r),e=e.slice(r.length),n}function p(){m(/^\s*/)}function f(e=[]){let t;for(;t=h();)t&&e.push(t),t=h();return e}function h(){const t=s();if("/"!==e.charAt(0)||"*"!==e.charAt(1))return;let n=2;for(;""!==e.charAt(n)&&("*"!==e.charAt(n)||"/"!==e.charAt(n+1));)++n;if(n+=2,""===e.charAt(n-1))return c("End of comment missing");const a=e.slice(2,n-2);return r+=2,o(a),e=e.slice(n),r+=2,t({type:"comment",comment:a})}function y(){const e=m(/^([^{]+)/);if(!e)return;const t=ne(e[0]).replace(/\/\*([^*]|[\r\n]|(\*+([^*/]|[\r\n])))*\*\/+/g,"").replace(/"(?:\\"|[^"])*"|'(?:\\'|[^'])*'/g,(e=>e.replace(/,/g,""))).split(/\s*(?![^(]*\)),\s*/);if(t.length<=1)return t.map((e=>e.replace(/\u200C/g,",")));let n=0,r=0;const o=t.length,s=[];for(;n<o;){let e=(t[n].match(/\(/g)||[]).length-(t[n].match(/\)/g)||[]).length;if(e>=1){let a=!1;for(r=n+1;r<o;){const o=(t[r].match(/\(/g)||[]).length,i=(t[r].match(/\)/g)||[]).length-o;if(i===e){s.push(t.slice(n,r+1).join(",")),n=r+1,a=!0;break}r++,e-=i}if(a)continue;t.slice(n,o).forEach((e=>e&&s.push(e)));break}t[n]&&s.push(t[n]),n++}return s.map((e=>e.replace(/\u200C/g,",")))}function g(){const e=s(),t=m(/^(\*?[-#\/\*\\\w]+(\[[0-9a-z_-]+\])?)\s*/);if(!t)return;const n=ne(t[0]);if(!m(/^:\s*/))return c("property missing ':'");const r=m(/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^\)]*?\)|[^};])+)/),o=e({type:"declaration",property:n.replace(ee,""),value:r?ne(r[0]).replace(ee,""):""});return m(/^[;\s]*/),o}function k(){const e=[];if(!l())return c("missing '{'");let t;for(f(e);t=g();)!1!==t&&(e.push(t),f(e)),t=g();return u()?e:c("missing '}'")}function T(){let e;const t=[],n=s();for(;e=m(/^((\d+\.\d+|\.\d+|\d+)%?|[a-z]+)\s*/);)t.push(e[1]),m(/^,\s*/);if(t.length)return n({type:"keyframe",values:t,declarations:k()})}const b=S("import"),N=S("charset"),x=S("namespace");function S(e){const t=new RegExp("^@"+e+"\\s*((?:"+[/[^\\]"(?:\\"|[^"])*"/.source,/[^\\]'(?:\\'|[^'])*'/.source,"[^;]"].join("|")+")+);");return()=>{const n=s(),r=m(t);if(!r)return;const o={type:e};return o[e]=r[1].trim(),n(o)}}function C(){if("@"===e[0])return function(){const e=s();let t=m(/^@([-\w]+)?keyframes\s*/);if(!t)return;const n=t[1];if(t=m(/^([-\w]+)\s*/),!t)return c("@keyframes missing name");const r=t[1];if(!l())return c("@keyframes missing '{'");let o,a=f();for(;o=T();)a.push(o),a=a.concat(f());return u()?e({type:"keyframes",name:r,vendor:n,keyframes:a}):c("@keyframes missing '}'")}()||function(){const e=s(),t=m(/^@media *([^{]+)/);if(!t)return;const n=ne(t[1]);if(!l())return c("@media missing '{'");const r=f().concat(d());return u()?e({type:"media",media:n,rules:r}):c("@media missing '}'")}()||function(){const e=s(),t=m(/^@custom-media\s+(--[^\s]+)\s*([^{;]+);/);if(t)return e({type:"custom-media",name:ne(t[1]),media:ne(t[2])})}()||function(){const e=s(),t=m(/^@supports *([^{]+)/);if(!t)return;const n=ne(t[1]);if(!l())return c("@supports missing '{'");const r=f().concat(d());return u()?e({type:"supports",supports:n,rules:r}):c("@supports missing '}'")}()||b()||N()||x()||function(){const e=s(),t=m(/^@([-\w]+)?document *([^{]+)/);if(!t)return;const n=ne(t[1]),r=ne(t[2]);if(!l())return c("@document missing '{'");const o=f().concat(d());return u()?e({type:"document",document:r,vendor:n,rules:o}):c("@document missing '}'")}()||function(){const e=s();if(!m(/^@page */))return;const t=y()||[];if(!l())return c("@page missing '{'");let n,r=f();for(;n=g();)r.push(n),r=r.concat(f());return u()?e({type:"page",selectors:t,declarations:r}):c("@page missing '}'")}()||function(){const e=s();if(!m(/^@host\s*/))return;if(!l())return c("@host missing '{'");const t=f().concat(d());return u()?e({type:"host",rules:t}):c("@host missing '}'")}()||function(){const e=s();if(!m(/^@font-face\s*/))return;if(!l())return c("@font-face missing '{'");let t,n=f();for(;t=g();)n.push(t),n=n.concat(f());return u()?e({type:"font-face",declarations:n}):c("@font-face missing '}'")}()}function w(){const e=s(),t=y();return t?(f(),e({type:"rule",selectors:t,declarations:k()})):c("selector missing")}return re(function(){const e=d();return{type:"stylesheet",stylesheet:{source:t.source,rules:e,parsingErrors:i}}}())}function ne(e){return e?e.replace(/^\s+|\s+$/g,""):""}function re(e,t){const n=e&&"string"==typeof e.type,r=n?e:t;for(const t of Object.keys(e)){const n=e[t];Array.isArray(n)?n.forEach((e=>{re(e,r)})):n&&"object"==typeof n&&re(n,r)}return n&&Object.defineProperty(e,"parent",{configurable:!0,writable:!0,enumerable:!1,value:t||null}),e}const oe={script:"noscript",altglyph:"altGlyph",altglyphdef:"altGlyphDef",altglyphitem:"altGlyphItem",animatecolor:"animateColor",animatemotion:"animateMotion",animatetransform:"animateTransform",clippath:"clipPath",feblend:"feBlend",fecolormatrix:"feColorMatrix",fecomponenttransfer:"feComponentTransfer",fecomposite:"feComposite",feconvolvematrix:"feConvolveMatrix",fediffuselighting:"feDiffuseLighting",fedisplacementmap:"feDisplacementMap",fedistantlight:"feDistantLight",fedropshadow:"feDropShadow",feflood:"feFlood",fefunca:"feFuncA",fefuncb:"feFuncB",fefuncg:"feFuncG",fefuncr:"feFuncR",fegaussianblur:"feGaussianBlur",feimage:"feImage",femerge:"feMerge",femergenode:"feMergeNode",femorphology:"feMorphology",feoffset:"feOffset",fepointlight:"fePointLight",fespecularlighting:"feSpecularLighting",fespotlight:"feSpotLight",fetile:"feTile",feturbulence:"feTurbulence",foreignobject:"foreignObject",glyphref:"glyphRef",lineargradient:"linearGradient",radialgradient:"radialGradient"};const se=/([^\\]):hover/,ae=new RegExp(se.source,"g");function ie(e,t){const n=t?.stylesWithHoverClass.get(e);if(n)return n;if(e.length>=1e6)return e;const r=te(e,{silent:!0});if(!r.stylesheet)return e;const o=[];if(r.stylesheet.rules.forEach((e=>{"selectors"in e&&(e.selectors||[]).forEach((e=>{se.test(e)&&o.push(e)}))})),0===o.length)return e;const s=new RegExp(o.filter(((e,t)=>o.indexOf(e)===t)).sort(((e,t)=>t.length-e.length)).map((e=>e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"))).join("|"),"g"),a=e.replace(s,(e=>{const t=e.replace(ae,"$1.\\:hover");return`${e}, ${t}`}));return t?.stylesWithHoverClass.set(e,a),a}function ce(t,n){const{doc:r,hackCss:o,cache:s}=n;switch(t.type){case e.NodeType.Document:return r.implementation.createDocument(null,"",null);case e.NodeType.DocumentType:return r.implementation.createDocumentType(t.name||"html",t.publicId,t.systemId);case e.NodeType.Element:{const e=function(e){let t=oe[e.tagName]?oe[e.tagName]:e.tagName;return"link"===t&&e.attributes._cssText&&(t="style"),t}(t);let n;t.isSVG?n=r.createElementNS("http://www.w3.org/2000/svg",e):(t.isCustom&&r.defaultView?.customElements&&!r.defaultView.customElements.get(t.tagName)&&r.defaultView.customElements.define(t.tagName,class extends r.defaultView.HTMLElement{}),n=r.createElement(e));const a={};for(const i in t.attributes){if(!Object.prototype.hasOwnProperty.call(t.attributes,i))continue;let c=t.attributes[i];if("option"===e&&"selected"===i&&!1===c)continue;if(null===c)continue;if(!0===c&&(c=""),i.startsWith("rr_")){a[i]=c;continue}const l="textarea"===e&&"value"===i,u="style"===e&&"_cssText"===i;if(u&&o&&"string"==typeof c&&(c=ie(c,s)),!l&&!u||"string"!=typeof c)try{if(t.isSVG&&"xlink:href"===i)n.setAttributeNS("http://www.w3.org/1999/xlink",i,c.toString());else if("onload"===i||"onclick"===i||"onmouse"===i.substring(0,7))n.setAttribute("_"+i,c.toString());else{if("meta"===e&&"Content-Security-Policy"===t.attributes["http-equiv"]&&"content"===i){n.setAttribute("csp-content",c.toString());continue}("link"!==e||"preload"!==t.attributes.rel&&"modulepreload"!==t.attributes.rel)&&("link"===e&&"prefetch"===t.attributes.rel&&"string"==typeof t.attributes.href&&"js"===x(t.attributes.href)||("img"===e&&t.attributes.srcset&&t.attributes.rr_dataURL?n.setAttribute("rrweb-original-srcset",t.attributes.srcset):n.setAttribute(i,c.toString())))}}catch(e){}else{const e=r.createTextNode(c);for(const e of Array.from(n.childNodes))e.nodeType===n.TEXT_NODE&&n.removeChild(e);n.appendChild(e)}}for(const o in a){const s=a[o];if("canvas"===e&&"rr_dataURL"===o){const e=r.createElement("img");e.onload=()=>{const t=n.getContext("2d");t&&t.drawImage(e,0,0,e.width,e.height)},e.src=s.toString(),n.RRNodeType&&(n.rr_dataURL=s.toString())}else if("img"===e&&"rr_dataURL"===o){const e=n;e.currentSrc.startsWith("data:")||(e.setAttribute("rrweb-original-src",t.attributes.src),e.src=s.toString())}if("rr_width"===o)n.style.setProperty("width",s.toString());else if("rr_height"===o)n.style.setProperty("height",s.toString());else if("rr_mediaCurrentTime"===o&&"number"==typeof s)n.currentTime=s;else if("rr_mediaState"===o)switch(s){case"played":n.play().catch((e=>console.warn("media playback error",e)));break;case"paused":n.pause()}}if(t.isShadowHost)if(n.shadowRoot)for(;n.shadowRoot.firstChild;)n.shadowRoot.removeChild(n.shadowRoot.firstChild);else n.attachShadow({mode:"open"});return n}case e.NodeType.Text:return r.createTextNode(t.isStyle&&o?ie(t.textContent,s):t.textContent);case e.NodeType.CDATA:return r.createCDATASection(t.textContent);case e.NodeType.Comment:return r.createComment(t.textContent);default:return null}}function le(t,r){const{doc:o,mirror:s,skipChild:a=!1,hackCss:i=!0,afterAppend:c,cache:l}=r;if(s.has(t.id)){const e=s.getNode(t.id);if(T(s.getMeta(e),t))return s.getNode(t.id)}let u=ce(t,{doc:o,hackCss:i,cache:l});if(!u)return null;if(t.rootId&&s.getNode(t.rootId)!==o&&s.replace(t.rootId,o),t.type===e.NodeType.Document&&(o.close(),o.open(),"BackCompat"===t.compatMode&&t.childNodes&&t.childNodes[0].type!==e.NodeType.DocumentType&&(t.childNodes[0].type===e.NodeType.Element&&"xmlns"in t.childNodes[0].attributes&&"http://www.w3.org/1999/xhtml"===t.childNodes[0].attributes.xmlns?o.write('<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">'):o.write('<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "">')),u=o),s.add(u,t),(t.type===e.NodeType.Document||t.type===e.NodeType.Element)&&!a)for(const r of t.childNodes){const a=le(r,{doc:o,mirror:s,skipChild:!1,hackCss:i,afterAppend:c,cache:l});if(a){if(r.isShadow&&n(u)&&u.shadowRoot)u.shadowRoot.appendChild(a);else if(t.type===e.NodeType.Document&&r.type==e.NodeType.Element){const e=a;let t=null;e.childNodes.forEach((e=>{"BODY"===e.nodeName&&(t=e)})),t?(e.removeChild(t),u.appendChild(a),e.appendChild(t)):u.appendChild(a)}else u.appendChild(a);c&&c(a,r.id)}else console.warn("Failed to rebuild",r)}return u}return e.IGNORED_NODE=A,e.Mirror=m,e.addHoverClass=ie,e.buildNodeWithSN=le,e.classMatchesRegex=function(e,t,n){return!!e&&(n?Y(e,(e=>q(e,t)))>=0:e.nodeType===e.ELEMENT_NODE&&q(e,t))},e.cleanupSnapshot=function(){v=1},e.clearTimeout=E,e.createCache=function(){return{stylesWithHoverClass:new Map}},e.createMatchPredicate=X,e.createMirror=function(){return new m},e.distanceToMatch=Y,e.escapeImportStatement=s,e.extractFileExtension=x,e.fixAllCssProperty=i,e.fixSafariColons=l,e.genId=L,e.getIframeContentDocument=I,e.getInputType=b,e.getInputValue=N,e.ignoreAttribute=z,e.is2DCanvasBlank=k,e.isCSSImportRule=u,e.isCSSStyleRule=d,e.isElement=n,e.isNativeShadowDom=o,e.isNodeMetaEqual=T,e.isShadowRoot=r,e.maskInputValue=f,e.needMaskingText=J,e.onRequestAnimationFrame=function(...e){return C("requestAnimationFrame")(...e)},e.rebuild=function(t,n){const{doc:r,onVisit:o,hackCss:s=!0,afterAppend:a,cache:i,mirror:c=new m}=n,l=le(t,{doc:r,mirror:c,skipChild:!1,hackCss:s,afterAppend:a,cache:i});return function(e,t){for(const r of e.getIds())e.has(r)&&(n=e.getNode(r),t(n));var n}(c,(t=>{o&&o(t),function(t,n){const r=n.getMeta(t);if(r?.type!==e.NodeType.Element)return;const o=t;for(const e in r.attributes){if(!Object.prototype.hasOwnProperty.call(r.attributes,e)||!e.startsWith("rr_"))continue;const t=r.attributes[e];"rr_scrollLeft"===e&&(o.scrollLeft=t),"rr_scrollTop"===e&&(o.scrollTop=t)}}(t,c)})),l},e.serializeNodeWithId=Z,e.setTimeout=w,e.shouldMaskInput=p,e.snapshot=function(e,t){const{mirror:n=new m,blockClass:r="rr-block",blockSelector:o=null,unblockSelector:s=null,maskAllText:a=!1,maskTextClass:i="rr-mask",unmaskTextClass:c=null,maskTextSelector:l=null,unmaskTextSelector:u=null,inlineStylesheet:d=!0,inlineImages:p=!1,recordCanvas:f=!1,maskAllInputs:h=!1,maskAttributeFn:y,maskTextFn:g,maskInputFn:k,slimDOM:T=!1,dataURLOptions:b,preserveWhiteSpace:N,onSerialize:x,onIframeLoad:S,iframeLoadTimeout:C,onStylesheetLoad:w,stylesheetLoadTimeout:E,keepIframeSrcFn:I=(()=>!1)}=t||{};return Z(e,{doc:e,mirror:n,blockClass:r,blockSelector:o,unblockSelector:s,maskAllText:a,maskTextClass:i,unmaskTextClass:c,maskTextSelector:l,unmaskTextSelector:u,skipChild:!1,inlineStylesheet:d,maskInputOptions:!0===h?{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}:!1===h?{}:h,maskAttributeFn:y,maskTextFn:g,maskInputFn:k,slimDOMOptions:!0===T||"all"===T?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:"all"===T,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:!1===T?{}:T,dataURLOptions:b,inlineImages:p,recordCanvas:f,preserveWhiteSpace:N,onSerialize:x,onIframeLoad:S,iframeLoadTimeout:C,onStylesheetLoad:w,stylesheetLoadTimeout:E,keepIframeSrcFn:I,newlyAddedElement:!1})},e.stringifyRule=c,e.stringifyStylesheet=a,e.toLowerCase=h,e.toUpperCase=y,e.transformAttribute=H,e.visitSnapshot=function(t,n){!function t(r){n(r),r.type!==e.NodeType.Document&&r.type!==e.NodeType.Element||r.childNodes.forEach(t)}(t)},Object.defineProperty(e,"__esModule",{value:!0}),e}({}); | ||
//# sourceMappingURL=rrweb-snapshot.min.js.map |
@@ -1,2 +0,2 @@ | ||
var e;function t(e){return e.nodeType===e.ELEMENT_NODE}function n(e){const t=e?.host;return Boolean(t?.shadowRoot===e)}function r(e){return"[object ShadowRoot]"===Object.prototype.toString.call(e)}function s(e){const{cssText:t}=e;if(t.split('"').length<3)return t;const n=["@import",`url(${JSON.stringify(e.href)})`];return""===e.layerName?n.push("layer"):e.layerName&&n.push(`layer(${e.layerName})`),e.supportsText&&n.push(`supports(${e.supportsText})`),e.media.length&&n.push(e.media.mediaText),n.join(" ")+";"}function o(e){try{const n=e.rules||e.cssRules;return n?((t=Array.from(n,i).join("")).includes(" background-clip: text;")&&!t.includes(" -webkit-background-clip: text;")&&(t=t.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;")),t):null}catch(e){return null}var t}function a(e){let t="";for(let n=0;n<e.style.length;n++){const r=e.style,s=r[n],o=r.getPropertyPriority(s);t+=`${s}:${r.getPropertyValue(s)}${o?" !important":""};`}return`${e.selectorText} { ${t} }`}function i(e){let t;if(l(e))try{t=o(e.styleSheet)||s(e)}catch(e){}else if(u(e)){let t=e.cssText;const n=e.selectorText.includes(":"),r="string"==typeof e.style.all&&e.style.all;if(r&&(t=a(e)),n&&(t=c(t)),n||r)return t}return t||e.cssText}function c(e){return e.replace(/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm,"$1\\$2")}function l(e){return"styleSheet"in e}function u(e){return"selectorText"in e}!function(e){e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment"}(e||(e={}));class m{constructor(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}getId(e){if(!e)return-1;const t=this.getMeta(e)?.id;return t??-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((e=>this.removeNodeFromMap(e)))}has(e){return this.idNodeMap.has(e)}hasNode(e){return this.nodeMetaMap.has(e)}add(e,t){const n=t.id;this.idNodeMap.set(n,e),this.nodeMetaMap.set(e,t)}replace(e,t){const n=this.getNode(e);if(n){const e=this.nodeMetaMap.get(n);e&&this.nodeMetaMap.set(t,e)}this.idNodeMap.set(e,t)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function d(){return new m}function f({maskInputOptions:e,tagName:t,type:n}){return"OPTION"===t&&(t="SELECT"),Boolean(e[t.toLowerCase()]||n&&e[n]||"password"===n||"INPUT"===t&&!n&&e.text)}function p({isMasked:e,element:t,value:n,maskInputFn:r}){let s=n||"";return e?(r&&(s=r(s,t)),"*".repeat(s.length)):s}function h(e){return e.toLowerCase()}function g(e){return e.toUpperCase()}const y="__rrweb_original__";function k(e){const t=e.getContext("2d");if(!t)return!0;for(let n=0;n<e.width;n+=50)for(let r=0;r<e.height;r+=50){const s=t.getImageData,o=y in s?s[y]:s;if(new Uint32Array(o.call(t,n,r,Math.min(50,e.width-n),Math.min(50,e.height-r)).data.buffer).some((e=>0!==e)))return!1}return!0}function b(t,n){return!(!t||!n||t.type!==n.type)&&(t.type===e.Document?t.compatMode===n.compatMode:t.type===e.DocumentType?t.name===n.name&&t.publicId===n.publicId&&t.systemId===n.systemId:t.type===e.Comment||t.type===e.Text||t.type===e.CDATA?t.textContent===n.textContent:t.type===e.Element&&(t.tagName===n.tagName&&JSON.stringify(t.attributes)===JSON.stringify(n.attributes)&&t.isSVG===n.isSVG&&t.needBlock===n.needBlock))}function T(e){const t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?h(t):null}function x(e,t,n){return"INPUT"!==t||"radio"!==n&&"checkbox"!==n?e.value:e.getAttribute("value")||""}function C(e,t){let n;try{n=new URL(e,t??window.location.href)}catch(e){return null}const r=n.pathname.match(/\.([0-9a-z]+)(?:$)/i);return r?.[1]??null}const S={};function w(e){const t=S[e];if(t)return t;const n=window.document;let r=window[e];if(n&&"function"==typeof n.createElement)try{const t=n.createElement("iframe");t.hidden=!0,n.head.appendChild(t);const s=t.contentWindow;s&&s[e]&&(r=s[e]),n.head.removeChild(t)}catch(e){}return S[e]=r.bind(window)}function N(...e){return w("requestAnimationFrame")(...e)}function E(...e){return w("setTimeout")(...e)}function I(...e){return w("clearTimeout")(...e)}function v(e){try{return e.contentDocument}catch(e){}}let L=1;const A=new RegExp("[^a-z0-9-_:]"),M=-2;function O(){return L++}let D,F;const _=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,R=/^(?:[a-z+]+:)?\/\//i,$=/^www\..*/i,U=/^(data:)([^,]*),(.*)/i;function W(e,t){return(e||"").replace(_,((e,n,r,s,o,a)=>{const i=r||o||a,c=n||s||"";if(!i)return e;if(R.test(i)||$.test(i))return`url(${c}${i}${c})`;if(U.test(i))return`url(${c}${i}${c})`;if("/"===i[0])return`url(${c}${function(e){let t="";return t=e.indexOf("//")>-1?e.split("/").slice(0,3).join("/"):e.split("/")[0],t=t.split("?")[0],t}(t)+i}${c})`;const l=t.split("/"),u=i.split("/");l.pop();for(const e of u)"."!==e&&(".."===e?l.pop():l.push(e));return`url(${c}${l.join("/")}${c})`}))}const P=/^[^ \t\n\r\u000c]+/,j=/^[, \t\n\r\u000c]+/;const B=new WeakMap;function V(e,t){return t&&""!==t.trim()?H(e,t):t}function G(e){return Boolean("svg"===e.tagName||e.ownerSVGElement)}function H(e,t){let n=B.get(e);if(n||(n=e.createElement("a"),B.set(e,n)),t){if(t.startsWith("blob:")||t.startsWith("data:"))return t}else t="";return n.setAttribute("href",t),n.href}function z(e,t,n,r,s,o){return r?"src"===n||"href"===n&&("use"!==t||"#"!==r[0])||"xlink:href"===n&&"#"!==r[0]?V(e,r):"background"!==n||"table"!==t&&"td"!==t&&"th"!==t?"srcset"===n?function(e,t){if(""===t.trim())return t;let n=0;function r(e){let r;const s=e.exec(t.substring(n));return s?(r=s[0],n+=r.length,r):""}const s=[];for(;r(j),!(n>=t.length);){let o=r(P);if(","===o.slice(-1))o=V(e,o.substring(0,o.length-1)),s.push(o);else{let r="";o=V(e,o);let a=!1;for(;;){const e=t.charAt(n);if(""===e){s.push((o+r).trim());break}if(a)")"===e&&(a=!1);else{if(","===e){n+=1,s.push((o+r).trim());break}"("===e&&(a=!0)}r+=e,n+=1}}}return s.join(", ")}(e,r):"style"===n?W(r,H(e)):"object"===t&&"data"===n?V(e,r):"function"==typeof o?o(n,r,s):r:V(e,r):r}function q(e,t,n){return("video"===e||"audio"===e)&&"autoplay"===t}function Y(e,t){for(let n=e.classList.length;n--;){const r=e.classList[n];if(t.test(r))return!0}return!1}function X(e,t,n){return!!e&&(n?J(e,(e=>Y(e,t)))>=0:e.nodeType===e.ELEMENT_NODE&&Y(e,t))}function J(e,t,n=1/0,r=0){return e?e.nodeType!==e.ELEMENT_NODE||r>n?-1:t(e)?r:J(e.parentNode,t,n,r+1):-1}function K(e,t){return n=>{const r=n;if(null===r)return!1;try{if(e)if("string"==typeof e){if(r.matches(`.${e}`))return!0}else if(Y(r,e))return!0;return!(!t||!r.matches(t))}catch{return!1}}}function Q(e,t,n,r,s,o){try{const a=e.nodeType===e.ELEMENT_NODE?e:e.parentElement;if(null===a)return!1;if("INPUT"===a.tagName){const e=a.getAttribute("autocomplete");if(["current-password","new-password","cc-number","cc-exp","cc-exp-month","cc-exp-year","cc-csc"].includes(e))return!0}let i=-1,c=-1;if(o){if(c=J(a,K(r,s)),c<0)return!0;i=J(a,K(t,n),c>=0?c:1/0)}else{if(i=J(a,K(t,n)),i<0)return!1;c=J(a,K(r,s),i>=0?i:1/0)}return i>=0?!(c>=0)||i<=c:!(c>=0)&&!!o}catch(e){}return!!o}function Z(t,n){const{doc:r,mirror:s,blockClass:a,blockSelector:i,unblockSelector:c,maskAllText:l,maskAttributeFn:u,maskTextClass:m,unmaskTextClass:d,maskTextSelector:y,unmaskTextSelector:b,inlineStylesheet:C,maskInputOptions:S={},maskTextFn:w,maskInputFn:N,dataURLOptions:E={},inlineImages:I,recordCanvas:L,keepIframeSrcFn:M,newlyAddedElement:O=!1}=n,_=function(e,t){if(!t.hasNode(e))return;const n=t.getId(e);return 1===n?void 0:n}(r,s);switch(t.nodeType){case t.DOCUMENT_NODE:return"CSS1Compat"!==t.compatMode?{type:e.Document,childNodes:[],compatMode:t.compatMode}:{type:e.Document,childNodes:[]};case t.DOCUMENT_TYPE_NODE:return{type:e.DocumentType,name:t.name,publicId:t.publicId,systemId:t.systemId,rootId:_};case t.ELEMENT_NODE:return function(t,n){const{doc:r,blockClass:s,blockSelector:a,unblockSelector:i,inlineStylesheet:c,maskInputOptions:l={},maskAttributeFn:u,maskInputFn:m,dataURLOptions:d={},inlineImages:y,recordCanvas:b,keepIframeSrcFn:C,newlyAddedElement:S=!1,rootId:w,maskAllText:N,maskTextClass:E,unmaskTextClass:I,maskTextSelector:L,unmaskTextSelector:M}=n,O=function(e,t,n,r){try{if(r&&e.matches(r))return!1;if("string"==typeof t){if(e.classList.contains(t))return!0}else for(let n=e.classList.length;n--;){const r=e.classList[n];if(t.test(r))return!0}if(n)return e.matches(n)}catch(e){}return!1}(t,s,a,i),_=function(e){if(e instanceof HTMLFormElement)return"form";const t=h(e.tagName);return A.test(t)?"div":t}(t);let R={};const $=t.attributes.length;for(let e=0;e<$;e++){const n=t.attributes[e];n.name&&!q(_,n.name,n.value)&&(R[n.name]=z(r,_,h(n.name),n.value,t,u))}if("link"===_&&c){const e=Array.from(r.styleSheets).find((e=>e.href===t.href));let n=null;e&&(n=o(e)),n&&(delete R.rel,delete R.href,R._cssText=W(n,e.href))}if("style"===_&&t.sheet&&!(t.innerText||t.textContent||"").trim().length){const e=o(t.sheet);e&&(R._cssText=W(e,H(r)))}if("input"===_||"textarea"===_||"select"===_||"option"===_){const e=t,n=T(e),r=x(e,g(_),n),s=e.checked;if("submit"!==n&&"button"!==n&&r){const t=Q(e,E,L,I,M,f({type:n,tagName:g(_),maskInputOptions:l}));R.value=p({isMasked:t,element:e,value:r,maskInputFn:m})}s&&(R.checked=s)}"option"===_&&(t.selected&&!l.select?R.selected=!0:delete R.selected);if("canvas"===_&&b)if("2d"===t.__context)k(t)||(R.rr_dataURL=t.toDataURL(d.type,d.quality));else if(!("__context"in t)){const e=t.toDataURL(d.type,d.quality),n=r.createElement("canvas");n.width=t.width,n.height=t.height;e!==n.toDataURL(d.type,d.quality)&&(R.rr_dataURL=e)}if("img"===_&&y){D||(D=r.createElement("canvas"),F=D.getContext("2d"));const e=t,n=e.currentSrc||e.getAttribute("src")||"<unknown-src>",s=e.crossOrigin,o=()=>{e.removeEventListener("load",o);try{D.width=e.naturalWidth,D.height=e.naturalHeight,F.drawImage(e,0,0),R.rr_dataURL=D.toDataURL(d.type,d.quality)}catch(t){if("anonymous"!==e.crossOrigin)return e.crossOrigin="anonymous",void(e.complete&&0!==e.naturalWidth?o():e.addEventListener("load",o));console.warn(`Cannot inline img src=${n}! Error: ${t}`)}"anonymous"===e.crossOrigin&&(s?R.crossOrigin=s:e.removeAttribute("crossorigin"))};e.complete&&0!==e.naturalWidth?o():e.addEventListener("load",o)}"audio"!==_&&"video"!==_||(R.rr_mediaState=t.paused?"paused":"played",R.rr_mediaCurrentTime=t.currentTime);S||(t.scrollLeft&&(R.rr_scrollLeft=t.scrollLeft),t.scrollTop&&(R.rr_scrollTop=t.scrollTop));if(O){const{width:e,height:n}=t.getBoundingClientRect();R={class:R.class,rr_width:`${e}px`,rr_height:`${n}px`}}"iframe"!==_||C(R.src)||(O||v(t)||(R.rr_src=R.src),delete R.src);let U;try{customElements.get(_)&&(U=!0)}catch(e){}return{type:e.Element,tagName:_,attributes:R,childNodes:[],isSVG:G(t)||void 0,needBlock:O,rootId:w,isCustom:U}}(t,{doc:r,blockClass:a,blockSelector:i,unblockSelector:c,inlineStylesheet:C,maskAttributeFn:u,maskInputOptions:S,maskInputFn:N,dataURLOptions:E,inlineImages:I,recordCanvas:L,keepIframeSrcFn:M,newlyAddedElement:O,rootId:_,maskAllText:l,maskTextClass:m,unmaskTextClass:d,maskTextSelector:y,unmaskTextSelector:b});case t.TEXT_NODE:return function(t,n){const{maskAllText:r,maskTextClass:s,unmaskTextClass:a,maskTextSelector:i,unmaskTextSelector:c,maskTextFn:l,maskInputOptions:u,maskInputFn:m,rootId:d}=n,h=t.parentNode&&t.parentNode.tagName;let g=t.textContent;const y="STYLE"===h||void 0,k="SCRIPT"===h||void 0,b="TEXTAREA"===h||void 0;if(y&&g){try{t.nextSibling||t.previousSibling||t.parentNode.sheet?.cssRules&&(g=o(t.parentNode.sheet))}catch(e){console.warn(`Cannot get CSS styles from text's parentNode. Error: ${e}`,t)}g=W(g,H(n.doc))}k&&(g="SCRIPT_PLACEHOLDER");const T=Q(t,s,i,a,c,r);y||k||b||!g||!T||(g=l?l(g,t.parentElement):g.replace(/[\S]/g,"*"));b&&g&&(u.textarea||T)&&(g=m?m(g,t.parentNode):g.replace(/[\S]/g,"*"));if("OPTION"===h&&g){g=p({isMasked:Q(t,s,i,a,c,f({type:null,tagName:h,maskInputOptions:u})),element:t,value:g,maskInputFn:m})}return{type:e.Text,textContent:g||"",isStyle:y,rootId:d}}(t,{doc:r,maskAllText:l,maskTextClass:m,unmaskTextClass:d,maskTextSelector:y,unmaskTextSelector:b,maskTextFn:w,maskInputOptions:S,maskInputFn:N,rootId:_});case t.CDATA_SECTION_NODE:return{type:e.CDATA,textContent:"",rootId:_};case t.COMMENT_NODE:return{type:e.Comment,textContent:t.textContent||"",rootId:_};default:return!1}}function ee(e){return null==e?"":e.toLowerCase()}function te(s,o){const{doc:a,mirror:i,blockClass:c,blockSelector:l,unblockSelector:u,maskAllText:m,maskTextClass:d,unmaskTextClass:f,maskTextSelector:p,unmaskTextSelector:h,skipChild:g=!1,inlineStylesheet:y=!0,maskInputOptions:k={},maskAttributeFn:b,maskTextFn:T,maskInputFn:x,slimDOMOptions:S,dataURLOptions:w={},inlineImages:N=!1,recordCanvas:L=!1,onSerialize:A,onIframeLoad:D,iframeLoadTimeout:F=5e3,onStylesheetLoad:_,stylesheetLoadTimeout:R=5e3,keepIframeSrcFn:$=(()=>!1),newlyAddedElement:U=!1}=o;let{preserveWhiteSpace:W=!0}=o;const P=Z(s,{doc:a,mirror:i,blockClass:c,blockSelector:l,maskAllText:m,unblockSelector:u,maskTextClass:d,unmaskTextClass:f,maskTextSelector:p,unmaskTextSelector:h,inlineStylesheet:y,maskInputOptions:k,maskAttributeFn:b,maskTextFn:T,maskInputFn:x,dataURLOptions:w,inlineImages:N,recordCanvas:L,keepIframeSrcFn:$,newlyAddedElement:U});if(!P)return console.warn(s,"not serialized"),null;let j;j=i.hasNode(s)?i.getId(s):!function(t,n){if(n.comment&&t.type===e.Comment)return!0;if(t.type===e.Element){if(n.script&&("script"===t.tagName||"link"===t.tagName&&("preload"===t.attributes.rel||"modulepreload"===t.attributes.rel)&&"script"===t.attributes.as||"link"===t.tagName&&"prefetch"===t.attributes.rel&&"string"==typeof t.attributes.href&&"js"===C(t.attributes.href)))return!0;if(n.headFavicon&&("link"===t.tagName&&"shortcut icon"===t.attributes.rel||"meta"===t.tagName&&(ee(t.attributes.name).match(/^msapplication-tile(image|color)$/)||"application-name"===ee(t.attributes.name)||"icon"===ee(t.attributes.rel)||"apple-touch-icon"===ee(t.attributes.rel)||"shortcut icon"===ee(t.attributes.rel))))return!0;if("meta"===t.tagName){if(n.headMetaDescKeywords&&ee(t.attributes.name).match(/^description|keywords$/))return!0;if(n.headMetaSocial&&(ee(t.attributes.property).match(/^(og|twitter|fb):/)||ee(t.attributes.name).match(/^(og|twitter):/)||"pinterest"===ee(t.attributes.name)))return!0;if(n.headMetaRobots&&("robots"===ee(t.attributes.name)||"googlebot"===ee(t.attributes.name)||"bingbot"===ee(t.attributes.name)))return!0;if(n.headMetaHttpEquiv&&void 0!==t.attributes["http-equiv"])return!0;if(n.headMetaAuthorship&&("author"===ee(t.attributes.name)||"generator"===ee(t.attributes.name)||"framework"===ee(t.attributes.name)||"publisher"===ee(t.attributes.name)||"progid"===ee(t.attributes.name)||ee(t.attributes.property).match(/^article:/)||ee(t.attributes.property).match(/^product:/)))return!0;if(n.headMetaVerification&&("google-site-verification"===ee(t.attributes.name)||"yandex-verification"===ee(t.attributes.name)||"csrf-token"===ee(t.attributes.name)||"p:domain_verify"===ee(t.attributes.name)||"verify-v1"===ee(t.attributes.name)||"verification"===ee(t.attributes.name)||"shopify-checkout-api-token"===ee(t.attributes.name)))return!0}}return!1}(P,S)&&(W||P.type!==e.Text||P.isStyle||P.textContent.replace(/^\s+|\s+$/gm,"").length)?O():M;const B=Object.assign(P,{id:j});if(i.add(s,B),j===M)return null;A&&A(s);let V=!g;if(B.type===e.Element){V=V&&!B.needBlock,delete B.needBlock;const e=s.shadowRoot;e&&r(e)&&(B.isShadowHost=!0)}if((B.type===e.Document||B.type===e.Element)&&V){S.headWhitespace&&B.type===e.Element&&"head"===B.tagName&&(W=!1);const n={doc:a,mirror:i,blockClass:c,blockSelector:l,maskAllText:m,unblockSelector:u,maskTextClass:d,unmaskTextClass:f,maskTextSelector:p,unmaskTextSelector:h,skipChild:g,inlineStylesheet:y,maskInputOptions:k,maskAttributeFn:b,maskTextFn:T,maskInputFn:x,slimDOMOptions:S,dataURLOptions:w,inlineImages:N,recordCanvas:L,preserveWhiteSpace:W,onSerialize:A,onIframeLoad:D,iframeLoadTimeout:F,onStylesheetLoad:_,stylesheetLoadTimeout:R,keepIframeSrcFn:$};for(const e of Array.from(s.childNodes)){const t=te(e,n);t&&B.childNodes.push(t)}if(t(s)&&s.shadowRoot)for(const e of Array.from(s.shadowRoot.childNodes)){const t=te(e,n);t&&(r(s.shadowRoot)&&(t.isShadow=!0),B.childNodes.push(t))}}return s.parentNode&&n(s.parentNode)&&r(s.parentNode)&&(B.isShadow=!0),B.type===e.Element&&"iframe"===B.tagName&&function(e,t,n){const r=e.contentWindow;if(!r)return;let s,o=!1;try{s=r.document.readyState}catch(e){return}if("complete"!==s){const r=E((()=>{o||(t(),o=!0)}),n);return void e.addEventListener("load",(()=>{I(r),o=!0,t()}))}const a="about:blank";if(r.location.href!==a||e.src===a||""===e.src)return E(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}(s,(()=>{const e=v(s);if(e&&D){const t=te(e,{doc:e,mirror:i,blockClass:c,blockSelector:l,unblockSelector:u,maskAllText:m,maskTextClass:d,unmaskTextClass:f,maskTextSelector:p,unmaskTextSelector:h,skipChild:!1,inlineStylesheet:y,maskInputOptions:k,maskAttributeFn:b,maskTextFn:T,maskInputFn:x,slimDOMOptions:S,dataURLOptions:w,inlineImages:N,recordCanvas:L,preserveWhiteSpace:W,onSerialize:A,onIframeLoad:D,iframeLoadTimeout:F,onStylesheetLoad:_,stylesheetLoadTimeout:R,keepIframeSrcFn:$});t&&D(s,t)}}),F),B.type===e.Element&&"link"===B.tagName&&"string"==typeof B.attributes.rel&&("stylesheet"===B.attributes.rel||"preload"===B.attributes.rel&&"string"==typeof B.attributes.href&&"css"===C(B.attributes.href))&&function(e,t,n){let r,s=!1;try{r=e.sheet}catch(e){return}if(r)return;const o=E((()=>{s||(t(),s=!0)}),n);e.addEventListener("load",(()=>{I(o),s=!0,t()}))}(s,(()=>{if(_){const e=te(s,{doc:a,mirror:i,blockClass:c,blockSelector:l,unblockSelector:u,maskAllText:m,maskTextClass:d,unmaskTextClass:f,maskTextSelector:p,unmaskTextSelector:h,skipChild:!1,inlineStylesheet:y,maskInputOptions:k,maskAttributeFn:b,maskTextFn:T,maskInputFn:x,slimDOMOptions:S,dataURLOptions:w,inlineImages:N,recordCanvas:L,preserveWhiteSpace:W,onSerialize:A,onIframeLoad:D,iframeLoadTimeout:F,onStylesheetLoad:_,stylesheetLoadTimeout:R,keepIframeSrcFn:$});e&&_(s,e)}}),R),B}function ne(e,t){const{mirror:n=new m,blockClass:r="rr-block",blockSelector:s=null,unblockSelector:o=null,maskAllText:a=!1,maskTextClass:i="rr-mask",unmaskTextClass:c=null,maskTextSelector:l=null,unmaskTextSelector:u=null,inlineStylesheet:d=!0,inlineImages:f=!1,recordCanvas:p=!1,maskAllInputs:h=!1,maskAttributeFn:g,maskTextFn:y,maskInputFn:k,slimDOM:b=!1,dataURLOptions:T,preserveWhiteSpace:x,onSerialize:C,onIframeLoad:S,iframeLoadTimeout:w,onStylesheetLoad:N,stylesheetLoadTimeout:E,keepIframeSrcFn:I=(()=>!1)}=t||{};return te(e,{doc:e,mirror:n,blockClass:r,blockSelector:s,unblockSelector:o,maskAllText:a,maskTextClass:i,unmaskTextClass:c,maskTextSelector:l,unmaskTextSelector:u,skipChild:!1,inlineStylesheet:d,maskInputOptions:!0===h?{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}:!1===h?{}:h,maskAttributeFn:g,maskTextFn:y,maskInputFn:k,slimDOMOptions:!0===b||"all"===b?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:"all"===b,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:!1===b?{}:b,dataURLOptions:T,inlineImages:f,recordCanvas:p,preserveWhiteSpace:x,onSerialize:C,onIframeLoad:S,iframeLoadTimeout:w,onStylesheetLoad:N,stylesheetLoadTimeout:E,keepIframeSrcFn:I,newlyAddedElement:!1})}function re(t,n){!function t(r){n(r),r.type!==e.Document&&r.type!==e.Element||r.childNodes.forEach(t)}(t)}function se(){L=1}const oe=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g;function ae(e,t={}){let n=1,r=1;function s(e){const t=e.match(/\n/g);t&&(n+=t.length);const s=e.lastIndexOf("\n");r=-1===s?r+e.length:e.length-s}function o(){const e={line:n,column:r};return t=>(t.position=new a(e),f(),t)}class a{constructor(e){this.start=e,this.end={line:n,column:r},this.source=t.source}}a.prototype.content=e;const i=[];function c(s){const o=new Error(`${t.source||""}:${n}:${r}: ${s}`);if(o.reason=s,o.filename=t.source,o.line=n,o.column=r,o.source=e,!t.silent)throw o;i.push(o)}function l(){return d(/^{\s*/)}function u(){return d(/^}/)}function m(){let t;const n=[];for(f(),p(n);e.length&&"}"!==e.charAt(0)&&(t=w()||N());)t&&(n.push(t),p(n));return n}function d(t){const n=t.exec(e);if(!n)return;const r=n[0];return s(r),e=e.slice(r.length),n}function f(){d(/^\s*/)}function p(e=[]){let t;for(;t=h();)t&&e.push(t),t=h();return e}function h(){const t=o();if("/"!==e.charAt(0)||"*"!==e.charAt(1))return;let n=2;for(;""!==e.charAt(n)&&("*"!==e.charAt(n)||"/"!==e.charAt(n+1));)++n;if(n+=2,""===e.charAt(n-1))return c("End of comment missing");const a=e.slice(2,n-2);return r+=2,s(a),e=e.slice(n),r+=2,t({type:"comment",comment:a})}function g(){const e=d(/^([^{]+)/);if(!e)return;const t=ie(e[0]).replace(/\/\*([^*]|[\r\n]|(\*+([^*/]|[\r\n])))*\*\/+/g,"").replace(/"(?:\\"|[^"])*"|'(?:\\'|[^'])*'/g,(e=>e.replace(/,/g,""))).split(/\s*(?![^(]*\)),\s*/);if(t.length<=1)return t.map((e=>e.replace(/\u200C/g,",")));let n=0,r=0;const s=t.length,o=[];for(;n<s;){let e=(t[n].match(/\(/g)||[]).length-(t[n].match(/\)/g)||[]).length;if(e>=1){let a=!1;for(r=n+1;r<s;){const s=(t[r].match(/\(/g)||[]).length,i=(t[r].match(/\)/g)||[]).length-s;if(i===e){o.push(t.slice(n,r+1).join(",")),n=r+1,a=!0;break}r++,e-=i}if(a)continue;t.slice(n,s).forEach((e=>e&&o.push(e)));break}t[n]&&o.push(t[n]),n++}return o.map((e=>e.replace(/\u200C/g,",")))}function y(){const e=o(),t=d(/^(\*?[-#\/\*\\\w]+(\[[0-9a-z_-]+\])?)\s*/);if(!t)return;const n=ie(t[0]);if(!d(/^:\s*/))return c("property missing ':'");const r=d(/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^\)]*?\)|[^};])+)/),s=e({type:"declaration",property:n.replace(oe,""),value:r?ie(r[0]).replace(oe,""):""});return d(/^[;\s]*/),s}function k(){const e=[];if(!l())return c("missing '{'");let t;for(p(e);t=y();)!1!==t&&(e.push(t),p(e)),t=y();return u()?e:c("missing '}'")}function b(){let e;const t=[],n=o();for(;e=d(/^((\d+\.\d+|\.\d+|\d+)%?|[a-z]+)\s*/);)t.push(e[1]),d(/^,\s*/);if(t.length)return n({type:"keyframe",values:t,declarations:k()})}const T=S("import"),x=S("charset"),C=S("namespace");function S(e){const t=new RegExp("^@"+e+"\\s*((?:"+[/[^\\]"(?:\\"|[^"])*"/.source,/[^\\]'(?:\\'|[^'])*'/.source,"[^;]"].join("|")+")+);");return()=>{const n=o(),r=d(t);if(!r)return;const s={type:e};return s[e]=r[1].trim(),n(s)}}function w(){if("@"===e[0])return function(){const e=o();let t=d(/^@([-\w]+)?keyframes\s*/);if(!t)return;const n=t[1];if(t=d(/^([-\w]+)\s*/),!t)return c("@keyframes missing name");const r=t[1];if(!l())return c("@keyframes missing '{'");let s,a=p();for(;s=b();)a.push(s),a=a.concat(p());return u()?e({type:"keyframes",name:r,vendor:n,keyframes:a}):c("@keyframes missing '}'")}()||function(){const e=o(),t=d(/^@media *([^{]+)/);if(!t)return;const n=ie(t[1]);if(!l())return c("@media missing '{'");const r=p().concat(m());return u()?e({type:"media",media:n,rules:r}):c("@media missing '}'")}()||function(){const e=o(),t=d(/^@custom-media\s+(--[^\s]+)\s*([^{;]+);/);if(t)return e({type:"custom-media",name:ie(t[1]),media:ie(t[2])})}()||function(){const e=o(),t=d(/^@supports *([^{]+)/);if(!t)return;const n=ie(t[1]);if(!l())return c("@supports missing '{'");const r=p().concat(m());return u()?e({type:"supports",supports:n,rules:r}):c("@supports missing '}'")}()||T()||x()||C()||function(){const e=o(),t=d(/^@([-\w]+)?document *([^{]+)/);if(!t)return;const n=ie(t[1]),r=ie(t[2]);if(!l())return c("@document missing '{'");const s=p().concat(m());return u()?e({type:"document",document:r,vendor:n,rules:s}):c("@document missing '}'")}()||function(){const e=o();if(!d(/^@page */))return;const t=g()||[];if(!l())return c("@page missing '{'");let n,r=p();for(;n=y();)r.push(n),r=r.concat(p());return u()?e({type:"page",selectors:t,declarations:r}):c("@page missing '}'")}()||function(){const e=o();if(!d(/^@host\s*/))return;if(!l())return c("@host missing '{'");const t=p().concat(m());return u()?e({type:"host",rules:t}):c("@host missing '}'")}()||function(){const e=o();if(!d(/^@font-face\s*/))return;if(!l())return c("@font-face missing '{'");let t,n=p();for(;t=y();)n.push(t),n=n.concat(p());return u()?e({type:"font-face",declarations:n}):c("@font-face missing '}'")}()}function N(){const e=o(),t=g();return t?(p(),e({type:"rule",selectors:t,declarations:k()})):c("selector missing")}return ce(function(){const e=m();return{type:"stylesheet",stylesheet:{source:t.source,rules:e,parsingErrors:i}}}())}function ie(e){return e?e.replace(/^\s+|\s+$/g,""):""}function ce(e,t){const n=e&&"string"==typeof e.type,r=n?e:t;for(const t of Object.keys(e)){const n=e[t];Array.isArray(n)?n.forEach((e=>{ce(e,r)})):n&&"object"==typeof n&&ce(n,r)}return n&&Object.defineProperty(e,"parent",{configurable:!0,writable:!0,enumerable:!1,value:t||null}),e}const le={script:"noscript",altglyph:"altGlyph",altglyphdef:"altGlyphDef",altglyphitem:"altGlyphItem",animatecolor:"animateColor",animatemotion:"animateMotion",animatetransform:"animateTransform",clippath:"clipPath",feblend:"feBlend",fecolormatrix:"feColorMatrix",fecomponenttransfer:"feComponentTransfer",fecomposite:"feComposite",feconvolvematrix:"feConvolveMatrix",fediffuselighting:"feDiffuseLighting",fedisplacementmap:"feDisplacementMap",fedistantlight:"feDistantLight",fedropshadow:"feDropShadow",feflood:"feFlood",fefunca:"feFuncA",fefuncb:"feFuncB",fefuncg:"feFuncG",fefuncr:"feFuncR",fegaussianblur:"feGaussianBlur",feimage:"feImage",femerge:"feMerge",femergenode:"feMergeNode",femorphology:"feMorphology",feoffset:"feOffset",fepointlight:"fePointLight",fespecularlighting:"feSpecularLighting",fespotlight:"feSpotLight",fetile:"feTile",feturbulence:"feTurbulence",foreignobject:"foreignObject",glyphref:"glyphRef",lineargradient:"linearGradient",radialgradient:"radialGradient"};const ue=/([^\\]):hover/,me=new RegExp(ue.source,"g");function de(e,t){const n=t?.stylesWithHoverClass.get(e);if(n)return n;if(e.length>=1e6)return e;const r=ae(e,{silent:!0});if(!r.stylesheet)return e;const s=[];if(r.stylesheet.rules.forEach((e=>{"selectors"in e&&(e.selectors||[]).forEach((e=>{ue.test(e)&&s.push(e)}))})),0===s.length)return e;const o=new RegExp(s.filter(((e,t)=>s.indexOf(e)===t)).sort(((e,t)=>t.length-e.length)).map((e=>e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"))).join("|"),"g"),a=e.replace(o,(e=>{const t=e.replace(me,"$1.\\:hover");return`${e}, ${t}`}));return t?.stylesWithHoverClass.set(e,a),a}function fe(){return{stylesWithHoverClass:new Map}}function pe(t,n){const{doc:r,hackCss:s,cache:o}=n;switch(t.type){case e.Document:return r.implementation.createDocument(null,"",null);case e.DocumentType:return r.implementation.createDocumentType(t.name||"html",t.publicId,t.systemId);case e.Element:{const e=function(e){let t=le[e.tagName]?le[e.tagName]:e.tagName;return"link"===t&&e.attributes._cssText&&(t="style"),t}(t);let n;t.isSVG?n=r.createElementNS("http://www.w3.org/2000/svg",e):(t.isCustom&&r.defaultView?.customElements&&!r.defaultView.customElements.get(t.tagName)&&r.defaultView.customElements.define(t.tagName,class extends r.defaultView.HTMLElement{}),n=r.createElement(e));const a={};for(const i in t.attributes){if(!Object.prototype.hasOwnProperty.call(t.attributes,i))continue;let c=t.attributes[i];if("option"===e&&"selected"===i&&!1===c)continue;if(null===c)continue;if(!0===c&&(c=""),i.startsWith("rr_")){a[i]=c;continue}const l="textarea"===e&&"value"===i,u="style"===e&&"_cssText"===i;if(u&&s&&"string"==typeof c&&(c=de(c,o)),!l&&!u||"string"!=typeof c)try{if(t.isSVG&&"xlink:href"===i)n.setAttributeNS("http://www.w3.org/1999/xlink",i,c.toString());else if("onload"===i||"onclick"===i||"onmouse"===i.substring(0,7))n.setAttribute("_"+i,c.toString());else{if("meta"===e&&"Content-Security-Policy"===t.attributes["http-equiv"]&&"content"===i){n.setAttribute("csp-content",c.toString());continue}("link"!==e||"preload"!==t.attributes.rel&&"modulepreload"!==t.attributes.rel||"script"!==t.attributes.as)&&("link"===e&&"prefetch"===t.attributes.rel&&"string"==typeof t.attributes.href&&t.attributes.href.endsWith(".js")||("img"===e&&t.attributes.srcset&&t.attributes.rr_dataURL?n.setAttribute("rrweb-original-srcset",t.attributes.srcset):n.setAttribute(i,c.toString())))}}catch(e){}else{const e=r.createTextNode(c);for(const e of Array.from(n.childNodes))e.nodeType===n.TEXT_NODE&&n.removeChild(e);n.appendChild(e)}}for(const s in a){const o=a[s];if("canvas"===e&&"rr_dataURL"===s){const e=r.createElement("img");e.onload=()=>{const t=n.getContext("2d");t&&t.drawImage(e,0,0,e.width,e.height)},e.src=o.toString(),n.RRNodeType&&(n.rr_dataURL=o.toString())}else if("img"===e&&"rr_dataURL"===s){const e=n;e.currentSrc.startsWith("data:")||(e.setAttribute("rrweb-original-src",t.attributes.src),e.src=o.toString())}if("rr_width"===s)n.style.setProperty("width",o.toString());else if("rr_height"===s)n.style.setProperty("height",o.toString());else if("rr_mediaCurrentTime"===s&&"number"==typeof o)n.currentTime=o;else if("rr_mediaState"===s)switch(o){case"played":n.play().catch((e=>console.warn("media playback error",e)));break;case"paused":n.pause()}}if(t.isShadowHost)if(n.shadowRoot)for(;n.shadowRoot.firstChild;)n.shadowRoot.removeChild(n.shadowRoot.firstChild);else n.attachShadow({mode:"open"});return n}case e.Text:return r.createTextNode(t.isStyle&&s?de(t.textContent,o):t.textContent);case e.CDATA:return r.createCDATASection(t.textContent);case e.Comment:return r.createComment(t.textContent);default:return null}}function he(n,r){const{doc:s,mirror:o,skipChild:a=!1,hackCss:i=!0,afterAppend:c,cache:l}=r;if(o.has(n.id)){const e=o.getNode(n.id);if(b(o.getMeta(e),n))return o.getNode(n.id)}let u=pe(n,{doc:s,hackCss:i,cache:l});if(!u)return null;if(n.rootId&&o.getNode(n.rootId)!==s&&o.replace(n.rootId,s),n.type===e.Document&&(s.close(),s.open(),"BackCompat"===n.compatMode&&n.childNodes&&n.childNodes[0].type!==e.DocumentType&&(n.childNodes[0].type===e.Element&&"xmlns"in n.childNodes[0].attributes&&"http://www.w3.org/1999/xhtml"===n.childNodes[0].attributes.xmlns?s.write('<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">'):s.write('<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "">')),u=s),o.add(u,n),(n.type===e.Document||n.type===e.Element)&&!a)for(const r of n.childNodes){const a=he(r,{doc:s,mirror:o,skipChild:!1,hackCss:i,afterAppend:c,cache:l});if(a){if(r.isShadow&&t(u)&&u.shadowRoot)u.shadowRoot.appendChild(a);else if(n.type===e.Document&&r.type==e.Element){const e=a;let t=null;e.childNodes.forEach((e=>{"BODY"===e.nodeName&&(t=e)})),t?(e.removeChild(t),u.appendChild(a),e.appendChild(t)):u.appendChild(a)}else u.appendChild(a);c&&c(a,r.id)}else console.warn("Failed to rebuild",r)}return u}function ge(t,n){const{doc:r,onVisit:s,hackCss:o=!0,afterAppend:a,cache:i,mirror:c=new m}=n,l=he(t,{doc:r,mirror:c,skipChild:!1,hackCss:o,afterAppend:a,cache:i});return function(e,t){for(const r of e.getIds())e.has(r)&&(n=e.getNode(r),t(n));var n}(c,(t=>{s&&s(t),function(t,n){const r=n.getMeta(t);if(r?.type!==e.Element)return;const s=t;for(const e in r.attributes){if(!Object.prototype.hasOwnProperty.call(r.attributes,e)||!e.startsWith("rr_"))continue;const t=r.attributes[e];"rr_scrollLeft"===e&&(s.scrollLeft=t),"rr_scrollTop"===e&&(s.scrollTop=t)}}(t,c)})),l}export{M as IGNORED_NODE,m as Mirror,e as NodeType,de as addHoverClass,he as buildNodeWithSN,X as classMatchesRegex,se as cleanupSnapshot,I as clearTimeout,fe as createCache,K as createMatchPredicate,d as createMirror,J as distanceToMatch,s as escapeImportStatement,C as extractFileExtension,a as fixAllCssProperty,c as fixSafariColons,O as genId,v as getIframeContentDocument,T as getInputType,x as getInputValue,q as ignoreAttribute,k as is2DCanvasBlank,l as isCSSImportRule,u as isCSSStyleRule,t as isElement,r as isNativeShadowDom,b as isNodeMetaEqual,n as isShadowRoot,p as maskInputValue,Q as needMaskingText,N as onRequestAnimationFrame,ge as rebuild,te as serializeNodeWithId,E as setTimeout,f as shouldMaskInput,ne as snapshot,i as stringifyRule,o as stringifyStylesheet,h as toLowerCase,g as toUpperCase,z as transformAttribute,re as visitSnapshot}; | ||
var e;function t(e){return e.nodeType===e.ELEMENT_NODE}function n(e){const t=e?.host;return Boolean(t?.shadowRoot===e)}function r(e){return"[object ShadowRoot]"===Object.prototype.toString.call(e)}function s(e){const{cssText:t}=e;if(t.split('"').length<3)return t;const n=["@import",`url(${JSON.stringify(e.href)})`];return""===e.layerName?n.push("layer"):e.layerName&&n.push(`layer(${e.layerName})`),e.supportsText&&n.push(`supports(${e.supportsText})`),e.media.length&&n.push(e.media.mediaText),n.join(" ")+";"}function o(e){try{const n=e.rules||e.cssRules;return n?((t=Array.from(n,i).join("")).includes(" background-clip: text;")&&!t.includes(" -webkit-background-clip: text;")&&(t=t.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;")),t):null}catch(e){return null}var t}function a(e){let t="";for(let n=0;n<e.style.length;n++){const r=e.style,s=r[n],o=r.getPropertyPriority(s);t+=`${s}:${r.getPropertyValue(s)}${o?" !important":""};`}return`${e.selectorText} { ${t} }`}function i(e){let t;if(l(e))try{t=o(e.styleSheet)||s(e)}catch(e){}else if(u(e)){let t=e.cssText;const n=e.selectorText.includes(":"),r="string"==typeof e.style.all&&e.style.all;if(r&&(t=a(e)),n&&(t=c(t)),n||r)return t}return t||e.cssText}function c(e){return e.replace(/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm,"$1\\$2")}function l(e){return"styleSheet"in e}function u(e){return"selectorText"in e}!function(e){e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment"}(e||(e={}));class m{constructor(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}getId(e){if(!e)return-1;const t=this.getMeta(e)?.id;return t??-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((e=>this.removeNodeFromMap(e)))}has(e){return this.idNodeMap.has(e)}hasNode(e){return this.nodeMetaMap.has(e)}add(e,t){const n=t.id;this.idNodeMap.set(n,e),this.nodeMetaMap.set(e,t)}replace(e,t){const n=this.getNode(e);if(n){const e=this.nodeMetaMap.get(n);e&&this.nodeMetaMap.set(t,e)}this.idNodeMap.set(e,t)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function d(){return new m}function f({maskInputOptions:e,tagName:t,type:n}){return"OPTION"===t&&(t="SELECT"),Boolean(e[t.toLowerCase()]||n&&e[n]||"password"===n||"INPUT"===t&&!n&&e.text)}function p({isMasked:e,element:t,value:n,maskInputFn:r}){let s=n||"";return e?(r&&(s=r(s,t)),"*".repeat(s.length)):s}function h(e){return e.toLowerCase()}function g(e){return e.toUpperCase()}const y="__rrweb_original__";function k(e){const t=e.getContext("2d");if(!t)return!0;for(let n=0;n<e.width;n+=50)for(let r=0;r<e.height;r+=50){const s=t.getImageData,o=y in s?s[y]:s;if(new Uint32Array(o.call(t,n,r,Math.min(50,e.width-n),Math.min(50,e.height-r)).data.buffer).some((e=>0!==e)))return!1}return!0}function b(t,n){return!(!t||!n||t.type!==n.type)&&(t.type===e.Document?t.compatMode===n.compatMode:t.type===e.DocumentType?t.name===n.name&&t.publicId===n.publicId&&t.systemId===n.systemId:t.type===e.Comment||t.type===e.Text||t.type===e.CDATA?t.textContent===n.textContent:t.type===e.Element&&(t.tagName===n.tagName&&JSON.stringify(t.attributes)===JSON.stringify(n.attributes)&&t.isSVG===n.isSVG&&t.needBlock===n.needBlock))}function T(e){const t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?h(t):null}function x(e,t,n){return"INPUT"!==t||"radio"!==n&&"checkbox"!==n?e.value:e.getAttribute("value")||""}function C(e,t){let n;try{n=new URL(e,t??window.location.href)}catch(e){return null}const r=n.pathname.match(/\.([0-9a-z]+)(?:$)/i);return r?.[1]??null}const S={};function w(e){const t=S[e];if(t)return t;const n=window.document;let r=window[e];if(n&&"function"==typeof n.createElement)try{const t=n.createElement("iframe");t.hidden=!0,n.head.appendChild(t);const s=t.contentWindow;s&&s[e]&&(r=s[e]),n.head.removeChild(t)}catch(e){}return S[e]=r.bind(window)}function N(...e){return w("requestAnimationFrame")(...e)}function E(...e){return w("setTimeout")(...e)}function I(...e){return w("clearTimeout")(...e)}function v(e){try{return e.contentDocument}catch(e){}}let L=1;const A=new RegExp("[^a-z0-9-_:]"),M=-2;function O(){return L++}let D,F;const _=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,R=/^(?:[a-z+]+:)?\/\//i,$=/^www\..*/i,U=/^(data:)([^,]*),(.*)/i;function W(e,t){return(e||"").replace(_,((e,n,r,s,o,a)=>{const i=r||o||a,c=n||s||"";if(!i)return e;if(R.test(i)||$.test(i))return`url(${c}${i}${c})`;if(U.test(i))return`url(${c}${i}${c})`;if("/"===i[0])return`url(${c}${function(e){let t="";return t=e.indexOf("//")>-1?e.split("/").slice(0,3).join("/"):e.split("/")[0],t=t.split("?")[0],t}(t)+i}${c})`;const l=t.split("/"),u=i.split("/");l.pop();for(const e of u)"."!==e&&(".."===e?l.pop():l.push(e));return`url(${c}${l.join("/")}${c})`}))}const P=/^[^ \t\n\r\u000c]+/,j=/^[, \t\n\r\u000c]+/;const B=new WeakMap;function V(e,t){return t&&""!==t.trim()?H(e,t):t}function G(e){return Boolean("svg"===e.tagName||e.ownerSVGElement)}function H(e,t){let n=B.get(e);if(n||(n=e.createElement("a"),B.set(e,n)),t){if(t.startsWith("blob:")||t.startsWith("data:"))return t}else t="";return n.setAttribute("href",t),n.href}function z(e,t,n,r,s,o){return r?"src"===n||"href"===n&&("use"!==t||"#"!==r[0])||"xlink:href"===n&&"#"!==r[0]?V(e,r):"background"!==n||"table"!==t&&"td"!==t&&"th"!==t?"srcset"===n?function(e,t){if(""===t.trim())return t;let n=0;function r(e){let r;const s=e.exec(t.substring(n));return s?(r=s[0],n+=r.length,r):""}const s=[];for(;r(j),!(n>=t.length);){let o=r(P);if(","===o.slice(-1))o=V(e,o.substring(0,o.length-1)),s.push(o);else{let r="";o=V(e,o);let a=!1;for(;;){const e=t.charAt(n);if(""===e){s.push((o+r).trim());break}if(a)")"===e&&(a=!1);else{if(","===e){n+=1,s.push((o+r).trim());break}"("===e&&(a=!0)}r+=e,n+=1}}}return s.join(", ")}(e,r):"style"===n?W(r,H(e)):"object"===t&&"data"===n?V(e,r):"function"==typeof o?o(n,r,s):r:V(e,r):r}function q(e,t,n){return("video"===e||"audio"===e)&&"autoplay"===t}function Y(e,t){for(let n=e.classList.length;n--;){const r=e.classList[n];if(t.test(r))return!0}return!1}function X(e,t,n){return!!e&&(n?J(e,(e=>Y(e,t)))>=0:e.nodeType===e.ELEMENT_NODE&&Y(e,t))}function J(e,t,n=1/0,r=0){return e?e.nodeType!==e.ELEMENT_NODE||r>n?-1:t(e)?r:J(e.parentNode,t,n,r+1):-1}function K(e,t){return n=>{const r=n;if(null===r)return!1;try{if(e)if("string"==typeof e){if(r.matches(`.${e}`))return!0}else if(Y(r,e))return!0;return!(!t||!r.matches(t))}catch{return!1}}}function Q(e,t,n,r,s,o){try{const a=e.nodeType===e.ELEMENT_NODE?e:e.parentElement;if(null===a)return!1;if("INPUT"===a.tagName){const e=a.getAttribute("autocomplete");if(["current-password","new-password","cc-number","cc-exp","cc-exp-month","cc-exp-year","cc-csc"].includes(e))return!0}let i=-1,c=-1;if(o){if(c=J(a,K(r,s)),c<0)return!0;i=J(a,K(t,n),c>=0?c:1/0)}else{if(i=J(a,K(t,n)),i<0)return!1;c=J(a,K(r,s),i>=0?i:1/0)}return i>=0?!(c>=0)||i<=c:!(c>=0)&&!!o}catch(e){}return!!o}function Z(t,n){const{doc:r,mirror:s,blockClass:a,blockSelector:i,unblockSelector:c,maskAllText:l,maskAttributeFn:u,maskTextClass:m,unmaskTextClass:d,maskTextSelector:y,unmaskTextSelector:b,inlineStylesheet:C,maskInputOptions:S={},maskTextFn:w,maskInputFn:N,dataURLOptions:E={},inlineImages:I,recordCanvas:L,keepIframeSrcFn:M,newlyAddedElement:O=!1}=n,_=function(e,t){if(!t.hasNode(e))return;const n=t.getId(e);return 1===n?void 0:n}(r,s);switch(t.nodeType){case t.DOCUMENT_NODE:return"CSS1Compat"!==t.compatMode?{type:e.Document,childNodes:[],compatMode:t.compatMode}:{type:e.Document,childNodes:[]};case t.DOCUMENT_TYPE_NODE:return{type:e.DocumentType,name:t.name,publicId:t.publicId,systemId:t.systemId,rootId:_};case t.ELEMENT_NODE:return function(t,n){const{doc:r,blockClass:s,blockSelector:a,unblockSelector:i,inlineStylesheet:c,maskInputOptions:l={},maskAttributeFn:u,maskInputFn:m,dataURLOptions:d={},inlineImages:y,recordCanvas:b,keepIframeSrcFn:C,newlyAddedElement:S=!1,rootId:w,maskAllText:N,maskTextClass:E,unmaskTextClass:I,maskTextSelector:L,unmaskTextSelector:M}=n,O=function(e,t,n,r){try{if(r&&e.matches(r))return!1;if("string"==typeof t){if(e.classList.contains(t))return!0}else for(let n=e.classList.length;n--;){const r=e.classList[n];if(t.test(r))return!0}if(n)return e.matches(n)}catch(e){}return!1}(t,s,a,i),_=function(e){if(e instanceof HTMLFormElement)return"form";const t=h(e.tagName);return A.test(t)?"div":t}(t);let R={};const $=t.attributes.length;for(let e=0;e<$;e++){const n=t.attributes[e];n.name&&!q(_,n.name,n.value)&&(R[n.name]=z(r,_,h(n.name),n.value,t,u))}if("link"===_&&c){const e=Array.from(r.styleSheets).find((e=>e.href===t.href));let n=null;e&&(n=o(e)),n&&(R.rel=null,R.href=null,R.crossorigin=null,R._cssText=W(n,e.href))}if("style"===_&&t.sheet&&!(t.innerText||t.textContent||"").trim().length){const e=o(t.sheet);e&&(R._cssText=W(e,H(r)))}if("input"===_||"textarea"===_||"select"===_||"option"===_){const e=t,n=T(e),r=x(e,g(_),n),s=e.checked;if("submit"!==n&&"button"!==n&&r){const t=Q(e,E,L,I,M,f({type:n,tagName:g(_),maskInputOptions:l}));R.value=p({isMasked:t,element:e,value:r,maskInputFn:m})}s&&(R.checked=s)}"option"===_&&(t.selected&&!l.select?R.selected=!0:delete R.selected);if("canvas"===_&&b)if("2d"===t.__context)k(t)||(R.rr_dataURL=t.toDataURL(d.type,d.quality));else if(!("__context"in t)){const e=t.toDataURL(d.type,d.quality),n=r.createElement("canvas");n.width=t.width,n.height=t.height;e!==n.toDataURL(d.type,d.quality)&&(R.rr_dataURL=e)}if("img"===_&&y){D||(D=r.createElement("canvas"),F=D.getContext("2d"));const e=t,n=e.currentSrc||e.getAttribute("src")||"<unknown-src>",s=e.crossOrigin,o=()=>{e.removeEventListener("load",o);try{D.width=e.naturalWidth,D.height=e.naturalHeight,F.drawImage(e,0,0),R.rr_dataURL=D.toDataURL(d.type,d.quality)}catch(t){if("anonymous"!==e.crossOrigin)return e.crossOrigin="anonymous",void(e.complete&&0!==e.naturalWidth?o():e.addEventListener("load",o));console.warn(`Cannot inline img src=${n}! Error: ${t}`)}"anonymous"===e.crossOrigin&&(s?R.crossOrigin=s:e.removeAttribute("crossorigin"))};e.complete&&0!==e.naturalWidth?o():e.addEventListener("load",o)}"audio"!==_&&"video"!==_||(R.rr_mediaState=t.paused?"paused":"played",R.rr_mediaCurrentTime=t.currentTime);S||(t.scrollLeft&&(R.rr_scrollLeft=t.scrollLeft),t.scrollTop&&(R.rr_scrollTop=t.scrollTop));if(O){const{width:e,height:n}=t.getBoundingClientRect();R={class:R.class,rr_width:`${e}px`,rr_height:`${n}px`}}"iframe"!==_||C(R.src)||(O||v(t)||(R.rr_src=R.src),delete R.src);let U;try{customElements.get(_)&&(U=!0)}catch(e){}return{type:e.Element,tagName:_,attributes:R,childNodes:[],isSVG:G(t)||void 0,needBlock:O,rootId:w,isCustom:U}}(t,{doc:r,blockClass:a,blockSelector:i,unblockSelector:c,inlineStylesheet:C,maskAttributeFn:u,maskInputOptions:S,maskInputFn:N,dataURLOptions:E,inlineImages:I,recordCanvas:L,keepIframeSrcFn:M,newlyAddedElement:O,rootId:_,maskAllText:l,maskTextClass:m,unmaskTextClass:d,maskTextSelector:y,unmaskTextSelector:b});case t.TEXT_NODE:return function(t,n){const{maskAllText:r,maskTextClass:s,unmaskTextClass:a,maskTextSelector:i,unmaskTextSelector:c,maskTextFn:l,maskInputOptions:u,maskInputFn:m,rootId:d}=n,h=t.parentNode&&t.parentNode.tagName;let g=t.textContent;const y="STYLE"===h||void 0,k="SCRIPT"===h||void 0,b="TEXTAREA"===h||void 0;if(y&&g){try{t.nextSibling||t.previousSibling||t.parentNode.sheet?.cssRules&&(g=o(t.parentNode.sheet))}catch(e){console.warn(`Cannot get CSS styles from text's parentNode. Error: ${e}`,t)}g=W(g,H(n.doc))}k&&(g="SCRIPT_PLACEHOLDER");const T=Q(t,s,i,a,c,r);y||k||b||!g||!T||(g=l?l(g,t.parentElement):g.replace(/[\S]/g,"*"));b&&g&&(u.textarea||T)&&(g=m?m(g,t.parentNode):g.replace(/[\S]/g,"*"));if("OPTION"===h&&g){g=p({isMasked:Q(t,s,i,a,c,f({type:null,tagName:h,maskInputOptions:u})),element:t,value:g,maskInputFn:m})}return{type:e.Text,textContent:g||"",isStyle:y,rootId:d}}(t,{doc:r,maskAllText:l,maskTextClass:m,unmaskTextClass:d,maskTextSelector:y,unmaskTextSelector:b,maskTextFn:w,maskInputOptions:S,maskInputFn:N,rootId:_});case t.CDATA_SECTION_NODE:return{type:e.CDATA,textContent:"",rootId:_};case t.COMMENT_NODE:return{type:e.Comment,textContent:t.textContent||"",rootId:_};default:return!1}}function ee(e){return null==e?"":e.toLowerCase()}function te(s,o){const{doc:a,mirror:i,blockClass:c,blockSelector:l,unblockSelector:u,maskAllText:m,maskTextClass:d,unmaskTextClass:f,maskTextSelector:p,unmaskTextSelector:h,skipChild:g=!1,inlineStylesheet:y=!0,maskInputOptions:k={},maskAttributeFn:b,maskTextFn:T,maskInputFn:x,slimDOMOptions:S,dataURLOptions:w={},inlineImages:N=!1,recordCanvas:L=!1,onSerialize:A,onIframeLoad:D,iframeLoadTimeout:F=5e3,onStylesheetLoad:_,stylesheetLoadTimeout:R=5e3,keepIframeSrcFn:$=(()=>!1),newlyAddedElement:U=!1}=o;let{preserveWhiteSpace:W=!0}=o;const P=Z(s,{doc:a,mirror:i,blockClass:c,blockSelector:l,maskAllText:m,unblockSelector:u,maskTextClass:d,unmaskTextClass:f,maskTextSelector:p,unmaskTextSelector:h,inlineStylesheet:y,maskInputOptions:k,maskAttributeFn:b,maskTextFn:T,maskInputFn:x,dataURLOptions:w,inlineImages:N,recordCanvas:L,keepIframeSrcFn:$,newlyAddedElement:U});if(!P)return console.warn(s,"not serialized"),null;let j;j=i.hasNode(s)?i.getId(s):!function(t,n){if(n.comment&&t.type===e.Comment)return!0;if(t.type===e.Element){if(n.script&&("script"===t.tagName||"link"===t.tagName&&("preload"===t.attributes.rel||"modulepreload"===t.attributes.rel)||"link"===t.tagName&&"prefetch"===t.attributes.rel&&"string"==typeof t.attributes.href&&"js"===C(t.attributes.href)))return!0;if(n.headFavicon&&("link"===t.tagName&&"shortcut icon"===t.attributes.rel||"meta"===t.tagName&&(ee(t.attributes.name).match(/^msapplication-tile(image|color)$/)||"application-name"===ee(t.attributes.name)||"icon"===ee(t.attributes.rel)||"apple-touch-icon"===ee(t.attributes.rel)||"shortcut icon"===ee(t.attributes.rel))))return!0;if("meta"===t.tagName){if(n.headMetaDescKeywords&&ee(t.attributes.name).match(/^description|keywords$/))return!0;if(n.headMetaSocial&&(ee(t.attributes.property).match(/^(og|twitter|fb):/)||ee(t.attributes.name).match(/^(og|twitter):/)||"pinterest"===ee(t.attributes.name)))return!0;if(n.headMetaRobots&&("robots"===ee(t.attributes.name)||"googlebot"===ee(t.attributes.name)||"bingbot"===ee(t.attributes.name)))return!0;if(n.headMetaHttpEquiv&&void 0!==t.attributes["http-equiv"])return!0;if(n.headMetaAuthorship&&("author"===ee(t.attributes.name)||"generator"===ee(t.attributes.name)||"framework"===ee(t.attributes.name)||"publisher"===ee(t.attributes.name)||"progid"===ee(t.attributes.name)||ee(t.attributes.property).match(/^article:/)||ee(t.attributes.property).match(/^product:/)))return!0;if(n.headMetaVerification&&("google-site-verification"===ee(t.attributes.name)||"yandex-verification"===ee(t.attributes.name)||"csrf-token"===ee(t.attributes.name)||"p:domain_verify"===ee(t.attributes.name)||"verify-v1"===ee(t.attributes.name)||"verification"===ee(t.attributes.name)||"shopify-checkout-api-token"===ee(t.attributes.name)))return!0}}return!1}(P,S)&&(W||P.type!==e.Text||P.isStyle||P.textContent.replace(/^\s+|\s+$/gm,"").length)?O():M;const B=Object.assign(P,{id:j});if(i.add(s,B),j===M)return null;A&&A(s);let V=!g;if(B.type===e.Element){V=V&&!B.needBlock,delete B.needBlock;const e=s.shadowRoot;e&&r(e)&&(B.isShadowHost=!0)}if((B.type===e.Document||B.type===e.Element)&&V){S.headWhitespace&&B.type===e.Element&&"head"===B.tagName&&(W=!1);const n={doc:a,mirror:i,blockClass:c,blockSelector:l,maskAllText:m,unblockSelector:u,maskTextClass:d,unmaskTextClass:f,maskTextSelector:p,unmaskTextSelector:h,skipChild:g,inlineStylesheet:y,maskInputOptions:k,maskAttributeFn:b,maskTextFn:T,maskInputFn:x,slimDOMOptions:S,dataURLOptions:w,inlineImages:N,recordCanvas:L,preserveWhiteSpace:W,onSerialize:A,onIframeLoad:D,iframeLoadTimeout:F,onStylesheetLoad:_,stylesheetLoadTimeout:R,keepIframeSrcFn:$};for(const e of Array.from(s.childNodes)){const t=te(e,n);t&&B.childNodes.push(t)}if(t(s)&&s.shadowRoot)for(const e of Array.from(s.shadowRoot.childNodes)){const t=te(e,n);t&&(r(s.shadowRoot)&&(t.isShadow=!0),B.childNodes.push(t))}}return s.parentNode&&n(s.parentNode)&&r(s.parentNode)&&(B.isShadow=!0),B.type===e.Element&&"iframe"===B.tagName&&function(e,t,n){const r=e.contentWindow;if(!r)return;let s,o=!1;try{s=r.document.readyState}catch(e){return}if("complete"!==s){const r=E((()=>{o||(t(),o=!0)}),n);return void e.addEventListener("load",(()=>{I(r),o=!0,t()}))}const a="about:blank";if(r.location.href!==a||e.src===a||""===e.src)return E(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}(s,(()=>{const e=v(s);if(e&&D){const t=te(e,{doc:e,mirror:i,blockClass:c,blockSelector:l,unblockSelector:u,maskAllText:m,maskTextClass:d,unmaskTextClass:f,maskTextSelector:p,unmaskTextSelector:h,skipChild:!1,inlineStylesheet:y,maskInputOptions:k,maskAttributeFn:b,maskTextFn:T,maskInputFn:x,slimDOMOptions:S,dataURLOptions:w,inlineImages:N,recordCanvas:L,preserveWhiteSpace:W,onSerialize:A,onIframeLoad:D,iframeLoadTimeout:F,onStylesheetLoad:_,stylesheetLoadTimeout:R,keepIframeSrcFn:$});t&&D(s,t)}}),F),B.type===e.Element&&"link"===B.tagName&&"string"==typeof B.attributes.rel&&("stylesheet"===B.attributes.rel||"preload"===B.attributes.rel&&"string"==typeof B.attributes.href&&"css"===C(B.attributes.href))&&function(e,t,n){let r,s=!1;try{r=e.sheet}catch(e){return}if(r)return;const o=E((()=>{s||(t(),s=!0)}),n);e.addEventListener("load",(()=>{I(o),s=!0,t()}))}(s,(()=>{if(_){const e=te(s,{doc:a,mirror:i,blockClass:c,blockSelector:l,unblockSelector:u,maskAllText:m,maskTextClass:d,unmaskTextClass:f,maskTextSelector:p,unmaskTextSelector:h,skipChild:!1,inlineStylesheet:y,maskInputOptions:k,maskAttributeFn:b,maskTextFn:T,maskInputFn:x,slimDOMOptions:S,dataURLOptions:w,inlineImages:N,recordCanvas:L,preserveWhiteSpace:W,onSerialize:A,onIframeLoad:D,iframeLoadTimeout:F,onStylesheetLoad:_,stylesheetLoadTimeout:R,keepIframeSrcFn:$});e&&_(s,e)}}),R),B}function ne(e,t){const{mirror:n=new m,blockClass:r="rr-block",blockSelector:s=null,unblockSelector:o=null,maskAllText:a=!1,maskTextClass:i="rr-mask",unmaskTextClass:c=null,maskTextSelector:l=null,unmaskTextSelector:u=null,inlineStylesheet:d=!0,inlineImages:f=!1,recordCanvas:p=!1,maskAllInputs:h=!1,maskAttributeFn:g,maskTextFn:y,maskInputFn:k,slimDOM:b=!1,dataURLOptions:T,preserveWhiteSpace:x,onSerialize:C,onIframeLoad:S,iframeLoadTimeout:w,onStylesheetLoad:N,stylesheetLoadTimeout:E,keepIframeSrcFn:I=(()=>!1)}=t||{};return te(e,{doc:e,mirror:n,blockClass:r,blockSelector:s,unblockSelector:o,maskAllText:a,maskTextClass:i,unmaskTextClass:c,maskTextSelector:l,unmaskTextSelector:u,skipChild:!1,inlineStylesheet:d,maskInputOptions:!0===h?{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}:!1===h?{}:h,maskAttributeFn:g,maskTextFn:y,maskInputFn:k,slimDOMOptions:!0===b||"all"===b?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:"all"===b,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:!1===b?{}:b,dataURLOptions:T,inlineImages:f,recordCanvas:p,preserveWhiteSpace:x,onSerialize:C,onIframeLoad:S,iframeLoadTimeout:w,onStylesheetLoad:N,stylesheetLoadTimeout:E,keepIframeSrcFn:I,newlyAddedElement:!1})}function re(t,n){!function t(r){n(r),r.type!==e.Document&&r.type!==e.Element||r.childNodes.forEach(t)}(t)}function se(){L=1}const oe=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g;function ae(e,t={}){let n=1,r=1;function s(e){const t=e.match(/\n/g);t&&(n+=t.length);const s=e.lastIndexOf("\n");r=-1===s?r+e.length:e.length-s}function o(){const e={line:n,column:r};return t=>(t.position=new a(e),f(),t)}class a{constructor(e){this.start=e,this.end={line:n,column:r},this.source=t.source}}a.prototype.content=e;const i=[];function c(s){const o=new Error(`${t.source||""}:${n}:${r}: ${s}`);if(o.reason=s,o.filename=t.source,o.line=n,o.column=r,o.source=e,!t.silent)throw o;i.push(o)}function l(){return d(/^{\s*/)}function u(){return d(/^}/)}function m(){let t;const n=[];for(f(),p(n);e.length&&"}"!==e.charAt(0)&&(t=w()||N());)t&&(n.push(t),p(n));return n}function d(t){const n=t.exec(e);if(!n)return;const r=n[0];return s(r),e=e.slice(r.length),n}function f(){d(/^\s*/)}function p(e=[]){let t;for(;t=h();)t&&e.push(t),t=h();return e}function h(){const t=o();if("/"!==e.charAt(0)||"*"!==e.charAt(1))return;let n=2;for(;""!==e.charAt(n)&&("*"!==e.charAt(n)||"/"!==e.charAt(n+1));)++n;if(n+=2,""===e.charAt(n-1))return c("End of comment missing");const a=e.slice(2,n-2);return r+=2,s(a),e=e.slice(n),r+=2,t({type:"comment",comment:a})}function g(){const e=d(/^([^{]+)/);if(!e)return;const t=ie(e[0]).replace(/\/\*([^*]|[\r\n]|(\*+([^*/]|[\r\n])))*\*\/+/g,"").replace(/"(?:\\"|[^"])*"|'(?:\\'|[^'])*'/g,(e=>e.replace(/,/g,""))).split(/\s*(?![^(]*\)),\s*/);if(t.length<=1)return t.map((e=>e.replace(/\u200C/g,",")));let n=0,r=0;const s=t.length,o=[];for(;n<s;){let e=(t[n].match(/\(/g)||[]).length-(t[n].match(/\)/g)||[]).length;if(e>=1){let a=!1;for(r=n+1;r<s;){const s=(t[r].match(/\(/g)||[]).length,i=(t[r].match(/\)/g)||[]).length-s;if(i===e){o.push(t.slice(n,r+1).join(",")),n=r+1,a=!0;break}r++,e-=i}if(a)continue;t.slice(n,s).forEach((e=>e&&o.push(e)));break}t[n]&&o.push(t[n]),n++}return o.map((e=>e.replace(/\u200C/g,",")))}function y(){const e=o(),t=d(/^(\*?[-#\/\*\\\w]+(\[[0-9a-z_-]+\])?)\s*/);if(!t)return;const n=ie(t[0]);if(!d(/^:\s*/))return c("property missing ':'");const r=d(/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^\)]*?\)|[^};])+)/),s=e({type:"declaration",property:n.replace(oe,""),value:r?ie(r[0]).replace(oe,""):""});return d(/^[;\s]*/),s}function k(){const e=[];if(!l())return c("missing '{'");let t;for(p(e);t=y();)!1!==t&&(e.push(t),p(e)),t=y();return u()?e:c("missing '}'")}function b(){let e;const t=[],n=o();for(;e=d(/^((\d+\.\d+|\.\d+|\d+)%?|[a-z]+)\s*/);)t.push(e[1]),d(/^,\s*/);if(t.length)return n({type:"keyframe",values:t,declarations:k()})}const T=S("import"),x=S("charset"),C=S("namespace");function S(e){const t=new RegExp("^@"+e+"\\s*((?:"+[/[^\\]"(?:\\"|[^"])*"/.source,/[^\\]'(?:\\'|[^'])*'/.source,"[^;]"].join("|")+")+);");return()=>{const n=o(),r=d(t);if(!r)return;const s={type:e};return s[e]=r[1].trim(),n(s)}}function w(){if("@"===e[0])return function(){const e=o();let t=d(/^@([-\w]+)?keyframes\s*/);if(!t)return;const n=t[1];if(t=d(/^([-\w]+)\s*/),!t)return c("@keyframes missing name");const r=t[1];if(!l())return c("@keyframes missing '{'");let s,a=p();for(;s=b();)a.push(s),a=a.concat(p());return u()?e({type:"keyframes",name:r,vendor:n,keyframes:a}):c("@keyframes missing '}'")}()||function(){const e=o(),t=d(/^@media *([^{]+)/);if(!t)return;const n=ie(t[1]);if(!l())return c("@media missing '{'");const r=p().concat(m());return u()?e({type:"media",media:n,rules:r}):c("@media missing '}'")}()||function(){const e=o(),t=d(/^@custom-media\s+(--[^\s]+)\s*([^{;]+);/);if(t)return e({type:"custom-media",name:ie(t[1]),media:ie(t[2])})}()||function(){const e=o(),t=d(/^@supports *([^{]+)/);if(!t)return;const n=ie(t[1]);if(!l())return c("@supports missing '{'");const r=p().concat(m());return u()?e({type:"supports",supports:n,rules:r}):c("@supports missing '}'")}()||T()||x()||C()||function(){const e=o(),t=d(/^@([-\w]+)?document *([^{]+)/);if(!t)return;const n=ie(t[1]),r=ie(t[2]);if(!l())return c("@document missing '{'");const s=p().concat(m());return u()?e({type:"document",document:r,vendor:n,rules:s}):c("@document missing '}'")}()||function(){const e=o();if(!d(/^@page */))return;const t=g()||[];if(!l())return c("@page missing '{'");let n,r=p();for(;n=y();)r.push(n),r=r.concat(p());return u()?e({type:"page",selectors:t,declarations:r}):c("@page missing '}'")}()||function(){const e=o();if(!d(/^@host\s*/))return;if(!l())return c("@host missing '{'");const t=p().concat(m());return u()?e({type:"host",rules:t}):c("@host missing '}'")}()||function(){const e=o();if(!d(/^@font-face\s*/))return;if(!l())return c("@font-face missing '{'");let t,n=p();for(;t=y();)n.push(t),n=n.concat(p());return u()?e({type:"font-face",declarations:n}):c("@font-face missing '}'")}()}function N(){const e=o(),t=g();return t?(p(),e({type:"rule",selectors:t,declarations:k()})):c("selector missing")}return ce(function(){const e=m();return{type:"stylesheet",stylesheet:{source:t.source,rules:e,parsingErrors:i}}}())}function ie(e){return e?e.replace(/^\s+|\s+$/g,""):""}function ce(e,t){const n=e&&"string"==typeof e.type,r=n?e:t;for(const t of Object.keys(e)){const n=e[t];Array.isArray(n)?n.forEach((e=>{ce(e,r)})):n&&"object"==typeof n&&ce(n,r)}return n&&Object.defineProperty(e,"parent",{configurable:!0,writable:!0,enumerable:!1,value:t||null}),e}const le={script:"noscript",altglyph:"altGlyph",altglyphdef:"altGlyphDef",altglyphitem:"altGlyphItem",animatecolor:"animateColor",animatemotion:"animateMotion",animatetransform:"animateTransform",clippath:"clipPath",feblend:"feBlend",fecolormatrix:"feColorMatrix",fecomponenttransfer:"feComponentTransfer",fecomposite:"feComposite",feconvolvematrix:"feConvolveMatrix",fediffuselighting:"feDiffuseLighting",fedisplacementmap:"feDisplacementMap",fedistantlight:"feDistantLight",fedropshadow:"feDropShadow",feflood:"feFlood",fefunca:"feFuncA",fefuncb:"feFuncB",fefuncg:"feFuncG",fefuncr:"feFuncR",fegaussianblur:"feGaussianBlur",feimage:"feImage",femerge:"feMerge",femergenode:"feMergeNode",femorphology:"feMorphology",feoffset:"feOffset",fepointlight:"fePointLight",fespecularlighting:"feSpecularLighting",fespotlight:"feSpotLight",fetile:"feTile",feturbulence:"feTurbulence",foreignobject:"foreignObject",glyphref:"glyphRef",lineargradient:"linearGradient",radialgradient:"radialGradient"};const ue=/([^\\]):hover/,me=new RegExp(ue.source,"g");function de(e,t){const n=t?.stylesWithHoverClass.get(e);if(n)return n;if(e.length>=1e6)return e;const r=ae(e,{silent:!0});if(!r.stylesheet)return e;const s=[];if(r.stylesheet.rules.forEach((e=>{"selectors"in e&&(e.selectors||[]).forEach((e=>{ue.test(e)&&s.push(e)}))})),0===s.length)return e;const o=new RegExp(s.filter(((e,t)=>s.indexOf(e)===t)).sort(((e,t)=>t.length-e.length)).map((e=>e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"))).join("|"),"g"),a=e.replace(o,(e=>{const t=e.replace(me,"$1.\\:hover");return`${e}, ${t}`}));return t?.stylesWithHoverClass.set(e,a),a}function fe(){return{stylesWithHoverClass:new Map}}function pe(t,n){const{doc:r,hackCss:s,cache:o}=n;switch(t.type){case e.Document:return r.implementation.createDocument(null,"",null);case e.DocumentType:return r.implementation.createDocumentType(t.name||"html",t.publicId,t.systemId);case e.Element:{const e=function(e){let t=le[e.tagName]?le[e.tagName]:e.tagName;return"link"===t&&e.attributes._cssText&&(t="style"),t}(t);let n;t.isSVG?n=r.createElementNS("http://www.w3.org/2000/svg",e):(t.isCustom&&r.defaultView?.customElements&&!r.defaultView.customElements.get(t.tagName)&&r.defaultView.customElements.define(t.tagName,class extends r.defaultView.HTMLElement{}),n=r.createElement(e));const a={};for(const i in t.attributes){if(!Object.prototype.hasOwnProperty.call(t.attributes,i))continue;let c=t.attributes[i];if("option"===e&&"selected"===i&&!1===c)continue;if(null===c)continue;if(!0===c&&(c=""),i.startsWith("rr_")){a[i]=c;continue}const l="textarea"===e&&"value"===i,u="style"===e&&"_cssText"===i;if(u&&s&&"string"==typeof c&&(c=de(c,o)),!l&&!u||"string"!=typeof c)try{if(t.isSVG&&"xlink:href"===i)n.setAttributeNS("http://www.w3.org/1999/xlink",i,c.toString());else if("onload"===i||"onclick"===i||"onmouse"===i.substring(0,7))n.setAttribute("_"+i,c.toString());else{if("meta"===e&&"Content-Security-Policy"===t.attributes["http-equiv"]&&"content"===i){n.setAttribute("csp-content",c.toString());continue}("link"!==e||"preload"!==t.attributes.rel&&"modulepreload"!==t.attributes.rel)&&("link"===e&&"prefetch"===t.attributes.rel&&"string"==typeof t.attributes.href&&"js"===C(t.attributes.href)||("img"===e&&t.attributes.srcset&&t.attributes.rr_dataURL?n.setAttribute("rrweb-original-srcset",t.attributes.srcset):n.setAttribute(i,c.toString())))}}catch(e){}else{const e=r.createTextNode(c);for(const e of Array.from(n.childNodes))e.nodeType===n.TEXT_NODE&&n.removeChild(e);n.appendChild(e)}}for(const s in a){const o=a[s];if("canvas"===e&&"rr_dataURL"===s){const e=r.createElement("img");e.onload=()=>{const t=n.getContext("2d");t&&t.drawImage(e,0,0,e.width,e.height)},e.src=o.toString(),n.RRNodeType&&(n.rr_dataURL=o.toString())}else if("img"===e&&"rr_dataURL"===s){const e=n;e.currentSrc.startsWith("data:")||(e.setAttribute("rrweb-original-src",t.attributes.src),e.src=o.toString())}if("rr_width"===s)n.style.setProperty("width",o.toString());else if("rr_height"===s)n.style.setProperty("height",o.toString());else if("rr_mediaCurrentTime"===s&&"number"==typeof o)n.currentTime=o;else if("rr_mediaState"===s)switch(o){case"played":n.play().catch((e=>console.warn("media playback error",e)));break;case"paused":n.pause()}}if(t.isShadowHost)if(n.shadowRoot)for(;n.shadowRoot.firstChild;)n.shadowRoot.removeChild(n.shadowRoot.firstChild);else n.attachShadow({mode:"open"});return n}case e.Text:return r.createTextNode(t.isStyle&&s?de(t.textContent,o):t.textContent);case e.CDATA:return r.createCDATASection(t.textContent);case e.Comment:return r.createComment(t.textContent);default:return null}}function he(n,r){const{doc:s,mirror:o,skipChild:a=!1,hackCss:i=!0,afterAppend:c,cache:l}=r;if(o.has(n.id)){const e=o.getNode(n.id);if(b(o.getMeta(e),n))return o.getNode(n.id)}let u=pe(n,{doc:s,hackCss:i,cache:l});if(!u)return null;if(n.rootId&&o.getNode(n.rootId)!==s&&o.replace(n.rootId,s),n.type===e.Document&&(s.close(),s.open(),"BackCompat"===n.compatMode&&n.childNodes&&n.childNodes[0].type!==e.DocumentType&&(n.childNodes[0].type===e.Element&&"xmlns"in n.childNodes[0].attributes&&"http://www.w3.org/1999/xhtml"===n.childNodes[0].attributes.xmlns?s.write('<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">'):s.write('<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "">')),u=s),o.add(u,n),(n.type===e.Document||n.type===e.Element)&&!a)for(const r of n.childNodes){const a=he(r,{doc:s,mirror:o,skipChild:!1,hackCss:i,afterAppend:c,cache:l});if(a){if(r.isShadow&&t(u)&&u.shadowRoot)u.shadowRoot.appendChild(a);else if(n.type===e.Document&&r.type==e.Element){const e=a;let t=null;e.childNodes.forEach((e=>{"BODY"===e.nodeName&&(t=e)})),t?(e.removeChild(t),u.appendChild(a),e.appendChild(t)):u.appendChild(a)}else u.appendChild(a);c&&c(a,r.id)}else console.warn("Failed to rebuild",r)}return u}function ge(t,n){const{doc:r,onVisit:s,hackCss:o=!0,afterAppend:a,cache:i,mirror:c=new m}=n,l=he(t,{doc:r,mirror:c,skipChild:!1,hackCss:o,afterAppend:a,cache:i});return function(e,t){for(const r of e.getIds())e.has(r)&&(n=e.getNode(r),t(n));var n}(c,(t=>{s&&s(t),function(t,n){const r=n.getMeta(t);if(r?.type!==e.Element)return;const s=t;for(const e in r.attributes){if(!Object.prototype.hasOwnProperty.call(r.attributes,e)||!e.startsWith("rr_"))continue;const t=r.attributes[e];"rr_scrollLeft"===e&&(s.scrollLeft=t),"rr_scrollTop"===e&&(s.scrollTop=t)}}(t,c)})),l}export{M as IGNORED_NODE,m as Mirror,e as NodeType,de as addHoverClass,he as buildNodeWithSN,X as classMatchesRegex,se as cleanupSnapshot,I as clearTimeout,fe as createCache,K as createMatchPredicate,d as createMirror,J as distanceToMatch,s as escapeImportStatement,C as extractFileExtension,a as fixAllCssProperty,c as fixSafariColons,O as genId,v as getIframeContentDocument,T as getInputType,x as getInputValue,q as ignoreAttribute,k as is2DCanvasBlank,l as isCSSImportRule,u as isCSSStyleRule,t as isElement,r as isNativeShadowDom,b as isNodeMetaEqual,n as isShadowRoot,p as maskInputValue,Q as needMaskingText,N as onRequestAnimationFrame,ge as rebuild,te as serializeNodeWithId,E as setTimeout,f as shouldMaskInput,ne as snapshot,i as stringifyRule,o as stringifyStylesheet,h as toLowerCase,g as toUpperCase,z as transformAttribute,re as visitSnapshot}; | ||
//# sourceMappingURL=rrweb-snapshot.min.js.map |
{ | ||
"name": "@sentry-internal/rrweb-snapshot", | ||
"version": "2.30.0", | ||
"version": "2.31.0", | ||
"description": "rrweb's component to take a snapshot of DOM, aka DOM serializer", | ||
@@ -5,0 +5,0 @@ "scripts": { |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
336840
7711