@highlight-run/rrweb 2.0.9 → 2.0.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/replay/rrweb-replay-unpack.js +1 -1
- package/dist/replay/rrweb-replay-unpack.min.js +1 -1
- package/dist/replay/rrweb-replay-unpack.min.js.map +1 -1
- package/dist/replay/rrweb-replay.js +1 -1
- package/dist/replay/rrweb-replay.min.js +1 -1
- package/dist/replay/rrweb-replay.min.js.map +1 -1
- package/dist/rrweb-all.js +1 -1
- package/dist/rrweb-all.min.js +1 -1
- package/dist/rrweb-all.min.js.map +1 -1
- package/dist/rrweb.js +1 -1
- package/dist/rrweb.min.js +1 -1
- package/dist/rrweb.min.js.map +1 -1
- package/es/rrweb/packages/rrdom/es/virtual-dom.js +10 -10
- package/lib/replay/rrweb-replay-unpack.js +10 -10
- package/lib/replay/rrweb-replay.js +10 -10
- package/lib/rrweb-all.js +10 -10
- package/lib/rrweb.js +10 -10
- package/package.json +2 -2
package/dist/rrweb-all.js
CHANGED
|
@@ -2,7 +2,7 @@ var rrweb=function(q){"use strict";var _;(function(e){e[e.Document=0]="Document"
|
|
|
2
2
|
`);n=C===-1?n+w.length:w.length-C}function i(){var w={line:r,column:n};return function(g){return g.position=new l(w),f(),g}}var l=function(){function w(g){this.start=g,this.end={line:r,column:n},this.source=t.source}return w}();l.prototype.content=e;var c=[];function a(w){var g=new Error(t.source+":"+r+":"+n+": "+w);if(g.reason=w,g.filename=t.source,g.line=r,g.column=n,g.source=e,t.silent)c.push(g);else throw g}function s(){var w=h();return{type:"stylesheet",stylesheet:{source:t.source,rules:w,parsingErrors:c}}}function u(){return m(/^{\s*/)}function d(){return m(/^}/)}function h(){var w,g=[];for(f(),v(g);e.length&&e.charAt(0)!=="}"&&(w=O()||$());)w!==!1&&(g.push(w),v(g));return g}function m(w){var g=w.exec(e);if(g){var C=g[0];return o(C),e=e.slice(C.length),g}}function f(){m(/^\s*/)}function v(w){w===void 0&&(w=[]);for(var g;g=S();)g!==!1&&w.push(g),g=S();return w}function S(){var w=i();if(!(e.charAt(0)!=="/"||e.charAt(1)!=="*")){for(var g=2;e.charAt(g)!==""&&(e.charAt(g)!=="*"||e.charAt(g+1)!=="/");)++g;if(g+=2,e.charAt(g-1)==="")return a("End of comment missing");var C=e.slice(2,g-2);return n+=2,o(C),e=e.slice(g),n+=2,w({type:"comment",comment:C})}}function p(){var w=m(/^([^{]+)/);if(w)return pe(w[0]).replace(/\/\*([^*]|[\r\n]|(\*+([^*/]|[\r\n])))*\*\/+/g,"").replace(/"(?:\\"|[^"])*"|'(?:\\'|[^'])*'/g,function(g){return g.replace(/,/g,"\u200C")}).split(/\s*(?![^(]*\)),\s*/).map(function(g){return g.replace(/\u200C/g,",")})}function y(){var w=i(),g=m(/^(\*?[-#\/\*\\\w]+(\[[0-9a-z_-]+\])?)\s*/);if(g){var C=pe(g[0]);if(!m(/^:\s*/))return a("property missing ':'");var E=m(/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^\)]*?\)|[^};])+)/),I=w({type:"declaration",property:C.replace(ar,""),value:E?pe(E[0]).replace(ar,""):""});return m(/^[;\s]*/),I}}function b(){var w=[];if(!u())return a("missing '{'");v(w);for(var g;g=y();)g!==!1&&(w.push(g),v(w)),g=y();return d()?w:a("missing '}'")}function N(){for(var w,g=[],C=i();w=m(/^((\d+\.\d+|\.\d+|\d+)%?|[a-z]+)\s*/);)g.push(w[1]),m(/^,\s*/);if(g.length)return C({type:"keyframe",values:g,declarations:b()})}function k(){var w=i(),g=m(/^@([-\w]+)?keyframes\s*/);if(g){var C=g[1];if(g=m(/^([-\w]+)\s*/),!g)return a("@keyframes missing name");var E=g[1];if(!u())return a("@keyframes missing '{'");for(var I,G=v();I=N();)G.push(I),G=G.concat(v());return d()?w({type:"keyframes",name:E,vendor:C,keyframes:G}):a("@keyframes missing '}'")}}function M(){var w=i(),g=m(/^@supports *([^{]+)/);if(g){var C=pe(g[1]);if(!u())return a("@supports missing '{'");var E=v().concat(h());return d()?w({type:"supports",supports:C,rules:E}):a("@supports missing '}'")}}function x(){var w=i(),g=m(/^@host\s*/);if(g){if(!u())return a("@host missing '{'");var C=v().concat(h());return d()?w({type:"host",rules:C}):a("@host missing '}'")}}function T(){var w=i(),g=m(/^@media *([^{]+)/);if(g){var C=pe(g[1]);if(!u())return a("@media missing '{'");var E=v().concat(h());return d()?w({type:"media",media:C,rules:E}):a("@media missing '}'")}}function D(){var w=i(),g=m(/^@custom-media\s+(--[^\s]+)\s*([^{;]+);/);if(g)return w({type:"custom-media",name:pe(g[1]),media:pe(g[2])})}function W(){var w=i(),g=m(/^@page */);if(g){var C=p()||[];if(!u())return a("@page missing '{'");for(var E=v(),I;I=y();)E.push(I),E=E.concat(v());return d()?w({type:"page",selectors:C,declarations:E}):a("@page missing '}'")}}function Y(){var w=i(),g=m(/^@([-\w]+)?document *([^{]+)/);if(g){var C=pe(g[1]),E=pe(g[2]);if(!u())return a("@document missing '{'");var I=v().concat(h());return d()?w({type:"document",document:E,vendor:C,rules:I}):a("@document missing '}'")}}function j(){var w=i(),g=m(/^@font-face\s*/);if(g){if(!u())return a("@font-face missing '{'");for(var C=v(),E;E=y();)C.push(E),C=C.concat(v());return d()?w({type:"font-face",declarations:C}):a("@font-face missing '}'")}}var H=P("import"),A=P("charset"),U=P("namespace");function P(w){var g=new RegExp("^@"+w+"\\s*([^;]+);");return function(){var C=i(),E=m(g);if(E){var I={type:w};return I[w]=E[1].trim(),C(I)}}}function O(){if(e[0]==="@")return k()||T()||D()||M()||H()||A()||U()||Y()||W()||x()||j()}function $(){var w=i(),g=p();return g?(v(),w({type:"rule",selectors:g,declarations:b()})):a("selector missing")}return St(s())}function pe(e){return e?e.replace(/^\s+|\s+$/g,""):""}function St(e,t){for(var r=e&&typeof e.type=="string",n=r?e:t,o=0,i=Object.keys(e);o<i.length;o++){var l=i[o],c=e[l];Array.isArray(c)?c.forEach(function(a){St(a,n)}):c&&typeof c=="object"&&St(c,n)}return r&&Object.defineProperty(e,"parent",{configurable:!0,writable:!0,enumerable:!1,value:t||null}),e}var lr={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"};function vo(e){var t=lr[e.tagName]?lr[e.tagName]:e.tagName;return t==="link"&&e.attributes._cssText&&(t="style"),t}function go(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}var cr=/([^\\]):hover/,yo=new RegExp(cr.source,"g");function ur(e,t){var r;if(!(!((r=window?.HIG_CONFIGURATION)===null||r===void 0)&&r.enableOnHoverClass))return e;var n=t?.stylesWithHoverClass.get(e);if(n)return n;var o=fo(e,{silent:!0});if(!o.stylesheet)return e;var i=[];if(o.stylesheet.rules.forEach(function(a){"selectors"in a&&(a.selectors||[]).forEach(function(s){cr.test(s)&&i.push(s)})}),i.length===0)return e;var l=new RegExp(i.filter(function(a,s){return i.indexOf(a)===s}).sort(function(a,s){return s.length-a.length}).map(function(a){return go(a)}).join("|"),"g"),c=e.replace(l,function(a){var s=a.replace(yo,"$1.\\:hover");return a+", "+s});return t?.stylesWithHoverClass.set(e,c),c}function dr(){var e=new Map;return{stylesWithHoverClass:e}}function bo(e,t){var r=t.doc,n=t.hackCss,o=t.cache;switch(e.type){case _.Document:return r.implementation.createDocument(null,"",null);case _.DocumentType:return r.implementation.createDocumentType(e.name||"html",e.publicId,e.systemId);case _.Element:var i=vo(e),l;e.isSVG?l=r.createElementNS("http://www.w3.org/2000/svg",i):l=r.createElement(i);var c=function(d){if(!e.attributes.hasOwnProperty(d))return"continue";var h=e.attributes[d];if(i==="option"&&d==="selected"&&h===!1)return"continue";if(h=typeof h=="boolean"||typeof h=="number"?"":h,d.startsWith("rr_")){if(i==="canvas"&&d==="rr_dataURL"){var m=document.createElement("img");m.src=h,m.onload=function(){var D=l.getContext("2d");D&&D.drawImage(m,0,0,m.width,m.height)}}else if(i==="img"&&d==="rr_dataURL"){var f=l;f.currentSrc.startsWith("data:")||(f.setAttribute("rrweb-original-src",e.attributes.src),f.src=h,f.setAttribute("rrweb-inline-src",h))}if(d==="rr_width")l.style.width=h;else if(d==="rr_height")l.style.height=h;else if(d==="rr_mediaCurrentTime")l.currentTime=e.attributes.rr_mediaCurrentTime;else if(d==="rr_mediaState")switch(h){case"played":l.play().catch(function(D){return console.warn("media playback error",D)});break;case"paused":l.pause();break}}else{var v=i==="textarea"&&d==="value",S=i==="style"&&d==="_cssText";if(S&&n&&(h=ur(h,o),typeof h=="string")){for(var p=/url\(\"https:\/\/\S*(.eot|.woff2|.ttf|.woff)\S*\"\)/gm,y=void 0,b=[],N="https://replay-cors-proxy.highlightrun.workers.dev";(y=p.exec(h))!==null;)y.index===p.lastIndex&&p.lastIndex++,y.forEach(function(D,W){if(W===0){var Y=D.slice(5,D.length-2);b.push({originalUrl:Y,proxyUrl:Y.replace(Y,N+"?url="+Y)})}});b.forEach(function(D){h=h.replace(D.originalUrl,D.proxyUrl)})}if(v||S){for(var k=r.createTextNode(h),M=0,x=Array.from(l.childNodes);M<x.length;M++){var T=x[M];T.nodeType===l.TEXT_NODE&&l.removeChild(T)}return l.appendChild(k),"continue"}try{if(e.isSVG&&d==="xlink:href")l.setAttributeNS("http://www.w3.org/1999/xlink",d,h);else if(d==="onload"||d==="onclick"||d.substring(0,7)==="onmouse")l.setAttribute("_"+d,h);else{if(i==="meta"&&e.attributes["http-equiv"]==="Content-Security-Policy"&&d==="content")return l.setAttribute("csp-content",h),"continue";i==="link"&&e.attributes.rel==="preload"&&e.attributes.as==="script"||i==="link"&&e.attributes.rel==="prefetch"&&typeof e.attributes.href=="string"&&e.attributes.href.endsWith(".js")||(i==="img"&&e.attributes.srcset&&e.attributes.rr_dataURL?l.setAttribute("rrweb-original-srcset",e.attributes.srcset):l.setAttribute(d,h))}}catch{}}};for(var a in e.attributes)c(a);if(i==="img"){var s=l;if(!s.currentSrc.startsWith("data:")){var u=s.getAttribute("rrweb-inline-src");u!=null&&u.startsWith("data:")&&(s.src=u)}}if(e.isShadowHost)if(!l.shadowRoot)l.attachShadow({mode:"open"});else for(;l.shadowRoot.firstChild;)l.shadowRoot.removeChild(l.shadowRoot.firstChild);return l;case _.Text:return r.createTextNode(e.isStyle&&n?ur(e.textContent,o):e.textContent);case _.CDATA:return r.createCDATASection(e.textContent);case _.Comment:return r.createComment(e.textContent);default:return null}}function ot(e,t){var r=t.doc,n=t.mirror,o=t.skipChild,i=o===void 0?!1:o,l=t.hackCss,c=l===void 0?!0:l,a=t.afterAppend,s=t.cache,u=bo(e,{doc:r,hackCss:c,cache:s});if(!u)return null;if(e.rootId&&console.assert(n.getNode(e.rootId)===r,"Target document should have the same root id."),e.type===_.Document&&(r.close(),r.open(),e.compatMode==="BackCompat"&&e.childNodes&&e.childNodes[0].type!==_.DocumentType&&(e.childNodes[0].type===_.Element&&"xmlns"in e.childNodes[0].attributes&&e.childNodes[0].attributes.xmlns==="http://www.w3.org/1999/xhtml"?r.write('<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">'):r.write('<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "">')),u=r),n.add(u,e),(e.type===_.Document||e.type===_.Element)&&!i)for(var d=0,h=e.childNodes;d<h.length;d++){var m=h[d],f=ot(m,{doc:r,mirror:n,skipChild:!1,hackCss:c,afterAppend:a,cache:s});if(!f){console.warn("Failed to rebuild",m);continue}m.isShadow&&er(u)&&u.shadowRoot?u.shadowRoot.appendChild(f):u.appendChild(f),a&&a(f)}return u}function So(e,t){function r(l){t(l)}for(var n=0,o=e.getIds();n<o.length;n++){var i=o[n];e.has(i)&&r(e.getNode(i))}}function wo(e,t){var r=t.getMeta(e);if(r?.type===_.Element){var n=e;for(var o in r.attributes)if(r.attributes.hasOwnProperty(o)&&o.startsWith("rr_")){var i=r.attributes[o];o==="rr_scrollLeft"&&(n.scrollLeft=i),o==="rr_scrollTop"&&(n.scrollTop=i)}}}function No(e,t){var r=t.doc,n=t.onVisit,o=t.hackCss,i=o===void 0?!0:o,l=t.afterAppend,c=t.cache,a=t.mirror,s=a===void 0?new vt:a,u=ot(e,{doc:r,mirror:s,skipChild:!1,hackCss:i,afterAppend:l,cache:c});return So(s,function(d){n&&n(d),wo(d,s)}),u}function ie(e,t,r=document){const n={capture:!0,passive:!0};return r.addEventListener(e,t,n),()=>r.removeEventListener(e,t,n)}const xe=`Please stop import mirror directly. Instead of that,\r
|
|
3
3
|
now you can use replayer.getMirror() to access the mirror instance of a replayer,\r
|
|
4
4
|
or you can use record.mirror to access the mirror instance during recording.`;q.mirror={map:{},getId(){return console.error(xe),-1},getNode(){return console.error(xe),null},removeNodeFromMap(){console.error(xe)},has(){return console.error(xe),!1},reset(){console.error(xe)}},typeof window<"u"&&window.Proxy&&window.Reflect&&(q.mirror=new Proxy(q.mirror,{get(e,t,r){return t==="map"&&console.error(xe),Reflect.get(e,t,r)}}));function Oe(e,t,r={}){let n=null,o=0;return function(i){const l=Date.now();!o&&r.leading===!1&&(o=l);const c=t-(l-o),a=this,s=arguments;c<=0||c>t?(n&&(clearTimeout(n),n=null),o=l,e.apply(a,s)):!n&&r.trailing!==!1&&(n=setTimeout(()=>{o=r.leading===!1?0:Date.now(),n=null,e.apply(a,s)},c))}}function Ge(e,t,r,n,o=window){const i=o.Object.getOwnPropertyDescriptor(e,t);return o.Object.defineProperty(e,t,n?r:{set(l){setTimeout(()=>{r.set.call(this,l)},0),i&&i.set&&i.set.call(this,l)}}),()=>Ge(e,t,i||{},!0)}function be(e,t,r){try{if(!(t in e))return()=>{};const n=e[t],o=r(n);return typeof o=="function"&&(o.prototype=o.prototype||{},Object.defineProperties(o,{__rrweb_original__:{enumerable:!1,value:n}})),e[t]=o,()=>{e[t]=n}}catch{return()=>{}}}function wt(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function Nt(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}const hr=e=>{try{if(e instanceof HTMLElement)return e.tagName==="CANVAS"}catch{return!1}return!1};function se(e,t,r){if(!e)return!1;const n=e.nodeType===e.ELEMENT_NODE?e:e.parentElement;if(!n)return!1;if(typeof t=="string"){if(n.classList.contains(t)||r&&n.closest("."+t)!==null)return!0}else if(nt(n,t,r))return!0;return!1}function mr(e,t){return t.getId(e)!==-1}function it(e,t){return t.getId(e)===Ue}function Tt(e,t){if(Ve(e))return!1;const r=t.getId(e);return t.has(r)?e.parentNode&&e.parentNode.nodeType===e.DOCUMENT_NODE?!1:e.parentNode?Tt(e.parentNode,t):!0:!0}function Et(e){return Boolean(e.changedTouches)}function Ct(e=window){"NodeList"in e&&!e.NodeList.prototype.forEach&&(e.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in e&&!e.DOMTokenList.prototype.forEach&&(e.DOMTokenList.prototype.forEach=Array.prototype.forEach),Node.prototype.contains||(Node.prototype.contains=function(t){if(!(0 in arguments))throw new TypeError("1 argument is required");do if(this===t)return!0;while(t=t&&t.parentNode);return!1})}function pr(e){const t={},r=(o,i)=>{const l={value:o,parent:i,children:[]};return t[o.node.id]=l,l},n=[];for(const o of e){const{nextId:i,parentId:l}=o;if(i&&i in t){const c=t[i];if(c.parent){const a=c.parent.children.indexOf(c);c.parent.children.splice(a,0,r(o,c.parent))}else{const a=n.indexOf(c);n.splice(a,0,r(o,null))}continue}if(l in t){const c=t[l];c.children.push(r(o,c));continue}n.push(r(o,null))}return n}function It(e,t){t(e.value);for(let r=e.children.length-1;r>=0;r--)It(e.children[r],t)}function Re(e,t){return Boolean(e.nodeName==="IFRAME"&&t.getMeta(e))}function Mt(e,t){return Boolean(e.nodeName==="LINK"&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&e.getAttribute("rel")==="stylesheet"&&t.getMeta(e))}function kt(e,t){var r,n;const o=(n=(r=e.ownerDocument)==null?void 0:r.defaultView)==null?void 0:n.frameElement;if(!o||o===t)return{x:0,y:0,relativeScale:1,absoluteScale:1};const i=o.getBoundingClientRect(),l=kt(o,t),c=i.height/o.clientHeight;return{x:i.x*l.relativeScale+l.x,y:i.y*l.relativeScale+l.y,relativeScale:c,absoluteScale:l.absoluteScale*c}}function ze(e){return Boolean(e?.shadowRoot)}function De(e,t){const r=e[t[0]];return t.length===1?r:De(r.cssRules[t[1]].cssRules,t.slice(2))}function xt(e){const t=[...e],r=t.pop();return{positions:t,index:r}}function fr(e){const t=new Set,r=[];for(let n=e.length;n--;){const o=e[n];t.has(o.id)||(r.push(o),t.add(o.id))}return r}var To=Object.freeze({__proto__:null,on:ie,get _mirror(){return q.mirror},throttle:Oe,hookSetter:Ge,patch:be,getWindowHeight:wt,getWindowWidth:Nt,isCanvasNode:hr,isBlocked:se,isSerialized:mr,isIgnored:it,isAncestorRemoved:Tt,isTouchEvent:Et,polyfill:Ct,queueToResolveTrees:pr,iterateResolveTree:It,isSerializedIframe:Re,isSerializedStylesheet:Mt,getBaseDimension:kt,hasShadowRoot:ze,getNestedRule:De,getPositionsAndIndex:xt,uniqueTextMutations:fr}),R=(e=>(e[e.DomContentLoaded=0]="DomContentLoaded",e[e.Load=1]="Load",e[e.FullSnapshot=2]="FullSnapshot",e[e.IncrementalSnapshot=3]="IncrementalSnapshot",e[e.Meta=4]="Meta",e[e.Custom=5]="Custom",e[e.Plugin=6]="Plugin",e))(R||{}),L=(e=>(e[e.Mutation=0]="Mutation",e[e.MouseMove=1]="MouseMove",e[e.MouseInteraction=2]="MouseInteraction",e[e.Scroll=3]="Scroll",e[e.ViewportResize=4]="ViewportResize",e[e.Input=5]="Input",e[e.TouchMove=6]="TouchMove",e[e.MediaInteraction=7]="MediaInteraction",e[e.StyleSheetRule=8]="StyleSheetRule",e[e.CanvasMutation=9]="CanvasMutation",e[e.Font=10]="Font",e[e.Log=11]="Log",e[e.Drag=12]="Drag",e[e.StyleDeclaration=13]="StyleDeclaration",e))(L||{}),ee=(e=>(e[e.MouseUp=0]="MouseUp",e[e.MouseDown=1]="MouseDown",e[e.Click=2]="Click",e[e.ContextMenu=3]="ContextMenu",e[e.DblClick=4]="DblClick",e[e.Focus=5]="Focus",e[e.Blur=6]="Blur",e[e.TouchStart=7]="TouchStart",e[e.TouchMove_Departed=8]="TouchMove_Departed",e[e.TouchEnd=9]="TouchEnd",e[e.TouchCancel=10]="TouchCancel",e))(ee||{}),fe=(e=>(e[e["2D"]=0]="2D",e[e.WebGL=1]="WebGL",e[e.WebGL2=2]="WebGL2",e))(fe||{}),Te=(e=>(e[e.Play=0]="Play",e[e.Pause=1]="Pause",e[e.Seeked=2]="Seeked",e[e.VolumeChange=3]="VolumeChange",e))(Te||{}),B=(e=>(e.Start="start",e.Pause="pause",e.Resume="resume",e.Resize="resize",e.Finish="finish",e.FullsnapshotRebuilded="fullsnapshot-rebuilded",e.LoadStylesheetStart="load-stylesheet-start",e.LoadStylesheetEnd="load-stylesheet-end",e.SkipStart="skip-start",e.SkipEnd="skip-end",e.MouseInteraction="mouse-interaction",e.EventCast="event-cast",e.CustomEvent="custom-event",e.Flush="flush",e.StateChange="state-change",e.PlayBack="play-back",e))(B||{});function vr(e){return"__ln"in e}class Eo{constructor(){this.length=0,this.head=null}get(t){if(t>=this.length)throw new Error("Position outside of list range");let r=this.head;for(let n=0;n<t;n++)r=r?.next||null;return r}addNode(t){const r={value:t,previous:null,next:null};if(t.__ln=r,t.previousSibling&&vr(t.previousSibling)){const n=t.previousSibling.__ln.next;r.next=n,r.previous=t.previousSibling.__ln,t.previousSibling.__ln.next=r,n&&(n.previous=r)}else if(t.nextSibling&&vr(t.nextSibling)&&t.nextSibling.__ln.previous){const n=t.nextSibling.__ln.previous;r.previous=n,r.next=t.nextSibling.__ln,t.nextSibling.__ln.previous=r,n&&(n.next=r)}else this.head&&(this.head.previous=r),r.next=this.head,this.head=r;this.length++}removeNode(t){const r=t.__ln;!this.head||(r.previous?(r.previous.next=r.next,r.next&&(r.next.previous=r.previous)):(this.head=r.next,this.head&&(this.head.previous=null)),t.__ln&&delete t.__ln,this.length--)}}const gr=(e,t)=>`${e}@${t}`;class Co{constructor(){this.frozen=!1,this.locked=!1,this.texts=[],this.attributes=[],this.removes=[],this.mapRemoves=[],this.movedMap={},this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.processMutations=t=>{t.forEach(this.processMutation),this.emit()},this.emit=()=>{if(this.frozen||this.locked)return;const t=[],r=new Eo,n=c=>{let a=c,s=Ue;for(;s===Ue;)a=a&&a.nextSibling,s=a&&this.mirror.getId(a);return s},o=c=>{var a,s,u,d,h;const m=c.getRootNode?(a=c.getRootNode())==null?void 0:a.host:null;let f=m;for(;(u=(s=f?.getRootNode)==null?void 0:s.call(f))!=null&&u.host;)f=((h=(d=f?.getRootNode)==null?void 0:d.call(f))==null?void 0:h.host)||null;const v=!this.doc.contains(c)&&(!f||!this.doc.contains(f));if(!c.parentNode||v)return;const S=Ve(c.parentNode)?this.mirror.getId(m):this.mirror.getId(c.parentNode),p=n(c);if(S===-1||p===-1)return r.addNode(c);const y=ke(c,{doc:this.doc,mirror:this.mirror,blockClass:this.blockClass,blockSelector:this.blockSelector,maskTextClass:this.maskTextClass,maskTextSelector:this.maskTextSelector,skipChild:!0,inlineStylesheet:this.inlineStylesheet,maskInputOptions:this.maskInputOptions,maskTextFn:this.maskTextFn,maskInputFn:this.maskInputFn,slimDOMOptions:this.slimDOMOptions,recordCanvas:this.recordCanvas,inlineImages:this.inlineImages,enableStrictPrivacy:this.enableStrictPrivacy,onSerialize:b=>{Re(b,this.mirror)&&this.iframeManager.addIframe(b),Mt(b,this.mirror)&&this.stylesheetManager.addStylesheet(b),ze(c)&&this.shadowDomManager.addShadowRoot(c.shadowRoot,document)},onIframeLoad:(b,N)=>{this.iframeManager.attachIframe(b,N,this.mirror),this.shadowDomManager.observeAttachShadow(b)},onStylesheetLoad:(b,N)=>{this.stylesheetManager.attachStylesheet(b,N,this.mirror)},newlyAddedElement:!0});y&&t.push({parentId:S,nextId:p,node:y})};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(const c of Array.from(this.movedSet.values()))yr(this.removes,c,this.mirror)&&!this.movedSet.has(c.parentNode)||o(c);for(const c of Array.from(this.addedSet.values()))!Sr(this.droppedSet,c)&&!yr(this.removes,c,this.mirror)||Sr(this.movedSet,c)?o(c):this.droppedSet.add(c);let i=null;for(;r.length;){let c=null;if(i){const a=this.mirror.getId(i.value.parentNode),s=n(i.value);a!==-1&&s!==-1&&(c=i)}if(!c)for(let a=r.length-1;a>=0;a--){const s=r.get(a);if(s){const u=this.mirror.getId(s.value.parentNode),d=n(s.value);if(u!==-1&&d!==-1){c=s;break}}}if(!c){for(;r.head;)r.removeNode(r.head.value);break}i=c.previous,r.removeNode(c.value),o(c.value)}const l={texts:this.texts.map(c=>{let a=c.value;return this.enableStrictPrivacy&&a&&(a=nr(a)),{id:this.mirror.getId(c.node),value:a}}).filter(c=>this.mirror.has(c.id)),attributes:this.attributes.map(c=>({id:this.mirror.getId(c.node),attributes:c.attributes})).filter(c=>this.mirror.has(c.id)),removes:this.removes,adds:t};!l.texts.length&&!l.attributes.length&&!l.removes.length&&!l.adds.length||(this.texts=[],this.attributes=[],this.removes=[],this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.movedMap={},this.mutationCb(l))},this.processMutation=t=>{if(!it(t.target,this.mirror))switch(t.type){case"characterData":{const r=t.target.textContent;!se(t.target,this.blockClass,!1)&&r!==t.oldValue&&this.texts.push({value:sr(t.target,this.maskTextClass,this.maskTextSelector)&&r?this.maskTextFn?this.maskTextFn(r):r.replace(/[\S]/g,"*"):r,node:t.target});break}case"attributes":{const r=t.target;let n=t.target.getAttribute(t.attributeName);if(t.attributeName==="value"&&(n=gt({maskInputOptions:this.maskInputOptions,tagName:t.target.tagName,type:t.target.getAttribute("type"),value:n,maskInputFn:this.maskInputFn})),se(t.target,this.blockClass,!1)||n===t.oldValue)return;let o=this.attributes.find(i=>i.node===t.target);if(o||(o={node:t.target,attributes:{}},this.attributes.push(o)),t.attributeName==="style"){const i=this.doc.createElement("span");t.oldValue&&i.setAttribute("style",t.oldValue),(o.attributes.style===void 0||o.attributes.style===null)&&(o.attributes.style={});const l=o.attributes.style;for(const c of Array.from(r.style)){const a=r.style.getPropertyValue(c),s=r.style.getPropertyPriority(c);(a!==i.style.getPropertyValue(c)||s!==i.style.getPropertyPriority(c))&&(s===""?l[c]=a:l[c]=[a,s])}for(const c of Array.from(i.style))r.style.getPropertyValue(c)===""&&(l[c]=!1)}else{if(t.target.tagName==="INPUT"){const i=t.target;if(i.type==="password"){o.attributes.value="*".repeat(i.value.length);break}}o.attributes[t.attributeName]=ir(this.doc,t.target.tagName,t.attributeName,n)}break}case"childList":{if(se(t.target,this.blockClass,!0))return;t.addedNodes.forEach(r=>this.genAdds(r,t.target)),t.removedNodes.forEach(r=>{const n=this.mirror.getId(r),o=Ve(t.target)?this.mirror.getId(t.target.host):this.mirror.getId(t.target);se(t.target,this.blockClass,!1)||it(r,this.mirror)||!mr(r,this.mirror)||(this.addedSet.has(r)?(Ot(this.addedSet,r),this.droppedSet.add(r)):this.addedSet.has(t.target)&&n===-1||Tt(t.target,this.mirror)||(this.movedSet.has(r)&&this.movedMap[gr(n,o)]?Ot(this.movedSet,r):this.removes.push({parentId:o,id:n,isShadow:Ve(t.target)?!0:void 0})),this.mapRemoves.push(r))});break}}},this.genAdds=(t,r)=>{if(this.mirror.hasNode(t)){if(it(t,this.mirror))return;this.movedSet.add(t);let n=null;r&&this.mirror.hasNode(r)&&(n=this.mirror.getId(r)),n&&n!==-1&&(this.movedMap[gr(this.mirror.getId(t),n)]=!0)}else this.addedSet.add(t),this.droppedSet.delete(t);se(t,this.blockClass,!1)||t.childNodes.forEach(n=>this.genAdds(n))}}init(t){["mutationCb","blockClass","blockSelector","maskTextClass","maskTextSelector","inlineStylesheet","maskInputOptions","maskTextFn","maskInputFn","recordCanvas","inlineImages","slimDOMOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","enableStrictPrivacy"].forEach(r=>{this[r]=t[r]})}freeze(){this.frozen=!0,this.canvasManager.freeze()}unfreeze(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()}isFrozen(){return this.frozen}lock(){this.locked=!0,this.canvasManager.lock()}unlock(){this.locked=!1,this.canvasManager.unlock(),this.emit()}reset(){this.shadowDomManager.reset(),this.canvasManager.reset()}}function Ot(e,t){e.delete(t),t.childNodes.forEach(r=>Ot(e,r))}function yr(e,t,r){return e.length===0?!1:br(e,t,r)}function br(e,t,r){const{parentNode:n}=t;if(!n)return!1;const o=r.getId(n);return e.some(i=>i.id===o)?!0:br(e,n,r)}function Sr(e,t){return e.size===0?!1:wr(e,t)}function wr(e,t){const{parentNode:r}=t;return r?e.has(r)?!0:wr(e,r):!1}var Io=Object.defineProperty,Mo=Object.defineProperties,ko=Object.getOwnPropertyDescriptors,Nr=Object.getOwnPropertySymbols,xo=Object.prototype.hasOwnProperty,Oo=Object.prototype.propertyIsEnumerable,Tr=(e,t,r)=>t in e?Io(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Er=(e,t)=>{for(var r in t||(t={}))xo.call(t,r)&&Tr(e,r,t[r]);if(Nr)for(var r of Nr(t))Oo.call(t,r)&&Tr(e,r,t[r]);return e},Ro=(e,t)=>Mo(e,ko(t));const Ee=[],Cr=typeof CSSGroupingRule<"u",Ir=typeof CSSMediaRule<"u",Mr=typeof CSSSupportsRule<"u",kr=typeof CSSConditionRule<"u";function Be(e){try{if("composedPath"in e){const t=e.composedPath();if(t.length)return t[0]}else if("path"in e&&e.path.length)return e.path[0];return e.target}catch{return e.target}}function xr(e,t){var r,n;const o=new Co;Ee.push(o),o.init(e);let i=window.MutationObserver||window.__rrMutationObserver;const l=(n=(r=window?.Zone)==null?void 0:r.__symbol__)==null?void 0:n.call(r,"MutationObserver");l&&window[l]&&(i=window[l]);const c=new i(o.processMutations.bind(o));return c.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),c}function Do({mousemoveCb:e,sampling:t,doc:r,mirror:n}){if(t.mousemove===!1)return()=>{};const o=typeof t.mousemove=="number"?t.mousemove:50,i=typeof t.mousemoveCallback=="number"?t.mousemoveCallback:500;let l=[],c;const a=Oe(d=>{const h=Date.now()-c;e(l.map(m=>(m.timeOffset-=h,m)),d),l=[],c=null},i),s=Oe(d=>{const h=Be(d),{clientX:m,clientY:f}=Et(d)?d.changedTouches[0]:d;c||(c=Date.now()),l.push({x:m,y:f,id:n.getId(h),timeOffset:Date.now()-c}),a(typeof DragEvent<"u"&&d instanceof DragEvent?L.Drag:d instanceof MouseEvent?L.MouseMove:L.TouchMove)},o,{trailing:!1}),u=[ie("mousemove",s,r),ie("touchmove",s,r),ie("drag",s,r)];return()=>{u.forEach(d=>d())}}function Lo({mouseInteractionCb:e,doc:t,mirror:r,blockClass:n,sampling:o}){if(o.mouseInteraction===!1)return()=>{};const i=o.mouseInteraction===!0||o.mouseInteraction===void 0?{}:o.mouseInteraction,l=[],c=a=>s=>{const u=Be(s);if(se(u,n,!0)||hr(u))return;const d=Et(s)?s.changedTouches[0]:s;if(!d)return;const h=r.getId(u),{clientX:m,clientY:f}=d;e({type:ee[a],id:h,x:m,y:f})};return Object.keys(ee).filter(a=>Number.isNaN(Number(a))&&!a.endsWith("_Departed")&&i[a]!==!1).forEach(a=>{const s=a.toLowerCase(),u=c(a);l.push(ie(s,u,t))}),()=>{l.forEach(a=>a())}}function Or({scrollCb:e,doc:t,mirror:r,blockClass:n,sampling:o}){const i=Oe(l=>{const c=Be(l);if(!c||se(c,n,!0))return;const a=r.getId(c);if(c===t){const s=t.scrollingElement||t.documentElement;e({id:a,x:s.scrollLeft,y:s.scrollTop})}else e({id:a,x:c.scrollLeft,y:c.scrollTop})},o.scroll||100);return ie("scroll",i,t)}function Ao({viewportResizeCb:e}){let t=-1,r=-1;const n=Oe(()=>{const o=wt(),i=Nt();(t!==o||r!==i)&&(e({width:Number(i),height:Number(o)}),t=o,r=i)},200);return ie("resize",n,window)}function Rr(e,t){const r=Er({},e);return t||delete r.userTriggered,r}const Po=["INPUT","TEXTAREA","SELECT"],Dr=new WeakMap;function Fo({inputCb:e,doc:t,mirror:r,blockClass:n,ignoreClass:o,maskInputOptions:i,maskInputFn:l,sampling:c,userTriggeredOnInput:a}){function s(f){let v=Be(f);const S=f.isTrusted;if(v&&v.tagName==="OPTION"&&(v=v.parentElement),!v||!v.tagName||Po.indexOf(v.tagName)<0||se(v,n,!0))return;const p=v.type;if(v.classList.contains(o))return;let y=v.value,b=!1;p==="radio"||p==="checkbox"?b=v.checked:(i[v.tagName.toLowerCase()]||i[p])&&(y=gt({maskInputOptions:i,tagName:v.tagName,type:p,value:y,maskInputFn:l})),u(v,Rr({text:y,isChecked:b,userTriggered:S},a));const N=v.name;p==="radio"&&N&&b&&t.querySelectorAll(`input[type="radio"][name="${N}"]`).forEach(k=>{k!==v&&u(k,Rr({text:k.value,isChecked:!b,userTriggered:!1},a))})}function u(f,v){const S=Dr.get(f);if(!S||S.text!==v.text||S.isChecked!==v.isChecked){Dr.set(f,v);const p=r.getId(f);e(Ro(Er({},v),{id:p}))}}const d=(c.input==="last"?["change"]:["input","change"]).map(f=>ie(f,s,t)),h=Object.getOwnPropertyDescriptor(HTMLInputElement.prototype,"value"),m=[[HTMLInputElement.prototype,"value"],[HTMLInputElement.prototype,"checked"],[HTMLSelectElement.prototype,"value"],[HTMLTextAreaElement.prototype,"value"],[HTMLSelectElement.prototype,"selectedIndex"],[HTMLOptionElement.prototype,"selected"]];return h&&h.set&&d.push(...m.map(f=>Ge(f[0],f[1],{set(){s({target:this})}}))),()=>{d.forEach(f=>f())}}function st(e){const t=[];function r(n,o){if(Cr&&n.parentRule instanceof CSSGroupingRule||Ir&&n.parentRule instanceof CSSMediaRule||Mr&&n.parentRule instanceof CSSSupportsRule||kr&&n.parentRule instanceof CSSConditionRule){const i=Array.from(n.parentRule.cssRules).indexOf(n);o.unshift(i)}else{const i=Array.from(n.parentStyleSheet.cssRules).indexOf(n);o.unshift(i)}return o}return r(e,t)}function _o({styleSheetRuleCb:e,mirror:t},{win:r}){const n=r.CSSStyleSheet.prototype.insertRule;r.CSSStyleSheet.prototype.insertRule=function(c,a){const s=t.getId(this.ownerNode);return s!==-1&&e({id:s,adds:[{rule:c,index:a}]}),n.apply(this,arguments)};const o=r.CSSStyleSheet.prototype.deleteRule;r.CSSStyleSheet.prototype.deleteRule=function(c){const a=t.getId(this.ownerNode);return a!==-1&&e({id:a,removes:[{index:c}]}),o.apply(this,arguments)};const i={};Cr?i.CSSGroupingRule=r.CSSGroupingRule:(Ir&&(i.CSSMediaRule=r.CSSMediaRule),kr&&(i.CSSConditionRule=r.CSSConditionRule),Mr&&(i.CSSSupportsRule=r.CSSSupportsRule));const l={};return Object.entries(i).forEach(([c,a])=>{l[c]={insertRule:a.prototype.insertRule,deleteRule:a.prototype.deleteRule},a.prototype.insertRule=function(s,u){const d=t.getId(this.parentStyleSheet.ownerNode);return d!==-1&&e({id:d,adds:[{rule:s,index:[...st(this),u||0]}]}),l[c].insertRule.apply(this,arguments)},a.prototype.deleteRule=function(s){const u=t.getId(this.parentStyleSheet.ownerNode);return u!==-1&&e({id:u,removes:[{index:[...st(this),s]}]}),l[c].deleteRule.apply(this,arguments)}}),()=>{r.CSSStyleSheet.prototype.insertRule=n,r.CSSStyleSheet.prototype.deleteRule=o,Object.entries(i).forEach(([c,a])=>{a.prototype.insertRule=l[c].insertRule,a.prototype.deleteRule=l[c].deleteRule})}}function $o({styleDeclarationCb:e,mirror:t},{win:r}){const n=r.CSSStyleDeclaration.prototype.setProperty;r.CSSStyleDeclaration.prototype.setProperty=function(i,l,c){var a,s;const u=t.getId((s=(a=this.parentRule)==null?void 0:a.parentStyleSheet)==null?void 0:s.ownerNode);return u!==-1&&e({id:u,set:{property:i,value:l,priority:c},index:st(this.parentRule)}),n.apply(this,arguments)};const o=r.CSSStyleDeclaration.prototype.removeProperty;return r.CSSStyleDeclaration.prototype.removeProperty=function(i){var l,c;const a=t.getId((c=(l=this.parentRule)==null?void 0:l.parentStyleSheet)==null?void 0:c.ownerNode);return a!==-1&&e({id:a,remove:{property:i},index:st(this.parentRule)}),o.apply(this,arguments)},()=>{r.CSSStyleDeclaration.prototype.setProperty=n,r.CSSStyleDeclaration.prototype.removeProperty=o}}function Wo({mediaInteractionCb:e,blockClass:t,mirror:r,sampling:n}){const o=l=>Oe(c=>{const a=Be(c);if(!a||se(a,t,!0))return;const{currentTime:s,volume:u,muted:d}=a;e({type:l,id:r.getId(a),currentTime:s,volume:u,muted:d})},n.media||500),i=[ie("play",o(Te.Play)),ie("pause",o(Te.Pause)),ie("seeked",o(Te.Seeked)),ie("volumechange",o(Te.VolumeChange))];return()=>{i.forEach(l=>l())}}function jo({fontCb:e,doc:t}){const r=t.defaultView;if(!r)return()=>{};const n=[],o=new WeakMap,i=r.FontFace;r.FontFace=function(c,a,s){const u=new i(c,a,s);return o.set(u,{family:c,buffer:typeof a!="string",descriptors:s,fontSource:typeof a=="string"?a:JSON.stringify(Array.from(new Uint8Array(a)))}),u};const l=be(t.fonts,"add",function(c){return function(a){return setTimeout(()=>{const s=o.get(a);s&&(e(s),o.delete(a))},0),c.apply(this,[a])}});return n.push(()=>{r.FontFace=i}),n.push(l),()=>{n.forEach(c=>c())}}function Vo(e,t){const{mutationCb:r,mousemoveCb:n,mouseInteractionCb:o,scrollCb:i,viewportResizeCb:l,inputCb:c,mediaInteractionCb:a,styleSheetRuleCb:s,styleDeclarationCb:u,canvasMutationCb:d,fontCb:h}=e;e.mutationCb=(...m)=>{t.mutation&&t.mutation(...m),r(...m)},e.mousemoveCb=(...m)=>{t.mousemove&&t.mousemove(...m),n(...m)},e.mouseInteractionCb=(...m)=>{t.mouseInteraction&&t.mouseInteraction(...m),o(...m)},e.scrollCb=(...m)=>{t.scroll&&t.scroll(...m),i(...m)},e.viewportResizeCb=(...m)=>{t.viewportResize&&t.viewportResize(...m),l(...m)},e.inputCb=(...m)=>{t.input&&t.input(...m),c(...m)},e.mediaInteractionCb=(...m)=>{t.mediaInteaction&&t.mediaInteaction(...m),a(...m)},e.styleSheetRuleCb=(...m)=>{t.styleSheetRule&&t.styleSheetRule(...m),s(...m)},e.styleDeclarationCb=(...m)=>{t.styleDeclaration&&t.styleDeclaration(...m),u(...m)},e.canvasMutationCb=(...m)=>{t.canvasMutation&&t.canvasMutation(...m),d(...m)},e.fontCb=(...m)=>{t.font&&t.font(...m),h(...m)}}function Uo(e,t={}){const r=e.doc.defaultView;if(!r)return()=>{};Vo(e,t);const n=xr(e,e.doc),o=Do(e),i=Lo(e),l=Or(e),c=Ao(e),a=Fo(e),s=Wo(e),u=_o(e,{win:r}),d=$o(e,{win:r}),h=e.collectFonts?jo(e):()=>{},m=[];for(const f of e.plugins)m.push(f.observer(f.callback,r,f.options));return()=>{Ee.forEach(f=>f.reset()),n.disconnect(),o(),i(),l(),c(),a(),s(),u(),d(),h(),m.forEach(f=>f())}}class Go{constructor(t){this.iframes=new WeakMap,this.mutationCb=t.mutationCb}addIframe(t){this.iframes.set(t,!0)}addLoadListener(t){this.loadListener=t}attachIframe(t,r,n){var o;this.mutationCb({adds:[{parentId:n.getId(t),nextId:null,node:r}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),(o=this.loadListener)==null||o.call(this,t)}}var zo=Object.defineProperty,Bo=Object.defineProperties,Ho=Object.getOwnPropertyDescriptors,Lr=Object.getOwnPropertySymbols,Yo=Object.prototype.hasOwnProperty,Xo=Object.prototype.propertyIsEnumerable,Ar=(e,t,r)=>t in e?zo(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Pr=(e,t)=>{for(var r in t||(t={}))Yo.call(t,r)&&Ar(e,r,t[r]);if(Lr)for(var r of Lr(t))Xo.call(t,r)&&Ar(e,r,t[r]);return e},Fr=(e,t)=>Bo(e,Ho(t));class Zo{constructor(t){this.restorePatches=[],this.mutationCb=t.mutationCb,this.scrollCb=t.scrollCb,this.bypassOptions=t.bypassOptions,this.mirror=t.mirror;const r=this;this.restorePatches.push(be(HTMLElement.prototype,"attachShadow",function(n){return function(){const o=n.apply(this,arguments);return this.shadowRoot&&r.addShadowRoot(this.shadowRoot,this.ownerDocument),o}}))}addShadowRoot(t,r){xr(Fr(Pr({},this.bypassOptions),{doc:r,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this}),t),Or(Fr(Pr({},this.bypassOptions),{scrollCb:this.scrollCb,doc:t,mirror:this.mirror}))}observeAttachShadow(t){if(t.contentWindow){const r=this;this.restorePatches.push(be(t.contentWindow.HTMLElement.prototype,"attachShadow",function(n){return function(){const o=n.apply(this,arguments);return this.shadowRoot&&r.addShadowRoot(this.shadowRoot,t.contentDocument),o}}))}}reset(){this.restorePatches.forEach(t=>t())}}for(var Le="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",He=typeof Uint8Array>"u"?[]:new Uint8Array(256),at=0;at<Le.length;at++)He[Le.charCodeAt(at)]=at;var Ko=function(e){var t=new Uint8Array(e),r,n=t.length,o="";for(r=0;r<n;r+=3)o+=Le[t[r]>>2],o+=Le[(t[r]&3)<<4|t[r+1]>>4],o+=Le[(t[r+1]&15)<<2|t[r+2]>>6],o+=Le[t[r+2]&63];return n%3===2?o=o.substring(0,o.length-1)+"=":n%3===1&&(o=o.substring(0,o.length-2)+"=="),o},qo=function(e){var t=e.length*.75,r=e.length,n,o=0,i,l,c,a;e[e.length-1]==="="&&(t--,e[e.length-2]==="="&&t--);var s=new ArrayBuffer(t),u=new Uint8Array(s);for(n=0;n<r;n+=4)i=He[e.charCodeAt(n)],l=He[e.charCodeAt(n+1)],c=He[e.charCodeAt(n+2)],a=He[e.charCodeAt(n+3)],u[o++]=i<<2|l>>4,u[o++]=(l&15)<<4|c>>2,u[o++]=(c&3)<<6|a&63;return s};const _r=new Map;function Jo(e,t){let r=_r.get(e);return r||(r=new Map,_r.set(e,r)),r.has(t)||r.set(t,[]),r.get(t)}const $r=(e,t,r)=>{if(!e||!(jr(e,t)||typeof e=="object"))return;const n=e.constructor.name,o=Jo(r,n);let i=o.indexOf(e);return i===-1&&(i=o.length,o.push(e)),i};function lt(e,t,r){if(e instanceof Array)return e.map(n=>lt(n,t,r));if(e===null)return e;if(e instanceof Float32Array||e instanceof Float64Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Uint8Array||e instanceof Uint16Array||e instanceof Int16Array||e instanceof Int8Array||e instanceof Uint8ClampedArray)return{rr_type:e.constructor.name,args:[Object.values(e)]};if(e instanceof ArrayBuffer){const n=e.constructor.name,o=Ko(e);return{rr_type:n,base64:o}}else{if(e instanceof DataView)return{rr_type:e.constructor.name,args:[lt(e.buffer,t,r),e.byteOffset,e.byteLength]};if(e instanceof HTMLImageElement){const n=e.constructor.name,{src:o}=e;return{rr_type:n,src:o}}else if(e instanceof HTMLCanvasElement){const n="HTMLImageElement",o=e.toDataURL();return{rr_type:n,src:o}}else{if(e instanceof ImageData)return{rr_type:e.constructor.name,args:[lt(e.data,t,r),e.width,e.height]};if(jr(e,t)||typeof e=="object"){const n=e.constructor.name,o=$r(e,t,r);return{rr_type:n,index:o}}}}return e}const Wr=(e,t,r)=>[...e].map(n=>lt(n,t,r)),jr=(e,t)=>{const r=["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"].filter(n=>typeof t[n]=="function");return Boolean(r.find(n=>e instanceof t[n]))};function Qo(e,t,r,n){const o=[],i=Object.getOwnPropertyNames(t.CanvasRenderingContext2D.prototype);for(const l of i)try{if(typeof t.CanvasRenderingContext2D.prototype[l]!="function")continue;const c=be(t.CanvasRenderingContext2D.prototype,l,function(a){return function(...s){return se(this.canvas,r,!0)||setTimeout(()=>{const u=Wr([...s],t,this);e(this.canvas,{type:fe["2D"],property:l,args:u})},0),a.apply(this,s)}});o.push(c)}catch{const a=Ge(t.CanvasRenderingContext2D.prototype,l,{set(s){e(this.canvas,{type:fe["2D"],property:l,args:[s],setter:!0})}});o.push(a)}return()=>{o.forEach(l=>l())}}function Vr(e,t){const r=[];try{const n=be(e.HTMLCanvasElement.prototype,"getContext",function(o){return function(i,...l){return se(this,t,!0)||"__context"in this||(this.__context=i),o.apply(this,[i,...l])}});r.push(n)}catch{console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return()=>{r.forEach(n=>n())}}function Ur(e,t,r,n,o,i){const l=[],c=Object.getOwnPropertyNames(e);for(const a of c)try{if(typeof e[a]!="function")continue;const s=be(e,a,function(u){return function(...d){const h=u.apply(this,d);if($r(h,i,e),!se(this.canvas,n,!0)){const m=Wr([...d],i,e),f={type:t,property:a,args:m};r(this.canvas,f)}return h}});l.push(s)}catch{const u=Ge(e,a,{set(d){r(this.canvas,{type:t,property:a,args:[d],setter:!0})}});l.push(u)}return l}function ei(e,t,r,n){const o=[];return o.push(...Ur(t.WebGLRenderingContext.prototype,fe.WebGL,e,r,n,t)),typeof t.WebGL2RenderingContext<"u"&&o.push(...Ur(t.WebGL2RenderingContext.prototype,fe.WebGL2,e,r,n,t)),()=>{o.forEach(i=>i())}}function ti(e,t){var r=atob(e);if(t){for(var n=new Uint8Array(r.length),o=0,i=r.length;o<i;++o)n[o]=r.charCodeAt(o);return String.fromCharCode.apply(null,new Uint16Array(n.buffer))}return r}function ri(e,t,r){var n=t===void 0?null:t,o=r===void 0?!1:r,i=ti(e,o),l=i.indexOf(`
|
|
5
|
-
`,10)+1,c=i.substring(l)+(n?"//# sourceMappingURL="+n:""),a=new Blob([c],{type:"application/javascript"});return URL.createObjectURL(a)}function ni(e,t,r){var n;return function(i){return n=n||ri(e,t,r),new Worker(n,i)}}var oi=ni("Lyogcm9sbHVwLXBsdWdpbi13ZWItd29ya2VyLWxvYWRlciAqLwooZnVuY3Rpb24oKXsidXNlIHN0cmljdCI7Zm9yKHZhciByPSJBQkNERUZHSElKS0xNTk9QUVJTVFVWV1hZWmFiY2RlZmdoaWprbG1ub3BxcnN0dXZ3eHl6MDEyMzQ1Njc4OSsvIixsPXR5cGVvZiBVaW50OEFycmF5PiJ1Ij9bXTpuZXcgVWludDhBcnJheSgyNTYpLGY9MDtmPHIubGVuZ3RoO2YrKylsW3IuY2hhckNvZGVBdChmKV09Zjt2YXIgZD1mdW5jdGlvbihzKXt2YXIgZT1uZXcgVWludDhBcnJheShzKSxuLGE9ZS5sZW5ndGgsdD0iIjtmb3Iobj0wO248YTtuKz0zKXQrPXJbZVtuXT4+Ml0sdCs9clsoZVtuXSYzKTw8NHxlW24rMV0+PjRdLHQrPXJbKGVbbisxXSYxNSk8PDJ8ZVtuKzJdPj42XSx0Kz1yW2VbbisyXSY2M107cmV0dXJuIGElMz09PTI/dD10LnN1YnN0cmluZygwLHQubGVuZ3RoLTEpKyI9IjphJTM9PT0xJiYodD10LnN1YnN0cmluZygwLHQubGVuZ3RoLTIpKyI9PSIpLHR9O2NvbnN0IGM9bmV3IE1hcCx1PW5ldyBNYXA7YXN5bmMgZnVuY3Rpb24gcChzLGUpe2NvbnN0IG49YCR7c30tJHtlfWA7aWYodS5oYXMobikpcmV0dXJuIHUuZ2V0KG4pO2NvbnN0IGE9bmV3IE9mZnNjcmVlbkNhbnZhcyhzLGUpO2EuZ2V0Q29udGV4dCgiMmQiKTtjb25zdCB0PWF3YWl0KGF3YWl0IGEuY29udmVydFRvQmxvYigpKS5hcnJheUJ1ZmZlcigpLGc9ZCh0KTtyZXR1cm4gdS5zZXQobixnKSxnfWNvbnN0IGk9c2VsZjtpLm9ubWVzc2FnZT1hc3luYyBmdW5jdGlvbihzKXtpZighKCJPZmZzY3JlZW5DYW52YXMiaW4gZ2xvYmFsVGhpcykpcmV0dXJuIGkucG9zdE1lc3NhZ2Uoe2lkOnMuZGF0YS5pZH0pO2NvbnN0e2lkOmUsYml0bWFwOm4sd2lkdGg6YSxoZWlnaHQ6dH09cy5kYXRhLGc9cChhLHQpLGg9bmV3IE9mZnNjcmVlbkNhbnZhcyhhLHQpO2guZ2V0Q29udGV4dCgiMmQiKS5kcmF3SW1hZ2UobiwwLDApLG4uY2xvc2UoKTtjb25zdCB3PWF3YWl0IGguY29udmVydFRvQmxvYigpLHk9dy50eXBlLGI9YXdhaXQgdy5hcnJheUJ1ZmZlcigpLG89ZChiKTtpZighYy5oYXMoZSkmJmF3YWl0IGc9PT1vKXJldHVybiBjLnNldChlLG8pLGkucG9zdE1lc3NhZ2Uoe2lkOmV9KTtpZihjLmdldChlKT09PW8pcmV0dXJuIGkucG9zdE1lc3NhZ2Uoe2lkOmV9KTtpLnBvc3RNZXNzYWdlKHtpZDplLHR5cGU6eSxiYXNlNjQ6byx3aWR0aDphLGhlaWdodDp0fSksYy5zZXQoZSxvKX19KSgpOwoK",null,!1),Gr=Object.getOwnPropertySymbols,ii=Object.prototype.hasOwnProperty,si=Object.prototype.propertyIsEnumerable,ai=(e,t)=>{var r={};for(var n in e)ii.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Gr)for(var n of Gr(e))t.indexOf(n)<0&&si.call(e,n)&&(r[n]=e[n]);return r},li=(e,t,r)=>new Promise((n,o)=>{var i=a=>{try{c(r.next(a))}catch(s){o(s)}},l=a=>{try{c(r.throw(a))}catch(s){o(s)}},c=a=>a.done?n(a.value):Promise.resolve(a.value).then(i,l);c((r=r.apply(e,t)).next())});class ci{constructor(t){this.pendingCanvasMutations=new Map,this.rafStamps={latestId:0,invokeId:null},this.frozen=!1,this.locked=!1,this.processMutation=function(l,c){(this.rafStamps.invokeId&&this.rafStamps.latestId!==this.rafStamps.invokeId||!this.rafStamps.invokeId)&&(this.rafStamps.invokeId=this.rafStamps.latestId),this.pendingCanvasMutations.has(l)||this.pendingCanvasMutations.set(l,[]),this.pendingCanvasMutations.get(l).push(c)};const{sampling:r="all",win:n,blockClass:o,recordCanvas:i}=t;this.mutationCb=t.mutationCb,this.mirror=t.mirror,i&&r==="all"&&this.initCanvasMutationObserver(n,o),i&&typeof r=="number"&&this.initCanvasFPSObserver(r,n,o)}reset(){this.pendingCanvasMutations.clear(),this.resetObservers&&this.resetObservers()}freeze(){this.frozen=!0}unfreeze(){this.frozen=!1}lock(){this.locked=!0}unlock(){this.locked=!1}initCanvasFPSObserver(t,r,n){const o=Vr(r,n),i=new Map,l=new oi;l.onmessage=d=>{const{id:h}=d.data;if(i.set(h,!1),!("base64"in d.data))return;const{base64:m,type:f,width:v,height:S}=d.data;this.mutationCb({id:h,type:fe["2D"],commands:[{property:"clearRect",args:[0,0,v,S]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:m}],type:f}]},0,0]}]})};const c=1e3/t;let a=0,s;const u=d=>{if(a&&d-a<c){s=requestAnimationFrame(u);return}a=d,r.document.querySelectorAll(`canvas:not(.${n} *)`).forEach(h=>li(this,null,function*(){var m;const f=this.mirror.getId(h);if(i.get(f))return;if(i.set(f,!0),["webgl","webgl2"].includes(h.__context)){const S=h.getContext(h.__context);((m=S?.getContextAttributes())==null?void 0:m.preserveDrawingBuffer)===!1&&S?.clear(S.COLOR_BUFFER_BIT)}const v=yield createImageBitmap(h);l.postMessage({id:f,bitmap:v,width:h.width,height:h.height},[v])})),s=requestAnimationFrame(u)};s=requestAnimationFrame(u),this.resetObservers=()=>{o(),cancelAnimationFrame(s)}}initCanvasMutationObserver(t,r){this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher();const n=Vr(t,r),o=Qo(this.processMutation.bind(this),t,r,this.mirror),i=ei(this.processMutation.bind(this),t,r,this.mirror);this.resetObservers=()=>{n(),o(),i()}}startPendingCanvasMutationFlusher(){requestAnimationFrame(()=>this.flushPendingCanvasMutations())}startRAFTimestamping(){const t=r=>{this.rafStamps.latestId=r,requestAnimationFrame(t)};requestAnimationFrame(t)}flushPendingCanvasMutations(){this.pendingCanvasMutations.forEach((t,r)=>{const n=this.mirror.getId(r);this.flushPendingCanvasMutationFor(r,n)}),requestAnimationFrame(()=>this.flushPendingCanvasMutations())}flushPendingCanvasMutationFor(t,r){if(this.frozen||this.locked)return;const n=this.pendingCanvasMutations.get(t);if(!n||r===-1)return;const o=n.map(l=>ai(l,["type"])),{type:i}=n[0];this.mutationCb({id:r,type:i,commands:o}),this.pendingCanvasMutations.delete(t)}}class ui{constructor(t){this.trackedStylesheets=new WeakSet,this.mutationCb=t.mutationCb}addStylesheet(t){this.trackedStylesheets.has(t)||(this.trackedStylesheets.add(t),this.trackStylesheet(t))}trackStylesheet(t){}attachStylesheet(t,r,n){this.mutationCb({adds:[{parentId:n.getId(t),nextId:null,node:r}],removes:[],texts:[],attributes:[]}),this.addStylesheet(t)}}var di=Object.defineProperty,hi=Object.defineProperties,mi=Object.getOwnPropertyDescriptors,zr=Object.getOwnPropertySymbols,pi=Object.prototype.hasOwnProperty,fi=Object.prototype.propertyIsEnumerable,Br=(e,t,r)=>t in e?di(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,ae=(e,t)=>{for(var r in t||(t={}))pi.call(t,r)&&Br(e,r,t[r]);if(zr)for(var r of zr(t))fi.call(t,r)&&Br(e,r,t[r]);return e},vi=(e,t)=>hi(e,mi(t));function te(e){return vi(ae({},e),{timestamp:Date.now()})}let Q,Ye;const de=tr();function Ce(e={}){const{emit:t,checkoutEveryNms:r,checkoutEveryNth:n,blockClass:o="highlight-block",blockSelector:i=null,ignoreClass:l="highlight-ignore",maskTextClass:c="highlight-mask",maskTextSelector:a=null,inlineStylesheet:s=!0,maskAllInputs:u,maskInputOptions:d,slimDOMOptions:h,maskInputFn:m,maskTextFn:f,hooks:v,packFn:S,sampling:p={},mousemoveWait:y,recordCanvas:b=!1,userTriggeredOnInput:N=!1,collectFonts:k=!1,inlineImages:M=!1,plugins:x,keepIframeSrcFn:T=()=>!1,enableStrictPrivacy:D=!1}=e;if(!t)throw new Error("emit function is required");y!==void 0&&p.mousemove===void 0&&(p.mousemove=y),de.reset();const W=u===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0}:d!==void 0?d:{password:!0},Y=h===!0||h==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:h==="all",headMetaDescKeywords:h==="all"}:h||{};Ct();let j,H=0;const A=E=>{for(const I of x||[])I.eventProcessor&&(E=I.eventProcessor(E));return S&&(E=S(E)),E};Q=(E,I)=>{var G;if(((G=Ee[0])==null?void 0:G.isFrozen())&&E.type!==R.FullSnapshot&&!(E.type===R.IncrementalSnapshot&&E.data.source===L.Mutation)&&Ee.forEach(z=>z.unfreeze()),t(A(E),I),E.type===R.FullSnapshot)j=E,H=0;else if(E.type===R.IncrementalSnapshot){if(E.data.source===L.Mutation&&E.data.isAttachIframe)return;H++;const z=n&&H>=n,oe=r&&E.timestamp-j.timestamp>r;(z||oe)&&Ye(!0)}};const U=E=>{Q(te({type:R.IncrementalSnapshot,data:ae({source:L.Mutation},E)}))},P=E=>Q(te({type:R.IncrementalSnapshot,data:ae({source:L.Scroll},E)})),O=E=>Q(te({type:R.IncrementalSnapshot,data:ae({source:L.CanvasMutation},E)})),$=new Go({mutationCb:U}),w=new ui({mutationCb:U}),g=new ci({recordCanvas:b,mutationCb:O,win:window,blockClass:o,mirror:de,sampling:p.canvas}),C=new Zo({mutationCb:U,scrollCb:P,bypassOptions:{blockClass:o,blockSelector:i,maskTextClass:c,maskTextSelector:a,inlineStylesheet:s,maskInputOptions:W,maskTextFn:f,maskInputFn:m,recordCanvas:b,inlineImages:M,sampling:p,slimDOMOptions:Y,iframeManager:$,stylesheetManager:w,canvasManager:g,enableStrictPrivacy:D},mirror:de});Ye=(E=!1)=>{var I,G,z,oe;Q(te({type:R.Meta,data:{href:window.location.href,width:Nt(),height:wt()}}),E),Ee.forEach(X=>X.lock());const V=po(document,{mirror:de,blockClass:o,blockSelector:i,maskTextClass:c,maskTextSelector:a,inlineStylesheet:s,maskAllInputs:W,maskTextFn:f,slimDOM:Y,recordCanvas:b,inlineImages:M,enableStrictPrivacy:D,onSerialize:X=>{Re(X,de)&&$.addIframe(X),Mt(X,de)&&w.addStylesheet(X),ze(X)&&C.addShadowRoot(X.shadowRoot,document)},onIframeLoad:(X,ge)=>{$.attachIframe(X,ge,de),C.observeAttachShadow(X)},onStylesheetLoad:(X,ge)=>{w.attachStylesheet(X,ge,de)},keepIframeSrcFn:T});if(!V)return console.warn("Failed to snapshot the document");Q(te({type:R.FullSnapshot,data:{node:V,initialOffset:{left:window.pageXOffset!==void 0?window.pageXOffset:document?.documentElement.scrollLeft||((G=(I=document?.body)==null?void 0:I.parentElement)==null?void 0:G.scrollLeft)||document?.body.scrollLeft||0,top:window.pageYOffset!==void 0?window.pageYOffset:document?.documentElement.scrollTop||((oe=(z=document?.body)==null?void 0:z.parentElement)==null?void 0:oe.scrollTop)||document?.body.scrollTop||0}}})),Ee.forEach(X=>X.unlock())};try{const E=[];E.push(ie("DOMContentLoaded",()=>{Q(te({type:R.DomContentLoaded,data:{}}))}));const I=z=>{var oe;return Uo({mutationCb:U,mousemoveCb:(V,X)=>Q(te({type:R.IncrementalSnapshot,data:{source:X,positions:V}})),mouseInteractionCb:V=>Q(te({type:R.IncrementalSnapshot,data:ae({source:L.MouseInteraction},V)})),scrollCb:P,viewportResizeCb:V=>Q(te({type:R.IncrementalSnapshot,data:ae({source:L.ViewportResize},V)})),inputCb:V=>Q(te({type:R.IncrementalSnapshot,data:ae({source:L.Input},V)})),mediaInteractionCb:V=>Q(te({type:R.IncrementalSnapshot,data:ae({source:L.MediaInteraction},V)})),styleSheetRuleCb:V=>Q(te({type:R.IncrementalSnapshot,data:ae({source:L.StyleSheetRule},V)})),styleDeclarationCb:V=>Q(te({type:R.IncrementalSnapshot,data:ae({source:L.StyleDeclaration},V)})),canvasMutationCb:O,fontCb:V=>Q(te({type:R.IncrementalSnapshot,data:ae({source:L.Font},V)})),blockClass:o,ignoreClass:l,maskTextClass:c,maskTextSelector:a,maskInputOptions:W,inlineStylesheet:s,sampling:p,recordCanvas:b,inlineImages:M,userTriggeredOnInput:N,collectFonts:k,doc:z,maskInputFn:m,maskTextFn:f,blockSelector:i,slimDOMOptions:Y,mirror:de,iframeManager:$,stylesheetManager:w,shadowDomManager:C,canvasManager:g,enableStrictPrivacy:D,plugins:((oe=x?.filter(V=>V.observer))==null?void 0:oe.map(V=>({observer:V.observer,options:V.options,callback:X=>Q(te({type:R.Plugin,data:{plugin:V.name,payload:X}}))})))||[]},v)};$.addLoadListener(z=>{E.push(I(z.contentDocument))});const G=()=>{Ye(),E.push(I(document))};return document.readyState==="interactive"||document.readyState==="complete"?G():E.push(ie("load",()=>{Q(te({type:R.Load,data:{}})),G()},window)),()=>{E.forEach(z=>z())}}catch(E){console.warn(E)}}Ce.addCustomEvent=(e,t)=>{!Q||Q(te({type:R.Custom,data:{tag:e,payload:t}}))},Ce.freezePage=()=>{Ee.forEach(e=>e.freeze())},Ce.takeFullSnapshot=e=>{if(!Ye)throw new Error("please take full snapshot after start recording");Ye(e)},Ce.mirror=de;var F;(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"})(F||(F={}));var gi=function(){function e(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}return e.prototype.getId=function(t){var r;if(!t)return-1;var n=(r=this.getMeta(t))===null||r===void 0?void 0:r.id;return n??-1},e.prototype.getNode=function(t){return this.idNodeMap.get(t)||null},e.prototype.getIds=function(){return Array.from(this.idNodeMap.keys())},e.prototype.getMeta=function(t){return this.nodeMetaMap.get(t)||null},e.prototype.removeNodeFromMap=function(t){var r=this,n=this.getId(t);this.idNodeMap.delete(n),t.childNodes&&t.childNodes.forEach(function(o){return r.removeNodeFromMap(o)})},e.prototype.has=function(t){return this.idNodeMap.has(t)},e.prototype.hasNode=function(t){return this.nodeMetaMap.has(t)},e.prototype.add=function(t,r){var n=r.id;this.idNodeMap.set(n,t),this.nodeMetaMap.set(t,r)},e.prototype.replace=function(t,r){this.idNodeMap.set(t,r)},e.prototype.reset=function(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap},e}();function yi(){return new gi}function bi(e){const t={},r=/;(?![^(]*\))/g,n=/:(.+)/,o=/\/\*.*?\*\//g;return e.replace(o,"").split(r).forEach(function(i){if(i){const l=i.split(n);l.length>1&&(t[Rt(l[0].trim())]=l[1].trim())}}),t}function Hr(e){const t=[];for(const r in e){const n=e[r];if(typeof n!="string")continue;const o=Ti(r);t.push(`${o}: ${n};`)}return t.join(" ")}const Si=/-([a-z])/g,wi=/^--[a-zA-Z0-9-]+$/,Rt=e=>wi.test(e)?e:e.replace(Si,(t,r)=>r?r.toUpperCase():""),Ni=/\B([A-Z])/g,Ti=e=>e.replace(Ni,"-$1").toLowerCase();class le{constructor(...t){this.childNodes=[],this.parentElement=null,this.parentNode=null,this.ELEMENT_NODE=J.ELEMENT_NODE,this.TEXT_NODE=J.TEXT_NODE}get firstChild(){return this.childNodes[0]||null}get lastChild(){return this.childNodes[this.childNodes.length-1]||null}get nextSibling(){const t=this.parentNode;if(!t)return null;const r=t.childNodes,n=r.indexOf(this);return r[n+1]||null}contains(t){if(t===this)return!0;for(const r of this.childNodes)if(r.contains(t))return!0;return!1}appendChild(t){throw new Error("RRDomException: Failed to execute 'appendChild' on 'RRNode': This RRNode type does not support this method.")}insertBefore(t,r){throw new Error("RRDomException: Failed to execute 'insertBefore' on 'RRNode': This RRNode type does not support this method.")}removeChild(t){throw new Error("RRDomException: Failed to execute 'removeChild' on 'RRNode': This RRNode type does not support this method.")}toString(){return"RRNode"}}function Ei(e){return class Vn extends e{constructor(){super(...arguments),this.nodeType=J.DOCUMENT_NODE,this.nodeName="#document",this.compatMode="CSS1Compat",this.RRNodeType=F.Document,this.textContent=null}get documentElement(){return this.childNodes.find(r=>r.RRNodeType===F.Element&&r.tagName==="HTML")||null}get body(){var r;return((r=this.documentElement)===null||r===void 0?void 0:r.childNodes.find(n=>n.RRNodeType===F.Element&&n.tagName==="BODY"))||null}get head(){var r;return((r=this.documentElement)===null||r===void 0?void 0:r.childNodes.find(n=>n.RRNodeType===F.Element&&n.tagName==="HEAD"))||null}get implementation(){return this}get firstElementChild(){return this.documentElement}appendChild(r){const n=r.RRNodeType;if((n===F.Element||n===F.DocumentType)&&this.childNodes.some(o=>o.RRNodeType===n))throw new Error(`RRDomException: Failed to execute 'appendChild' on 'RRNode': Only one ${n===F.Element?"RRElement":"RRDoctype"} on RRDocument allowed.`);return r.parentElement=null,r.parentNode=this,this.childNodes.push(r),r}insertBefore(r,n){const o=r.RRNodeType;if((o===F.Element||o===F.DocumentType)&&this.childNodes.some(l=>l.RRNodeType===o))throw new Error(`RRDomException: Failed to execute 'insertBefore' on 'RRNode': Only one ${o===F.Element?"RRElement":"RRDoctype"} on RRDocument allowed.`);if(n===null)return this.appendChild(r);const i=this.childNodes.indexOf(n);if(i==-1)throw new Error("Failed to execute 'insertBefore' on 'RRNode': The RRNode before which the new node is to be inserted is not a child of this RRNode.");return this.childNodes.splice(i,0,r),r.parentElement=null,r.parentNode=this,r}removeChild(r){const n=this.childNodes.indexOf(r);if(n===-1)throw new Error("Failed to execute 'removeChild' on 'RRDocument': The RRNode to be removed is not a child of this RRNode.");return this.childNodes.splice(n,1),r.parentElement=null,r.parentNode=null,r}open(){this.childNodes=[]}close(){}write(r){let n;if(r==='<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">'?n="-//W3C//DTD XHTML 1.0 Transitional//EN":r==='<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "">'&&(n="-//W3C//DTD HTML 4.0 Transitional//EN"),n){const o=this.createDocumentType("html",n,"");this.open(),this.appendChild(o)}}createDocument(r,n,o){return new Vn}createDocumentType(r,n,o){const i=new(Yr(le))(r,n,o);return i.ownerDocument=this,i}createElement(r){const n=new(Xr(le))(r);return n.ownerDocument=this,n}createElementNS(r,n){return this.createElement(n)}createTextNode(r){const n=new(Zr(le))(r);return n.ownerDocument=this,n}createComment(r){const n=new(Kr(le))(r);return n.ownerDocument=this,n}createCDATASection(r){const n=new(qr(le))(r);return n.ownerDocument=this,n}toString(){return"RRDocument"}}}function Yr(e){return class extends e{constructor(t,r,n){super(),this.nodeType=J.DOCUMENT_TYPE_NODE,this.RRNodeType=F.DocumentType,this.textContent=null,this.name=t,this.publicId=r,this.systemId=n,this.nodeName=t}toString(){return"RRDocumentType"}}}function Xr(e){return class extends e{constructor(t){super(),this.nodeType=J.ELEMENT_NODE,this.RRNodeType=F.Element,this.attributes={},this.shadowRoot=null,this.tagName=t.toUpperCase(),this.nodeName=t.toUpperCase()}get textContent(){let t="";return this.childNodes.forEach(r=>t+=r.textContent),t}set textContent(t){this.childNodes=[this.ownerDocument.createTextNode(t)]}get classList(){return new Ii(this.attributes.class,t=>{this.attributes.class=t})}get id(){return this.attributes.id||""}get className(){return this.attributes.class||""}get style(){const t=this.attributes.style?bi(this.attributes.style):{},r=/\B([A-Z])/g;return t.setProperty=(n,o,i)=>{if(r.test(n))return;const l=Rt(n);o?t[l]=o:delete t[l],i==="important"&&(t[l]+=" !important"),this.attributes.style=Hr(t)},t.removeProperty=n=>{if(r.test(n))return"";const o=Rt(n),i=t[o]||"";return delete t[o],this.attributes.style=Hr(t),i},t}getAttribute(t){return this.attributes[t]||null}setAttribute(t,r){this.attributes[t]=r}setAttributeNS(t,r,n){this.setAttribute(r,n)}removeAttribute(t){delete this.attributes[t]}appendChild(t){return this.childNodes.push(t),t.parentNode=this,t.parentElement=this,t}insertBefore(t,r){if(r===null)return this.appendChild(t);const n=this.childNodes.indexOf(r);if(n==-1)throw new Error("Failed to execute 'insertBefore' on 'RRNode': The RRNode before which the new node is to be inserted is not a child of this RRNode.");return this.childNodes.splice(n,0,t),t.parentElement=this,t.parentNode=this,t}removeChild(t){const r=this.childNodes.indexOf(t);if(r===-1)throw new Error("Failed to execute 'removeChild' on 'RRElement': The RRNode to be removed is not a child of this RRNode.");return this.childNodes.splice(r,1),t.parentElement=null,t.parentNode=null,t}attachShadow(t){const r=this.ownerDocument.createElement("SHADOWROOT");return this.shadowRoot=r,r}dispatchEvent(t){return!0}toString(){let t="";for(const r in this.attributes)t+=`${r}="${this.attributes[r]}" `;return`${this.tagName} ${t}`}}}function Ci(e){return class extends e{attachShadow(t){throw new Error("RRDomException: Failed to execute 'attachShadow' on 'RRElement': This RRElement does not support attachShadow")}play(){this.paused=!1}pause(){this.paused=!0}}}function Zr(e){return class extends e{constructor(t){super(),this.nodeType=J.TEXT_NODE,this.nodeName="#text",this.RRNodeType=F.Text,this.data=t}get textContent(){return this.data}set textContent(t){this.data=t}toString(){return`RRText text=${JSON.stringify(this.data)}`}}}function Kr(e){return class extends e{constructor(t){super(),this.nodeType=J.COMMENT_NODE,this.nodeName="#comment",this.RRNodeType=F.Comment,this.data=t}get textContent(){return this.data}set textContent(t){this.data=t}toString(){return`RRComment text=${JSON.stringify(this.data)}`}}}function qr(e){return class extends e{constructor(t){super(),this.nodeName="#cdata-section",this.nodeType=J.CDATA_SECTION_NODE,this.RRNodeType=F.CDATA,this.data=t}get textContent(){return this.data}set textContent(t){this.data=t}toString(){return`RRCDATASection data=${JSON.stringify(this.data)}`}}}class Ii{constructor(t,r){if(this.classes=[],this.add=(...n)=>{for(const o of n){const i=String(o);this.classes.indexOf(i)>=0||this.classes.push(i)}this.onChange&&this.onChange(this.classes.join(" "))},this.remove=(...n)=>{this.classes=this.classes.filter(o=>n.indexOf(o)===-1),this.onChange&&this.onChange(this.classes.join(" "))},t){const n=t.trim().split(/\s+/);this.classes.push(...n)}this.onChange=r}}var J;(function(e){e[e.PLACEHOLDER=0]="PLACEHOLDER",e[e.ELEMENT_NODE=1]="ELEMENT_NODE",e[e.ATTRIBUTE_NODE=2]="ATTRIBUTE_NODE",e[e.TEXT_NODE=3]="TEXT_NODE",e[e.CDATA_SECTION_NODE=4]="CDATA_SECTION_NODE",e[e.ENTITY_REFERENCE_NODE=5]="ENTITY_REFERENCE_NODE",e[e.ENTITY_NODE=6]="ENTITY_NODE",e[e.PROCESSING_INSTRUCTION_NODE=7]="PROCESSING_INSTRUCTION_NODE",e[e.COMMENT_NODE=8]="COMMENT_NODE",e[e.DOCUMENT_NODE=9]="DOCUMENT_NODE",e[e.DOCUMENT_TYPE_NODE=10]="DOCUMENT_TYPE_NODE",e[e.DOCUMENT_FRAGMENT_NODE=11]="DOCUMENT_FRAGMENT_NODE"})(J||(J={}));const Dt={svg:"http://www.w3.org/2000/svg","xlink:href":"http://www.w3.org/1999/xlink",xmlns:"http://www.w3.org/2000/xmlns/"};function he(e,t,r,n){const o=e.childNodes,i=t.childNodes;n=n||t.mirror||t.ownerDocument.mirror,(o.length>0||i.length>0)&&Jr(Array.from(o),i,e,r,n);let l=null,c=null;switch(t.RRNodeType){case F.Document:{c=t.scrollData;break}case F.Element:{const a=e,s=t;switch(Mi(a,s,n),c=s.scrollData,l=s.inputData,s.tagName){case"AUDIO":case"VIDEO":{const u=e,d=s;d.paused!==void 0&&(d.paused?u.pause():u.play()),d.muted!==void 0&&(u.muted=d.muted),d.volume!==void 0&&(u.volume=d.volume),d.currentTime!==void 0&&(u.currentTime=d.currentTime);break}case"CANVAS":t.canvasMutations.forEach(u=>r.applyCanvas(u.event,u.mutation,e));break;case"STYLE":ki(a,t.rules);break}if(s.shadowRoot){a.shadowRoot||a.attachShadow({mode:"open"});const u=a.shadowRoot.childNodes,d=s.shadowRoot.childNodes;(u.length>0||d.length>0)&&Jr(Array.from(u),d,a.shadowRoot,r,n)}break}case F.Text:case F.Comment:case F.CDATA:e.textContent!==t.data&&(e.textContent=t.data);break}if(c&&r.applyScroll(c,!0),l&&r.applyInput(l),t.nodeName==="IFRAME"){const a=e.contentDocument,s=t;if(a){const u=n.getMeta(s.contentDocument);u&&r.mirror.add(a,Object.assign({},u)),he(a,s.contentDocument,r,n)}}}function Mi(e,t,r){const n=e.attributes,o=t.attributes;for(const i in o){const l=o[i],c=r.getMeta(t);if(c&&"isSVG"in c&&c.isSVG&&Dt[i])e.setAttributeNS(Dt[i],i,l);else if(t.tagName==="CANVAS"&&i==="rr_dataURL"){const a=document.createElement("img");a.src=l,a.onload=()=>{const s=e.getContext("2d");s&&s.drawImage(a,0,0,a.width,a.height)}}else e.setAttribute(i,l)}for(const{name:i}of Array.from(n))i in o||e.removeAttribute(i);t.scrollLeft&&(e.scrollLeft=t.scrollLeft),t.scrollTop&&(e.scrollTop=t.scrollTop)}function Jr(e,t,r,n,o){var i,l;let c=0,a=e.length-1,s=0,u=t.length-1,d=e[c],h=e[a],m=t[s],f=t[u],v,S;for(;c<=a&&s<=u;)if(d===void 0)d=e[++c];else if(h===void 0)h=e[--a];else if(n.mirror.getId(d)===o.getId(m))he(d,m,n,o),d=e[++c],m=t[++s];else if(n.mirror.getId(h)===o.getId(f))he(h,f,n,o),h=e[--a],f=t[--u];else if(n.mirror.getId(d)===o.getId(f))try{r.insertBefore(d,h.nextSibling),he(d,f,n,o),d=e[++c],f=t[--u]}catch(p){console.error(p,r,d,h)}else if(n.mirror.getId(h)===o.getId(m))try{r.insertBefore(h,d),he(h,m,n,o),h=e[--a],m=t[++s]}catch(p){console.error(p,r,h,d)}else{if(!v){v={};for(let p=c;p<=a;p++){const y=e[p];y&&n.mirror.hasNode(y)&&(v[n.mirror.getId(y)]=p)}}if(S=v[o.getId(m)],S){const p=e[S];try{r.insertBefore(p,d),he(p,m,n,o),e[S]=void 0}catch(y){console.error(y,r,p,d)}}else{const p=Lt(m,n.mirror,o);((i=n.mirror.getMeta(r))===null||i===void 0?void 0:i.type)===F.Document&&((l=n.mirror.getMeta(p))===null||l===void 0?void 0:l.type)===F.Element&&r.documentElement&&(r.removeChild(r.documentElement),e[c]=void 0,d=void 0);try{r.insertBefore(p,d||null),he(p,m,n,o)}catch(y){console.error(y,r,p,d||null)}}m=t[++s]}if(c>a){const p=t[u+1];let y=null;for(p&&r.childNodes.forEach(b=>{n.mirror.getId(b)===o.getId(p)&&(y=b)});s<=u;++s){const b=Lt(t[s],n.mirror,o);try{r.insertBefore(b,y),he(b,t[s],n,o)}catch(N){console.error(N,r,b,y)}}}else if(s>u)for(;c<=a;c++){const p=e[c];p&&(r.removeChild(p),n.mirror.removeNodeFromMap(p))}}function Lt(e,t,r){let n=t.getNode(r.getId(e));const o=r.getMeta(e);if(n!==null)return n;switch(e.RRNodeType){case F.Document:n=new Document;break;case F.DocumentType:n=document.implementation.createDocumentType(e.name,e.publicId,e.systemId);break;case F.Element:{e.tagName.toLowerCase(),o&&"isSVG"in o&&o?.isSVG?n=document.createElementNS(Dt.svg,e.tagName.toLowerCase()):n=document.createElement(e.tagName);break}case F.Text:n=document.createTextNode(e.data);break;case F.Comment:n=document.createComment(e.data);break;case F.CDATA:n=document.createCDATASection(e.data);break}return o&&t.add(n,Object.assign({},o)),n}function Xe(e,t){const r=e[t[0]];return t.length===1?r:Xe(r.cssRules[t[1]].cssRules,t.slice(2))}var ce;(function(e){e[e.Insert=0]="Insert",e[e.Remove=1]="Remove",e[e.Snapshot=2]="Snapshot",e[e.SetProperty=3]="SetProperty",e[e.RemoveProperty=4]="RemoveProperty"})(ce||(ce={}));function Qr(e){const t=[...e],r=t.pop();return{positions:t,index:r}}function ki(e,t){const r=e.sheet;t.forEach(n=>{if(n.type===ce.Insert)try{if(Array.isArray(n.index)){const{positions:o,index:i}=Qr(n.index);Xe(r.cssRules,o).insertRule(n.cssText,i)}else r.insertRule(n.cssText,n.index)}catch{}else if(n.type===ce.Remove)try{if(Array.isArray(n.index)){const{positions:o,index:i}=Qr(n.index);Xe(r.cssRules,o).deleteRule(i||0)}else r.deleteRule(n.index)}catch{}else n.type===ce.SetProperty?Xe(r.cssRules,n.index).style.setProperty(n.property,n.value,n.priority):n.type===ce.RemoveProperty&&Xe(r.cssRules,n.index).style.removeProperty(n.property)})}class Ae extends Ei(le){constructor(t){super(),this._unserializedId=-1,this.mirror=Wi(),this.scrollData=null,t&&(this.mirror=t)}get unserializedId(){return this._unserializedId--}createDocument(t,r,n){return new Ae}createDocumentType(t,r,n){const o=new xi(t,r,n);return o.ownerDocument=this,o}createElement(t){const r=t.toUpperCase();let n;switch(r){case"AUDIO":case"VIDEO":n=new Oi(r);break;case"IFRAME":n=new Li(r,this.mirror);break;case"CANVAS":n=new Ri(r);break;case"STYLE":n=new Di(r);break;default:n=new Ze(r);break}return n.ownerDocument=this,n}createComment(t){const r=new Pi(t);return r.ownerDocument=this,r}createCDATASection(t){const r=new Fi(t);return r.ownerDocument=this,r}createTextNode(t){const r=new Ai(t);return r.ownerDocument=this,r}destroyTree(){this.childNodes=[],this.mirror.reset()}open(){super.open(),this._unserializedId=-1}}const xi=Yr(le);class Ze extends Xr(le){constructor(){super(...arguments),this.inputData=null,this.scrollData=null}}class Oi extends Ci(Ze){}class Ri extends Ze{constructor(){super(...arguments),this.canvasMutations=[]}getContext(){return null}}class Di extends Ze{constructor(){super(...arguments),this.rules=[]}}class Li extends Ze{constructor(t,r){super(t),this.contentDocument=new Ae,this.contentDocument.mirror=r}}const Ai=Zr(le),Pi=Kr(le),Fi=qr(le);function _i(e){return e instanceof HTMLFormElement?"FORM":e.tagName.toUpperCase()}function en(e,t,r,n){let o;switch(e.nodeType){case J.DOCUMENT_NODE:n&&n.nodeName==="IFRAME"?o=n.contentDocument:(o=t,o.compatMode=e.compatMode);break;case J.DOCUMENT_TYPE_NODE:const l=e;o=t.createDocumentType(l.name,l.publicId,l.systemId);break;case J.ELEMENT_NODE:const c=e,a=_i(c);o=t.createElement(a);const s=o;for(const{name:u,value:d}of Array.from(c.attributes))s.attributes[u]=d;c.scrollLeft&&(s.scrollLeft=c.scrollLeft),c.scrollTop&&(s.scrollTop=c.scrollTop);break;case J.TEXT_NODE:o=t.createTextNode(e.textContent||"");break;case J.CDATA_SECTION_NODE:o=t.createCDATASection(e.data);break;case J.COMMENT_NODE:o=t.createComment(e.textContent||"");break;case J.DOCUMENT_FRAGMENT_NODE:o=n.attachShadow({mode:"open"});break;default:return null}let i=r.getMeta(e);return t instanceof Ae&&(i||(i=tn(o,t.unserializedId),r.add(e,i)),t.mirror.add(o,Object.assign({},i))),o}function $i(e,t=yi(),r=new Ae){function n(o,i){const l=en(o,r,t,i);l!==null&&(i?.nodeName!=="IFRAME"&&o.nodeType!==J.DOCUMENT_FRAGMENT_NODE&&(i?.appendChild(l),l.parentNode=i,l.parentElement=i),o.nodeName==="IFRAME"?n(o.contentDocument,l):(o.nodeType===J.DOCUMENT_NODE||o.nodeType===J.ELEMENT_NODE||o.nodeType===J.DOCUMENT_FRAGMENT_NODE)&&(o.nodeType===J.ELEMENT_NODE&&o.shadowRoot&&n(o.shadowRoot,l),o.childNodes.forEach(c=>n(c,l))))}return n(e,null),r}function Wi(){return new ji}class ji{constructor(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}getId(t){var r;if(!t)return-1;const n=(r=this.getMeta(t))===null||r===void 0?void 0:r.id;return n??-1}getNode(t){return this.idNodeMap.get(t)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(t){return this.nodeMetaMap.get(t)||null}removeNodeFromMap(t){const r=this.getId(t);this.idNodeMap.delete(r),t.childNodes&&t.childNodes.forEach(n=>this.removeNodeFromMap(n))}has(t){return this.idNodeMap.has(t)}hasNode(t){return this.nodeMetaMap.has(t)}add(t,r){const n=r.id;this.idNodeMap.set(n,t),this.nodeMetaMap.set(t,r)}replace(t,r){this.idNodeMap.set(t,r)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function tn(e,t){switch(e.RRNodeType){case F.Document:return{id:t,type:e.RRNodeType,childNodes:[]};case F.DocumentType:const r=e;return{id:t,type:e.RRNodeType,name:r.name,publicId:r.publicId,systemId:r.systemId};case F.Element:return{id:t,type:e.RRNodeType,tagName:e.tagName.toLowerCase(),attributes:{},childNodes:[]};case F.Text:return{id:t,type:e.RRNodeType,textContent:e.textContent||""};case F.Comment:return{id:t,type:e.RRNodeType,textContent:e.textContent||""};case F.CDATA:return{id:t,type:e.RRNodeType,textContent:""}}}function rn(e){return e=e||Object.create(null),{on:function(r,n){(e[r]||(e[r]=[])).push(n)},off:function(r,n){e[r]&&e[r].splice(e[r].indexOf(n)>>>0,1)},emit:function(r,n){(e[r]||[]).slice().map(function(o){o(n)}),(e["*"]||[]).slice().map(function(o){o(r,n)})}}}var Vi=Object.freeze({__proto__:null,default:rn});function Ui(e=window,t=document){if("scrollBehavior"in t.documentElement.style&&e.__forceSmoothScrollPolyfill__!==!0)return;const r=e.HTMLElement||e.Element,n=468,o={scroll:e.scroll||e.scrollTo,scrollBy:e.scrollBy,elementScroll:r.prototype.scroll||a,scrollIntoView:r.prototype.scrollIntoView},i=e.performance&&e.performance.now?e.performance.now.bind(e.performance):Date.now;function l(p){const y=["MSIE ","Trident/","Edge/"];return new RegExp(y.join("|")).test(p)}const c=l(e.navigator.userAgent)?1:0;function a(p,y){this.scrollLeft=p,this.scrollTop=y}function s(p){return .5*(1-Math.cos(Math.PI*p))}function u(p){if(p===null||typeof p!="object"||p.behavior===void 0||p.behavior==="auto"||p.behavior==="instant")return!0;if(typeof p=="object"&&p.behavior==="smooth")return!1;throw new TypeError("behavior member of ScrollOptions "+p.behavior+" is not a valid value for enumeration ScrollBehavior.")}function d(p,y){if(y==="Y")return p.clientHeight+c<p.scrollHeight;if(y==="X")return p.clientWidth+c<p.scrollWidth}function h(p,y){const b=e.getComputedStyle(p,null)["overflow"+y];return b==="auto"||b==="scroll"}function m(p){const y=d(p,"Y")&&h(p,"Y"),b=d(p,"X")&&h(p,"X");return y||b}function f(p){for(;p!==t.body&&m(p)===!1;)p=p.parentNode||p.host;return p}function v(p){const y=i();let b,N,k,M=(y-p.startTime)/n;M=M>1?1:M,b=s(M),N=p.startX+(p.x-p.startX)*b,k=p.startY+(p.y-p.startY)*b,p.method.call(p.scrollable,N,k),(N!==p.x||k!==p.y)&&e.requestAnimationFrame(v.bind(e,p))}function S(p,y,b){let N,k,M,x;const T=i();p===t.body?(N=e,k=e.scrollX||e.pageXOffset,M=e.scrollY||e.pageYOffset,x=o.scroll):(N=p,k=p.scrollLeft,M=p.scrollTop,x=a),v({scrollable:N,method:x,startTime:T,startX:k,startY:M,x:y,y:b})}e.scroll=e.scrollTo=function(){if(arguments[0]!==void 0){if(u(arguments[0])===!0){o.scroll.call(e,arguments[0].left!==void 0?arguments[0].left:typeof arguments[0]!="object"?arguments[0]:e.scrollX||e.pageXOffset,arguments[0].top!==void 0?arguments[0].top:arguments[1]!==void 0?arguments[1]:e.scrollY||e.pageYOffset);return}S.call(e,t.body,arguments[0].left!==void 0?~~arguments[0].left:e.scrollX||e.pageXOffset,arguments[0].top!==void 0?~~arguments[0].top:e.scrollY||e.pageYOffset)}},e.scrollBy=function(){if(arguments[0]!==void 0){if(u(arguments[0])){o.scrollBy.call(e,arguments[0].left!==void 0?arguments[0].left:typeof arguments[0]!="object"?arguments[0]:0,arguments[0].top!==void 0?arguments[0].top:arguments[1]!==void 0?arguments[1]:0);return}S.call(e,t.body,~~arguments[0].left+(e.scrollX||e.pageXOffset),~~arguments[0].top+(e.scrollY||e.pageYOffset))}},r.prototype.scroll=r.prototype.scrollTo=function(){if(arguments[0]===void 0)return;if(u(arguments[0])===!0){if(typeof arguments[0]=="number"&&arguments[1]===void 0)throw new SyntaxError("Value could not be converted");o.elementScroll.call(this,arguments[0].left!==void 0?~~arguments[0].left:typeof arguments[0]!="object"?~~arguments[0]:this.scrollLeft,arguments[0].top!==void 0?~~arguments[0].top:arguments[1]!==void 0?~~arguments[1]:this.scrollTop);return}const p=arguments[0].left,y=arguments[0].top;S.call(this,this,typeof p>"u"?this.scrollLeft:~~p,typeof y>"u"?this.scrollTop:~~y)},r.prototype.scrollBy=function(){if(arguments[0]!==void 0){if(u(arguments[0])===!0){o.elementScroll.call(this,arguments[0].left!==void 0?~~arguments[0].left+this.scrollLeft:~~arguments[0]+this.scrollLeft,arguments[0].top!==void 0?~~arguments[0].top+this.scrollTop:~~arguments[1]+this.scrollTop);return}this.scroll({left:~~arguments[0].left+this.scrollLeft,top:~~arguments[0].top+this.scrollTop,behavior:arguments[0].behavior})}},r.prototype.scrollIntoView=function(){if(u(arguments[0])===!0){o.scrollIntoView.call(this,arguments[0]===void 0?!0:arguments[0]);return}const p=f(this),y=p.getBoundingClientRect(),b=this.getBoundingClientRect();p!==t.body?(S.call(this,p,p.scrollLeft+b.left-y.left,p.scrollTop+b.top-y.top),e.getComputedStyle(p).position!=="fixed"&&e.scrollBy({left:y.left,top:y.top,behavior:"smooth"})):e.scrollBy({left:b.left,top:b.top,behavior:"smooth"})}}class Gi{constructor(t=[],r){this.timeOffset=0,this.raf=null,this.actions=t,this.speed=r}addAction(t){const r=this.findActionIndex(t);this.actions.splice(r,0,t)}addActions(t){this.actions=this.actions.concat(t)}replaceActions(t){this.actions.length=0,this.actions.splice(0,0,...t)}start(){this.timeOffset=0;let t=performance.now();const{actions:r}=this,n=this;function o(){const i=performance.now();for(n.timeOffset+=(i-t)*n.speed,t=i;r.length;){const l=r[0];if(n.timeOffset>=l.delay)r.shift(),l.doAction();else break}(r.length>0||n.liveMode)&&(n.raf=requestAnimationFrame(o))}this.raf=requestAnimationFrame(o)}clear(){this.raf&&(cancelAnimationFrame(this.raf),this.raf=null),this.actions.length=0}setSpeed(t){this.speed=t}toggleLiveMode(t){this.liveMode=t}isActive(){return this.raf!==null}findActionIndex(t){let r=0,n=this.actions.length-1;for(;r<=n;){const o=Math.floor((r+n)/2);if(this.actions[o].delay<t.delay)r=o+1;else if(this.actions[o].delay>t.delay)n=o-1;else return o+1}return r}}function At(e,t){if(e.type===R.IncrementalSnapshot&&e.data.source===L.MouseMove){const r=e.data.positions[0].timeOffset,n=e.timestamp+r;return e.delay=n-t,n-t}return e.delay=e.timestamp-t,e.delay}/*! *****************************************************************************
|
|
5
|
+
`,10)+1,c=i.substring(l)+(n?"//# sourceMappingURL="+n:""),a=new Blob([c],{type:"application/javascript"});return URL.createObjectURL(a)}function ni(e,t,r){var n;return function(i){return n=n||ri(e,t,r),new Worker(n,i)}}var oi=ni("Lyogcm9sbHVwLXBsdWdpbi13ZWItd29ya2VyLWxvYWRlciAqLwooZnVuY3Rpb24oKXsidXNlIHN0cmljdCI7Zm9yKHZhciByPSJBQkNERUZHSElKS0xNTk9QUVJTVFVWV1hZWmFiY2RlZmdoaWprbG1ub3BxcnN0dXZ3eHl6MDEyMzQ1Njc4OSsvIixsPXR5cGVvZiBVaW50OEFycmF5PiJ1Ij9bXTpuZXcgVWludDhBcnJheSgyNTYpLGY9MDtmPHIubGVuZ3RoO2YrKylsW3IuY2hhckNvZGVBdChmKV09Zjt2YXIgZD1mdW5jdGlvbihzKXt2YXIgZT1uZXcgVWludDhBcnJheShzKSxuLGE9ZS5sZW5ndGgsdD0iIjtmb3Iobj0wO248YTtuKz0zKXQrPXJbZVtuXT4+Ml0sdCs9clsoZVtuXSYzKTw8NHxlW24rMV0+PjRdLHQrPXJbKGVbbisxXSYxNSk8PDJ8ZVtuKzJdPj42XSx0Kz1yW2VbbisyXSY2M107cmV0dXJuIGElMz09PTI/dD10LnN1YnN0cmluZygwLHQubGVuZ3RoLTEpKyI9IjphJTM9PT0xJiYodD10LnN1YnN0cmluZygwLHQubGVuZ3RoLTIpKyI9PSIpLHR9O2NvbnN0IGM9bmV3IE1hcCx1PW5ldyBNYXA7YXN5bmMgZnVuY3Rpb24gcChzLGUpe2NvbnN0IG49YCR7c30tJHtlfWA7aWYodS5oYXMobikpcmV0dXJuIHUuZ2V0KG4pO2NvbnN0IGE9bmV3IE9mZnNjcmVlbkNhbnZhcyhzLGUpO2EuZ2V0Q29udGV4dCgiMmQiKTtjb25zdCB0PWF3YWl0KGF3YWl0IGEuY29udmVydFRvQmxvYigpKS5hcnJheUJ1ZmZlcigpLGc9ZCh0KTtyZXR1cm4gdS5zZXQobixnKSxnfWNvbnN0IGk9c2VsZjtpLm9ubWVzc2FnZT1hc3luYyBmdW5jdGlvbihzKXtpZighKCJPZmZzY3JlZW5DYW52YXMiaW4gZ2xvYmFsVGhpcykpcmV0dXJuIGkucG9zdE1lc3NhZ2Uoe2lkOnMuZGF0YS5pZH0pO2NvbnN0e2lkOmUsYml0bWFwOm4sd2lkdGg6YSxoZWlnaHQ6dH09cy5kYXRhLGc9cChhLHQpLGg9bmV3IE9mZnNjcmVlbkNhbnZhcyhhLHQpO2guZ2V0Q29udGV4dCgiMmQiKS5kcmF3SW1hZ2UobiwwLDApLG4uY2xvc2UoKTtjb25zdCB3PWF3YWl0IGguY29udmVydFRvQmxvYigpLHk9dy50eXBlLGI9YXdhaXQgdy5hcnJheUJ1ZmZlcigpLG89ZChiKTtpZighYy5oYXMoZSkmJmF3YWl0IGc9PT1vKXJldHVybiBjLnNldChlLG8pLGkucG9zdE1lc3NhZ2Uoe2lkOmV9KTtpZihjLmdldChlKT09PW8pcmV0dXJuIGkucG9zdE1lc3NhZ2Uoe2lkOmV9KTtpLnBvc3RNZXNzYWdlKHtpZDplLHR5cGU6eSxiYXNlNjQ6byx3aWR0aDphLGhlaWdodDp0fSksYy5zZXQoZSxvKX19KSgpOwoK",null,!1),Gr=Object.getOwnPropertySymbols,ii=Object.prototype.hasOwnProperty,si=Object.prototype.propertyIsEnumerable,ai=(e,t)=>{var r={};for(var n in e)ii.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Gr)for(var n of Gr(e))t.indexOf(n)<0&&si.call(e,n)&&(r[n]=e[n]);return r},li=(e,t,r)=>new Promise((n,o)=>{var i=a=>{try{c(r.next(a))}catch(s){o(s)}},l=a=>{try{c(r.throw(a))}catch(s){o(s)}},c=a=>a.done?n(a.value):Promise.resolve(a.value).then(i,l);c((r=r.apply(e,t)).next())});class ci{constructor(t){this.pendingCanvasMutations=new Map,this.rafStamps={latestId:0,invokeId:null},this.frozen=!1,this.locked=!1,this.processMutation=function(l,c){(this.rafStamps.invokeId&&this.rafStamps.latestId!==this.rafStamps.invokeId||!this.rafStamps.invokeId)&&(this.rafStamps.invokeId=this.rafStamps.latestId),this.pendingCanvasMutations.has(l)||this.pendingCanvasMutations.set(l,[]),this.pendingCanvasMutations.get(l).push(c)};const{sampling:r="all",win:n,blockClass:o,recordCanvas:i}=t;this.mutationCb=t.mutationCb,this.mirror=t.mirror,i&&r==="all"&&this.initCanvasMutationObserver(n,o),i&&typeof r=="number"&&this.initCanvasFPSObserver(r,n,o)}reset(){this.pendingCanvasMutations.clear(),this.resetObservers&&this.resetObservers()}freeze(){this.frozen=!0}unfreeze(){this.frozen=!1}lock(){this.locked=!0}unlock(){this.locked=!1}initCanvasFPSObserver(t,r,n){const o=Vr(r,n),i=new Map,l=new oi;l.onmessage=d=>{const{id:h}=d.data;if(i.set(h,!1),!("base64"in d.data))return;const{base64:m,type:f,width:v,height:S}=d.data;this.mutationCb({id:h,type:fe["2D"],commands:[{property:"clearRect",args:[0,0,v,S]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:m}],type:f}]},0,0]}]})};const c=1e3/t;let a=0,s;const u=d=>{if(a&&d-a<c){s=requestAnimationFrame(u);return}a=d,r.document.querySelectorAll(`canvas:not(.${n} *)`).forEach(h=>li(this,null,function*(){var m;const f=this.mirror.getId(h);if(i.get(f))return;if(i.set(f,!0),["webgl","webgl2"].includes(h.__context)){const S=h.getContext(h.__context);((m=S?.getContextAttributes())==null?void 0:m.preserveDrawingBuffer)===!1&&S?.clear(S.COLOR_BUFFER_BIT)}const v=yield createImageBitmap(h);l.postMessage({id:f,bitmap:v,width:h.width,height:h.height},[v])})),s=requestAnimationFrame(u)};s=requestAnimationFrame(u),this.resetObservers=()=>{o(),cancelAnimationFrame(s)}}initCanvasMutationObserver(t,r){this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher();const n=Vr(t,r),o=Qo(this.processMutation.bind(this),t,r,this.mirror),i=ei(this.processMutation.bind(this),t,r,this.mirror);this.resetObservers=()=>{n(),o(),i()}}startPendingCanvasMutationFlusher(){requestAnimationFrame(()=>this.flushPendingCanvasMutations())}startRAFTimestamping(){const t=r=>{this.rafStamps.latestId=r,requestAnimationFrame(t)};requestAnimationFrame(t)}flushPendingCanvasMutations(){this.pendingCanvasMutations.forEach((t,r)=>{const n=this.mirror.getId(r);this.flushPendingCanvasMutationFor(r,n)}),requestAnimationFrame(()=>this.flushPendingCanvasMutations())}flushPendingCanvasMutationFor(t,r){if(this.frozen||this.locked)return;const n=this.pendingCanvasMutations.get(t);if(!n||r===-1)return;const o=n.map(l=>ai(l,["type"])),{type:i}=n[0];this.mutationCb({id:r,type:i,commands:o}),this.pendingCanvasMutations.delete(t)}}class ui{constructor(t){this.trackedStylesheets=new WeakSet,this.mutationCb=t.mutationCb}addStylesheet(t){this.trackedStylesheets.has(t)||(this.trackedStylesheets.add(t),this.trackStylesheet(t))}trackStylesheet(t){}attachStylesheet(t,r,n){this.mutationCb({adds:[{parentId:n.getId(t),nextId:null,node:r}],removes:[],texts:[],attributes:[]}),this.addStylesheet(t)}}var di=Object.defineProperty,hi=Object.defineProperties,mi=Object.getOwnPropertyDescriptors,zr=Object.getOwnPropertySymbols,pi=Object.prototype.hasOwnProperty,fi=Object.prototype.propertyIsEnumerable,Br=(e,t,r)=>t in e?di(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,ae=(e,t)=>{for(var r in t||(t={}))pi.call(t,r)&&Br(e,r,t[r]);if(zr)for(var r of zr(t))fi.call(t,r)&&Br(e,r,t[r]);return e},vi=(e,t)=>hi(e,mi(t));function te(e){return vi(ae({},e),{timestamp:Date.now()})}let Q,Ye;const de=tr();function Ce(e={}){const{emit:t,checkoutEveryNms:r,checkoutEveryNth:n,blockClass:o="highlight-block",blockSelector:i=null,ignoreClass:l="highlight-ignore",maskTextClass:c="highlight-mask",maskTextSelector:a=null,inlineStylesheet:s=!0,maskAllInputs:u,maskInputOptions:d,slimDOMOptions:h,maskInputFn:m,maskTextFn:f,hooks:v,packFn:S,sampling:p={},mousemoveWait:y,recordCanvas:b=!1,userTriggeredOnInput:N=!1,collectFonts:k=!1,inlineImages:M=!1,plugins:x,keepIframeSrcFn:T=()=>!1,enableStrictPrivacy:D=!1}=e;if(!t)throw new Error("emit function is required");y!==void 0&&p.mousemove===void 0&&(p.mousemove=y),de.reset();const W=u===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0}:d!==void 0?d:{password:!0},Y=h===!0||h==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:h==="all",headMetaDescKeywords:h==="all"}:h||{};Ct();let j,H=0;const A=E=>{for(const I of x||[])I.eventProcessor&&(E=I.eventProcessor(E));return S&&(E=S(E)),E};Q=(E,I)=>{var G;if(((G=Ee[0])==null?void 0:G.isFrozen())&&E.type!==R.FullSnapshot&&!(E.type===R.IncrementalSnapshot&&E.data.source===L.Mutation)&&Ee.forEach(z=>z.unfreeze()),t(A(E),I),E.type===R.FullSnapshot)j=E,H=0;else if(E.type===R.IncrementalSnapshot){if(E.data.source===L.Mutation&&E.data.isAttachIframe)return;H++;const z=n&&H>=n,oe=r&&E.timestamp-j.timestamp>r;(z||oe)&&Ye(!0)}};const U=E=>{Q(te({type:R.IncrementalSnapshot,data:ae({source:L.Mutation},E)}))},P=E=>Q(te({type:R.IncrementalSnapshot,data:ae({source:L.Scroll},E)})),O=E=>Q(te({type:R.IncrementalSnapshot,data:ae({source:L.CanvasMutation},E)})),$=new Go({mutationCb:U}),w=new ui({mutationCb:U}),g=new ci({recordCanvas:b,mutationCb:O,win:window,blockClass:o,mirror:de,sampling:p.canvas}),C=new Zo({mutationCb:U,scrollCb:P,bypassOptions:{blockClass:o,blockSelector:i,maskTextClass:c,maskTextSelector:a,inlineStylesheet:s,maskInputOptions:W,maskTextFn:f,maskInputFn:m,recordCanvas:b,inlineImages:M,sampling:p,slimDOMOptions:Y,iframeManager:$,stylesheetManager:w,canvasManager:g,enableStrictPrivacy:D},mirror:de});Ye=(E=!1)=>{var I,G,z,oe;Q(te({type:R.Meta,data:{href:window.location.href,width:Nt(),height:wt()}}),E),Ee.forEach(X=>X.lock());const V=po(document,{mirror:de,blockClass:o,blockSelector:i,maskTextClass:c,maskTextSelector:a,inlineStylesheet:s,maskAllInputs:W,maskTextFn:f,slimDOM:Y,recordCanvas:b,inlineImages:M,enableStrictPrivacy:D,onSerialize:X=>{Re(X,de)&&$.addIframe(X),Mt(X,de)&&w.addStylesheet(X),ze(X)&&C.addShadowRoot(X.shadowRoot,document)},onIframeLoad:(X,ge)=>{$.attachIframe(X,ge,de),C.observeAttachShadow(X)},onStylesheetLoad:(X,ge)=>{w.attachStylesheet(X,ge,de)},keepIframeSrcFn:T});if(!V)return console.warn("Failed to snapshot the document");Q(te({type:R.FullSnapshot,data:{node:V,initialOffset:{left:window.pageXOffset!==void 0?window.pageXOffset:document?.documentElement.scrollLeft||((G=(I=document?.body)==null?void 0:I.parentElement)==null?void 0:G.scrollLeft)||document?.body.scrollLeft||0,top:window.pageYOffset!==void 0?window.pageYOffset:document?.documentElement.scrollTop||((oe=(z=document?.body)==null?void 0:z.parentElement)==null?void 0:oe.scrollTop)||document?.body.scrollTop||0}}})),Ee.forEach(X=>X.unlock())};try{const E=[];E.push(ie("DOMContentLoaded",()=>{Q(te({type:R.DomContentLoaded,data:{}}))}));const I=z=>{var oe;return Uo({mutationCb:U,mousemoveCb:(V,X)=>Q(te({type:R.IncrementalSnapshot,data:{source:X,positions:V}})),mouseInteractionCb:V=>Q(te({type:R.IncrementalSnapshot,data:ae({source:L.MouseInteraction},V)})),scrollCb:P,viewportResizeCb:V=>Q(te({type:R.IncrementalSnapshot,data:ae({source:L.ViewportResize},V)})),inputCb:V=>Q(te({type:R.IncrementalSnapshot,data:ae({source:L.Input},V)})),mediaInteractionCb:V=>Q(te({type:R.IncrementalSnapshot,data:ae({source:L.MediaInteraction},V)})),styleSheetRuleCb:V=>Q(te({type:R.IncrementalSnapshot,data:ae({source:L.StyleSheetRule},V)})),styleDeclarationCb:V=>Q(te({type:R.IncrementalSnapshot,data:ae({source:L.StyleDeclaration},V)})),canvasMutationCb:O,fontCb:V=>Q(te({type:R.IncrementalSnapshot,data:ae({source:L.Font},V)})),blockClass:o,ignoreClass:l,maskTextClass:c,maskTextSelector:a,maskInputOptions:W,inlineStylesheet:s,sampling:p,recordCanvas:b,inlineImages:M,userTriggeredOnInput:N,collectFonts:k,doc:z,maskInputFn:m,maskTextFn:f,blockSelector:i,slimDOMOptions:Y,mirror:de,iframeManager:$,stylesheetManager:w,shadowDomManager:C,canvasManager:g,enableStrictPrivacy:D,plugins:((oe=x?.filter(V=>V.observer))==null?void 0:oe.map(V=>({observer:V.observer,options:V.options,callback:X=>Q(te({type:R.Plugin,data:{plugin:V.name,payload:X}}))})))||[]},v)};$.addLoadListener(z=>{E.push(I(z.contentDocument))});const G=()=>{Ye(),E.push(I(document))};return document.readyState==="interactive"||document.readyState==="complete"?G():E.push(ie("load",()=>{Q(te({type:R.Load,data:{}})),G()},window)),()=>{E.forEach(z=>z())}}catch(E){console.warn(E)}}Ce.addCustomEvent=(e,t)=>{!Q||Q(te({type:R.Custom,data:{tag:e,payload:t}}))},Ce.freezePage=()=>{Ee.forEach(e=>e.freeze())},Ce.takeFullSnapshot=e=>{if(!Ye)throw new Error("please take full snapshot after start recording");Ye(e)},Ce.mirror=de;var F;(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"})(F||(F={}));var gi=function(){function e(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}return e.prototype.getId=function(t){var r;if(!t)return-1;var n=(r=this.getMeta(t))===null||r===void 0?void 0:r.id;return n??-1},e.prototype.getNode=function(t){return this.idNodeMap.get(t)||null},e.prototype.getIds=function(){return Array.from(this.idNodeMap.keys())},e.prototype.getMeta=function(t){return this.nodeMetaMap.get(t)||null},e.prototype.removeNodeFromMap=function(t){var r=this,n=this.getId(t);this.idNodeMap.delete(n),t.childNodes&&t.childNodes.forEach(function(o){return r.removeNodeFromMap(o)})},e.prototype.has=function(t){return this.idNodeMap.has(t)},e.prototype.hasNode=function(t){return this.nodeMetaMap.has(t)},e.prototype.add=function(t,r){var n=r.id;this.idNodeMap.set(n,t),this.nodeMetaMap.set(t,r)},e.prototype.replace=function(t,r){this.idNodeMap.set(t,r)},e.prototype.reset=function(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap},e}();function yi(){return new gi}function bi(e){const t={},r=/;(?![^(]*\))/g,n=/:(.+)/,o=/\/\*.*?\*\//g;return e.replace(o,"").split(r).forEach(function(i){if(i){const l=i.split(n);l.length>1&&(t[Rt(l[0].trim())]=l[1].trim())}}),t}function Hr(e){const t=[];for(const r in e){const n=e[r];if(typeof n!="string")continue;const o=Ti(r);t.push(`${o}: ${n};`)}return t.join(" ")}const Si=/-([a-z])/g,wi=/^--[a-zA-Z0-9-]+$/,Rt=e=>wi.test(e)?e:e.replace(Si,(t,r)=>r?r.toUpperCase():""),Ni=/\B([A-Z])/g,Ti=e=>e.replace(Ni,"-$1").toLowerCase();class le{constructor(...t){this.childNodes=[],this.parentElement=null,this.parentNode=null,this.ELEMENT_NODE=J.ELEMENT_NODE,this.TEXT_NODE=J.TEXT_NODE}get firstChild(){return this.childNodes[0]||null}get lastChild(){return this.childNodes[this.childNodes.length-1]||null}get nextSibling(){const t=this.parentNode;if(!t)return null;const r=t.childNodes,n=r.indexOf(this);return r[n+1]||null}contains(t){if(t===this)return!0;for(const r of this.childNodes)if(r.contains(t))return!0;return!1}appendChild(t){throw new Error("RRDomException: Failed to execute 'appendChild' on 'RRNode': This RRNode type does not support this method.")}insertBefore(t,r){throw new Error("RRDomException: Failed to execute 'insertBefore' on 'RRNode': This RRNode type does not support this method.")}removeChild(t){throw new Error("RRDomException: Failed to execute 'removeChild' on 'RRNode': This RRNode type does not support this method.")}toString(){return"RRNode"}}function Ei(e){return class Vn extends e{constructor(){super(...arguments),this.nodeType=J.DOCUMENT_NODE,this.nodeName="#document",this.compatMode="CSS1Compat",this.RRNodeType=F.Document,this.textContent=null}get documentElement(){return this.childNodes.find(r=>r.RRNodeType===F.Element&&r.tagName==="HTML")||null}get body(){var r;return((r=this.documentElement)===null||r===void 0?void 0:r.childNodes.find(n=>n.RRNodeType===F.Element&&n.tagName==="BODY"))||null}get head(){var r;return((r=this.documentElement)===null||r===void 0?void 0:r.childNodes.find(n=>n.RRNodeType===F.Element&&n.tagName==="HEAD"))||null}get implementation(){return this}get firstElementChild(){return this.documentElement}appendChild(r){const n=r.RRNodeType;if((n===F.Element||n===F.DocumentType)&&this.childNodes.some(o=>o.RRNodeType===n))throw new Error(`RRDomException: Failed to execute 'appendChild' on 'RRNode': Only one ${n===F.Element?"RRElement":"RRDoctype"} on RRDocument allowed.`);return r.parentElement=null,r.parentNode=this,this.childNodes.push(r),r}insertBefore(r,n){const o=r.RRNodeType;if((o===F.Element||o===F.DocumentType)&&this.childNodes.some(l=>l.RRNodeType===o))throw new Error(`RRDomException: Failed to execute 'insertBefore' on 'RRNode': Only one ${o===F.Element?"RRElement":"RRDoctype"} on RRDocument allowed.`);if(n===null)return this.appendChild(r);const i=this.childNodes.indexOf(n);if(i==-1)throw new Error("Failed to execute 'insertBefore' on 'RRNode': The RRNode before which the new node is to be inserted is not a child of this RRNode.");return this.childNodes.splice(i,0,r),r.parentElement=null,r.parentNode=this,r}removeChild(r){const n=this.childNodes.indexOf(r);if(n===-1)throw new Error("Failed to execute 'removeChild' on 'RRDocument': The RRNode to be removed is not a child of this RRNode.");return this.childNodes.splice(n,1),r.parentElement=null,r.parentNode=null,r}open(){this.childNodes=[]}close(){}write(r){let n;if(r==='<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">'?n="-//W3C//DTD XHTML 1.0 Transitional//EN":r==='<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "">'&&(n="-//W3C//DTD HTML 4.0 Transitional//EN"),n){const o=this.createDocumentType("html",n,"");this.open(),this.appendChild(o)}}createDocument(r,n,o){return new Vn}createDocumentType(r,n,o){const i=new(Yr(le))(r,n,o);return i.ownerDocument=this,i}createElement(r){const n=new(Xr(le))(r);return n.ownerDocument=this,n}createElementNS(r,n){return this.createElement(n)}createTextNode(r){const n=new(Zr(le))(r);return n.ownerDocument=this,n}createComment(r){const n=new(Kr(le))(r);return n.ownerDocument=this,n}createCDATASection(r){const n=new(qr(le))(r);return n.ownerDocument=this,n}toString(){return"RRDocument"}}}function Yr(e){return class extends e{constructor(t,r,n){super(),this.nodeType=J.DOCUMENT_TYPE_NODE,this.RRNodeType=F.DocumentType,this.textContent=null,this.name=t,this.publicId=r,this.systemId=n,this.nodeName=t}toString(){return"RRDocumentType"}}}function Xr(e){return class extends e{constructor(t){super(),this.nodeType=J.ELEMENT_NODE,this.RRNodeType=F.Element,this.attributes={},this.shadowRoot=null,this.tagName=t.toUpperCase(),this.nodeName=t.toUpperCase()}get textContent(){let t="";return this.childNodes.forEach(r=>t+=r.textContent),t}set textContent(t){this.childNodes=[this.ownerDocument.createTextNode(t)]}get classList(){return new Ii(this.attributes.class,t=>{this.attributes.class=t})}get id(){return this.attributes.id||""}get className(){return this.attributes.class||""}get style(){const t=this.attributes.style?bi(this.attributes.style):{},r=/\B([A-Z])/g;return t.setProperty=(n,o,i)=>{if(r.test(n))return;const l=Rt(n);o?t[l]=o:delete t[l],i==="important"&&(t[l]+=" !important"),this.attributes.style=Hr(t)},t.removeProperty=n=>{if(r.test(n))return"";const o=Rt(n),i=t[o]||"";return delete t[o],this.attributes.style=Hr(t),i},t}getAttribute(t){return this.attributes[t]||null}setAttribute(t,r){this.attributes[t]=r}setAttributeNS(t,r,n){this.setAttribute(r,n)}removeAttribute(t){delete this.attributes[t]}appendChild(t){return this.childNodes.push(t),t.parentNode=this,t.parentElement=this,t}insertBefore(t,r){if(r===null)return this.appendChild(t);const n=this.childNodes.indexOf(r);if(n==-1)throw new Error("Failed to execute 'insertBefore' on 'RRNode': The RRNode before which the new node is to be inserted is not a child of this RRNode.");return this.childNodes.splice(n,0,t),t.parentElement=this,t.parentNode=this,t}removeChild(t){const r=this.childNodes.indexOf(t);if(r===-1)throw new Error("Failed to execute 'removeChild' on 'RRElement': The RRNode to be removed is not a child of this RRNode.");return this.childNodes.splice(r,1),t.parentElement=null,t.parentNode=null,t}attachShadow(t){const r=this.ownerDocument.createElement("SHADOWROOT");return this.shadowRoot=r,r}dispatchEvent(t){return!0}toString(){let t="";for(const r in this.attributes)t+=`${r}="${this.attributes[r]}" `;return`${this.tagName} ${t}`}}}function Ci(e){return class extends e{attachShadow(t){throw new Error("RRDomException: Failed to execute 'attachShadow' on 'RRElement': This RRElement does not support attachShadow")}play(){this.paused=!1}pause(){this.paused=!0}}}function Zr(e){return class extends e{constructor(t){super(),this.nodeType=J.TEXT_NODE,this.nodeName="#text",this.RRNodeType=F.Text,this.data=t}get textContent(){return this.data}set textContent(t){this.data=t}toString(){return`RRText text=${JSON.stringify(this.data)}`}}}function Kr(e){return class extends e{constructor(t){super(),this.nodeType=J.COMMENT_NODE,this.nodeName="#comment",this.RRNodeType=F.Comment,this.data=t}get textContent(){return this.data}set textContent(t){this.data=t}toString(){return`RRComment text=${JSON.stringify(this.data)}`}}}function qr(e){return class extends e{constructor(t){super(),this.nodeName="#cdata-section",this.nodeType=J.CDATA_SECTION_NODE,this.RRNodeType=F.CDATA,this.data=t}get textContent(){return this.data}set textContent(t){this.data=t}toString(){return`RRCDATASection data=${JSON.stringify(this.data)}`}}}class Ii{constructor(t,r){if(this.classes=[],this.add=(...n)=>{for(const o of n){const i=String(o);this.classes.indexOf(i)>=0||this.classes.push(i)}this.onChange&&this.onChange(this.classes.join(" "))},this.remove=(...n)=>{this.classes=this.classes.filter(o=>n.indexOf(o)===-1),this.onChange&&this.onChange(this.classes.join(" "))},t){const n=t.trim().split(/\s+/);this.classes.push(...n)}this.onChange=r}}var J;(function(e){e[e.PLACEHOLDER=0]="PLACEHOLDER",e[e.ELEMENT_NODE=1]="ELEMENT_NODE",e[e.ATTRIBUTE_NODE=2]="ATTRIBUTE_NODE",e[e.TEXT_NODE=3]="TEXT_NODE",e[e.CDATA_SECTION_NODE=4]="CDATA_SECTION_NODE",e[e.ENTITY_REFERENCE_NODE=5]="ENTITY_REFERENCE_NODE",e[e.ENTITY_NODE=6]="ENTITY_NODE",e[e.PROCESSING_INSTRUCTION_NODE=7]="PROCESSING_INSTRUCTION_NODE",e[e.COMMENT_NODE=8]="COMMENT_NODE",e[e.DOCUMENT_NODE=9]="DOCUMENT_NODE",e[e.DOCUMENT_TYPE_NODE=10]="DOCUMENT_TYPE_NODE",e[e.DOCUMENT_FRAGMENT_NODE=11]="DOCUMENT_FRAGMENT_NODE"})(J||(J={}));const Dt={svg:"http://www.w3.org/2000/svg","xlink:href":"http://www.w3.org/1999/xlink",xmlns:"http://www.w3.org/2000/xmlns/"};function he(e,t,r,n){const o=e.childNodes,i=t.childNodes;n=n||t.mirror||t.ownerDocument.mirror,(o.length>0||i.length>0)&&Jr(Array.from(o),i,e,r,n);let l=null,c=null;switch(t.RRNodeType){case F.Document:{c=t.scrollData;break}case F.Element:{const a=e,s=t;switch(Mi(a,s,n),c=s.scrollData,l=s.inputData,s.tagName){case"AUDIO":case"VIDEO":{const u=e,d=s;d.paused!==void 0&&(d.paused?u.pause():u.play()),d.muted!==void 0&&(u.muted=d.muted),d.volume!==void 0&&(u.volume=d.volume),d.currentTime!==void 0&&(u.currentTime=d.currentTime);break}case"CANVAS":t.canvasMutations.forEach(u=>r.applyCanvas(u.event,u.mutation,e));break;case"STYLE":ki(a,t.rules);break}if(s.shadowRoot){a.shadowRoot||a.attachShadow({mode:"open"});const u=a.shadowRoot.childNodes,d=s.shadowRoot.childNodes;(u.length>0||d.length>0)&&Jr(Array.from(u),d,a.shadowRoot,r,n)}break}case F.Text:case F.Comment:case F.CDATA:e.textContent!==t.data&&(e.textContent=t.data);break}if(c&&r.applyScroll(c,!0),l&&r.applyInput(l),t.nodeName==="IFRAME"){const a=e.contentDocument,s=t;if(a){const u=n.getMeta(s.contentDocument);u&&r.mirror.add(a,Object.assign({},u)),he(a,s.contentDocument,r,n)}}}function Mi(e,t,r){const n=e.attributes,o=t.attributes;for(const i in o){const l=o[i],c=r.getMeta(t);if(c&&"isSVG"in c&&c.isSVG&&Dt[i])e.setAttributeNS(Dt[i],i,l);else if(t.tagName==="CANVAS"&&i==="rr_dataURL"){const a=document.createElement("img");a.src=l,a.onload=()=>{const s=e.getContext("2d");s&&s.drawImage(a,0,0,a.width,a.height)}}else e.setAttribute(i,l)}for(const{name:i}of Array.from(n))i in o||e.removeAttribute(i);t.scrollLeft&&(e.scrollLeft=t.scrollLeft),t.scrollTop&&(e.scrollTop=t.scrollTop)}function Jr(e,t,r,n,o){var i,l;let c=0,a=e.length-1,s=0,u=t.length-1,d=e[c],h=e[a],m=t[s],f=t[u],v,S;for(;c<=a&&s<=u;)if(d===void 0)d=e[++c];else if(h===void 0)h=e[--a];else if(n.mirror.getId(d)===o.getId(m))he(d,m,n,o),d=e[++c],m=t[++s];else if(n.mirror.getId(h)===o.getId(f))he(h,f,n,o),h=e[--a],f=t[--u];else if(n.mirror.getId(d)===o.getId(f))try{r.insertBefore(d,h.nextSibling)}catch(p){console.error(p,r,d,h),he(d,f,n,o),d=e[++c],f=t[--u]}else if(n.mirror.getId(h)===o.getId(m))try{r.insertBefore(h,d)}catch(p){console.error(p,r,h,d),he(h,m,n,o),h=e[--a],m=t[++s]}else{if(!v){v={};for(let p=c;p<=a;p++){const y=e[p];y&&n.mirror.hasNode(y)&&(v[n.mirror.getId(y)]=p)}}if(S=v[o.getId(m)],S){const p=e[S];try{r.insertBefore(p,d)}catch(y){console.error(y,r,p,d),he(p,m,n,o),e[S]=void 0}}else{const p=Lt(m,n.mirror,o);((i=n.mirror.getMeta(r))===null||i===void 0?void 0:i.type)===F.Document&&((l=n.mirror.getMeta(p))===null||l===void 0?void 0:l.type)===F.Element&&r.documentElement&&(r.removeChild(r.documentElement),e[c]=void 0,d=void 0);try{r.insertBefore(p,d||null)}catch(y){console.error(y,r,p,d||null),he(p,m,n,o)}}m=t[++s]}if(c>a){const p=t[u+1];let y=null;for(p&&r.childNodes.forEach(b=>{n.mirror.getId(b)===o.getId(p)&&(y=b)});s<=u;++s){const b=Lt(t[s],n.mirror,o);try{r.insertBefore(b,y)}catch(N){console.error(N,r,b,y),he(b,t[s],n,o)}}}else if(s>u)for(;c<=a;c++){const p=e[c];p&&(r.removeChild(p),n.mirror.removeNodeFromMap(p))}}function Lt(e,t,r){let n=t.getNode(r.getId(e));const o=r.getMeta(e);if(n!==null)return n;switch(e.RRNodeType){case F.Document:n=new Document;break;case F.DocumentType:n=document.implementation.createDocumentType(e.name,e.publicId,e.systemId);break;case F.Element:{e.tagName.toLowerCase(),o&&"isSVG"in o&&o?.isSVG?n=document.createElementNS(Dt.svg,e.tagName.toLowerCase()):n=document.createElement(e.tagName);break}case F.Text:n=document.createTextNode(e.data);break;case F.Comment:n=document.createComment(e.data);break;case F.CDATA:n=document.createCDATASection(e.data);break}return o&&t.add(n,Object.assign({},o)),n}function Xe(e,t){const r=e[t[0]];return t.length===1?r:Xe(r.cssRules[t[1]].cssRules,t.slice(2))}var ce;(function(e){e[e.Insert=0]="Insert",e[e.Remove=1]="Remove",e[e.Snapshot=2]="Snapshot",e[e.SetProperty=3]="SetProperty",e[e.RemoveProperty=4]="RemoveProperty"})(ce||(ce={}));function Qr(e){const t=[...e],r=t.pop();return{positions:t,index:r}}function ki(e,t){const r=e.sheet;t.forEach(n=>{if(n.type===ce.Insert)try{if(Array.isArray(n.index)){const{positions:o,index:i}=Qr(n.index);Xe(r.cssRules,o).insertRule(n.cssText,i)}else r.insertRule(n.cssText,n.index)}catch{}else if(n.type===ce.Remove)try{if(Array.isArray(n.index)){const{positions:o,index:i}=Qr(n.index);Xe(r.cssRules,o).deleteRule(i||0)}else r.deleteRule(n.index)}catch{}else n.type===ce.SetProperty?Xe(r.cssRules,n.index).style.setProperty(n.property,n.value,n.priority):n.type===ce.RemoveProperty&&Xe(r.cssRules,n.index).style.removeProperty(n.property)})}class Ae extends Ei(le){constructor(t){super(),this._unserializedId=-1,this.mirror=Wi(),this.scrollData=null,t&&(this.mirror=t)}get unserializedId(){return this._unserializedId--}createDocument(t,r,n){return new Ae}createDocumentType(t,r,n){const o=new xi(t,r,n);return o.ownerDocument=this,o}createElement(t){const r=t.toUpperCase();let n;switch(r){case"AUDIO":case"VIDEO":n=new Oi(r);break;case"IFRAME":n=new Li(r,this.mirror);break;case"CANVAS":n=new Ri(r);break;case"STYLE":n=new Di(r);break;default:n=new Ze(r);break}return n.ownerDocument=this,n}createComment(t){const r=new Pi(t);return r.ownerDocument=this,r}createCDATASection(t){const r=new Fi(t);return r.ownerDocument=this,r}createTextNode(t){const r=new Ai(t);return r.ownerDocument=this,r}destroyTree(){this.childNodes=[],this.mirror.reset()}open(){super.open(),this._unserializedId=-1}}const xi=Yr(le);class Ze extends Xr(le){constructor(){super(...arguments),this.inputData=null,this.scrollData=null}}class Oi extends Ci(Ze){}class Ri extends Ze{constructor(){super(...arguments),this.canvasMutations=[]}getContext(){return null}}class Di extends Ze{constructor(){super(...arguments),this.rules=[]}}class Li extends Ze{constructor(t,r){super(t),this.contentDocument=new Ae,this.contentDocument.mirror=r}}const Ai=Zr(le),Pi=Kr(le),Fi=qr(le);function _i(e){return e instanceof HTMLFormElement?"FORM":e.tagName.toUpperCase()}function en(e,t,r,n){let o;switch(e.nodeType){case J.DOCUMENT_NODE:n&&n.nodeName==="IFRAME"?o=n.contentDocument:(o=t,o.compatMode=e.compatMode);break;case J.DOCUMENT_TYPE_NODE:const l=e;o=t.createDocumentType(l.name,l.publicId,l.systemId);break;case J.ELEMENT_NODE:const c=e,a=_i(c);o=t.createElement(a);const s=o;for(const{name:u,value:d}of Array.from(c.attributes))s.attributes[u]=d;c.scrollLeft&&(s.scrollLeft=c.scrollLeft),c.scrollTop&&(s.scrollTop=c.scrollTop);break;case J.TEXT_NODE:o=t.createTextNode(e.textContent||"");break;case J.CDATA_SECTION_NODE:o=t.createCDATASection(e.data);break;case J.COMMENT_NODE:o=t.createComment(e.textContent||"");break;case J.DOCUMENT_FRAGMENT_NODE:o=n.attachShadow({mode:"open"});break;default:return null}let i=r.getMeta(e);return t instanceof Ae&&(i||(i=tn(o,t.unserializedId),r.add(e,i)),t.mirror.add(o,Object.assign({},i))),o}function $i(e,t=yi(),r=new Ae){function n(o,i){const l=en(o,r,t,i);l!==null&&(i?.nodeName!=="IFRAME"&&o.nodeType!==J.DOCUMENT_FRAGMENT_NODE&&(i?.appendChild(l),l.parentNode=i,l.parentElement=i),o.nodeName==="IFRAME"?n(o.contentDocument,l):(o.nodeType===J.DOCUMENT_NODE||o.nodeType===J.ELEMENT_NODE||o.nodeType===J.DOCUMENT_FRAGMENT_NODE)&&(o.nodeType===J.ELEMENT_NODE&&o.shadowRoot&&n(o.shadowRoot,l),o.childNodes.forEach(c=>n(c,l))))}return n(e,null),r}function Wi(){return new ji}class ji{constructor(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}getId(t){var r;if(!t)return-1;const n=(r=this.getMeta(t))===null||r===void 0?void 0:r.id;return n??-1}getNode(t){return this.idNodeMap.get(t)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(t){return this.nodeMetaMap.get(t)||null}removeNodeFromMap(t){const r=this.getId(t);this.idNodeMap.delete(r),t.childNodes&&t.childNodes.forEach(n=>this.removeNodeFromMap(n))}has(t){return this.idNodeMap.has(t)}hasNode(t){return this.nodeMetaMap.has(t)}add(t,r){const n=r.id;this.idNodeMap.set(n,t),this.nodeMetaMap.set(t,r)}replace(t,r){this.idNodeMap.set(t,r)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function tn(e,t){switch(e.RRNodeType){case F.Document:return{id:t,type:e.RRNodeType,childNodes:[]};case F.DocumentType:const r=e;return{id:t,type:e.RRNodeType,name:r.name,publicId:r.publicId,systemId:r.systemId};case F.Element:return{id:t,type:e.RRNodeType,tagName:e.tagName.toLowerCase(),attributes:{},childNodes:[]};case F.Text:return{id:t,type:e.RRNodeType,textContent:e.textContent||""};case F.Comment:return{id:t,type:e.RRNodeType,textContent:e.textContent||""};case F.CDATA:return{id:t,type:e.RRNodeType,textContent:""}}}function rn(e){return e=e||Object.create(null),{on:function(r,n){(e[r]||(e[r]=[])).push(n)},off:function(r,n){e[r]&&e[r].splice(e[r].indexOf(n)>>>0,1)},emit:function(r,n){(e[r]||[]).slice().map(function(o){o(n)}),(e["*"]||[]).slice().map(function(o){o(r,n)})}}}var Vi=Object.freeze({__proto__:null,default:rn});function Ui(e=window,t=document){if("scrollBehavior"in t.documentElement.style&&e.__forceSmoothScrollPolyfill__!==!0)return;const r=e.HTMLElement||e.Element,n=468,o={scroll:e.scroll||e.scrollTo,scrollBy:e.scrollBy,elementScroll:r.prototype.scroll||a,scrollIntoView:r.prototype.scrollIntoView},i=e.performance&&e.performance.now?e.performance.now.bind(e.performance):Date.now;function l(p){const y=["MSIE ","Trident/","Edge/"];return new RegExp(y.join("|")).test(p)}const c=l(e.navigator.userAgent)?1:0;function a(p,y){this.scrollLeft=p,this.scrollTop=y}function s(p){return .5*(1-Math.cos(Math.PI*p))}function u(p){if(p===null||typeof p!="object"||p.behavior===void 0||p.behavior==="auto"||p.behavior==="instant")return!0;if(typeof p=="object"&&p.behavior==="smooth")return!1;throw new TypeError("behavior member of ScrollOptions "+p.behavior+" is not a valid value for enumeration ScrollBehavior.")}function d(p,y){if(y==="Y")return p.clientHeight+c<p.scrollHeight;if(y==="X")return p.clientWidth+c<p.scrollWidth}function h(p,y){const b=e.getComputedStyle(p,null)["overflow"+y];return b==="auto"||b==="scroll"}function m(p){const y=d(p,"Y")&&h(p,"Y"),b=d(p,"X")&&h(p,"X");return y||b}function f(p){for(;p!==t.body&&m(p)===!1;)p=p.parentNode||p.host;return p}function v(p){const y=i();let b,N,k,M=(y-p.startTime)/n;M=M>1?1:M,b=s(M),N=p.startX+(p.x-p.startX)*b,k=p.startY+(p.y-p.startY)*b,p.method.call(p.scrollable,N,k),(N!==p.x||k!==p.y)&&e.requestAnimationFrame(v.bind(e,p))}function S(p,y,b){let N,k,M,x;const T=i();p===t.body?(N=e,k=e.scrollX||e.pageXOffset,M=e.scrollY||e.pageYOffset,x=o.scroll):(N=p,k=p.scrollLeft,M=p.scrollTop,x=a),v({scrollable:N,method:x,startTime:T,startX:k,startY:M,x:y,y:b})}e.scroll=e.scrollTo=function(){if(arguments[0]!==void 0){if(u(arguments[0])===!0){o.scroll.call(e,arguments[0].left!==void 0?arguments[0].left:typeof arguments[0]!="object"?arguments[0]:e.scrollX||e.pageXOffset,arguments[0].top!==void 0?arguments[0].top:arguments[1]!==void 0?arguments[1]:e.scrollY||e.pageYOffset);return}S.call(e,t.body,arguments[0].left!==void 0?~~arguments[0].left:e.scrollX||e.pageXOffset,arguments[0].top!==void 0?~~arguments[0].top:e.scrollY||e.pageYOffset)}},e.scrollBy=function(){if(arguments[0]!==void 0){if(u(arguments[0])){o.scrollBy.call(e,arguments[0].left!==void 0?arguments[0].left:typeof arguments[0]!="object"?arguments[0]:0,arguments[0].top!==void 0?arguments[0].top:arguments[1]!==void 0?arguments[1]:0);return}S.call(e,t.body,~~arguments[0].left+(e.scrollX||e.pageXOffset),~~arguments[0].top+(e.scrollY||e.pageYOffset))}},r.prototype.scroll=r.prototype.scrollTo=function(){if(arguments[0]===void 0)return;if(u(arguments[0])===!0){if(typeof arguments[0]=="number"&&arguments[1]===void 0)throw new SyntaxError("Value could not be converted");o.elementScroll.call(this,arguments[0].left!==void 0?~~arguments[0].left:typeof arguments[0]!="object"?~~arguments[0]:this.scrollLeft,arguments[0].top!==void 0?~~arguments[0].top:arguments[1]!==void 0?~~arguments[1]:this.scrollTop);return}const p=arguments[0].left,y=arguments[0].top;S.call(this,this,typeof p>"u"?this.scrollLeft:~~p,typeof y>"u"?this.scrollTop:~~y)},r.prototype.scrollBy=function(){if(arguments[0]!==void 0){if(u(arguments[0])===!0){o.elementScroll.call(this,arguments[0].left!==void 0?~~arguments[0].left+this.scrollLeft:~~arguments[0]+this.scrollLeft,arguments[0].top!==void 0?~~arguments[0].top+this.scrollTop:~~arguments[1]+this.scrollTop);return}this.scroll({left:~~arguments[0].left+this.scrollLeft,top:~~arguments[0].top+this.scrollTop,behavior:arguments[0].behavior})}},r.prototype.scrollIntoView=function(){if(u(arguments[0])===!0){o.scrollIntoView.call(this,arguments[0]===void 0?!0:arguments[0]);return}const p=f(this),y=p.getBoundingClientRect(),b=this.getBoundingClientRect();p!==t.body?(S.call(this,p,p.scrollLeft+b.left-y.left,p.scrollTop+b.top-y.top),e.getComputedStyle(p).position!=="fixed"&&e.scrollBy({left:y.left,top:y.top,behavior:"smooth"})):e.scrollBy({left:b.left,top:b.top,behavior:"smooth"})}}class Gi{constructor(t=[],r){this.timeOffset=0,this.raf=null,this.actions=t,this.speed=r}addAction(t){const r=this.findActionIndex(t);this.actions.splice(r,0,t)}addActions(t){this.actions=this.actions.concat(t)}replaceActions(t){this.actions.length=0,this.actions.splice(0,0,...t)}start(){this.timeOffset=0;let t=performance.now();const{actions:r}=this,n=this;function o(){const i=performance.now();for(n.timeOffset+=(i-t)*n.speed,t=i;r.length;){const l=r[0];if(n.timeOffset>=l.delay)r.shift(),l.doAction();else break}(r.length>0||n.liveMode)&&(n.raf=requestAnimationFrame(o))}this.raf=requestAnimationFrame(o)}clear(){this.raf&&(cancelAnimationFrame(this.raf),this.raf=null),this.actions.length=0}setSpeed(t){this.speed=t}toggleLiveMode(t){this.liveMode=t}isActive(){return this.raf!==null}findActionIndex(t){let r=0,n=this.actions.length-1;for(;r<=n;){const o=Math.floor((r+n)/2);if(this.actions[o].delay<t.delay)r=o+1;else if(this.actions[o].delay>t.delay)n=o-1;else return o+1}return r}}function At(e,t){if(e.type===R.IncrementalSnapshot&&e.data.source===L.MouseMove){const r=e.data.positions[0].timeOffset,n=e.timestamp+r;return e.delay=n-t,n-t}return e.delay=e.timestamp-t,e.delay}/*! *****************************************************************************
|
|
6
6
|
Copyright (c) Microsoft Corporation.
|
|
7
7
|
|
|
8
8
|
Permission to use, copy, modify, and/or distribute this software for any
|
package/dist/rrweb-all.min.js
CHANGED
|
@@ -2,7 +2,7 @@ var rrweb=function(q){"use strict";var _;(function(e){e[e.Document=0]="Document"
|
|
|
2
2
|
`);n=C===-1?n+w.length:w.length-C}function i(){var w={line:r,column:n};return function(g){return g.position=new l(w),f(),g}}var l=function(){function w(g){this.start=g,this.end={line:r,column:n},this.source=t.source}return w}();l.prototype.content=e;var c=[];function a(w){var g=new Error(t.source+":"+r+":"+n+": "+w);if(g.reason=w,g.filename=t.source,g.line=r,g.column=n,g.source=e,t.silent)c.push(g);else throw g}function s(){var w=h();return{type:"stylesheet",stylesheet:{source:t.source,rules:w,parsingErrors:c}}}function u(){return m(/^{\s*/)}function d(){return m(/^}/)}function h(){var w,g=[];for(f(),v(g);e.length&&e.charAt(0)!=="}"&&(w=O()||$());)w!==!1&&(g.push(w),v(g));return g}function m(w){var g=w.exec(e);if(g){var C=g[0];return o(C),e=e.slice(C.length),g}}function f(){m(/^\s*/)}function v(w){w===void 0&&(w=[]);for(var g;g=S();)g!==!1&&w.push(g),g=S();return w}function S(){var w=i();if(!(e.charAt(0)!=="/"||e.charAt(1)!=="*")){for(var g=2;e.charAt(g)!==""&&(e.charAt(g)!=="*"||e.charAt(g+1)!=="/");)++g;if(g+=2,e.charAt(g-1)==="")return a("End of comment missing");var C=e.slice(2,g-2);return n+=2,o(C),e=e.slice(g),n+=2,w({type:"comment",comment:C})}}function p(){var w=m(/^([^{]+)/);if(w)return pe(w[0]).replace(/\/\*([^*]|[\r\n]|(\*+([^*/]|[\r\n])))*\*\/+/g,"").replace(/"(?:\\"|[^"])*"|'(?:\\'|[^'])*'/g,function(g){return g.replace(/,/g,"\u200C")}).split(/\s*(?![^(]*\)),\s*/).map(function(g){return g.replace(/\u200C/g,",")})}function y(){var w=i(),g=m(/^(\*?[-#\/\*\\\w]+(\[[0-9a-z_-]+\])?)\s*/);if(g){var C=pe(g[0]);if(!m(/^:\s*/))return a("property missing ':'");var E=m(/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^\)]*?\)|[^};])+)/),I=w({type:"declaration",property:C.replace(ar,""),value:E?pe(E[0]).replace(ar,""):""});return m(/^[;\s]*/),I}}function b(){var w=[];if(!u())return a("missing '{'");v(w);for(var g;g=y();)g!==!1&&(w.push(g),v(w)),g=y();return d()?w:a("missing '}'")}function N(){for(var w,g=[],C=i();w=m(/^((\d+\.\d+|\.\d+|\d+)%?|[a-z]+)\s*/);)g.push(w[1]),m(/^,\s*/);if(g.length)return C({type:"keyframe",values:g,declarations:b()})}function k(){var w=i(),g=m(/^@([-\w]+)?keyframes\s*/);if(g){var C=g[1];if(g=m(/^([-\w]+)\s*/),!g)return a("@keyframes missing name");var E=g[1];if(!u())return a("@keyframes missing '{'");for(var I,G=v();I=N();)G.push(I),G=G.concat(v());return d()?w({type:"keyframes",name:E,vendor:C,keyframes:G}):a("@keyframes missing '}'")}}function M(){var w=i(),g=m(/^@supports *([^{]+)/);if(g){var C=pe(g[1]);if(!u())return a("@supports missing '{'");var E=v().concat(h());return d()?w({type:"supports",supports:C,rules:E}):a("@supports missing '}'")}}function x(){var w=i(),g=m(/^@host\s*/);if(g){if(!u())return a("@host missing '{'");var C=v().concat(h());return d()?w({type:"host",rules:C}):a("@host missing '}'")}}function T(){var w=i(),g=m(/^@media *([^{]+)/);if(g){var C=pe(g[1]);if(!u())return a("@media missing '{'");var E=v().concat(h());return d()?w({type:"media",media:C,rules:E}):a("@media missing '}'")}}function D(){var w=i(),g=m(/^@custom-media\s+(--[^\s]+)\s*([^{;]+);/);if(g)return w({type:"custom-media",name:pe(g[1]),media:pe(g[2])})}function W(){var w=i(),g=m(/^@page */);if(g){var C=p()||[];if(!u())return a("@page missing '{'");for(var E=v(),I;I=y();)E.push(I),E=E.concat(v());return d()?w({type:"page",selectors:C,declarations:E}):a("@page missing '}'")}}function Y(){var w=i(),g=m(/^@([-\w]+)?document *([^{]+)/);if(g){var C=pe(g[1]),E=pe(g[2]);if(!u())return a("@document missing '{'");var I=v().concat(h());return d()?w({type:"document",document:E,vendor:C,rules:I}):a("@document missing '}'")}}function j(){var w=i(),g=m(/^@font-face\s*/);if(g){if(!u())return a("@font-face missing '{'");for(var C=v(),E;E=y();)C.push(E),C=C.concat(v());return d()?w({type:"font-face",declarations:C}):a("@font-face missing '}'")}}var H=P("import"),A=P("charset"),U=P("namespace");function P(w){var g=new RegExp("^@"+w+"\\s*([^;]+);");return function(){var C=i(),E=m(g);if(E){var I={type:w};return I[w]=E[1].trim(),C(I)}}}function O(){if(e[0]==="@")return k()||T()||D()||M()||H()||A()||U()||Y()||W()||x()||j()}function $(){var w=i(),g=p();return g?(v(),w({type:"rule",selectors:g,declarations:b()})):a("selector missing")}return St(s())}function pe(e){return e?e.replace(/^\s+|\s+$/g,""):""}function St(e,t){for(var r=e&&typeof e.type=="string",n=r?e:t,o=0,i=Object.keys(e);o<i.length;o++){var l=i[o],c=e[l];Array.isArray(c)?c.forEach(function(a){St(a,n)}):c&&typeof c=="object"&&St(c,n)}return r&&Object.defineProperty(e,"parent",{configurable:!0,writable:!0,enumerable:!1,value:t||null}),e}var lr={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"};function vo(e){var t=lr[e.tagName]?lr[e.tagName]:e.tagName;return t==="link"&&e.attributes._cssText&&(t="style"),t}function go(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}var cr=/([^\\]):hover/,yo=new RegExp(cr.source,"g");function ur(e,t){var r;if(!(!((r=window?.HIG_CONFIGURATION)===null||r===void 0)&&r.enableOnHoverClass))return e;var n=t?.stylesWithHoverClass.get(e);if(n)return n;var o=fo(e,{silent:!0});if(!o.stylesheet)return e;var i=[];if(o.stylesheet.rules.forEach(function(a){"selectors"in a&&(a.selectors||[]).forEach(function(s){cr.test(s)&&i.push(s)})}),i.length===0)return e;var l=new RegExp(i.filter(function(a,s){return i.indexOf(a)===s}).sort(function(a,s){return s.length-a.length}).map(function(a){return go(a)}).join("|"),"g"),c=e.replace(l,function(a){var s=a.replace(yo,"$1.\\:hover");return a+", "+s});return t?.stylesWithHoverClass.set(e,c),c}function dr(){var e=new Map;return{stylesWithHoverClass:e}}function bo(e,t){var r=t.doc,n=t.hackCss,o=t.cache;switch(e.type){case _.Document:return r.implementation.createDocument(null,"",null);case _.DocumentType:return r.implementation.createDocumentType(e.name||"html",e.publicId,e.systemId);case _.Element:var i=vo(e),l;e.isSVG?l=r.createElementNS("http://www.w3.org/2000/svg",i):l=r.createElement(i);var c=function(d){if(!e.attributes.hasOwnProperty(d))return"continue";var h=e.attributes[d];if(i==="option"&&d==="selected"&&h===!1)return"continue";if(h=typeof h=="boolean"||typeof h=="number"?"":h,d.startsWith("rr_")){if(i==="canvas"&&d==="rr_dataURL"){var m=document.createElement("img");m.src=h,m.onload=function(){var D=l.getContext("2d");D&&D.drawImage(m,0,0,m.width,m.height)}}else if(i==="img"&&d==="rr_dataURL"){var f=l;f.currentSrc.startsWith("data:")||(f.setAttribute("rrweb-original-src",e.attributes.src),f.src=h,f.setAttribute("rrweb-inline-src",h))}if(d==="rr_width")l.style.width=h;else if(d==="rr_height")l.style.height=h;else if(d==="rr_mediaCurrentTime")l.currentTime=e.attributes.rr_mediaCurrentTime;else if(d==="rr_mediaState")switch(h){case"played":l.play().catch(function(D){return console.warn("media playback error",D)});break;case"paused":l.pause();break}}else{var v=i==="textarea"&&d==="value",S=i==="style"&&d==="_cssText";if(S&&n&&(h=ur(h,o),typeof h=="string")){for(var p=/url\(\"https:\/\/\S*(.eot|.woff2|.ttf|.woff)\S*\"\)/gm,y=void 0,b=[],N="https://replay-cors-proxy.highlightrun.workers.dev";(y=p.exec(h))!==null;)y.index===p.lastIndex&&p.lastIndex++,y.forEach(function(D,W){if(W===0){var Y=D.slice(5,D.length-2);b.push({originalUrl:Y,proxyUrl:Y.replace(Y,N+"?url="+Y)})}});b.forEach(function(D){h=h.replace(D.originalUrl,D.proxyUrl)})}if(v||S){for(var k=r.createTextNode(h),M=0,x=Array.from(l.childNodes);M<x.length;M++){var T=x[M];T.nodeType===l.TEXT_NODE&&l.removeChild(T)}return l.appendChild(k),"continue"}try{if(e.isSVG&&d==="xlink:href")l.setAttributeNS("http://www.w3.org/1999/xlink",d,h);else if(d==="onload"||d==="onclick"||d.substring(0,7)==="onmouse")l.setAttribute("_"+d,h);else{if(i==="meta"&&e.attributes["http-equiv"]==="Content-Security-Policy"&&d==="content")return l.setAttribute("csp-content",h),"continue";i==="link"&&e.attributes.rel==="preload"&&e.attributes.as==="script"||i==="link"&&e.attributes.rel==="prefetch"&&typeof e.attributes.href=="string"&&e.attributes.href.endsWith(".js")||(i==="img"&&e.attributes.srcset&&e.attributes.rr_dataURL?l.setAttribute("rrweb-original-srcset",e.attributes.srcset):l.setAttribute(d,h))}}catch{}}};for(var a in e.attributes)c(a);if(i==="img"){var s=l;if(!s.currentSrc.startsWith("data:")){var u=s.getAttribute("rrweb-inline-src");u!=null&&u.startsWith("data:")&&(s.src=u)}}if(e.isShadowHost)if(!l.shadowRoot)l.attachShadow({mode:"open"});else for(;l.shadowRoot.firstChild;)l.shadowRoot.removeChild(l.shadowRoot.firstChild);return l;case _.Text:return r.createTextNode(e.isStyle&&n?ur(e.textContent,o):e.textContent);case _.CDATA:return r.createCDATASection(e.textContent);case _.Comment:return r.createComment(e.textContent);default:return null}}function ot(e,t){var r=t.doc,n=t.mirror,o=t.skipChild,i=o===void 0?!1:o,l=t.hackCss,c=l===void 0?!0:l,a=t.afterAppend,s=t.cache,u=bo(e,{doc:r,hackCss:c,cache:s});if(!u)return null;if(e.rootId&&console.assert(n.getNode(e.rootId)===r,"Target document should have the same root id."),e.type===_.Document&&(r.close(),r.open(),e.compatMode==="BackCompat"&&e.childNodes&&e.childNodes[0].type!==_.DocumentType&&(e.childNodes[0].type===_.Element&&"xmlns"in e.childNodes[0].attributes&&e.childNodes[0].attributes.xmlns==="http://www.w3.org/1999/xhtml"?r.write('<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">'):r.write('<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "">')),u=r),n.add(u,e),(e.type===_.Document||e.type===_.Element)&&!i)for(var d=0,h=e.childNodes;d<h.length;d++){var m=h[d],f=ot(m,{doc:r,mirror:n,skipChild:!1,hackCss:c,afterAppend:a,cache:s});if(!f){console.warn("Failed to rebuild",m);continue}m.isShadow&&er(u)&&u.shadowRoot?u.shadowRoot.appendChild(f):u.appendChild(f),a&&a(f)}return u}function So(e,t){function r(l){t(l)}for(var n=0,o=e.getIds();n<o.length;n++){var i=o[n];e.has(i)&&r(e.getNode(i))}}function wo(e,t){var r=t.getMeta(e);if(r?.type===_.Element){var n=e;for(var o in r.attributes)if(r.attributes.hasOwnProperty(o)&&o.startsWith("rr_")){var i=r.attributes[o];o==="rr_scrollLeft"&&(n.scrollLeft=i),o==="rr_scrollTop"&&(n.scrollTop=i)}}}function No(e,t){var r=t.doc,n=t.onVisit,o=t.hackCss,i=o===void 0?!0:o,l=t.afterAppend,c=t.cache,a=t.mirror,s=a===void 0?new vt:a,u=ot(e,{doc:r,mirror:s,skipChild:!1,hackCss:i,afterAppend:l,cache:c});return So(s,function(d){n&&n(d),wo(d,s)}),u}function ie(e,t,r=document){const n={capture:!0,passive:!0};return r.addEventListener(e,t,n),()=>r.removeEventListener(e,t,n)}const xe=`Please stop import mirror directly. Instead of that,\r
|
|
3
3
|
now you can use replayer.getMirror() to access the mirror instance of a replayer,\r
|
|
4
4
|
or you can use record.mirror to access the mirror instance during recording.`;q.mirror={map:{},getId(){return console.error(xe),-1},getNode(){return console.error(xe),null},removeNodeFromMap(){console.error(xe)},has(){return console.error(xe),!1},reset(){console.error(xe)}},typeof window<"u"&&window.Proxy&&window.Reflect&&(q.mirror=new Proxy(q.mirror,{get(e,t,r){return t==="map"&&console.error(xe),Reflect.get(e,t,r)}}));function Oe(e,t,r={}){let n=null,o=0;return function(i){const l=Date.now();!o&&r.leading===!1&&(o=l);const c=t-(l-o),a=this,s=arguments;c<=0||c>t?(n&&(clearTimeout(n),n=null),o=l,e.apply(a,s)):!n&&r.trailing!==!1&&(n=setTimeout(()=>{o=r.leading===!1?0:Date.now(),n=null,e.apply(a,s)},c))}}function Ge(e,t,r,n,o=window){const i=o.Object.getOwnPropertyDescriptor(e,t);return o.Object.defineProperty(e,t,n?r:{set(l){setTimeout(()=>{r.set.call(this,l)},0),i&&i.set&&i.set.call(this,l)}}),()=>Ge(e,t,i||{},!0)}function be(e,t,r){try{if(!(t in e))return()=>{};const n=e[t],o=r(n);return typeof o=="function"&&(o.prototype=o.prototype||{},Object.defineProperties(o,{__rrweb_original__:{enumerable:!1,value:n}})),e[t]=o,()=>{e[t]=n}}catch{return()=>{}}}function wt(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function Nt(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}const hr=e=>{try{if(e instanceof HTMLElement)return e.tagName==="CANVAS"}catch{return!1}return!1};function se(e,t,r){if(!e)return!1;const n=e.nodeType===e.ELEMENT_NODE?e:e.parentElement;if(!n)return!1;if(typeof t=="string"){if(n.classList.contains(t)||r&&n.closest("."+t)!==null)return!0}else if(nt(n,t,r))return!0;return!1}function mr(e,t){return t.getId(e)!==-1}function it(e,t){return t.getId(e)===Ue}function Tt(e,t){if(Ve(e))return!1;const r=t.getId(e);return t.has(r)?e.parentNode&&e.parentNode.nodeType===e.DOCUMENT_NODE?!1:e.parentNode?Tt(e.parentNode,t):!0:!0}function Et(e){return Boolean(e.changedTouches)}function Ct(e=window){"NodeList"in e&&!e.NodeList.prototype.forEach&&(e.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in e&&!e.DOMTokenList.prototype.forEach&&(e.DOMTokenList.prototype.forEach=Array.prototype.forEach),Node.prototype.contains||(Node.prototype.contains=function(t){if(!(0 in arguments))throw new TypeError("1 argument is required");do if(this===t)return!0;while(t=t&&t.parentNode);return!1})}function pr(e){const t={},r=(o,i)=>{const l={value:o,parent:i,children:[]};return t[o.node.id]=l,l},n=[];for(const o of e){const{nextId:i,parentId:l}=o;if(i&&i in t){const c=t[i];if(c.parent){const a=c.parent.children.indexOf(c);c.parent.children.splice(a,0,r(o,c.parent))}else{const a=n.indexOf(c);n.splice(a,0,r(o,null))}continue}if(l in t){const c=t[l];c.children.push(r(o,c));continue}n.push(r(o,null))}return n}function It(e,t){t(e.value);for(let r=e.children.length-1;r>=0;r--)It(e.children[r],t)}function Re(e,t){return Boolean(e.nodeName==="IFRAME"&&t.getMeta(e))}function Mt(e,t){return Boolean(e.nodeName==="LINK"&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&e.getAttribute("rel")==="stylesheet"&&t.getMeta(e))}function kt(e,t){var r,n;const o=(n=(r=e.ownerDocument)==null?void 0:r.defaultView)==null?void 0:n.frameElement;if(!o||o===t)return{x:0,y:0,relativeScale:1,absoluteScale:1};const i=o.getBoundingClientRect(),l=kt(o,t),c=i.height/o.clientHeight;return{x:i.x*l.relativeScale+l.x,y:i.y*l.relativeScale+l.y,relativeScale:c,absoluteScale:l.absoluteScale*c}}function ze(e){return Boolean(e?.shadowRoot)}function De(e,t){const r=e[t[0]];return t.length===1?r:De(r.cssRules[t[1]].cssRules,t.slice(2))}function xt(e){const t=[...e],r=t.pop();return{positions:t,index:r}}function fr(e){const t=new Set,r=[];for(let n=e.length;n--;){const o=e[n];t.has(o.id)||(r.push(o),t.add(o.id))}return r}var To=Object.freeze({__proto__:null,on:ie,get _mirror(){return q.mirror},throttle:Oe,hookSetter:Ge,patch:be,getWindowHeight:wt,getWindowWidth:Nt,isCanvasNode:hr,isBlocked:se,isSerialized:mr,isIgnored:it,isAncestorRemoved:Tt,isTouchEvent:Et,polyfill:Ct,queueToResolveTrees:pr,iterateResolveTree:It,isSerializedIframe:Re,isSerializedStylesheet:Mt,getBaseDimension:kt,hasShadowRoot:ze,getNestedRule:De,getPositionsAndIndex:xt,uniqueTextMutations:fr}),R=(e=>(e[e.DomContentLoaded=0]="DomContentLoaded",e[e.Load=1]="Load",e[e.FullSnapshot=2]="FullSnapshot",e[e.IncrementalSnapshot=3]="IncrementalSnapshot",e[e.Meta=4]="Meta",e[e.Custom=5]="Custom",e[e.Plugin=6]="Plugin",e))(R||{}),L=(e=>(e[e.Mutation=0]="Mutation",e[e.MouseMove=1]="MouseMove",e[e.MouseInteraction=2]="MouseInteraction",e[e.Scroll=3]="Scroll",e[e.ViewportResize=4]="ViewportResize",e[e.Input=5]="Input",e[e.TouchMove=6]="TouchMove",e[e.MediaInteraction=7]="MediaInteraction",e[e.StyleSheetRule=8]="StyleSheetRule",e[e.CanvasMutation=9]="CanvasMutation",e[e.Font=10]="Font",e[e.Log=11]="Log",e[e.Drag=12]="Drag",e[e.StyleDeclaration=13]="StyleDeclaration",e))(L||{}),ee=(e=>(e[e.MouseUp=0]="MouseUp",e[e.MouseDown=1]="MouseDown",e[e.Click=2]="Click",e[e.ContextMenu=3]="ContextMenu",e[e.DblClick=4]="DblClick",e[e.Focus=5]="Focus",e[e.Blur=6]="Blur",e[e.TouchStart=7]="TouchStart",e[e.TouchMove_Departed=8]="TouchMove_Departed",e[e.TouchEnd=9]="TouchEnd",e[e.TouchCancel=10]="TouchCancel",e))(ee||{}),fe=(e=>(e[e["2D"]=0]="2D",e[e.WebGL=1]="WebGL",e[e.WebGL2=2]="WebGL2",e))(fe||{}),Te=(e=>(e[e.Play=0]="Play",e[e.Pause=1]="Pause",e[e.Seeked=2]="Seeked",e[e.VolumeChange=3]="VolumeChange",e))(Te||{}),B=(e=>(e.Start="start",e.Pause="pause",e.Resume="resume",e.Resize="resize",e.Finish="finish",e.FullsnapshotRebuilded="fullsnapshot-rebuilded",e.LoadStylesheetStart="load-stylesheet-start",e.LoadStylesheetEnd="load-stylesheet-end",e.SkipStart="skip-start",e.SkipEnd="skip-end",e.MouseInteraction="mouse-interaction",e.EventCast="event-cast",e.CustomEvent="custom-event",e.Flush="flush",e.StateChange="state-change",e.PlayBack="play-back",e))(B||{});function vr(e){return"__ln"in e}class Eo{constructor(){this.length=0,this.head=null}get(t){if(t>=this.length)throw new Error("Position outside of list range");let r=this.head;for(let n=0;n<t;n++)r=r?.next||null;return r}addNode(t){const r={value:t,previous:null,next:null};if(t.__ln=r,t.previousSibling&&vr(t.previousSibling)){const n=t.previousSibling.__ln.next;r.next=n,r.previous=t.previousSibling.__ln,t.previousSibling.__ln.next=r,n&&(n.previous=r)}else if(t.nextSibling&&vr(t.nextSibling)&&t.nextSibling.__ln.previous){const n=t.nextSibling.__ln.previous;r.previous=n,r.next=t.nextSibling.__ln,t.nextSibling.__ln.previous=r,n&&(n.next=r)}else this.head&&(this.head.previous=r),r.next=this.head,this.head=r;this.length++}removeNode(t){const r=t.__ln;!this.head||(r.previous?(r.previous.next=r.next,r.next&&(r.next.previous=r.previous)):(this.head=r.next,this.head&&(this.head.previous=null)),t.__ln&&delete t.__ln,this.length--)}}const gr=(e,t)=>`${e}@${t}`;class Co{constructor(){this.frozen=!1,this.locked=!1,this.texts=[],this.attributes=[],this.removes=[],this.mapRemoves=[],this.movedMap={},this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.processMutations=t=>{t.forEach(this.processMutation),this.emit()},this.emit=()=>{if(this.frozen||this.locked)return;const t=[],r=new Eo,n=c=>{let a=c,s=Ue;for(;s===Ue;)a=a&&a.nextSibling,s=a&&this.mirror.getId(a);return s},o=c=>{var a,s,u,d,h;const m=c.getRootNode?(a=c.getRootNode())==null?void 0:a.host:null;let f=m;for(;(u=(s=f?.getRootNode)==null?void 0:s.call(f))!=null&&u.host;)f=((h=(d=f?.getRootNode)==null?void 0:d.call(f))==null?void 0:h.host)||null;const v=!this.doc.contains(c)&&(!f||!this.doc.contains(f));if(!c.parentNode||v)return;const S=Ve(c.parentNode)?this.mirror.getId(m):this.mirror.getId(c.parentNode),p=n(c);if(S===-1||p===-1)return r.addNode(c);const y=ke(c,{doc:this.doc,mirror:this.mirror,blockClass:this.blockClass,blockSelector:this.blockSelector,maskTextClass:this.maskTextClass,maskTextSelector:this.maskTextSelector,skipChild:!0,inlineStylesheet:this.inlineStylesheet,maskInputOptions:this.maskInputOptions,maskTextFn:this.maskTextFn,maskInputFn:this.maskInputFn,slimDOMOptions:this.slimDOMOptions,recordCanvas:this.recordCanvas,inlineImages:this.inlineImages,enableStrictPrivacy:this.enableStrictPrivacy,onSerialize:b=>{Re(b,this.mirror)&&this.iframeManager.addIframe(b),Mt(b,this.mirror)&&this.stylesheetManager.addStylesheet(b),ze(c)&&this.shadowDomManager.addShadowRoot(c.shadowRoot,document)},onIframeLoad:(b,N)=>{this.iframeManager.attachIframe(b,N,this.mirror),this.shadowDomManager.observeAttachShadow(b)},onStylesheetLoad:(b,N)=>{this.stylesheetManager.attachStylesheet(b,N,this.mirror)},newlyAddedElement:!0});y&&t.push({parentId:S,nextId:p,node:y})};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(const c of Array.from(this.movedSet.values()))yr(this.removes,c,this.mirror)&&!this.movedSet.has(c.parentNode)||o(c);for(const c of Array.from(this.addedSet.values()))!Sr(this.droppedSet,c)&&!yr(this.removes,c,this.mirror)||Sr(this.movedSet,c)?o(c):this.droppedSet.add(c);let i=null;for(;r.length;){let c=null;if(i){const a=this.mirror.getId(i.value.parentNode),s=n(i.value);a!==-1&&s!==-1&&(c=i)}if(!c)for(let a=r.length-1;a>=0;a--){const s=r.get(a);if(s){const u=this.mirror.getId(s.value.parentNode),d=n(s.value);if(u!==-1&&d!==-1){c=s;break}}}if(!c){for(;r.head;)r.removeNode(r.head.value);break}i=c.previous,r.removeNode(c.value),o(c.value)}const l={texts:this.texts.map(c=>{let a=c.value;return this.enableStrictPrivacy&&a&&(a=nr(a)),{id:this.mirror.getId(c.node),value:a}}).filter(c=>this.mirror.has(c.id)),attributes:this.attributes.map(c=>({id:this.mirror.getId(c.node),attributes:c.attributes})).filter(c=>this.mirror.has(c.id)),removes:this.removes,adds:t};!l.texts.length&&!l.attributes.length&&!l.removes.length&&!l.adds.length||(this.texts=[],this.attributes=[],this.removes=[],this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.movedMap={},this.mutationCb(l))},this.processMutation=t=>{if(!it(t.target,this.mirror))switch(t.type){case"characterData":{const r=t.target.textContent;!se(t.target,this.blockClass,!1)&&r!==t.oldValue&&this.texts.push({value:sr(t.target,this.maskTextClass,this.maskTextSelector)&&r?this.maskTextFn?this.maskTextFn(r):r.replace(/[\S]/g,"*"):r,node:t.target});break}case"attributes":{const r=t.target;let n=t.target.getAttribute(t.attributeName);if(t.attributeName==="value"&&(n=gt({maskInputOptions:this.maskInputOptions,tagName:t.target.tagName,type:t.target.getAttribute("type"),value:n,maskInputFn:this.maskInputFn})),se(t.target,this.blockClass,!1)||n===t.oldValue)return;let o=this.attributes.find(i=>i.node===t.target);if(o||(o={node:t.target,attributes:{}},this.attributes.push(o)),t.attributeName==="style"){const i=this.doc.createElement("span");t.oldValue&&i.setAttribute("style",t.oldValue),(o.attributes.style===void 0||o.attributes.style===null)&&(o.attributes.style={});const l=o.attributes.style;for(const c of Array.from(r.style)){const a=r.style.getPropertyValue(c),s=r.style.getPropertyPriority(c);(a!==i.style.getPropertyValue(c)||s!==i.style.getPropertyPriority(c))&&(s===""?l[c]=a:l[c]=[a,s])}for(const c of Array.from(i.style))r.style.getPropertyValue(c)===""&&(l[c]=!1)}else{if(t.target.tagName==="INPUT"){const i=t.target;if(i.type==="password"){o.attributes.value="*".repeat(i.value.length);break}}o.attributes[t.attributeName]=ir(this.doc,t.target.tagName,t.attributeName,n)}break}case"childList":{if(se(t.target,this.blockClass,!0))return;t.addedNodes.forEach(r=>this.genAdds(r,t.target)),t.removedNodes.forEach(r=>{const n=this.mirror.getId(r),o=Ve(t.target)?this.mirror.getId(t.target.host):this.mirror.getId(t.target);se(t.target,this.blockClass,!1)||it(r,this.mirror)||!mr(r,this.mirror)||(this.addedSet.has(r)?(Ot(this.addedSet,r),this.droppedSet.add(r)):this.addedSet.has(t.target)&&n===-1||Tt(t.target,this.mirror)||(this.movedSet.has(r)&&this.movedMap[gr(n,o)]?Ot(this.movedSet,r):this.removes.push({parentId:o,id:n,isShadow:Ve(t.target)?!0:void 0})),this.mapRemoves.push(r))});break}}},this.genAdds=(t,r)=>{if(this.mirror.hasNode(t)){if(it(t,this.mirror))return;this.movedSet.add(t);let n=null;r&&this.mirror.hasNode(r)&&(n=this.mirror.getId(r)),n&&n!==-1&&(this.movedMap[gr(this.mirror.getId(t),n)]=!0)}else this.addedSet.add(t),this.droppedSet.delete(t);se(t,this.blockClass,!1)||t.childNodes.forEach(n=>this.genAdds(n))}}init(t){["mutationCb","blockClass","blockSelector","maskTextClass","maskTextSelector","inlineStylesheet","maskInputOptions","maskTextFn","maskInputFn","recordCanvas","inlineImages","slimDOMOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","enableStrictPrivacy"].forEach(r=>{this[r]=t[r]})}freeze(){this.frozen=!0,this.canvasManager.freeze()}unfreeze(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()}isFrozen(){return this.frozen}lock(){this.locked=!0,this.canvasManager.lock()}unlock(){this.locked=!1,this.canvasManager.unlock(),this.emit()}reset(){this.shadowDomManager.reset(),this.canvasManager.reset()}}function Ot(e,t){e.delete(t),t.childNodes.forEach(r=>Ot(e,r))}function yr(e,t,r){return e.length===0?!1:br(e,t,r)}function br(e,t,r){const{parentNode:n}=t;if(!n)return!1;const o=r.getId(n);return e.some(i=>i.id===o)?!0:br(e,n,r)}function Sr(e,t){return e.size===0?!1:wr(e,t)}function wr(e,t){const{parentNode:r}=t;return r?e.has(r)?!0:wr(e,r):!1}var Io=Object.defineProperty,Mo=Object.defineProperties,ko=Object.getOwnPropertyDescriptors,Nr=Object.getOwnPropertySymbols,xo=Object.prototype.hasOwnProperty,Oo=Object.prototype.propertyIsEnumerable,Tr=(e,t,r)=>t in e?Io(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Er=(e,t)=>{for(var r in t||(t={}))xo.call(t,r)&&Tr(e,r,t[r]);if(Nr)for(var r of Nr(t))Oo.call(t,r)&&Tr(e,r,t[r]);return e},Ro=(e,t)=>Mo(e,ko(t));const Ee=[],Cr=typeof CSSGroupingRule<"u",Ir=typeof CSSMediaRule<"u",Mr=typeof CSSSupportsRule<"u",kr=typeof CSSConditionRule<"u";function Be(e){try{if("composedPath"in e){const t=e.composedPath();if(t.length)return t[0]}else if("path"in e&&e.path.length)return e.path[0];return e.target}catch{return e.target}}function xr(e,t){var r,n;const o=new Co;Ee.push(o),o.init(e);let i=window.MutationObserver||window.__rrMutationObserver;const l=(n=(r=window?.Zone)==null?void 0:r.__symbol__)==null?void 0:n.call(r,"MutationObserver");l&&window[l]&&(i=window[l]);const c=new i(o.processMutations.bind(o));return c.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),c}function Do({mousemoveCb:e,sampling:t,doc:r,mirror:n}){if(t.mousemove===!1)return()=>{};const o=typeof t.mousemove=="number"?t.mousemove:50,i=typeof t.mousemoveCallback=="number"?t.mousemoveCallback:500;let l=[],c;const a=Oe(d=>{const h=Date.now()-c;e(l.map(m=>(m.timeOffset-=h,m)),d),l=[],c=null},i),s=Oe(d=>{const h=Be(d),{clientX:m,clientY:f}=Et(d)?d.changedTouches[0]:d;c||(c=Date.now()),l.push({x:m,y:f,id:n.getId(h),timeOffset:Date.now()-c}),a(typeof DragEvent<"u"&&d instanceof DragEvent?L.Drag:d instanceof MouseEvent?L.MouseMove:L.TouchMove)},o,{trailing:!1}),u=[ie("mousemove",s,r),ie("touchmove",s,r),ie("drag",s,r)];return()=>{u.forEach(d=>d())}}function Lo({mouseInteractionCb:e,doc:t,mirror:r,blockClass:n,sampling:o}){if(o.mouseInteraction===!1)return()=>{};const i=o.mouseInteraction===!0||o.mouseInteraction===void 0?{}:o.mouseInteraction,l=[],c=a=>s=>{const u=Be(s);if(se(u,n,!0)||hr(u))return;const d=Et(s)?s.changedTouches[0]:s;if(!d)return;const h=r.getId(u),{clientX:m,clientY:f}=d;e({type:ee[a],id:h,x:m,y:f})};return Object.keys(ee).filter(a=>Number.isNaN(Number(a))&&!a.endsWith("_Departed")&&i[a]!==!1).forEach(a=>{const s=a.toLowerCase(),u=c(a);l.push(ie(s,u,t))}),()=>{l.forEach(a=>a())}}function Or({scrollCb:e,doc:t,mirror:r,blockClass:n,sampling:o}){const i=Oe(l=>{const c=Be(l);if(!c||se(c,n,!0))return;const a=r.getId(c);if(c===t){const s=t.scrollingElement||t.documentElement;e({id:a,x:s.scrollLeft,y:s.scrollTop})}else e({id:a,x:c.scrollLeft,y:c.scrollTop})},o.scroll||100);return ie("scroll",i,t)}function Ao({viewportResizeCb:e}){let t=-1,r=-1;const n=Oe(()=>{const o=wt(),i=Nt();(t!==o||r!==i)&&(e({width:Number(i),height:Number(o)}),t=o,r=i)},200);return ie("resize",n,window)}function Rr(e,t){const r=Er({},e);return t||delete r.userTriggered,r}const Po=["INPUT","TEXTAREA","SELECT"],Dr=new WeakMap;function Fo({inputCb:e,doc:t,mirror:r,blockClass:n,ignoreClass:o,maskInputOptions:i,maskInputFn:l,sampling:c,userTriggeredOnInput:a}){function s(f){let v=Be(f);const S=f.isTrusted;if(v&&v.tagName==="OPTION"&&(v=v.parentElement),!v||!v.tagName||Po.indexOf(v.tagName)<0||se(v,n,!0))return;const p=v.type;if(v.classList.contains(o))return;let y=v.value,b=!1;p==="radio"||p==="checkbox"?b=v.checked:(i[v.tagName.toLowerCase()]||i[p])&&(y=gt({maskInputOptions:i,tagName:v.tagName,type:p,value:y,maskInputFn:l})),u(v,Rr({text:y,isChecked:b,userTriggered:S},a));const N=v.name;p==="radio"&&N&&b&&t.querySelectorAll(`input[type="radio"][name="${N}"]`).forEach(k=>{k!==v&&u(k,Rr({text:k.value,isChecked:!b,userTriggered:!1},a))})}function u(f,v){const S=Dr.get(f);if(!S||S.text!==v.text||S.isChecked!==v.isChecked){Dr.set(f,v);const p=r.getId(f);e(Ro(Er({},v),{id:p}))}}const d=(c.input==="last"?["change"]:["input","change"]).map(f=>ie(f,s,t)),h=Object.getOwnPropertyDescriptor(HTMLInputElement.prototype,"value"),m=[[HTMLInputElement.prototype,"value"],[HTMLInputElement.prototype,"checked"],[HTMLSelectElement.prototype,"value"],[HTMLTextAreaElement.prototype,"value"],[HTMLSelectElement.prototype,"selectedIndex"],[HTMLOptionElement.prototype,"selected"]];return h&&h.set&&d.push(...m.map(f=>Ge(f[0],f[1],{set(){s({target:this})}}))),()=>{d.forEach(f=>f())}}function st(e){const t=[];function r(n,o){if(Cr&&n.parentRule instanceof CSSGroupingRule||Ir&&n.parentRule instanceof CSSMediaRule||Mr&&n.parentRule instanceof CSSSupportsRule||kr&&n.parentRule instanceof CSSConditionRule){const i=Array.from(n.parentRule.cssRules).indexOf(n);o.unshift(i)}else{const i=Array.from(n.parentStyleSheet.cssRules).indexOf(n);o.unshift(i)}return o}return r(e,t)}function _o({styleSheetRuleCb:e,mirror:t},{win:r}){const n=r.CSSStyleSheet.prototype.insertRule;r.CSSStyleSheet.prototype.insertRule=function(c,a){const s=t.getId(this.ownerNode);return s!==-1&&e({id:s,adds:[{rule:c,index:a}]}),n.apply(this,arguments)};const o=r.CSSStyleSheet.prototype.deleteRule;r.CSSStyleSheet.prototype.deleteRule=function(c){const a=t.getId(this.ownerNode);return a!==-1&&e({id:a,removes:[{index:c}]}),o.apply(this,arguments)};const i={};Cr?i.CSSGroupingRule=r.CSSGroupingRule:(Ir&&(i.CSSMediaRule=r.CSSMediaRule),kr&&(i.CSSConditionRule=r.CSSConditionRule),Mr&&(i.CSSSupportsRule=r.CSSSupportsRule));const l={};return Object.entries(i).forEach(([c,a])=>{l[c]={insertRule:a.prototype.insertRule,deleteRule:a.prototype.deleteRule},a.prototype.insertRule=function(s,u){const d=t.getId(this.parentStyleSheet.ownerNode);return d!==-1&&e({id:d,adds:[{rule:s,index:[...st(this),u||0]}]}),l[c].insertRule.apply(this,arguments)},a.prototype.deleteRule=function(s){const u=t.getId(this.parentStyleSheet.ownerNode);return u!==-1&&e({id:u,removes:[{index:[...st(this),s]}]}),l[c].deleteRule.apply(this,arguments)}}),()=>{r.CSSStyleSheet.prototype.insertRule=n,r.CSSStyleSheet.prototype.deleteRule=o,Object.entries(i).forEach(([c,a])=>{a.prototype.insertRule=l[c].insertRule,a.prototype.deleteRule=l[c].deleteRule})}}function $o({styleDeclarationCb:e,mirror:t},{win:r}){const n=r.CSSStyleDeclaration.prototype.setProperty;r.CSSStyleDeclaration.prototype.setProperty=function(i,l,c){var a,s;const u=t.getId((s=(a=this.parentRule)==null?void 0:a.parentStyleSheet)==null?void 0:s.ownerNode);return u!==-1&&e({id:u,set:{property:i,value:l,priority:c},index:st(this.parentRule)}),n.apply(this,arguments)};const o=r.CSSStyleDeclaration.prototype.removeProperty;return r.CSSStyleDeclaration.prototype.removeProperty=function(i){var l,c;const a=t.getId((c=(l=this.parentRule)==null?void 0:l.parentStyleSheet)==null?void 0:c.ownerNode);return a!==-1&&e({id:a,remove:{property:i},index:st(this.parentRule)}),o.apply(this,arguments)},()=>{r.CSSStyleDeclaration.prototype.setProperty=n,r.CSSStyleDeclaration.prototype.removeProperty=o}}function Wo({mediaInteractionCb:e,blockClass:t,mirror:r,sampling:n}){const o=l=>Oe(c=>{const a=Be(c);if(!a||se(a,t,!0))return;const{currentTime:s,volume:u,muted:d}=a;e({type:l,id:r.getId(a),currentTime:s,volume:u,muted:d})},n.media||500),i=[ie("play",o(Te.Play)),ie("pause",o(Te.Pause)),ie("seeked",o(Te.Seeked)),ie("volumechange",o(Te.VolumeChange))];return()=>{i.forEach(l=>l())}}function jo({fontCb:e,doc:t}){const r=t.defaultView;if(!r)return()=>{};const n=[],o=new WeakMap,i=r.FontFace;r.FontFace=function(c,a,s){const u=new i(c,a,s);return o.set(u,{family:c,buffer:typeof a!="string",descriptors:s,fontSource:typeof a=="string"?a:JSON.stringify(Array.from(new Uint8Array(a)))}),u};const l=be(t.fonts,"add",function(c){return function(a){return setTimeout(()=>{const s=o.get(a);s&&(e(s),o.delete(a))},0),c.apply(this,[a])}});return n.push(()=>{r.FontFace=i}),n.push(l),()=>{n.forEach(c=>c())}}function Vo(e,t){const{mutationCb:r,mousemoveCb:n,mouseInteractionCb:o,scrollCb:i,viewportResizeCb:l,inputCb:c,mediaInteractionCb:a,styleSheetRuleCb:s,styleDeclarationCb:u,canvasMutationCb:d,fontCb:h}=e;e.mutationCb=(...m)=>{t.mutation&&t.mutation(...m),r(...m)},e.mousemoveCb=(...m)=>{t.mousemove&&t.mousemove(...m),n(...m)},e.mouseInteractionCb=(...m)=>{t.mouseInteraction&&t.mouseInteraction(...m),o(...m)},e.scrollCb=(...m)=>{t.scroll&&t.scroll(...m),i(...m)},e.viewportResizeCb=(...m)=>{t.viewportResize&&t.viewportResize(...m),l(...m)},e.inputCb=(...m)=>{t.input&&t.input(...m),c(...m)},e.mediaInteractionCb=(...m)=>{t.mediaInteaction&&t.mediaInteaction(...m),a(...m)},e.styleSheetRuleCb=(...m)=>{t.styleSheetRule&&t.styleSheetRule(...m),s(...m)},e.styleDeclarationCb=(...m)=>{t.styleDeclaration&&t.styleDeclaration(...m),u(...m)},e.canvasMutationCb=(...m)=>{t.canvasMutation&&t.canvasMutation(...m),d(...m)},e.fontCb=(...m)=>{t.font&&t.font(...m),h(...m)}}function Uo(e,t={}){const r=e.doc.defaultView;if(!r)return()=>{};Vo(e,t);const n=xr(e,e.doc),o=Do(e),i=Lo(e),l=Or(e),c=Ao(e),a=Fo(e),s=Wo(e),u=_o(e,{win:r}),d=$o(e,{win:r}),h=e.collectFonts?jo(e):()=>{},m=[];for(const f of e.plugins)m.push(f.observer(f.callback,r,f.options));return()=>{Ee.forEach(f=>f.reset()),n.disconnect(),o(),i(),l(),c(),a(),s(),u(),d(),h(),m.forEach(f=>f())}}class Go{constructor(t){this.iframes=new WeakMap,this.mutationCb=t.mutationCb}addIframe(t){this.iframes.set(t,!0)}addLoadListener(t){this.loadListener=t}attachIframe(t,r,n){var o;this.mutationCb({adds:[{parentId:n.getId(t),nextId:null,node:r}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),(o=this.loadListener)==null||o.call(this,t)}}var zo=Object.defineProperty,Bo=Object.defineProperties,Ho=Object.getOwnPropertyDescriptors,Lr=Object.getOwnPropertySymbols,Yo=Object.prototype.hasOwnProperty,Xo=Object.prototype.propertyIsEnumerable,Ar=(e,t,r)=>t in e?zo(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Pr=(e,t)=>{for(var r in t||(t={}))Yo.call(t,r)&&Ar(e,r,t[r]);if(Lr)for(var r of Lr(t))Xo.call(t,r)&&Ar(e,r,t[r]);return e},Fr=(e,t)=>Bo(e,Ho(t));class Zo{constructor(t){this.restorePatches=[],this.mutationCb=t.mutationCb,this.scrollCb=t.scrollCb,this.bypassOptions=t.bypassOptions,this.mirror=t.mirror;const r=this;this.restorePatches.push(be(HTMLElement.prototype,"attachShadow",function(n){return function(){const o=n.apply(this,arguments);return this.shadowRoot&&r.addShadowRoot(this.shadowRoot,this.ownerDocument),o}}))}addShadowRoot(t,r){xr(Fr(Pr({},this.bypassOptions),{doc:r,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this}),t),Or(Fr(Pr({},this.bypassOptions),{scrollCb:this.scrollCb,doc:t,mirror:this.mirror}))}observeAttachShadow(t){if(t.contentWindow){const r=this;this.restorePatches.push(be(t.contentWindow.HTMLElement.prototype,"attachShadow",function(n){return function(){const o=n.apply(this,arguments);return this.shadowRoot&&r.addShadowRoot(this.shadowRoot,t.contentDocument),o}}))}}reset(){this.restorePatches.forEach(t=>t())}}for(var Le="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",He=typeof Uint8Array>"u"?[]:new Uint8Array(256),at=0;at<Le.length;at++)He[Le.charCodeAt(at)]=at;var Ko=function(e){var t=new Uint8Array(e),r,n=t.length,o="";for(r=0;r<n;r+=3)o+=Le[t[r]>>2],o+=Le[(t[r]&3)<<4|t[r+1]>>4],o+=Le[(t[r+1]&15)<<2|t[r+2]>>6],o+=Le[t[r+2]&63];return n%3===2?o=o.substring(0,o.length-1)+"=":n%3===1&&(o=o.substring(0,o.length-2)+"=="),o},qo=function(e){var t=e.length*.75,r=e.length,n,o=0,i,l,c,a;e[e.length-1]==="="&&(t--,e[e.length-2]==="="&&t--);var s=new ArrayBuffer(t),u=new Uint8Array(s);for(n=0;n<r;n+=4)i=He[e.charCodeAt(n)],l=He[e.charCodeAt(n+1)],c=He[e.charCodeAt(n+2)],a=He[e.charCodeAt(n+3)],u[o++]=i<<2|l>>4,u[o++]=(l&15)<<4|c>>2,u[o++]=(c&3)<<6|a&63;return s};const _r=new Map;function Jo(e,t){let r=_r.get(e);return r||(r=new Map,_r.set(e,r)),r.has(t)||r.set(t,[]),r.get(t)}const $r=(e,t,r)=>{if(!e||!(jr(e,t)||typeof e=="object"))return;const n=e.constructor.name,o=Jo(r,n);let i=o.indexOf(e);return i===-1&&(i=o.length,o.push(e)),i};function lt(e,t,r){if(e instanceof Array)return e.map(n=>lt(n,t,r));if(e===null)return e;if(e instanceof Float32Array||e instanceof Float64Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Uint8Array||e instanceof Uint16Array||e instanceof Int16Array||e instanceof Int8Array||e instanceof Uint8ClampedArray)return{rr_type:e.constructor.name,args:[Object.values(e)]};if(e instanceof ArrayBuffer){const n=e.constructor.name,o=Ko(e);return{rr_type:n,base64:o}}else{if(e instanceof DataView)return{rr_type:e.constructor.name,args:[lt(e.buffer,t,r),e.byteOffset,e.byteLength]};if(e instanceof HTMLImageElement){const n=e.constructor.name,{src:o}=e;return{rr_type:n,src:o}}else if(e instanceof HTMLCanvasElement){const n="HTMLImageElement",o=e.toDataURL();return{rr_type:n,src:o}}else{if(e instanceof ImageData)return{rr_type:e.constructor.name,args:[lt(e.data,t,r),e.width,e.height]};if(jr(e,t)||typeof e=="object"){const n=e.constructor.name,o=$r(e,t,r);return{rr_type:n,index:o}}}}return e}const Wr=(e,t,r)=>[...e].map(n=>lt(n,t,r)),jr=(e,t)=>{const r=["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"].filter(n=>typeof t[n]=="function");return Boolean(r.find(n=>e instanceof t[n]))};function Qo(e,t,r,n){const o=[],i=Object.getOwnPropertyNames(t.CanvasRenderingContext2D.prototype);for(const l of i)try{if(typeof t.CanvasRenderingContext2D.prototype[l]!="function")continue;const c=be(t.CanvasRenderingContext2D.prototype,l,function(a){return function(...s){return se(this.canvas,r,!0)||setTimeout(()=>{const u=Wr([...s],t,this);e(this.canvas,{type:fe["2D"],property:l,args:u})},0),a.apply(this,s)}});o.push(c)}catch{const a=Ge(t.CanvasRenderingContext2D.prototype,l,{set(s){e(this.canvas,{type:fe["2D"],property:l,args:[s],setter:!0})}});o.push(a)}return()=>{o.forEach(l=>l())}}function Vr(e,t){const r=[];try{const n=be(e.HTMLCanvasElement.prototype,"getContext",function(o){return function(i,...l){return se(this,t,!0)||"__context"in this||(this.__context=i),o.apply(this,[i,...l])}});r.push(n)}catch{console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return()=>{r.forEach(n=>n())}}function Ur(e,t,r,n,o,i){const l=[],c=Object.getOwnPropertyNames(e);for(const a of c)try{if(typeof e[a]!="function")continue;const s=be(e,a,function(u){return function(...d){const h=u.apply(this,d);if($r(h,i,e),!se(this.canvas,n,!0)){const m=Wr([...d],i,e),f={type:t,property:a,args:m};r(this.canvas,f)}return h}});l.push(s)}catch{const u=Ge(e,a,{set(d){r(this.canvas,{type:t,property:a,args:[d],setter:!0})}});l.push(u)}return l}function ei(e,t,r,n){const o=[];return o.push(...Ur(t.WebGLRenderingContext.prototype,fe.WebGL,e,r,n,t)),typeof t.WebGL2RenderingContext<"u"&&o.push(...Ur(t.WebGL2RenderingContext.prototype,fe.WebGL2,e,r,n,t)),()=>{o.forEach(i=>i())}}function ti(e,t){var r=atob(e);if(t){for(var n=new Uint8Array(r.length),o=0,i=r.length;o<i;++o)n[o]=r.charCodeAt(o);return String.fromCharCode.apply(null,new Uint16Array(n.buffer))}return r}function ri(e,t,r){var n=t===void 0?null:t,o=r===void 0?!1:r,i=ti(e,o),l=i.indexOf(`
|
|
5
|
-
`,10)+1,c=i.substring(l)+(n?"//# sourceMappingURL="+n:""),a=new Blob([c],{type:"application/javascript"});return URL.createObjectURL(a)}function ni(e,t,r){var n;return function(i){return n=n||ri(e,t,r),new Worker(n,i)}}var oi=ni("Lyogcm9sbHVwLXBsdWdpbi13ZWItd29ya2VyLWxvYWRlciAqLwooZnVuY3Rpb24oKXsidXNlIHN0cmljdCI7Zm9yKHZhciByPSJBQkNERUZHSElKS0xNTk9QUVJTVFVWV1hZWmFiY2RlZmdoaWprbG1ub3BxcnN0dXZ3eHl6MDEyMzQ1Njc4OSsvIixsPXR5cGVvZiBVaW50OEFycmF5PiJ1Ij9bXTpuZXcgVWludDhBcnJheSgyNTYpLGY9MDtmPHIubGVuZ3RoO2YrKylsW3IuY2hhckNvZGVBdChmKV09Zjt2YXIgZD1mdW5jdGlvbihzKXt2YXIgZT1uZXcgVWludDhBcnJheShzKSxuLGE9ZS5sZW5ndGgsdD0iIjtmb3Iobj0wO248YTtuKz0zKXQrPXJbZVtuXT4+Ml0sdCs9clsoZVtuXSYzKTw8NHxlW24rMV0+PjRdLHQrPXJbKGVbbisxXSYxNSk8PDJ8ZVtuKzJdPj42XSx0Kz1yW2VbbisyXSY2M107cmV0dXJuIGElMz09PTI/dD10LnN1YnN0cmluZygwLHQubGVuZ3RoLTEpKyI9IjphJTM9PT0xJiYodD10LnN1YnN0cmluZygwLHQubGVuZ3RoLTIpKyI9PSIpLHR9O2NvbnN0IGM9bmV3IE1hcCx1PW5ldyBNYXA7YXN5bmMgZnVuY3Rpb24gcChzLGUpe2NvbnN0IG49YCR7c30tJHtlfWA7aWYodS5oYXMobikpcmV0dXJuIHUuZ2V0KG4pO2NvbnN0IGE9bmV3IE9mZnNjcmVlbkNhbnZhcyhzLGUpO2EuZ2V0Q29udGV4dCgiMmQiKTtjb25zdCB0PWF3YWl0KGF3YWl0IGEuY29udmVydFRvQmxvYigpKS5hcnJheUJ1ZmZlcigpLGc9ZCh0KTtyZXR1cm4gdS5zZXQobixnKSxnfWNvbnN0IGk9c2VsZjtpLm9ubWVzc2FnZT1hc3luYyBmdW5jdGlvbihzKXtpZighKCJPZmZzY3JlZW5DYW52YXMiaW4gZ2xvYmFsVGhpcykpcmV0dXJuIGkucG9zdE1lc3NhZ2Uoe2lkOnMuZGF0YS5pZH0pO2NvbnN0e2lkOmUsYml0bWFwOm4sd2lkdGg6YSxoZWlnaHQ6dH09cy5kYXRhLGc9cChhLHQpLGg9bmV3IE9mZnNjcmVlbkNhbnZhcyhhLHQpO2guZ2V0Q29udGV4dCgiMmQiKS5kcmF3SW1hZ2UobiwwLDApLG4uY2xvc2UoKTtjb25zdCB3PWF3YWl0IGguY29udmVydFRvQmxvYigpLHk9dy50eXBlLGI9YXdhaXQgdy5hcnJheUJ1ZmZlcigpLG89ZChiKTtpZighYy5oYXMoZSkmJmF3YWl0IGc9PT1vKXJldHVybiBjLnNldChlLG8pLGkucG9zdE1lc3NhZ2Uoe2lkOmV9KTtpZihjLmdldChlKT09PW8pcmV0dXJuIGkucG9zdE1lc3NhZ2Uoe2lkOmV9KTtpLnBvc3RNZXNzYWdlKHtpZDplLHR5cGU6eSxiYXNlNjQ6byx3aWR0aDphLGhlaWdodDp0fSksYy5zZXQoZSxvKX19KSgpOwoK",null,!1),Gr=Object.getOwnPropertySymbols,ii=Object.prototype.hasOwnProperty,si=Object.prototype.propertyIsEnumerable,ai=(e,t)=>{var r={};for(var n in e)ii.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Gr)for(var n of Gr(e))t.indexOf(n)<0&&si.call(e,n)&&(r[n]=e[n]);return r},li=(e,t,r)=>new Promise((n,o)=>{var i=a=>{try{c(r.next(a))}catch(s){o(s)}},l=a=>{try{c(r.throw(a))}catch(s){o(s)}},c=a=>a.done?n(a.value):Promise.resolve(a.value).then(i,l);c((r=r.apply(e,t)).next())});class ci{constructor(t){this.pendingCanvasMutations=new Map,this.rafStamps={latestId:0,invokeId:null},this.frozen=!1,this.locked=!1,this.processMutation=function(l,c){(this.rafStamps.invokeId&&this.rafStamps.latestId!==this.rafStamps.invokeId||!this.rafStamps.invokeId)&&(this.rafStamps.invokeId=this.rafStamps.latestId),this.pendingCanvasMutations.has(l)||this.pendingCanvasMutations.set(l,[]),this.pendingCanvasMutations.get(l).push(c)};const{sampling:r="all",win:n,blockClass:o,recordCanvas:i}=t;this.mutationCb=t.mutationCb,this.mirror=t.mirror,i&&r==="all"&&this.initCanvasMutationObserver(n,o),i&&typeof r=="number"&&this.initCanvasFPSObserver(r,n,o)}reset(){this.pendingCanvasMutations.clear(),this.resetObservers&&this.resetObservers()}freeze(){this.frozen=!0}unfreeze(){this.frozen=!1}lock(){this.locked=!0}unlock(){this.locked=!1}initCanvasFPSObserver(t,r,n){const o=Vr(r,n),i=new Map,l=new oi;l.onmessage=d=>{const{id:h}=d.data;if(i.set(h,!1),!("base64"in d.data))return;const{base64:m,type:f,width:v,height:S}=d.data;this.mutationCb({id:h,type:fe["2D"],commands:[{property:"clearRect",args:[0,0,v,S]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:m}],type:f}]},0,0]}]})};const c=1e3/t;let a=0,s;const u=d=>{if(a&&d-a<c){s=requestAnimationFrame(u);return}a=d,r.document.querySelectorAll(`canvas:not(.${n} *)`).forEach(h=>li(this,null,function*(){var m;const f=this.mirror.getId(h);if(i.get(f))return;if(i.set(f,!0),["webgl","webgl2"].includes(h.__context)){const S=h.getContext(h.__context);((m=S?.getContextAttributes())==null?void 0:m.preserveDrawingBuffer)===!1&&S?.clear(S.COLOR_BUFFER_BIT)}const v=yield createImageBitmap(h);l.postMessage({id:f,bitmap:v,width:h.width,height:h.height},[v])})),s=requestAnimationFrame(u)};s=requestAnimationFrame(u),this.resetObservers=()=>{o(),cancelAnimationFrame(s)}}initCanvasMutationObserver(t,r){this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher();const n=Vr(t,r),o=Qo(this.processMutation.bind(this),t,r,this.mirror),i=ei(this.processMutation.bind(this),t,r,this.mirror);this.resetObservers=()=>{n(),o(),i()}}startPendingCanvasMutationFlusher(){requestAnimationFrame(()=>this.flushPendingCanvasMutations())}startRAFTimestamping(){const t=r=>{this.rafStamps.latestId=r,requestAnimationFrame(t)};requestAnimationFrame(t)}flushPendingCanvasMutations(){this.pendingCanvasMutations.forEach((t,r)=>{const n=this.mirror.getId(r);this.flushPendingCanvasMutationFor(r,n)}),requestAnimationFrame(()=>this.flushPendingCanvasMutations())}flushPendingCanvasMutationFor(t,r){if(this.frozen||this.locked)return;const n=this.pendingCanvasMutations.get(t);if(!n||r===-1)return;const o=n.map(l=>ai(l,["type"])),{type:i}=n[0];this.mutationCb({id:r,type:i,commands:o}),this.pendingCanvasMutations.delete(t)}}class ui{constructor(t){this.trackedStylesheets=new WeakSet,this.mutationCb=t.mutationCb}addStylesheet(t){this.trackedStylesheets.has(t)||(this.trackedStylesheets.add(t),this.trackStylesheet(t))}trackStylesheet(t){}attachStylesheet(t,r,n){this.mutationCb({adds:[{parentId:n.getId(t),nextId:null,node:r}],removes:[],texts:[],attributes:[]}),this.addStylesheet(t)}}var di=Object.defineProperty,hi=Object.defineProperties,mi=Object.getOwnPropertyDescriptors,zr=Object.getOwnPropertySymbols,pi=Object.prototype.hasOwnProperty,fi=Object.prototype.propertyIsEnumerable,Br=(e,t,r)=>t in e?di(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,ae=(e,t)=>{for(var r in t||(t={}))pi.call(t,r)&&Br(e,r,t[r]);if(zr)for(var r of zr(t))fi.call(t,r)&&Br(e,r,t[r]);return e},vi=(e,t)=>hi(e,mi(t));function te(e){return vi(ae({},e),{timestamp:Date.now()})}let Q,Ye;const de=tr();function Ce(e={}){const{emit:t,checkoutEveryNms:r,checkoutEveryNth:n,blockClass:o="highlight-block",blockSelector:i=null,ignoreClass:l="highlight-ignore",maskTextClass:c="highlight-mask",maskTextSelector:a=null,inlineStylesheet:s=!0,maskAllInputs:u,maskInputOptions:d,slimDOMOptions:h,maskInputFn:m,maskTextFn:f,hooks:v,packFn:S,sampling:p={},mousemoveWait:y,recordCanvas:b=!1,userTriggeredOnInput:N=!1,collectFonts:k=!1,inlineImages:M=!1,plugins:x,keepIframeSrcFn:T=()=>!1,enableStrictPrivacy:D=!1}=e;if(!t)throw new Error("emit function is required");y!==void 0&&p.mousemove===void 0&&(p.mousemove=y),de.reset();const W=u===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0}:d!==void 0?d:{password:!0},Y=h===!0||h==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:h==="all",headMetaDescKeywords:h==="all"}:h||{};Ct();let j,H=0;const A=E=>{for(const I of x||[])I.eventProcessor&&(E=I.eventProcessor(E));return S&&(E=S(E)),E};Q=(E,I)=>{var G;if(((G=Ee[0])==null?void 0:G.isFrozen())&&E.type!==R.FullSnapshot&&!(E.type===R.IncrementalSnapshot&&E.data.source===L.Mutation)&&Ee.forEach(z=>z.unfreeze()),t(A(E),I),E.type===R.FullSnapshot)j=E,H=0;else if(E.type===R.IncrementalSnapshot){if(E.data.source===L.Mutation&&E.data.isAttachIframe)return;H++;const z=n&&H>=n,oe=r&&E.timestamp-j.timestamp>r;(z||oe)&&Ye(!0)}};const U=E=>{Q(te({type:R.IncrementalSnapshot,data:ae({source:L.Mutation},E)}))},P=E=>Q(te({type:R.IncrementalSnapshot,data:ae({source:L.Scroll},E)})),O=E=>Q(te({type:R.IncrementalSnapshot,data:ae({source:L.CanvasMutation},E)})),$=new Go({mutationCb:U}),w=new ui({mutationCb:U}),g=new ci({recordCanvas:b,mutationCb:O,win:window,blockClass:o,mirror:de,sampling:p.canvas}),C=new Zo({mutationCb:U,scrollCb:P,bypassOptions:{blockClass:o,blockSelector:i,maskTextClass:c,maskTextSelector:a,inlineStylesheet:s,maskInputOptions:W,maskTextFn:f,maskInputFn:m,recordCanvas:b,inlineImages:M,sampling:p,slimDOMOptions:Y,iframeManager:$,stylesheetManager:w,canvasManager:g,enableStrictPrivacy:D},mirror:de});Ye=(E=!1)=>{var I,G,z,oe;Q(te({type:R.Meta,data:{href:window.location.href,width:Nt(),height:wt()}}),E),Ee.forEach(X=>X.lock());const V=po(document,{mirror:de,blockClass:o,blockSelector:i,maskTextClass:c,maskTextSelector:a,inlineStylesheet:s,maskAllInputs:W,maskTextFn:f,slimDOM:Y,recordCanvas:b,inlineImages:M,enableStrictPrivacy:D,onSerialize:X=>{Re(X,de)&&$.addIframe(X),Mt(X,de)&&w.addStylesheet(X),ze(X)&&C.addShadowRoot(X.shadowRoot,document)},onIframeLoad:(X,ge)=>{$.attachIframe(X,ge,de),C.observeAttachShadow(X)},onStylesheetLoad:(X,ge)=>{w.attachStylesheet(X,ge,de)},keepIframeSrcFn:T});if(!V)return console.warn("Failed to snapshot the document");Q(te({type:R.FullSnapshot,data:{node:V,initialOffset:{left:window.pageXOffset!==void 0?window.pageXOffset:document?.documentElement.scrollLeft||((G=(I=document?.body)==null?void 0:I.parentElement)==null?void 0:G.scrollLeft)||document?.body.scrollLeft||0,top:window.pageYOffset!==void 0?window.pageYOffset:document?.documentElement.scrollTop||((oe=(z=document?.body)==null?void 0:z.parentElement)==null?void 0:oe.scrollTop)||document?.body.scrollTop||0}}})),Ee.forEach(X=>X.unlock())};try{const E=[];E.push(ie("DOMContentLoaded",()=>{Q(te({type:R.DomContentLoaded,data:{}}))}));const I=z=>{var oe;return Uo({mutationCb:U,mousemoveCb:(V,X)=>Q(te({type:R.IncrementalSnapshot,data:{source:X,positions:V}})),mouseInteractionCb:V=>Q(te({type:R.IncrementalSnapshot,data:ae({source:L.MouseInteraction},V)})),scrollCb:P,viewportResizeCb:V=>Q(te({type:R.IncrementalSnapshot,data:ae({source:L.ViewportResize},V)})),inputCb:V=>Q(te({type:R.IncrementalSnapshot,data:ae({source:L.Input},V)})),mediaInteractionCb:V=>Q(te({type:R.IncrementalSnapshot,data:ae({source:L.MediaInteraction},V)})),styleSheetRuleCb:V=>Q(te({type:R.IncrementalSnapshot,data:ae({source:L.StyleSheetRule},V)})),styleDeclarationCb:V=>Q(te({type:R.IncrementalSnapshot,data:ae({source:L.StyleDeclaration},V)})),canvasMutationCb:O,fontCb:V=>Q(te({type:R.IncrementalSnapshot,data:ae({source:L.Font},V)})),blockClass:o,ignoreClass:l,maskTextClass:c,maskTextSelector:a,maskInputOptions:W,inlineStylesheet:s,sampling:p,recordCanvas:b,inlineImages:M,userTriggeredOnInput:N,collectFonts:k,doc:z,maskInputFn:m,maskTextFn:f,blockSelector:i,slimDOMOptions:Y,mirror:de,iframeManager:$,stylesheetManager:w,shadowDomManager:C,canvasManager:g,enableStrictPrivacy:D,plugins:((oe=x?.filter(V=>V.observer))==null?void 0:oe.map(V=>({observer:V.observer,options:V.options,callback:X=>Q(te({type:R.Plugin,data:{plugin:V.name,payload:X}}))})))||[]},v)};$.addLoadListener(z=>{E.push(I(z.contentDocument))});const G=()=>{Ye(),E.push(I(document))};return document.readyState==="interactive"||document.readyState==="complete"?G():E.push(ie("load",()=>{Q(te({type:R.Load,data:{}})),G()},window)),()=>{E.forEach(z=>z())}}catch(E){console.warn(E)}}Ce.addCustomEvent=(e,t)=>{!Q||Q(te({type:R.Custom,data:{tag:e,payload:t}}))},Ce.freezePage=()=>{Ee.forEach(e=>e.freeze())},Ce.takeFullSnapshot=e=>{if(!Ye)throw new Error("please take full snapshot after start recording");Ye(e)},Ce.mirror=de;var F;(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"})(F||(F={}));var gi=function(){function e(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}return e.prototype.getId=function(t){var r;if(!t)return-1;var n=(r=this.getMeta(t))===null||r===void 0?void 0:r.id;return n??-1},e.prototype.getNode=function(t){return this.idNodeMap.get(t)||null},e.prototype.getIds=function(){return Array.from(this.idNodeMap.keys())},e.prototype.getMeta=function(t){return this.nodeMetaMap.get(t)||null},e.prototype.removeNodeFromMap=function(t){var r=this,n=this.getId(t);this.idNodeMap.delete(n),t.childNodes&&t.childNodes.forEach(function(o){return r.removeNodeFromMap(o)})},e.prototype.has=function(t){return this.idNodeMap.has(t)},e.prototype.hasNode=function(t){return this.nodeMetaMap.has(t)},e.prototype.add=function(t,r){var n=r.id;this.idNodeMap.set(n,t),this.nodeMetaMap.set(t,r)},e.prototype.replace=function(t,r){this.idNodeMap.set(t,r)},e.prototype.reset=function(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap},e}();function yi(){return new gi}function bi(e){const t={},r=/;(?![^(]*\))/g,n=/:(.+)/,o=/\/\*.*?\*\//g;return e.replace(o,"").split(r).forEach(function(i){if(i){const l=i.split(n);l.length>1&&(t[Rt(l[0].trim())]=l[1].trim())}}),t}function Hr(e){const t=[];for(const r in e){const n=e[r];if(typeof n!="string")continue;const o=Ti(r);t.push(`${o}: ${n};`)}return t.join(" ")}const Si=/-([a-z])/g,wi=/^--[a-zA-Z0-9-]+$/,Rt=e=>wi.test(e)?e:e.replace(Si,(t,r)=>r?r.toUpperCase():""),Ni=/\B([A-Z])/g,Ti=e=>e.replace(Ni,"-$1").toLowerCase();class le{constructor(...t){this.childNodes=[],this.parentElement=null,this.parentNode=null,this.ELEMENT_NODE=J.ELEMENT_NODE,this.TEXT_NODE=J.TEXT_NODE}get firstChild(){return this.childNodes[0]||null}get lastChild(){return this.childNodes[this.childNodes.length-1]||null}get nextSibling(){const t=this.parentNode;if(!t)return null;const r=t.childNodes,n=r.indexOf(this);return r[n+1]||null}contains(t){if(t===this)return!0;for(const r of this.childNodes)if(r.contains(t))return!0;return!1}appendChild(t){throw new Error("RRDomException: Failed to execute 'appendChild' on 'RRNode': This RRNode type does not support this method.")}insertBefore(t,r){throw new Error("RRDomException: Failed to execute 'insertBefore' on 'RRNode': This RRNode type does not support this method.")}removeChild(t){throw new Error("RRDomException: Failed to execute 'removeChild' on 'RRNode': This RRNode type does not support this method.")}toString(){return"RRNode"}}function Ei(e){return class Vn extends e{constructor(){super(...arguments),this.nodeType=J.DOCUMENT_NODE,this.nodeName="#document",this.compatMode="CSS1Compat",this.RRNodeType=F.Document,this.textContent=null}get documentElement(){return this.childNodes.find(r=>r.RRNodeType===F.Element&&r.tagName==="HTML")||null}get body(){var r;return((r=this.documentElement)===null||r===void 0?void 0:r.childNodes.find(n=>n.RRNodeType===F.Element&&n.tagName==="BODY"))||null}get head(){var r;return((r=this.documentElement)===null||r===void 0?void 0:r.childNodes.find(n=>n.RRNodeType===F.Element&&n.tagName==="HEAD"))||null}get implementation(){return this}get firstElementChild(){return this.documentElement}appendChild(r){const n=r.RRNodeType;if((n===F.Element||n===F.DocumentType)&&this.childNodes.some(o=>o.RRNodeType===n))throw new Error(`RRDomException: Failed to execute 'appendChild' on 'RRNode': Only one ${n===F.Element?"RRElement":"RRDoctype"} on RRDocument allowed.`);return r.parentElement=null,r.parentNode=this,this.childNodes.push(r),r}insertBefore(r,n){const o=r.RRNodeType;if((o===F.Element||o===F.DocumentType)&&this.childNodes.some(l=>l.RRNodeType===o))throw new Error(`RRDomException: Failed to execute 'insertBefore' on 'RRNode': Only one ${o===F.Element?"RRElement":"RRDoctype"} on RRDocument allowed.`);if(n===null)return this.appendChild(r);const i=this.childNodes.indexOf(n);if(i==-1)throw new Error("Failed to execute 'insertBefore' on 'RRNode': The RRNode before which the new node is to be inserted is not a child of this RRNode.");return this.childNodes.splice(i,0,r),r.parentElement=null,r.parentNode=this,r}removeChild(r){const n=this.childNodes.indexOf(r);if(n===-1)throw new Error("Failed to execute 'removeChild' on 'RRDocument': The RRNode to be removed is not a child of this RRNode.");return this.childNodes.splice(n,1),r.parentElement=null,r.parentNode=null,r}open(){this.childNodes=[]}close(){}write(r){let n;if(r==='<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">'?n="-//W3C//DTD XHTML 1.0 Transitional//EN":r==='<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "">'&&(n="-//W3C//DTD HTML 4.0 Transitional//EN"),n){const o=this.createDocumentType("html",n,"");this.open(),this.appendChild(o)}}createDocument(r,n,o){return new Vn}createDocumentType(r,n,o){const i=new(Yr(le))(r,n,o);return i.ownerDocument=this,i}createElement(r){const n=new(Xr(le))(r);return n.ownerDocument=this,n}createElementNS(r,n){return this.createElement(n)}createTextNode(r){const n=new(Zr(le))(r);return n.ownerDocument=this,n}createComment(r){const n=new(Kr(le))(r);return n.ownerDocument=this,n}createCDATASection(r){const n=new(qr(le))(r);return n.ownerDocument=this,n}toString(){return"RRDocument"}}}function Yr(e){return class extends e{constructor(t,r,n){super(),this.nodeType=J.DOCUMENT_TYPE_NODE,this.RRNodeType=F.DocumentType,this.textContent=null,this.name=t,this.publicId=r,this.systemId=n,this.nodeName=t}toString(){return"RRDocumentType"}}}function Xr(e){return class extends e{constructor(t){super(),this.nodeType=J.ELEMENT_NODE,this.RRNodeType=F.Element,this.attributes={},this.shadowRoot=null,this.tagName=t.toUpperCase(),this.nodeName=t.toUpperCase()}get textContent(){let t="";return this.childNodes.forEach(r=>t+=r.textContent),t}set textContent(t){this.childNodes=[this.ownerDocument.createTextNode(t)]}get classList(){return new Ii(this.attributes.class,t=>{this.attributes.class=t})}get id(){return this.attributes.id||""}get className(){return this.attributes.class||""}get style(){const t=this.attributes.style?bi(this.attributes.style):{},r=/\B([A-Z])/g;return t.setProperty=(n,o,i)=>{if(r.test(n))return;const l=Rt(n);o?t[l]=o:delete t[l],i==="important"&&(t[l]+=" !important"),this.attributes.style=Hr(t)},t.removeProperty=n=>{if(r.test(n))return"";const o=Rt(n),i=t[o]||"";return delete t[o],this.attributes.style=Hr(t),i},t}getAttribute(t){return this.attributes[t]||null}setAttribute(t,r){this.attributes[t]=r}setAttributeNS(t,r,n){this.setAttribute(r,n)}removeAttribute(t){delete this.attributes[t]}appendChild(t){return this.childNodes.push(t),t.parentNode=this,t.parentElement=this,t}insertBefore(t,r){if(r===null)return this.appendChild(t);const n=this.childNodes.indexOf(r);if(n==-1)throw new Error("Failed to execute 'insertBefore' on 'RRNode': The RRNode before which the new node is to be inserted is not a child of this RRNode.");return this.childNodes.splice(n,0,t),t.parentElement=this,t.parentNode=this,t}removeChild(t){const r=this.childNodes.indexOf(t);if(r===-1)throw new Error("Failed to execute 'removeChild' on 'RRElement': The RRNode to be removed is not a child of this RRNode.");return this.childNodes.splice(r,1),t.parentElement=null,t.parentNode=null,t}attachShadow(t){const r=this.ownerDocument.createElement("SHADOWROOT");return this.shadowRoot=r,r}dispatchEvent(t){return!0}toString(){let t="";for(const r in this.attributes)t+=`${r}="${this.attributes[r]}" `;return`${this.tagName} ${t}`}}}function Ci(e){return class extends e{attachShadow(t){throw new Error("RRDomException: Failed to execute 'attachShadow' on 'RRElement': This RRElement does not support attachShadow")}play(){this.paused=!1}pause(){this.paused=!0}}}function Zr(e){return class extends e{constructor(t){super(),this.nodeType=J.TEXT_NODE,this.nodeName="#text",this.RRNodeType=F.Text,this.data=t}get textContent(){return this.data}set textContent(t){this.data=t}toString(){return`RRText text=${JSON.stringify(this.data)}`}}}function Kr(e){return class extends e{constructor(t){super(),this.nodeType=J.COMMENT_NODE,this.nodeName="#comment",this.RRNodeType=F.Comment,this.data=t}get textContent(){return this.data}set textContent(t){this.data=t}toString(){return`RRComment text=${JSON.stringify(this.data)}`}}}function qr(e){return class extends e{constructor(t){super(),this.nodeName="#cdata-section",this.nodeType=J.CDATA_SECTION_NODE,this.RRNodeType=F.CDATA,this.data=t}get textContent(){return this.data}set textContent(t){this.data=t}toString(){return`RRCDATASection data=${JSON.stringify(this.data)}`}}}class Ii{constructor(t,r){if(this.classes=[],this.add=(...n)=>{for(const o of n){const i=String(o);this.classes.indexOf(i)>=0||this.classes.push(i)}this.onChange&&this.onChange(this.classes.join(" "))},this.remove=(...n)=>{this.classes=this.classes.filter(o=>n.indexOf(o)===-1),this.onChange&&this.onChange(this.classes.join(" "))},t){const n=t.trim().split(/\s+/);this.classes.push(...n)}this.onChange=r}}var J;(function(e){e[e.PLACEHOLDER=0]="PLACEHOLDER",e[e.ELEMENT_NODE=1]="ELEMENT_NODE",e[e.ATTRIBUTE_NODE=2]="ATTRIBUTE_NODE",e[e.TEXT_NODE=3]="TEXT_NODE",e[e.CDATA_SECTION_NODE=4]="CDATA_SECTION_NODE",e[e.ENTITY_REFERENCE_NODE=5]="ENTITY_REFERENCE_NODE",e[e.ENTITY_NODE=6]="ENTITY_NODE",e[e.PROCESSING_INSTRUCTION_NODE=7]="PROCESSING_INSTRUCTION_NODE",e[e.COMMENT_NODE=8]="COMMENT_NODE",e[e.DOCUMENT_NODE=9]="DOCUMENT_NODE",e[e.DOCUMENT_TYPE_NODE=10]="DOCUMENT_TYPE_NODE",e[e.DOCUMENT_FRAGMENT_NODE=11]="DOCUMENT_FRAGMENT_NODE"})(J||(J={}));const Dt={svg:"http://www.w3.org/2000/svg","xlink:href":"http://www.w3.org/1999/xlink",xmlns:"http://www.w3.org/2000/xmlns/"};function he(e,t,r,n){const o=e.childNodes,i=t.childNodes;n=n||t.mirror||t.ownerDocument.mirror,(o.length>0||i.length>0)&&Jr(Array.from(o),i,e,r,n);let l=null,c=null;switch(t.RRNodeType){case F.Document:{c=t.scrollData;break}case F.Element:{const a=e,s=t;switch(Mi(a,s,n),c=s.scrollData,l=s.inputData,s.tagName){case"AUDIO":case"VIDEO":{const u=e,d=s;d.paused!==void 0&&(d.paused?u.pause():u.play()),d.muted!==void 0&&(u.muted=d.muted),d.volume!==void 0&&(u.volume=d.volume),d.currentTime!==void 0&&(u.currentTime=d.currentTime);break}case"CANVAS":t.canvasMutations.forEach(u=>r.applyCanvas(u.event,u.mutation,e));break;case"STYLE":ki(a,t.rules);break}if(s.shadowRoot){a.shadowRoot||a.attachShadow({mode:"open"});const u=a.shadowRoot.childNodes,d=s.shadowRoot.childNodes;(u.length>0||d.length>0)&&Jr(Array.from(u),d,a.shadowRoot,r,n)}break}case F.Text:case F.Comment:case F.CDATA:e.textContent!==t.data&&(e.textContent=t.data);break}if(c&&r.applyScroll(c,!0),l&&r.applyInput(l),t.nodeName==="IFRAME"){const a=e.contentDocument,s=t;if(a){const u=n.getMeta(s.contentDocument);u&&r.mirror.add(a,Object.assign({},u)),he(a,s.contentDocument,r,n)}}}function Mi(e,t,r){const n=e.attributes,o=t.attributes;for(const i in o){const l=o[i],c=r.getMeta(t);if(c&&"isSVG"in c&&c.isSVG&&Dt[i])e.setAttributeNS(Dt[i],i,l);else if(t.tagName==="CANVAS"&&i==="rr_dataURL"){const a=document.createElement("img");a.src=l,a.onload=()=>{const s=e.getContext("2d");s&&s.drawImage(a,0,0,a.width,a.height)}}else e.setAttribute(i,l)}for(const{name:i}of Array.from(n))i in o||e.removeAttribute(i);t.scrollLeft&&(e.scrollLeft=t.scrollLeft),t.scrollTop&&(e.scrollTop=t.scrollTop)}function Jr(e,t,r,n,o){var i,l;let c=0,a=e.length-1,s=0,u=t.length-1,d=e[c],h=e[a],m=t[s],f=t[u],v,S;for(;c<=a&&s<=u;)if(d===void 0)d=e[++c];else if(h===void 0)h=e[--a];else if(n.mirror.getId(d)===o.getId(m))he(d,m,n,o),d=e[++c],m=t[++s];else if(n.mirror.getId(h)===o.getId(f))he(h,f,n,o),h=e[--a],f=t[--u];else if(n.mirror.getId(d)===o.getId(f))try{r.insertBefore(d,h.nextSibling),he(d,f,n,o),d=e[++c],f=t[--u]}catch(p){console.error(p,r,d,h)}else if(n.mirror.getId(h)===o.getId(m))try{r.insertBefore(h,d),he(h,m,n,o),h=e[--a],m=t[++s]}catch(p){console.error(p,r,h,d)}else{if(!v){v={};for(let p=c;p<=a;p++){const y=e[p];y&&n.mirror.hasNode(y)&&(v[n.mirror.getId(y)]=p)}}if(S=v[o.getId(m)],S){const p=e[S];try{r.insertBefore(p,d),he(p,m,n,o),e[S]=void 0}catch(y){console.error(y,r,p,d)}}else{const p=Lt(m,n.mirror,o);((i=n.mirror.getMeta(r))===null||i===void 0?void 0:i.type)===F.Document&&((l=n.mirror.getMeta(p))===null||l===void 0?void 0:l.type)===F.Element&&r.documentElement&&(r.removeChild(r.documentElement),e[c]=void 0,d=void 0);try{r.insertBefore(p,d||null),he(p,m,n,o)}catch(y){console.error(y,r,p,d||null)}}m=t[++s]}if(c>a){const p=t[u+1];let y=null;for(p&&r.childNodes.forEach(b=>{n.mirror.getId(b)===o.getId(p)&&(y=b)});s<=u;++s){const b=Lt(t[s],n.mirror,o);try{r.insertBefore(b,y),he(b,t[s],n,o)}catch(N){console.error(N,r,b,y)}}}else if(s>u)for(;c<=a;c++){const p=e[c];p&&(r.removeChild(p),n.mirror.removeNodeFromMap(p))}}function Lt(e,t,r){let n=t.getNode(r.getId(e));const o=r.getMeta(e);if(n!==null)return n;switch(e.RRNodeType){case F.Document:n=new Document;break;case F.DocumentType:n=document.implementation.createDocumentType(e.name,e.publicId,e.systemId);break;case F.Element:{e.tagName.toLowerCase(),o&&"isSVG"in o&&o?.isSVG?n=document.createElementNS(Dt.svg,e.tagName.toLowerCase()):n=document.createElement(e.tagName);break}case F.Text:n=document.createTextNode(e.data);break;case F.Comment:n=document.createComment(e.data);break;case F.CDATA:n=document.createCDATASection(e.data);break}return o&&t.add(n,Object.assign({},o)),n}function Xe(e,t){const r=e[t[0]];return t.length===1?r:Xe(r.cssRules[t[1]].cssRules,t.slice(2))}var ce;(function(e){e[e.Insert=0]="Insert",e[e.Remove=1]="Remove",e[e.Snapshot=2]="Snapshot",e[e.SetProperty=3]="SetProperty",e[e.RemoveProperty=4]="RemoveProperty"})(ce||(ce={}));function Qr(e){const t=[...e],r=t.pop();return{positions:t,index:r}}function ki(e,t){const r=e.sheet;t.forEach(n=>{if(n.type===ce.Insert)try{if(Array.isArray(n.index)){const{positions:o,index:i}=Qr(n.index);Xe(r.cssRules,o).insertRule(n.cssText,i)}else r.insertRule(n.cssText,n.index)}catch{}else if(n.type===ce.Remove)try{if(Array.isArray(n.index)){const{positions:o,index:i}=Qr(n.index);Xe(r.cssRules,o).deleteRule(i||0)}else r.deleteRule(n.index)}catch{}else n.type===ce.SetProperty?Xe(r.cssRules,n.index).style.setProperty(n.property,n.value,n.priority):n.type===ce.RemoveProperty&&Xe(r.cssRules,n.index).style.removeProperty(n.property)})}class Ae extends Ei(le){constructor(t){super(),this._unserializedId=-1,this.mirror=Wi(),this.scrollData=null,t&&(this.mirror=t)}get unserializedId(){return this._unserializedId--}createDocument(t,r,n){return new Ae}createDocumentType(t,r,n){const o=new xi(t,r,n);return o.ownerDocument=this,o}createElement(t){const r=t.toUpperCase();let n;switch(r){case"AUDIO":case"VIDEO":n=new Oi(r);break;case"IFRAME":n=new Li(r,this.mirror);break;case"CANVAS":n=new Ri(r);break;case"STYLE":n=new Di(r);break;default:n=new Ze(r);break}return n.ownerDocument=this,n}createComment(t){const r=new Pi(t);return r.ownerDocument=this,r}createCDATASection(t){const r=new Fi(t);return r.ownerDocument=this,r}createTextNode(t){const r=new Ai(t);return r.ownerDocument=this,r}destroyTree(){this.childNodes=[],this.mirror.reset()}open(){super.open(),this._unserializedId=-1}}const xi=Yr(le);class Ze extends Xr(le){constructor(){super(...arguments),this.inputData=null,this.scrollData=null}}class Oi extends Ci(Ze){}class Ri extends Ze{constructor(){super(...arguments),this.canvasMutations=[]}getContext(){return null}}class Di extends Ze{constructor(){super(...arguments),this.rules=[]}}class Li extends Ze{constructor(t,r){super(t),this.contentDocument=new Ae,this.contentDocument.mirror=r}}const Ai=Zr(le),Pi=Kr(le),Fi=qr(le);function _i(e){return e instanceof HTMLFormElement?"FORM":e.tagName.toUpperCase()}function en(e,t,r,n){let o;switch(e.nodeType){case J.DOCUMENT_NODE:n&&n.nodeName==="IFRAME"?o=n.contentDocument:(o=t,o.compatMode=e.compatMode);break;case J.DOCUMENT_TYPE_NODE:const l=e;o=t.createDocumentType(l.name,l.publicId,l.systemId);break;case J.ELEMENT_NODE:const c=e,a=_i(c);o=t.createElement(a);const s=o;for(const{name:u,value:d}of Array.from(c.attributes))s.attributes[u]=d;c.scrollLeft&&(s.scrollLeft=c.scrollLeft),c.scrollTop&&(s.scrollTop=c.scrollTop);break;case J.TEXT_NODE:o=t.createTextNode(e.textContent||"");break;case J.CDATA_SECTION_NODE:o=t.createCDATASection(e.data);break;case J.COMMENT_NODE:o=t.createComment(e.textContent||"");break;case J.DOCUMENT_FRAGMENT_NODE:o=n.attachShadow({mode:"open"});break;default:return null}let i=r.getMeta(e);return t instanceof Ae&&(i||(i=tn(o,t.unserializedId),r.add(e,i)),t.mirror.add(o,Object.assign({},i))),o}function $i(e,t=yi(),r=new Ae){function n(o,i){const l=en(o,r,t,i);l!==null&&(i?.nodeName!=="IFRAME"&&o.nodeType!==J.DOCUMENT_FRAGMENT_NODE&&(i?.appendChild(l),l.parentNode=i,l.parentElement=i),o.nodeName==="IFRAME"?n(o.contentDocument,l):(o.nodeType===J.DOCUMENT_NODE||o.nodeType===J.ELEMENT_NODE||o.nodeType===J.DOCUMENT_FRAGMENT_NODE)&&(o.nodeType===J.ELEMENT_NODE&&o.shadowRoot&&n(o.shadowRoot,l),o.childNodes.forEach(c=>n(c,l))))}return n(e,null),r}function Wi(){return new ji}class ji{constructor(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}getId(t){var r;if(!t)return-1;const n=(r=this.getMeta(t))===null||r===void 0?void 0:r.id;return n??-1}getNode(t){return this.idNodeMap.get(t)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(t){return this.nodeMetaMap.get(t)||null}removeNodeFromMap(t){const r=this.getId(t);this.idNodeMap.delete(r),t.childNodes&&t.childNodes.forEach(n=>this.removeNodeFromMap(n))}has(t){return this.idNodeMap.has(t)}hasNode(t){return this.nodeMetaMap.has(t)}add(t,r){const n=r.id;this.idNodeMap.set(n,t),this.nodeMetaMap.set(t,r)}replace(t,r){this.idNodeMap.set(t,r)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function tn(e,t){switch(e.RRNodeType){case F.Document:return{id:t,type:e.RRNodeType,childNodes:[]};case F.DocumentType:const r=e;return{id:t,type:e.RRNodeType,name:r.name,publicId:r.publicId,systemId:r.systemId};case F.Element:return{id:t,type:e.RRNodeType,tagName:e.tagName.toLowerCase(),attributes:{},childNodes:[]};case F.Text:return{id:t,type:e.RRNodeType,textContent:e.textContent||""};case F.Comment:return{id:t,type:e.RRNodeType,textContent:e.textContent||""};case F.CDATA:return{id:t,type:e.RRNodeType,textContent:""}}}function rn(e){return e=e||Object.create(null),{on:function(r,n){(e[r]||(e[r]=[])).push(n)},off:function(r,n){e[r]&&e[r].splice(e[r].indexOf(n)>>>0,1)},emit:function(r,n){(e[r]||[]).slice().map(function(o){o(n)}),(e["*"]||[]).slice().map(function(o){o(r,n)})}}}var Vi=Object.freeze({__proto__:null,default:rn});function Ui(e=window,t=document){if("scrollBehavior"in t.documentElement.style&&e.__forceSmoothScrollPolyfill__!==!0)return;const r=e.HTMLElement||e.Element,n=468,o={scroll:e.scroll||e.scrollTo,scrollBy:e.scrollBy,elementScroll:r.prototype.scroll||a,scrollIntoView:r.prototype.scrollIntoView},i=e.performance&&e.performance.now?e.performance.now.bind(e.performance):Date.now;function l(p){const y=["MSIE ","Trident/","Edge/"];return new RegExp(y.join("|")).test(p)}const c=l(e.navigator.userAgent)?1:0;function a(p,y){this.scrollLeft=p,this.scrollTop=y}function s(p){return .5*(1-Math.cos(Math.PI*p))}function u(p){if(p===null||typeof p!="object"||p.behavior===void 0||p.behavior==="auto"||p.behavior==="instant")return!0;if(typeof p=="object"&&p.behavior==="smooth")return!1;throw new TypeError("behavior member of ScrollOptions "+p.behavior+" is not a valid value for enumeration ScrollBehavior.")}function d(p,y){if(y==="Y")return p.clientHeight+c<p.scrollHeight;if(y==="X")return p.clientWidth+c<p.scrollWidth}function h(p,y){const b=e.getComputedStyle(p,null)["overflow"+y];return b==="auto"||b==="scroll"}function m(p){const y=d(p,"Y")&&h(p,"Y"),b=d(p,"X")&&h(p,"X");return y||b}function f(p){for(;p!==t.body&&m(p)===!1;)p=p.parentNode||p.host;return p}function v(p){const y=i();let b,N,k,M=(y-p.startTime)/n;M=M>1?1:M,b=s(M),N=p.startX+(p.x-p.startX)*b,k=p.startY+(p.y-p.startY)*b,p.method.call(p.scrollable,N,k),(N!==p.x||k!==p.y)&&e.requestAnimationFrame(v.bind(e,p))}function S(p,y,b){let N,k,M,x;const T=i();p===t.body?(N=e,k=e.scrollX||e.pageXOffset,M=e.scrollY||e.pageYOffset,x=o.scroll):(N=p,k=p.scrollLeft,M=p.scrollTop,x=a),v({scrollable:N,method:x,startTime:T,startX:k,startY:M,x:y,y:b})}e.scroll=e.scrollTo=function(){if(arguments[0]!==void 0){if(u(arguments[0])===!0){o.scroll.call(e,arguments[0].left!==void 0?arguments[0].left:typeof arguments[0]!="object"?arguments[0]:e.scrollX||e.pageXOffset,arguments[0].top!==void 0?arguments[0].top:arguments[1]!==void 0?arguments[1]:e.scrollY||e.pageYOffset);return}S.call(e,t.body,arguments[0].left!==void 0?~~arguments[0].left:e.scrollX||e.pageXOffset,arguments[0].top!==void 0?~~arguments[0].top:e.scrollY||e.pageYOffset)}},e.scrollBy=function(){if(arguments[0]!==void 0){if(u(arguments[0])){o.scrollBy.call(e,arguments[0].left!==void 0?arguments[0].left:typeof arguments[0]!="object"?arguments[0]:0,arguments[0].top!==void 0?arguments[0].top:arguments[1]!==void 0?arguments[1]:0);return}S.call(e,t.body,~~arguments[0].left+(e.scrollX||e.pageXOffset),~~arguments[0].top+(e.scrollY||e.pageYOffset))}},r.prototype.scroll=r.prototype.scrollTo=function(){if(arguments[0]===void 0)return;if(u(arguments[0])===!0){if(typeof arguments[0]=="number"&&arguments[1]===void 0)throw new SyntaxError("Value could not be converted");o.elementScroll.call(this,arguments[0].left!==void 0?~~arguments[0].left:typeof arguments[0]!="object"?~~arguments[0]:this.scrollLeft,arguments[0].top!==void 0?~~arguments[0].top:arguments[1]!==void 0?~~arguments[1]:this.scrollTop);return}const p=arguments[0].left,y=arguments[0].top;S.call(this,this,typeof p>"u"?this.scrollLeft:~~p,typeof y>"u"?this.scrollTop:~~y)},r.prototype.scrollBy=function(){if(arguments[0]!==void 0){if(u(arguments[0])===!0){o.elementScroll.call(this,arguments[0].left!==void 0?~~arguments[0].left+this.scrollLeft:~~arguments[0]+this.scrollLeft,arguments[0].top!==void 0?~~arguments[0].top+this.scrollTop:~~arguments[1]+this.scrollTop);return}this.scroll({left:~~arguments[0].left+this.scrollLeft,top:~~arguments[0].top+this.scrollTop,behavior:arguments[0].behavior})}},r.prototype.scrollIntoView=function(){if(u(arguments[0])===!0){o.scrollIntoView.call(this,arguments[0]===void 0?!0:arguments[0]);return}const p=f(this),y=p.getBoundingClientRect(),b=this.getBoundingClientRect();p!==t.body?(S.call(this,p,p.scrollLeft+b.left-y.left,p.scrollTop+b.top-y.top),e.getComputedStyle(p).position!=="fixed"&&e.scrollBy({left:y.left,top:y.top,behavior:"smooth"})):e.scrollBy({left:b.left,top:b.top,behavior:"smooth"})}}class Gi{constructor(t=[],r){this.timeOffset=0,this.raf=null,this.actions=t,this.speed=r}addAction(t){const r=this.findActionIndex(t);this.actions.splice(r,0,t)}addActions(t){this.actions=this.actions.concat(t)}replaceActions(t){this.actions.length=0,this.actions.splice(0,0,...t)}start(){this.timeOffset=0;let t=performance.now();const{actions:r}=this,n=this;function o(){const i=performance.now();for(n.timeOffset+=(i-t)*n.speed,t=i;r.length;){const l=r[0];if(n.timeOffset>=l.delay)r.shift(),l.doAction();else break}(r.length>0||n.liveMode)&&(n.raf=requestAnimationFrame(o))}this.raf=requestAnimationFrame(o)}clear(){this.raf&&(cancelAnimationFrame(this.raf),this.raf=null),this.actions.length=0}setSpeed(t){this.speed=t}toggleLiveMode(t){this.liveMode=t}isActive(){return this.raf!==null}findActionIndex(t){let r=0,n=this.actions.length-1;for(;r<=n;){const o=Math.floor((r+n)/2);if(this.actions[o].delay<t.delay)r=o+1;else if(this.actions[o].delay>t.delay)n=o-1;else return o+1}return r}}function At(e,t){if(e.type===R.IncrementalSnapshot&&e.data.source===L.MouseMove){const r=e.data.positions[0].timeOffset,n=e.timestamp+r;return e.delay=n-t,n-t}return e.delay=e.timestamp-t,e.delay}/*! *****************************************************************************
|
|
5
|
+
`,10)+1,c=i.substring(l)+(n?"//# sourceMappingURL="+n:""),a=new Blob([c],{type:"application/javascript"});return URL.createObjectURL(a)}function ni(e,t,r){var n;return function(i){return n=n||ri(e,t,r),new Worker(n,i)}}var oi=ni("Lyogcm9sbHVwLXBsdWdpbi13ZWItd29ya2VyLWxvYWRlciAqLwooZnVuY3Rpb24oKXsidXNlIHN0cmljdCI7Zm9yKHZhciByPSJBQkNERUZHSElKS0xNTk9QUVJTVFVWV1hZWmFiY2RlZmdoaWprbG1ub3BxcnN0dXZ3eHl6MDEyMzQ1Njc4OSsvIixsPXR5cGVvZiBVaW50OEFycmF5PiJ1Ij9bXTpuZXcgVWludDhBcnJheSgyNTYpLGY9MDtmPHIubGVuZ3RoO2YrKylsW3IuY2hhckNvZGVBdChmKV09Zjt2YXIgZD1mdW5jdGlvbihzKXt2YXIgZT1uZXcgVWludDhBcnJheShzKSxuLGE9ZS5sZW5ndGgsdD0iIjtmb3Iobj0wO248YTtuKz0zKXQrPXJbZVtuXT4+Ml0sdCs9clsoZVtuXSYzKTw8NHxlW24rMV0+PjRdLHQrPXJbKGVbbisxXSYxNSk8PDJ8ZVtuKzJdPj42XSx0Kz1yW2VbbisyXSY2M107cmV0dXJuIGElMz09PTI/dD10LnN1YnN0cmluZygwLHQubGVuZ3RoLTEpKyI9IjphJTM9PT0xJiYodD10LnN1YnN0cmluZygwLHQubGVuZ3RoLTIpKyI9PSIpLHR9O2NvbnN0IGM9bmV3IE1hcCx1PW5ldyBNYXA7YXN5bmMgZnVuY3Rpb24gcChzLGUpe2NvbnN0IG49YCR7c30tJHtlfWA7aWYodS5oYXMobikpcmV0dXJuIHUuZ2V0KG4pO2NvbnN0IGE9bmV3IE9mZnNjcmVlbkNhbnZhcyhzLGUpO2EuZ2V0Q29udGV4dCgiMmQiKTtjb25zdCB0PWF3YWl0KGF3YWl0IGEuY29udmVydFRvQmxvYigpKS5hcnJheUJ1ZmZlcigpLGc9ZCh0KTtyZXR1cm4gdS5zZXQobixnKSxnfWNvbnN0IGk9c2VsZjtpLm9ubWVzc2FnZT1hc3luYyBmdW5jdGlvbihzKXtpZighKCJPZmZzY3JlZW5DYW52YXMiaW4gZ2xvYmFsVGhpcykpcmV0dXJuIGkucG9zdE1lc3NhZ2Uoe2lkOnMuZGF0YS5pZH0pO2NvbnN0e2lkOmUsYml0bWFwOm4sd2lkdGg6YSxoZWlnaHQ6dH09cy5kYXRhLGc9cChhLHQpLGg9bmV3IE9mZnNjcmVlbkNhbnZhcyhhLHQpO2guZ2V0Q29udGV4dCgiMmQiKS5kcmF3SW1hZ2UobiwwLDApLG4uY2xvc2UoKTtjb25zdCB3PWF3YWl0IGguY29udmVydFRvQmxvYigpLHk9dy50eXBlLGI9YXdhaXQgdy5hcnJheUJ1ZmZlcigpLG89ZChiKTtpZighYy5oYXMoZSkmJmF3YWl0IGc9PT1vKXJldHVybiBjLnNldChlLG8pLGkucG9zdE1lc3NhZ2Uoe2lkOmV9KTtpZihjLmdldChlKT09PW8pcmV0dXJuIGkucG9zdE1lc3NhZ2Uoe2lkOmV9KTtpLnBvc3RNZXNzYWdlKHtpZDplLHR5cGU6eSxiYXNlNjQ6byx3aWR0aDphLGhlaWdodDp0fSksYy5zZXQoZSxvKX19KSgpOwoK",null,!1),Gr=Object.getOwnPropertySymbols,ii=Object.prototype.hasOwnProperty,si=Object.prototype.propertyIsEnumerable,ai=(e,t)=>{var r={};for(var n in e)ii.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Gr)for(var n of Gr(e))t.indexOf(n)<0&&si.call(e,n)&&(r[n]=e[n]);return r},li=(e,t,r)=>new Promise((n,o)=>{var i=a=>{try{c(r.next(a))}catch(s){o(s)}},l=a=>{try{c(r.throw(a))}catch(s){o(s)}},c=a=>a.done?n(a.value):Promise.resolve(a.value).then(i,l);c((r=r.apply(e,t)).next())});class ci{constructor(t){this.pendingCanvasMutations=new Map,this.rafStamps={latestId:0,invokeId:null},this.frozen=!1,this.locked=!1,this.processMutation=function(l,c){(this.rafStamps.invokeId&&this.rafStamps.latestId!==this.rafStamps.invokeId||!this.rafStamps.invokeId)&&(this.rafStamps.invokeId=this.rafStamps.latestId),this.pendingCanvasMutations.has(l)||this.pendingCanvasMutations.set(l,[]),this.pendingCanvasMutations.get(l).push(c)};const{sampling:r="all",win:n,blockClass:o,recordCanvas:i}=t;this.mutationCb=t.mutationCb,this.mirror=t.mirror,i&&r==="all"&&this.initCanvasMutationObserver(n,o),i&&typeof r=="number"&&this.initCanvasFPSObserver(r,n,o)}reset(){this.pendingCanvasMutations.clear(),this.resetObservers&&this.resetObservers()}freeze(){this.frozen=!0}unfreeze(){this.frozen=!1}lock(){this.locked=!0}unlock(){this.locked=!1}initCanvasFPSObserver(t,r,n){const o=Vr(r,n),i=new Map,l=new oi;l.onmessage=d=>{const{id:h}=d.data;if(i.set(h,!1),!("base64"in d.data))return;const{base64:m,type:f,width:v,height:S}=d.data;this.mutationCb({id:h,type:fe["2D"],commands:[{property:"clearRect",args:[0,0,v,S]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:m}],type:f}]},0,0]}]})};const c=1e3/t;let a=0,s;const u=d=>{if(a&&d-a<c){s=requestAnimationFrame(u);return}a=d,r.document.querySelectorAll(`canvas:not(.${n} *)`).forEach(h=>li(this,null,function*(){var m;const f=this.mirror.getId(h);if(i.get(f))return;if(i.set(f,!0),["webgl","webgl2"].includes(h.__context)){const S=h.getContext(h.__context);((m=S?.getContextAttributes())==null?void 0:m.preserveDrawingBuffer)===!1&&S?.clear(S.COLOR_BUFFER_BIT)}const v=yield createImageBitmap(h);l.postMessage({id:f,bitmap:v,width:h.width,height:h.height},[v])})),s=requestAnimationFrame(u)};s=requestAnimationFrame(u),this.resetObservers=()=>{o(),cancelAnimationFrame(s)}}initCanvasMutationObserver(t,r){this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher();const n=Vr(t,r),o=Qo(this.processMutation.bind(this),t,r,this.mirror),i=ei(this.processMutation.bind(this),t,r,this.mirror);this.resetObservers=()=>{n(),o(),i()}}startPendingCanvasMutationFlusher(){requestAnimationFrame(()=>this.flushPendingCanvasMutations())}startRAFTimestamping(){const t=r=>{this.rafStamps.latestId=r,requestAnimationFrame(t)};requestAnimationFrame(t)}flushPendingCanvasMutations(){this.pendingCanvasMutations.forEach((t,r)=>{const n=this.mirror.getId(r);this.flushPendingCanvasMutationFor(r,n)}),requestAnimationFrame(()=>this.flushPendingCanvasMutations())}flushPendingCanvasMutationFor(t,r){if(this.frozen||this.locked)return;const n=this.pendingCanvasMutations.get(t);if(!n||r===-1)return;const o=n.map(l=>ai(l,["type"])),{type:i}=n[0];this.mutationCb({id:r,type:i,commands:o}),this.pendingCanvasMutations.delete(t)}}class ui{constructor(t){this.trackedStylesheets=new WeakSet,this.mutationCb=t.mutationCb}addStylesheet(t){this.trackedStylesheets.has(t)||(this.trackedStylesheets.add(t),this.trackStylesheet(t))}trackStylesheet(t){}attachStylesheet(t,r,n){this.mutationCb({adds:[{parentId:n.getId(t),nextId:null,node:r}],removes:[],texts:[],attributes:[]}),this.addStylesheet(t)}}var di=Object.defineProperty,hi=Object.defineProperties,mi=Object.getOwnPropertyDescriptors,zr=Object.getOwnPropertySymbols,pi=Object.prototype.hasOwnProperty,fi=Object.prototype.propertyIsEnumerable,Br=(e,t,r)=>t in e?di(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,ae=(e,t)=>{for(var r in t||(t={}))pi.call(t,r)&&Br(e,r,t[r]);if(zr)for(var r of zr(t))fi.call(t,r)&&Br(e,r,t[r]);return e},vi=(e,t)=>hi(e,mi(t));function te(e){return vi(ae({},e),{timestamp:Date.now()})}let Q,Ye;const de=tr();function Ce(e={}){const{emit:t,checkoutEveryNms:r,checkoutEveryNth:n,blockClass:o="highlight-block",blockSelector:i=null,ignoreClass:l="highlight-ignore",maskTextClass:c="highlight-mask",maskTextSelector:a=null,inlineStylesheet:s=!0,maskAllInputs:u,maskInputOptions:d,slimDOMOptions:h,maskInputFn:m,maskTextFn:f,hooks:v,packFn:S,sampling:p={},mousemoveWait:y,recordCanvas:b=!1,userTriggeredOnInput:N=!1,collectFonts:k=!1,inlineImages:M=!1,plugins:x,keepIframeSrcFn:T=()=>!1,enableStrictPrivacy:D=!1}=e;if(!t)throw new Error("emit function is required");y!==void 0&&p.mousemove===void 0&&(p.mousemove=y),de.reset();const W=u===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0}:d!==void 0?d:{password:!0},Y=h===!0||h==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:h==="all",headMetaDescKeywords:h==="all"}:h||{};Ct();let j,H=0;const A=E=>{for(const I of x||[])I.eventProcessor&&(E=I.eventProcessor(E));return S&&(E=S(E)),E};Q=(E,I)=>{var G;if(((G=Ee[0])==null?void 0:G.isFrozen())&&E.type!==R.FullSnapshot&&!(E.type===R.IncrementalSnapshot&&E.data.source===L.Mutation)&&Ee.forEach(z=>z.unfreeze()),t(A(E),I),E.type===R.FullSnapshot)j=E,H=0;else if(E.type===R.IncrementalSnapshot){if(E.data.source===L.Mutation&&E.data.isAttachIframe)return;H++;const z=n&&H>=n,oe=r&&E.timestamp-j.timestamp>r;(z||oe)&&Ye(!0)}};const U=E=>{Q(te({type:R.IncrementalSnapshot,data:ae({source:L.Mutation},E)}))},P=E=>Q(te({type:R.IncrementalSnapshot,data:ae({source:L.Scroll},E)})),O=E=>Q(te({type:R.IncrementalSnapshot,data:ae({source:L.CanvasMutation},E)})),$=new Go({mutationCb:U}),w=new ui({mutationCb:U}),g=new ci({recordCanvas:b,mutationCb:O,win:window,blockClass:o,mirror:de,sampling:p.canvas}),C=new Zo({mutationCb:U,scrollCb:P,bypassOptions:{blockClass:o,blockSelector:i,maskTextClass:c,maskTextSelector:a,inlineStylesheet:s,maskInputOptions:W,maskTextFn:f,maskInputFn:m,recordCanvas:b,inlineImages:M,sampling:p,slimDOMOptions:Y,iframeManager:$,stylesheetManager:w,canvasManager:g,enableStrictPrivacy:D},mirror:de});Ye=(E=!1)=>{var I,G,z,oe;Q(te({type:R.Meta,data:{href:window.location.href,width:Nt(),height:wt()}}),E),Ee.forEach(X=>X.lock());const V=po(document,{mirror:de,blockClass:o,blockSelector:i,maskTextClass:c,maskTextSelector:a,inlineStylesheet:s,maskAllInputs:W,maskTextFn:f,slimDOM:Y,recordCanvas:b,inlineImages:M,enableStrictPrivacy:D,onSerialize:X=>{Re(X,de)&&$.addIframe(X),Mt(X,de)&&w.addStylesheet(X),ze(X)&&C.addShadowRoot(X.shadowRoot,document)},onIframeLoad:(X,ge)=>{$.attachIframe(X,ge,de),C.observeAttachShadow(X)},onStylesheetLoad:(X,ge)=>{w.attachStylesheet(X,ge,de)},keepIframeSrcFn:T});if(!V)return console.warn("Failed to snapshot the document");Q(te({type:R.FullSnapshot,data:{node:V,initialOffset:{left:window.pageXOffset!==void 0?window.pageXOffset:document?.documentElement.scrollLeft||((G=(I=document?.body)==null?void 0:I.parentElement)==null?void 0:G.scrollLeft)||document?.body.scrollLeft||0,top:window.pageYOffset!==void 0?window.pageYOffset:document?.documentElement.scrollTop||((oe=(z=document?.body)==null?void 0:z.parentElement)==null?void 0:oe.scrollTop)||document?.body.scrollTop||0}}})),Ee.forEach(X=>X.unlock())};try{const E=[];E.push(ie("DOMContentLoaded",()=>{Q(te({type:R.DomContentLoaded,data:{}}))}));const I=z=>{var oe;return Uo({mutationCb:U,mousemoveCb:(V,X)=>Q(te({type:R.IncrementalSnapshot,data:{source:X,positions:V}})),mouseInteractionCb:V=>Q(te({type:R.IncrementalSnapshot,data:ae({source:L.MouseInteraction},V)})),scrollCb:P,viewportResizeCb:V=>Q(te({type:R.IncrementalSnapshot,data:ae({source:L.ViewportResize},V)})),inputCb:V=>Q(te({type:R.IncrementalSnapshot,data:ae({source:L.Input},V)})),mediaInteractionCb:V=>Q(te({type:R.IncrementalSnapshot,data:ae({source:L.MediaInteraction},V)})),styleSheetRuleCb:V=>Q(te({type:R.IncrementalSnapshot,data:ae({source:L.StyleSheetRule},V)})),styleDeclarationCb:V=>Q(te({type:R.IncrementalSnapshot,data:ae({source:L.StyleDeclaration},V)})),canvasMutationCb:O,fontCb:V=>Q(te({type:R.IncrementalSnapshot,data:ae({source:L.Font},V)})),blockClass:o,ignoreClass:l,maskTextClass:c,maskTextSelector:a,maskInputOptions:W,inlineStylesheet:s,sampling:p,recordCanvas:b,inlineImages:M,userTriggeredOnInput:N,collectFonts:k,doc:z,maskInputFn:m,maskTextFn:f,blockSelector:i,slimDOMOptions:Y,mirror:de,iframeManager:$,stylesheetManager:w,shadowDomManager:C,canvasManager:g,enableStrictPrivacy:D,plugins:((oe=x?.filter(V=>V.observer))==null?void 0:oe.map(V=>({observer:V.observer,options:V.options,callback:X=>Q(te({type:R.Plugin,data:{plugin:V.name,payload:X}}))})))||[]},v)};$.addLoadListener(z=>{E.push(I(z.contentDocument))});const G=()=>{Ye(),E.push(I(document))};return document.readyState==="interactive"||document.readyState==="complete"?G():E.push(ie("load",()=>{Q(te({type:R.Load,data:{}})),G()},window)),()=>{E.forEach(z=>z())}}catch(E){console.warn(E)}}Ce.addCustomEvent=(e,t)=>{!Q||Q(te({type:R.Custom,data:{tag:e,payload:t}}))},Ce.freezePage=()=>{Ee.forEach(e=>e.freeze())},Ce.takeFullSnapshot=e=>{if(!Ye)throw new Error("please take full snapshot after start recording");Ye(e)},Ce.mirror=de;var F;(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"})(F||(F={}));var gi=function(){function e(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}return e.prototype.getId=function(t){var r;if(!t)return-1;var n=(r=this.getMeta(t))===null||r===void 0?void 0:r.id;return n??-1},e.prototype.getNode=function(t){return this.idNodeMap.get(t)||null},e.prototype.getIds=function(){return Array.from(this.idNodeMap.keys())},e.prototype.getMeta=function(t){return this.nodeMetaMap.get(t)||null},e.prototype.removeNodeFromMap=function(t){var r=this,n=this.getId(t);this.idNodeMap.delete(n),t.childNodes&&t.childNodes.forEach(function(o){return r.removeNodeFromMap(o)})},e.prototype.has=function(t){return this.idNodeMap.has(t)},e.prototype.hasNode=function(t){return this.nodeMetaMap.has(t)},e.prototype.add=function(t,r){var n=r.id;this.idNodeMap.set(n,t),this.nodeMetaMap.set(t,r)},e.prototype.replace=function(t,r){this.idNodeMap.set(t,r)},e.prototype.reset=function(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap},e}();function yi(){return new gi}function bi(e){const t={},r=/;(?![^(]*\))/g,n=/:(.+)/,o=/\/\*.*?\*\//g;return e.replace(o,"").split(r).forEach(function(i){if(i){const l=i.split(n);l.length>1&&(t[Rt(l[0].trim())]=l[1].trim())}}),t}function Hr(e){const t=[];for(const r in e){const n=e[r];if(typeof n!="string")continue;const o=Ti(r);t.push(`${o}: ${n};`)}return t.join(" ")}const Si=/-([a-z])/g,wi=/^--[a-zA-Z0-9-]+$/,Rt=e=>wi.test(e)?e:e.replace(Si,(t,r)=>r?r.toUpperCase():""),Ni=/\B([A-Z])/g,Ti=e=>e.replace(Ni,"-$1").toLowerCase();class le{constructor(...t){this.childNodes=[],this.parentElement=null,this.parentNode=null,this.ELEMENT_NODE=J.ELEMENT_NODE,this.TEXT_NODE=J.TEXT_NODE}get firstChild(){return this.childNodes[0]||null}get lastChild(){return this.childNodes[this.childNodes.length-1]||null}get nextSibling(){const t=this.parentNode;if(!t)return null;const r=t.childNodes,n=r.indexOf(this);return r[n+1]||null}contains(t){if(t===this)return!0;for(const r of this.childNodes)if(r.contains(t))return!0;return!1}appendChild(t){throw new Error("RRDomException: Failed to execute 'appendChild' on 'RRNode': This RRNode type does not support this method.")}insertBefore(t,r){throw new Error("RRDomException: Failed to execute 'insertBefore' on 'RRNode': This RRNode type does not support this method.")}removeChild(t){throw new Error("RRDomException: Failed to execute 'removeChild' on 'RRNode': This RRNode type does not support this method.")}toString(){return"RRNode"}}function Ei(e){return class Vn extends e{constructor(){super(...arguments),this.nodeType=J.DOCUMENT_NODE,this.nodeName="#document",this.compatMode="CSS1Compat",this.RRNodeType=F.Document,this.textContent=null}get documentElement(){return this.childNodes.find(r=>r.RRNodeType===F.Element&&r.tagName==="HTML")||null}get body(){var r;return((r=this.documentElement)===null||r===void 0?void 0:r.childNodes.find(n=>n.RRNodeType===F.Element&&n.tagName==="BODY"))||null}get head(){var r;return((r=this.documentElement)===null||r===void 0?void 0:r.childNodes.find(n=>n.RRNodeType===F.Element&&n.tagName==="HEAD"))||null}get implementation(){return this}get firstElementChild(){return this.documentElement}appendChild(r){const n=r.RRNodeType;if((n===F.Element||n===F.DocumentType)&&this.childNodes.some(o=>o.RRNodeType===n))throw new Error(`RRDomException: Failed to execute 'appendChild' on 'RRNode': Only one ${n===F.Element?"RRElement":"RRDoctype"} on RRDocument allowed.`);return r.parentElement=null,r.parentNode=this,this.childNodes.push(r),r}insertBefore(r,n){const o=r.RRNodeType;if((o===F.Element||o===F.DocumentType)&&this.childNodes.some(l=>l.RRNodeType===o))throw new Error(`RRDomException: Failed to execute 'insertBefore' on 'RRNode': Only one ${o===F.Element?"RRElement":"RRDoctype"} on RRDocument allowed.`);if(n===null)return this.appendChild(r);const i=this.childNodes.indexOf(n);if(i==-1)throw new Error("Failed to execute 'insertBefore' on 'RRNode': The RRNode before which the new node is to be inserted is not a child of this RRNode.");return this.childNodes.splice(i,0,r),r.parentElement=null,r.parentNode=this,r}removeChild(r){const n=this.childNodes.indexOf(r);if(n===-1)throw new Error("Failed to execute 'removeChild' on 'RRDocument': The RRNode to be removed is not a child of this RRNode.");return this.childNodes.splice(n,1),r.parentElement=null,r.parentNode=null,r}open(){this.childNodes=[]}close(){}write(r){let n;if(r==='<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">'?n="-//W3C//DTD XHTML 1.0 Transitional//EN":r==='<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "">'&&(n="-//W3C//DTD HTML 4.0 Transitional//EN"),n){const o=this.createDocumentType("html",n,"");this.open(),this.appendChild(o)}}createDocument(r,n,o){return new Vn}createDocumentType(r,n,o){const i=new(Yr(le))(r,n,o);return i.ownerDocument=this,i}createElement(r){const n=new(Xr(le))(r);return n.ownerDocument=this,n}createElementNS(r,n){return this.createElement(n)}createTextNode(r){const n=new(Zr(le))(r);return n.ownerDocument=this,n}createComment(r){const n=new(Kr(le))(r);return n.ownerDocument=this,n}createCDATASection(r){const n=new(qr(le))(r);return n.ownerDocument=this,n}toString(){return"RRDocument"}}}function Yr(e){return class extends e{constructor(t,r,n){super(),this.nodeType=J.DOCUMENT_TYPE_NODE,this.RRNodeType=F.DocumentType,this.textContent=null,this.name=t,this.publicId=r,this.systemId=n,this.nodeName=t}toString(){return"RRDocumentType"}}}function Xr(e){return class extends e{constructor(t){super(),this.nodeType=J.ELEMENT_NODE,this.RRNodeType=F.Element,this.attributes={},this.shadowRoot=null,this.tagName=t.toUpperCase(),this.nodeName=t.toUpperCase()}get textContent(){let t="";return this.childNodes.forEach(r=>t+=r.textContent),t}set textContent(t){this.childNodes=[this.ownerDocument.createTextNode(t)]}get classList(){return new Ii(this.attributes.class,t=>{this.attributes.class=t})}get id(){return this.attributes.id||""}get className(){return this.attributes.class||""}get style(){const t=this.attributes.style?bi(this.attributes.style):{},r=/\B([A-Z])/g;return t.setProperty=(n,o,i)=>{if(r.test(n))return;const l=Rt(n);o?t[l]=o:delete t[l],i==="important"&&(t[l]+=" !important"),this.attributes.style=Hr(t)},t.removeProperty=n=>{if(r.test(n))return"";const o=Rt(n),i=t[o]||"";return delete t[o],this.attributes.style=Hr(t),i},t}getAttribute(t){return this.attributes[t]||null}setAttribute(t,r){this.attributes[t]=r}setAttributeNS(t,r,n){this.setAttribute(r,n)}removeAttribute(t){delete this.attributes[t]}appendChild(t){return this.childNodes.push(t),t.parentNode=this,t.parentElement=this,t}insertBefore(t,r){if(r===null)return this.appendChild(t);const n=this.childNodes.indexOf(r);if(n==-1)throw new Error("Failed to execute 'insertBefore' on 'RRNode': The RRNode before which the new node is to be inserted is not a child of this RRNode.");return this.childNodes.splice(n,0,t),t.parentElement=this,t.parentNode=this,t}removeChild(t){const r=this.childNodes.indexOf(t);if(r===-1)throw new Error("Failed to execute 'removeChild' on 'RRElement': The RRNode to be removed is not a child of this RRNode.");return this.childNodes.splice(r,1),t.parentElement=null,t.parentNode=null,t}attachShadow(t){const r=this.ownerDocument.createElement("SHADOWROOT");return this.shadowRoot=r,r}dispatchEvent(t){return!0}toString(){let t="";for(const r in this.attributes)t+=`${r}="${this.attributes[r]}" `;return`${this.tagName} ${t}`}}}function Ci(e){return class extends e{attachShadow(t){throw new Error("RRDomException: Failed to execute 'attachShadow' on 'RRElement': This RRElement does not support attachShadow")}play(){this.paused=!1}pause(){this.paused=!0}}}function Zr(e){return class extends e{constructor(t){super(),this.nodeType=J.TEXT_NODE,this.nodeName="#text",this.RRNodeType=F.Text,this.data=t}get textContent(){return this.data}set textContent(t){this.data=t}toString(){return`RRText text=${JSON.stringify(this.data)}`}}}function Kr(e){return class extends e{constructor(t){super(),this.nodeType=J.COMMENT_NODE,this.nodeName="#comment",this.RRNodeType=F.Comment,this.data=t}get textContent(){return this.data}set textContent(t){this.data=t}toString(){return`RRComment text=${JSON.stringify(this.data)}`}}}function qr(e){return class extends e{constructor(t){super(),this.nodeName="#cdata-section",this.nodeType=J.CDATA_SECTION_NODE,this.RRNodeType=F.CDATA,this.data=t}get textContent(){return this.data}set textContent(t){this.data=t}toString(){return`RRCDATASection data=${JSON.stringify(this.data)}`}}}class Ii{constructor(t,r){if(this.classes=[],this.add=(...n)=>{for(const o of n){const i=String(o);this.classes.indexOf(i)>=0||this.classes.push(i)}this.onChange&&this.onChange(this.classes.join(" "))},this.remove=(...n)=>{this.classes=this.classes.filter(o=>n.indexOf(o)===-1),this.onChange&&this.onChange(this.classes.join(" "))},t){const n=t.trim().split(/\s+/);this.classes.push(...n)}this.onChange=r}}var J;(function(e){e[e.PLACEHOLDER=0]="PLACEHOLDER",e[e.ELEMENT_NODE=1]="ELEMENT_NODE",e[e.ATTRIBUTE_NODE=2]="ATTRIBUTE_NODE",e[e.TEXT_NODE=3]="TEXT_NODE",e[e.CDATA_SECTION_NODE=4]="CDATA_SECTION_NODE",e[e.ENTITY_REFERENCE_NODE=5]="ENTITY_REFERENCE_NODE",e[e.ENTITY_NODE=6]="ENTITY_NODE",e[e.PROCESSING_INSTRUCTION_NODE=7]="PROCESSING_INSTRUCTION_NODE",e[e.COMMENT_NODE=8]="COMMENT_NODE",e[e.DOCUMENT_NODE=9]="DOCUMENT_NODE",e[e.DOCUMENT_TYPE_NODE=10]="DOCUMENT_TYPE_NODE",e[e.DOCUMENT_FRAGMENT_NODE=11]="DOCUMENT_FRAGMENT_NODE"})(J||(J={}));const Dt={svg:"http://www.w3.org/2000/svg","xlink:href":"http://www.w3.org/1999/xlink",xmlns:"http://www.w3.org/2000/xmlns/"};function he(e,t,r,n){const o=e.childNodes,i=t.childNodes;n=n||t.mirror||t.ownerDocument.mirror,(o.length>0||i.length>0)&&Jr(Array.from(o),i,e,r,n);let l=null,c=null;switch(t.RRNodeType){case F.Document:{c=t.scrollData;break}case F.Element:{const a=e,s=t;switch(Mi(a,s,n),c=s.scrollData,l=s.inputData,s.tagName){case"AUDIO":case"VIDEO":{const u=e,d=s;d.paused!==void 0&&(d.paused?u.pause():u.play()),d.muted!==void 0&&(u.muted=d.muted),d.volume!==void 0&&(u.volume=d.volume),d.currentTime!==void 0&&(u.currentTime=d.currentTime);break}case"CANVAS":t.canvasMutations.forEach(u=>r.applyCanvas(u.event,u.mutation,e));break;case"STYLE":ki(a,t.rules);break}if(s.shadowRoot){a.shadowRoot||a.attachShadow({mode:"open"});const u=a.shadowRoot.childNodes,d=s.shadowRoot.childNodes;(u.length>0||d.length>0)&&Jr(Array.from(u),d,a.shadowRoot,r,n)}break}case F.Text:case F.Comment:case F.CDATA:e.textContent!==t.data&&(e.textContent=t.data);break}if(c&&r.applyScroll(c,!0),l&&r.applyInput(l),t.nodeName==="IFRAME"){const a=e.contentDocument,s=t;if(a){const u=n.getMeta(s.contentDocument);u&&r.mirror.add(a,Object.assign({},u)),he(a,s.contentDocument,r,n)}}}function Mi(e,t,r){const n=e.attributes,o=t.attributes;for(const i in o){const l=o[i],c=r.getMeta(t);if(c&&"isSVG"in c&&c.isSVG&&Dt[i])e.setAttributeNS(Dt[i],i,l);else if(t.tagName==="CANVAS"&&i==="rr_dataURL"){const a=document.createElement("img");a.src=l,a.onload=()=>{const s=e.getContext("2d");s&&s.drawImage(a,0,0,a.width,a.height)}}else e.setAttribute(i,l)}for(const{name:i}of Array.from(n))i in o||e.removeAttribute(i);t.scrollLeft&&(e.scrollLeft=t.scrollLeft),t.scrollTop&&(e.scrollTop=t.scrollTop)}function Jr(e,t,r,n,o){var i,l;let c=0,a=e.length-1,s=0,u=t.length-1,d=e[c],h=e[a],m=t[s],f=t[u],v,S;for(;c<=a&&s<=u;)if(d===void 0)d=e[++c];else if(h===void 0)h=e[--a];else if(n.mirror.getId(d)===o.getId(m))he(d,m,n,o),d=e[++c],m=t[++s];else if(n.mirror.getId(h)===o.getId(f))he(h,f,n,o),h=e[--a],f=t[--u];else if(n.mirror.getId(d)===o.getId(f))try{r.insertBefore(d,h.nextSibling)}catch(p){console.error(p,r,d,h),he(d,f,n,o),d=e[++c],f=t[--u]}else if(n.mirror.getId(h)===o.getId(m))try{r.insertBefore(h,d)}catch(p){console.error(p,r,h,d),he(h,m,n,o),h=e[--a],m=t[++s]}else{if(!v){v={};for(let p=c;p<=a;p++){const y=e[p];y&&n.mirror.hasNode(y)&&(v[n.mirror.getId(y)]=p)}}if(S=v[o.getId(m)],S){const p=e[S];try{r.insertBefore(p,d)}catch(y){console.error(y,r,p,d),he(p,m,n,o),e[S]=void 0}}else{const p=Lt(m,n.mirror,o);((i=n.mirror.getMeta(r))===null||i===void 0?void 0:i.type)===F.Document&&((l=n.mirror.getMeta(p))===null||l===void 0?void 0:l.type)===F.Element&&r.documentElement&&(r.removeChild(r.documentElement),e[c]=void 0,d=void 0);try{r.insertBefore(p,d||null)}catch(y){console.error(y,r,p,d||null),he(p,m,n,o)}}m=t[++s]}if(c>a){const p=t[u+1];let y=null;for(p&&r.childNodes.forEach(b=>{n.mirror.getId(b)===o.getId(p)&&(y=b)});s<=u;++s){const b=Lt(t[s],n.mirror,o);try{r.insertBefore(b,y)}catch(N){console.error(N,r,b,y),he(b,t[s],n,o)}}}else if(s>u)for(;c<=a;c++){const p=e[c];p&&(r.removeChild(p),n.mirror.removeNodeFromMap(p))}}function Lt(e,t,r){let n=t.getNode(r.getId(e));const o=r.getMeta(e);if(n!==null)return n;switch(e.RRNodeType){case F.Document:n=new Document;break;case F.DocumentType:n=document.implementation.createDocumentType(e.name,e.publicId,e.systemId);break;case F.Element:{e.tagName.toLowerCase(),o&&"isSVG"in o&&o?.isSVG?n=document.createElementNS(Dt.svg,e.tagName.toLowerCase()):n=document.createElement(e.tagName);break}case F.Text:n=document.createTextNode(e.data);break;case F.Comment:n=document.createComment(e.data);break;case F.CDATA:n=document.createCDATASection(e.data);break}return o&&t.add(n,Object.assign({},o)),n}function Xe(e,t){const r=e[t[0]];return t.length===1?r:Xe(r.cssRules[t[1]].cssRules,t.slice(2))}var ce;(function(e){e[e.Insert=0]="Insert",e[e.Remove=1]="Remove",e[e.Snapshot=2]="Snapshot",e[e.SetProperty=3]="SetProperty",e[e.RemoveProperty=4]="RemoveProperty"})(ce||(ce={}));function Qr(e){const t=[...e],r=t.pop();return{positions:t,index:r}}function ki(e,t){const r=e.sheet;t.forEach(n=>{if(n.type===ce.Insert)try{if(Array.isArray(n.index)){const{positions:o,index:i}=Qr(n.index);Xe(r.cssRules,o).insertRule(n.cssText,i)}else r.insertRule(n.cssText,n.index)}catch{}else if(n.type===ce.Remove)try{if(Array.isArray(n.index)){const{positions:o,index:i}=Qr(n.index);Xe(r.cssRules,o).deleteRule(i||0)}else r.deleteRule(n.index)}catch{}else n.type===ce.SetProperty?Xe(r.cssRules,n.index).style.setProperty(n.property,n.value,n.priority):n.type===ce.RemoveProperty&&Xe(r.cssRules,n.index).style.removeProperty(n.property)})}class Ae extends Ei(le){constructor(t){super(),this._unserializedId=-1,this.mirror=Wi(),this.scrollData=null,t&&(this.mirror=t)}get unserializedId(){return this._unserializedId--}createDocument(t,r,n){return new Ae}createDocumentType(t,r,n){const o=new xi(t,r,n);return o.ownerDocument=this,o}createElement(t){const r=t.toUpperCase();let n;switch(r){case"AUDIO":case"VIDEO":n=new Oi(r);break;case"IFRAME":n=new Li(r,this.mirror);break;case"CANVAS":n=new Ri(r);break;case"STYLE":n=new Di(r);break;default:n=new Ze(r);break}return n.ownerDocument=this,n}createComment(t){const r=new Pi(t);return r.ownerDocument=this,r}createCDATASection(t){const r=new Fi(t);return r.ownerDocument=this,r}createTextNode(t){const r=new Ai(t);return r.ownerDocument=this,r}destroyTree(){this.childNodes=[],this.mirror.reset()}open(){super.open(),this._unserializedId=-1}}const xi=Yr(le);class Ze extends Xr(le){constructor(){super(...arguments),this.inputData=null,this.scrollData=null}}class Oi extends Ci(Ze){}class Ri extends Ze{constructor(){super(...arguments),this.canvasMutations=[]}getContext(){return null}}class Di extends Ze{constructor(){super(...arguments),this.rules=[]}}class Li extends Ze{constructor(t,r){super(t),this.contentDocument=new Ae,this.contentDocument.mirror=r}}const Ai=Zr(le),Pi=Kr(le),Fi=qr(le);function _i(e){return e instanceof HTMLFormElement?"FORM":e.tagName.toUpperCase()}function en(e,t,r,n){let o;switch(e.nodeType){case J.DOCUMENT_NODE:n&&n.nodeName==="IFRAME"?o=n.contentDocument:(o=t,o.compatMode=e.compatMode);break;case J.DOCUMENT_TYPE_NODE:const l=e;o=t.createDocumentType(l.name,l.publicId,l.systemId);break;case J.ELEMENT_NODE:const c=e,a=_i(c);o=t.createElement(a);const s=o;for(const{name:u,value:d}of Array.from(c.attributes))s.attributes[u]=d;c.scrollLeft&&(s.scrollLeft=c.scrollLeft),c.scrollTop&&(s.scrollTop=c.scrollTop);break;case J.TEXT_NODE:o=t.createTextNode(e.textContent||"");break;case J.CDATA_SECTION_NODE:o=t.createCDATASection(e.data);break;case J.COMMENT_NODE:o=t.createComment(e.textContent||"");break;case J.DOCUMENT_FRAGMENT_NODE:o=n.attachShadow({mode:"open"});break;default:return null}let i=r.getMeta(e);return t instanceof Ae&&(i||(i=tn(o,t.unserializedId),r.add(e,i)),t.mirror.add(o,Object.assign({},i))),o}function $i(e,t=yi(),r=new Ae){function n(o,i){const l=en(o,r,t,i);l!==null&&(i?.nodeName!=="IFRAME"&&o.nodeType!==J.DOCUMENT_FRAGMENT_NODE&&(i?.appendChild(l),l.parentNode=i,l.parentElement=i),o.nodeName==="IFRAME"?n(o.contentDocument,l):(o.nodeType===J.DOCUMENT_NODE||o.nodeType===J.ELEMENT_NODE||o.nodeType===J.DOCUMENT_FRAGMENT_NODE)&&(o.nodeType===J.ELEMENT_NODE&&o.shadowRoot&&n(o.shadowRoot,l),o.childNodes.forEach(c=>n(c,l))))}return n(e,null),r}function Wi(){return new ji}class ji{constructor(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}getId(t){var r;if(!t)return-1;const n=(r=this.getMeta(t))===null||r===void 0?void 0:r.id;return n??-1}getNode(t){return this.idNodeMap.get(t)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(t){return this.nodeMetaMap.get(t)||null}removeNodeFromMap(t){const r=this.getId(t);this.idNodeMap.delete(r),t.childNodes&&t.childNodes.forEach(n=>this.removeNodeFromMap(n))}has(t){return this.idNodeMap.has(t)}hasNode(t){return this.nodeMetaMap.has(t)}add(t,r){const n=r.id;this.idNodeMap.set(n,t),this.nodeMetaMap.set(t,r)}replace(t,r){this.idNodeMap.set(t,r)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function tn(e,t){switch(e.RRNodeType){case F.Document:return{id:t,type:e.RRNodeType,childNodes:[]};case F.DocumentType:const r=e;return{id:t,type:e.RRNodeType,name:r.name,publicId:r.publicId,systemId:r.systemId};case F.Element:return{id:t,type:e.RRNodeType,tagName:e.tagName.toLowerCase(),attributes:{},childNodes:[]};case F.Text:return{id:t,type:e.RRNodeType,textContent:e.textContent||""};case F.Comment:return{id:t,type:e.RRNodeType,textContent:e.textContent||""};case F.CDATA:return{id:t,type:e.RRNodeType,textContent:""}}}function rn(e){return e=e||Object.create(null),{on:function(r,n){(e[r]||(e[r]=[])).push(n)},off:function(r,n){e[r]&&e[r].splice(e[r].indexOf(n)>>>0,1)},emit:function(r,n){(e[r]||[]).slice().map(function(o){o(n)}),(e["*"]||[]).slice().map(function(o){o(r,n)})}}}var Vi=Object.freeze({__proto__:null,default:rn});function Ui(e=window,t=document){if("scrollBehavior"in t.documentElement.style&&e.__forceSmoothScrollPolyfill__!==!0)return;const r=e.HTMLElement||e.Element,n=468,o={scroll:e.scroll||e.scrollTo,scrollBy:e.scrollBy,elementScroll:r.prototype.scroll||a,scrollIntoView:r.prototype.scrollIntoView},i=e.performance&&e.performance.now?e.performance.now.bind(e.performance):Date.now;function l(p){const y=["MSIE ","Trident/","Edge/"];return new RegExp(y.join("|")).test(p)}const c=l(e.navigator.userAgent)?1:0;function a(p,y){this.scrollLeft=p,this.scrollTop=y}function s(p){return .5*(1-Math.cos(Math.PI*p))}function u(p){if(p===null||typeof p!="object"||p.behavior===void 0||p.behavior==="auto"||p.behavior==="instant")return!0;if(typeof p=="object"&&p.behavior==="smooth")return!1;throw new TypeError("behavior member of ScrollOptions "+p.behavior+" is not a valid value for enumeration ScrollBehavior.")}function d(p,y){if(y==="Y")return p.clientHeight+c<p.scrollHeight;if(y==="X")return p.clientWidth+c<p.scrollWidth}function h(p,y){const b=e.getComputedStyle(p,null)["overflow"+y];return b==="auto"||b==="scroll"}function m(p){const y=d(p,"Y")&&h(p,"Y"),b=d(p,"X")&&h(p,"X");return y||b}function f(p){for(;p!==t.body&&m(p)===!1;)p=p.parentNode||p.host;return p}function v(p){const y=i();let b,N,k,M=(y-p.startTime)/n;M=M>1?1:M,b=s(M),N=p.startX+(p.x-p.startX)*b,k=p.startY+(p.y-p.startY)*b,p.method.call(p.scrollable,N,k),(N!==p.x||k!==p.y)&&e.requestAnimationFrame(v.bind(e,p))}function S(p,y,b){let N,k,M,x;const T=i();p===t.body?(N=e,k=e.scrollX||e.pageXOffset,M=e.scrollY||e.pageYOffset,x=o.scroll):(N=p,k=p.scrollLeft,M=p.scrollTop,x=a),v({scrollable:N,method:x,startTime:T,startX:k,startY:M,x:y,y:b})}e.scroll=e.scrollTo=function(){if(arguments[0]!==void 0){if(u(arguments[0])===!0){o.scroll.call(e,arguments[0].left!==void 0?arguments[0].left:typeof arguments[0]!="object"?arguments[0]:e.scrollX||e.pageXOffset,arguments[0].top!==void 0?arguments[0].top:arguments[1]!==void 0?arguments[1]:e.scrollY||e.pageYOffset);return}S.call(e,t.body,arguments[0].left!==void 0?~~arguments[0].left:e.scrollX||e.pageXOffset,arguments[0].top!==void 0?~~arguments[0].top:e.scrollY||e.pageYOffset)}},e.scrollBy=function(){if(arguments[0]!==void 0){if(u(arguments[0])){o.scrollBy.call(e,arguments[0].left!==void 0?arguments[0].left:typeof arguments[0]!="object"?arguments[0]:0,arguments[0].top!==void 0?arguments[0].top:arguments[1]!==void 0?arguments[1]:0);return}S.call(e,t.body,~~arguments[0].left+(e.scrollX||e.pageXOffset),~~arguments[0].top+(e.scrollY||e.pageYOffset))}},r.prototype.scroll=r.prototype.scrollTo=function(){if(arguments[0]===void 0)return;if(u(arguments[0])===!0){if(typeof arguments[0]=="number"&&arguments[1]===void 0)throw new SyntaxError("Value could not be converted");o.elementScroll.call(this,arguments[0].left!==void 0?~~arguments[0].left:typeof arguments[0]!="object"?~~arguments[0]:this.scrollLeft,arguments[0].top!==void 0?~~arguments[0].top:arguments[1]!==void 0?~~arguments[1]:this.scrollTop);return}const p=arguments[0].left,y=arguments[0].top;S.call(this,this,typeof p>"u"?this.scrollLeft:~~p,typeof y>"u"?this.scrollTop:~~y)},r.prototype.scrollBy=function(){if(arguments[0]!==void 0){if(u(arguments[0])===!0){o.elementScroll.call(this,arguments[0].left!==void 0?~~arguments[0].left+this.scrollLeft:~~arguments[0]+this.scrollLeft,arguments[0].top!==void 0?~~arguments[0].top+this.scrollTop:~~arguments[1]+this.scrollTop);return}this.scroll({left:~~arguments[0].left+this.scrollLeft,top:~~arguments[0].top+this.scrollTop,behavior:arguments[0].behavior})}},r.prototype.scrollIntoView=function(){if(u(arguments[0])===!0){o.scrollIntoView.call(this,arguments[0]===void 0?!0:arguments[0]);return}const p=f(this),y=p.getBoundingClientRect(),b=this.getBoundingClientRect();p!==t.body?(S.call(this,p,p.scrollLeft+b.left-y.left,p.scrollTop+b.top-y.top),e.getComputedStyle(p).position!=="fixed"&&e.scrollBy({left:y.left,top:y.top,behavior:"smooth"})):e.scrollBy({left:b.left,top:b.top,behavior:"smooth"})}}class Gi{constructor(t=[],r){this.timeOffset=0,this.raf=null,this.actions=t,this.speed=r}addAction(t){const r=this.findActionIndex(t);this.actions.splice(r,0,t)}addActions(t){this.actions=this.actions.concat(t)}replaceActions(t){this.actions.length=0,this.actions.splice(0,0,...t)}start(){this.timeOffset=0;let t=performance.now();const{actions:r}=this,n=this;function o(){const i=performance.now();for(n.timeOffset+=(i-t)*n.speed,t=i;r.length;){const l=r[0];if(n.timeOffset>=l.delay)r.shift(),l.doAction();else break}(r.length>0||n.liveMode)&&(n.raf=requestAnimationFrame(o))}this.raf=requestAnimationFrame(o)}clear(){this.raf&&(cancelAnimationFrame(this.raf),this.raf=null),this.actions.length=0}setSpeed(t){this.speed=t}toggleLiveMode(t){this.liveMode=t}isActive(){return this.raf!==null}findActionIndex(t){let r=0,n=this.actions.length-1;for(;r<=n;){const o=Math.floor((r+n)/2);if(this.actions[o].delay<t.delay)r=o+1;else if(this.actions[o].delay>t.delay)n=o-1;else return o+1}return r}}function At(e,t){if(e.type===R.IncrementalSnapshot&&e.data.source===L.MouseMove){const r=e.data.positions[0].timeOffset,n=e.timestamp+r;return e.delay=n-t,n-t}return e.delay=e.timestamp-t,e.delay}/*! *****************************************************************************
|
|
6
6
|
Copyright (c) Microsoft Corporation.
|
|
7
7
|
|
|
8
8
|
Permission to use, copy, modify, and/or distribute this software for any
|