@elu-labs/analytics-browser 1.411.1 → 1.411.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +11 -1
- package/dist/cold-session.mjs +1 -1
- package/dist/cold-session.mjs.map +1 -1
- package/dist/elu.js +1 -1
- package/dist/elu.js.map +1 -1
- package/dist/main.cjs +1 -1
- package/dist/main.cjs.map +1 -1
- package/dist/module.mjs +1 -1
- package/dist/module.mjs.map +1 -1
- package/dist/recorder.js +1 -1
- package/dist/recorder.js.map +1 -1
- package/dist/recorder.mjs +1 -1
- package/dist/recorder.mjs.map +1 -1
- package/dist/storage.js +1 -1
- package/package.json +1 -1
package/dist/recorder.mjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/*! ELU-modified distribution. Notices and license terms: https://elu.dev/sdk/licenses */
|
|
2
|
-
function e(e,t,r,n,i,a,s){try{var o=e[a](s),l=o.value}catch(e){return void r(e)}o.done?t(l):Promise.resolve(l).then(n,i)}function t(t){return function(){var r=this,n=arguments;return new Promise((function(i,a){var s=t.apply(r,n);function o(t){e(s,i,a,o,l,"next",t)}function l(t){e(s,i,a,o,l,"throw",t)}o(void 0)}))}}function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},r.apply(null,arguments)}function n(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}class i extends Error{constructor(){super("Recorder cleanup incomplete"),this.name="RecorderCleanupError"}}var a=e=>e instanceof i||!!e&&"object"==typeof e&&"RecorderCleanupError"===e.name;function s(){var e=[],t=!1,r=!1,n=e=>{try{e()}catch(e){r=!0}},a=()=>{if(r)throw new i};return{close:()=>{for(t=!0;e.length;)n(e.pop());a()},poison(){r=!0},add(r){t?(n(r),a()):e.push(r)},replace(e,r,n){if(t)throw new i;var a=Object.getOwnPropertyDescriptor(e,r);this.add((()=>{if(a)Object.defineProperty(e,r,a);else if(!Reflect.deleteProperty(e,r))throw new Error("Recorder patch restoration failed")})),e[r]=n}}}function o(e){var t=s();try{return e(t),t.close}catch(e){throw a(e)&&t.poison(),t.close(),e}}var l=function(e){return 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}({}),u=function(e){return 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[e.Selection=14]="Selection",e[e.AdoptedStyleSheet=15]="AdoptedStyleSheet",e[e.CustomElement=16]="CustomElement",e}({}),c=function(e){return 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}({}),d=function(e){return e[e.Mouse=0]="Mouse",e[e.Pen=1]="Pen",e[e.Touch=2]="Touch",e}({}),h=function(e){return e[e["2D"]=0]="2D",e[e.WebGL=1]="WebGL",e[e.WebGL2=2]="WebGL2",e}({}),p=function(e){return e[e.Play=0]="Play",e[e.Pause=1]="Pause",e[e.Seeked=2]="Seeked",e[e.VolumeChange=3]="VolumeChange",e[e.RateChange=4]="RateChange",e}({}),f=function(e){return e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment",e}({});function m(e,t){return-1!==e.indexOf(t)}var v={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot"],MutationObserver:[]},g={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:["querySelector","querySelectorAll"],MutationObserver:["constructor"]},y={};function w(e){if(y[e])return y[e];var t=function(e){var t,r=null==globalThis||null==(t=globalThis.Zone)||null==t.__symbol__?void 0:t.__symbol__(e);return r&&globalThis[r]?globalThis[r]:void 0}(e)||globalThis[e],r=t.prototype,n=e in v?v[e]:void 0,i=Boolean(n&&n.every((e=>{var t;return Boolean(null==(t=Object.getOwnPropertyDescriptor(r,e))||null==(t=t.get)?void 0:t.toString().includes("[native code]"))}))),a=e in g?g[e]:void 0,s=Boolean(a&&a.every((e=>{var t;return"function"==typeof r[e]&&(null==(t=r[e])?void 0:t.toString().includes("[native code]"))})));if(i&&s)return y[e]=t.prototype,t.prototype;var o=document.createElement("iframe");o.style.display="none";var l,u=!1;try{document.body.appendChild(o);var c=o.contentWindow;if(!c)return t.prototype;var d=c[e].prototype;return d?(m(l=navigator.userAgent,"AppleWebKit")&&!m(l,"Chrome")&&(o.classList.add("rr-block","ph-no-capture"),o.setAttribute("__rrwebUntaintedPrototype",e),u=!0),y[e]=d):r}catch(e){return r}finally{!u&&o.parentNode&&document.body.removeChild(o)}}var b={};function S(e,t,r){var n,i=e+"."+String(r);if(b[i])return b[i].call(t);var a=w(e),s=null==(n=Object.getOwnPropertyDescriptor(a,r))?void 0:n.get;return s?(b[i]=s,s.call(t)):t[r]}var k={};function C(e,t,r){var n=e+"."+String(r);if(k[n])return k[n].bind(t);var i=w(e)[r];return"function"!=typeof i?t[r]:(k[n]=i,i.bind(t))}function M(){return w("MutationObserver").constructor}function I(e,t,r){try{if(!(t in e))return()=>{};var n=e[t],i={next:n},a=r((function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return i.next.apply(this,t)}));return"function"==typeof a&&(a.prototype=a.prototype||{},Object.defineProperties(a,{__rrweb_original__:{enumerable:!1,value:n},__rrweb_layer__:{enumerable:!1,value:i}})),e[t]=a,()=>{if(e[t]!==a)for(var r=e[t];"function"==typeof r&&r.__rrweb_layer__;){var n=r.__rrweb_layer__;if(n.next===a)return void(n.next=i.next);r=n.next}else e[t]=i.next}}catch(e){return()=>{}}}var O={childNodes:function(e){return S("Node",e,"childNodes")},parentNode:function(e){return S("Node",e,"parentNode")},parentElement:function(e){return S("Node",e,"parentElement")},textContent:function(e){return S("Node",e,"textContent")},contains:function(e,t){return C("Node",e,"contains")(t)},getRootNode:function(e){return C("Node",e,"getRootNode")()},host:function(e){return e&&"host"in e?S("ShadowRoot",e,"host"):null},styleSheets:function(e){return e.styleSheets},shadowRoot:function(e){return e&&"shadowRoot"in e?S("Element",e,"shadowRoot"):null},querySelector:function(e,t){return C("Element",e,"querySelector")(t)},querySelectorAll:function(e,t){return C("Element",e,"querySelectorAll")(t)},mutationObserver:M,patch:I};function x(e){return e.nodeType===e.ELEMENT_NODE}function E(e){var t=e&&"host"in e&&"mode"in e&&O.host(e)||null;return Boolean(t&&"shadowRoot"in t&&O.shadowRoot(t)===e)}function R(e){return"[object ShadowRoot]"===Object.prototype.toString.call(e)}function N(e){try{var t=e.rules||e.cssRules;if(!t)return null;var r=e.href;!r&&e.ownerNode&&(r=e.ownerNode.baseURI);var n=Array.from(t,(e=>A(e,r))).join("");return(i=n).includes(" background-clip: text;")&&!i.includes(" -webkit-background-clip: text;")&&(i=i.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;")),i}catch(e){return null}var i}function A(e,t){if(function(e){return"styleSheet"in e}(e)){var r;try{r=N(e.styleSheet)||function(e){var t=e.cssText;if(t.split('"').length<3)return t;var r=["@import","url("+JSON.stringify(e.href)+")"];return""===e.layerName?r.push("layer"):e.layerName&&r.push("layer("+e.layerName+")"),e.supportsText&&r.push("supports("+e.supportsText+")"),e.media.length&&r.push(e.media.mediaText),r.join(" ")+";"}(e)}catch(t){r=e.cssText}try{var n;if(r&&null!=(n=e.styleSheet)&&n.href)return U(r,e.styleSheet.href)}catch(e){}return r}var i,a=e.cssText;return function(e){return"selectorText"in e}(e)&&e.selectorText.includes(":")&&(i=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm,a=a.replace(i,"$1\\$2")),t?U(a,t):a}class T{constructor(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}getId(e){var t;if(!e)return-1;var r=null==(t=this.getMeta(e))?void 0:t.id;return null!=r?r:-1}getNode(e){return this.idNodeMap.get(e)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(e){return this.nodeMetaMap.get(e)||null}removeNodeFromMap(e){var t=this.getId(e);if(this.idNodeMap.delete(t),e.childNodes&&e.childNodes.forEach((e=>this.removeNodeFromMap(e))),x(e)){var r=O.shadowRoot(e);r&&this.removeNodeFromMap(r),"IFRAME"===e.nodeName&&e.contentDocument&&this.removeNodeFromMap(e.contentDocument)}}has(e){return this.idNodeMap.has(e)}hasNode(e){return this.nodeMetaMap.has(e)}add(e,t){var r=t.id;this.idNodeMap.set(r,e),this.nodeMetaMap.set(e,t)}replace(e,t){var r=this.getNode(e);if(r){var n=this.nodeMetaMap.get(r);n&&this.nodeMetaMap.set(t,n)}this.idNodeMap.set(e,t)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function D(e){var t=e.element,r=e.maskInputOptions,n=e.tagName,i=e.type,a=e.value,s=e.maskInputFn,o=a||"",l=i&&L(i);return(r[n.toLowerCase()]||l&&r[l])&&(o=s?s(o,t):"*".repeat(o.length)),o}function L(e){return e.toLowerCase()}var F="__rrweb_original__";function P(e){try{var t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?L(t):null}catch(e){return null}}var j=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,B=/^(?:[a-z+]+:)?\/\//i,z=/^www\..*/i,H=/^(data:)([^,]*),(.*)/i;function U(e,t){return(e||"").replace(j,((e,r,n,i,a,s)=>{var o,l=n||a||s,u=r||i||"";if(!l)return e;if(B.test(l)||z.test(l))return"url("+u+l+u+")";if(H.test(l))return"url("+u+l+u+")";if("/"===l[0])return"url("+u+(((o=t).indexOf("//")>-1?o.split("/").slice(0,3).join("/"):o.split("/")[0]).split("?")[0]+l)+u+")";var c=t.split("/"),d=l.split("/");for(var h of(c.pop(),d))"."!==h&&(".."===h?c.pop():c.push(h));return"url("+u+c.join("/")+u+")"}))}var W,q,G="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPgogIDxkZWZzPgogICAgPHBhdHRlcm4gaWQ9InN0cmlwZXMiIHBhdHRlcm5Vbml0cz0idXNlclNwYWNlT25Vc2UiIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiI+CiAgICAgIDxyZWN0IHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgZmlsbD0iYmxhY2siLz4KICAgICAgPHBhdGggZD0iTTggMEgxNkwwIDE2VjhMOCAwWiIgZmlsbD0iIzJEMkQyRCIvPgogICAgICA8cGF0aCBkPSJNMTYgOFYxNkg4TDE2IDhaIiBmaWxsPSIjMkQyRDJEIi8+CiAgICA8L3BhdHRlcm4+CiAgPC9kZWZzPgogIDxyZWN0IHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIGZpbGw9InVybCgjc3RyaXBlcykiLz4KPC9zdmc+Cg==",K=4096,V=1,J=new RegExp("[^a-z0-9-_:]"),Y=-2;function Z(){return V++}var Q=/^[^ \t\n\r\u000c]+/,X=/^[, \t\n\r\u000c]+/,_=new WeakMap;function $(e,t){return t&&""!==t.trim()?ee(e,t):t}function ee(e,t){var r=_.get(e);if(r||(r=e.createElement("a"),_.set(e,r)),t){if(t.startsWith("blob:")||t.startsWith("data:"))return t}else t="";return r.setAttribute("href",t),r.href}function te(e,t){return null!=t&&t.maxBase64ImageLength?function(e,t){return!t||e.length<=t?e:G}(e,t.maxBase64ImageLength):e}function re(e,t,r,n,i,a){if(!n)return n;if("src"===r||"href"===r&&("use"!==t||"#"!==n[0])){if("link"===t&&i){var s,o=null==(s=i.sheet)?void 0:s.href;if(o)return o}var l=$(e,n);if(l.startsWith("data:")){if("img"===t&&i){var u=l;return(null!=a&&a.type||void 0!==(null==a?void 0:a.quality))&&(u=function(e,t,r,n){if(!e.complete||0===e.naturalWidth)return t;if(e.naturalWidth>K||e.naturalHeight>K)return t;try{var i=document.createElement("canvas");i.width=e.naturalWidth,i.height=e.naturalHeight;var a=i.getContext("2d");return a?(a.drawImage(e,0,0),i.toDataURL(r||"image/webp",null!=n?n:.4)):t}catch(e){return t}}(i,l,a.type,a.quality)),te(u,a)}if("image"===t)return te(l,a)}return l}if("xlink:href"===r&&"#"!==n[0]){var c=$(e,n);return"image"===t&&c.startsWith("data:")?te(c,a):c}return"background"!==r||"table"!==t&&"td"!==t&&"th"!==t?"srcset"===r?function(e,t){if(""===t.trim())return t;var r=0;function n(e){var n,i=e.exec(t.substring(r));return i?(n=i[0],r+=n.length,n):""}for(var i=[];n(X),!(r>=t.length);){var a=n(Q);if(","===a.slice(-1))a=$(e,a.substring(0,a.length-1)),i.push(a);else{var s="";a=$(e,a);for(var o=!1;;){var l=t.charAt(r);if(""===l){i.push((a+s).trim());break}if(o)")"===l&&(o=!1);else{if(","===l){r+=1,i.push((a+s).trim());break}"("===l&&(o=!0)}s+=l,r+=1}}}return i.join(", ")}(e,n):"style"===r?U(n,ee(e)):"object"===t&&"data"===r?$(e,n):n:$(e,n)}function ne(e,t,r){return("video"===e||"audio"===e)&&"autoplay"===t}function ie(e,t,r){if(!e)return!1;if(e.nodeType!==e.ELEMENT_NODE)return!!r&&ie(O.parentNode(e),t,r);for(var n=e.classList.length;n--;){var i=e.classList[n];if(t.test(i))return!0}return!!r&&ie(O.parentNode(e),t,r)}function ae(e,t,r,n){var i;if(x(e)){if(i=e,!O.childNodes(i).length&&!O.shadowRoot(i))return!1}else if(!(i=O.parentElement(e))){var a=O.parentNode(e);a&&E(a)&&(i=O.host(a))}try{for(;i;){if("string"==typeof t){if(n?i.closest("."+t):i.classList.contains(t))return!0}else if(ie(i,t,n))return!0;if(r&&(n?i.closest(r):i.matches(r)))return!0;if(!n)return!1;var s=O.getRootNode(i);i=E(s)?O.host(s):null}}catch(e){}return!1}function se(e,t,r){var n=e.removeEventListener;"function"==typeof n&&n.call(e,t,r)}var oe=new Map;function le(){var e=!1;for(var t of[...oe.values()].reverse())try{t.abort()}catch(t){e=!0}if(e){var r=new Error("Recorder stylesheet cleanup incomplete");throw r.name="RecorderCleanupError",r}}function ue(e,t){return Array.from(e.styleSheets).find((e=>e.href===t))}function ce(e){return null==e?"":e.toLowerCase()}var de=50,he=!1;function pe(e,t){var r=t.doc,n=t.mirror,i=t.blockClass,a=t.blockSelector,s=t.maskTextClass,o=t.maskTextSelector,l=t.skipChild,u=void 0!==l&&l,c=t.inlineStylesheet,d=void 0===c||c,h=t.maskInputOptions,p=void 0===h?{}:h,m=t.maskTextFn,v=t.maskInputFn,g=t.slimDOMOptions,y=t.dataURLOptions,w=void 0===y?{}:y,b=t.inlineImages,S=void 0!==b&&b,k=t.recordCanvas,C=void 0!==k&&k,M=t.canvasMaskingConfigured,I=t.onSerialize,A=t.onIframeLoad,T=t.iframeLoadTimeout,j=void 0===T?5e3:T,B=t.onIframeListenerRegistered,z=t.onStylesheetLoad,H=t.stylesheetLoadTimeout,G=void 0===H?5e3:H,K=t.keepIframeSrcFn,V=void 0===K?()=>!1:K,Q=t.newlyAddedElement,X=void 0!==Q&&Q,_=t.depth,$=void 0===_?0:_,te=t.maxDepth,ie=void 0===te?de:te,le=t.needsMask,fe=t.preserveWhiteSpace,me=void 0===fe||fe;if($>=ie)return he||(he=!0,console.warn("[rrweb-snapshot] DOM tree depth exceeded max depth of "+ie+". Children beyond this depth will not be recorded. This may indicate deeply nested DOM structures.")),null;le||(le=ae(e,s,o,void 0===le));var ve,ge=function(e,t){var r=t.doc,n=t.mirror,i=t.blockClass,a=t.blockSelector,s=t.needsMask,o=t.inlineStylesheet,l=t.maskInputOptions,u=void 0===l?{}:l,c=t.maskTextFn,d=t.maskInputFn,h=t.dataURLOptions,p=void 0===h?{}:h,m=t.inlineImages,v=t.recordCanvas,g=t.canvasMaskingConfigured,y=t.keepIframeSrcFn,w=t.newlyAddedElement,b=void 0!==w&&w,S=function(e,t){if(t.hasNode(e)){var r=t.getId(e);return 1===r?void 0:r}}(r,n);switch(e.nodeType){case e.DOCUMENT_NODE:return"CSS1Compat"!==e.compatMode?{type:f.Document,childNodes:[],compatMode:e.compatMode}:{type:f.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:f.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:S};case e.ELEMENT_NODE:return function(e,t){for(var r,n=t.doc,i=t.inlineStylesheet,a=t.maskInputOptions,s=void 0===a?{}:a,o=t.maskInputFn,l=t.dataURLOptions,u=void 0===l?{}:l,c=t.inlineImages,d=t.recordCanvas,h=t.canvasMaskingConfigured,p=t.keepIframeSrcFn,m=t.newlyAddedElement,v=void 0!==m&&m,g=t.rootId,y=function(e,t,r){try{if("string"==typeof t){if(e.classList.contains(t))return!0}else for(var n=e.classList.length;n--;){var i=e.classList[n];if(t.test(i))return!0}if(r)return e.matches(r)}catch(e){}return!1}(e,t.blockClass,t.blockSelector),w=function(e){if(e instanceof HTMLFormElement)return"form";var t=L(e.tagName);return J.test(t)?"div":t}(e),b={},S=e.attributes.length,k=0;k<S;k++){var C=e.attributes[k];ne(w,C.name,C.value)||(b[C.name]=re(n,w,L(C.name),C.value,e,u))}if("link"===w&&i){var M=e.sheet;if(!M){var I=function(e){return e.href}(e);I&&!(M=ue(n,I))&&I.includes(".css")&&(M=ue(n,window.location.origin+"/"+I.replace(window.location.href,"")))}var x=null;M&&(x=N(M)),x&&(delete b.rel,delete b.href,b._cssText=x)}if("style"===w&&e.sheet&&!(e.innerText||O.textContent(e)||"").trim().length){var E=N(e.sheet);E&&(b._cssText=E)}if("input"===w||"textarea"===w||"select"===w){var R=e.value,A=e.checked;"radio"!==b.type&&"checkbox"!==b.type&&"submit"!==b.type&&"button"!==b.type&&R?b.value=D({element:e,type:P(e),tagName:w,value:R,maskInputOptions:s,maskInputFn:o}):A&&(b.checked=A)}if("option"===w&&(e.selected&&!s.select?b.selected=!0:delete b.selected),"dialog"===w&&e.open)try{b.rr_open_mode=e.matches("dialog:modal")?"modal":"non-modal"}catch(e){b.rr_open_mode="modal",b.ph_rr_could_not_detect_modal=!0}if("canvas"===w&&d&&(null==h||!h()))if("2d"===e.__context)(function(e){var t=e.getContext("2d");if(!t)return!0;for(var r=0;r<e.width;r+=50)for(var n=0;n<e.height;n+=50){var i=t.getImageData,a=F in i?i[F]:i;if(new Uint32Array(a.call(t,r,n,Math.min(50,e.width-r),Math.min(50,e.height-n)).data.buffer).some((e=>0!==e)))return!1}return!0})(e)||(b.rr_dataURL=e.toDataURL(u.type,u.quality));else if(!("__context"in e)){var T=e.toDataURL(u.type,u.quality),j=n.createElement("canvas");j.width=e.width,j.height=e.height,T!==j.toDataURL(u.type,u.quality)&&(b.rr_dataURL=T)}if("img"===w&&c){W||(W=n.createElement("canvas"),q=W.getContext("2d"));var B=e,z=B.currentSrc||B.getAttribute("src")||"<unknown-src>",H=B.crossOrigin,U=()=>{se(B,"load",U);try{W.width=B.naturalWidth,W.height=B.naturalHeight,q.drawImage(B,0,0),b.rr_dataURL=W.toDataURL(u.type,u.quality)}catch(e){if("anonymous"!==B.crossOrigin)return B.crossOrigin="anonymous",void(B.complete&&0!==B.naturalWidth?U():B.addEventListener("load",U));console.warn("Cannot inline img src="+z+"! Error: "+e)}"anonymous"===B.crossOrigin&&(H?b.crossOrigin=H:B.removeAttribute("crossorigin"))};B.complete&&0!==B.naturalWidth?U():B.addEventListener("load",U)}if("audio"===w||"video"===w){var G=b;G.rr_mediaState=e.paused?"paused":"played",G.rr_mediaCurrentTime=e.currentTime,G.rr_mediaPlaybackRate=e.playbackRate,G.rr_mediaMuted=e.muted,G.rr_mediaLoop=e.loop,G.rr_mediaVolume=e.volume}if(v||(e.scrollLeft&&(b.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(b.rr_scrollTop=e.scrollTop)),y){var K,V,Y,Z=e.getBoundingClientRect(),Q=Z.width,X=Z.height,_=Z.left,$=Z.top,ee=null==(K=n.defaultView)?void 0:K.getComputedStyle(e);b={class:b.class,rr_width:Q+"px",rr_height:X+"px",rr_left:Math.floor(_+((null==(V=n.defaultView)?void 0:V.scrollX)||0))+"px",rr_top:Math.floor($+((null==(Y=n.defaultView)?void 0:Y.scrollY)||0))+"px"},ee&&(b.rr_position=ee.position||"static",ee.transform&&"none"!==ee.transform&&(b.rr_transform=ee.transform),ee.display&&ee.display.startsWith("inline")&&(b.rr_display=ee.display))}"iframe"!==w||p(b.src)||(e.contentDocument||(b.rr_src=b.src),delete b.src);try{customElements.get(w)&&(r=!0)}catch(e){}return{type:f.Element,tagName:w,attributes:b,childNodes:[],isSVG:(te=e,Boolean("svg"===te.tagName||te.ownerSVGElement)||void 0),needBlock:y,rootId:g,isCustom:r};var te}(e,{doc:r,blockClass:i,blockSelector:a,inlineStylesheet:o,maskInputOptions:u,maskInputFn:d,dataURLOptions:p,inlineImages:m,recordCanvas:v,canvasMaskingConfigured:g,keepIframeSrcFn:y,newlyAddedElement:b,rootId:S});case e.TEXT_NODE:return function(e,t){var r=t.needsMask,n=t.maskTextFn,i=t.rootId,a=O.parentNode(e),s=a&&a.tagName,o=O.textContent(e),l="STYLE"===s||void 0,u="SCRIPT"===s||void 0;if(l&&o){try{var c;if(e.nextSibling||e.previousSibling);else if(null!=(c=a.sheet)&&c.cssRules){var d=N(a.sheet);d&&!/(?:^|[\s;{}])-?[a-zA-Z][\w-]*\s*:\s*;/.test(d)&&(o=d)}}catch(t){console.warn("Cannot get CSS styles from text's parentNode. Error: "+t,e)}o=U(o,ee(t.doc))}return u&&(o="SCRIPT_PLACEHOLDER"),!l&&!u&&o&&r&&(o=n?n(o,O.parentElement(e)):o.replace(/[\S]/g,"*")),{type:f.Text,textContent:o||"",isStyle:l,rootId:i}}(e,{doc:r,needsMask:s,maskTextFn:c,rootId:S});case e.CDATA_SECTION_NODE:return{type:f.CDATA,textContent:"",rootId:S};case e.COMMENT_NODE:return{type:f.Comment,textContent:O.textContent(e)||"",rootId:S};default:return!1}}(e,{doc:r,mirror:n,blockClass:i,blockSelector:a,needsMask:le,inlineStylesheet:d,maskInputOptions:p,maskTextFn:m,maskInputFn:v,dataURLOptions:w,inlineImages:S,recordCanvas:C,canvasMaskingConfigured:M,keepIframeSrcFn:V,newlyAddedElement:X});if(!ge)return console.warn(e,"not serialized"),null;ve=n.hasNode(e)?n.getId(e):function(e,t){if(t.comment&&e.type===f.Comment)return!0;if(e.type===f.Element){if(t.script&&("script"===e.tagName||"link"===e.tagName&&("preload"===e.attributes.rel&&"script"===e.attributes.as||"modulepreload"===e.attributes.rel)||"link"===e.tagName&&"prefetch"===e.attributes.rel&&"string"==typeof e.attributes.href&&"js"===function(e,t){var r,n;try{n=new URL(e,window.location.href)}catch(e){return null}var i=n.pathname.match(/\.([0-9a-z]+)(?:$)/i);return null!=(r=null==i?void 0:i[1])?r:null}(e.attributes.href)))return!0;if(t.headFavicon&&("link"===e.tagName&&"shortcut icon"===e.attributes.rel||"meta"===e.tagName&&(ce(e.attributes.name).match(/^msapplication-tile(image|color)$/)||"application-name"===ce(e.attributes.name)||["icon","apple-touch-icon","shortcut icon"].includes(ce(e.attributes.rel)))))return!0;if("meta"===e.tagName){if(t.headMetaDescKeywords&&ce(e.attributes.name).match(/^description|keywords$/))return!0;if(t.headMetaSocial&&(ce(e.attributes.property).match(/^(og|twitter|fb):/)||ce(e.attributes.name).match(/^(og|twitter):/)||"pinterest"===ce(e.attributes.name)))return!0;if(t.headMetaRobots&&["robots","googlebot","bingbot"].includes(ce(e.attributes.name)))return!0;if(t.headMetaHttpEquiv&&void 0!==e.attributes["http-equiv"])return!0;if(t.headMetaAuthorship&&(["author","generator","framework","publisher","progid"].includes(ce(e.attributes.name))||ce(e.attributes.property).match(/^article:/)||ce(e.attributes.property).match(/^product:/)))return!0;if(t.headMetaVerification&&["google-site-verification","yandex-verification","csrf-token","p:domain_verify","verify-v1","verification","shopify-checkout-api-token"].includes(ce(e.attributes.name)))return!0}}return!1}(ge,g)||!me&&ge.type===f.Text&&!ge.isStyle&&!ge.textContent.replace(/^\s+|\s+$/gm,"").length?Y:Z();var ye=Object.assign(ge,{id:ve});if(n.add(e,ye),ve===Y)return null;I&&I(e);var we=!u;if(ye.type===f.Element){we=we&&!ye.needBlock,delete ye.needBlock;var be=O.shadowRoot(e);be&&R(be)&&(ye.isShadowHost=!0)}if((ye.type===f.Document||ye.type===f.Element)&&we){g.headWhitespace&&ye.type===f.Element&&"head"===ye.tagName&&(me=!1);var Se={doc:r,mirror:n,blockClass:i,blockSelector:a,needsMask:le,maskTextClass:s,maskTextSelector:o,skipChild:u,inlineStylesheet:d,maskInputOptions:p,maskTextFn:m,maskInputFn:v,slimDOMOptions:g,dataURLOptions:w,inlineImages:S,recordCanvas:C,canvasMaskingConfigured:M,preserveWhiteSpace:me,onSerialize:I,onIframeLoad:A,iframeLoadTimeout:j,onIframeListenerRegistered:B,onStylesheetLoad:z,stylesheetLoadTimeout:G,keepIframeSrcFn:V,depth:$+1,maxDepth:ie};if(ye.type===f.Element&&"textarea"===ye.tagName&&void 0!==ye.attributes.value);else for(var ke of Array.from(O.childNodes(e))){var Ce=pe(ke,Se);Ce&&ye.childNodes.push(Ce)}var Me=null;if(x(e)&&(Me=O.shadowRoot(e)))for(var Ie of Array.from(O.childNodes(Me))){var Oe=pe(Ie,Se);Oe&&(R(Me)&&(Oe.isShadow=!0),ye.childNodes.push(Oe))}}var xe=O.parentNode(e);if(xe&&E(xe)&&R(xe)&&(ye.isShadow=!0),ye.type===f.Element&&"iframe"===ye.tagName){var Ee=function(e,t,r){var n,i=()=>{},a=e.contentWindow;if(!a)return i;try{n=a.document.readyState}catch(e){return i}var s=()=>t();if("complete"!==n){var o=!1,l=null,u=()=>{o||(o=!0,null!==l&&(clearTimeout(l),l=null),se(e,"load",c),e.addEventListener("load",s),t())},c=()=>u();return l=setTimeout(u,r),e.addEventListener("load",c),()=>{null!==l&&(clearTimeout(l),l=null),o?se(e,"load",s):(o=!0,se(e,"load",c))}}var d,h="about:blank";try{d=a.location.href}catch(e){return i}if(d!==h||e.src===h||""===e.src){var p=setTimeout(t,0);return e.addEventListener("load",s),()=>{clearTimeout(p),se(e,"load",s)}}return e.addEventListener("load",s),()=>{se(e,"load",s)}}(e,(()=>{var t=e.contentDocument;if(t&&A){var r=pe(t,{doc:t,mirror:n,blockClass:i,blockSelector:a,needsMask:le,maskTextClass:s,maskTextSelector:o,skipChild:!1,inlineStylesheet:d,maskInputOptions:p,maskTextFn:m,maskInputFn:v,slimDOMOptions:g,dataURLOptions:w,inlineImages:S,recordCanvas:C,canvasMaskingConfigured:M,preserveWhiteSpace:me,onSerialize:I,onIframeLoad:A,iframeLoadTimeout:j,onIframeListenerRegistered:B,onStylesheetLoad:z,stylesheetLoadTimeout:G,keepIframeSrcFn:V,depth:$+1,maxDepth:ie});r&&A(e,r)}}),j);null==B||B(e,Ee)}return ye.type===f.Element&&"link"===ye.tagName&&"stylesheet"===ye.attributes.rel&&function(t,l,u){if(!oe.has(t)){var c;try{c=t.sheet}catch(e){return}if(!c){var h,f=!1,y=!1,b=!1,k=!1,O={abort(){if(f=!0,void 0!==h){var e=h;h=void 0;try{clearTimeout(e)}catch(e){b=!0}}if(k){k=!1;try{t.removeEventListener("load",x)}catch(e){b=!0}}if(b||oe.get(t)!==O||oe.delete(t),b){var r=new Error("Recorder stylesheet cleanup incomplete");throw r.name="RecorderCleanupError",r}}},x=()=>{if(!f&&!y){y=!0;try{(()=>{if(z){var t=pe(e,{doc:r,mirror:n,blockClass:i,blockSelector:a,needsMask:le,maskTextClass:s,maskTextSelector:o,skipChild:!1,inlineStylesheet:d,maskInputOptions:p,maskTextFn:m,maskInputFn:v,slimDOMOptions:g,dataURLOptions:w,inlineImages:S,recordCanvas:C,canvasMaskingConfigured:M,preserveWhiteSpace:me,onSerialize:I,onIframeLoad:A,iframeLoadTimeout:j,onStylesheetLoad:z,stylesheetLoadTimeout:G,keepIframeSrcFn:V,depth:$,maxDepth:ie});t&&z(e,t)}})()}finally{O.abort()}}};oe.set(t,O);try{h=setTimeout(x,u),k=!0,t.addEventListener("load",x,{once:!0})}catch(e){throw O.abort(),e}}}}(e,0,G),ye}function fe(e){return!0===e||"all"===e?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:"all"===e,headMetaDescKeywords:"all"===e,headTitleMutations:"all"===e}:!1===e?{}:e}function me(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function ve(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if("function"==typeof t){var r=function e(){var r=!1;try{r=this instanceof e}catch{}return r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach((function(t){var n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:function(){return e[t]}})})),r}var ge,ye={exports:{}};function we(){if(ge)return ye.exports;ge=1;var e=String,t=function(){return{isColorSupported:!1,reset:e,bold:e,dim:e,italic:e,underline:e,inverse:e,hidden:e,strikethrough:e,black:e,red:e,green:e,yellow:e,blue:e,magenta:e,cyan:e,white:e,gray:e,bgBlack:e,bgRed:e,bgGreen:e,bgYellow:e,bgBlue:e,bgMagenta:e,bgCyan:e,bgWhite:e,blackBright:e,redBright:e,greenBright:e,yellowBright:e,blueBright:e,magentaBright:e,cyanBright:e,whiteBright:e,bgBlackBright:e,bgRedBright:e,bgGreenBright:e,bgYellowBright:e,bgBlueBright:e,bgMagentaBright:e,bgCyanBright:e,bgWhiteBright:e}};return ye.exports=t(),ye.exports.createColors=t,ye.exports}var be,Se,ke,Ce,Me,Ie,Oe=ve(Object.freeze({__proto__:null,default:{}}));function xe(){if(Se)return be;Se=1;var e=we(),t=Oe;class r extends Error{constructor(e,t,n,i,a,s){super(e),this.name="CssSyntaxError",this.reason=e,a&&(this.file=a),i&&(this.source=i),s&&(this.plugin=s),void 0!==t&&void 0!==n&&("number"==typeof t?(this.line=t,this.column=n):(this.line=t.line,this.column=t.column,this.endLine=n.line,this.endColumn=n.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,r)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",void 0!==this.line&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(r){if(!this.source)return"";var n=this.source;null==r&&(r=e.isColorSupported);var i=e=>e,a=e=>e,s=e=>e;if(r){var o=e.createColors(!0),l=o.bold,u=o.gray,c=o.red;a=e=>l(c(e)),i=e=>u(e),t&&(s=e=>t(e))}var d=n.split(/\r?\n/),h=Math.max(this.line-3,0),p=Math.min(this.line+2,d.length),f=String(p).length;return d.slice(h,p).map(((e,t)=>{var r=h+1+t,n=" "+(" "+r).slice(-f)+" | ";if(r===this.line){if(e.length>160){var o=Math.max(0,this.column-20),l=Math.max(this.column+20,this.endColumn+20),u=e.slice(o,l),c=i(n.replace(/\d/g," "))+e.slice(0,Math.min(this.column-1,19)).replace(/[^\t]/g," ");return a(">")+i(n)+s(u)+"\n "+c+a("^")}var d=i(n.replace(/\d/g," "))+e.slice(0,this.column-1).replace(/[^\t]/g," ");return a(">")+i(n)+s(e)+"\n "+d+a("^")}return" "+i(n)+s(e)})).join("\n")}toString(){var e=this.showSourceCode();return e&&(e="\n\n"+e+"\n"),this.name+": "+this.message+e}}return be=r,r.default=r,be}function Ee(){if(Ce)return ke;Ce=1;var e=/(<)(\/?style\b)/gi,t=/(<)(!--)/g;function r(r){return"string"!=typeof r?r:r.includes("<")?r.replace(e,"\\3c $2").replace(t,"\\3c $2"):r}var n={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};class i{constructor(e){this.builder=e}atrule(e,t){var n=e.raws,i="@"+e.name,a=e.params?this.rawValue(e,"params"):"";if(void 0!==n.afterName?i+=n.afterName:a&&(i+=" "),e.nodes)this.block(e,i+a);else{var s=(n.between||"")+(t?";":"");this.builder(r(i+a+s),e)}}beforeAfter(e,t){var r;r="decl"===e.type?this.raw(e,null,"beforeDecl"):"comment"===e.type?this.raw(e,null,"beforeComment"):"before"===t?this.raw(e,null,"beforeRule"):this.raw(e,null,"beforeClose");for(var n=e.parent,i=0;n&&"root"!==n.type;)i+=1,n=n.parent;if(r.includes("\n")){var a=this.raw(e,null,"indent");if(a.length)for(var s=0;s<i;s++)r+=a}return r}block(e,t){var n,i=this.raw(e,"between","beforeOpen");this.builder(r(t+i)+"{",e,"start"),e.nodes&&e.nodes.length?(this.body(e),n=this.raw(e,"after")):n=this.raw(e,"after","emptyBody"),n&&this.builder(r(n)),this.builder("}",e,"end")}body(e){for(var t=e.nodes,n=t.length-1;n>0&&"comment"===t[n].type;)n-=1;for(var i=this.raw(e,"semicolon"),a="document"===e.type,s=0;s<t.length;s++){var o=t[s],l=this.raw(o,"before");l&&this.builder(a?l:r(l)),this.stringify(o,n!==s||i)}}comment(e){var t=this.raw(e,"left","commentLeft"),n=this.raw(e,"right","commentRight");this.builder(r("/*"+t+e.text+n+"*/"),e)}decl(e,t){var n=e.raws,i=this.raw(e,"between","colon"),a=e.prop+i+this.rawValue(e,"value");e.important&&(a+=n.important||" !important"),t&&(a+=";"),this.builder(r(a),e)}document(e){this.body(e)}raw(e,t,r){var i;if(r||(r=t),t&&void 0!==(i=e.raws[t]))return i;var a=e.parent;if("before"===r){if(!a||"root"===a.type&&a.first===e)return"";if(a&&"document"===a.type)return""}if(!a)return n[r];var s=e.root(),o=s.rawCache||(s.rawCache={});if(void 0!==o[r])return o[r];if("before"===r||"after"===r)return this.beforeAfter(e,r);var l,u="raw"+((l=r)[0].toUpperCase()+l.slice(1));return this[u]?i=this[u](s,e):s.walk((e=>{if(void 0!==(i=e.raws[t]))return!1})),void 0===i&&(i=n[r]),o[r]=i,i}rawBeforeClose(e){var t;return e.walk((e=>{if(e.nodes&&e.nodes.length>0&&void 0!==e.raws.after)return(t=e.raws.after).includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1})),t&&(t=t.replace(/\S/g,"")),t}rawBeforeComment(e,t){var r;return e.walkComments((e=>{if(void 0!==e.raws.before)return(r=e.raws.before).includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1})),void 0===r?r=this.raw(t,null,"beforeDecl"):r&&(r=r.replace(/\S/g,"")),r}rawBeforeDecl(e,t){var r;return e.walkDecls((e=>{if(void 0!==e.raws.before)return(r=e.raws.before).includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1})),void 0===r?r=this.raw(t,null,"beforeRule"):r&&(r=r.replace(/\S/g,"")),r}rawBeforeOpen(e){var t;return e.walk((e=>{if("decl"!==e.type&&void 0!==(t=e.raws.between))return!1})),t}rawBeforeRule(e){var t;return e.walk((r=>{if(r.nodes&&(r.parent!==e||e.first!==r)&&void 0!==r.raws.before)return(t=r.raws.before).includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1})),t&&(t=t.replace(/\S/g,"")),t}rawColon(e){var t;return e.walkDecls((e=>{if(void 0!==e.raws.between)return t=e.raws.between.replace(/[^\s:]/g,""),!1})),t}rawEmptyBody(e){var t;return e.walk((e=>{if(e.nodes&&0===e.nodes.length&&void 0!==(t=e.raws.after))return!1})),t}rawIndent(e){return e.raws.indent?e.raws.indent:(e.walk((r=>{var n=r.parent;if(n&&n!==e&&n.parent&&n.parent===e&&void 0!==r.raws.before){var i=r.raws.before.split("\n");return t=(t=i[i.length-1]).replace(/\S/g,""),!1}})),t);var t}rawSemicolon(e){var t;return e.walk((e=>{if(e.nodes&&e.nodes.length&&"decl"===e.last.type&&void 0!==(t=e.raws.semicolon))return!1})),t}rawValue(e,t){var r=e[t],n=e.raws[t];return n&&n.value===r?n.raw:r}root(e){if(this.body(e),e.raws.after){var t=e.raws.after,n=e.parent&&"document"===e.parent.type;this.builder(n?t:r(t))}}rule(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(r(e.raws.ownSemicolon),e,"end")}stringify(e,t){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,t)}}return ke=i,i.default=i,ke}function Re(){if(Ie)return Me;Ie=1;var e=Ee();function t(t,r){new e(r).stringify(t)}return Me=t,t.default=t,Me}var Ne,Ae,Te,De,Le,Fe,Pe,je,Be,ze,He,Ue,We,qe,Ge,Ke,Ve,Je,Ye,Ze,Qe,Xe,_e,$e,et,tt={};function rt(){return Ne||(Ne=1,tt.isClean=Symbol("isClean"),tt.my=Symbol("my")),tt}function nt(){if(Te)return Ae;Te=1;var e=xe(),t=Ee(),r=Re(),n=rt(),i=n.isClean,a=n.my;function s(e,t){var r=new e.constructor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&"proxyCache"!==n){var i=e[n],a=typeof i;"parent"===n&&"object"===a?t&&(r[n]=t):"source"===n?r[n]=i:Array.isArray(i)?r[n]=i.map((e=>s(e,r))):("object"===a&&null!==i&&(i=s(i)),r[n]=i)}return r}function o(e,t){if(t&&void 0!==t.offset)return t.offset;for(var r=1,n=1,i=0,a=0;a<e.length;a++){if(n===t.line&&r===t.column){i=a;break}"\n"===e[a]?(r=1,n+=1):r+=1}return i}class l{get proxyOf(){return this}constructor(e){for(var t in void 0===e&&(e={}),this.raws={},this[i]=!1,this[a]=!0,e)if("nodes"===t)for(var r of(this.nodes=[],e[t]))"function"==typeof r.clone&&r.parent?this.append(r.clone()):this.append(r);else this[t]=e[t]}addToError(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){var t=this.source;e.stack=e.stack.replace(/\n\s{4}at /,"$&"+t.input.from+":"+t.start.line+":"+t.start.column+"$&")}return e}after(e){return this.parent.insertAfter(this,e),this}assign(e){for(var t in void 0===e&&(e={}),e)this[t]=e[t];return this}before(e){return this.parent.insertBefore(this,e),this}cleanRaws(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between}clone(e){void 0===e&&(e={});var t=s(this);for(var r in e)t[r]=e[r];return t}cloneAfter(e){void 0===e&&(e={});var t=this.clone(e);return this.parent.insertAfter(this,t),t}cloneBefore(e){void 0===e&&(e={});var t=this.clone(e);return this.parent.insertBefore(this,t),t}error(t,r){if(void 0===r&&(r={}),this.source){var n=this.rangeBy(r),i=n.end,a=n.start;return this.source.input.error(t,{column:a.column,line:a.line},{column:i.column,line:i.line},r)}return new e(t)}getProxyProcessor(){return{get:(e,t)=>"proxyOf"===t?e:"root"===t?()=>e.root().toProxy():e[t],set:(e,t,r)=>(e[t]===r||(e[t]=r,"prop"!==t&&"value"!==t&&"name"!==t&&"params"!==t&&"important"!==t&&"text"!==t||e.markDirty()),!0)}}markClean(){this[i]=!0}markDirty(){if(this[i]){this[i]=!1;for(var e=this;e=e.parent;)e[i]=!1}}next(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e+1]}}positionBy(e){void 0===e&&(e={});var t="document"in this.source.input?this.source.input.document:this.source.input.css,r={column:this.source.start.column,line:this.source.start.line,offset:o(t,this.source.start)};if(e.index)r=this.positionInside(e.index);else if(e.word){var n=t.slice(o(t,this.source.start),o(t,this.source.end)).indexOf(e.word);-1!==n&&(r=this.positionInside(n))}return r}positionInside(e){for(var t=this.source.start.column,r=this.source.start.line,n=("document"in this.source.input?this.source.input.document:this.source.input.css),i=o(n,this.source.start),a=i+e,s=i;s<a;s++)"\n"===n[s]?(t=1,r+=1):t+=1;return{column:t,line:r,offset:a}}prev(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e-1]}}rangeBy(e){void 0===e&&(e={});var t="document"in this.source.input?this.source.input.document:this.source.input.css,r={column:this.source.start.column,line:this.source.start.line,offset:o(t,this.source.start)},n=this.source.end?{column:this.source.end.column+1,line:this.source.end.line,offset:"number"==typeof this.source.end.offset?this.source.end.offset:o(t,this.source.end)+1}:{column:r.column+1,line:r.line,offset:r.offset+1};if(e.word){var i=t.slice(o(t,this.source.start),o(t,this.source.end)).indexOf(e.word);-1!==i&&(r=this.positionInside(i),n=this.positionInside(i+e.word.length))}else e.start?r={column:e.start.column,line:e.start.line,offset:o(t,e.start)}:"number"==typeof e.index&&(r=this.positionInside(e.index)),e.end?n={column:e.end.column,line:e.end.line,offset:o(t,e.end)}:"number"==typeof e.endIndex?n=this.positionInside(e.endIndex):"number"==typeof e.index&&(n=this.positionInside(e.index+1));return(n.line<r.line||n.line===r.line&&n.column<=r.column)&&(n={column:r.column+1,line:r.line,offset:r.offset+1}),{end:n,start:r}}raw(e,r){return(new t).raw(this,e,r)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(){if(this.parent){for(var e=this,t=!1,r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];for(var a of n)a===this?t=!0:t?(this.parent.insertAfter(e,a),e=a):this.parent.insertBefore(e,a);t||this.remove()}return this}root(){for(var e=this;e.parent&&"document"!==e.parent.type;)e=e.parent;return e}toJSON(e,t){var r={},n=null==t;t=t||new Map;var i=0;for(var a in this)if(Object.prototype.hasOwnProperty.call(this,a)&&"parent"!==a&&"proxyCache"!==a){var s=this[a];if(Array.isArray(s))r[a]=s.map((e=>"object"==typeof e&&e.toJSON?e.toJSON(null,t):e));else if("object"==typeof s&&s.toJSON)r[a]=s.toJSON(null,t);else if("source"===a){if(null==s)continue;var o=t.get(s.input);null==o&&(o=i,t.set(s.input,i),i++),r[a]={end:s.end,inputId:o,start:s.start}}else r[a]=s}return n&&(r.inputs=[...t.keys()].map((e=>e.toJSON()))),r}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(e){void 0===e&&(e=r),e.stringify&&(e=e.stringify);var t="";return e(this,(e=>{t+=e})),t}warn(e,t,r){void 0===r&&(r={});var n={node:this};for(var i in r)n[i]=r[i];return e.warn(t,n)}}return Ae=l,l.default=l,Ae}function it(){if(Le)return De;Le=1;var e=nt();class t extends e{constructor(e){super(e),this.type="comment"}}return De=t,t.default=t,De}function at(){if(Pe)return Fe;Pe=1;var e=nt();class t extends e{get variable(){return this.prop.startsWith("--")||"$"===this.prop[0]}constructor(e){e&&void 0!==e.value&&"string"!=typeof e.value&&(e=r({},e,{value:String(e.value)})),super(e),this.type="decl"}}return Fe=t,t.default=t,Fe}function st(){if(Be)return je;Be=1;var e,t,r,n,i=it(),a=at(),s=nt(),o=rt(),l=o.isClean,u=o.my;function c(e){return e.map((e=>(e.nodes&&(e.nodes=c(e.nodes)),delete e.source,e)))}function d(e){if(e[l]=!1,e.proxyOf.nodes)for(var t of e.proxyOf.nodes)d(t)}class h extends s{get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}append(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];for(var n of t){var i=this.normalize(n,this.last);for(var a of i)this.proxyOf.nodes.push(a)}return this.markDirty(),this}cleanRaws(e){if(super.cleanRaws(e),this.nodes)for(var t of this.nodes)t.cleanRaws(e)}each(e){if(this.proxyOf.nodes){for(var t,r,n=this.getIterator();this.indexes[n]<this.proxyOf.nodes.length&&(t=this.indexes[n],!1!==(r=e(this.proxyOf.nodes[t],t)));)this.indexes[n]+=1;return delete this.indexes[n],r}}every(e){return this.nodes.every(e)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;var e=this.lastEach;return this.indexes[e]=0,e}getProxyProcessor(){return{get:(e,t)=>"proxyOf"===t?e:e[t]?"each"===t||"string"==typeof t&&t.startsWith("walk")?function(){for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];return e[t](...n.map((e=>"function"==typeof e?(t,r)=>e(t.toProxy(),r):e)))}:"every"===t||"some"===t?r=>e[t]((function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return r(e.toProxy(),...n)})):"root"===t?()=>e.root().toProxy():"nodes"===t?e.nodes.map((e=>e.toProxy())):"first"===t||"last"===t?e[t].toProxy():e[t]:e[t],set:(e,t,r)=>(e[t]===r||(e[t]=r,"name"!==t&&"params"!==t&&"selector"!==t||e.markDirty()),!0)}}index(e){return"number"==typeof e?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))}insertAfter(e,t){var r,n=this.index(e),i=this.normalize(t,this.proxyOf.nodes[n]).reverse();for(var a of(n=this.index(e),i))this.proxyOf.nodes.splice(n+1,0,a);for(var s in this.indexes)n<(r=this.indexes[s])&&(this.indexes[s]=r+i.length);return this.markDirty(),this}insertBefore(e,t){var r,n=this.index(e),i=0===n&&"prepend",a=this.normalize(t,this.proxyOf.nodes[n],i).reverse();for(var s of(n=this.index(e),a))this.proxyOf.nodes.splice(n,0,s);for(var o in this.indexes)n<=(r=this.indexes[o])&&(this.indexes[o]=r+a.length);return this.markDirty(),this}normalize(r,s){if("string"==typeof r)r=c(t(r).nodes);else if(void 0===r)r=[];else if(Array.isArray(r))for(var o of r=r.slice(0))o.parent&&o.parent.removeChild(o,"ignore");else if("root"===r.type&&"document"!==this.type)for(var p of r=r.nodes.slice(0))p.parent&&p.parent.removeChild(p,"ignore");else if(r.type)r=[r];else if(r.prop){if(void 0===r.value)throw new Error("Value field is missed in node creation");"string"!=typeof r.value&&(r.value=String(r.value)),r=[new a(r)]}else if(r.selector||r.selectors)r=[new n(r)];else if(r.name)r=[new e(r)];else{if(!r.text)throw new Error("Unknown node type in node creation");r=[new i(r)]}var f=r.map((e=>(e[u]||h.rebuild(e),(e=e.proxyOf).parent&&e.parent.removeChild(e),e[l]&&d(e),e.raws||(e.raws={}),void 0===e.raws.before&&s&&void 0!==s.raws.before&&(e.raws.before=s.raws.before.replace(/\S/g,"")),e.parent=this.proxyOf,e)));return f}prepend(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];for(var n of t=t.reverse()){var i=this.normalize(n,this.first,"prepend").reverse();for(var a of i)this.proxyOf.nodes.unshift(a);for(var s in this.indexes)this.indexes[s]=this.indexes[s]+i.length}return this.markDirty(),this}push(e){return e.parent=this,this.proxyOf.nodes.push(e),this}removeAll(){for(var e of this.proxyOf.nodes)e.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(e){var t;for(var r in e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1),this.indexes)(t=this.indexes[r])>=e&&(this.indexes[r]=t-1);return this.markDirty(),this}replaceValues(e,t,r){return r||(r=t,t={}),this.walkDecls((n=>{t.props&&!t.props.includes(n.prop)||t.fast&&!n.value.includes(t.fast)||(n.value=n.value.replace(e,r))})),this.markDirty(),this}some(e){return this.nodes.some(e)}walk(e){return this.each(((t,r)=>{var n;try{n=e(t,r)}catch(e){throw t.addToError(e)}return!1!==n&&t.walk&&(n=t.walk(e)),n}))}walkAtRules(e,t){return t?e instanceof RegExp?this.walk(((r,n)=>{if("atrule"===r.type&&e.test(r.name))return t(r,n)})):this.walk(((r,n)=>{if("atrule"===r.type&&r.name===e)return t(r,n)})):(t=e,this.walk(((e,r)=>{if("atrule"===e.type)return t(e,r)})))}walkComments(e){return this.walk(((t,r)=>{if("comment"===t.type)return e(t,r)}))}walkDecls(e,t){return t?e instanceof RegExp?this.walk(((r,n)=>{if("decl"===r.type&&e.test(r.prop))return t(r,n)})):this.walk(((r,n)=>{if("decl"===r.type&&r.prop===e)return t(r,n)})):(t=e,this.walk(((e,r)=>{if("decl"===e.type)return t(e,r)})))}walkRules(e,t){return t?e instanceof RegExp?this.walk(((r,n)=>{if("rule"===r.type&&e.test(r.selector))return t(r,n)})):this.walk(((r,n)=>{if("rule"===r.type&&r.selector===e)return t(r,n)})):(t=e,this.walk(((e,r)=>{if("rule"===e.type)return t(e,r)})))}}return h.registerParse=e=>{t=e},h.registerRule=e=>{n=e},h.registerAtRule=t=>{e=t},h.registerRoot=e=>{r=e},je=h,h.default=h,h.rebuild=t=>{"atrule"===t.type?Object.setPrototypeOf(t,e.prototype):"rule"===t.type?Object.setPrototypeOf(t,n.prototype):"decl"===t.type?Object.setPrototypeOf(t,a.prototype):"comment"===t.type?Object.setPrototypeOf(t,i.prototype):"root"===t.type&&Object.setPrototypeOf(t,r.prototype),t[u]=!0,t.nodes&&t.nodes.forEach((e=>{h.rebuild(e)}))},je}function ot(){if(He)return ze;He=1;var e=st();class t extends e{constructor(e){super(e),this.type="atrule"}append(){return this.proxyOf.nodes||(this.nodes=[]),super.append(...arguments)}prepend(){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...arguments)}}return ze=t,t.default=t,e.registerAtRule(t),ze}function lt(){if(We)return Ue;We=1;var e,t,n=st();class i extends n{constructor(e){super(r({type:"document"},e)),this.nodes||(this.nodes=[])}toResult(r){return void 0===r&&(r={}),new e(new t,this,r).stringify()}}return i.registerLazyResult=t=>{e=t},i.registerProcessor=e=>{t=e},Ue=i,i.default=i,Ue}function ut(){return Ge||(Ge=1,qe={nanoid:function(e){void 0===e&&(e=21);for(var t="",r=0|e;r--;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64*Math.random()|0];return t},customAlphabet:function(e,t){return void 0===t&&(t=21),function(r){void 0===r&&(r=t);for(var n="",i=0|r;i--;)n+=e[Math.random()*e.length|0];return n}}}),qe}function ct(){if(Ve)return Ke;Ve=1;var e=Oe.existsSync,t=Oe.readFileSync,r=Oe.dirname,n=Oe.join,i=Oe.SourceMapConsumer,a=Oe.SourceMapGenerator;class s{constructor(e,t){if(!1!==t.map){t.unsafeMap&&(this.unsafeMap=!0),this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");var n=t.map?t.map.prev:void 0,i=this.loadMap(t.from,n);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=r(this.mapFile)),i&&(this.text=i)}}consumer(){return this.consumerCache||(this.consumerCache=new i(this.json||this.text)),this.consumerCache}decodeInline(e){var t=e.match(/^data:application\/json;charset=utf-?8,/)||e.match(/^data:application\/json,/);if(t)return decodeURIComponent(e.substr(t[0].length));var r,n=e.match(/^data:application\/json;charset=utf-?8;base64,/)||e.match(/^data:application\/json;base64,/);if(n)return r=e.substr(n[0].length),Buffer?Buffer.from(r,"base64").toString():window.atob(r);var i=e.slice(22);throw i=i.slice(0,i.indexOf(",")),new Error("Unsupported source map encoding "+i)}getAnnotationURL(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(e){return"object"==typeof e&&("string"==typeof e.mappings||"string"==typeof e._mappings||Array.isArray(e.sections))}loadAnnotation(e){var t=e.match(/\/\*\s*# sourceMappingURL=/g);if(t){var r=e.lastIndexOf(t.pop()),n=e.indexOf("*/",r);r>-1&&n>-1&&(this.annotation=this.getAnnotationURL(e.substring(r,n)))}}loadFile(n,i,a){if(a||this.unsafeMap||/\.map$/i.test(n))return this.root=r(n),e(n)?(this.mapFile=n,t(n,"utf-8").toString().trim()):void 0}loadMap(e,t){if(!1===t)return!1;if(t){if("string"==typeof t)return t;if("function"!=typeof t){if(t instanceof i)return a.fromSourceMap(t).toString();if(t instanceof a)return t.toString();if(this.isMap(t))return JSON.stringify(t);throw new Error("Unsupported previous source map format: "+t.toString())}var s=t(e);if(s){var o=this.loadFile(s,e,!0);if(!o)throw new Error("Unable to load previous source map: "+s.toString());return o}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){var l=this.annotation;e&&(l=n(r(e),l));var u=this.loadFile(l,e,!1);if(u)try{this.json=JSON.parse(u.replace(/^\)]}'[^\n]*\n/,""))}catch(e){return}return u}}}startWith(e,t){return!!e&&e.substr(0,t.length)===t}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}}return Ke=s,s.default=s,Ke}function dt(){if(Ye)return Je;Ye=1;var e=ut().nanoid,t=Oe.isAbsolute,n=Oe.resolve,i=Oe.SourceMapConsumer,a=Oe.SourceMapGenerator,s=Oe.fileURLToPath,o=Oe.pathToFileURL,l=xe(),u=ct(),c=Oe,d=Symbol("lineToIndexCache"),h=Boolean(i&&a),p=Boolean(n&&t);function f(e){if(e[d])return e[d];for(var t=e.css.split("\n"),r=new Array(t.length),n=0,i=0,a=t.length;i<a;i++)r[i]=n,n+=t[i].length+1;return e[d]=r,r}class m{get from(){return this.file||this.id}constructor(r,i){if(void 0===i&&(i={}),null==r||"object"==typeof r&&!r.toString)throw new Error("PostCSS received "+r+" instead of CSS string");if(this.css=r.toString(),"\ufeff"===this.css[0]||""===this.css[0]?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,this.document=this.css,i.document&&(this.document=i.document.toString()),i.from&&(!p||/^\w+:\/\//.test(i.from)||t(i.from)?this.file=i.from:this.file=n(i.from)),p&&h){var a=new u(this.css,i);if(a.text){this.map=a;var s=a.consumer().file;!this.file&&s&&(this.file=this.mapResolve(s))}}this.file||(this.id="<input css "+e(6)+">"),this.map&&(this.map.file=this.from)}error(e,t,r,n){var i,a,s,u,c;if(void 0===n&&(n={}),t&&"object"==typeof t){var d=t,h=r;if("number"==typeof d.offset){u=d.offset;var p=this.fromOffset(u);t=p.line,r=p.col}else t=d.line,r=d.column,u=this.fromLineAndColumn(t,r);if("number"==typeof h.offset){s=h.offset;var f=this.fromOffset(s);a=f.line,i=f.col}else a=h.line,i=h.column,s=this.fromLineAndColumn(h.line,h.column)}else if(r)u=this.fromLineAndColumn(t,r);else{u=t;var m=this.fromOffset(u);t=m.line,r=m.col}var v=this.origin(t,r,a,i);return(c=v?new l(e,void 0===v.endLine?v.line:{column:v.column,line:v.line},void 0===v.endLine?v.column:{column:v.endColumn,line:v.endLine},v.source,v.file,n.plugin):new l(e,void 0===a?t:{column:r,line:t},void 0===a?r:{column:i,line:a},this.css,this.file,n.plugin)).input={column:r,endColumn:i,endLine:a,endOffset:s,line:t,offset:u,source:this.css},this.file&&(o&&(c.input.url=o(this.file).toString()),c.input.file=this.file),c}fromLineAndColumn(e,t){return f(this)[e-1]+t-1}fromOffset(e){var t=f(this),r=0;if(e>=t[t.length-1])r=t.length-1;else for(var n,i=t.length-2;r<i;)if(e<t[n=r+(i-r>>1)])i=n-1;else{if(!(e>=t[n+1])){r=n;break}r=n+1}return{col:e-t[r]+1,line:r+1}}mapResolve(e){return/^\w+:\/\//.test(e)?e:n(this.map.consumer().sourceRoot||this.map.root||".",e)}origin(e,r,n,i){if(!this.map)return!1;var a,l,u=this.map.consumer(),c=u.originalPositionFor({column:r-1,line:e});if(!c.source)return!1;"number"==typeof n&&(a=u.originalPositionFor({column:i-1,line:n})),l=t(c.source)?o(c.source):new URL(c.source,this.map.consumer().sourceRoot||o(this.map.mapFile));var d={column:c.column+1,endColumn:a&&a.column+1,endLine:a&&a.line,line:c.line,url:l.toString()};if("file:"===l.protocol){if(!s)throw new Error("file: protocol is not available in this PostCSS build");d.file=s(l)}var h=u.sourceContentFor(c.source);return h&&(d.source=h),d}toJSON(){var e={};for(var t of["hasBOM","css","file","id"])null!=this[t]&&(e[t]=this[t]);return this.map&&(e.map=r({},this.map),e.map.consumerCache&&(e.map.consumerCache=void 0)),e}}return Je=m,m.default=m,c&&c.registerInput&&c.registerInput(m),Je}function ht(){if(Qe)return Ze;Qe=1;var e,t,r=st();class n extends r{constructor(e){super(e),this.type="root",this.nodes||(this.nodes=[])}normalize(e,t,r){var n=super.normalize(e);if(t)if("prepend"===r)this.nodes.length>1?t.raws.before=this.nodes[1].raws.before:delete t.raws.before;else if(this.first!==t)for(var i of n)i.raws.before=t.raws.before;return n}removeChild(e,t){var r=this.index(e);return!t&&0===r&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[r].raws.before),super.removeChild(e)}toResult(r){return void 0===r&&(r={}),new e(new t,this,r).stringify()}}return n.registerLazyResult=t=>{e=t},n.registerProcessor=e=>{t=e},Ze=n,n.default=n,r.registerRoot(n),Ze}function pt(){if(_e)return Xe;_e=1;var e={comma:t=>e.split(t,[","],!0),space:t=>e.split(t,[" ","\n","\t"]),split(e,t,r){var n=[],i="",a=!1,s=0,o=!1,l="",u=!1;for(var c of e)u?u=!1:"\\"===c?u=!0:o?c===l&&(o=!1):'"'===c||"'"===c?(o=!0,l=c):"("===c?s+=1:")"===c?s>0&&(s-=1):0===s&&t.includes(c)&&(a=!0),a?(""!==i&&n.push(i.trim()),i="",a=!1):i+=c;return(r||""!==i)&&n.push(i.trim()),n}};return Xe=e,e.default=e,Xe}function ft(){if(et)return $e;et=1;var e=st(),t=pt();class r extends e{get selectors(){return t.comma(this.selector)}set selectors(e){var t=this.selector?this.selector.match(/,\s*/):null,r=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(r)}constructor(e){super(e),this.type="rule",this.nodes||(this.nodes=[])}}return $e=r,r.default=r,e.registerRule(r),$e}var mt,vt,gt,yt,wt,bt,St,kt,Ct,Mt,It,Ot,xt,Et,Rt,Nt,At,Tt,Dt,Lt,Ft,Pt,jt,Bt,zt,Ht,Ut,Wt,qt=["inputs"],Gt=["inputId"];function Kt(){if(yt)return gt;yt=1;var e=Oe.dirname,t=Oe.relative,r=Oe.resolve,n=Oe.sep,i=Oe.SourceMapConsumer,a=Oe.SourceMapGenerator,s=Oe.pathToFileURL,o=dt(),l=Boolean(i&&a),u=Boolean(e&&r&&t&&n);return gt=class{constructor(e,t,r,n){this.stringify=e,this.mapOpts=r.map||{},this.root=t,this.opts=r,this.css=n,this.originalCSS=n,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){var e;e=this.isInline()?"data:application/json;base64,"+this.toBase64(this.map.toString()):"string"==typeof this.mapOpts.annotation?this.mapOpts.annotation:"function"==typeof this.mapOpts.annotation?this.mapOpts.annotation(this.opts.to,this.root):this.outputFile()+".map";var t="\n";this.css.includes("\r\n")&&(t="\r\n"),this.css+=t+"/*# sourceMappingURL="+e+" */"}applyPrevMaps(){for(var t of this.previous()){var r=this.toUrl(this.path(t.file)),n=t.root||e(t.file),a=void 0;!1===this.mapOpts.sourcesContent?(a=new i(t.text)).sourcesContent&&(a.sourcesContent=null):a=t.consumer(),this.map.applySourceMap(a,r,this.toUrl(this.path(n)))}}clearAnnotation(){if(!1!==this.mapOpts.annotation)if(this.root)for(var e,t=this.root.nodes.length-1;t>=0;t--)"comment"===(e=this.root.nodes[t]).type&&e.text.startsWith("# sourceMappingURL=")&&this.root.removeChild(t);else if(this.css)for(var r;-1!==(r=this.css.lastIndexOf("/*#"));){var n=this.css.indexOf("*/",r+3);if(-1===n)break;for(;r>0&&"\n"===this.css[r-1];)r--;this.css=this.css.slice(0,r)+this.css.slice(n+2)}}generate(){if(this.clearAnnotation(),u&&l&&this.isMap())return this.generateMap();var e="";return this.stringify(this.root,(t=>{e+=t})),[e]}generateMap(){if(this.root)this.generateString();else if(1===this.previous().length){var e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=a.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new a({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]}generateString(){this.css="",this.map=new a({file:this.outputFile(),ignoreInvalidMapping:!0});var e,t,r=1,n=1,i="<no source>",s={generated:{column:0,line:0},original:{column:0,line:0},source:""};this.stringify(this.root,((a,o,l)=>{if(this.css+=a,o&&"end"!==l&&(s.generated.line=r,s.generated.column=n-1,o.source&&o.source.start?(s.source=this.sourcePath(o),s.original.line=o.source.start.line,s.original.column=o.source.start.column-1,this.map.addMapping(s)):(s.source=i,s.original.line=1,s.original.column=0,this.map.addMapping(s))),(t=a.match(/\n/g))?(r+=t.length,e=a.lastIndexOf("\n"),n=a.length-e):n+=a.length,o&&"start"!==l){var u=o.parent||{raws:{}};("decl"===o.type||"atrule"===o.type&&!o.nodes)&&o===u.last&&!u.raws.semicolon||(o.source&&o.source.end?(s.source=this.sourcePath(o),s.original.line=o.source.end.line,s.original.column=o.source.end.column-1,s.generated.line=r,s.generated.column=n-2,this.map.addMapping(s)):(s.source=i,s.original.line=1,s.original.column=0,s.generated.line=r,s.generated.column=n-1,this.map.addMapping(s)))}}))}isAnnotation(){return!!this.isInline()||(void 0!==this.mapOpts.annotation?this.mapOpts.annotation:!this.previous().length||this.previous().some((e=>e.annotation)))}isInline(){if(void 0!==this.mapOpts.inline)return this.mapOpts.inline;var e=this.mapOpts.annotation;return(void 0===e||!0===e)&&(!this.previous().length||this.previous().some((e=>e.inline)))}isMap(){return void 0!==this.opts.map?!!this.opts.map:this.previous().length>0}isSourcesContent(){return void 0!==this.mapOpts.sourcesContent?this.mapOpts.sourcesContent:!this.previous().length||this.previous().some((e=>e.withContent()))}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(n){if(this.mapOpts.absolute)return n;if(60===n.charCodeAt(0))return n;if(/^\w+:\/\//.test(n))return n;var i=this.memoizedPaths.get(n);if(i)return i;var a=this.opts.to?e(this.opts.to):".";"string"==typeof this.mapOpts.annotation&&(a=e(r(a,this.mapOpts.annotation)));var s=t(a,n);return this.memoizedPaths.set(n,s),s}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk((e=>{if(e.source&&e.source.input.map){var t=e.source.input.map;this.previousMaps.includes(t)||this.previousMaps.push(t)}}));else{var e=new o(this.originalCSS,this.opts);e.map&&this.previousMaps.push(e.map)}return this.previousMaps}setSourcesContent(){var e={};if(this.root)this.root.walk((t=>{if(t.source){var r=t.source.input.from;if(r&&!e[r]){e[r]=!0;var n=this.usesFileUrls?this.toFileUrl(r):this.toUrl(this.path(r));this.map.setSourceContent(n,t.source.input.css)}}}));else if(this.css){var t=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(t,this.css)}}sourcePath(e){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(e.source.input.from):this.toUrl(this.path(e.source.input.from))}toBase64(e){return Buffer?Buffer.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))}toFileUrl(e){var t=this.memoizedFileURLs.get(e);if(t)return t;if(s){var r=s(e).toString();return this.memoizedFileURLs.set(e,r),r}throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(e){var t=this.memoizedURLs.get(e);if(t)return t;"\\"===n&&(e=e.replace(/\\/g,"/"));var r=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,r),r}},gt}function Vt(){if(bt)return wt;bt=1;var e="'".charCodeAt(0),t='"'.charCodeAt(0),r="\\".charCodeAt(0),n="/".charCodeAt(0),i="\n".charCodeAt(0),a=" ".charCodeAt(0),s="\f".charCodeAt(0),o="\t".charCodeAt(0),l="\r".charCodeAt(0),u="[".charCodeAt(0),c="]".charCodeAt(0),d="(".charCodeAt(0),h=")".charCodeAt(0),p="{".charCodeAt(0),f="}".charCodeAt(0),m=";".charCodeAt(0),v="*".charCodeAt(0),g=":".charCodeAt(0),y="@".charCodeAt(0),w=/[\t\n\f\r "#'()/;[\\\]{}]/g,b=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,S=/.[\r\n"'(/\\]/,k=/[\da-f]/i;return wt=function(C,M){void 0===M&&(M={});var I,O,x,E,R,N,A,T,D,L,F=C.css.valueOf(),P=M.ignoreErrors,j=F.length,B=0,z=[],H=[],U=-1;function W(e){throw C.error("Unclosed "+e,B)}return{back:function(e){H.push(e)},endOfFile:function(){return 0===H.length&&B>=j},nextToken:function(C){if(H.length)return H.pop();if(!(B>=j)){var M=!!C&&C.ignoreUnclosed;switch(I=F.charCodeAt(B)){case i:case a:case o:case l:case s:E=B;do{E+=1,I=F.charCodeAt(E)}while(I===a||I===i||I===o||I===l||I===s);N=["space",F.slice(B,E)],B=E-1;break;case u:case c:case p:case f:case g:case m:case h:var q=String.fromCharCode(I);N=[q,q,B];break;case d:if(L=z.length?z.pop()[1]:"",D=F.charCodeAt(B+1),"url"===L&&D!==e&&D!==t&&D!==a&&D!==i&&D!==o&&D!==s&&D!==l){E=B;do{if(A=!1,-1===(E=F.indexOf(")",E+1))){if(P||M){E=B;break}W("bracket")}for(T=E;F.charCodeAt(T-1)===r;)T-=1,A=!A}while(A);N=["brackets",F.slice(B,E+1),B,E],B=E}else B<=U?N=["(","(",B]:(E=F.indexOf(")",B+1),O=F.slice(B,E+1),-1===E||S.test(O)?(U=-1===E?j:E,N=["(","(",B]):(N=["brackets",O,B,E],B=E));break;case e:case t:R=I===e?"'":'"',E=B;do{if(A=!1,-1===(E=F.indexOf(R,E+1))){if(P||M){E=B+1;break}W("string")}for(T=E;F.charCodeAt(T-1)===r;)T-=1,A=!A}while(A);N=["string",F.slice(B,E+1),B,E],B=E;break;case y:w.lastIndex=B+1,w.test(F),E=0===w.lastIndex?F.length-1:w.lastIndex-2,N=["at-word",F.slice(B,E+1),B,E],B=E;break;case r:for(E=B,x=!0;F.charCodeAt(E+1)===r;)E+=1,x=!x;if(I=F.charCodeAt(E+1),x&&I!==n&&I!==a&&I!==i&&I!==o&&I!==l&&I!==s&&(E+=1,k.test(F.charAt(E)))){for(;k.test(F.charAt(E+1));)E+=1;F.charCodeAt(E+1)===a&&(E+=1)}N=["word",F.slice(B,E+1),B,E],B=E;break;default:I===n&&F.charCodeAt(B+1)===v?(0===(E=F.indexOf("*/",B+2)+1)&&(P||M?E=F.length:W("comment")),N=["comment",F.slice(B,E+1),B,E],B=E):(b.lastIndex=B+1,b.test(F),E=0===b.lastIndex?F.length-1:b.lastIndex-2,N=["word",F.slice(B,E+1),B,E],z.push(N),B=E)}return B++,N}},position:function(){return B}}},wt}function Jt(){if(kt)return St;kt=1;var e=ot(),t=it(),r=at(),n=ht(),i=ft(),a=Vt(),s={empty:!0,space:!0};function o(e,t,r){for(var n="",i=t;i<r;i++)n+=e[i][1];return n}return St=class{constructor(e){this.input=e,this.root=new n,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}}atrule(t){var r,n,i,a=new e;a.name=t[1].slice(1),""===a.name&&this.unnamedAtrule(a,t),this.init(a,t[2]);for(var s=!1,o=!1,l=[],u=[];!this.tokenizer.endOfFile();){if("("===(r=(t=this.tokenizer.nextToken())[0])||"["===r?u.push("("===r?")":"]"):"{"===r&&u.length>0?u.push("}"):r===u[u.length-1]&&u.pop(),0===u.length){if(";"===r){a.source.end=this.getPosition(t[2]),a.source.end.offset++,this.semicolon=!0;break}if("{"===r){o=!0;break}if("}"===r){if(l.length>0){for(n=l[i=l.length-1];n&&"space"===n[0];)n=l[--i];n&&(a.source.end=this.getPosition(n[3]||n[2]),a.source.end.offset++)}this.end(t);break}l.push(t)}else l.push(t);if(this.tokenizer.endOfFile()){s=!0;break}}a.raws.between=this.spacesAndCommentsFromEnd(l),l.length?(a.raws.afterName=this.spacesAndCommentsFromStart(l),this.raw(a,"params",l),s&&(t=l[l.length-1],a.source.end=this.getPosition(t[3]||t[2]),a.source.end.offset++,this.spaces=a.raws.between,a.raws.between="")):(a.raws.afterName="",a.params=""),o&&(a.nodes=[],this.current=a)}checkMissedSemicolon(e){var t=this.colon(e);if(!1!==t){for(var r,n=0,i=t-1;i>=0&&("space"===(r=e[i])[0]||2!==(n+=1));i--);throw this.input.error("Missed semicolon","word"===r[0]?r[3]+1:r[2])}}colon(e){var t,r,n,i=0;for(var a of e.entries()){var s=a[0];if("("===(n=(r=a[1])[0])&&(i+=1),")"===n&&(i-=1),0===i&&":"===n){if(t){if("word"===t[0]&&"progid"===t[1])continue;return s}this.doubleColon(r)}t=r}return!1}comment(e){var r=new t;this.init(r,e[2]),r.source.end=this.getPosition(e[3]||e[2]),r.source.end.offset++;var n=e[1].slice(2,-2);if(n.trim()){var i=n.match(/^(\s*)([^]*\S)(\s*)$/);r.text=i[2],r.raws.left=i[1],r.raws.right=i[3]}else r.text="",r.raws.left=n,r.raws.right=""}createTokenizer(){this.tokenizer=a(this.input)}decl(e,t){var n=new r;this.init(n,e[0][2]);var i=e[e.length-1];";"===i[0]&&(this.semicolon=!0,e.pop()),n.source.end=this.getPosition(i[3]||i[2]||function(e){for(var t=e.length-1;t>=0;t--){var r=e[t],n=r[3]||r[2];if(n)return n}}(e)),n.source.end.offset++;for(var a=0;"word"!==e[a][0];)a===e.length-1&&this.unknownWord([e[a]]),a++;n.raws.before+=o(e,0,a),n.source.start=this.getPosition(e[a][2]);for(var s=a;a<e.length;){var l=e[a][0];if(":"===l||"space"===l||"comment"===l)break;a++}n.prop=o(e,s,a);for(var u,c=a;a<e.length&&(u=e[a],a++,":"!==u[0]);)"word"===u[0]&&/\w/.test(u[1])&&this.unknownWord([u]);n.raws.between=o(e,c,a),"_"!==n.prop[0]&&"*"!==n.prop[0]||(n.raws.before+=n.prop[0],n.prop=n.prop.slice(1));for(var d=a;a<e.length;){var h=e[a][0];if("space"!==h&&"comment"!==h)break;a++}var p=e.slice(d,a);e=e.slice(a),this.precheckMissedSemicolon(e);for(var f=e.length-1;f>=0;f--){if("!important"===(u=e[f])[1].toLowerCase()){n.important=!0;var m=this.stringFrom(e,f);" !important"!==(m=this.spacesFromEnd(e)+m)&&(n.raws.important=m);break}if("important"===u[1].toLowerCase()){for(var v=e.slice(0),g="",y=f;y>0;y--){var w=v[y][0];if(g.trim().startsWith("!")&&"space"!==w)break;g=v.pop()[1]+g}g.trim().startsWith("!")&&(n.important=!0,n.raws.important=g,e=v)}if("space"!==u[0]&&"comment"!==u[0])break}var b=e.some((e=>"space"!==e[0]&&"comment"!==e[0]));b&&(n.raws.between+=p.map((e=>e[1])).join(""),p=[]),this.raw(n,"value",p.concat(e),t),n.value.includes(":")&&!t&&this.checkMissedSemicolon(e)}doubleColon(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})}emptyRule(e){var t=new i;this.init(t,e[2]),t.selector="",t.raws.between="",this.current=t}end(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(e){if(this.spaces+=e[1],this.current.nodes){var t=this.current.nodes[this.current.nodes.length-1];t&&"rule"===t.type&&!t.raws.ownSemicolon&&(t.raws.ownSemicolon=this.spaces,this.spaces="",t.source.end=this.getPosition(e[2]),t.source.end.offset+=t.raws.ownSemicolon.length)}}getPosition(e){var t=this.input.fromOffset(e);return{column:t.col,line:t.line,offset:e}}init(e,t){this.current.push(e),e.source={input:this.input,start:this.getPosition(t)},e.raws.before=this.spaces,this.spaces="","comment"!==e.type&&(this.semicolon=!1)}other(e){for(var t=!1,r=null,n=!1,i=null,a=[],s=e[1].startsWith("--"),o=[],l=e;l;){if(r=l[0],o.push(l),"("===r||"["===r)i||(i=l),a.push("("===r?")":"]");else if(s&&n&&"{"===r)i||(i=l),a.push("}");else if(0===a.length){if(";"===r){if(n)return void this.decl(o,s);break}if("{"===r)return void this.rule(o);if("}"===r){this.tokenizer.back(o.pop()),t=!0;break}":"===r&&(n=!0)}else r===a[a.length-1]&&(a.pop(),0===a.length&&(i=null));l=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),a.length>0&&this.unclosedBracket(i),t&&n){if(!s)for(;o.length&&("space"===(l=o[o.length-1][0])||"comment"===l);)this.tokenizer.back(o.pop());this.decl(o,s)}else this.unknownWord(o)}parse(){for(var e;!this.tokenizer.endOfFile();)switch((e=this.tokenizer.nextToken())[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e)}this.endFile()}precheckMissedSemicolon(){}raw(e,t,r,n){for(var i,a,o,l,u=r.length,c="",d=!0,h=0;h<u;h+=1)"space"!==(a=(i=r[h])[0])||h!==u-1||n?"comment"===a?(l=r[h-1]?r[h-1][0]:"empty",o=r[h+1]?r[h+1][0]:"empty",s[l]||s[o]||","===c.slice(-1)?d=!1:c+=i[1]):c+=i[1]:d=!1;if(!d){var p=r.reduce(((e,t)=>e+t[1]),"");e.raws[t]={raw:p,value:c}}e[t]=c}rule(e){e.pop();var t=new i;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t}spacesAndCommentsFromEnd(e){for(var t,r="";e.length&&("space"===(t=e[e.length-1][0])||"comment"===t);)r=e.pop()[1]+r;return r}spacesAndCommentsFromStart(e){for(var t,r="";e.length&&("space"===(t=e[0][0])||"comment"===t);)r+=e.shift()[1];return r}spacesFromEnd(e){for(var t="";e.length&&"space"===e[e.length-1][0];)t=e.pop()[1]+t;return t}stringFrom(e,t){for(var r="",n=t;n<e.length;n++)r+=e[n][1];return e.splice(t,e.length-t),r}unclosedBlock(){var e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)}unclosedBracket(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})}unexpectedClose(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})}unknownWord(e){throw this.input.error("Unknown word "+e[0][1],{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})}unnamedAtrule(e,t){throw this.input.error("At-rule without name",{offset:t[2]},{offset:t[2]+t[1].length})}},St}function Yt(){if(Mt)return Ct;Mt=1;var e=st(),t=dt(),r=Jt();function n(e,n){var i=new t(e,n),a=new r(i);try{a.parse()}catch(e){throw"production"!==process.env.NODE_ENV&&"CssSyntaxError"===e.name&&n&&n.from&&(/\.scss$/i.test(n.from)?e.message+="\nYou tried to parse SCSS with the standard CSS parser; try again with the postcss-scss parser":/\.sass/i.test(n.from)?e.message+="\nYou tried to parse Sass with the standard CSS parser; try again with the postcss-sass parser":/\.less$/i.test(n.from)&&(e.message+="\nYou tried to parse Less with the standard CSS parser; try again with the postcss-less parser")),e}return a.root}return Ct=n,n.default=n,e.registerParse(n),Ct}function Zt(){if(Ot)return It;Ot=1;class e{constructor(e,t){if(void 0===t&&(t={}),this.type="warning",this.text=e,t.node&&t.node.source){var r=t.node.rangeBy(t);this.line=r.start.line,this.column=r.start.column,this.endLine=r.end.line,this.endColumn=r.end.column}for(var n in t)this[n]=t[n]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}}return It=e,e.default=e,It}function Qt(){if(Et)return xt;Et=1;var e=Zt();class t{get content(){return this.css}constructor(e,t,r){this.processor=e,this.messages=[],this.root=t,this.opts=r,this.css="",this.map=void 0}toString(){return this.css}warn(t,r){void 0===r&&(r={}),r.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(r.plugin=this.lastPlugin.postcssPlugin);var n=new e(t,r);return this.messages.push(n),n}warnings(){return this.messages.filter((e=>"warning"===e.type))}}return xt=t,t.default=t,xt}function Xt(){if(Nt)return Rt;Nt=1;var e={};return Rt=function(t){e[t]||(e[t]=!0,"undefined"!=typeof console&&console.warn&&console.warn(t))}}function _t(){if(Tt)return At;Tt=1;var e=st(),n=lt(),i=Kt(),a=Yt(),s=Qt(),o=ht(),l=Re(),u=rt(),c=u.isClean,d=u.my,h=Xt(),p={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},f={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},m={Once:!0,postcssPlugin:!0,prepare:!0},v=0;function g(e){return"object"==typeof e&&"function"==typeof e.then}function y(e){var t=!1,r=p[e.type];return"decl"===e.type?t=e.prop.toLowerCase():"atrule"===e.type&&(t=e.name.toLowerCase()),t&&e.append?[r,r+"-"+t,v,r+"Exit",r+"Exit-"+t]:t?[r,r+"-"+t,r+"Exit",r+"Exit-"+t]:e.append?[r,v,r+"Exit"]:[r,r+"Exit"]}function w(e){return{eventIndex:0,events:"document"===e.type?["Document",v,"DocumentExit"]:"root"===e.type?["Root",v,"RootExit"]:y(e),iterator:0,node:e,visitorIndex:0,visitors:[]}}function b(e){return e[c]=!1,e.nodes&&e.nodes.forEach((e=>b(e))),e}var S={};class k{get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}constructor(t,n,i){var o;if(this.stringified=!1,this.processed=!1,"object"!=typeof n||null===n||"root"!==n.type&&"document"!==n.type)if(n instanceof k||n instanceof s)o=b(n.root),n.map&&(void 0===i.map&&(i.map={}),i.map.inline||(i.map.inline=!1),i.map.prev=n.map);else{var l=a;i.syntax&&(l=i.syntax.parse),i.parser&&(l=i.parser),l.parse&&(l=l.parse);try{o=l(n,i)}catch(e){this.processed=!0,this.error=e}o&&!o[d]&&e.rebuild(o)}else o=b(n);this.result=new s(t,o,i),this.helpers=r({},S,{postcss:S,result:this.result}),this.plugins=this.processor.plugins.map((e=>"object"==typeof e&&e.prepare?r({},e,e.prepare(this.result)):e))}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(e,t){var r=this.result.lastPlugin;try{if(t&&t.addToError(e),this.error=e,"CssSyntaxError"!==e.name||e.plugin){if(r.postcssVersion&&"production"!==process.env.NODE_ENV){var n=r.postcssPlugin,i=r.postcssVersion,a=this.result.processor.version,s=i.split("."),o=a.split(".");(s[0]!==o[0]||parseInt(s[1])>parseInt(o[1]))&&console.error("Unknown error from PostCSS plugin. Your current PostCSS version is "+a+", but "+n+" uses "+i+". Perhaps this is the source of the error below.")}}else e.plugin=r.postcssPlugin,e.setMessage()}catch(e){console&&console.error&&console.error(e)}return e}prepareVisitors(){this.listeners={};var e=(e,t,r)=>{this.listeners[t]||(this.listeners[t]=[]),this.listeners[t].push([e,r])};for(var t of this.plugins)if("object"==typeof t)for(var r in t){if(!f[r]&&/^[A-Z]/.test(r))throw new Error("Unknown event "+r+" in "+t.postcssPlugin+". Try to update PostCSS ("+this.processor.version+" now).");if(!m[r])if("object"==typeof t[r])for(var n in t[r])e(t,"*"===n?r:r+"-"+n.toLowerCase(),t[r][n]);else"function"==typeof t[r]&&e(t,r,t[r])}this.hasListener=Object.keys(this.listeners).length>0}runAsync(){var e=this;return t((function*(){e.plugin=0;for(var t=0;t<e.plugins.length;t++){var r=e.plugins[t],n=e.runOnRoot(r);if(g(n))try{yield n}catch(t){throw e.handleError(t)}}if(e.prepareVisitors(),e.hasListener){for(var i=e.result.root;!i[c];){i[c]=!0;for(var a=[w(i)];a.length>0;){var s=e.visitTick(a);if(g(s))try{yield s}catch(t){var o=a[a.length-1].node;throw e.handleError(t,o)}}}if(e.listeners.OnceExit){var l=function*(){var t=u[0],r=u[1];e.result.lastPlugin=t;try{if("document"===i.type){var n=i.nodes.map((t=>r(t,e.helpers)));yield Promise.all(n)}else yield r(i,e.helpers)}catch(t){throw e.handleError(t)}};for(var u of e.listeners.OnceExit)yield*l()}}return e.processed=!0,e.stringify()}))()}runOnRoot(e){this.result.lastPlugin=e;try{if("object"==typeof e&&e.Once){if("document"===this.result.root.type){var t=this.result.root.nodes.map((t=>e.Once(t,this.helpers)));return g(t[0])?Promise.all(t):t}return e.Once(this.result.root,this.helpers)}if("function"==typeof e)return e(this.result.root,this.result)}catch(e){throw this.handleError(e)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();var e=this.result.opts,t=l;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);var r=this.result.root.source;if(void 0===e.map&&!(r&&r.input&&r.input.map)){var n="";return t(this.result.root,(e=>{n+=e})),this.result.css=n,this.result}var a=new i(t,this.result.root,this.result.opts).generate();return this.result.css=a[0],this.result.map=a[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(var e of this.plugins)if(g(this.runOnRoot(e)))throw this.getAsyncError();if(this.prepareVisitors(),this.hasListener){for(var t=this.result.root;!t[c];)t[c]=!0,this.walkSync(t);if(this.listeners.OnceExit)if("document"===t.type)for(var r of t.nodes)this.visitSync(this.listeners.OnceExit,r);else this.visitSync(this.listeners.OnceExit,t)}return this.result}then(e,t){return"production"!==process.env.NODE_ENV&&("from"in this.opts||h("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")),this.async().then(e,t)}toString(){return this.css}visitSync(e,t){for(var r of e){var n=r[0],i=r[1];this.result.lastPlugin=n;var a=void 0;try{a=i(t,this.helpers)}catch(e){throw this.handleError(e,t.proxyOf)}if("root"!==t.type&&"document"!==t.type&&!t.parent)return!0;if(g(a))throw this.getAsyncError()}}visitTick(e){var t=e[e.length-1],r=t.node,n=t.visitors;if("root"===r.type||"document"===r.type||r.parent){if(n.length>0&&t.visitorIndex<n.length){var i=n[t.visitorIndex],a=i[0],s=i[1];t.visitorIndex+=1,t.visitorIndex===n.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=a;try{return s(r.toProxy(),this.helpers)}catch(e){throw this.handleError(e,r)}}if(0!==t.iterator){for(var o,l=t.iterator;o=r.nodes[r.indexes[l]];)if(r.indexes[l]+=1,!o[c])return o[c]=!0,void e.push(w(o));t.iterator=0,delete r.indexes[l]}for(var u=t.events;t.eventIndex<u.length;){var d=u[t.eventIndex];if(t.eventIndex+=1,d===v)return void(r.nodes&&r.nodes.length&&(r[c]=!0,t.iterator=r.getIterator()));if(this.listeners[d])return void(t.visitors=this.listeners[d])}e.pop()}else e.pop()}walkSync(e){e[c]=!0;var t=y(e);for(var r of t)if(r===v)e.nodes&&e.each((e=>{e[c]||this.walkSync(e)}));else{var n=this.listeners[r];if(n&&this.visitSync(n,e.toProxy()))return}}warnings(){return this.sync().warnings()}}return k.registerPostcss=e=>{S=e},At=k,k.default=k,o.registerLazyResult(k),n.registerLazyResult(k),At}function $t(){if(Bt)return jt;Bt=1;var e=ot(),t=it(),i=st(),a=xe(),s=at(),o=lt(),l=function(){if(vt)return mt;vt=1;var e=ot(),t=it(),i=at(),a=dt(),s=ct(),o=ht(),l=ft();function u(c,d){if(Array.isArray(c))return c.map((e=>u(e)));var h,p,f=c.inputs,m=n(c,qt);if(f)for(var v of(d=[],f)){var g=r({},v,{__proto__:a.prototype});g.map&&(g.map=r({},g.map,{__proto__:s.prototype})),d.push(g)}if(m.nodes&&(h=c.nodes.map((e=>u(e,d))),delete m.nodes),m.source){var y=m.source,w=y.inputId,b=n(y,Gt);m.source=b,null!=w&&(m.source.input=d[w])}if("root"===m.type)p=new o(m);else if("decl"===m.type)p=new i(m);else if("rule"===m.type)p=new l(m);else if("comment"===m.type)p=new t(m);else{if("atrule"!==m.type)throw new Error("Unknown node type: "+c.type);p=new e(m)}if(h)for(var S of(p.nodes=h,h))S.parent=p;return p}return mt=u,u.default=u,mt}(),u=dt(),c=_t(),d=pt(),h=nt(),p=Yt(),f=function(){if(Pt)return Ft;Pt=1;var e=lt(),t=_t(),r=function(){if(Lt)return Dt;Lt=1;var e=Kt(),t=Yt(),r=Qt(),n=Re(),i=Xt();class a{get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;var e,r=t;try{e=r(this._css,this._opts)}catch(e){this.error=e}if(this.error)throw this.error;return this._root=e,e}get[Symbol.toStringTag](){return"NoWorkResult"}constructor(t,i,a){i=i.toString(),this.stringified=!1,this._processor=t,this._css=i,this._opts=a,this._map=void 0;var s=n;this.result=new r(this._processor,void 0,this._opts),this.result.css=i;var o=this;Object.defineProperty(this.result,"root",{get:()=>o.root});var l=new e(s,void 0,this._opts,i);if(l.isMap()){var u=l.generate(),c=u[0],d=u[1];c&&(this.result.css=c),d&&(this.result.map=d)}else l.clearAnnotation(),this.result.css=l.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}sync(){if(this.error)throw this.error;return this.result}then(e,t){return"production"!==process.env.NODE_ENV&&("from"in this._opts||i("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")),this.async().then(e,t)}toString(){return this._css}warnings(){return[]}}return Dt=a,a.default=a,Dt}(),n=ht();class i{constructor(e){void 0===e&&(e=[]),this.version="8.5.16",this.plugins=this.normalize(e)}normalize(e){var t=[];for(var r of e)if(!0===r.postcss?r=r():r.postcss&&(r=r.postcss),"object"==typeof r&&Array.isArray(r.plugins))t=t.concat(r.plugins);else if("object"==typeof r&&r.postcssPlugin)t.push(r);else if("function"==typeof r)t.push(r);else{if("object"!=typeof r||!r.parse&&!r.stringify)throw new Error(r+" is not a PostCSS plugin");if("production"!==process.env.NODE_ENV)throw new Error("PostCSS syntaxes cannot be used as plugins. Instead, please use one of the syntax/parser/stringifier options as outlined in your PostCSS runner documentation.")}return t}process(e,n){return void 0===n&&(n={}),this.plugins.length||n.parser||n.stringifier||n.syntax?new t(this,e,n):new r(this,e,n)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}}return Ft=i,i.default=i,n.registerProcessor(i),e.registerProcessor(i),Ft}(),m=Qt(),v=ht(),g=ft(),y=Re(),w=Zt();function b(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return 1===t.length&&Array.isArray(t[0])&&(t=t[0]),new f(t)}return b.plugin=function(e,t){var r,n=!1;function i(){console&&console.warn&&!n&&(n=!0,console.warn(e+": postcss.plugin was deprecated. Migration guide:\nhttps://evilmartians.com/chronicles/postcss-8-plugin-migration"),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(e+": 里面 postcss.plugin 被弃用. 迁移指南:\nhttps://www.w3ctech.com/topic/2226"));var r=t(...arguments);return r.postcssPlugin=e,r.postcssVersion=(new f).version,r}return Object.defineProperty(i,"postcss",{get:()=>(r||(r=i()),r)}),i.process=function(e,t,r){return b([i(r)]).process(e,t)},i},b.stringify=y,b.parse=p,b.fromJSON=l,b.list=d,b.comment=e=>new t(e),b.atRule=t=>new e(t),b.decl=e=>new s(e),b.rule=e=>new g(e),b.root=e=>new v(e),b.document=e=>new o(e),b.CssSyntaxError=a,b.Declaration=s,b.Container=i,b.Processor=f,b.Document=o,b.Comment=t,b.Warning=w,b.AtRule=e,b.Result=m,b.Input=u,b.Rule=g,b.Root=v,b.Node=h,c.registerPostcss(b),jt=b,b.default=b,jt}!function(){if(Wt)return Ut;Wt=1;var e=$t().Input,t=function(){if(Ht)return zt;Ht=1;var e=it(),t=Jt(),r=Vt();return zt=class extends t{checkMissedSemicolon(){}comment(t){var r=new e;this.init(r,t[2]);var n=this.input.fromOffset(t[3])||this.input.fromOffset(this.input.css.length-1);r.source.end={column:n.col,line:n.line,offset:t[3]+1};var i=t[1].slice(2);if("*/"===i.slice(-2)&&(i=i.slice(0,-2)),/^\s*$/.test(i))r.text="",r.raws.left=i,r.raws.right="";else{var a=i.match(/^(\s*)([^]*\S)(\s*)$/);r.text=a[2],r.raws.left=a[1],r.raws.right=a[3]}}createTokenizer(){this.tokenizer=r(this.input,{ignoreErrors:!0})}decl(e){e.length>1&&e.some((e=>"word"===e[0]))&&super.decl(e)}doubleColon(){}endFile(){for(this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces;this.current.parent;)this.current=this.current.parent,this.current.raws.after="";this.root.source.end=this.getPosition(this.tokenizer.position())}precheckMissedSemicolon(e){var t=this.colon(e);if(!1!==t){var r,n;for(r=t-1;r>=0&&"word"!==e[r][0];r--);if(!(0===r||r<0)){for(n=r-1;n>=0;n--)if("space"!==e[n][0]){n+=1;break}var i=e.slice(r),a=e.slice(n,r);e.splice(n,e.length-n),this.spaces=a.map((e=>e[1])).join(""),this.decl(i)}}}unclosedBracket(){}unexpectedClose(){this.current.raws.after+="}"}unknownWord(e){this.spaces+=e.map((e=>e[1])).join("")}unnamedAtrule(e){e.name=""}},zt}();Ut=function(r,n){var i=new e(r,n),a=new t(i);return a.parse(),a.root}}();var er=me($t());er.stringify,er.fromJSON,er.plugin,er.parse,er.list,er.document,er.comment,er.atRule,er.rule,er.decl,er.root,er.CssSyntaxError,er.Declaration,er.Container,er.Processor,er.Document,er.Comment,er.Warning,er.AtRule,er.Result,er.Input,er.Rule,er.Root,er.Node;class tr{constructor(){this.parentElement=null,this.parentNode=null,this.ownerDocument=void 0,this.firstChild=null,this.lastChild=null,this.previousSibling=null,this.nextSibling=null,this.ELEMENT_NODE=rr.ELEMENT_NODE,this.TEXT_NODE=rr.TEXT_NODE,this.nodeType=void 0,this.nodeName=void 0,this.RRNodeType=void 0}get childNodes(){for(var e=[],t=this.firstChild;t;)e.push(t),t=t.nextSibling;return e}contains(e){if(!(e instanceof tr))return!1;if(e.ownerDocument!==this.ownerDocument)return!1;if(e===this)return!0;for(;e.parentNode;){if(e.parentNode===this)return!0;e=e.parentNode}return!1}appendChild(e){throw new Error("RRDomException: Failed to execute 'appendChild' on 'RRNode': This RRNode type does not support this method.")}insertBefore(e,t){throw new Error("RRDomException: Failed to execute 'insertBefore' on 'RRNode': This RRNode type does not support this method.")}removeChild(e){throw new Error("RRDomException: Failed to execute 'removeChild' on 'RRNode': This RRNode type does not support this method.")}toString(){return"RRNode"}}var rr=function(e){return 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",e}({});function nr(e,t,r){void 0===r&&(r=document);var n={capture:!0,passive:!0};return r.addEventListener(e,t,n),()=>ir(r,e,t,n)}function ir(e,t,r,n){ar((()=>{var i=e.removeEventListener;"function"==typeof i&&(void 0!==n?i.call(e,t,r,n):i.call(e,t,r))}))}function ar(e){try{e()}catch(e){if(!(e instanceof DOMException&&"SecurityError"===e.name))throw e}}var sr="Please stop import mirror directly. Instead of that,\r\nnow you can use replayer.getMirror() to access the mirror instance of a replayer,\r\nor you can use record.mirror to access the mirror instance during recording.",or={map:{},getId:()=>(console.error(sr),-1),getNode:()=>(console.error(sr),null),removeNodeFromMap(){console.error(sr)},has:()=>(console.error(sr),!1),reset(){console.error(sr)}};function lr(e,t,r){void 0===r&&(r={});var n=null,i=0;return function(){for(var a=arguments.length,s=new Array(a),o=0;o<a;o++)s[o]=arguments[o];var l=Date.now();i||!1!==r.leading||(i=l);var u=t-(l-i),c=this;u<=0||u>t?(n&&(clearTimeout(n),n=null),i=l,e.apply(c,s)):n||!1===r.trailing||(n=setTimeout((()=>{i=!1===r.leading?0:Date.now(),n=null,e.apply(c,s)}),u))}}function ur(e,t,r,n,i){void 0===i&&(i=window);var a=i.Object.getOwnPropertyDescriptor(e,t);return i.Object.defineProperty(e,t,n?r:{set(e){if(setTimeout((()=>{try{r.set.call(this,e)}catch(e){}}),0),a&&a.set){if(a.get)try{a.get.call(this)}catch(e){return}a.set.call(this,e)}}}),()=>ur(e,t,a||{},!0)}"undefined"!=typeof window&&window.Proxy&&window.Reflect&&(or=new Proxy(or,{get:(e,t,r)=>("map"===t&&console.error(sr),Reflect.get(e,t,r))}));var cr=Date.now;function dr(e){var t,r,n,i,a=e.document;return{left:a.scrollingElement?a.scrollingElement.scrollLeft:void 0!==e.pageXOffset?e.pageXOffset:a.documentElement.scrollLeft||(null==a?void 0:a.body)&&(null==(t=O.parentElement(a.body))?void 0:t.scrollLeft)||(null==a||null==(r=a.body)?void 0:r.scrollLeft)||0,top:a.scrollingElement?a.scrollingElement.scrollTop:void 0!==e.pageYOffset?e.pageYOffset:(null==a?void 0:a.documentElement.scrollTop)||(null==a?void 0:a.body)&&(null==(n=O.parentElement(a.body))?void 0:n.scrollTop)||(null==a||null==(i=a.body)?void 0:i.scrollTop)||0}}function hr(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function pr(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function fr(e){return e?e.nodeType===e.ELEMENT_NODE?e:O.parentElement(e):null}function mr(e,t,r,n){if(!e)return!1;var i=fr(e),a=n;if(!i){var s=O.getRootNode(e);if(!E(s))return!1;i=O.host(s),a=!0}for(;i;){try{if("string"==typeof t){if(i.classList.contains(t))return!0;if(a&&null!==i.closest("."+t))return!0}else if(ie(i,t,a))return!0}catch(e){}if(r){if(i.matches(r))return!0;if(a&&null!==i.closest(r))return!0}var o=O.getRootNode(i);if(!E(o))return!1;i=O.host(o),a=!0}return!1}function vr(e,t,r){return!("TITLE"!==e.tagName||!r.headTitleMutations)||t.getId(e)===Y}function gr(e,t){if(E(e))return!1;var r=t.getId(e);if(!t.has(r))return!0;var n=O.parentNode(e);return(!n||n.nodeType!==e.DOCUMENT_NODE)&&(!n||gr(n,t))}function yr(e){return Boolean(e.changedTouches)}function wr(e,t){return Boolean("IFRAME"===e.nodeName&&t.getMeta(e))}function br(e,t){return Boolean("LINK"===e.nodeName&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&"stylesheet"===e.getAttribute("rel")&&t.getMeta(e))}function Sr(e){return!!e&&(e instanceof tr&&"shadowRoot"in e?Boolean(e.shadowRoot):Boolean(O.shadowRoot(e)))}/[1-9][0-9]{12}/.test(Date.now().toString())||(cr=()=>(new Date).getTime());class kr{constructor(){this.id=1,this.styleIDMap=new WeakMap,this.idStyleMap=new Map}getId(e){var t;return null!=(t=this.styleIDMap.get(e))?t:-1}has(e){return this.styleIDMap.has(e)}add(e,t){return this.has(e)?this.getId(e):(r=void 0===t?this.id++:t,this.styleIDMap.set(e,r),this.idStyleMap.set(r,e),r);var r}getStyle(e){return this.idStyleMap.get(e)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}}function Cr(e){var t,r=null;return"getRootNode"in e&&(null==(t=O.getRootNode(e))?void 0:t.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&O.host(O.getRootNode(e))&&(r=O.host(O.getRootNode(e))),r}function Mr(e){var t=e.ownerDocument;return!!t&&(O.contains(t,e)||function(e){var t=e.ownerDocument;if(!t)return!1;var r=function(e){for(var t,r=e;t=Cr(r);)r=t;return r}(e);return O.contains(t,r)}(e))}function Ir(e){return"__ln"in e}class Or{constructor(){this.length=0,this.head=null,this.tail=null}get(e){if(e>=this.length)throw new Error("Position outside of list range");for(var t=this.head,r=0;r<e;r++){var n;t=(null==(n=t)?void 0:n.next)||null}return t}addNode(e){var t={value:e,previous:null,next:null};if(e.__ln=t,e.previousSibling&&Ir(e.previousSibling)){var r=e.previousSibling.__ln.next;t.next=r,t.previous=e.previousSibling.__ln,e.previousSibling.__ln.next=t,r&&(r.previous=t)}else if(e.nextSibling&&Ir(e.nextSibling)&&e.nextSibling.__ln.previous){var n=e.nextSibling.__ln.previous;t.previous=n,t.next=e.nextSibling.__ln,e.nextSibling.__ln.previous=t,n&&(n.next=t)}else this.head&&(this.head.previous=t),t.next=this.head,this.head=t;null===t.next&&(this.tail=t),this.length++}removeNode(e){var t=e.__ln;this.head&&(t.previous?(t.previous.next=t.next,t.next?t.next.previous=t.previous:this.tail=t.previous):(this.head=t.next,this.head?this.head.previous=null:this.tail=null),e.__ln&&delete e.__ln,this.length--)}}var xr,Er=(e,t)=>e+"@"+t;class Rr{constructor(){this.frozen=!1,this.locked=!1,this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.mapRemoves=[],this.movedMap={},this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.removesSubTreeCache=new Set,this.mutationCb=void 0,this.blockClass=void 0,this.blockSelector=void 0,this.maskTextClass=void 0,this.maskTextSelector=void 0,this.inlineStylesheet=void 0,this.maskInputOptions=void 0,this.maskTextFn=void 0,this.maskInputFn=void 0,this.keepIframeSrcFn=void 0,this.recordCanvas=void 0,this.canvasMaskingConfigured=void 0,this.inlineImages=void 0,this.slimDOMOptions=void 0,this.dataURLOptions=void 0,this.doc=void 0,this.mirror=void 0,this.iframeManager=void 0,this.stylesheetManager=void 0,this.shadowDomManager=void 0,this.canvasManager=void 0,this.processedNodeManager=void 0,this.unattachedDoc=void 0,this.canvasManagerReleased=!1,this.processMutations=e=>{e.forEach(this.processMutation),this.emit()},this.emit=()=>{if(!this.frozen&&!this.locked){for(var e=[],t=new Set,r=new Or,n=e=>{for(var t=e,r=Y;r===Y;)r=(t=t&&t.nextSibling)&&this.mirror.getId(t);return r},i=i=>{var a=O.parentNode(i);if(a&&Mr(i)&&"TEXTAREA"!==a.tagName){var s=E(a)?this.mirror.getId(Cr(i)):this.mirror.getId(a),o=n(i);if(-1===s||-1===o)return r.addNode(i);var l=pe(i,{doc:this.doc,mirror:this.mirror,blockClass:this.blockClass,blockSelector:this.blockSelector,maskTextClass:this.maskTextClass,maskTextSelector:this.maskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:this.inlineStylesheet,maskInputOptions:this.maskInputOptions,maskTextFn:this.maskTextFn,maskInputFn:this.maskInputFn,slimDOMOptions:this.slimDOMOptions,dataURLOptions:this.dataURLOptions,recordCanvas:this.recordCanvas,canvasMaskingConfigured:this.canvasMaskingConfigured,inlineImages:this.inlineImages,onSerialize:e=>{wr(e,this.mirror)&&this.iframeManager.addIframe(e),br(e,this.mirror)&&this.stylesheetManager.trackLinkElement(e),Sr(i)&&this.shadowDomManager.addShadowRoot(O.shadowRoot(i),this.doc)},onIframeLoad:(e,t)=>{this.iframeManager.attachIframe(e,t),this.shadowDomManager.observeAttachShadow(e)},onIframeListenerRegistered:(e,t)=>{this.iframeManager.registerLoadListenerDisposer(e,t)},onStylesheetLoad:(e,t)=>{this.stylesheetManager.attachLinkElement(e,t)}});l&&(e.push({parentId:s,nextId:o,node:l}),t.add(l.id))}};this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(var a of this.movedSet)Ar(this.removesSubTreeCache,a,this.mirror)&&!this.movedSet.has(O.parentNode(a))||i(a);for(var s of this.addedSet)Tr(this.droppedSet,s)||Ar(this.removesSubTreeCache,s,this.mirror)?Tr(this.movedSet,s)?i(s):this.droppedSet.add(s):i(s);for(var o=null;r.length;){var l=null;if(o){var u=this.mirror.getId(O.parentNode(o.value)),c=n(o.value);-1!==u&&-1!==c&&(l=o)}if(!l)for(var d=r.tail;d;){var h=d;if(d=d.previous,h){var p=this.mirror.getId(O.parentNode(h.value));if(-1===n(h.value))continue;if(-1!==p){l=h;break}var f=h.value,m=O.parentNode(f);if(m&&m.nodeType===Node.DOCUMENT_FRAGMENT_NODE){var v=O.host(m);if(-1!==this.mirror.getId(v)){l=h;break}}}}if(!l){for(;r.head;)r.removeNode(r.head.value);break}o=l.previous,r.removeNode(l.value),i(l.value)}var g={texts:this.texts.map((e=>{var t=e.node,r=O.parentNode(t);return r&&"TEXTAREA"===r.tagName&&this.genTextAreaValueMutation(r),{id:this.mirror.getId(t),value:e.value}})).filter((e=>!t.has(e.id))).filter((e=>this.mirror.has(e.id))),attributes:this.attributes.map((e=>{var t=e.attributes;if("string"==typeof t.style){var r=JSON.stringify(e.styleDiff),n=JSON.stringify(e._unchangedStyles);r.length<t.style.length&&(r+n).split("var(").length===t.style.split("var(").length&&(t.style=e.styleDiff)}return{id:this.mirror.getId(e.node),attributes:t}})).filter((e=>!t.has(e.id))).filter((e=>this.mirror.has(e.id))),removes:this.removes,adds:e};(g.texts.length||g.attributes.length||g.removes.length||g.adds.length)&&(this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.removesSubTreeCache=new Set,this.movedMap={},this.mutationCb(g))}},this.bufferBelongsToIframe=e=>this.doc===e.contentDocument,this.genTextAreaValueMutation=e=>{var t=this.attributeMap.get(e);t||(t={node:e,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(t),this.attributeMap.set(e,t));var r=Array.from(O.childNodes(e),(e=>O.textContent(e)||"")).join("");t.attributes.value=D({element:e,maskInputOptions:this.maskInputOptions,tagName:e.tagName,type:P(e),value:r,maskInputFn:this.maskInputFn})},this.processMutation=e=>{if(!vr(e.target,this.mirror,this.slimDOMOptions))switch(e.type){case"characterData":var t=O.textContent(e.target);mr(e.target,this.blockClass,this.blockSelector,!1)||t===e.oldValue||this.texts.push({value:ae(e.target,this.maskTextClass,this.maskTextSelector,!0)&&t?this.maskTextFn?this.maskTextFn(t,fr(e.target)):t.replace(/[\S]/g,"*"):t,node:e.target});break;case"attributes":var r=e.target,n=e.attributeName,i=e.target.getAttribute(n);if("value"===n){var a=P(r);i=D({element:r,maskInputOptions:this.maskInputOptions,tagName:r.tagName,type:a,value:i,maskInputFn:this.maskInputFn})}if(mr(e.target,this.blockClass,this.blockSelector,!1)||i===e.oldValue)return;var s=this.attributeMap.get(e.target);if("IFRAME"===r.tagName&&"src"===n&&!this.keepIframeSrcFn(i)){if(r.contentDocument)return;n="rr_src"}if(s||(s={node:e.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(s),this.attributeMap.set(e.target,s)),"type"===n&&"INPUT"===r.tagName&&"password"===(e.oldValue||"").toLowerCase()&&r.setAttribute("data-rr-is-password","true"),!ne(r.tagName,n))if(s.attributes[n]=re(this.doc,L(r.tagName),L(n),i,r,this.dataURLOptions),"style"===n){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch(e){this.unattachedDoc=this.doc}var o=this.unattachedDoc.createElement("span");for(var l of(e.oldValue&&(o.style.cssText=e.oldValue),Array.from(r.style))){var u=r.style.getPropertyValue(l),c=r.style.getPropertyPriority(l);u!==o.style.getPropertyValue(l)||c!==o.style.getPropertyPriority(l)?s.styleDiff[l]=""===c?u:[u,c]:s._unchangedStyles[l]=[u,c]}for(var d of Array.from(o.style))""===r.style.getPropertyValue(d)&&(s.styleDiff[d]=!1)}else"open"===n&&"DIALOG"===r.tagName&&(r.matches("dialog:modal")?s.attributes.rr_open_mode="modal":s.attributes.rr_open_mode="non-modal");break;case"childList":if(mr(e.target,this.blockClass,this.blockSelector,!0))return;if("TEXTAREA"===e.target.tagName)return void this.genTextAreaValueMutation(e.target);e.addedNodes.forEach((t=>this.genAdds(t,e.target))),e.removedNodes.forEach((t=>{var r=this.mirror.getId(t),n=E(e.target)?this.mirror.getId(O.host(e.target)):this.mirror.getId(e.target);mr(e.target,this.blockClass,this.blockSelector,!1)||vr(t,this.mirror,this.slimDOMOptions)||!function(e,t){return-1!==t.getId(e)}(t,this.mirror)||(this.addedSet.has(t)?(Nr(this.addedSet,t),this.droppedSet.add(t)):this.addedSet.has(e.target)&&-1===r||gr(e.target,this.mirror)||(this.movedSet.has(t)&&this.movedMap[Er(r,n)]?Nr(this.movedSet,t):(this.removes.push({parentId:n,id:r,isShadow:!(!E(e.target)||!R(e.target))||void 0}),function(e,t){for(var r=[e];r.length;){var n=r.pop();t.has(n)||(t.add(n),O.childNodes(n).forEach((e=>r.push(e))))}}(t,this.removesSubTreeCache))),this.mapRemoves.push(t))}))}},this.genAdds=(e,t)=>{if(!this.processedNodeManager.inOtherBuffer(e,this)){if(this.addedSet.has(e))return this.addedSet.delete(e),void this.addedSet.add(e);if(!this.movedSet.has(e)){if(this.mirror.hasNode(e)){if(vr(e,this.mirror,this.slimDOMOptions))return;this.movedSet.add(e);var r=null;t&&this.mirror.hasNode(t)&&(r=this.mirror.getId(t)),r&&-1!==r&&(this.movedMap[Er(this.mirror.getId(e),r)]=!0)}else this.addedSet.add(e),this.droppedSet.delete(e);mr(e,this.blockClass,this.blockSelector,!1)||(O.childNodes(e).forEach((e=>this.genAdds(e))),Sr(e)&&O.childNodes(O.shadowRoot(e)).forEach((t=>{this.processedNodeManager.add(t,this),this.genAdds(t,e)})))}}}}init(e){["mutationCb","blockClass","blockSelector","maskTextClass","maskTextSelector","inlineStylesheet","maskInputOptions","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","canvasMaskingConfigured","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager"].forEach((t=>{this[t]=e[t]})),this.canvasManager.acquire()}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.releaseCanvasManager()}releaseCanvasManager(){this.canvasManagerReleased||(this.canvasManagerReleased=!0,this.canvasManager.reset())}bufferDoc(){return this.doc}destroy(){for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift())}}function Nr(e,t){e.delete(t),O.childNodes(t).forEach((t=>Nr(e,t)))}function Ar(e,t,r){return 0!==e.size&&function(e,t,r){var n=O.parentNode(t);return!!n&&e.has(n)}(e,t)}function Tr(e,t){return 0!==e.size&&Dr(e,t)}function Dr(e,t){var r=O.parentNode(t);return!!r&&(!!e.has(r)||Dr(e,r))}function Lr(e){xr=e}function Fr(){xr=void 0}var Pr=e=>xr?function(){try{return e(...arguments)}catch(e){if(xr&&!0===xr(e))return;throw e}}:e,jr=[];function Br(e){try{if("composedPath"in e){var t=e.composedPath();if(t.length)return t[0]}else if("path"in e&&e.path.length)return e.path[0]}catch(e){}return e&&e.target}function zr(e,t){var r=s(),n=new Rr;jr.push(n),r.add((()=>{var e=jr.indexOf(n);-1!==e&&jr.splice(e,1)})),r.add((()=>n.destroy())),r.add((()=>n.reset()));try{n.init(e);var i=new(M())(Pr(n.processMutations.bind(n)));r.add((()=>i.disconnect()));var a={attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0};return e.attributeFilter&&e.attributeFilter.length>0&&(a.attributeFilter=e.attributeFilter),i.observe(t,a),{observer:i,buffer:n}}catch(e){throw r.close(),e}}function Hr(e){var t=e.scrollCb,r=e.doc,n=e.mirror,i=e.blockClass,a=e.blockSelector,s=e.sampling,l=!0,u=new Map,c=e=>{if(l){var s=Br(e);if(s&&!mr(s,i,a,!0)){var o,c,d=n.getId(s);if(s===r&&r.defaultView){var h=dr(r.defaultView);o=h.left,c=h.top}else o=s.scrollLeft,c=s.scrollTop;var p=o+","+c;u.get(d)!==p&&(u.set(d,p),t({id:d,x:o,y:c}))}}},d=Pr(lr(Pr((e=>c(e))),s.scroll||100));return o((e=>{e.add((()=>{l=!1})),e.add(nr("scroll",d,r)),"onscrollend"in r&&e.add(nr("scrollend",Pr(c),r))}))}function Ur(e,t){for(var r=jr.length-1;r>=0;r--){var n=jr[r];if(n){var i=n.bufferBelongsToIframe(e);!i&&t&&t.has(n.bufferDoc())&&(i=!0),i&&(n.reset(),jr.splice(r,1))}}}var Wr=["INPUT","TEXTAREA","SELECT"],qr=new WeakMap;function Gr(e){return function e(t,r){if(Yr("CSSGroupingRule")&&t.parentRule instanceof CSSGroupingRule||Yr("CSSMediaRule")&&t.parentRule instanceof CSSMediaRule||Yr("CSSSupportsRule")&&t.parentRule instanceof CSSSupportsRule||Yr("CSSConditionRule")&&t.parentRule instanceof CSSConditionRule){var n=Array.from(t.parentRule.cssRules).indexOf(t);return r.unshift(n),e(t.parentRule,r)}if(t.parentStyleSheet){var i=Array.from(t.parentStyleSheet.cssRules).indexOf(t);r.unshift(i)}return r}(e,[])}function Kr(e,t,r){var n,i;return e?(e.ownerNode?n=t.getId(e.ownerNode):i=r.getId(e),{styleId:i,id:n}):{}}function Vr(e,t){var r,n,i,a=e.mirror,s=e.stylesheetManager;i="#document"===t.nodeName?a.getId(t):a.getId(O.host(t));var o="#document"===t.nodeName?null==(r=t.defaultView)?void 0:r.Document:null==(n=t.ownerDocument)||null==(n=n.defaultView)?void 0:n.ShadowRoot,l=null!=o&&o.prototype?Object.getOwnPropertyDescriptor(null==o?void 0:o.prototype,"adoptedStyleSheets"):void 0;return null!==i&&-1!==i&&o&&l?(Object.defineProperty(t,"adoptedStyleSheets",{configurable:l.configurable,enumerable:l.enumerable,get(){var e;return null==(e=l.get)?void 0:e.call(this)},set(e){var t;try{var r;t=null==(r=l.set)?void 0:r.call(this,e)}catch(e){if(e&&"object"==typeof e&&"NotAllowedError"===e.name)return;throw e}if(null!==i&&-1!==i)try{s.adoptStyleSheets(e,i)}catch(e){}return t}}),Pr((()=>{Object.defineProperty(t,"adoptedStyleSheets",{configurable:l.configurable,enumerable:l.enumerable,get:l.get,set:l.set})}))):()=>{}}function Jr(e,t){void 0===t&&(t={});var n=e.doc.defaultView;return n?(function(e,t){var r=e.mutationCb,n=e.mousemoveCb,i=e.mouseInteractionCb,a=e.scrollCb,s=e.viewportResizeCb,o=e.inputCb,l=e.mediaInteractionCb,u=e.styleSheetRuleCb,c=e.styleDeclarationCb,d=e.canvasMutationCb,h=e.fontCb,p=e.selectionCb,f=e.customElementCb;e.mutationCb=function(){t.mutation&&t.mutation(...arguments),r(...arguments)},e.mousemoveCb=function(){t.mousemove&&t.mousemove(...arguments),n(...arguments)},e.mouseInteractionCb=function(){t.mouseInteraction&&t.mouseInteraction(...arguments),i(...arguments)},e.scrollCb=function(){t.scroll&&t.scroll(...arguments),a(...arguments)},e.viewportResizeCb=function(){t.viewportResize&&t.viewportResize(...arguments),s(...arguments)},e.inputCb=function(){t.input&&t.input(...arguments),o(...arguments)},e.mediaInteractionCb=function(){t.mediaInteaction&&t.mediaInteaction(...arguments),l(...arguments)},e.styleSheetRuleCb=function(){t.styleSheetRule&&t.styleSheetRule(...arguments),u(...arguments)},e.styleDeclarationCb=function(){t.styleDeclaration&&t.styleDeclaration(...arguments),c(...arguments)},e.canvasMutationCb=function(){t.canvasMutation&&t.canvasMutation(...arguments),d(...arguments)},e.fontCb=function(){t.font&&t.font(...arguments),h(...arguments)},e.selectionCb=function(){t.selection&&t.selection(...arguments),p(...arguments)},e.customElementCb=function(){t.customElement&&t.customElement(...arguments),f(...arguments)}}(e,t),o((t=>{if(t.add((()=>e.shadowDomManager.resetForDoc(e.doc))),e.recordDOM){var i=zr(e,e.doc),a=i.observer,s=i.buffer;t.add((()=>{var e=jr.indexOf(s);-1!==e&&jr.splice(e,1)})),t.add((()=>s.destroy())),t.add((()=>s.reset())),t.add((()=>a.disconnect()))}var l,h,f,m,v;for(var g of(t.add(function(e){var t=e.mousemoveCb,r=e.sampling,n=e.doc,i=e.mirror,a=!0;if(!1===r.mousemove)return()=>{};var s,l="number"==typeof r.mousemove?r.mousemove:50,c="number"==typeof r.mousemoveCallback?r.mousemoveCallback:500,d=[],h=lr(Pr((e=>{if(a){var r=Date.now()-s;t(d.map((e=>(e.timeOffset-=r,e))),e),d=[],s=null}})),c),p=Pr(lr(Pr((e=>{if(a){var t=Br(e),r=yr(e)?e.changedTouches[0]:e,n=r.clientX,o=r.clientY;s||(s=cr()),d.push({x:n,y:o,id:i.getId(t),timeOffset:cr()-s}),h("undefined"!=typeof DragEvent&&e instanceof DragEvent?u.Drag:e instanceof MouseEvent?u.MouseMove:u.TouchMove)}})),l,{trailing:!1}));return o((e=>{e.add((()=>{a=!1})),e.add(nr("mousemove",p,n)),e.add(nr("touchmove",p,n)),e.add(nr("drag",p,n))}))}(e)),t.add(function(e){var t=e.mouseInteractionCb,n=e.doc,i=e.mirror,a=e.blockClass,s=e.blockSelector,l=e.sampling,u=!0;if(!1===l.mouseInteraction)return()=>{};var h=!0===l.mouseInteraction||void 0===l.mouseInteraction?{}:l.mouseInteraction,p=null;return o((e=>{e.add((()=>{u=!1})),Object.keys(c).filter((e=>Number.isNaN(Number(e))&&!e.endsWith("_Departed")&&!1!==h[e])).forEach((o=>{var l=L(o),h=(e=>n=>{if(u){var o=Br(n);if(!mr(o,a,s,!0)){var l=null,h=e;if("pointerType"in n){switch(n.pointerType){case"mouse":l=d.Mouse;break;case"touch":l=d.Touch;break;case"pen":l=d.Pen}l===d.Touch?c[e]===c.MouseDown?h="TouchStart":c[e]===c.MouseUp&&(h="TouchEnd"):d.Pen}else yr(n)&&(l=d.Touch);null!==l?(p=l,(h.startsWith("Touch")&&l===d.Touch||h.startsWith("Mouse")&&l===d.Mouse)&&(l=null)):c[e]===c.Click&&(l=p,p=null);var f=yr(n)?n.changedTouches[0]:n;if(f){var m=i.getId(o),v=f.clientX,g=f.clientY;Pr(t)(r({type:c[h],id:m,x:v,y:g},null!==l&&{pointerType:l}))}}}})(o);if(window.PointerEvent)switch(c[o]){case c.MouseDown:case c.MouseUp:l=l.replace("mouse","pointer");break;case c.TouchStart:case c.TouchEnd:return}e.add(nr(l,h,n))}))}))}(e)),t.add(Hr(e)),t.add((l={win:n},h=e.viewportResizeCb,f=l.win,m=-1,v=-1,nr("resize",Pr(lr(Pr((()=>{var e=hr(),t=pr();m===e&&v===t||(h({width:Number(t),height:Number(e)}),m=e,v=t)})),200)),f))),t.add(function(e){var t=e.inputCb,n=e.doc,i=e.mirror,a=e.blockClass,s=e.blockSelector,l=e.ignoreClass,u=e.ignoreSelector,c=e.maskInputOptions,d=e.maskInputFn,h=e.sampling,p=e.userTriggeredOnInput,f=!0;function m(e){if(f){var t=Br(e),r=e.isTrusted,i=n.defaultView;if(!t||!i||t instanceof i.HTMLElement){var o=t&&t.tagName;if(t&&"OPTION"===o&&(t=O.parentElement(t)),t&&o&&!(Wr.indexOf(o)<0)&&!mr(t,a,s,!0)&&!(t.classList.contains(l)||u&&t.matches(u))){var h=t.value,m=!1,g=P(t)||"";"radio"===g||"checkbox"===g?m=t.checked:(c[o.toLowerCase()]||c[g])&&(h=D({element:t,maskInputOptions:c,tagName:o,type:g,value:h,maskInputFn:d})),v(t,p?{text:h,isChecked:m,userTriggered:r}:{text:h,isChecked:m});var y=t.name;"radio"===g&&y&&m&&n.querySelectorAll('input[type="radio"][name="'+y+'"]').forEach((e=>{if(e!==t){var r=e.value;v(e,p?{text:r,isChecked:!m,userTriggered:!1}:{text:r,isChecked:!m})}}))}}}}function v(e,n){var a=qr.get(e);if(!a||a.text!==n.text||a.isChecked!==n.isChecked){qr.set(e,n);var s=i.getId(e);Pr(t)(r({},n,{id:s}))}}return o((e=>{e.add((()=>{f=!1}));var t="last"===h.input?["change"]:["input","change"];for(var r of t)e.add(nr(r,Pr(m),n));var i=n.defaultView;if(i){var a=i.Object.getOwnPropertyDescriptor(i.HTMLInputElement.prototype,"value"),s=[[i.HTMLInputElement.prototype,"value"],[i.HTMLInputElement.prototype,"checked"],[i.HTMLSelectElement.prototype,"value"],[i.HTMLTextAreaElement.prototype,"value"],[i.HTMLSelectElement.prototype,"selectedIndex"],[i.HTMLOptionElement.prototype,"selected"]];if(a&&a.set){var o=function(t){var r=i.Object.getOwnPropertyDescriptor(t[0],t[1]);e.add((()=>{r?i.Object.defineProperty(t[0],t[1],r):Reflect.deleteProperty(t[0],t[1])})),ur(t[0],t[1],{set(){Pr(m)({target:this,isTrusted:!1})}},!1,i)};for(var l of s)o(l)}}}))}(e)),t.add(function(e){var t=e.mediaInteractionCb,r=e.blockClass,n=e.blockSelector,i=e.mirror,a=e.sampling,s=e.doc,l=!0,u=Pr((e=>lr(Pr((a=>{if(l){var s=Br(a);if(s&&!mr(s,r,n,!0)){var o=s,u=o.currentTime,c=o.volume,d=o.muted,h=o.playbackRate,p=o.loop;t({type:e,id:i.getId(s),currentTime:u,volume:c,muted:d,playbackRate:h,loop:p})}}})),a.media||500)));return o((e=>{e.add((()=>{l=!1})),e.add(nr("play",u(p.Play),s)),e.add(nr("pause",u(p.Pause),s)),e.add(nr("seeked",u(p.Seeked),s)),e.add(nr("volumechange",u(p.VolumeChange),s)),e.add(nr("ratechange",u(p.RateChange),s))}))}(e)),e.recordDOM&&(t.add(function(e,t){var r=e.styleSheetRuleCb,n=e.mirror,i=e.stylesheetManager,a=t.win;return a.CSSStyleSheet&&a.CSSStyleSheet.prototype?o((e=>{var t=a.CSSStyleSheet.prototype.insertRule;e.replace(a.CSSStyleSheet.prototype,"insertRule",new Proxy(t,{apply:Pr(((e,t,a)=>{var s=a[0],o=a[1],l=Kr(t,n,i.styleMirror),u=l.id,c=l.styleId;return(u&&-1!==u||c&&-1!==c)&&r({id:u,styleId:c,adds:[{rule:s,index:o}]}),e.apply(t,a)}))})),e.replace(a.CSSStyleSheet.prototype,"addRule",(function(e,t,r){void 0===r&&(r=this.cssRules.length);var n=e+" { "+t+" }";return a.CSSStyleSheet.prototype.insertRule.apply(this,[n,r])}));var s,o,l=a.CSSStyleSheet.prototype.deleteRule;e.replace(a.CSSStyleSheet.prototype,"deleteRule",new Proxy(l,{apply:Pr(((e,t,a)=>{var s=a[0],o=Kr(t,n,i.styleMirror),l=o.id,u=o.styleId;return(l&&-1!==l||u&&-1!==u)&&r({id:l,styleId:u,removes:[{index:s}]}),e.apply(t,a)}))})),e.replace(a.CSSStyleSheet.prototype,"removeRule",(function(e){return a.CSSStyleSheet.prototype.deleteRule.apply(this,[e])})),a.CSSStyleSheet.prototype.replace&&(s=a.CSSStyleSheet.prototype.replace,e.replace(a.CSSStyleSheet.prototype,"replace",new Proxy(s,{apply:Pr(((e,t,a)=>{var s=a[0],o=Kr(t,n,i.styleMirror),l=o.id,u=o.styleId;return(l&&-1!==l||u&&-1!==u)&&r({id:l,styleId:u,replace:s}),e.apply(t,a)}))}))),a.CSSStyleSheet.prototype.replaceSync&&(o=a.CSSStyleSheet.prototype.replaceSync,e.replace(a.CSSStyleSheet.prototype,"replaceSync",new Proxy(o,{apply:Pr(((e,t,a)=>{var s=a[0],o=Kr(t,n,i.styleMirror),l=o.id,u=o.styleId;return(l&&-1!==l||u&&-1!==u)&&r({id:l,styleId:u,replaceSync:s}),e.apply(t,a)}))})));var u={};Zr("CSSGroupingRule")?u.CSSGroupingRule=a.CSSGroupingRule:(Zr("CSSMediaRule")&&(u.CSSMediaRule=a.CSSMediaRule),Zr("CSSConditionRule")&&(u.CSSConditionRule=a.CSSConditionRule),Zr("CSSSupportsRule")&&(u.CSSSupportsRule=a.CSSSupportsRule));var c={};Object.entries(u).forEach((t=>{var a=t[0],s=t[1];c[a]={insertRule:s.prototype.insertRule,deleteRule:s.prototype.deleteRule},e.replace(s.prototype,"insertRule",new Proxy(c[a].insertRule,{apply:Pr(((e,t,a)=>{var s=a[0],o=a[1],l=Kr(t.parentStyleSheet,n,i.styleMirror),u=l.id,c=l.styleId;return(u&&-1!==u||c&&-1!==c)&&r({id:u,styleId:c,adds:[{rule:s,index:[...Gr(t),o||0]}]}),e.apply(t,a)}))})),e.replace(s.prototype,"deleteRule",new Proxy(c[a].deleteRule,{apply:Pr(((e,t,a)=>{var s=a[0],o=Kr(t.parentStyleSheet,n,i.styleMirror),l=o.id,u=o.styleId;return(l&&-1!==l||u&&-1!==u)&&r({id:l,styleId:u,removes:[{index:[...Gr(t),s]}]}),e.apply(t,a)}))}))}))})):()=>{}}(e,{win:n})),t.add(Vr(e,e.doc)),t.add(function(e,t){var r=e.styleDeclarationCb,n=e.mirror,i=e.ignoreCSSAttributes,a=e.stylesheetManager,s=t.win;return o((e=>{var t=s.CSSStyleDeclaration.prototype.setProperty;e.replace(s.CSSStyleDeclaration.prototype,"setProperty",new Proxy(t,{apply:Pr(((e,s,o)=>{var l,u=o[0],c=o[1],d=o[2];if(i.has(u))return t.apply(s,[u,c,d]);var h=Kr(null==(l=s.parentRule)?void 0:l.parentStyleSheet,n,a.styleMirror),p=h.id,f=h.styleId;return(p&&-1!==p||f&&-1!==f)&&r({id:p,styleId:f,set:{property:u,value:c,priority:d},index:Gr(s.parentRule)}),e.apply(s,o)}))}));var o=s.CSSStyleDeclaration.prototype.removeProperty;e.replace(s.CSSStyleDeclaration.prototype,"removeProperty",new Proxy(o,{apply:Pr(((e,t,s)=>{var l,u=s[0];if(i.has(u))return o.apply(t,[u]);var c=Kr(null==(l=t.parentRule)?void 0:l.parentStyleSheet,n,a.styleMirror),d=c.id,h=c.styleId;return(d&&-1!==d||h&&-1!==h)&&r({id:d,styleId:h,remove:{property:u},index:Gr(t.parentRule)}),e.apply(t,s)}))}))}))}(e,{win:n})),e.collectFonts&&t.add(function(e){var t=e.fontCb,r=e.doc,n=!0,i=r.defaultView;return i?o((e=>{e.add((()=>{n=!1}));var a=new WeakMap,s=i.FontFace;e.replace(i,"FontFace",(function(e,t,r){var n=new s(e,t,r);return a.set(n,{family:e,buffer:"string"!=typeof t,descriptors:r,fontSource:"string"==typeof t?t:JSON.stringify(Array.from(new Uint8Array(t)))}),n}));var o=I(r.fonts,"add",(function(e){return function(r){return setTimeout(Pr((()=>{if(n){var e=a.get(r);e&&(t(e),a.delete(r))}})),0),e.apply(this,[r])}}));e.add(o)})):()=>{}}(e))),t.add(function(e){var t=e.doc,r=e.mirror,n=e.blockClass,i=e.blockSelector,a=e.selectionCb,s=!0,o=Pr((()=>{var e=t.getSelection();if(!(!e||s&&null!=e&&e.isCollapsed)){s=e.isCollapsed||!1;for(var o=[],l=e.rangeCount||0,u=0;u<l;u++){var c=e.getRangeAt(u),d=c.startContainer,h=c.startOffset,p=c.endContainer,f=c.endOffset;mr(d,n,i,!0)||mr(p,n,i,!0)||o.push({start:r.getId(d),startOffset:h,end:r.getId(p),endOffset:f})}a({ranges:o})}}));return o(),nr("selectionchange",o)}(e)),t.add(function(e){var t=e.doc,r=e.customElementCb,n=t.defaultView;return n&&n.customElements?I(n.customElements,"define",(function(e){return function(t,n,i){try{r({define:{name:t}})}catch(e){console.warn("Custom element callback failed for "+t)}return e.apply(this,[t,n,i])}})):()=>{}}(e)),e.plugins))t.add(g.observer(g.callback,n,g.options))}))):()=>{}}function Yr(e){return void 0!==window[e]}function Zr(e){return Boolean(void 0!==window[e]&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}class Qr{constructor(e){this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap,this.generateIdFn=e}getId(e,t,r,n){var i=r||this.getIdToRemoteIdMap(e),a=n||this.getRemoteIdToIdMap(e),s=i.get(t);return s||(s=this.generateIdFn(),i.set(t,s),a.set(s,t)),s}getIds(e,t){var r=this.getIdToRemoteIdMap(e),n=this.getRemoteIdToIdMap(e);return t.map((t=>this.getId(e,t,r,n)))}getRemoteId(e,t,r){var n=r||this.getRemoteIdToIdMap(e);return"number"!=typeof t?t:n.get(t)||-1}getRemoteIds(e,t){var r=this.getRemoteIdToIdMap(e);return t.map((t=>this.getRemoteId(e,t,r)))}reset(e){if(!e)return this.iframeIdToRemoteIdMap=new WeakMap,void(this.iframeRemoteIdToIdMap=new WeakMap);this.iframeIdToRemoteIdMap.delete(e),this.iframeRemoteIdToIdMap.delete(e)}getIdToRemoteIdMap(e){var t=this.iframeIdToRemoteIdMap.get(e);return t||(t=new Map,this.iframeIdToRemoteIdMap.set(e,t)),t}getRemoteIdToIdMap(e){var t=this.iframeRemoteIdToIdMap.get(e);return t||(t=new Map,this.iframeRemoteIdToIdMap.set(e,t)),t}}class Xr{constructor(e){this.iframes=new WeakMap,this.crossOriginIframeMap=new WeakMap,this.crossOriginIframeMirror=new Qr(Z),this.crossOriginIframeStyleMirror=void 0,this.crossOriginIframeRootIdMap=new WeakMap,this.mirror=void 0,this.mutationCb=void 0,this.wrappedEmit=void 0,this.loadListener=void 0,this.pageHideListener=void 0,this.stylesheetManager=void 0,this.recordCrossOriginIframes=void 0,this.messageHandler=void 0,this.nestedIframeListeners=new Map,this.attachedWindows=new WeakMap,this.attachedDocuments=new WeakMap,this.attachedIframes=new Map,this.loadListenerDisposers=new WeakMap,this.iframeElementsById=new Map,this.pageHideHandlers=new WeakMap,this.mutationCb=e.mutationCb,this.wrappedEmit=e.wrappedEmit,this.stylesheetManager=e.stylesheetManager,this.recordCrossOriginIframes=e.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new Qr(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=e.mirror,this.messageHandler=this.handleMessage.bind(this),this.recordCrossOriginIframes&&window.addEventListener("message",this.messageHandler)}addIframe(e){this.iframes.set(e,!0),e.contentWindow&&this.crossOriginIframeMap.set(e.contentWindow,e)}registerLoadListenerDisposer(e,t){var r=this.loadListenerDisposers.get(e);r||(r=new Set,this.loadListenerDisposers.set(e,r)),r.add(t);var n=this.mirror.getId(e);-1!==n&&this.iframeElementsById.set(n,e)}getIframeElementById(e){var t,r,n;return null!=(t=null!=(r=null==(n=this.attachedIframes.get(e))?void 0:n.element)?r:this.iframeElementsById.get(e))?t:null}forgetIframeId(e){this.attachedIframes.delete(e),this.iframeElementsById.delete(e)}disposeLoadListeners(e){var t=this.loadListenerDisposers.get(e);t&&(t.forEach((e=>ar(e))),this.loadListenerDisposers.delete(e))}removePageHideListener(e){var t=this.pageHideHandlers.get(e);t&&(t.forEach((e=>{ir(e.win,"pagehide",e.handler)})),this.pageHideHandlers.delete(e))}addLoadListener(e){this.loadListener=e}addPageHideListener(e){this.pageHideListener=e}removeLoadListener(){this.loadListener=void 0}trackIframeContent(e,t){var r=this.mirror.getId(e);return this.attachedIframes.set(r,{element:e,content:t}),r}attachIframe(e,t){var r,n=this.trackIframeContent(e,t);if(e.contentDocument){var i=this.attachedDocuments.get(e);i||(i=new Set,this.attachedDocuments.set(e,i)),i.add(e.contentDocument)}this.mutationCb({adds:[{parentId:n,nextId:null,node:t}],removes:[],texts:[],attributes:[],isAttachIframe:!0});var a=e.contentWindow;if(this.recordCrossOriginIframes&&a&&!this.nestedIframeListeners.has(a)){var s=this.handleMessage.bind(this);ar((()=>{a.addEventListener("message",s),this.nestedIframeListeners.set(a,s);var t=this.attachedWindows.get(e);t||(t=new Set,this.attachedWindows.set(e,t)),t.add(a)}))}ar((()=>{var t=e.contentWindow;if(t){var r=this.pageHideHandlers.get(e);if(r)for(var n of r)if(n.win===t)return;var i=()=>{var t;null==(t=this.pageHideListener)||t.call(this,e),e.contentDocument&&this.mirror.removeNodeFromMap(e.contentDocument),e.contentWindow&&this.crossOriginIframeMap.delete(e.contentWindow)};t.addEventListener("pagehide",i),r||(r=new Set,this.pageHideHandlers.set(e,r)),r.add({win:t,handler:i})}})),null==(r=this.loadListener)||r.call(this,e),e.contentDocument&&e.contentDocument.adoptedStyleSheets&&e.contentDocument.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(e.contentDocument.adoptedStyleSheets,this.mirror.getId(e.contentDocument))}handleMessage(e){var t=e;if("rrweb"===t.data.type&&t.origin===t.data.origin&&e.source){var r=this.crossOriginIframeMap.get(e.source);if(r){var n=this.transformCrossOriginEvent(r,t.data.event);n&&this.wrappedEmit(n,t.data.isCheckout)}}}transformCrossOriginEvent(e,t){switch(t.type){case l.FullSnapshot:this.crossOriginIframeMirror.reset(e),this.crossOriginIframeStyleMirror.reset(e),this.replaceIdOnNode(t.data.node,e);var r=t.data.node.id;return this.crossOriginIframeRootIdMap.set(e,r),this.patchRootIdOnNode(t.data.node,r),this.trackIframeContent(e,t.data.node),{timestamp:t.timestamp,type:l.IncrementalSnapshot,data:{source:u.Mutation,adds:[{parentId:this.mirror.getId(e),nextId:null,node:t.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}};case l.Meta:case l.Load:case l.DomContentLoaded:return!1;case l.Plugin:return t;case l.Custom:return this.replaceIds(t.data.payload,e,["id","parentId","previousId","nextId"]),t;case l.IncrementalSnapshot:switch(t.data.source){case u.Mutation:return t.data.adds.forEach((t=>{this.replaceIds(t,e,["parentId","nextId","previousId"]),this.replaceIdOnNode(t.node,e);var r=this.crossOriginIframeRootIdMap.get(e);r&&this.patchRootIdOnNode(t.node,r)})),t.data.removes.forEach((t=>{this.replaceIds(t,e,["parentId","id"])})),t.data.attributes.forEach((t=>{this.replaceIds(t,e,["id"])})),t.data.texts.forEach((t=>{this.replaceIds(t,e,["id"])})),t;case u.Drag:case u.TouchMove:case u.MouseMove:return t.data.positions.forEach((t=>{this.replaceIds(t,e,["id"])})),t;case u.ViewportResize:return!1;case u.MediaInteraction:case u.MouseInteraction:case u.Scroll:case u.CanvasMutation:case u.Input:return this.replaceIds(t.data,e,["id"]),t;case u.StyleSheetRule:case u.StyleDeclaration:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleId"]),t;case u.Font:return t;case u.Selection:return t.data.ranges.forEach((t=>{this.replaceIds(t,e,["start","end"])})),t;case u.AdoptedStyleSheet:var n;return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleIds"]),null==(n=t.data.styles)||n.forEach((t=>{this.replaceStyleIds(t,e,["styleId"])})),t}}return!1}replace(e,t,r,n){for(var i of n)(Array.isArray(t[i])||"number"==typeof t[i])&&(Array.isArray(t[i])?t[i]=e.getIds(r,t[i]):t[i]=e.getId(r,t[i]));return t}replaceIds(e,t,r){return this.replace(this.crossOriginIframeMirror,e,t,r)}replaceStyleIds(e,t,r){return this.replace(this.crossOriginIframeStyleMirror,e,t,r)}replaceIdOnNode(e,t){this.replaceIds(e,t,["id","rootId"]),"childNodes"in e&&e.childNodes.forEach((e=>{this.replaceIdOnNode(e,t)}))}patchRootIdOnNode(e,t){e.type===f.Document||e.rootId||(e.rootId=t),"childNodes"in e&&e.childNodes.forEach((e=>{this.patchRootIdOnNode(e,t)}))}removeIframeById(e){var t=this.attachedIframes.get(e),r=(null==t?void 0:t.element)||this.iframeElementsById.get(e)||this.mirror.getNode(e);if(this.iframeElementsById.delete(e),r){var n=r.contentWindow,i=this.attachedWindows.get(r);i&&(i.forEach((e=>{var t=this.nestedIframeListeners.get(e);t&&(ir(e,"message",t),this.nestedIframeListeners.delete(e)),this.crossOriginIframeMap.delete(e)})),this.attachedWindows.delete(r)),n&&this.nestedIframeListeners.has(n)&&(ir(n,"message",this.nestedIframeListeners.get(n)),this.nestedIframeListeners.delete(n)),n&&this.crossOriginIframeMap.delete(n),this.iframes.delete(r),this.disposeLoadListeners(r),this.removePageHideListener(r);var a=this.attachedDocuments.get(r);a&&(a.forEach((e=>{ar((()=>this.mirror.removeNodeFromMap(e)))})),ar((()=>Ur(r,a))),this.attachedDocuments.delete(r))}t&&this.attachedIframes.delete(e)}cleanupDetachedIframes(){if(0!==this.attachedIframes.size){var e=[];this.attachedIframes.forEach(((t,r)=>{this.mirror.has(r)||e.push(r)})),e.forEach((e=>this.removeIframeById(e)))}}reattachIframes(){this.attachedIframes.forEach(((e,t)=>{var r=e.content;this.mirror.has(t)?this.mutationCb({adds:[{parentId:t,nextId:null,node:r}],removes:[],texts:[],attributes:[],isAttachIframe:!0}):this.attachedIframes.delete(t)}))}destroy(){this.recordCrossOriginIframes&&ir(window,"message",this.messageHandler),this.nestedIframeListeners.forEach(((e,t)=>{ir(t,"message",e)})),this.nestedIframeListeners.clear();var e=new Set;this.iframeElementsById.forEach((t=>e.add(t))),this.attachedIframes.forEach((t=>{var r=t.element;return e.add(r)})),e.forEach((e=>{this.disposeLoadListeners(e),this.removePageHideListener(e)})),this.crossOriginIframeMirror.reset(),this.crossOriginIframeStyleMirror.reset(),this.attachedIframes.clear(),this.crossOriginIframeMap=new WeakMap,this.iframes=new WeakMap,this.crossOriginIframeRootIdMap=new WeakMap,this.loadListenerDisposers=new WeakMap,this.pageHideHandlers=new WeakMap,this.attachedDocuments=new WeakMap,this.attachedWindows=new WeakMap,this.iframeElementsById=new Map}}class _r{constructor(e){this.shadowDoms=new WeakSet,this.mutationCb=void 0,this.scrollCb=void 0,this.bypassOptions=void 0,this.mirror=void 0,this.generation={},this.documentGenerations=new WeakMap,this.cleanupFailed=!1,this.restoreHandlers=[],this.mutationCb=e.mutationCb,this.scrollCb=e.scrollCb,this.bypassOptions=e.bypassOptions,this.mirror=e.mirror,this.init()}init(){this.reset(),this.patchAttachShadow(Element,document)}addShadowRoot(e,t){var n,i;if(R(e)&&!this.shadowDoms.has(e)){this.shadowDoms.add(e);var a=null!=(n=null==(i=O.host(e))?void 0:i.ownerDocument)?n:t,o=zr(r({},this.bypassOptions,{doc:a,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this}),e),l=o.observer,u=o.buffer;this.restoreHandlers.push({doc:a,handler:()=>{var e=s();e.add((()=>{var e=jr.indexOf(u);-1!==e&&jr.splice(e,1)})),e.add((()=>u.destroy())),e.add((()=>u.releaseCanvasManager())),e.add((()=>l.disconnect())),e.close()}}),this.restoreHandlers.push({doc:a,handler:Hr(r({},this.bypassOptions,{scrollCb:this.scrollCb,doc:e,mirror:this.mirror}))});var c=this.generation,d=this.documentGenerations.get(a);d||(d={},this.documentGenerations.set(a,d));var h=setTimeout((()=>{c===this.generation&&d===this.documentGenerations.get(a)&&(e.adoptedStyleSheets&&e.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(e.adoptedStyleSheets,this.mirror.getId(O.host(e))),this.restoreHandlers.push({doc:a,handler:Vr({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},e)}))}),0);this.restoreHandlers.push({doc:a,handler:()=>clearTimeout(h)})}}observeAttachShadow(e){e.contentWindow&&e.contentDocument&&this.patchAttachShadow(e.contentWindow.Element,e.contentDocument)}patchAttachShadow(e,t){var r=this;this.restoreHandlers.push({doc:t,handler:I(e.prototype,"attachShadow",(function(e){return function(n){var i=e.call(this,n),a=O.shadowRoot(this);return a&&Mr(this)&&r.addShadowRoot(a,t),i}}))})}disposeHandlers(e){var t=s();for(var r of e){var n=r.handler;t.add(n)}try{t.close()}catch(e){this.cleanupFailed=!0}if(this.cleanupFailed)throw new i}reset(){this.generation={},this.documentGenerations=new WeakMap;var e=this.restoreHandlers;this.restoreHandlers=[],this.shadowDoms=new WeakSet,this.disposeHandlers(e)}resetForDoc(e){this.documentGenerations.set(e,{});var t=this.restoreHandlers.filter((t=>t.doc===e));this.restoreHandlers=this.restoreHandlers.filter((t=>t.doc!==e)),this.disposeHandlers(t)}}var $r="skip-frame";function en(e){if("object"!=typeof e||null===e)return!1;var t=e,r=t.x,n=t.y,i=t.width,a=t.height;return Number.isFinite(r)&&Number.isFinite(n)&&Number.isFinite(i)&&Number.isFinite(a)&&i>=0&&a>=0}for(var tn="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",rn="undefined"==typeof Uint8Array?[]:new Uint8Array(256),nn=0;nn<64;nn++)rn[tn.charCodeAt(nn)]=nn;var an=new Map,sn=(e,t,r)=>{if(e&&(un(e,t)||"object"==typeof e)){var n=function(e,t){var r=an.get(e);return r||(r=new Map,an.set(e,r)),r.has(t)||r.set(t,[]),r.get(t)}(r,e.constructor.name),i=n.indexOf(e);return-1===i&&(i=n.length,n.push(e)),i}};function on(e,t,r,n){if(e instanceof Array)return e.map((e=>on(e,t,r,n)));if(null===e)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){var i=e.constructor.name,a=function(e){var t,r=new Uint8Array(e),n=r.length,i="";for(t=0;t<n;t+=3)i+=tn[r[t]>>2],i+=tn[(3&r[t])<<4|r[t+1]>>4],i+=tn[(15&r[t+1])<<2|r[t+2]>>6],i+=tn[63&r[t+2]];return n%3==2?i=i.substring(0,i.length-1)+"=":n%3==1&&(i=i.substring(0,i.length-2)+"=="),i}(e);return{rr_type:i,base64:a}}return e instanceof DataView?{rr_type:e.constructor.name,args:[on(e.buffer,t,r,n),e.byteOffset,e.byteLength]}:e instanceof HTMLImageElement?{rr_type:e.constructor.name,src:e.src}:e instanceof HTMLCanvasElement?{rr_type:"HTMLImageElement",src:e.toDataURL(n.type,n.quality)}:e instanceof ImageData?{rr_type:e.constructor.name,args:[on(e.data,t,r,n),e.width,e.height]}:un(e,t)||"object"==typeof e?{rr_type:e.constructor.name,index:sn(e,t,r)}:e}var ln=(e,t,r,n)=>e.map((e=>on(e,t,r,n))),un=(e,t)=>{var r=["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"].filter((e=>"function"==typeof t[e]));return Boolean(r.find((r=>e instanceof t[r])))},cn=["webgl","webgl2"];function dn(e){return"nodeType"in e}function hn(e,t,n,i){var a=[];try{if(i){var s=function(e,t,n){var i=e.GPUCanvasContext;if(null!=i&&i.prototype&&"function"==typeof i.prototype.configure)return I(i.prototype,"configure",(function(i){return function(a){var s=function(e){var t=e.canvas;return t&&"object"==typeof t?t:null}(this);if(!s||dn(s)&&mr(s,t,n,!0))return i.call(this,a);dn(s)&&!("__context"in s)&&(s.__context="webgpu");var o=function(e){var t=e.GPUTextureUsage;return t?t.COPY_SRC|t.RENDER_ATTACHMENT:null}(e);return null!==o&&a?i.call(this,r({},a,{usage:"number"==typeof a.usage?a.usage|o:o})):i.call(this,a)}}))}(e,t,n);s&&a.push(s)}var o=I(e.HTMLCanvasElement.prototype,"getContext",(function(e){return function(r){for(var a=function(e){return"experimental-webgl"===e?"webgl":e}(r),s=arguments.length,o=new Array(s>1?s-1:0),l=1;l<s;l++)o[l-1]=arguments[l];if(!mr(this,t,n,!0)&&("__context"in this||(this.__context=a),i&&cn.includes(a)))if(o[0]&&"object"==typeof o[0]){var u=o[0];u.preserveDrawingBuffer||(u.preserveDrawingBuffer=!0)}else o.splice(0,1,{preserveDrawingBuffer:!0});return e.apply(this,[r,...o])}}));a.push(o)}catch(e){console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return()=>{a.forEach((e=>e()))}}function pn(e,t,r,n,i,a,s){var o=[],l=Object.getOwnPropertyNames(e),u=function(l){if(["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(l))return 0;try{if("function"!=typeof e[l])return 0;var u=I(e,l,(function(e){return function(){for(var o=arguments.length,u=new Array(o),c=0;c<o;c++)u[c]=arguments[c];var d=e.apply(this,u);if(sn(d,a,this),"tagName"in this.canvas&&!mr(this.canvas,n,i,!0)){var h=ln(u,a,this,s),p={type:t,property:l,args:h};r(this.canvas,p)}return d}}));o.push(u)}catch(n){var c=ur(e,l,{set(e){r(this.canvas,{type:t,property:l,args:[e],setter:!0})}});o.push(c)}};for(var c of l)u(c);return o}function fn(){const e=URL.createObjectURL(new Blob(['!function(){"use strict";function e(e,t,a,n,r,i,o){try{var s=e[i](o),l=s.value}catch(e){return void a(e)}s.done?t(l):Promise.resolve(l).then(n,r)}for(var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a="undefined"==typeof Uint8Array?[]:new Uint8Array(256),n=0;n<64;n++)a[t.charCodeAt(n)]=n;var r=function(e){var a,n=new Uint8Array(e),r=n.length,i="";for(a=0;a<r;a+=3)i+=t[n[a]>>2],i+=t[(3&n[a])<<4|n[a+1]>>4],i+=t[(15&n[a+1])<<2|n[a+2]>>6],i+=t[63&n[a+2]];return r%3==2?i=i.substring(0,i.length-1)+"=":r%3==1&&(i=i.substring(0,i.length-2)+"=="),i},i=new Map,o=new Map,s=new Map;function l(e){for(var t=new Uint32Array(e.buffer,e.byteOffset,e.byteLength>>>2),a=2166136261,n=2654435769,r=0;r<t.length;r++)a^=t[r],a=Math.imul(a,16777619),n^=t[r],n=Math.imul(n,2246822507);return(a>>>0).toString(16)+":"+(n>>>0).toString(16)}var f=self,d=null,u=null;f.onmessage=function(){var t,a=(t=function*(e){if("resetFrameDedup"in e.data)i.clear();else if("forgetFrame"in e.data)i.delete(e.data.forgetFrame);else{if(!("OffscreenCanvas"in globalThis))return e.data.bitmap.close(),f.postMessage({id:e.data.id});var t=e.data,a=t.id,n=t.bitmap,g=t.width,c=t.height,h=t.displayWidth,v=t.displayHeight,y=t.dataURLOptions,p=t.maskRegions;try{var w;d&&d.width===g&&d.height===c||(d=new OffscreenCanvas(g,c),u=d.getContext("2d",{willReadFrequently:!0}));var m=u;if(m.clearRect(0,0,g,c),m.drawImage(n,0,0),n.close(),p)for(var b of(m.fillStyle="black",p))m.fillRect(b.x,b.y,b.width,b.height);var M=function(e,t,a){return e+"x"+t+":"+l(a)}(g,c,m.getImageData(0,0,g,c).data),A=null!=(w=i.get(a))?w:function(e,t){var a=e*t,n=o.get(a);return void 0===n&&(n=l(new Uint8ClampedArray(4*a)),o.set(a,n)),e+"x"+t+":"+n}(g,c);if(M===A){var U=s.get(a);if(!(void 0!==p&&void 0!==U&&Date.now()-U>=3e4))return f.postMessage({id:a})}var x=yield d.convertToBlob(y),C=yield x.arrayBuffer();f.postMessage({id:a,type:x.type,base64:r(C),displayWidth:h,displayHeight:v}),i.set(a,M),s.set(a,Date.now())}catch(e){f.postMessage({id:a})}}},function(){var a=this,n=arguments;return new Promise((function(r,i){var o=t.apply(a,n);function s(t){e(o,r,i,s,l,"next",t)}function l(t){e(o,r,i,s,l,"throw",t)}s(void 0)}))});return function(e){return a.apply(this,arguments)}}()}();\n'],{type:"text/javascript"}));try{return new Worker(e)}finally{URL.revokeObjectURL(e)}}var mn,vn,gn,yn=["type"];class wn{onFullSnapshot(){var e;null==(e=this.resetFrameDedup)||e.call(this)}acquire(){this.refCount+=1}reset(){this.refCount>0&&(this.refCount-=1),this.refCount>0||this.teardown()}teardown(){this.torndown||(this.torndown=!0,this.pendingCanvasMutations.clear(),this.resetObservers&&this.resetObservers(),null!==this.rafIdTimestamp&&(cancelAnimationFrame(this.rafIdTimestamp),this.rafIdTimestamp=null),null!==this.rafIdFlush&&(cancelAnimationFrame(this.rafIdFlush),this.rafIdFlush=null))}freeze(){this.frozen=!0}unfreeze(){this.frozen=!1}lock(){this.locked=!0}unlock(){this.locked=!1}constructor(e){this.pendingCanvasMutations=new Map,this.rafStamps={latestId:0,invokeId:null},this.mirror=void 0,this.mutationCb=void 0,this.resetObservers=void 0,this.frozen=!1,this.locked=!1,this.rafIdTimestamp=null,this.rafIdFlush=null,this.refCount=0,this.torndown=!1,this.resetFrameDedup=null,this.processMutation=(e,t)=>{!(this.rafStamps.invokeId&&this.rafStamps.latestId!==this.rafStamps.invokeId)&&this.rafStamps.invokeId||(this.rafStamps.invokeId=this.rafStamps.latestId),this.pendingCanvasMutations.has(e)||this.pendingCanvasMutations.set(e,[]),this.pendingCanvasMutations.get(e).push(t)};var t=e.sampling,r=void 0===t?"all":t,n=e.win,i=e.blockClass,a=e.blockSelector,s=e.recordCanvas,o=e.dataURLOptions,l=e.resolutionScale,u=e.canvasMasking;this.mutationCb=e.mutationCb,this.mirror=e.mirror,s&&"all"===r&&this.initCanvasMutationObserver(n,i,a,o),s&&"number"==typeof r&&this.initCanvasFPSObserver(r,n,i,a,{dataURLOptions:o,resolutionScale:l,canvasMasking:u})}initCanvasFPSObserver(e,r,n,i,a){var s=this;if("OffscreenCanvas"in r){var o,l="number"==typeof a.resolutionScale&&Number.isFinite(a.resolutionScale)?Math.min(1,Math.max(.1,a.resolutionScale)):1,u=hn(r,n,i,!0),c=new Map;try{o=new fn}catch(e){return}var d=!1;o.onerror=()=>{d=!0,cancelAnimationFrame(f),null==o.terminate||o.terminate(),this.resetFrameDedup=null},this.resetFrameDedup=()=>{o.postMessage({resetFrameDedup:!0})};var p=new Map;o.onmessage=e=>{var t=e.data.id;if(c.set(t,!1),"base64"in e.data){var r=e.data,n=r.base64,i=r.type,a=r.displayWidth,s=r.displayHeight,u=this.mutationCb({id:t,type:h["2D"],commands:[{property:"clearRect",args:[0,0,a,s]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:n}],type:i}]},0,0,a,s]}],displayWidth:a,displayHeight:s});if("resend"===u)o.postMessage({forgetFrame:t});else if("shrink"===u){var d,f=null!=(d=p.get(t))?d:l;p.set(t,f<=.1?0:Math.max(.1,f/2))}}};var f,m=1e3/e,v=0,g=e=>{var u,h;d||(v&&e-v<m||(v=e,(u=[],h=e=>{try{e.querySelectorAll("canvas").forEach((e=>{mr(e,n,i,!0)||u.push(e)})),e.querySelectorAll("*").forEach((e=>{e.shadowRoot&&h(e.shadowRoot)}))}catch(e){}},h(r.document),u).forEach(function(){var e=t((function*(e){var t,r=s.mirror.getId(e);if(!c.get(r)){var n=null!=(t=p.get(r))?t:l;if(0!==n&&0!==e.width&&0!==e.height){c.set(r,!0);try{if(["webgl","webgl2"].includes(e.__context)){var i,u=e.getContext(e.__context);if(null!=u&&null!=u.isContextLost&&u.isContextLost())return void c.set(r,!1);!1===(null==u||null==(i=u.getContextAttributes())?void 0:i.preserveDrawingBuffer)&&u.clear(u.COLOR_BUFFER_BIT)}var d=e.clientWidth||e.width,h=e.clientHeight||e.height,f=Math.max(1,Math.round(d*n)),m=Math.max(1,Math.round(h*n)),v=function(e,t,r,n,i,a){if(e&&"function"==typeof e.regionsFn){var s;try{s=e.regionsFn(t)}catch(e){return $r}if(void 0!==s){if(!Array.isArray(s)||!s.every(en))return $r;var o=r/i,l=n/a;return s.filter((e=>e.width>0&&e.height>0)).map((e=>{var t=Math.floor(e.x*o),r=Math.floor(e.y*l);return{x:t,y:r,width:Math.ceil((e.x+e.width)*o)-t,height:Math.ceil((e.y+e.height)*l)-r}}))}}}(a.canvasMasking,e,f,m,d,h);if(v===$r)return void c.set(r,!1);var g=yield createImageBitmap(e,n<1?{resizeWidth:f,resizeHeight:m,resizeQuality:"medium"}:{resizeWidth:f,resizeHeight:m});o.postMessage({id:r,bitmap:g,width:f,height:m,displayWidth:d,displayHeight:h,dataURLOptions:a.dataURLOptions,maskRegions:v},[g])}catch(e){c.set(r,!1)}}}}));return function(t){return e.apply(this,arguments)}}())),f=requestAnimationFrame(g))};f=requestAnimationFrame(g),this.resetObservers=()=>{u(),cancelAnimationFrame(f),null==o.terminate||o.terminate(),this.resetFrameDedup=null}}}initCanvasMutationObserver(e,t,r,n){this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher();var i=hn(e,t,r,!1),a=function(e,t,r,n,i){var a=[],s=Object.getOwnPropertyNames(t.CanvasRenderingContext2D.prototype),o=function(s){try{if("function"!=typeof t.CanvasRenderingContext2D.prototype[s])return 1;var o=I(t.CanvasRenderingContext2D.prototype,s,(function(a){return function(){for(var o=arguments.length,l=new Array(o),u=0;u<o;u++)l[u]=arguments[u];return mr(this.canvas,r,n,!0)||setTimeout((()=>{var r=ln(l,t,this,i);e(this.canvas,{type:h["2D"],property:s,args:r})}),0),a.apply(this,l)}}));a.push(o)}catch(r){var l=ur(t.CanvasRenderingContext2D.prototype,s,{set(t){e(this.canvas,{type:h["2D"],property:s,args:[t],setter:!0})}});a.push(l)}};for(var l of s)o(l);return()=>{a.forEach((e=>e()))}}(this.processMutation.bind(this),e,t,r,n),s=function(e,t,r,n,i){var a=[];return void 0!==t.WebGLRenderingContext&&a.push(...pn(t.WebGLRenderingContext.prototype,h.WebGL,e,r,n,t,i)),void 0!==t.WebGL2RenderingContext&&a.push(...pn(t.WebGL2RenderingContext.prototype,h.WebGL2,e,r,n,t,i)),()=>{a.forEach((e=>e()))}}(this.processMutation.bind(this),e,t,r,n);this.resetObservers=()=>{i(),a(),s()}}startPendingCanvasMutationFlusher(){this.rafIdFlush=requestAnimationFrame((()=>this.flushPendingCanvasMutations()))}startRAFTimestamping(){var e=t=>{this.rafStamps.latestId=t,this.rafIdTimestamp=requestAnimationFrame(e)};this.rafIdTimestamp=requestAnimationFrame(e)}flushPendingCanvasMutations(){this.pendingCanvasMutations.forEach(((e,t)=>{var r=this.mirror.getId(t);this.flushPendingCanvasMutationFor(t,r)})),this.rafIdFlush=requestAnimationFrame((()=>this.flushPendingCanvasMutations()))}flushPendingCanvasMutationFor(e,t){if(!this.frozen&&!this.locked){var r=this.pendingCanvasMutations.get(e);if(r&&-1!==t){var i=r.map((e=>(e.type,n(e,yn)))),a=r[0].type;this.mutationCb({id:t,type:a,commands:i}),this.pendingCanvasMutations.delete(e)}}}}class bn{constructor(e){this.trackedLinkElements=new WeakSet,this.mutationCb=void 0,this.adoptedStyleSheetCb=void 0,this.styleMirror=new kr,this.mutationCb=e.mutationCb,this.adoptedStyleSheetCb=e.adoptedStyleSheetCb}attachLinkElement(e,t){"_cssText"in t.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:t.id,attributes:t.attributes}]}),this.trackLinkElement(e)}trackLinkElement(e){this.trackedLinkElements.has(e)||(this.trackedLinkElements.add(e),this.trackStylesheetInLinkElement(e))}adoptStyleSheets(e,t){var r=this;if(0!==e.length){var n={id:t,styleIds:[]},i=[],a=function(e){var t;r.styleMirror.has(e)?t=r.styleMirror.getId(e):(t=r.styleMirror.add(e),i.push({styleId:t,rules:Array.from(e.rules||CSSRule,((t,r)=>({rule:A(t,e.href),index:r})))})),n.styleIds.push(t)};for(var s of e)a(s);i.length>0&&(n.styles=i),this.adoptedStyleSheetCb(n)}}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet,le()}trackStylesheetInLinkElement(e){}}class Sn{constructor(){this.nodeMap=new WeakMap,this.active=!1}inOtherBuffer(e,t){var r=this.nodeMap.get(e);return r&&Array.from(r).some((e=>e!==t))}add(e,t){this.active||(this.active=!0,requestAnimationFrame((()=>{this.nodeMap=new WeakMap,this.active=!1}))),this.nodeMap.set(e,(this.nodeMap.get(e)||new Set).add(t))}destroy(){}}var kn=!1;try{if(2!==Array.from([1],(e=>2*e))[0]){var Cn,Mn=document.createElement("iframe");document.body.appendChild(Mn),Array.from=(null==(Cn=Mn.contentWindow)?void 0:Cn.Array.from)||Array.from,document.body.removeChild(Mn)}}catch(e){console.debug("Unable to override Array.from",e)}var In=new T,On=new Set([u.Mutation,u.MediaInteraction,u.StyleSheetRule,u.CanvasMutation,u.Font,u.Log,u.StyleDeclaration,u.AdoptedStyleSheet]);function xn(e){void 0===e&&(e={});var t=e,n=t.emit,i=t.checkoutEveryNms,o=t.checkoutEveryNth,c=t.blockClass,d=void 0===c?"rr-block":c,h=t.blockSelector,p=void 0===h?null:h,f=t.ignoreClass,m=void 0===f?"rr-ignore":f,v=t.ignoreSelector,g=void 0===v?null:v,y=t.maskTextClass,w=void 0===y?"rr-mask":y,b=t.maskTextSelector,S=void 0===b?null:b,k=t.inlineStylesheet,C=void 0===k||k,M=t.maskAllInputs,I=t.maskInputOptions,x=t.slimDOMOptions,E=t.maskInputFn,R=t.maskTextFn,N=t.hooks,A=t.packFn,D=t.sampling,L=void 0===D?{}:D,F=t.dataURLOptions,P=void 0===F?{}:F,j=t.canvasResolutionScale,B=t.canvasMasking,z=t.mousemoveWait,H=t.recordDOM,U=void 0===H||H,W=t.recordCanvas,q=void 0!==W&&W,G=t.recordCrossOriginIframes,K=void 0!==G&&G,V=t.recordAfter,J=void 0===V?"DOMContentLoaded"===e.recordAfter?e.recordAfter:"load":V,Y=t.userTriggeredOnInput,Z=void 0!==Y&&Y,Q=t.collectFonts,X=void 0!==Q&&Q,_=t.inlineImages,$=void 0!==_&&_,ee=t.plugins,te=t.keepIframeSrcFn,re=void 0===te?()=>!1:te,ne=t.ignoreCSSAttributes,ie=void 0===ne?new Set([]):ne,ae=t.attributeFilter,se=t.errorHandler,oe=r({type:"image/webp",quality:.4,maxBase64ImageLength:1048576},P),ue=!K||window.parent===window,ce=!1;if(!ue)try{window.parent.document&&(ce=!1)}catch(e){ce=!0}if(ue&&!n)throw new Error("emit function is required");if(!ue&&!ce)return()=>{};void 0!==z&&void 0===L.mousemove&&(L.mousemove=z);var de,he=s(),me=!1,ve=[],ge=()=>{me=!0,kn=!1,he.close()},ye=e=>{me?he.add(e):ve.push(e)},we=e=>{a(e)&&he.poison(),ge(),se?se(e):console.warn(e)};try{Lr(se),he.add(Fr),he.add((()=>In.reset())),he.add(le),In.reset();var be,Se=!0===M?{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}:void 0!==I?I:{password:!0},ke=fe(void 0!==x&&x);void 0===de&&(de=window),"NodeList"in de&&!de.NodeList.prototype.forEach&&(de.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in de&&!de.DOMTokenList.prototype.forEach&&(de.DOMTokenList.prototype.forEach=Array.prototype.forEach);var Ce,Me,Ie=0,Oe=new Map,xe=e=>{for(var t of ee||[])t.eventProcessor&&(e=t.eventProcessor(e));return A&&!ce&&(e=A(e)),e},Ee=void 0,Re=(e,t)=>{var r;if(!me){var a=e;if(a.timestamp=cr(),null==(r=jr[0])||!r.isFrozen()||a.type===l.FullSnapshot||a.type===l.IncrementalSnapshot&&On.has(a.data.source)||jr.forEach((e=>e.unfreeze())),ue)Ee=null==n?void 0:n(xe(a),t);else if(ce){var s={type:"rrweb",event:xe(a),origin:window.location.origin,isCheckout:t};window.parent.postMessage(s,"*")}if(a.type===l.FullSnapshot)be=a,Ie=0;else if(a.type===l.IncrementalSnapshot){if(a.data.source===u.Mutation&&a.data.isAttachIframe)return;Ie++;var c=o&&Ie>=o,d=i&&a.timestamp-be.timestamp>i;(c||d)&&ze(!0)}}};mn=Re;var Ne=e=>{if(e.removes&&e.removes.length>0){var t=e.adds.length>0?new Set(e.adds.map((e=>e.node.id))):null,n=new Set;if(e.adds.length>0)for(var i of e.adds){var a=In.getNode(i.node.id);a&&"IFRAME"===a.nodeName&&n.add(a)}e.removes.forEach((e=>{var r=e.id;if(!t||!t.has(r)){var i=Le.getIframeElementById(r);i&&n.has(i)?Le.forgetIframeId(r):(null==Ce||Ce(r),Le.removeIframeById(r))}})),null==Me||Me(),Le.cleanupDetachedIframes()}Re({type:l.IncrementalSnapshot,data:r({source:u.Mutation},e)})},Ae=e=>Re({type:l.IncrementalSnapshot,data:r({source:u.Scroll},e)}),Te=e=>{Ee=void 0,Re({type:l.IncrementalSnapshot,data:r({source:u.CanvasMutation},e)});var t=Ee;return Ee=void 0,"resend"===t||"shrink"===t?t:void 0},De=new bn({mutationCb:Ne,adoptedStyleSheetCb:e=>Re({type:l.IncrementalSnapshot,data:r({source:u.AdoptedStyleSheet},e)})});he.add((()=>De.reset()));var Le=new Xr({mirror:In,mutationCb:Ne,stylesheetManager:De,recordCrossOriginIframes:K,wrappedEmit:Re});for(var Fe of(he.add((()=>Le.destroy())),ee||[]))Fe.getMirror&&Fe.getMirror({nodeMirror:In,crossOriginIframeMirror:Le.crossOriginIframeMirror,crossOriginIframeStyleMirror:Le.crossOriginIframeStyleMirror});var Pe=new Sn;he.add((()=>Pe.destroy()));var je=null==B?void 0:B.configured;gn=new wn({recordCanvas:q,mutationCb:Te,win:window,blockClass:d,blockSelector:p,mirror:In,sampling:L.canvas,dataURLOptions:oe,resolutionScale:j,canvasMasking:B}),he.add((()=>gn.reset()));var Be=new _r({mutationCb:Ne,scrollCb:Ae,bypassOptions:{blockClass:d,blockSelector:p,maskTextClass:w,maskTextSelector:S,inlineStylesheet:C,maskInputOptions:Se,dataURLOptions:oe,maskTextFn:R,maskInputFn:E,recordCanvas:q,canvasMaskingConfigured:je,inlineImages:$,sampling:L,slimDOMOptions:ke,iframeManager:Le,stylesheetManager:De,canvasManager:gn,keepIframeSrcFn:re,processedNodeManager:Pe,attributeFilter:ae},mirror:In});he.add((()=>Be.reset()));var ze=function(e){if(void 0===e&&(e=!1),!me&&U){Re({type:l.Meta,data:{href:window.location.href,width:pr(),height:hr()}},e),De.reset(),Be.init(),jr.forEach((e=>e.lock()));var t=function(e,t){var r=t||{},n=r.mirror,i=void 0===n?new T:n,a=r.blockClass,s=r.blockSelector,o=r.maskTextClass,l=r.maskTextSelector,u=r.inlineStylesheet,c=r.inlineImages,d=void 0!==c&&c,h=r.recordCanvas,p=void 0!==h&&h,f=r.canvasMaskingConfigured,m=r.maskAllInputs,v=void 0!==m&&m,g=r.slimDOM,y=r.dataURLOptions,w=r.preserveWhiteSpace,b=r.onSerialize,S=r.onIframeLoad,k=r.iframeLoadTimeout,C=r.onIframeListenerRegistered,M=r.onStylesheetLoad,I=r.stylesheetLoadTimeout,O=r.keepIframeSrcFn,x=void 0===O?()=>!1:O,E=r.maxDepth;return pe(e,{doc:e,mirror:i,blockClass:void 0===a?"rr-block":a,blockSelector:void 0===s?null:s,maskTextClass:void 0===o?"rr-mask":o,maskTextSelector:void 0===l?null:l,skipChild:!1,inlineStylesheet:void 0===u||u,maskInputOptions:!0===v?{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}:!1===v?{password:!0}:v,maskTextFn:r.maskTextFn,maskInputFn:r.maskInputFn,slimDOMOptions:fe(void 0!==g&&g),dataURLOptions:y,inlineImages:d,recordCanvas:p,canvasMaskingConfigured:f,preserveWhiteSpace:w,onSerialize:b,onIframeLoad:S,iframeLoadTimeout:k,onIframeListenerRegistered:C,onStylesheetLoad:M,stylesheetLoadTimeout:I,keepIframeSrcFn:x,newlyAddedElement:!1,maxDepth:E})}(document,{mirror:In,blockClass:d,blockSelector:p,maskTextClass:w,maskTextSelector:S,inlineStylesheet:C,maskAllInputs:Se,maskTextFn:R,maskInputFn:E,slimDOM:ke,dataURLOptions:oe,recordCanvas:q,canvasMaskingConfigured:je,inlineImages:$,onSerialize:e=>{wr(e,In)&&Le.addIframe(e),br(e,In)&&De.trackLinkElement(e),Sr(e)&&Be.addShadowRoot(O.shadowRoot(e),document)},onIframeLoad:(e,t)=>{Le.attachIframe(e,t),Be.observeAttachShadow(e)},onIframeListenerRegistered:(e,t)=>{Le.registerLoadListenerDisposer(e,t)},onStylesheetLoad:(e,t)=>{De.attachLinkElement(e,t)},keepIframeSrcFn:re});if(!t)return console.warn("Failed to snapshot the document");Re({type:l.FullSnapshot,data:{node:t,initialOffset:dr(window)}},e),jr.forEach((e=>e.unlock())),gn.onFullSnapshot(),K&&Le.reattachIframes(),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&De.adoptStyleSheets(document.adoptedStyleSheets,In.getId(document))}};vn=ze,he.add((()=>Oe.clear())),he.add((()=>{var e=s();for(var t of ve)e.add(t);ve.length=0,e.close()})),Ce=e=>{var t=Oe.get(e);if(t){var r=s();t.forEach((e=>{r.add(e);var t=ve.indexOf(e);-1!==t&&ve.splice(t,1)})),Oe.delete(e),r.close()}},Me=()=>{for(var e of Oe){var t=e[0],r=In.getNode(t);if(r)try{r.contentDocument&&r.contentDocument.defaultView||null==Ce||Ce(t)}catch(e){null==Ce||Ce(t)}else null==Ce||Ce(t)}};var He=e=>{var t;return Jr({mutationCb:Ne,mousemoveCb:(e,t)=>Re({type:l.IncrementalSnapshot,data:{source:t,positions:e}}),mouseInteractionCb:e=>Re({type:l.IncrementalSnapshot,data:r({source:u.MouseInteraction},e)}),scrollCb:Ae,viewportResizeCb:e=>Re({type:l.IncrementalSnapshot,data:r({source:u.ViewportResize},e)}),inputCb:e=>Re({type:l.IncrementalSnapshot,data:r({source:u.Input},e)}),mediaInteractionCb:e=>Re({type:l.IncrementalSnapshot,data:r({source:u.MediaInteraction},e)}),styleSheetRuleCb:e=>Re({type:l.IncrementalSnapshot,data:r({source:u.StyleSheetRule},e)}),styleDeclarationCb:e=>Re({type:l.IncrementalSnapshot,data:r({source:u.StyleDeclaration},e)}),canvasMutationCb:Te,fontCb:e=>Re({type:l.IncrementalSnapshot,data:r({source:u.Font},e)}),selectionCb:e=>{Re({type:l.IncrementalSnapshot,data:r({source:u.Selection},e)})},customElementCb:e=>{Re({type:l.IncrementalSnapshot,data:r({source:u.CustomElement},e)})},blockClass:d,ignoreClass:m,ignoreSelector:g,maskTextClass:w,maskTextSelector:S,maskInputOptions:Se,inlineStylesheet:C,sampling:L,recordDOM:U,recordCanvas:q,canvasMaskingConfigured:je,inlineImages:$,userTriggeredOnInput:Z,collectFonts:X,doc:e,maskInputFn:E,maskTextFn:R,keepIframeSrcFn:re,blockSelector:p,slimDOMOptions:ke,dataURLOptions:oe,mirror:In,iframeManager:Le,stylesheetManager:De,shadowDomManager:Be,processedNodeManager:Pe,canvasManager:gn,ignoreCSSAttributes:ie,attributeFilter:ae,plugins:(null==ee||null==(t=ee.filter((e=>e.observer)))?void 0:t.map((e=>({observer:e.observer,options:e.options,callback:t=>Re({type:l.Plugin,data:{plugin:e.name,payload:t}})}))))||[]},N)};Le.addLoadListener((e=>{if(!me)try{var t=In.getId(e),r=He(e.contentDocument);if(ye(r),-1!==t){var n=Oe.get(t);n||(n=new Set,Oe.set(t,n)),n.add(r)}}catch(e){we(e)}})),Le.addPageHideListener((e=>{var t=In.getId(e);null==Ce||Ce(t),Ur(e)}));var Ue=-1,We=e=>Re({type:l.Custom,data:{tag:"rrweb/fullscreen",payload:e}}),qe=()=>{var e,t,r,n,i=document,a=null!=(e=null!=(t=null!=(r=null!=(n=i.fullscreenElement)?n:i.webkitFullscreenElement)?r:i.mozFullScreenElement)?t:i.msFullscreenElement)?e:null,s=a?In.getId(a):-1;s!==Ue&&(-1!==Ue&&We({id:Ue,enter:!1}),Ue=s,-1!==s&&We({id:s,enter:!0}))},Ge=!1,Ke=()=>{me||Ge||(Ge=!0,ze(),me||(ye(He(document)),ye(nr("fullscreenchange",qe)),ye(nr("webkitfullscreenchange",qe)),ye(nr("mozfullscreenchange",qe)),ye(nr("MSFullscreenChange",qe)),kn=!0))};return["interactive","complete"].includes(document.readyState)?Ke():(ye(nr("DOMContentLoaded",(()=>{if(!me)try{Re({type:l.DomContentLoaded,data:{}}),"DOMContentLoaded"===J&&Ke()}catch(e){we(e)}}))),ye(nr("load",(()=>{if(!me)try{Re({type:l.Load,data:{}}),"load"===J&&Ke()}catch(e){we(e)}}),window))),ge}catch(e){we(e)}}xn.addCustomEvent=(e,t)=>{if(!kn)throw new Error("please add custom event after start recording");mn({type:l.Custom,data:{tag:e,payload:t}})},xn.freezePage=()=>{jr.forEach((e=>e.freeze()))},xn.takeFullSnapshot=e=>{if(!kn)throw new Error("please take full snapshot after start recording");vn(e)},xn.mirror=In;class En{constructor(e){this.fileName=void 0,this.functionName=void 0,this.lineNumber=void 0,this.columnNumber=void 0,this.fileName=e.fileName||"",this.functionName=e.functionName||"",this.lineNumber=e.lineNumber,this.columnNumber=e.columnNumber}toString(){var e=this.lineNumber||"",t=this.columnNumber||"";return this.functionName?this.functionName+" ("+this.fileName+":"+e+":"+t+")":this.fileName+":"+e+":"+t}}var Rn=/(^|@)\S+:\d+/,Nn=/^\s*at .*(\S+:\d+|\(native\))/m,An=/^(eval@)?(\[native code])?$/,Tn={parse:function(e){return e?void 0!==e.stacktrace||void 0!==e["opera#sourceloc"]?this.parseOpera(e):e.stack&&e.stack.match(Nn)?this.parseV8OrIE(e):e.stack?this.parseFFOrSafari(e):[]:[]},extractLocation:function(e){if(-1===e.indexOf(":"))return[e];var t=/(.+?)(?::(\d+))?(?::(\d+))?$/.exec(e.replace(/[()]/g,""));if(!t)throw new Error("Cannot parse given url: "+e);return[t[1],t[2]||void 0,t[3]||void 0]},parseV8OrIE:function(e){return e.stack.split("\n").filter((function(e){return!!e.match(Nn)}),this).map((function(e){e.indexOf("(eval ")>-1&&(e=e.replace(/eval code/g,"eval").replace(/(\(eval at [^()]*)|(\),.*$)/g,""));var t=e.replace(/^\s+/,"").replace(/\(eval code/g,"("),r=t.match(/ (\((.+):(\d+):(\d+)\)$)/),n=(t=r?t.replace(r[0],""):t).split(/\s+/).slice(1),i=this.extractLocation(r?r[1]:n.pop()),a=n.join(" ")||void 0,s=["eval","<anonymous>"].indexOf(i[0])>-1?void 0:i[0];return new En({functionName:a,fileName:s,lineNumber:i[1],columnNumber:i[2]})}),this)},parseFFOrSafari:function(e){return e.stack.split("\n").filter((function(e){return!e.match(An)}),this).map((function(e){if(e.indexOf(" > eval")>-1&&(e=e.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,":$1")),-1===e.indexOf("@")&&-1===e.indexOf(":"))return new En({functionName:e});var t=/((.*".+"[^@]*)?[^@]*)(?:@)/,r=e.match(t),n=r&&r[1]?r[1]:void 0,i=this.extractLocation(e.replace(t,""));return new En({functionName:n,fileName:i[0],lineNumber:i[1],columnNumber:i[2]})}),this)},parseOpera:function(e){return!e.stacktrace||e.message.indexOf("\n")>-1&&e.message.split("\n").length>e.stacktrace.split("\n").length?this.parseOpera9(e):e.stack?this.parseOpera11(e):this.parseOpera10(e)},parseOpera9:function(e){for(var t=/Line (\d+).*script (?:in )?(\S+)/i,r=e.message.split("\n"),n=[],i=2,a=r.length;i<a;i+=2){var s=t.exec(r[i]);s&&n.push(new En({fileName:s[2],lineNumber:parseFloat(s[1])}))}return n},parseOpera10:function(e){for(var t=/Line (\d+).*script (?:in )?(\S+)(?:: In function (\S+))?$/i,r=e.stacktrace.split("\n"),n=[],i=0,a=r.length;i<a;i+=2){var s=t.exec(r[i]);s&&n.push(new En({functionName:s[3]||void 0,fileName:s[2],lineNumber:parseFloat(s[1])}))}return n},parseOpera11:function(e){return e.stack.split("\n").filter((function(e){return!!e.match(Rn)&&!e.match(/^Error created at/)}),this).map((function(e){var t=e.split("@"),r=this.extractLocation(t.pop()),n=(t.shift()||"").replace(/<anonymous function(: (\w+))?>/,"$2").replace(/\([^)]*\)/g,"")||void 0;return new En({functionName:n,fileName:r[0],lineNumber:r[1],columnNumber:r[2]})}),this)}};function Dn(e){if(!e||!e.outerHTML)return"";for(var t="";e.parentElement;){var r=e.localName;if(!r)break;r=r.toLowerCase();var n=e.parentElement,i=[];if(n.children&&n.children.length>0)for(var a=0;a<n.children.length;a++){var s=n.children[a];s.localName&&s.localName.toLowerCase&&s.localName.toLowerCase()===r&&i.push(s)}i.length>1&&(r+=":eq("+i.indexOf(e)+")"),t=r+(t?">"+t:""),e=n}return t}var Ln=["InputEvent","CompositionEvent","TextEvent","KeyboardEvent"],Fn=["data","key","code","keyCode","charCode","which","char"];function Pn(e){return Array.isArray(e)}function jn(e){return"object"==typeof e&&null!==e&&!Pn(e)}function Bn(e,t){if(0===t)return!0;var r=Object.keys(e);for(var n of r)if(jn(e[n])&&Bn(e[n],t-1))return!0;return!1}function zn(e,t){var r={numOfKeysLimit:50,depthOfLimit:4};Object.assign(r,t);var n=[],i=[];return JSON.stringify(e,(function(e,t){if(n.length>0){var a=n.indexOf(this);~a?n.splice(a+1):n.push(this),~a?i.splice(a,1/0,e):i.push(e),~n.indexOf(t)&&(t=n[0]===t?"[Circular ~]":"[Circular ~."+i.slice(0,n.indexOf(t)).join(".")+"]")}else n.push(t);if(null===t)return t;if(void 0===t)return"undefined";if(jn(s=t)&&Object.keys(s).length>r.numOfKeysLimit||"function"==typeof s||jn(s)&&Bn(s,r.depthOfLimit))return function(e){var t=e.toString();return r.stringLengthLimit&&t.length>r.stringLengthLimit&&(t=t.slice(0,r.stringLengthLimit)+"..."),t}(t);var s,o,l;if("bigint"==typeof t)return t.toString()+"n";if(t instanceof Event){var u={},c=(o=t,l=globalThis,Ln.some((e=>{var t=l[e];return"function"==typeof t&&o instanceof t})));for(var d in t){var h=t[d];Pn(h)?u[d]=Dn(h.length?h[0]:null):c&&Fn.includes(d)?u[d]="number"==typeof h?0:"":u[d]=h}return u}return t instanceof Node?t instanceof Element&&(Dn(t)||t.localName)||t.nodeName:t instanceof Error?t.stack?t.stack+"\nEnd of stack for Error object":t.name+": "+t.message:t}))}var Hn={level:["assert","clear","count","countReset","debug","dir","dirxml","error","group","groupCollapsed","groupEnd","info","log","table","time","timeEnd","timeLog","trace","warn"],lengthThreshold:1e3,logger:"console"};function Un(e,t,r){var n,i=r?Object.assign({},Hn,r):Hn,a=i.logger;if(!a)return()=>{};n="string"==typeof a?t[a]:a;var s=0,o=!1,l=[];if(i.level.includes("error")){var u=t=>{var r=t.message,n=t.error,a=Tn.parse(n).map((e=>e.toString())),s=[zn(r,i.stringifyOptions)];e({level:"error",trace:a,payload:s})};t.addEventListener("error",u),l.push((()=>{t.removeEventListener("error",u)}));var c=t=>{var r,n;t.reason instanceof Error?n=[zn("Uncaught (in promise) "+(r=t.reason).name+": "+r.message,i.stringifyOptions)]:(r=new Error,n=[zn("Uncaught (in promise)",i.stringifyOptions),zn(t.reason,i.stringifyOptions)]);var a=Tn.parse(r).map((e=>e.toString()));e({level:"error",trace:a,payload:n})};t.addEventListener("unhandledrejection",c),l.push((()=>{t.removeEventListener("unhandledrejection",c)}))}for(var d of i.level)l.push(h(n,d));return()=>{l.forEach((e=>e()))};function h(t,r){return t[r]?I(t,r,(t=>function(){for(var n=arguments.length,a=new Array(n),l=0;l<n;l++)a[l]=arguments[l];if(t(...a),!("assert"===r&&a[0]||o)){o=!0;try{var u=Tn.parse(new Error).map((e=>e.toString())).splice(1),c=("assert"===r?a.slice(1):a).map((e=>zn(e,i.stringifyOptions)));++s<i.lengthThreshold?e({level:r,trace:u,payload:c}):s===i.lengthThreshold&&e({level:"warn",trace:[],payload:[zn("The number of log records reached the threshold.")]})}catch(e){t("rrweb logger error:",e,...a)}finally{o=!1}}})):()=>{}}}var Wn,qn=e=>({name:"rrweb/console@1",observer:Un,options:e}),Gn=(e,t,r)=>{var n=()=>{throw new Error("Invalid internal text data")};(!Number.isSafeInteger(t)||t<1||t>1e6||!Number.isSafeInteger(r)||r<1||r>1e4||e.length>2e6||e.length%4!=0)&&n();for(var i=e.endsWith("==")?2:e.endsWith("=")?1:0,a=new Uint8Array(e.length/4*3-i),s=0,o=0,l=0,u=0;u<e.length-i;u++){var c="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".indexOf(e.charAt(u));c<0&&n(),l=l<<6|c,(o+=6)>=8&&(o-=8,a[s++]=l>>>o&255)}o&&l&(1<<o)-1&&n();for(var d,h,p=new Uint8Array(t),f=0,m=0,v=e=>{m+e>8*a.length&&n();var t=m>>>3,r=(a[t]|a[t+1]<<8|a[t+2]<<16)>>>(7&m)&(1<<e)-1;return m+=e,r},g=(e,t,r)=>{for(var i=new Uint16Array(16),a=0,s=0;s<e.length;s++){var o=e[s];o>15&&n(),o&&(i[o]++,a=Math.max(a,o))}for(var l=1,u=1;u<=15;u++)(l=2*l-i[u])<0&&n();(a?!l||t&&1===a&&1===i[1]:r)||n();for(var c=new Uint16Array(16),d=1;d<15;d++)c[d+1]=c[d]+i[d];for(var h=new Uint16Array(e.length),p=0;p<e.length;p++){var f=e[p];f&&(h[c[f]++]=p)}return{counts:i,symbols:h,maximum:a}},y=e=>{for(var t=0,r=0,i=0,a=1;a<=e.maximum;a++){t=t<<1|v(1);var s=e.counts[a];if(t>=r&&t-r<s)return e.symbols[i+t-r];i+=s,r=r+s<<1}return n()},w=0,b=0;!w;){++b>1024&&n(),w=v(1);var S=v(2);if(0===S){m=m+7&-8;var k=v(16);(65535!=(k^v(16))||f+k>t||m+8*k>8*a.length)&&n(),p.set(a.subarray(m>>>3,(m>>>3)+k),f),f+=k,m+=8*k}else{var C=void 0,M=void 0;if(1===S){if(!d||!h){for(var I=new Uint8Array(288),O=0;O<I.length;O++)I[O]=O<144?8:O<256?9:O<280?7:8;d=g(I,!1,!1);for(var x=new Uint8Array(32),E=0;E<x.length;E++)x[E]=5;h=g(x,!1,!1)}C=d,M=h}else{if(2!==S)return n();var R=v(5)+257,N=v(5)+1,A=v(4)+4;R>286&&n();for(var T=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],D=new Uint8Array(19),L=0;L<A;L++)D[T[L]]=v(3);for(var F=g(D,!1,!1),P=new Uint8Array(R+N),j=0;j<P.length;){var B=y(F);if(B<16)P[j++]=B;else{16!==B||j||n();var z=16===B?P[j-1]:0,H=16===B?v(2)+3:17===B?v(3)+3:v(7)+11;j+H>P.length&&n();for(var U=j+H;j<U;j++)P[j]=z}}P[256]||n(),C=g(P.subarray(0,R),!0,!1),M=g(P.subarray(R),!0,!0)}for(;;){var W=y(C);if(256===W)break;if(W<256)f===t&&n(),p[f++]=W;else{W>285&&n();var q=W-257,G=(q>>>2)-1,K=q<8?q+3:28===q?258:3+(4+(3&q)<<G)+v(G),V=y(M);V>29&&n();var J=(V>>>1)-1,Y=V<4?V+1:1+(2+(1&V)<<J)+v(J);(Y>f||f+K>t)&&n();for(var Z=0;Z<K;Z++)p[f]=p[f-Y],f++}}}}f===t&&Math.ceil(m/8)===a.length||n();for(var Q="",X=0;X<f;X+=4096)Q+=String.fromCharCode.apply(null,p.subarray(X,Math.min(X+4096,f)));var _=JSON.parse(Q);return Array.isArray(_)&&_.length===r&&!_.some((e=>"string"!=typeof e))||n(),Object.freeze(_)},Kn=e=>(Wn||(Wn=Gn("rX3bktw2suCvIDrOw25ss92SJVuaiX3QxT6jM7al6JY9EbuxoUCRqCpOswgaAKu75utPZCbuAFnVE/vgshqZCZK4JPKO/3vFes1GaRhn2qh+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aUT+2YKSq6Su/LggX5g0qEnGJdy6vfcSrzsHuYb34/PnzXxcM4e3Y84Lmr4JHt60lbH117llDBym+UgKfMr6fCrtFSUm0OdWlVyI50pchxvFm9BZLM1kov8gXDnKQ37RjMBPHvOCdQBnP5wumA/5ixDc4Z5skepdyjiMCc3yWRL6LWDjk5mQELkZtGyeE8cBiACFXDQ+nWYToCv/y3UoUhTEhC2PNrcEGuLcsPBxxqJKxEBcsPhD9q1S+s15lfn6aXDuXRf+YHJ86Y+zeRYmf/ISbEsVtJuOQ7d1s5MfRmQbDKJkipynNi0K+Rdw03/so/8BGNPJ2WCsaGtOMRXEMWWWue5r9B9cYRWgUo3ILNHimItxD94qRlBtsVyxerI3B6F+feQ/phmtkyq1UflDr5AQGearaiMOB1eXXtu6Tif63rPbD11VNODwGj6UD3ja1Ug8JvbVG92V0qK7fBykOpUO06f8Cn96UkVxMdWP5938B",6362,353),Jn=Vn[0];Vn[1];var Yn=Vn[2],Zn=Vn[3];Vn[4],Vn[5],Vn[6];var Qn=Vn[7],Xn=Vn[8];Vn[9],Vn[10],Vn[11],Vn[12],Vn[13],Vn[14],Vn[15],Vn[16],Vn[17],Vn[18],Vn[19],Vn[20],Vn[21];var _n=Vn[22],$n=Vn[23];Vn[24],Vn[25],Vn[26],Vn[27],Vn[28],Vn[29],Vn[30],Vn[31],Vn[32],Vn[33];var ei=Vn[34];Vn[35],Vn[36];var ti=Vn[37],ri=Vn[38];Vn[39],Vn[40],Vn[41],Vn[42],Vn[43],Vn[44];var ni=Vn[45];Vn[46],Vn[47];var ii=Vn[48];Vn[49],Vn[50],Vn[51];var ai=Vn[52],si=Vn[53];Vn[54],Vn[55],Vn[56],Vn[57],Vn[58],Vn[59];var oi=Vn[60];Vn[61],Vn[62],Vn[63],Vn[64];var li=Vn[65];Vn[66];var ui=Vn[67];Vn[68],Vn[69],Vn[70],Vn[71],Vn[72],Vn[73],Vn[74],Vn[75],Vn[76],Vn[77],Vn[78],Vn[79],Vn[80];var ci=Vn[81];Vn[82];var di=Vn[83];Vn[84];var hi=Vn[85],pi=Vn[86];Vn[87],Vn[88],Vn[89],Vn[90];var fi=Vn[91];Vn[92],Vn[93],Vn[94];var mi=Vn[95];Vn[96],Vn[97],Vn[98],Vn[99],Vn[100],Vn[101],Vn[102],Vn[103],Vn[104],Vn[105],Vn[106],Vn[107],Vn[108],Vn[109],Vn[110];var vi=Vn[111];Vn[112];var gi=Vn[113];Vn[114],Vn[115],Vn[116],Vn[117];var yi=Vn[118];Vn[119],Vn[120],Vn[121],Vn[122],Vn[123],Vn[124],Vn[125],Vn[126],Vn[127],Vn[128],Vn[129],Vn[130],Vn[131];var wi=Vn[132],bi=Vn[133],Si=Vn[134],ki=Vn[135],Ci=Vn[136];Vn[137],Vn[138];var Mi=Vn[139];Vn[140],Vn[141],Vn[142],Vn[143],Vn[144],Vn[145],Vn[146];var Ii=Vn[147];Vn[148],Vn[149],Vn[150];var Oi=Vn[151];Vn[152],Vn[153],Vn[154],Vn[155],Vn[156],Vn[157],Vn[158],Vn[159],Vn[160],Vn[161],Vn[162],Vn[163],Vn[164],Vn[165],Vn[166],Vn[167],Vn[168],Vn[169];var xi=Vn[170],Ei=Vn[171];Vn[172],Vn[173],Vn[174],Vn[175],Vn[176],Vn[177],Vn[178],Vn[179];var Ri=Vn[180];Vn[181],Vn[182];var Ni=Vn[183];Vn[184],Vn[185],Vn[186],Vn[187],Vn[188],Vn[189],Vn[190],Vn[191],Vn[192],Vn[193],Vn[194];var Ai=Vn[195],Ti=Vn[196];Vn[197],Vn[198],Vn[199],Vn[200],Vn[201],Vn[202];var Di=Vn[203];Vn[204],Vn[205],Vn[206],Vn[207],Vn[208],Vn[209],Vn[210],Vn[211];var Li=Vn[212];Vn[213],Vn[214];var Fi=Vn[215],Pi=Vn[216],ji=Vn[217];Vn[218],Vn[219];var Bi=Vn[220],zi=Vn[221];Vn[222],Vn[223],Vn[224];var Hi=Vn[225];Vn[226],Vn[227];var Ui=Vn[228];Vn[229];var Wi=Vn[230];Vn[231];var qi=Vn[232],Gi=Vn[233];Vn[234],Vn[235];var Ki=Vn[236];Vn[237];var Vi=Vn[238];Vn[239];var Ji=Vn[240];Vn[241],Vn[242],Vn[243];var Yi=Vn[244];Vn[245],Vn[246],Vn[247],Vn[248],Vn[249],Vn[250],Vn[251];var Zi=Vn[252],Qi=Vn[253];Vn[254],Vn[255],Vn[256],Vn[257],Vn[258],Vn[259],Vn[260],Vn[261];var Xi=Vn[262];Vn[263],Vn[264],Vn[265],Vn[266],Vn[267],Vn[268];var _i=Vn[269];Vn[270],Vn[271];var $i=Vn[272];Vn[273],Vn[274];var ea=Vn[275];Vn[276],Vn[277],Vn[278],Vn[279],Vn[280],Vn[281],Vn[282],Vn[283];var ta=Vn[284];Vn[285],Vn[286],Vn[287],Vn[288];var ra=Vn[289];Vn[290],Vn[291],Vn[292],Vn[293],Vn[294],Vn[295],Vn[296],Vn[297],Vn[298],Vn[299],Vn[300],Vn[301],Vn[302],Vn[303],Vn[304];var na=Vn[305];Vn[306],Vn[307];var ia=Vn[308];Vn[309],Vn[310],Vn[311],Vn[312],Vn[313],Vn[314],Vn[315],Vn[316];var aa=Vn[317];Vn[318],Vn[319],Vn[320],Vn[321],Vn[322];var sa=Vn[323],oa=Vn[324];Vn[325],Vn[326],Vn[327],Vn[328],Vn[329],Vn[330],Vn[331],Vn[332],Vn[333];var la=Vn[334];Vn[335],Vn[336],Vn[337],Vn[338],Vn[339],Vn[340],Vn[341],Vn[342],Vn[343],Vn[344],Vn[345],Vn[346],Vn[347];var ua=Vn[348];Vn[349],Vn[350];var ca=Vn[351];Vn[352];var da=Array.isArray,ha=e=>da(e),pa=e=>"object"==typeof e&&null!=e&&!ha(e),fa=e=>"string"==typeof e,ma=e=>!0===e||!1===e,va=e=>"function"==typeof e,ga=e=>{for(var t=0,r=0;r<e[qi];r+=1){var n=e[hi](r);if(n>=55296&&n<=56319){var i=e[hi](r+1);if(r+1>=e[qi]||i<56320||i>57343)return null;r+=1}else if(n>=56320&&n<=57343)return null;t+=1}return t},ya=e=>"number"==typeof e&&Number[sa](e),wa=e=>ya(e)&&Number[Qn](e)&&e>=0,ba=e=>Object.is(e,null),Sa=(e,t)=>Object.prototype[bi].call(e,t),ka=(e,t)=>Object.prototype[bi].call(e,t),Ca=(e,t)=>{var r=new Set(t);return Object.keys(e).every((e=>r.has(e)))},Ma=e=>{for(var t=0,r=0;r<e[qi];r+=1){var n=e[hi](r);if(n<=127)t+=1;else if(n<=2047)t+=2;else if(n>=55296&&n<=56319&&r+1<e[qi]){var i=e[hi](r+1);i>=56320&&i<=57343?(t+=4,r+=1):t+=3}else t+=3}return t},Ia=e=>Object.freeze(e),Oa=Gn("lVZNk9xEDP0rqj3H1IaCXDhtskAlB0hlFjhQHDTdst1MW2rU8nzw66luj+2Z2U2A44xtfbz39KTf79rRRiVoI3bg0PUE2fU0IIQMI+cxJVEjf/fqTg5M2nTEpGhBuKFjj2OeHiaVPXHDYo2TYQg2/U3HRM7IP8mwzSZMPy6f3726c8Jt6ICOKegJnIzRA4vBliCR5nCOPYScA3eAo/WiwU4woO5I717dBd5jDH4qf3leQmMqfdWCzv//XYMp/TUGpdy4UZXYGiXaYxznmuaX629ggSjckcKA5nrK4EfFbaSrZBN4MRBbgc1FyTVXNlHsaFMB/bV0VFMMeAzDODyOExAbcsI+l248sZX+nLDR0UBpH84ftWSun0jBPYZYiwgM1ocMxPugwgOxXYD+bupwQ7nEeF8qiuIwguuROwJxFQP/YBWXFPEEaEZDMpDRnAxUK8HAGZAv5QBtoOhv4do4SfRbMKacVw4+qpg4ibfUL3FnEj9sfv4JeBy2ldqpYR8mSSjZqAwISjkJZ7rNfRU9RbRWdPgBY9yi2z2kFEOl5ELnfTCQSakQLEMbGCMcMEbIOKRYUnjSsCcPE24zP3OcTmVMH1USqQXKl23NmhV9Dluevy/6oBtOz88eZnm952AB41m979nTkfzj2+df1RI/EfrS8Mc6jp8qp0+KnEv+kncYc50vBBZumDq0sCfI2BY1GXUVe3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oa[19];Oa[20],Oa[21],Oa[22];var Ea=Oa[23];Oa[24],Oa[25],Oa[26],Oa[27],Oa[28],Oa[29],Oa[30],Oa[31],Oa[32],Oa[33],Oa[34],Oa[35],Oa[36],Oa[37],Oa[38],Oa[39],Oa[40],Oa[41],Oa[42],Oa[43],Oa[44],Oa[45],Oa[46],Oa[47],Oa[48],Oa[49],Oa[50],Oa[51],Oa[52],Oa[53],Oa[54],Oa[55],Oa[56],Oa[57],Oa[58],Oa[59],Oa[60],Oa[61],Oa[62],Oa[63],Oa[64],Oa[65],Oa[66],Oa[67],Oa[68],Oa[69],Oa[70],Oa[71],Oa[72],Oa[73],Oa[74],Oa[75],Oa[76],Oa[77],Oa[78],Oa[79],Oa[80],Oa[81],Oa[82],Oa[83],Oa[84];var Ra="https://ingest.elu.dev";Ia({[ua]:Ia([Ra]),[Yi]:Ia([Ra]),[$i]:Ia([Ra]),assets:Ia(["https://assets.elu.dev"])});var Na,Aa=Ia({[ua]:"/v1/events",[Yi]:"/v1/replay",[$i]:"/v1/flags",assets:"/sdk/"}),Ta=Ia({[ua]:"/v1/events",[Yi]:"/v2/replay",[$i]:"/v1/flags",assets:"/sdk/"});Ia({1:Aa,2:Ta}),Ia({1:"/sdk/v1/",2:"/sdk/v2/"});var Da=e=>(Na||(Na=Gn("jVZdV9w2EP0rc/za9Sns8vlISEigJSFA0jY9fRhLY1tZWXI08sLy63sk2d7txkDffDR35Pm4dzR/Z6fz+WJxPN9bHJ0cHhwfH57sHWezidOTbJadvTl/++7i/YfLq99+v/746ebz7d39l69//PnXNyyEpLKq1felboxtfzj23erhcf20tz9fHBweHZ+c/vJrNsuu7j59BNM1BTkQaIz1UFD4skYJ1OqJ5A5KMdjOs5IEviYolVGeoFAG3froAKRtUJlslt19OMvnh0cgVUXsoSJDDr2yJtzQGVyh0lhoymbZ1/0775TwV2zNO+esC2fza+SlMtWNs6XSNHVuy83pLbUa12diaeyDJllRQ8bvmm9wrS3KM9koZrX9s2S/pR8d8egmrP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41b3DGZTzKiBncr3qwjYNkTY90gZoTsZ1tPWd45unPVWWP1+XC1H//PQgDeR5683bVjd8riZxf3tn38B",2953,79)),Na[e]);class La extends Error{constructor(e,t){super(t),this.code=void 0,this.name=Da(10),this.code=e}}class Fa extends Error{constructor(e){super(e),this.name=Da(7)}}class Pa extends Error{constructor(e){super(e),this.name=Da(8)}}class ja extends Error{constructor(e){super(e),this.name=Da(11)}}var Ba=Object.freeze(["img","picture","svg","canvas"]),za=e=>e[qi]>0?e.join(", "):void 0,Ha=e=>{if(!0!==e[vi])throw new Fa(Kn(93));var t="all"===e.inputRule,n="all"===e.textRule?"*":za(e[Oi]),i=za([...e[Mi],..."block"===e.imageRule?Ba:[]]);return Object.freeze(r({maskAllInputs:t},t?{}:{maskInputOptions:Object.freeze({password:!0})},void 0===n?{}:{maskTextSelector:n},void 0===i?{}:{blockSelector:i}))},Ua=Object.freeze([".ph-mask",".elu-mask"]),Wa=Object.freeze([".ph-no-capture",".elu-no-capture"]),qa=Object.freeze([".ph-ignore-input",".elu-ignore-input"]),Ga=Object.freeze({maskAllInputs:!1,maskAllText:!1,maskedInputKinds:Object.freeze([]),maskTextSelectors:Object.freeze([]),blockSelectors:Object.freeze([]),ignoreSelectors:Object.freeze([])}),Ka=e=>Object.freeze([...new Set(e)]),Va=/^(\d{4})-(\d{2})-(\d{2})[Tt](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?(?:[Zz]|([+-])(\d{2}):(\d{2}))$/,Ja=(e,t)=>{throw new Error(e+" "+t)},Ya=function(e,t,n){var i;if(!fa(e))return Ja(t,Da(52));var a=ga(e);if(ba(a)||a<1||a>n)return Ja(t,"must contain between 1 and "+n+" Unicode scalars");var s=Va.exec(e);if(!s)return Ja(t,Da(51));var o=Number(s[1]),l=Number(s[2]),u=Number(s[3]),c=Number(s[4]),d=Number(s[5]),h=Number(s[6]),p=(null!=(i=s[7])?i:"").replace(/0+$/,""),f=s[9]?Number(s[9]):0,m=s[10]?Number(s[10]):0;(l<1||l>12||u<1||u>((e,t)=>{var r=new Date(0);return r[Si](e,t,0),r.getUTCDate()})(o,l)||c>23||d>59||h>60||f>23||m>59)&&Ja(t,Da(49));var v=new Date(0);v[Si](o,l-1,u),v.setUTCHours(c,d,Math.min(h,59),0);var g=v.getTime()/1e3-("-"===s[8]?-1:1)*(60*f+m)*60;ya(g)&&Number[Qn](g)||Ja(t,Da(33));var y=60===h;if(y){var w=new Date(1e3*(g+1));0===w.getUTCHours()&&0===w.getUTCMinutes()&&0===w.getUTCSeconds()&&1===w.getUTCDate()&&(0===w.getUTCMonth()||6===w.getUTCMonth())||Ja(t,Da(54))}var b=(e=>{var t=Math.floor(e/86400);return Ia({epochDay:t,[yi]:e-86400*t})})(g);return Ia(r({source:e},b,{[pi]:y,[Xn]:p}))},Za="__eluReplayUrlScopeV1",Qa=Object.freeze({paused:Object.freeze({tag:"recording paused",payload:Object.freeze({reason:"url blocker"})}),resumed:Object.freeze({tag:"recording resumed",payload:Object.freeze({reason:"left blocked url"})}),started:Object.freeze({tag:"$recording_started",reason:"url_trigger_matched"})}),Xa=e=>{var t,n,i,a=e.scope,s=a.urlBlocklist.map((e=>{try{return new RegExp(e.url)}catch(e){return null}})),o=null!=(t=e.href)?t:()=>{var e;return null==(e=globalThis.location)?void 0:e.href},l=null!=(n=e.carry)?n:{read:()=>{try{var e=globalThis.document,t=null==e?void 0:e[Za];return pa(t)&&fa(t.key)&&ma(t.blocked)?{key:t.key,blocked:t.blocked}:void 0}catch(e){return}},write:e=>{try{var t=globalThis.document;t&&Object.defineProperty(t,Za,{value:Ia(r({},e)),configurable:!0,writable:!0})}catch(e){}}},u=null!=(i=e.defer)?i:e=>{Promise.resolve().then(e)},c=a.siteKey,d=l.read(),h=(null==d?void 0:d.key)===c&&!0===d.blocked,p=!1,f=!1,m="",v=!1,g=()=>l.write({key:c,blocked:h}),y=e=>{if(!v&&e)try{e()}catch(e){}},w=(t,n)=>y((()=>null==e.addCustomEvent?void 0:e.addCustomEvent(t,r({},n)))),b=()=>{var t;try{t=o()}catch(e){t=null}if(t&&t!==m){m=t;var r=(e=>s.some((t=>null===t||t.test(e))))(t);r&&!h?(h=!0,g(),u((()=>{h&&w(Qa.paused.tag,Qa.paused.payload)}))):!r&&h&&(h=!1,g(),p=!0,f||(f=!0,u((()=>{f=!1,p&&!h&&y(e.takeFullSnapshot)}))),u((()=>{h||w(Qa.resumed.tag,Qa.resumed.payload)})))}};return Object.freeze({admit(e){if(v)return"drop";if(b(),h)return(e=>pa(e)&&5===e.type&&pa(e.data)&&e.data.tag===Qa.paused.tag)(e)?"record":"drop";if(p){if(4!==(e=>pa(e)?e.type:void 0)(e))return"drop";p=!1}return"record"},state:()=>Ia({blocked:h,awaitingSnapshot:p,closed:v}),close(){v=!0}})};Ia({names:100,nameLength:512,flagLength:400,keyLength:512,groups:20,groupIdLength:128,groupNameLength:400,groupEntries:100,filters:50,filterValues:100,valueLength:1e3,urlLength:2e3,minDurationMs:36e5}),Ia({rules:100,conditions:50,values:100,valueLength:1e3}),Ia(["LCP","CLS","FCP","INP"]),Ia(["object","embed",".rr-block",".rr-mask"]),Ia(["Asia/Nicosia","Asia/Famagusta","Atlantic/Canary","Atlantic/Madeira","Atlantic/Azores","Atlantic/Reykjavik","Atlantic/Faroe","Africa/Ceuta","America/Cayenne","America/Guadeloupe","America/Martinique","Indian/Reunion","Indian/Mayotte"]);var _a=Ia({sampled:!1,[ui]:!1,[xi]:!1,[ci]:0,[Ji]:null}),$a=new Set(["password","email","tel","hidden"]),es=["src","srcset"],ts=new Set(["img","picture","source"]),rs="rr_dataURL",ns=e=>"object"==typeof e&&null!==e&&!Array.isArray(e),is=(e,t,n)=>{var i=r({},t),a="string"==typeof i.type?i.type[Ci]():"";if(("all"===n.inputRule||$a.has(a)||"textarea"===e)&&"value"in i&&delete i.value,"block"===n.imageRule&&ts.has(e))for(var s of es)s in i&&delete i[s];return"block"===n.imageRule&&rs in i&&delete i[rs],i},as=(e,t)=>{if(!ns(e))return e;var n=r({},e),i=n.type;if(5===i)n.textContent="";else if(3===i&&"all"===t.textRule)!0!==n.isStyle&&(n.textContent="");else if(2===i){var a="string"==typeof n.tagName?n.tagName[Ci]():"";ns(n[Ri])&&(n[Ri]=is(a,n[Ri],t))}return Array.isArray(n.childNodes)&&(n.childNodes=n.childNodes.map((e=>as(e,t)))),n},ss=(e,t)=>{var n=r({},e);return"all"===t.textRule&&Array.isArray(n.texts)&&(n.texts=n.texts.map((e=>ns(e)?r({},e,{value:""}):e))),Array.isArray(n[Ri])&&(n[Ri]=n[Ri].map((e=>ns(e)&&ns(e[Ri])?r({},e,{[Ri]:is("",e[Ri],t)}):e))),Array.isArray(n.adds)&&(n.adds=n.adds.map((e=>ns(e)?r({},e,{node:as(e.node,t)}):e))),n},os=(e,t)=>{if(!ns(e))return e;var n=e.data;if(!ns(n))return e;if(2===e.type)return r({},e,{data:r({},n,{node:as(n.node,t)})});if(3!==e.type)return e;if(0===n.source)return r({},e,{data:ss(n,t)});if(5===n.source){var i=r({},n);return"all"===t.inputRule&&"string"==typeof i.text&&(i.text=""),r({},e,{data:i})}return 9===n.source&&"block"===t.imageRule?r({},e,{data:{source:n.source,id:n.id,type:n.type,commands:[]}}):e},ls=/^[a-f0-9]{64}$/,us=function(){var e=t((function*(e){var t="undefined"==typeof globalThis?void 0:globalThis.crypto;if(null==t||!t.subtle)return null;try{var r=yield t.subtle.digest("SHA-256",e),n="";for(var i of new Uint8Array(r))n+=i.toString(16).padStart(2,"0");return n}catch(e){return null}}));return function(t){return e.apply(this,arguments)}}(),cs=function(){var e=t((function*(e,t){void 0===t&&(t=us);var r=yield t(e);if(!fa(r)||!ls.test(r[Ci]()))throw new Error(Da(5));return r[Ci]()}));return function(t,r){return e.apply(this,arguments)}}(),ds=e=>fa(e)&&/^sha256:[a-f0-9]{64}$/.test(e),hs=e=>(new TextEncoder).encode(e),ps=Ia({maximumReplayDecodedBytes:16777216,[Li]:1e4,maximumJsonNestingDepth:256});function fs(e,t){throw new La(e,t)}var ms=(e,t)=>{ba(ga(e))&&fs("invalid-unicode",t+" contains an unpaired Unicode surrogate")},vs=e=>void 0===e||va(e)||"symbol"==typeof e,gs=(e,t,r,n,i)=>{if(ba(e))return"null";switch(typeof e){case"string":return ms(e,r),JSON[Vi](e);case"number":return Number[sa](e)||fs(aa,r+" must be a finite number"),JSON[Vi](e);case"boolean":return e?"true":"false";case"object":break;default:return fs(aa,r+" has an unsupported "+typeof e+" value")}var a=t+1;if(a>n&&fs(Da(34),r+" exceeds the maximum JSON nesting depth of "+n),a>i.depth&&(i.depth=a),ha(e)){for(var s=[],o=0;o<e[qi];o+=1){ka(e,o)||fs(aa,r+"["+o+"] is a sparse array hole");var l=e[o];s.push(vs(l)?"null":gs(l,a,r+"["+o+"]",n,i))}return"["+s.join(",")+"]"}if(!(e=>{var t=Object[oi](e);return ba(t)||t===Object.prototype})(e))return fs(aa,r+" must be a plain JSON object or array");var u=e,c=Object.keys(u).sort(),d=[];for(var h of c){var p=u[h];vs(p)||(ms(h,r+"."+h),d.push(JSON[Vi](h)+":"+gs(p,a,r+"."+h,n,i)))}return"{"+d.join(",")+"}"},ys=function(e,t,r){return void 0===r&&(r=256),vs(e)&&fs(aa,t+" must be a JSON value"),gs(e,0,t,r,{depth:0})},ws="elu-css-selector-v1",bs=[Yn,Ii,"textRule","inputRule","imageRule",vi,Ea,Oi,Mi],Ss=["all","sensitive"],ks=["all","sensitive"],Cs=["block","allow"];function Ms(e){throw new Fa(e)}var Is=(e,t,r)=>(fa(e)&&t.includes(e)||Ms(r+" must be one of "+t.join(", ")),e),Os=(e,t)=>{var r=fa(e)?ga(e):null;return ba(r)||r<1||r>512?Ms(t+" must be a selector of 1 to 512 Unicode scalars"):e},xs=(e,t)=>{ha(e)||Ms(t+" must be an array of selectors");for(var r=new Set,n=0;n<e[qi];n+=1)ka(e,n)||Ms(t+" must not be sparse"),r.add(Os(e[n],t+"["+n+"]"));return r.size>128&&Ms(t+" may carry at most 128 selectors"),Ia([...r].sort())},Es=e=>{for(var t of(pa(e)&&Ca(e,bs)||Ms(Da(39)),bs))Sa(e,t)||Ms("masking profile "+t+" is required");return 1!==e[Yn]&&Ms("masking profile schemaVersion must be 1"),e[Ii]!==ws&&Ms("masking profile targetDialect must be "+ws),!0!==e[vi]&&Ms(Da(43)),ma(e[$n])||Ms(Da(40)),Ia({[Yn]:1,[Ii]:ws,textRule:Is(e.textRule,Ss,Da(44)),inputRule:Is(e.inputRule,ks,Da(38)),imageRule:Is(e.imageRule,Cs,Da(37)),[vi]:!0,[$n]:e[$n],[Oi]:xs(e[Oi],Da(42)),[Mi]:xs(e[Mi],Da(41))})},Rs="rrweb/console@1",Ns=Object.freeze(["assert","clear","count","countReset","debug","dir","dirxml","error","group","groupCollapsed","groupEnd","info","log","table","time","timeEnd","timeLog","trace","warn"]),As="...[truncated]",Ts=Object.freeze({recordConsole:!1}),Ds=e=>pa(e)&&6===e.type&&pa(e.data),Ls=e=>Ds(e)&&e.data.plugin===Rs&&pa(e.data.payload)&&"string"==typeof e.data.payload.level&&Ns.includes(e.data.payload.level)&&ha(e.data.payload.trace)&&ha(e.data.payload.payload),Fs=(e,t)=>{var r=e.slice(0,t).map((e=>"string"!=typeof e?"":e.length>2e3?e.slice(0,2e3)+As:e));return e.length>t&&r.push(As),r},Ps="rrweb/network@1",js=1e6,Bs="[SessionRecording]",zs="redacted",Hs="[SessionReplay] Failed to read body",Us=["audio","beacon","body","css","early-hint","embed","fetch","frame","iframe","icon","image","img","input","link","navigation","object","ping","script","track","video","xmlhttprequest"],Ws=["first-input","navigation","paint","resource"],qs=[".lr-ingest.io",".ingest.sentry.io",".clarity.ms","google-analytics.com","analytics.google.com","nr-data.net","datadoghq.com","datadoghq.eu","ddog-gov.com","segment.io","rudderstack.com","amplitude.com","mixpanel.com","hotjar.com","hotjar.io","fullstory.com"],Gs=["authorization","x-forwarded-for","cookie","set-cookie","x-api-key","x-real-ip","remote-addr","forwarded","proxy-authorization","x-csrf-token","x-csrftoken","x-xsrf-token"],Ks=["auth","token","secret","session","api-key","apikey","api_key","credential","password","passwd","cookie","csrf","xsrf"],Vs=["password","secret","passwd","api_key","apikey","auth","credentials","mysql_pwd","privatekey","private_key","token"],Js=["image/","video/","audio/","font/","application/octet-stream","application/pdf","application/zip","application/wasm"],Ys=["video/","audio/"],Zs=new RegExp("^(?:(4[0-9]{12}(?:[0-9]{3})?)|(5[1-5][0-9]{14})|(6(?:011|5[0-9]{2})[0-9]{12})|(3[47][0-9]{13})|(3(?:0[0-5]|[68][0-9])[0-9]{11})|((?:2131|1800|35[0-9]{3})[0-9]{11}))$"),Qs=/(^|[^0-9A-Za-z_])([0-9][0-9 -]*[0-9])(?=$|[^0-9A-Za-z_])/g,Xs=[16,15,14,13],_s=/(^|[^0-9])((?!000|666)[0-9]{3}-?(?!00)[0-9]{2}-?(?!0000)[0-9]{4})(?=$|([^0-9]))/g,$s=/[0-9A-Za-z_]/,eo=()=>{},to=e=>{for(var t=0,r=!1,n=e.length-1;n>=0;n--){var i=e.charCodeAt(n)-48;r&&(i*=2)>9&&(i-=9),t+=i,r=!r}return t%10==0},ro=e=>{for(var t=null,r=0;r<e.length;r++){var n=e.charCodeAt(r),i=n>=55296&&n<=56319,a=n>=56320&&n<=57343;if(i){var s=e.charCodeAt(r+1);if(r+1<e.length&&s>=56320&&s<=57343){null!==t&&(t+=e.slice(r,r+2)),r++;continue}}i||a?(null===t&&(t=e.slice(0,r)),t+="�"):null!==t&&(t+=e[r])}return null!=t?t:e},no=e=>{var t=e.toLowerCase();return Gs.includes(t)||Ks.some((e=>t.includes(e)))},io=e=>{if(pa(e)){var t={};for(var r of Object.keys(e)){var n=e[r];t[ro(r)]=no(r)?zs:ro(String(n))}return t}},ao=(e,t,r)=>{if(null==e)return e;var n=null==t?void 0:t["content-length"],i=n?parseInt(n,10):Ma(e);return i>js?Bs+" "+r+" body too large to record ("+i+" bytes)":e.length>25e4&&JSON.stringify(e).length>15e5?Bs+" "+r+" body too large to record ("+Ma(e)+" bytes)":e},so=(e,t)=>{if(null==e)return e;var r=e,n=e.trim();for(var i of(((e=>{var t;for(Qs.lastIndex=0;t=Qs.exec(e);)for(var r,n=(null!=(r=t[2])?r:"").replace(/[- ]/g,""),i=0;i<n.length;i++)for(var a of Xs){var s=i+a;if(!(s>n.length)){var o=n.slice(i,s);if(Zs.test(o)&&to(o))return!0}}return!1})(n)||(e=>{var t;for(_s.lastIndex=0;t=_s.exec(e);){var r=t[1],n=t[3];if(!(r&&n&&$s.test(r)&&$s.test(n)))return!0}return!1})(n))&&(r=Bs+" "+t+" body "+zs),Vs))r.length&&-1!==r.indexOf(i)&&(r=Bs+" "+t+" body "+zs+" as might contain: "+i);return r},oo=(e,t)=>{var r=((e,t)=>{try{return new URL(e,t).hostname}catch(e){return null}})(e,t);return r&&r.trim().length&&qs.some((e=>r.endsWith(e)))?r:null},lo=(e,t,r)=>{var n;if(!e)return!1;if(r.startsWith("blob:"))return!1;var i=null==(n=((e,t)=>{if(e){var r=Object.keys(e).find((e=>"content-type"===e.toLowerCase()));return void 0===r?void 0:e[r]}})(t))?void 0:n.toLowerCase();return!(i&&Js.some((e=>i.includes(e))))},uo=e=>{var t={};return e.forEach(((e,r)=>{t[r]=e})),t},co=e=>"[SessionReplay] Body too large to record (> "+e+" bytes)",ho=e=>pa(e)&&va(e.getReader)&&va(e.tee),po=function(e,t,r){return void 0===t&&(t=js),void 0===r&&(r=500),((e,t)=>{try{var r=e.headers.get("content-length");if(!r)return!1;var n=parseInt(r,10);return Number.isFinite(n)&&n>t}catch(e){return!1}})(e,t)?Promise.resolve(co(t)):new Promise((n=>{var i,a,s=!1,o=()=>{try{var e;null==(e=i)||e.cancel().catch(eo)}catch(e){}},l=e=>{s||(s=!0,clearTimeout(u),o(),n(e))},u=setTimeout((()=>l("[SessionReplay] Timeout while trying to read body")),r);try{a=e.clone()}catch(e){return void l(Hs)}var c=a.body;if(ho(c)&&"undefined"!=typeof TextDecoder){try{i=c.getReader()}catch(e){return void l(Hs)}var d=[],h=0,p=()=>{i.read().then((e=>{var r=e.done,n=e.value;if(s)o();else if(r){var i=new Uint8Array(h),a=0;for(var u of d)i.set(u,a),a+=u.byteLength;l((new TextDecoder).decode(i))}else{if(n){if(h+n.byteLength>t)return void l(co(t));h+=n.byteLength,d.push(n)}p()}}),(e=>l(Hs+": "+e)))};p()}else try{a.text().then((e=>l(e)),(e=>l(Hs+": "+e)))}catch(e){l(Hs)}}))},fo=(e,t,r)=>{if(null==e)return null;var n,i=oo(t,r);if(i)return i+" is in deny list";if(fa(e))return e;if("undefined"!=typeof Document&&e instanceof Document)return e.textContent;if("undefined"!=typeof FormData&&e instanceof FormData)return n=[],e.forEach(((e,t)=>{if(void 0!==t&&"undefined"!==t){var r="undefined"!=typeof File&&e instanceof File?e.name:String(e);n.push(encodeURIComponent(t)+"="+encodeURIComponent(r))}})),n.join("&");if("undefined"!=typeof URLSearchParams&&e instanceof URLSearchParams)return e.toString();if("object"==typeof e)try{return JSON.stringify(e)}catch(e){return"[SessionReplay] Failed to stringify response object"}return"[SessionReplay] Cannot read body of type "+Object.prototype.toString.call(e)},mo=e=>"resource"===e.entryType,vo=e=>void 0===e?void 0:Math.round(e),go=(e,t)=>{var n,i=t.entry,a=i?i.startTime:t.start,s=i?i.responseEnd:t.end,o=Math.floor(Date.now()-e.now()),l=Math.floor(o+(a||0)),u=[r({},i?i.toJSON():{name:t.url},{startTime:vo(a),endTime:vo(s),timeOrigin:o,timestamp:l,method:t.method,initiatorType:null!=(n=t.initiatorType)?n:null==i?void 0:i.initiatorType,status:t.status,requestHeaders:t.captured.requestHeaders,requestBody:t.captured.requestBody,responseHeaders:t.captured.responseHeaders,responseBody:t.captured.responseBody,isInitial:t.isInitial})];if(i&&("navigation"===i.entryType||"resource"===i.entryType))for(var c of i.serverTiming||[])u.push({timeOrigin:o,timestamp:l,startTime:Math.round(i.startTime),name:c.name,duration:c.duration,entryType:"serverTiming"});return u},yo=function(e,t,r,n,i,a,s){if(void 0===s&&(s=0),s>10||!a())return Promise.resolve(null);var o;try{for(var l=e.getEntriesByName(r),u=l.length-1;u>=0;u--){var c=l[u];if(mo(c)&&c.initiatorType===t&&(void 0===n||c.startTime>=n)&&(void 0===i||c.startTime<=i)){o=c;break}}}catch(e){return Promise.resolve(null)}return o?Promise.resolve(o):new Promise((e=>setTimeout(e,50*s))).then((()=>yo(e,t,r,n,i,a,s+1)))},wo="__eluReplayNetworkV1",bo=(e,t,r,n,i)=>{var a=null==e?void 0:e[t];if(!a){var s=r[n];if(!va(s))return eo;var o=s,l={next:o,handler:null,wrapped:function(){for(var e=l.handler,t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return e?e(this,r,o):o.apply(this,r)}};r[n]=l.wrapped,e&&(e[t]=l),a=l}var u=a;return u.handler=i,()=>{u.handler===i&&(u.handler=null),r[n]===u.wrapped&&(r[n]=u.next,e&&e[t]===u&&delete e[t])}},So=e=>{var t=Object.freeze([...e.excluded]),n=e.headers||e.body,i=!1;return Object.freeze({name:Ps,observer:(a,s)=>{if(i)return eo;i=!0;var o=!1,l=()=>{try{return s.location.href}catch(e){return"about:blank"}},u=e=>{if(!fa(e))return!1;try{var r=new URL(e,l()),n=r.origin+r.pathname;return t.some((e=>n.startsWith(e)))}catch(e){return!1}},c=e=>{if("serverTiming"!==e.entryType&&u(e.name))return null;var t=io(e.requestHeaders),n=io(e.responseHeaders),i=e=>fa(e)?ro(e):null===e?null:void 0,a=so(ao(i(e.requestBody),t,"Request"),"Request"),s=so(ao(i(e.responseBody),n,"Response"),"Response"),o=r({},e);return fa(o.name)&&(o.name=ro(o.name)),o.requestHeaders=t,o.responseHeaders=n,o.requestBody=a,o.responseBody=s,o},d=function(e,t){if(void 0===t&&(t=!1),!o){var r=[],n=!1;for(var i of e){var s="serverTiming"===i.entryType;if(!s||!n){var l=null;try{l=c(i)}catch(e){l=null}s||(n=!l),l&&r.push(l)}}if(r.length&&!o)try{a(t?{requests:r,isInitial:!0}:{requests:r})}catch(e){}}},h=s.performance,p=[];if(h){try{p.push(ko(s,h,e.timing,n,d))}catch(e){}if(n){var f={win:s,performance:h,options:e,live:()=>!o,base:l,isExcluded:u,emit:d},m=(e=>{try{var t=e.document,r=t[wo];if(r)return r;var n={};return Object.defineProperty(t,wo,{value:n,configurable:!0}),n}catch(e){return null}})(s);try{p.push(Io(f,m))}catch(e){}try{p.push(xo(f,m))}catch(e){}}}return()=>{for(var e of(o=!0,p))try{e()}catch(e){}}},options:null})},ko=(e,t,r,n,i)=>{var a,s=e=>(e=>"navigation"===e.entryType)(e)||mo(e)&&Us.includes(e.initiatorType);if(r){var o=t.getEntries().filter(s);i(o.flatMap((e=>go(t,{entry:e,captured:{},isInitial:!0}))),!0)}var l=e.PerformanceObserver;if(!va(l))return eo;var u=new l((e=>{var r=e.getEntries().filter((e=>s(e)&&!(n&&("xmlhttprequest"===e.initiatorType||"fetch"===e.initiatorType))));i(r.flatMap((e=>go(t,{entry:e,captured:{}}))))})),c=null!=(a=l.supportedEntryTypes)?a:[];return u.observe({entryTypes:c.filter((e=>Ws.includes(e)))}),()=>u.disconnect()},Co=e=>{if("undefined"==typeof Request)return!1;if(e instanceof Request)return!0;try{return"[object Request]"===Object.prototype.toString.call(e)}catch(e){return!1}},Mo=e=>{try{return fa(e)?e:Co(e)?e.url:String(null!=e?e:"")}catch(e){return""}},Io=(e,t)=>{var r=e.win,n=e.performance,i=e.options;return bo(t,"fetch",r,"fetch",((t,r,a)=>{var s,o=r,l=o[0],u=o[1];if(!e.live()||e.isExcluded(Mo(l)))return a.apply(t,r);try{s=Co(l)?new Request(l.clone(),u):new Request(l,u)}catch(e){return a.apply(t,r)}var c=s.url,d={},h=[];try{var p=uo(s.headers);if(i.headers&&(d.requestHeaders=p),!ho(null==u?void 0:u.body)&&lo(i.body,p,c)){var f=oo(c,e.base());h.push((f?Promise.resolve(f+" is in deny list"):po(s)).then((e=>{d.requestBody=e})))}}catch(e){}var m,v,g,y=n.now(),w=()=>{Promise.all(h).then((()=>yo(n,"fetch",c,y,v,e.live))).then((t=>e.emit(go(n,{entry:t,method:s.method,status:m,captured:d,start:y,end:v,url:c,initiatorType:"fetch"})))).catch(eo)};try{g=a.apply(t,r)}catch(e){throw v=n.now(),w(),e}return Promise.resolve(g).then((t=>{v=n.now();try{m=t.status;var r=uo(t.headers);if(i.headers&&(d.responseHeaders=r),lo(i.body,r,c)){var a=Oo(t,c,e.base());h.push((a?Promise.resolve(a):po(t)).then((e=>{d.responseBody=e})))}}catch(e){}return w(),t}),(e=>{throw v=n.now(),w(),e}))}))},Oo=(e,t,r)=>{var n;if("chunked"===e.headers.get("Transfer-Encoding"))return"Chunked Transfer-Encoding is not supported";var i=null==(n=e.headers.get("Content-Type"))?void 0:n.toLowerCase();if(i&&Ys.some((e=>i.startsWith(e))))return"Content-Type "+i+" is not supported";var a=oo(t,r);return a?a+" is in deny list":null},xo=(e,t)=>{var r=e.win.XMLHttpRequest,n=null==r?void 0:r.prototype;return n?bo(t,"open",n,"open",((t,r,n)=>{var i=t,a=r,s=a[0],o=a[1],l=Mo(o instanceof URL?o.href:o);if(e.live()&&!e.isExcluded(l))try{Eo(e,i,String(s),l)}catch(e){}return n.apply(i,r)})):eo},Eo=(e,t,r,n)=>{var i,a,s=e.performance,o=e.options,l=new URL(n,e.base()).href,u={},c={},d=t.setRequestHeader.bind(t);t.setRequestHeader=(e,t)=>{c[e]=t,d(e,t)},o.headers&&(u.requestHeaders=c);var h=t.send.bind(t);t.send=t=>{if(e.live()&&lo(o.body,c,l))try{u.requestBody=fo(t,l,e.base())}catch(e){}i=s.now(),h(t)};var p=()=>{t.removeEventListener("readystatechange",f),t.removeEventListener("error",p),t.removeEventListener("abort",p),t.removeEventListener("timeout",p)},f=()=>{if(t.readyState===t.DONE&&(p(),e.live())){a=s.now();try{var c={};for(var d of t.getAllResponseHeaders().trim().split(/[\r\n]+/)){var h=d.split(": "),f=h.shift();f&&(c[f]=h.join(": "))}o.headers&&(u.responseHeaders=c),lo(o.body,c,l)&&(u.responseBody=fo(t.response,l,e.base()))}catch(e){}var m=t.status;yo(s,"xmlhttprequest",l,i,a,e.live).then((t=>e.emit(go(s,{entry:t,method:r,status:m,captured:u,start:i,end:a,url:n,initiatorType:"xmlhttprequest"})))).catch(eo)}};t.addEventListener("readystatechange",f),t.addEventListener("error",p),t.addEventListener("abort",p),t.addEventListener("timeout",p)},Ro=e=>"object"==typeof e&&null!==e&&!ha(e),No=e=>{if(ha(e))return e.map(No);if(!Ro(e))return e;var t={};for(var r of Object.keys(e))t[r]=No(e[r]);return Ro(t[Ri])&&delete t[Ri].value,3===t.type&&Ro(t.data)&&5===t.data.source&&(t.data.text=""),t},Ao=(e,t)=>Number[Qn](e)&&e>0&&e<=t,To=1048576,Do=e=>{var n=Es(e.profile);if(!Ao(e.maximumEventBytes,8388608)||!Ao(e.maximumPendingBytes,16777216)||e.maximumPendingBytes<e.maximumEventBytes||!Ao(e.maximumPendingEvents,1e3))throw new Error(Kn(566));var i=e.checkoutEveryNms;if(void 0!==i&&!(Number.isSafeInteger(i)&&i>=1e3&&i<=36e5))throw new Error("invalid recorder checkout interval");var a=Ha(n),s=function(e,t,n){void 0===n&&(n=Ha(e));var i=null!=t?t:Ga,a="all"===e.textRule||!0===i.maskAllText?"all":"sensitive",s="all"===e.inputRule||!0===i.maskAllInputs?"all":"sensitive",o=Ka([...e.resolvedMaskSelectors,...Ua,...i.maskTextSelectors]),l=za(Ka([...n.blockSelector?[n.blockSelector]:[],...Wa,...i.blockSelectors])),u=Ka([...qa,...i.ignoreSelectors]).join(", ");return Object.freeze(r({maskAllInputs:"all"===s},"all"===s?{}:{maskInputOptions:Object.freeze({password:!0})},{maskTextSelector:"all"===a?"*":o.join(", ")},l?{blockSelector:l}:{},{ignoreSelector:u,textRule:a,inputRule:s,maskedInputKinds:Ka(i.maskedInputKinds),maskSelectors:o}))}(n,e.pageMasking,a);for(var o of[...n[Oi],...n[Mi],...s.maskSelectors,...null!=(l=null==(u=e.pageMasking)?void 0:u.blockSelectors)?l:[],...null!=(c=null==(d=e.pageMasking)?void 0:d.ignoreSelectors)?c:[]]){var l,u,c,d;e.document.querySelector(o)}var h=['input[type="hidden"]',"iframe","object","embed",s.blockSelector].filter((e=>void 0!==e)).join(", ");e.document.querySelector(h),e.document.querySelector(s.ignoreSelector),e.document.querySelector(s.maskTextSelector);var p,f=Es(r({},n,{textRule:s.textRule,inputRule:s.inputRule})),m=Math.min(4194304,Math.floor(e.maximumPendingBytes/4)),v=Math.min(To,e.maximumEventBytes,m),g=m,y=Math.min(3145728,e.maximumEventBytes,g),w=m,b=Math.min(e.maximumEventBytes,w),S=!1,k=!1,C=0,M=0,I=0,O=0,x=(p=e.fullSnapshotIntervalMs,Object.freeze({checkoutEveryNms:ya(p)&&p>0?Math.max(1e4,Math.min(18e5,Math.floor(p))):3e5})),E=!1,R=0,N=0,A=-1,T=0,D=!1,L=!1,F=!1,P=!1,j=!0,B={},z=null,H=null,U=null,W=0,q=0,G=null,K=Promise[Zi](),V=t=>{try{null==e.onFailure||e.onFailure(t)}catch(e){}},J=()=>{if(D)return _a;try{var t=e.eligibility();return!Number[Qn](t[ci])||t[ci]<0||t[ci]>86400?_a:Object.freeze({sampled:!0===t.sampled,[xi]:!0===t[xi],[ci]:t[ci],[Ji]:t[Ji],[ui]:!0})}catch(e){return _a}},Y=()=>{var t=J();return t.sampled&&t[xi]&&t[ci]>0&&null!==t[Ji]&&e[ta]()},Z=e=>{try{null==e||e()}catch(e){j=!1,D=!0,B={},V("engine-stop")}},Q=()=>{var e=H;H=null,null==e||e.close()},X=()=>{var e=z;z=null,Q(),Z(e)},_=()=>{var e=U;U=null,Z(e)},$=()=>(B={},L=!1,F=!1,_(),X(),K),ee=e=>{D=!0,$(),V(e)},te=function(e,t){void 0===t&&(t=!1);try{return(L||t&&F)&&!D&&B===e&&Y()}catch(e){return!1}};return Object.freeze({profile:n,capability:J,start:()=>{if(D||L||F||P||!j||W>0)return!1;try{if(!Y())return!1}catch(e){return!1}var a={},o=((e,t)=>{var r=null;try{r="allow"===e.imageRule&&t?t():null}catch(e){}return!r||!Number.isSafeInteger(r.fps)||r.fps<1||r.fps>12||"number"!=typeof r.quality||!(r.quality>0&&r.quality<=1)?{recordCanvas:!1}:{recordCanvas:!0,sampling:{canvas:r.fps},dataURLOptions:{type:"image/webp",quality:r.quality},canvasMasking:{configured:()=>!0}}})(n,e.canvas),l=(e=>{var t=null;try{t=e?e():null}catch(e){return null}if(!(t&&ma(t.timing)&&ma(t.headers)&&ma(t.body)&&(t.timing||t.headers||t.body)))return null;var r=(e=>{if(!ha(e))return null;var t=[];for(var r of e){if(!fa(r))return null;try{var n=new URL(r);if("https:"!==n.protocol&&"http:"!==n.protocol)return null;t.push(n.origin+n.pathname)}catch(e){return null}}return t})(t.excluded);return r?So({timing:t.timing,headers:t.headers,body:t.body,excluded:r}):null})(e.network),u=(e=>{var t=null;try{t=e?e():null}catch(e){}return pa(t)?Object.freeze({recordConsole:!0,consolePlugin:Object.freeze({level:Ns,lengthThreshold:1e3,stringifyOptions:Object.freeze({numOfKeysLimit:50,depthOfLimit:4}),logger:"console"})}):Ts})(e.console);B=a,G=null,E=o.recordCanvas,S=null!==l,k=u.recordConsole,L=!0;try{var c;P=!0;var d=e.subscribeToRestrictions((()=>{B===a&&$()}));if(P=!1,!te(a))return Z(d),!1;U=d;var p=null!=(c=null==e.urlScope?void 0:e.urlScope())?c:null;H=p?Xa({scope:p,takeFullSnapshot:e.engine.takeFullSnapshot,addCustomEvent:e.engine.addCustomEvent}):null,P=!0;var V=e.engine(r({maskTextSelector:s.maskTextSelector,maskAllInputs:!0,maskInputOptions:{password:!0,email:!0,tel:!0,textarea:!0},maskInputFn:(e,t)=>{var r,i=null==(r=t.getAttribute("type"))?void 0:r[Ci](),a="TEXTAREA"===t.tagName?"textarea":"SELECT"===t.tagName?"select":null!=i?i:"text";if("all"===s.inputRule||["password","email","tel","hidden"].includes(null!=i?i:"")||"TEXTAREA"===t.tagName||s.maskedInputKinds.includes(a))return"";for(var o of n[Oi])if(t.closest(o))return"";for(var l of s.maskSelectors)if(t.closest(l))return"";return e},maskTextFn:()=>"",blockSelector:h,ignoreSelector:s.ignoreSelector},o,{recordCrossOriginIframes:!1,inlineImages:!1,collectFonts:!1,recordDOM:!0,plugins:l?[l]:[],console:u,keepIframeSrcFn:()=>!1,recordAfter:Kn(16),checkoutEveryNms:void 0===i?x.checkoutEveryNms:Math.min(i,x.checkoutEveryNms),errorHandler:()=>(B===a&&ee("engine-start"),!0),emit:i=>((i,a)=>{if(L)if(te(i)){if(!H||"drop"!==H.admit(a)){var s=(e=>Ro(e)&&3===e.type&&Ro(e.data)&&9===e.data.source)(a),o=!s&&(e=>Ro(e)&&6===e.type&&Ro(e.data)&&e.data.plugin===Ps)(a),l=!s&&!o&&Ds(a);if(!l||k&&Ls(a)){var u=e=>s?e:o||l?void 0:ee("capacity"),c=s&&Number.isSafeInteger(a.data.id)&&a.data.id>0;if((!s||E&&"allow"===n.imageRule&&c)&&(!o||S)){var d,h,p,x=s?R:o?I:l?C:W-R-I-C,D=s?N:o?O:l?M:q-N-O-M,F=s?m:o?g:l?w:e.maximumPendingBytes,P=s?v:o?y:l?b:e.maximumEventBytes,j=s||o?32:l?1e3:e.maximumPendingEvents;if(s&&(e=>{var t=0;for(var r of Array.isArray(e.commands)?e.commands:[]){var n=ns(r)&&Array.isArray(r.args)?r.args[0]:null,i=ns(n)&&Array.isArray(n.args)?n.args[0]:null;for(var a of ns(i)&&Array.isArray(i.data)?i.data:[])ns(a)&&"string"==typeof a.base64&&(t+=a.base64.length)}return t})(a.data)>P)return"shrink";if(x>=j||D>=F||(s||o)&&!(()=>{try{return!0===(null==e.canvasAdmission?void 0:e.canvasAdmission())}catch(e){return!1}})())return u("resend");try{if(!Ro(a)||!Number[Qn](a.timestamp)||a.timestamp<0)throw new Error(Kn(567));if(h=a.timestamp,null!==G&&h<G)throw new Error(Kn(765));var z=l?(e=>{if(ba(e)||!Ls(e))return null;var t=e.data.payload,n=t.level,i=t.trace,a=t.payload;return r({},e,{data:{plugin:Rs,payload:{level:n,trace:Fs(i,50),payload:Fs(a,10)}}})})(a):a;if(null===z)return;var U=No(os(z,f)),V=JSON[Vi](U);if(void 0===V||V[qi]>P)return void 0===V?ee("capacity"):u("shrink");if((p=(new TextEncoder).encode(V)[ai])>P)return u("shrink");if(s&&Math.floor(h/1e3)!==A&&(A=Math.floor(h/1e3),T=0),D+p>F||s&&T+p>To)return u("resend");d=JSON.parse(V)}catch(e){return void ee("invalid-event")}if(te(i)){G=h,W+=1,q+=p,s&&(R+=1,N+=p,T+=p),o&&(I+=1,O+=p),l&&(C+=1,M+=p);var J=K.then(t((function*(){te(i,!0)?yield e.record(d,h,p):B===i&&$()}))).catch((()=>{B===i&&ee("sink")})).then((()=>{W-=1,q-=p,s&&(R-=1,N-=p),o&&(I-=1,O-=p),l&&(C-=1,M-=p)}));K=J}else $()}}}}else B===i&&$()})(a,i)}));return P=!1,"function"!=typeof V?(j=!1,ee("engine-start"),!1):te(a)?(z=V,!0):(Q(),Z(V),!1)}catch(e){return P&&(j=!1),P=!1,ee("engine-start"),!1}},quiesce:()=>{if(D)return $();var e=B;return L=!1,F=!0,X(),j?K.then((()=>{B===e&&(F=!1,_())})):$()},stop:$,marker:(t,n)=>{var i=B;Promise.resolve().then((()=>{if(B===i&&L&&te(i))try{null==e.engine.addCustomEvent||e.engine.addCustomEvent(t,r({},n))}catch(e){}}))},cleanupIsProven:()=>j&&!P&&!L&&!F&&null===z&&null===U&&0===W,settled:()=>K,close:()=>(D=!0,$())})},Lo=e=>"object"==typeof e&&!ba(e)&&4===e.type,Fo=(e,t,r,n,i)=>Ia({[gi]:e[gi],[wi]:t,chunkStartedAtMs:t,chunkBytes:r,chunkEvents:1,[Bi]:n,awaitingSnapshot:i}),Po=Bi,jo=ea;Ia({base:1,[$i]:2,[Yi]:3}),Ia([{name:"installations",keyPath:Fi,[Xi]:1,indexes:[]},{name:jo,keyPath:["siteKey","sequence"],[Xi]:1,indexes:[]},{name:"flagCache",keyPath:[ri,"recordKind"],[Xi]:2,indexes:[]},{name:"replayChunks",keyPath:["siteKey",_n],[Xi]:3,indexes:[{name:"chunk",keyPath:["siteKey","replayId","chunkId"],unique:!0},{name:Po,keyPath:["siteKey","replayId","sequence"],unique:!0}]},{name:"replayStreams",keyPath:["siteKey","replayId"],[Xi]:3,indexes:[]},{name:"replayResolutions",keyPath:["siteKey","replayId","chunkId"],[Xi]:3,indexes:[{name:Po,keyPath:["siteKey","replayId","sequence"],unique:!0}]}]),Ia({wallNow:()=>(new Date)[ki](),monotonicNowMs:()=>{var e="undefined"==typeof globalThis?void 0:globalThis.performance;return e?e.now():Number.NaN}});var Bo=Uint8Array,zo=Uint16Array,Ho=Uint32Array,Uo=new Bo([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),Wo=new Bo([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),qo=new Bo([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),Go=function(e,t){for(var r=new zo(31),n=0;n<31;++n)r[n]=t+=1<<e[n-1];var i=new Ho(r[30]);for(n=1;n<30;++n)for(var a=r[n];a<r[n+1];++a)i[a]=a-r[n]<<5|n;return[r,i]},Ko=Go(Uo,2),Vo=Ko[0],Jo=Ko[1];Vo[28]=258,Jo[258]=28;for(var Yo=Go(Wo,0)[1],Zo=new zo(32768),Qo=0;Qo<32768;++Qo){var Xo=(43690&Qo)>>>1|(21845&Qo)<<1;Xo=(61680&(Xo=(52428&Xo)>>>2|(13107&Xo)<<2))>>>4|(3855&Xo)<<4,Zo[Qo]=((65280&Xo)>>>8|(255&Xo)<<8)>>>1}var _o=function(e,t,r){for(var n=e.length,i=0,a=new zo(t);i<n;++i)++a[e[i]-1];var s,o=new zo(t);for(i=0;i<t;++i)o[i]=o[i-1]+a[i-1]<<1;if(r){s=new zo(1<<t);var l=15-t;for(i=0;i<n;++i)if(e[i])for(var u=i<<4|e[i],c=t-e[i],d=o[e[i]-1]++<<c,h=d|(1<<c)-1;d<=h;++d)s[Zo[d]>>>l]=u}else for(s=new zo(n),i=0;i<n;++i)s[i]=Zo[o[e[i]-1]++]>>>15-e[i];return s},$o=new Bo(288);for(Qo=0;Qo<144;++Qo)$o[Qo]=8;for(Qo=144;Qo<256;++Qo)$o[Qo]=9;for(Qo=256;Qo<280;++Qo)$o[Qo]=7;for(Qo=280;Qo<288;++Qo)$o[Qo]=8;var el=new Bo(32);for(Qo=0;Qo<32;++Qo)el[Qo]=5;var tl=_o($o,9,0),rl=_o(el,5,0),nl=function(e){return(e/8>>0)+(7&e&&1)},il=function(e,t,r){r<<=7&t;var n=t/8>>0;e[n]|=r,e[n+1]|=r>>>8},al=function(e,t,r){r<<=7&t;var n=t/8>>0;e[n]|=r,e[n+1]|=r>>>8,e[n+2]|=r>>>16},sl=function(e,t){for(var r=[],n=0;n<e.length;++n)e[n]&&r.push({s:n,f:e[n]});var i=r.length,a=r.slice();if(!i)return[new Bo(0),0];if(1==i){var s=new Bo(r[0].s+1);return s[r[0].s]=1,[s,1]}r.sort((function(e,t){return e.f-t.f})),r.push({s:-1,f:25001});var o=r[0],l=r[1],u=0,c=1,d=2;for(r[0]={s:-1,f:o.f+l.f,l:o,r:l};c!=i-1;)o=r[r[u].f<r[d].f?u++:d++],l=r[u!=c&&r[u].f<r[d].f?u++:d++],r[c++]={s:-1,f:o.f+l.f,l:o,r:l};var h=a[0].s;for(n=1;n<i;++n)a[n].s>h&&(h=a[n].s);var p=new zo(h+1),f=ol(r[c-1],p,0);if(f>t){n=0;var m=0,v=f-t,g=1<<v;for(a.sort((function(e,t){return p[t.s]-p[e.s]||e.f-t.f}));n<i;++n){var y=a[n].s;if(!(p[y]>t))break;m+=g-(1<<f-p[y]),p[y]=t}for(m>>>=v;m>0;){var w=a[n].s;p[w]<t?m-=1<<t-p[w]++-1:++n}for(;n>=0&&m;--n){var b=a[n].s;p[b]==t&&(--p[b],++m)}f=t}return[new Bo(p),f]},ol=function(e,t,r){return-1==e.s?Math.max(ol(e.l,t,r+1),ol(e.r,t,r+1)):t[e.s]=r},ll=function(e){for(var t=e.length;t&&!e[--t];);for(var r=new zo(++t),n=0,i=e[0],a=1,s=function(e){r[n++]=e},o=1;o<=t;++o)if(e[o]==i&&o!=t)++a;else{if(!i&&a>2){for(;a>138;a-=138)s(32754);a>2&&(s(a>10?a-11<<5|28690:a-3<<5|12305),a=0)}else if(a>3){for(s(i),--a;a>6;a-=6)s(8304);a>2&&(s(a-3<<5|8208),a=0)}for(;a--;)s(i);a=1,i=e[o]}return[r.subarray(0,n),t]},ul=function(e,t){for(var r=0,n=0;n<t.length;++n)r+=e[n]*t[n];return r},cl=function(e,t,r){var n=r.length,i=nl(t+2);e[i]=255&n,e[i+1]=n>>>8,e[i+2]=255^e[i],e[i+3]=255^e[i+1];for(var a=0;a<n;++a)e[i+a+4]=r[a];return 8*(i+4+n)},dl=function(e,t,r,n,i,a,s,o,l,u,c){il(t,c++,r),++i[256];for(var d=sl(i,15),h=d[0],p=d[1],f=sl(a,15),m=f[0],v=f[1],g=ll(h),y=g[0],w=g[1],b=ll(m),S=b[0],k=b[1],C=new zo(19),M=0;M<y.length;++M)C[31&y[M]]++;for(M=0;M<S.length;++M)C[31&S[M]]++;for(var I=sl(C,7),O=I[0],x=I[1],E=19;E>4&&!O[qo[E-1]];--E);var R,N,A,T,D=u+5<<3,L=ul(i,$o)+ul(a,el)+s,F=ul(i,h)+ul(a,m)+s+14+3*E+ul(C,O)+(2*C[16]+3*C[17]+7*C[18]);if(D<=L&&D<=F)return cl(t,c,e.subarray(l,l+u));if(il(t,c,1+(F<L)),c+=2,F<L){R=_o(h,p,0),N=h,A=_o(m,v,0),T=m;var P=_o(O,x,0);for(il(t,c,w-257),il(t,c+5,k-1),il(t,c+10,E-4),c+=14,M=0;M<E;++M)il(t,c+3*M,O[qo[M]]);c+=3*E;for(var j=[y,S],B=0;B<2;++B){var z=j[B];for(M=0;M<z.length;++M){var H=31&z[M];il(t,c,P[H]),c+=O[H],H>15&&(il(t,c,z[M]>>>5&127),c+=z[M]>>>12)}}}else R=tl,N=$o,A=rl,T=el;for(M=0;M<o;++M)if(n[M]>255){H=n[M]>>>18&31,al(t,c,R[H+257]),c+=N[H+257],H>7&&(il(t,c,n[M]>>>23&31),c+=Uo[H]);var U=31&n[M];al(t,c,A[U]),c+=T[U],U>3&&(al(t,c,n[M]>>>5&8191),c+=Wo[U])}else al(t,c,R[n[M]]),c+=N[n[M]];return al(t,c,R[256]),c+N[256]},hl=new Ho([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),pl=function(){for(var e=new Ho(256),t=0;t<256;++t){for(var r=t,n=9;--n;)r=(1&r&&3988292384)^r>>>1;e[t]=r}return e}(),fl=function(e,t,r){for(;r;++t)e[t]=r,r>>>=8};function ml(e,t){void 0===t&&(t={});var r=function(){var e=4294967295;return{p:function(t){for(var r=e,n=0;n<t.length;++n)r=pl[255&r^t[n]]^r>>>8;e=r},d:function(){return 4294967295^e}}}(),n=e.length;r.p(e);var i,a,s,o,l=(i=e,a=t,s=10+((o=t).filename&&o.filename.length+1||0),8,function(e,t,r,n,i,a){var s=e.length,o=new Bo(n+s+5*(1+Math.floor(s/7e3))+i),l=o.subarray(n,o.length-i),u=0;if(!t||s<8)for(var c=0;c<=s;c+=65535){var d=c+65535;d<s?u=cl(l,u,e.subarray(c,d)):(l[c]=a,u=cl(l,u,e.subarray(c,s)))}else{for(var h=hl[t-1],p=h>>>13,f=8191&h,m=(1<<r)-1,v=new zo(32768),g=new zo(m+1),y=Math.ceil(r/3),w=2*y,b=function(t){return(e[t]^e[t+1]<<y^e[t+2]<<w)&m},S=new Ho(25e3),k=new zo(288),C=new zo(32),M=0,I=0,O=(c=0,0),x=0,E=0;c<s;++c){var R=b(c),N=32767&c,A=g[R];if(v[N]=A,g[R]=N,x<=c){var T=s-c;if((M>7e3||O>24576)&&T>423){u=dl(e,l,0,S,k,C,I,O,E,c-E,u),O=M=I=0,E=c;for(var D=0;D<286;++D)k[D]=0;for(D=0;D<30;++D)C[D]=0}var L=2,F=0,P=f,j=N-A&32767;if(T>2&&R==b(c-j))for(var B=Math.min(p,T)-1,z=Math.min(32767,c),H=Math.min(258,T);j<=z&&--P&&N!=A;){if(e[c+L]==e[c+L-j]){for(var U=0;U<H&&e[c+U]==e[c+U-j];++U);if(U>L){if(L=U,F=j,U>B)break;var W=Math.min(j,U-2),q=0;for(D=0;D<W;++D){var G=c-j+D+32768&32767,K=G-v[G]+32768&32767;K>q&&(q=K,A=G)}}}j+=(N=A)-(A=v[N])+32768&32767}if(F){S[O++]=268435456|Jo[L]<<18|Yo[F];var V=31&Jo[L],J=31&Yo[F];I+=Uo[V]+Wo[J],++k[257+V],++C[J],x=c+L,++M}else S[O++]=e[c],++k[e[c]]}}u=dl(e,l,a,S,k,C,I,O,E,c-E,u)}return function(e,t,r){(null==r||r>e.length)&&(r=e.length);var n=new(e instanceof zo?zo:e instanceof Ho?Ho:Bo)(r-0);return n.set(e.subarray(0,r)),n}(o,0,n+nl(u)+i)}(i,null==a.level?6:a.level,null==a.mem?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(i.length)))):12+a.mem,s,8,!0)),u=l.length;return function(e,t){var r=t.filename;if(e[0]=31,e[1]=139,e[2]=8,e[8]=t.level<2?4:9==t.level?2:0,e[9]=3,0!=t.mtime&&fl(e,4,Math.floor(new Date(t.mtime||Date.now())/1e3)),r){e[3]=8;for(var n=0;n<=r.length;++n)e[n+10]=r.charCodeAt(n)}}(l,t),fl(l,u-8,r.d()),fl(l,u-4,n),l}for(var vl="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",gl=new Int16Array(128).fill(-1),yl=0;yl<vl[qi];yl+=1)gl[vl[hi](yl)]=yl;var wl=e=>{for(var t="",r=0;r+2<e[qi];r+=3){var n=e[r]<<16|e[r+1]<<8|e[r+2];t+=vl[n>>18]+vl[n>>12&63]+vl[n>>6&63]+vl[63&n]}var i=e[qi]-r;if(1===i){var a=e[r]<<16;t+=vl[a>>18]+vl[a>>12&63]+"=="}else if(2===i){var s=e[r]<<16|e[r+1]<<8;t+=vl[s>>18]+vl[s>>12&63]+vl[s>>6&63]+"="}return t},bl=Symbol("elu-replay-masking-seal");class Sl{constructor(e,t,r,n,i,a,s){if(this.profile=void 0,this.profileHash=void 0,this.canonicalPayload=void 0,this.payloadByteLength=void 0,this.logicalRecords=void 0,this.nestingDepth=void 0,e!==bl)throw new Pa(Da(45));this.profile=t,this[Ai]=r,this.canonicalPayload=n,this.payloadByteLength=i,this[Di]=a,this.nestingDepth=s,Object.freeze(this)}static seal(e,t){var r;if(!va(e))throw new Pa(Da(46));if(!ha(t[ua]))throw new Pa(Da(47));var n=Es(t.profile);if(!ds(t[Ai]))throw new Pa(Da(48));var i=function(e,t,r){void 0===r&&(r=ps),ha(e)||fs(Da(32),t+" must be an array of replay records"),e[qi]>r[Li]&&fs(Da(35),t+" carries "+e[qi]+" records; the maximum is "+r[Li]);var n={depth:0},i=gs(e,0,t,r.maximumJsonNestingDepth,n),a=Ma(i);return a>r.maximumReplayDecodedBytes&&fs(Da(16),t+" serializes to "+a+" bytes; the maximum is "+r.maximumReplayDecodedBytes),Ia({[Hi]:i,bytes:hs(i),[Di]:e[qi],nestingDepth:n.depth})}(t[ua].map((t=>e(t,n))),Da(36),null!=(r=t[ca])?r:ps);return new Sl(bl,n,t[Ai],i[Hi],i.bytes[qi],i[Di],i.nestingDepth)}}var kl=e=>e instanceof Sl;(()=>{for(var e=new Int32Array(256),t=0;t<256;t+=1){for(var r=t,n=0;n<8;n+=1)r=1&r?r>>>1^3988292384:r>>>1;e[t]=r}})();var Cl="2.0.0",Ml=5242880,Il=/^elu-[a-z0-9][a-z0-9.-]{0,63}$/,Ol=/^elu-[a-z0-9-]+$/,xl=/^[A-Za-z][A-Za-z0-9._-]+$/,El=/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/,Rl=[Yn,Wi,Ui,ia,Bi,Ki,"endedAt",Pi,Jn,"codec",ei,"contentEncoding","payload",_i,Gi],Nl=[si,ra,zi],Al=[di,ti,Ei,"appliedBeforeSerialization",vi,Ea],Tl=[Yn,fi,Qi,la,"facade","build"],Dl=["name",Xi];function Ll(e){throw new ja(e)}var Fl=function(e,t,r,n){void 0===n&&(n=1);var i=fa(e)?ga(e):null;return ba(i)||i<n||i>r?Ll(t+" must be a string of "+n+" to "+r+" Unicode scalars"):e},Pl=(e,t)=>(wa(e)||Ll(t+" must be a safe non-negative integer"),e),jl=(e,t)=>(ds(e)||Ll(t+" must be a lowercase sha256 hash"),e),Bl=function(e,t,r,n){for(var i of(void 0===n&&(n=[]),pa(e)&&Ca(e,t)||Ll(r+" must contain only schema-defined fields"),t))n.includes(i)||Sa(e,i)||Ll(r+" "+i+" is required");return e},zl=(e,t)=>{var r=Bl(e,Nl,t);return Ia({[si]:Fl(r[si],t+" anonymousId",256),[ra]:ba(r[ra])?null:Fl(r[ra],t+" userId",512),[zi]:Pl(r[zi],t+" revision")})},Hl=(e,t)=>{var r=Bl(e,Al,t);return!0!==r.appliedBeforeSerialization&&Ll(t+" appliedBeforeSerialization must be true"),!0!==r[vi]&&Ll(t+" secureInputsMasked must be true"),ma(r[$n])||Ll(t+" platformFallbackApplied must be a boolean"),Ia({[di]:Fl(r[di],t+" policyRevision",128),[ti]:jl(r[ti],t+" effectivePolicyHash"),[Ei]:jl(r[Ei],t+" maskingProfileHash"),appliedBeforeSerialization:!0,[vi]:!0,[$n]:r[$n]})},Ul=(e,t,r)=>{var n=Bl(e,Dl,t),i=Fl(n.name,t+" name",256);return r.test(i)||Ll(t+" name is invalid"),Ia({name:i,[Xi]:Fl(n[Xi],t+" version",64)})},Wl=function(e,t){void 0===t&&(t="replay versions");var n=Bl(e,Tl,t,["build"]);2!==n[Yn]&&Ll(t+" schemaVersion must be 2"),n[fi]!==Cl&&Ll(t+" contractVersion must be "+Cl),"browser"!==n[Qi]&&"android"!==n[Qi]&&"ios"!==n[Qi]&&Ll(t+" platform is unsupported");var i=Ul(n[la],t+" runtime",Ol),a=Ul(n.facade,t+" facade",xl);return Ia(r({[Yn]:2,[fi]:Cl,[Qi]:n[Qi],[la]:i,facade:a},Sa(n,"build")?{build:Fl(n.build,t+" build",128)}:{}))},ql=function(e,t){void 0===t&&(t="replay chunk");var r=Bl(e,Rl,t);2!==r[Yn]&&Ll(t+" schemaVersion must be 2");var n=Fl(r[Ki],t+" startedAt",64),i=Fl(r.endedAt,t+" endedAt",64);((e,t)=>{if(e.epochDay!==t.epochDay)return e.epochDay<t.epochDay?-1:1;if(e[yi]!==t[yi])return e[yi]<t[yi]?-1:1;if(e[pi]!==t[pi])return e[pi]?1:-1;for(var r=Math.max(e[Xn][qi],t[Xn][qi]),n=0;n<r;n+=1){var i=e[Xn][hi](n)||48,a=t[Xn][hi](n)||48;if(i!==a)return i<a?-1:1}return 0})(Ya(n,t+" startedAt",64),Ya(i,t+" endedAt",64))>0&&Ll(t+" endedAt must not precede startedAt");var a=Fl(r.codec,t+" codec",68);return Il.test(a)||Ll(t+" codec is invalid"),"none"!==r[ei]&&"gzip"!==r[ei]&&Ll(t+" compression is unsupported"),"base64"!==r.contentEncoding&&Ll(t+" contentEncoding must be base64"),fa(r.payload)&&0!==r.payload[qi]&&El.test(r.payload)||Ll(t+" payload must be non-empty canonical base64"),Ia({[Yn]:2,[Wi]:Fl(r[Wi],t+" replayId",256),[Ui]:Fl(r[Ui],t+" sessionId",256),[ia]:Fl(r[ia],t+" chunkId",256),[Bi]:Pl(r[Bi],t+" sequence"),[Ki]:n,endedAt:i,[Pi]:zl(r[Pi],t+" identity"),[Jn]:Pl(r[Jn],t+" contextRevision"),codec:a,[ei]:r[ei],contentEncoding:"base64",payload:r.payload,[_i]:Hl(r[_i],t+" privacy"),[Gi]:Wl(r[Gi],t+" versions")})},Gl=function(){var e=t((function*(e,t){var r=(e=>hs(ys(ql(e),"replay chunk")))(e),n=yield cs((e=>{var t=hs("elu-sdk-replay-request-v2"),r=new Uint8Array(t[qi]+1+4+e[qi]);r.set(t,0),r[t[qi]]=0;var n=e[qi];return r[t[qi]+1]=n>>>24&255,r[t[qi]+2]=n>>>16&255,r[t[qi]+3]=n>>>8&255,r[t[qi]+4]=255&n,r.set(e,t[qi]+5),r})(r),t);return Ia({[ji]:"request_"+n,canonicalChunk:r})}));return function(t,r){return e.apply(this,arguments)}}(),Kl=function(){var e=t((function*(e,t){pa(t)||Ll(Da(76));var r,n=Fl(t[ni],xa,128),i=void 0===(r=t[mi])?Ml:!wa(r)||r<1?Ll(Da(77)):Math.min(r,Ml),a=ql(e),s=yield Gl(a,t[oa]),o=Ia({[Yn]:2,[ji]:s[ji],chunk:a}),l=hs(ys(o,"replay request"));l[qi]>i&&Ll("replay request is "+l[qi]+" bytes; the effective limit is "+i);var u=yield cs(l,t[oa]);return Ia({[ni]:n,[na]:o,[Ni]:l,canonicalRequestSha256:"sha256:"+u,[ai]:l[qi]})}));return function(t,r){return e.apply(this,arguments)}}(),Vl=function(){var e=t((function*(e){var t=(e=>{if(!kl(e))throw new La(Da(32),Da(65));var t,r=hs(e.canonicalPayload);try{t=ml(r,{mtime:0})}catch(e){return function(e,t){throw new La("invalid-gzip",t)}(0,Da(62))}return Object.freeze({codec:"elu-browser-dom-v1",[ei]:"gzip",contentEncoding:"base64",payload:wl(t),compressedByteLength:t[qi],decodedByteLength:r[qi],[Di]:e[Di],proof:e})})(Sl.seal(os,{profile:e.profile,[Ai]:e[Ai],[ua]:e[ua]})),n=(e=>{pa(e)&&pa(e.payload)&&kl(e.payload.proof)||Ll(Da(69));var t=e.payload;return ql({[Yn]:2,[Wi]:e[Wi],[Ui]:e[Ui],[ia]:e[ia],[Bi]:e[Bi],[Ki]:e[Ki],endedAt:e.endedAt,[Pi]:e[Pi],[Jn]:e[Jn],codec:t.codec,[ei]:t[ei],contentEncoding:t.contentEncoding,payload:t.payload,[_i]:{[di]:e[di],[ti]:e[ti],[Ei]:t.proof[Ai],appliedBeforeSerialization:!0,[vi]:!0,[$n]:t.proof.profile[$n]},[Gi]:e[Gi]})})({[Wi]:e[Wi],[Ui]:e[Ui],[ia]:e[ia],[Bi]:e[Bi],[Ki]:e[Ki],endedAt:e.endedAt,[Pi]:e[Pi],[Jn]:e[Jn],payload:t,[di]:e[di],[ti]:e[ti],[Gi]:e[Gi]});return Kl(n,r({[ni]:e[ni]},void 0===e[mi]?{}:{[mi]:e[mi]},void 0===e[oa]?{}:{[oa]:e[oa]}))}));return function(t){return e.apply(this,arguments)}}(),Jl=e=>{if(!Number[Qn](e[Ti])||e[Ti]<1)throw new Error(Da(68));var n=Math.min(e[Ti],268435456),i=Ia({[gi]:null,[wi]:null,chunkStartedAtMs:null,chunkBytes:0,chunkEvents:0,[Bi]:0,awaitingSnapshot:!1}),a=null,s=!1,o=e[Pi][Wi](),l=null,u=null,c=()=>{if(!l){var t=o;l=Promise.resolve().then((()=>null==e.onReplayClosed?void 0:e.onReplayClosed(t)))}return l},d=0===e.policy[li],h=!1,p=[],f=0,m=0,v=0,g=Promise[Zi](),y=function(t,r){void 0===r&&(r=!1);try{null==e.onSealFailure||e.onSealFailure(null!=t?t:new Error(Da(70)),r)}catch(e){}},w=()=>{p=[],f=0},b=()=>{s=!0,a=null,w(),m=0,v=0},S=e=>{b(),y(e,!0)},k=function(){var r=t((function*(){for(;!s&&d&&p[qi]>0;){var t=p.shift();f-=t.prepared[ai];try{yield e.sink(t.prepared,{discarded:!1,[Bi]:t[Bi]}),h=!0}catch(e){S(e)}}}));return function(){return r.apply(this,arguments)}}(),C=function(){var i=t((function*(t,i){var l=a;if(a=null,!s&&l&&0!==l[ua][qi]){if(t)return m-=l.estimatedBytes,void(v-=l[ua][qi]);try{var u=yield Vl(r({},e.seal,{[mi]:e.policy[mi],[ua]:l[ua],[Wi]:o,[Ui]:e[Ui],[ia]:e[Pi][ia](),[Bi]:i,[Ki]:e[Pi].instant(l.startedAtMs),endedAt:e[Pi].instant(l.endedAtMs)}));s||t||(d?(yield e.sink(u,{discarded:!1,[Bi]:i}),h=!0):u[ai]>n-f||p[qi]>=1e4?S(new Error(Da(72))):(p.push({prepared:u,[Bi]:i}),f+=u[ai]))}catch(t){s||(!d||e.policy[li]>0&&!h?S(t):y(t))}finally{m=Math.max(0,m-l.estimatedBytes),v=Math.max(0,v-l[ua][qi])}}}));return function(e,t){return i.apply(this,arguments)}}();return{record(u,p,f){if(s)return Promise[Zi]();if(!Number[sa](p)||p<0||!ba(i[wi])&&p<i[wi]||!Number[Qn](f)||f<1)return S(new Error(Da(31))),g;if(f>n-m||v>=1e4)return S(new Error(Da(71))),g;m+=f,v+=1;var y=((e,t,n)=>{var i,a=t.atMs,s=t.byteLength,o=!0===t.opensSnapshot;if(null===e[gi]||null===e[wi])return Ia({action:"buffer",discardSealedChunk:!1,state:Ia(r({},Fo(e,a,s,0,o),{[gi]:a}))});var l=a-e[wi],u=a-e[gi];if(l>=1e3*n[ii]||u>=1e3*n[Zn]){var c,d=e[wi]-(null!=(c=e[gi])?c:e[wi]);return Ia({action:"cut-session",discardSealedChunk:d<1e3*n[li],state:Ia(r({},Fo(e,a,s,0,o),{[gi]:a}))})}var h=e.chunkEvents>0&&e.chunkBytes+s>n[mi];return e.chunkEvents>0&&!e.awaitingSnapshot&&(h||e.chunkEvents>=5e3||o)?Ia({action:"cut-chunk",discardSealedChunk:!1,state:Fo(e,a,s,e[Bi]+1,o)}):Ia({action:"buffer",discardSealedChunk:!1,state:Ia(r({},e,{[wi]:a,chunkStartedAtMs:null!=(i=e.chunkStartedAtMs)?i:a,chunkBytes:e.chunkBytes+s,chunkEvents:e.chunkEvents+1,awaitingSnapshot:o}))})})(i,{atMs:p,[ai]:f,opensSnapshot:Lo(u)},e.policy),b=i[Bi];return i=y.state,g=g.then(t((function*(){if(!s){if("buffer"!==y.action){if(yield C(y.discardSealedChunk,b),s)return;if("cut-session"===y.action){try{yield c()}catch(e){throw S(e),e}if(s)return;w(),d=0===e.policy[li],h=!1,o=e[Pi][Wi](),l=null}}((e,t,r)=>{if(a)return a[ua].push(e),a.endedAtMs=t,void(a.estimatedBytes+=r);a={[ua]:[e],startedAtMs:t,endedAtMs:t,estimatedBytes:r}})(u,p,f),!d&&!ba(y.state[gi])&&p-y.state[gi]>=1e3*e.policy[li]&&(d=!0,yield k())}}))),g},flush(){if(s)return Promise[Zi]();if(i.awaitingSnapshot)return g;var e=i[Bi];return i.chunkEvents>0&&(i=Object.freeze(r({},i,{chunkStartedAtMs:null,chunkBytes:0,chunkEvents:0,[Bi]:i[Bi]+1}))),g=g.then((()=>C(!1,e)))},hasBufferedWork:()=>!s&&(v>0||p[qi]>0||!ba(a)),bufferedBytes:()=>s?0:m+f,close:()=>(b(),u||(u=g.then(c,function(){var e=t((function*(e){throw yield c(),e}));return function(t){return e.apply(this,arguments)}}())),u)}},Yl=["console"],Zl="__eluOwnedRecorderLeaseV1",Ql=e=>{var t=document;if(Zl in t)throw new Error("Recorder is already owned");var i={};Object.defineProperty(t,Zl,{value:i,configurable:!0});var a=!1,s=()=>{if(!a){if(t[Zl]!==i)throw new Error("Recorder ownership changed");delete t[Zl],a=!0}},o=e.console,l=n(e,Yl),u=[...o.recordConsole?[qn(r({},o.consolePlugin,{level:[...o.consolePlugin.level]}))]:[],...l.plugins],c=xn(r({},l,{plugins:u}));if("function"==typeof c)return()=>{c(),s()};s()};Object.assign(Ql,{takeFullSnapshot:()=>xn.takeFullSnapshot(),addCustomEvent:(e,t)=>xn.addCustomEvent(e,t)});var Xl=e=>{var t=Do(r({},e,{engine:Ql,document:document}));if(e.installSessionDriver){var n=!1;try{n=e.isCurrent()&&e.installSessionDriver(Jl)&&e.isCurrent()}finally{n||t.close()}}return t};export{Xl as createEluOwnedRecorder};
|
|
2
|
+
function e(e,t,r,n,i,a,s){try{var o=e[a](s),l=o.value}catch(e){return void r(e)}o.done?t(l):Promise.resolve(l).then(n,i)}function t(t){return function(){var r=this,n=arguments;return new Promise((function(i,a){var s=t.apply(r,n);function o(t){e(s,i,a,o,l,"next",t)}function l(t){e(s,i,a,o,l,"throw",t)}o(void 0)}))}}function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},r.apply(null,arguments)}function n(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}class i extends Error{constructor(){super("Recorder cleanup incomplete"),this.name="RecorderCleanupError"}}var a=e=>e instanceof i||!!e&&"object"==typeof e&&"RecorderCleanupError"===e.name;function s(){var e=[],t=!1,r=!1,n=e=>{try{e()}catch(e){r=!0}},a=()=>{if(r)throw new i};return{close:()=>{for(t=!0;e.length;)n(e.pop());a()},poison(){r=!0},add(r){t?(n(r),a()):e.push(r)},replace(e,r,n){if(t)throw new i;var a=Object.getOwnPropertyDescriptor(e,r);this.add((()=>{if(a)Object.defineProperty(e,r,a);else if(!Reflect.deleteProperty(e,r))throw new Error("Recorder patch restoration failed")})),e[r]=n}}}function o(e){var t=s();try{return e(t),t.close}catch(e){throw a(e)&&t.poison(),t.close(),e}}var l=function(e){return 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}({}),u=function(e){return 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[e.Selection=14]="Selection",e[e.AdoptedStyleSheet=15]="AdoptedStyleSheet",e[e.CustomElement=16]="CustomElement",e}({}),c=function(e){return 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}({}),d=function(e){return e[e.Mouse=0]="Mouse",e[e.Pen=1]="Pen",e[e.Touch=2]="Touch",e}({}),h=function(e){return e[e["2D"]=0]="2D",e[e.WebGL=1]="WebGL",e[e.WebGL2=2]="WebGL2",e}({}),p=function(e){return e[e.Play=0]="Play",e[e.Pause=1]="Pause",e[e.Seeked=2]="Seeked",e[e.VolumeChange=3]="VolumeChange",e[e.RateChange=4]="RateChange",e}({}),f=function(e){return e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment",e}({});function m(e,t){return-1!==e.indexOf(t)}var v={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot"],MutationObserver:[]},g={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:["querySelector","querySelectorAll"],MutationObserver:["constructor"]},y={};function b(e){if(y[e])return y[e];var t=function(e){var t,r=null==globalThis||null==(t=globalThis.Zone)||null==t.__symbol__?void 0:t.__symbol__(e);return r&&globalThis[r]?globalThis[r]:void 0}(e)||globalThis[e],r=t.prototype,n=e in v?v[e]:void 0,i=Boolean(n&&n.every((e=>{var t;return Boolean(null==(t=Object.getOwnPropertyDescriptor(r,e))||null==(t=t.get)?void 0:t.toString().includes("[native code]"))}))),a=e in g?g[e]:void 0,s=Boolean(a&&a.every((e=>{var t;return"function"==typeof r[e]&&(null==(t=r[e])?void 0:t.toString().includes("[native code]"))})));if(i&&s)return y[e]=t.prototype,t.prototype;var o=document.createElement("iframe");o.style.display="none";var l,u=!1;try{document.body.appendChild(o);var c=o.contentWindow;if(!c)return t.prototype;var d=c[e].prototype;return d?(m(l=navigator.userAgent,"AppleWebKit")&&!m(l,"Chrome")&&(o.classList.add("rr-block","ph-no-capture"),o.setAttribute("__rrwebUntaintedPrototype",e),u=!0),y[e]=d):r}catch(e){return r}finally{!u&&o.parentNode&&document.body.removeChild(o)}}var w={};function S(e,t,r){var n,i=e+"."+String(r);if(w[i])return w[i].call(t);var a=b(e),s=null==(n=Object.getOwnPropertyDescriptor(a,r))?void 0:n.get;return s?(w[i]=s,s.call(t)):t[r]}var k={};function C(e,t,r){var n=e+"."+String(r);if(k[n])return k[n].bind(t);var i=b(e)[r];return"function"!=typeof i?t[r]:(k[n]=i,i.bind(t))}function M(){return b("MutationObserver").constructor}function I(e,t,r){try{if(!(t in e))return()=>{};var n=e[t],i={next:n},a=r((function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return i.next.apply(this,t)}));return"function"==typeof a&&(a.prototype=a.prototype||{},Object.defineProperties(a,{__rrweb_original__:{enumerable:!1,value:n},__rrweb_layer__:{enumerable:!1,value:i}})),e[t]=a,()=>{if(e[t]!==a)for(var r=e[t];"function"==typeof r&&r.__rrweb_layer__;){var n=r.__rrweb_layer__;if(n.next===a)return void(n.next=i.next);r=n.next}else e[t]=i.next}}catch(e){return()=>{}}}var x={childNodes:function(e){return S("Node",e,"childNodes")},parentNode:function(e){return S("Node",e,"parentNode")},parentElement:function(e){return S("Node",e,"parentElement")},textContent:function(e){return S("Node",e,"textContent")},contains:function(e,t){return C("Node",e,"contains")(t)},getRootNode:function(e){return C("Node",e,"getRootNode")()},host:function(e){return e&&"host"in e?S("ShadowRoot",e,"host"):null},styleSheets:function(e){return e.styleSheets},shadowRoot:function(e){return e&&"shadowRoot"in e?S("Element",e,"shadowRoot"):null},querySelector:function(e,t){return C("Element",e,"querySelector")(t)},querySelectorAll:function(e,t){return C("Element",e,"querySelectorAll")(t)},mutationObserver:M,patch:I};function O(e){return e.nodeType===e.ELEMENT_NODE}function E(e){var t=e&&"host"in e&&"mode"in e&&x.host(e)||null;return Boolean(t&&"shadowRoot"in t&&x.shadowRoot(t)===e)}function R(e){return"[object ShadowRoot]"===Object.prototype.toString.call(e)}function N(e){try{var t=e.rules||e.cssRules;if(!t)return null;var r=e.href;!r&&e.ownerNode&&(r=e.ownerNode.baseURI);var n=Array.from(t,(e=>T(e,r))).join("");return(i=n).includes(" background-clip: text;")&&!i.includes(" -webkit-background-clip: text;")&&(i=i.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;")),i}catch(e){return null}var i}function T(e,t){if(function(e){return"styleSheet"in e}(e)){var r;try{r=N(e.styleSheet)||function(e){var t=e.cssText;if(t.split('"').length<3)return t;var r=["@import","url("+JSON.stringify(e.href)+")"];return""===e.layerName?r.push("layer"):e.layerName&&r.push("layer("+e.layerName+")"),e.supportsText&&r.push("supports("+e.supportsText+")"),e.media.length&&r.push(e.media.mediaText),r.join(" ")+";"}(e)}catch(t){r=e.cssText}try{var n;if(r&&null!=(n=e.styleSheet)&&n.href)return W(r,e.styleSheet.href)}catch(e){}return r}var i,a=e.cssText;return function(e){return"selectorText"in e}(e)&&e.selectorText.includes(":")&&(i=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm,a=a.replace(i,"$1\\$2")),t?W(a,t):a}class A{constructor(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}getId(e){var t;if(!e)return-1;var r=null==(t=this.getMeta(e))?void 0:t.id;return null!=r?r:-1}getNode(e){return this.idNodeMap.get(e)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(e){return this.nodeMetaMap.get(e)||null}removeNodeFromMap(e){var t=this.getId(e);if(this.idNodeMap.delete(t),e.childNodes&&e.childNodes.forEach((e=>this.removeNodeFromMap(e))),O(e)){var r=x.shadowRoot(e);r&&this.removeNodeFromMap(r),"IFRAME"===e.nodeName&&e.contentDocument&&this.removeNodeFromMap(e.contentDocument)}}has(e){return this.idNodeMap.has(e)}hasNode(e){return this.nodeMetaMap.has(e)}add(e,t){var r=t.id;this.idNodeMap.set(r,e),this.nodeMetaMap.set(e,t)}replace(e,t){var r=this.getNode(e);if(r){var n=this.nodeMetaMap.get(r);n&&this.nodeMetaMap.set(t,n)}this.idNodeMap.set(e,t)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function L(e){var t=e.element,r=e.maskInputOptions,n=e.tagName,i=e.type,a=e.value,s=e.maskInputFn,o=a||"",l=i&&D(i);return(r[n.toLowerCase()]||l&&r[l])&&(o=s?s(o,t):"*".repeat(o.length)),o}function D(e){return e.toLowerCase()}var P="__rrweb_original__";function F(e){try{var t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?D(t):null}catch(e){return null}}var j=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,B=/^(?:[a-z+]+:)?\/\//i,U=/^www\..*/i,z=/^(data:)([^,]*),(.*)/i;function W(e,t){return(e||"").replace(j,((e,r,n,i,a,s)=>{var o,l=n||a||s,u=r||i||"";if(!l)return e;if(B.test(l)||U.test(l))return"url("+u+l+u+")";if(z.test(l))return"url("+u+l+u+")";if("/"===l[0])return"url("+u+(((o=t).indexOf("//")>-1?o.split("/").slice(0,3).join("/"):o.split("/")[0]).split("?")[0]+l)+u+")";var c=t.split("/"),d=l.split("/");for(var h of(c.pop(),d))"."!==h&&(".."===h?c.pop():c.push(h));return"url("+u+c.join("/")+u+")"}))}var H,V,G="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPgogIDxkZWZzPgogICAgPHBhdHRlcm4gaWQ9InN0cmlwZXMiIHBhdHRlcm5Vbml0cz0idXNlclNwYWNlT25Vc2UiIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiI+CiAgICAgIDxyZWN0IHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgZmlsbD0iYmxhY2siLz4KICAgICAgPHBhdGggZD0iTTggMEgxNkwwIDE2VjhMOCAwWiIgZmlsbD0iIzJEMkQyRCIvPgogICAgICA8cGF0aCBkPSJNMTYgOFYxNkg4TDE2IDhaIiBmaWxsPSIjMkQyRDJEIi8+CiAgICA8L3BhdHRlcm4+CiAgPC9kZWZzPgogIDxyZWN0IHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIGZpbGw9InVybCgjc3RyaXBlcykiLz4KPC9zdmc+Cg==",J=4096,q=1,Y=new RegExp("[^a-z0-9-_:]"),Q=-2;function Z(){return q++}var K=/^[^ \t\n\r\u000c]+/,X=/^[, \t\n\r\u000c]+/,_=new WeakMap;function $(e,t){return t&&""!==t.trim()?ee(e,t):t}function ee(e,t){var r=_.get(e);if(r||(r=e.createElement("a"),_.set(e,r)),t){if(t.startsWith("blob:")||t.startsWith("data:"))return t}else t="";return r.setAttribute("href",t),r.href}function te(e,t){return null!=t&&t.maxBase64ImageLength?function(e,t){return!t||e.length<=t?e:G}(e,t.maxBase64ImageLength):e}function re(e,t,r,n,i,a){if(!n)return n;if("src"===r||"href"===r&&("use"!==t||"#"!==n[0])){if("link"===t&&i){var s,o=null==(s=i.sheet)?void 0:s.href;if(o)return o}var l=$(e,n);if(l.startsWith("data:")){if("img"===t&&i){var u=l;return(null!=a&&a.type||void 0!==(null==a?void 0:a.quality))&&(u=function(e,t,r,n){if(!e.complete||0===e.naturalWidth)return t;if(e.naturalWidth>J||e.naturalHeight>J)return t;try{var i=document.createElement("canvas");i.width=e.naturalWidth,i.height=e.naturalHeight;var a=i.getContext("2d");return a?(a.drawImage(e,0,0),i.toDataURL(r||"image/webp",null!=n?n:.4)):t}catch(e){return t}}(i,l,a.type,a.quality)),te(u,a)}if("image"===t)return te(l,a)}return l}if("xlink:href"===r&&"#"!==n[0]){var c=$(e,n);return"image"===t&&c.startsWith("data:")?te(c,a):c}return"background"!==r||"table"!==t&&"td"!==t&&"th"!==t?"srcset"===r?function(e,t){if(""===t.trim())return t;var r=0;function n(e){var n,i=e.exec(t.substring(r));return i?(n=i[0],r+=n.length,n):""}for(var i=[];n(X),!(r>=t.length);){var a=n(K);if(","===a.slice(-1))a=$(e,a.substring(0,a.length-1)),i.push(a);else{var s="";a=$(e,a);for(var o=!1;;){var l=t.charAt(r);if(""===l){i.push((a+s).trim());break}if(o)")"===l&&(o=!1);else{if(","===l){r+=1,i.push((a+s).trim());break}"("===l&&(o=!0)}s+=l,r+=1}}}return i.join(", ")}(e,n):"style"===r?W(n,ee(e)):"object"===t&&"data"===r?$(e,n):n:$(e,n)}function ne(e,t,r){return("video"===e||"audio"===e)&&"autoplay"===t}function ie(e,t,r){if(!e)return!1;if(e.nodeType!==e.ELEMENT_NODE)return!!r&&ie(x.parentNode(e),t,r);for(var n=e.classList.length;n--;){var i=e.classList[n];if(t.test(i))return!0}return!!r&&ie(x.parentNode(e),t,r)}function ae(e,t,r,n){var i;if(O(e)){if(i=e,!x.childNodes(i).length&&!x.shadowRoot(i))return!1}else if(!(i=x.parentElement(e))){var a=x.parentNode(e);a&&E(a)&&(i=x.host(a))}try{for(;i;){if("string"==typeof t){if(n?i.closest("."+t):i.classList.contains(t))return!0}else if(ie(i,t,n))return!0;if(r&&(n?i.closest(r):i.matches(r)))return!0;if(!n)return!1;var s=x.getRootNode(i);i=E(s)?x.host(s):null}}catch(e){}return!1}function se(e,t,r){var n=e.removeEventListener;"function"==typeof n&&n.call(e,t,r)}var oe=new Map;function le(){var e=!1;for(var t of[...oe.values()].reverse())try{t.abort()}catch(t){e=!0}if(e){var r=new Error("Recorder stylesheet cleanup incomplete");throw r.name="RecorderCleanupError",r}}function ue(e,t){return Array.from(e.styleSheets).find((e=>e.href===t))}function ce(e){return null==e?"":e.toLowerCase()}var de=50,he=!1;function pe(e,t){var r=t.doc,n=t.mirror,i=t.blockClass,a=t.blockSelector,s=t.maskTextClass,o=t.maskTextSelector,l=t.skipChild,u=void 0!==l&&l,c=t.inlineStylesheet,d=void 0===c||c,h=t.maskInputOptions,p=void 0===h?{}:h,m=t.maskTextFn,v=t.maskInputFn,g=t.slimDOMOptions,y=t.dataURLOptions,b=void 0===y?{}:y,w=t.inlineImages,S=void 0!==w&&w,k=t.recordCanvas,C=void 0!==k&&k,M=t.canvasMaskingConfigured,I=t.onSerialize,T=t.onIframeLoad,A=t.iframeLoadTimeout,j=void 0===A?5e3:A,B=t.onIframeListenerRegistered,U=t.onStylesheetLoad,z=t.stylesheetLoadTimeout,G=void 0===z?5e3:z,J=t.keepIframeSrcFn,q=void 0===J?()=>!1:J,K=t.newlyAddedElement,X=void 0!==K&&K,_=t.depth,$=void 0===_?0:_,te=t.maxDepth,ie=void 0===te?de:te,le=t.needsMask,fe=t.preserveWhiteSpace,me=void 0===fe||fe;if($>=ie)return he||(he=!0,console.warn("[rrweb-snapshot] DOM tree depth exceeded max depth of "+ie+". Children beyond this depth will not be recorded. This may indicate deeply nested DOM structures.")),null;le||(le=ae(e,s,o,void 0===le));var ve,ge=function(e,t){var r=t.doc,n=t.mirror,i=t.blockClass,a=t.blockSelector,s=t.needsMask,o=t.inlineStylesheet,l=t.maskInputOptions,u=void 0===l?{}:l,c=t.maskTextFn,d=t.maskInputFn,h=t.dataURLOptions,p=void 0===h?{}:h,m=t.inlineImages,v=t.recordCanvas,g=t.canvasMaskingConfigured,y=t.keepIframeSrcFn,b=t.newlyAddedElement,w=void 0!==b&&b,S=function(e,t){if(t.hasNode(e)){var r=t.getId(e);return 1===r?void 0:r}}(r,n);switch(e.nodeType){case e.DOCUMENT_NODE:return"CSS1Compat"!==e.compatMode?{type:f.Document,childNodes:[],compatMode:e.compatMode}:{type:f.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:f.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:S};case e.ELEMENT_NODE:return function(e,t){for(var r,n=t.doc,i=t.inlineStylesheet,a=t.maskInputOptions,s=void 0===a?{}:a,o=t.maskInputFn,l=t.dataURLOptions,u=void 0===l?{}:l,c=t.inlineImages,d=t.recordCanvas,h=t.canvasMaskingConfigured,p=t.keepIframeSrcFn,m=t.newlyAddedElement,v=void 0!==m&&m,g=t.rootId,y=function(e,t,r){try{if("string"==typeof t){if(e.classList.contains(t))return!0}else for(var n=e.classList.length;n--;){var i=e.classList[n];if(t.test(i))return!0}if(r)return e.matches(r)}catch(e){}return!1}(e,t.blockClass,t.blockSelector),b=function(e){if(e instanceof HTMLFormElement)return"form";var t=D(e.tagName);return Y.test(t)?"div":t}(e),w={},S=e.attributes.length,k=0;k<S;k++){var C=e.attributes[k];ne(b,C.name,C.value)||(w[C.name]=re(n,b,D(C.name),C.value,e,u))}if("link"===b&&i){var M=e.sheet;if(!M){var I=function(e){return e.href}(e);I&&!(M=ue(n,I))&&I.includes(".css")&&(M=ue(n,window.location.origin+"/"+I.replace(window.location.href,"")))}var O=null;M&&(O=N(M)),O&&(delete w.rel,delete w.href,w._cssText=O)}if("style"===b&&e.sheet&&!(e.innerText||x.textContent(e)||"").trim().length){var E=N(e.sheet);E&&(w._cssText=E)}if("input"===b||"textarea"===b||"select"===b){var R=e.value,T=e.checked;"radio"!==w.type&&"checkbox"!==w.type&&"submit"!==w.type&&"button"!==w.type&&R?w.value=L({element:e,type:F(e),tagName:b,value:R,maskInputOptions:s,maskInputFn:o}):T&&(w.checked=T)}if("option"===b&&(e.selected&&!s.select?w.selected=!0:delete w.selected),"dialog"===b&&e.open)try{w.rr_open_mode=e.matches("dialog:modal")?"modal":"non-modal"}catch(e){w.rr_open_mode="modal",w.ph_rr_could_not_detect_modal=!0}if("canvas"===b&&d&&(null==h||!h()))if("2d"===e.__context)(function(e){var t=e.getContext("2d");if(!t)return!0;for(var r=0;r<e.width;r+=50)for(var n=0;n<e.height;n+=50){var i=t.getImageData,a=P in i?i[P]:i;if(new Uint32Array(a.call(t,r,n,Math.min(50,e.width-r),Math.min(50,e.height-n)).data.buffer).some((e=>0!==e)))return!1}return!0})(e)||(w.rr_dataURL=e.toDataURL(u.type,u.quality));else if(!("__context"in e)){var A=e.toDataURL(u.type,u.quality),j=n.createElement("canvas");j.width=e.width,j.height=e.height,A!==j.toDataURL(u.type,u.quality)&&(w.rr_dataURL=A)}if("img"===b&&c){H||(H=n.createElement("canvas"),V=H.getContext("2d"));var B=e,U=B.currentSrc||B.getAttribute("src")||"<unknown-src>",z=B.crossOrigin,W=()=>{se(B,"load",W);try{H.width=B.naturalWidth,H.height=B.naturalHeight,V.drawImage(B,0,0),w.rr_dataURL=H.toDataURL(u.type,u.quality)}catch(e){if("anonymous"!==B.crossOrigin)return B.crossOrigin="anonymous",void(B.complete&&0!==B.naturalWidth?W():B.addEventListener("load",W));console.warn("Cannot inline img src="+U+"! Error: "+e)}"anonymous"===B.crossOrigin&&(z?w.crossOrigin=z:B.removeAttribute("crossorigin"))};B.complete&&0!==B.naturalWidth?W():B.addEventListener("load",W)}if("audio"===b||"video"===b){var G=w;G.rr_mediaState=e.paused?"paused":"played",G.rr_mediaCurrentTime=e.currentTime,G.rr_mediaPlaybackRate=e.playbackRate,G.rr_mediaMuted=e.muted,G.rr_mediaLoop=e.loop,G.rr_mediaVolume=e.volume}if(v||(e.scrollLeft&&(w.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(w.rr_scrollTop=e.scrollTop)),y){var J,q,Q,Z=e.getBoundingClientRect(),K=Z.width,X=Z.height,_=Z.left,$=Z.top,ee=null==(J=n.defaultView)?void 0:J.getComputedStyle(e);w={class:w.class,rr_width:K+"px",rr_height:X+"px",rr_left:Math.floor(_+((null==(q=n.defaultView)?void 0:q.scrollX)||0))+"px",rr_top:Math.floor($+((null==(Q=n.defaultView)?void 0:Q.scrollY)||0))+"px"},ee&&(w.rr_position=ee.position||"static",ee.transform&&"none"!==ee.transform&&(w.rr_transform=ee.transform),ee.display&&ee.display.startsWith("inline")&&(w.rr_display=ee.display))}"iframe"!==b||p(w.src)||(e.contentDocument||(w.rr_src=w.src),delete w.src);try{customElements.get(b)&&(r=!0)}catch(e){}return{type:f.Element,tagName:b,attributes:w,childNodes:[],isSVG:(te=e,Boolean("svg"===te.tagName||te.ownerSVGElement)||void 0),needBlock:y,rootId:g,isCustom:r};var te}(e,{doc:r,blockClass:i,blockSelector:a,inlineStylesheet:o,maskInputOptions:u,maskInputFn:d,dataURLOptions:p,inlineImages:m,recordCanvas:v,canvasMaskingConfigured:g,keepIframeSrcFn:y,newlyAddedElement:w,rootId:S});case e.TEXT_NODE:return function(e,t){var r=t.needsMask,n=t.maskTextFn,i=t.rootId,a=x.parentNode(e),s=a&&a.tagName,o=x.textContent(e),l="STYLE"===s||void 0,u="SCRIPT"===s||void 0;if(l&&o){try{var c;if(e.nextSibling||e.previousSibling);else if(null!=(c=a.sheet)&&c.cssRules){var d=N(a.sheet);d&&!/(?:^|[\s;{}])-?[a-zA-Z][\w-]*\s*:\s*;/.test(d)&&(o=d)}}catch(t){console.warn("Cannot get CSS styles from text's parentNode. Error: "+t,e)}o=W(o,ee(t.doc))}return u&&(o="SCRIPT_PLACEHOLDER"),!l&&!u&&o&&r&&(o=n?n(o,x.parentElement(e)):o.replace(/[\S]/g,"*")),{type:f.Text,textContent:o||"",isStyle:l,rootId:i}}(e,{doc:r,needsMask:s,maskTextFn:c,rootId:S});case e.CDATA_SECTION_NODE:return{type:f.CDATA,textContent:"",rootId:S};case e.COMMENT_NODE:return{type:f.Comment,textContent:x.textContent(e)||"",rootId:S};default:return!1}}(e,{doc:r,mirror:n,blockClass:i,blockSelector:a,needsMask:le,inlineStylesheet:d,maskInputOptions:p,maskTextFn:m,maskInputFn:v,dataURLOptions:b,inlineImages:S,recordCanvas:C,canvasMaskingConfigured:M,keepIframeSrcFn:q,newlyAddedElement:X});if(!ge)return console.warn(e,"not serialized"),null;ve=n.hasNode(e)?n.getId(e):function(e,t){if(t.comment&&e.type===f.Comment)return!0;if(e.type===f.Element){if(t.script&&("script"===e.tagName||"link"===e.tagName&&("preload"===e.attributes.rel&&"script"===e.attributes.as||"modulepreload"===e.attributes.rel)||"link"===e.tagName&&"prefetch"===e.attributes.rel&&"string"==typeof e.attributes.href&&"js"===function(e,t){var r,n;try{n=new URL(e,window.location.href)}catch(e){return null}var i=n.pathname.match(/\.([0-9a-z]+)(?:$)/i);return null!=(r=null==i?void 0:i[1])?r:null}(e.attributes.href)))return!0;if(t.headFavicon&&("link"===e.tagName&&"shortcut icon"===e.attributes.rel||"meta"===e.tagName&&(ce(e.attributes.name).match(/^msapplication-tile(image|color)$/)||"application-name"===ce(e.attributes.name)||["icon","apple-touch-icon","shortcut icon"].includes(ce(e.attributes.rel)))))return!0;if("meta"===e.tagName){if(t.headMetaDescKeywords&&ce(e.attributes.name).match(/^description|keywords$/))return!0;if(t.headMetaSocial&&(ce(e.attributes.property).match(/^(og|twitter|fb):/)||ce(e.attributes.name).match(/^(og|twitter):/)||"pinterest"===ce(e.attributes.name)))return!0;if(t.headMetaRobots&&["robots","googlebot","bingbot"].includes(ce(e.attributes.name)))return!0;if(t.headMetaHttpEquiv&&void 0!==e.attributes["http-equiv"])return!0;if(t.headMetaAuthorship&&(["author","generator","framework","publisher","progid"].includes(ce(e.attributes.name))||ce(e.attributes.property).match(/^article:/)||ce(e.attributes.property).match(/^product:/)))return!0;if(t.headMetaVerification&&["google-site-verification","yandex-verification","csrf-token","p:domain_verify","verify-v1","verification","shopify-checkout-api-token"].includes(ce(e.attributes.name)))return!0}}return!1}(ge,g)||!me&&ge.type===f.Text&&!ge.isStyle&&!ge.textContent.replace(/^\s+|\s+$/gm,"").length?Q:Z();var ye=Object.assign(ge,{id:ve});if(n.add(e,ye),ve===Q)return null;I&&I(e);var be=!u;if(ye.type===f.Element){be=be&&!ye.needBlock,delete ye.needBlock;var we=x.shadowRoot(e);we&&R(we)&&(ye.isShadowHost=!0)}if((ye.type===f.Document||ye.type===f.Element)&&be){g.headWhitespace&&ye.type===f.Element&&"head"===ye.tagName&&(me=!1);var Se={doc:r,mirror:n,blockClass:i,blockSelector:a,needsMask:le,maskTextClass:s,maskTextSelector:o,skipChild:u,inlineStylesheet:d,maskInputOptions:p,maskTextFn:m,maskInputFn:v,slimDOMOptions:g,dataURLOptions:b,inlineImages:S,recordCanvas:C,canvasMaskingConfigured:M,preserveWhiteSpace:me,onSerialize:I,onIframeLoad:T,iframeLoadTimeout:j,onIframeListenerRegistered:B,onStylesheetLoad:U,stylesheetLoadTimeout:G,keepIframeSrcFn:q,depth:$+1,maxDepth:ie};if(ye.type===f.Element&&"textarea"===ye.tagName&&void 0!==ye.attributes.value);else for(var ke of Array.from(x.childNodes(e))){var Ce=pe(ke,Se);Ce&&ye.childNodes.push(Ce)}var Me=null;if(O(e)&&(Me=x.shadowRoot(e)))for(var Ie of Array.from(x.childNodes(Me))){var xe=pe(Ie,Se);xe&&(R(Me)&&(xe.isShadow=!0),ye.childNodes.push(xe))}}var Oe=x.parentNode(e);if(Oe&&E(Oe)&&R(Oe)&&(ye.isShadow=!0),ye.type===f.Element&&"iframe"===ye.tagName){var Ee=function(e,t,r){var n,i=()=>{},a=e.contentWindow;if(!a)return i;try{n=a.document.readyState}catch(e){return i}var s=()=>t();if("complete"!==n){var o=!1,l=null,u=()=>{o||(o=!0,null!==l&&(clearTimeout(l),l=null),se(e,"load",c),e.addEventListener("load",s),t())},c=()=>u();return l=setTimeout(u,r),e.addEventListener("load",c),()=>{null!==l&&(clearTimeout(l),l=null),o?se(e,"load",s):(o=!0,se(e,"load",c))}}var d,h="about:blank";try{d=a.location.href}catch(e){return i}if(d!==h||e.src===h||""===e.src){var p=setTimeout(t,0);return e.addEventListener("load",s),()=>{clearTimeout(p),se(e,"load",s)}}return e.addEventListener("load",s),()=>{se(e,"load",s)}}(e,(()=>{var t=e.contentDocument;if(t&&T){var r=pe(t,{doc:t,mirror:n,blockClass:i,blockSelector:a,needsMask:le,maskTextClass:s,maskTextSelector:o,skipChild:!1,inlineStylesheet:d,maskInputOptions:p,maskTextFn:m,maskInputFn:v,slimDOMOptions:g,dataURLOptions:b,inlineImages:S,recordCanvas:C,canvasMaskingConfigured:M,preserveWhiteSpace:me,onSerialize:I,onIframeLoad:T,iframeLoadTimeout:j,onIframeListenerRegistered:B,onStylesheetLoad:U,stylesheetLoadTimeout:G,keepIframeSrcFn:q,depth:$+1,maxDepth:ie});r&&T(e,r)}}),j);null==B||B(e,Ee)}return ye.type===f.Element&&"link"===ye.tagName&&"stylesheet"===ye.attributes.rel&&function(t,l,u){if(!oe.has(t)){var c;try{c=t.sheet}catch(e){return}if(!c){var h,f=!1,y=!1,w=!1,k=!1,x={abort(){if(f=!0,void 0!==h){var e=h;h=void 0;try{clearTimeout(e)}catch(e){w=!0}}if(k){k=!1;try{t.removeEventListener("load",O)}catch(e){w=!0}}if(w||oe.get(t)!==x||oe.delete(t),w){var r=new Error("Recorder stylesheet cleanup incomplete");throw r.name="RecorderCleanupError",r}}},O=()=>{if(!f&&!y){y=!0;try{(()=>{if(U){var t=pe(e,{doc:r,mirror:n,blockClass:i,blockSelector:a,needsMask:le,maskTextClass:s,maskTextSelector:o,skipChild:!1,inlineStylesheet:d,maskInputOptions:p,maskTextFn:m,maskInputFn:v,slimDOMOptions:g,dataURLOptions:b,inlineImages:S,recordCanvas:C,canvasMaskingConfigured:M,preserveWhiteSpace:me,onSerialize:I,onIframeLoad:T,iframeLoadTimeout:j,onStylesheetLoad:U,stylesheetLoadTimeout:G,keepIframeSrcFn:q,depth:$,maxDepth:ie});t&&U(e,t)}})()}finally{x.abort()}}};oe.set(t,x);try{h=setTimeout(O,u),k=!0,t.addEventListener("load",O,{once:!0})}catch(e){throw x.abort(),e}}}}(e,0,G),ye}function fe(e){return!0===e||"all"===e?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:"all"===e,headMetaDescKeywords:"all"===e,headTitleMutations:"all"===e}:!1===e?{}:e}function me(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function ve(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if("function"==typeof t){var r=function e(){var r=!1;try{r=this instanceof e}catch{}return r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach((function(t){var n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:function(){return e[t]}})})),r}var ge,ye={exports:{}};function be(){if(ge)return ye.exports;ge=1;var e=String,t=function(){return{isColorSupported:!1,reset:e,bold:e,dim:e,italic:e,underline:e,inverse:e,hidden:e,strikethrough:e,black:e,red:e,green:e,yellow:e,blue:e,magenta:e,cyan:e,white:e,gray:e,bgBlack:e,bgRed:e,bgGreen:e,bgYellow:e,bgBlue:e,bgMagenta:e,bgCyan:e,bgWhite:e,blackBright:e,redBright:e,greenBright:e,yellowBright:e,blueBright:e,magentaBright:e,cyanBright:e,whiteBright:e,bgBlackBright:e,bgRedBright:e,bgGreenBright:e,bgYellowBright:e,bgBlueBright:e,bgMagentaBright:e,bgCyanBright:e,bgWhiteBright:e}};return ye.exports=t(),ye.exports.createColors=t,ye.exports}var we,Se,ke,Ce,Me,Ie,xe=ve(Object.freeze({__proto__:null,default:{}}));function Oe(){if(Se)return we;Se=1;var e=be(),t=xe;class r extends Error{constructor(e,t,n,i,a,s){super(e),this.name="CssSyntaxError",this.reason=e,a&&(this.file=a),i&&(this.source=i),s&&(this.plugin=s),void 0!==t&&void 0!==n&&("number"==typeof t?(this.line=t,this.column=n):(this.line=t.line,this.column=t.column,this.endLine=n.line,this.endColumn=n.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,r)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",void 0!==this.line&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(r){if(!this.source)return"";var n=this.source;null==r&&(r=e.isColorSupported);var i=e=>e,a=e=>e,s=e=>e;if(r){var o=e.createColors(!0),l=o.bold,u=o.gray,c=o.red;a=e=>l(c(e)),i=e=>u(e),t&&(s=e=>t(e))}var d=n.split(/\r?\n/),h=Math.max(this.line-3,0),p=Math.min(this.line+2,d.length),f=String(p).length;return d.slice(h,p).map(((e,t)=>{var r=h+1+t,n=" "+(" "+r).slice(-f)+" | ";if(r===this.line){if(e.length>160){var o=Math.max(0,this.column-20),l=Math.max(this.column+20,this.endColumn+20),u=e.slice(o,l),c=i(n.replace(/\d/g," "))+e.slice(0,Math.min(this.column-1,19)).replace(/[^\t]/g," ");return a(">")+i(n)+s(u)+"\n "+c+a("^")}var d=i(n.replace(/\d/g," "))+e.slice(0,this.column-1).replace(/[^\t]/g," ");return a(">")+i(n)+s(e)+"\n "+d+a("^")}return" "+i(n)+s(e)})).join("\n")}toString(){var e=this.showSourceCode();return e&&(e="\n\n"+e+"\n"),this.name+": "+this.message+e}}return we=r,r.default=r,we}function Ee(){if(Ce)return ke;Ce=1;var e=/(<)(\/?style\b)/gi,t=/(<)(!--)/g;function r(r){return"string"!=typeof r?r:r.includes("<")?r.replace(e,"\\3c $2").replace(t,"\\3c $2"):r}var n={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};class i{constructor(e){this.builder=e}atrule(e,t){var n=e.raws,i="@"+e.name,a=e.params?this.rawValue(e,"params"):"";if(void 0!==n.afterName?i+=n.afterName:a&&(i+=" "),e.nodes)this.block(e,i+a);else{var s=(n.between||"")+(t?";":"");this.builder(r(i+a+s),e)}}beforeAfter(e,t){var r;r="decl"===e.type?this.raw(e,null,"beforeDecl"):"comment"===e.type?this.raw(e,null,"beforeComment"):"before"===t?this.raw(e,null,"beforeRule"):this.raw(e,null,"beforeClose");for(var n=e.parent,i=0;n&&"root"!==n.type;)i+=1,n=n.parent;if(r.includes("\n")){var a=this.raw(e,null,"indent");if(a.length)for(var s=0;s<i;s++)r+=a}return r}block(e,t){var n,i=this.raw(e,"between","beforeOpen");this.builder(r(t+i)+"{",e,"start"),e.nodes&&e.nodes.length?(this.body(e),n=this.raw(e,"after")):n=this.raw(e,"after","emptyBody"),n&&this.builder(r(n)),this.builder("}",e,"end")}body(e){for(var t=e.nodes,n=t.length-1;n>0&&"comment"===t[n].type;)n-=1;for(var i=this.raw(e,"semicolon"),a="document"===e.type,s=0;s<t.length;s++){var o=t[s],l=this.raw(o,"before");l&&this.builder(a?l:r(l)),this.stringify(o,n!==s||i)}}comment(e){var t=this.raw(e,"left","commentLeft"),n=this.raw(e,"right","commentRight");this.builder(r("/*"+t+e.text+n+"*/"),e)}decl(e,t){var n=e.raws,i=this.raw(e,"between","colon"),a=e.prop+i+this.rawValue(e,"value");e.important&&(a+=n.important||" !important"),t&&(a+=";"),this.builder(r(a),e)}document(e){this.body(e)}raw(e,t,r){var i;if(r||(r=t),t&&void 0!==(i=e.raws[t]))return i;var a=e.parent;if("before"===r){if(!a||"root"===a.type&&a.first===e)return"";if(a&&"document"===a.type)return""}if(!a)return n[r];var s=e.root(),o=s.rawCache||(s.rawCache={});if(void 0!==o[r])return o[r];if("before"===r||"after"===r)return this.beforeAfter(e,r);var l,u="raw"+((l=r)[0].toUpperCase()+l.slice(1));return this[u]?i=this[u](s,e):s.walk((e=>{if(void 0!==(i=e.raws[t]))return!1})),void 0===i&&(i=n[r]),o[r]=i,i}rawBeforeClose(e){var t;return e.walk((e=>{if(e.nodes&&e.nodes.length>0&&void 0!==e.raws.after)return(t=e.raws.after).includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1})),t&&(t=t.replace(/\S/g,"")),t}rawBeforeComment(e,t){var r;return e.walkComments((e=>{if(void 0!==e.raws.before)return(r=e.raws.before).includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1})),void 0===r?r=this.raw(t,null,"beforeDecl"):r&&(r=r.replace(/\S/g,"")),r}rawBeforeDecl(e,t){var r;return e.walkDecls((e=>{if(void 0!==e.raws.before)return(r=e.raws.before).includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1})),void 0===r?r=this.raw(t,null,"beforeRule"):r&&(r=r.replace(/\S/g,"")),r}rawBeforeOpen(e){var t;return e.walk((e=>{if("decl"!==e.type&&void 0!==(t=e.raws.between))return!1})),t}rawBeforeRule(e){var t;return e.walk((r=>{if(r.nodes&&(r.parent!==e||e.first!==r)&&void 0!==r.raws.before)return(t=r.raws.before).includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1})),t&&(t=t.replace(/\S/g,"")),t}rawColon(e){var t;return e.walkDecls((e=>{if(void 0!==e.raws.between)return t=e.raws.between.replace(/[^\s:]/g,""),!1})),t}rawEmptyBody(e){var t;return e.walk((e=>{if(e.nodes&&0===e.nodes.length&&void 0!==(t=e.raws.after))return!1})),t}rawIndent(e){return e.raws.indent?e.raws.indent:(e.walk((r=>{var n=r.parent;if(n&&n!==e&&n.parent&&n.parent===e&&void 0!==r.raws.before){var i=r.raws.before.split("\n");return t=(t=i[i.length-1]).replace(/\S/g,""),!1}})),t);var t}rawSemicolon(e){var t;return e.walk((e=>{if(e.nodes&&e.nodes.length&&"decl"===e.last.type&&void 0!==(t=e.raws.semicolon))return!1})),t}rawValue(e,t){var r=e[t],n=e.raws[t];return n&&n.value===r?n.raw:r}root(e){if(this.body(e),e.raws.after){var t=e.raws.after,n=e.parent&&"document"===e.parent.type;this.builder(n?t:r(t))}}rule(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(r(e.raws.ownSemicolon),e,"end")}stringify(e,t){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,t)}}return ke=i,i.default=i,ke}function Re(){if(Ie)return Me;Ie=1;var e=Ee();function t(t,r){new e(r).stringify(t)}return Me=t,t.default=t,Me}var Ne,Te,Ae,Le,De,Pe,Fe,je,Be,Ue,ze,We,He,Ve,Ge,Je,qe,Ye,Qe,Ze,Ke,Xe,_e,$e,et,tt={};function rt(){return Ne||(Ne=1,tt.isClean=Symbol("isClean"),tt.my=Symbol("my")),tt}function nt(){if(Ae)return Te;Ae=1;var e=Oe(),t=Ee(),r=Re(),n=rt(),i=n.isClean,a=n.my;function s(e,t){var r=new e.constructor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&"proxyCache"!==n){var i=e[n],a=typeof i;"parent"===n&&"object"===a?t&&(r[n]=t):"source"===n?r[n]=i:Array.isArray(i)?r[n]=i.map((e=>s(e,r))):("object"===a&&null!==i&&(i=s(i)),r[n]=i)}return r}function o(e,t){if(t&&void 0!==t.offset)return t.offset;for(var r=1,n=1,i=0,a=0;a<e.length;a++){if(n===t.line&&r===t.column){i=a;break}"\n"===e[a]?(r=1,n+=1):r+=1}return i}class l{get proxyOf(){return this}constructor(e){for(var t in void 0===e&&(e={}),this.raws={},this[i]=!1,this[a]=!0,e)if("nodes"===t)for(var r of(this.nodes=[],e[t]))"function"==typeof r.clone&&r.parent?this.append(r.clone()):this.append(r);else this[t]=e[t]}addToError(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){var t=this.source;e.stack=e.stack.replace(/\n\s{4}at /,"$&"+t.input.from+":"+t.start.line+":"+t.start.column+"$&")}return e}after(e){return this.parent.insertAfter(this,e),this}assign(e){for(var t in void 0===e&&(e={}),e)this[t]=e[t];return this}before(e){return this.parent.insertBefore(this,e),this}cleanRaws(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between}clone(e){void 0===e&&(e={});var t=s(this);for(var r in e)t[r]=e[r];return t}cloneAfter(e){void 0===e&&(e={});var t=this.clone(e);return this.parent.insertAfter(this,t),t}cloneBefore(e){void 0===e&&(e={});var t=this.clone(e);return this.parent.insertBefore(this,t),t}error(t,r){if(void 0===r&&(r={}),this.source){var n=this.rangeBy(r),i=n.end,a=n.start;return this.source.input.error(t,{column:a.column,line:a.line},{column:i.column,line:i.line},r)}return new e(t)}getProxyProcessor(){return{get:(e,t)=>"proxyOf"===t?e:"root"===t?()=>e.root().toProxy():e[t],set:(e,t,r)=>(e[t]===r||(e[t]=r,"prop"!==t&&"value"!==t&&"name"!==t&&"params"!==t&&"important"!==t&&"text"!==t||e.markDirty()),!0)}}markClean(){this[i]=!0}markDirty(){if(this[i]){this[i]=!1;for(var e=this;e=e.parent;)e[i]=!1}}next(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e+1]}}positionBy(e){void 0===e&&(e={});var t="document"in this.source.input?this.source.input.document:this.source.input.css,r={column:this.source.start.column,line:this.source.start.line,offset:o(t,this.source.start)};if(e.index)r=this.positionInside(e.index);else if(e.word){var n=t.slice(o(t,this.source.start),o(t,this.source.end)).indexOf(e.word);-1!==n&&(r=this.positionInside(n))}return r}positionInside(e){for(var t=this.source.start.column,r=this.source.start.line,n=("document"in this.source.input?this.source.input.document:this.source.input.css),i=o(n,this.source.start),a=i+e,s=i;s<a;s++)"\n"===n[s]?(t=1,r+=1):t+=1;return{column:t,line:r,offset:a}}prev(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e-1]}}rangeBy(e){void 0===e&&(e={});var t="document"in this.source.input?this.source.input.document:this.source.input.css,r={column:this.source.start.column,line:this.source.start.line,offset:o(t,this.source.start)},n=this.source.end?{column:this.source.end.column+1,line:this.source.end.line,offset:"number"==typeof this.source.end.offset?this.source.end.offset:o(t,this.source.end)+1}:{column:r.column+1,line:r.line,offset:r.offset+1};if(e.word){var i=t.slice(o(t,this.source.start),o(t,this.source.end)).indexOf(e.word);-1!==i&&(r=this.positionInside(i),n=this.positionInside(i+e.word.length))}else e.start?r={column:e.start.column,line:e.start.line,offset:o(t,e.start)}:"number"==typeof e.index&&(r=this.positionInside(e.index)),e.end?n={column:e.end.column,line:e.end.line,offset:o(t,e.end)}:"number"==typeof e.endIndex?n=this.positionInside(e.endIndex):"number"==typeof e.index&&(n=this.positionInside(e.index+1));return(n.line<r.line||n.line===r.line&&n.column<=r.column)&&(n={column:r.column+1,line:r.line,offset:r.offset+1}),{end:n,start:r}}raw(e,r){return(new t).raw(this,e,r)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(){if(this.parent){for(var e=this,t=!1,r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];for(var a of n)a===this?t=!0:t?(this.parent.insertAfter(e,a),e=a):this.parent.insertBefore(e,a);t||this.remove()}return this}root(){for(var e=this;e.parent&&"document"!==e.parent.type;)e=e.parent;return e}toJSON(e,t){var r={},n=null==t;t=t||new Map;var i=0;for(var a in this)if(Object.prototype.hasOwnProperty.call(this,a)&&"parent"!==a&&"proxyCache"!==a){var s=this[a];if(Array.isArray(s))r[a]=s.map((e=>"object"==typeof e&&e.toJSON?e.toJSON(null,t):e));else if("object"==typeof s&&s.toJSON)r[a]=s.toJSON(null,t);else if("source"===a){if(null==s)continue;var o=t.get(s.input);null==o&&(o=i,t.set(s.input,i),i++),r[a]={end:s.end,inputId:o,start:s.start}}else r[a]=s}return n&&(r.inputs=[...t.keys()].map((e=>e.toJSON()))),r}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(e){void 0===e&&(e=r),e.stringify&&(e=e.stringify);var t="";return e(this,(e=>{t+=e})),t}warn(e,t,r){void 0===r&&(r={});var n={node:this};for(var i in r)n[i]=r[i];return e.warn(t,n)}}return Te=l,l.default=l,Te}function it(){if(De)return Le;De=1;var e=nt();class t extends e{constructor(e){super(e),this.type="comment"}}return Le=t,t.default=t,Le}function at(){if(Fe)return Pe;Fe=1;var e=nt();class t extends e{get variable(){return this.prop.startsWith("--")||"$"===this.prop[0]}constructor(e){e&&void 0!==e.value&&"string"!=typeof e.value&&(e=r({},e,{value:String(e.value)})),super(e),this.type="decl"}}return Pe=t,t.default=t,Pe}function st(){if(Be)return je;Be=1;var e,t,r,n,i=it(),a=at(),s=nt(),o=rt(),l=o.isClean,u=o.my;function c(e){return e.map((e=>(e.nodes&&(e.nodes=c(e.nodes)),delete e.source,e)))}function d(e){if(e[l]=!1,e.proxyOf.nodes)for(var t of e.proxyOf.nodes)d(t)}class h extends s{get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}append(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];for(var n of t){var i=this.normalize(n,this.last);for(var a of i)this.proxyOf.nodes.push(a)}return this.markDirty(),this}cleanRaws(e){if(super.cleanRaws(e),this.nodes)for(var t of this.nodes)t.cleanRaws(e)}each(e){if(this.proxyOf.nodes){for(var t,r,n=this.getIterator();this.indexes[n]<this.proxyOf.nodes.length&&(t=this.indexes[n],!1!==(r=e(this.proxyOf.nodes[t],t)));)this.indexes[n]+=1;return delete this.indexes[n],r}}every(e){return this.nodes.every(e)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;var e=this.lastEach;return this.indexes[e]=0,e}getProxyProcessor(){return{get:(e,t)=>"proxyOf"===t?e:e[t]?"each"===t||"string"==typeof t&&t.startsWith("walk")?function(){for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];return e[t](...n.map((e=>"function"==typeof e?(t,r)=>e(t.toProxy(),r):e)))}:"every"===t||"some"===t?r=>e[t]((function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return r(e.toProxy(),...n)})):"root"===t?()=>e.root().toProxy():"nodes"===t?e.nodes.map((e=>e.toProxy())):"first"===t||"last"===t?e[t].toProxy():e[t]:e[t],set:(e,t,r)=>(e[t]===r||(e[t]=r,"name"!==t&&"params"!==t&&"selector"!==t||e.markDirty()),!0)}}index(e){return"number"==typeof e?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))}insertAfter(e,t){var r,n=this.index(e),i=this.normalize(t,this.proxyOf.nodes[n]).reverse();for(var a of(n=this.index(e),i))this.proxyOf.nodes.splice(n+1,0,a);for(var s in this.indexes)n<(r=this.indexes[s])&&(this.indexes[s]=r+i.length);return this.markDirty(),this}insertBefore(e,t){var r,n=this.index(e),i=0===n&&"prepend",a=this.normalize(t,this.proxyOf.nodes[n],i).reverse();for(var s of(n=this.index(e),a))this.proxyOf.nodes.splice(n,0,s);for(var o in this.indexes)n<=(r=this.indexes[o])&&(this.indexes[o]=r+a.length);return this.markDirty(),this}normalize(r,s){if("string"==typeof r)r=c(t(r).nodes);else if(void 0===r)r=[];else if(Array.isArray(r))for(var o of r=r.slice(0))o.parent&&o.parent.removeChild(o,"ignore");else if("root"===r.type&&"document"!==this.type)for(var p of r=r.nodes.slice(0))p.parent&&p.parent.removeChild(p,"ignore");else if(r.type)r=[r];else if(r.prop){if(void 0===r.value)throw new Error("Value field is missed in node creation");"string"!=typeof r.value&&(r.value=String(r.value)),r=[new a(r)]}else if(r.selector||r.selectors)r=[new n(r)];else if(r.name)r=[new e(r)];else{if(!r.text)throw new Error("Unknown node type in node creation");r=[new i(r)]}var f=r.map((e=>(e[u]||h.rebuild(e),(e=e.proxyOf).parent&&e.parent.removeChild(e),e[l]&&d(e),e.raws||(e.raws={}),void 0===e.raws.before&&s&&void 0!==s.raws.before&&(e.raws.before=s.raws.before.replace(/\S/g,"")),e.parent=this.proxyOf,e)));return f}prepend(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];for(var n of t=t.reverse()){var i=this.normalize(n,this.first,"prepend").reverse();for(var a of i)this.proxyOf.nodes.unshift(a);for(var s in this.indexes)this.indexes[s]=this.indexes[s]+i.length}return this.markDirty(),this}push(e){return e.parent=this,this.proxyOf.nodes.push(e),this}removeAll(){for(var e of this.proxyOf.nodes)e.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(e){var t;for(var r in e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1),this.indexes)(t=this.indexes[r])>=e&&(this.indexes[r]=t-1);return this.markDirty(),this}replaceValues(e,t,r){return r||(r=t,t={}),this.walkDecls((n=>{t.props&&!t.props.includes(n.prop)||t.fast&&!n.value.includes(t.fast)||(n.value=n.value.replace(e,r))})),this.markDirty(),this}some(e){return this.nodes.some(e)}walk(e){return this.each(((t,r)=>{var n;try{n=e(t,r)}catch(e){throw t.addToError(e)}return!1!==n&&t.walk&&(n=t.walk(e)),n}))}walkAtRules(e,t){return t?e instanceof RegExp?this.walk(((r,n)=>{if("atrule"===r.type&&e.test(r.name))return t(r,n)})):this.walk(((r,n)=>{if("atrule"===r.type&&r.name===e)return t(r,n)})):(t=e,this.walk(((e,r)=>{if("atrule"===e.type)return t(e,r)})))}walkComments(e){return this.walk(((t,r)=>{if("comment"===t.type)return e(t,r)}))}walkDecls(e,t){return t?e instanceof RegExp?this.walk(((r,n)=>{if("decl"===r.type&&e.test(r.prop))return t(r,n)})):this.walk(((r,n)=>{if("decl"===r.type&&r.prop===e)return t(r,n)})):(t=e,this.walk(((e,r)=>{if("decl"===e.type)return t(e,r)})))}walkRules(e,t){return t?e instanceof RegExp?this.walk(((r,n)=>{if("rule"===r.type&&e.test(r.selector))return t(r,n)})):this.walk(((r,n)=>{if("rule"===r.type&&r.selector===e)return t(r,n)})):(t=e,this.walk(((e,r)=>{if("rule"===e.type)return t(e,r)})))}}return h.registerParse=e=>{t=e},h.registerRule=e=>{n=e},h.registerAtRule=t=>{e=t},h.registerRoot=e=>{r=e},je=h,h.default=h,h.rebuild=t=>{"atrule"===t.type?Object.setPrototypeOf(t,e.prototype):"rule"===t.type?Object.setPrototypeOf(t,n.prototype):"decl"===t.type?Object.setPrototypeOf(t,a.prototype):"comment"===t.type?Object.setPrototypeOf(t,i.prototype):"root"===t.type&&Object.setPrototypeOf(t,r.prototype),t[u]=!0,t.nodes&&t.nodes.forEach((e=>{h.rebuild(e)}))},je}function ot(){if(ze)return Ue;ze=1;var e=st();class t extends e{constructor(e){super(e),this.type="atrule"}append(){return this.proxyOf.nodes||(this.nodes=[]),super.append(...arguments)}prepend(){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...arguments)}}return Ue=t,t.default=t,e.registerAtRule(t),Ue}function lt(){if(He)return We;He=1;var e,t,n=st();class i extends n{constructor(e){super(r({type:"document"},e)),this.nodes||(this.nodes=[])}toResult(r){return void 0===r&&(r={}),new e(new t,this,r).stringify()}}return i.registerLazyResult=t=>{e=t},i.registerProcessor=e=>{t=e},We=i,i.default=i,We}function ut(){return Ge||(Ge=1,Ve={nanoid:function(e){void 0===e&&(e=21);for(var t="",r=0|e;r--;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64*Math.random()|0];return t},customAlphabet:function(e,t){return void 0===t&&(t=21),function(r){void 0===r&&(r=t);for(var n="",i=0|r;i--;)n+=e[Math.random()*e.length|0];return n}}}),Ve}function ct(){if(qe)return Je;qe=1;var e=xe.existsSync,t=xe.readFileSync,r=xe.dirname,n=xe.join,i=xe.SourceMapConsumer,a=xe.SourceMapGenerator;class s{constructor(e,t){if(!1!==t.map){t.unsafeMap&&(this.unsafeMap=!0),this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");var n=t.map?t.map.prev:void 0,i=this.loadMap(t.from,n);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=r(this.mapFile)),i&&(this.text=i)}}consumer(){return this.consumerCache||(this.consumerCache=new i(this.json||this.text)),this.consumerCache}decodeInline(e){var t=e.match(/^data:application\/json;charset=utf-?8,/)||e.match(/^data:application\/json,/);if(t)return decodeURIComponent(e.substr(t[0].length));var r,n=e.match(/^data:application\/json;charset=utf-?8;base64,/)||e.match(/^data:application\/json;base64,/);if(n)return r=e.substr(n[0].length),Buffer?Buffer.from(r,"base64").toString():window.atob(r);var i=e.slice(22);throw i=i.slice(0,i.indexOf(",")),new Error("Unsupported source map encoding "+i)}getAnnotationURL(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(e){return"object"==typeof e&&("string"==typeof e.mappings||"string"==typeof e._mappings||Array.isArray(e.sections))}loadAnnotation(e){var t=e.match(/\/\*\s*# sourceMappingURL=/g);if(t){var r=e.lastIndexOf(t.pop()),n=e.indexOf("*/",r);r>-1&&n>-1&&(this.annotation=this.getAnnotationURL(e.substring(r,n)))}}loadFile(n,i,a){if(a||this.unsafeMap||/\.map$/i.test(n))return this.root=r(n),e(n)?(this.mapFile=n,t(n,"utf-8").toString().trim()):void 0}loadMap(e,t){if(!1===t)return!1;if(t){if("string"==typeof t)return t;if("function"!=typeof t){if(t instanceof i)return a.fromSourceMap(t).toString();if(t instanceof a)return t.toString();if(this.isMap(t))return JSON.stringify(t);throw new Error("Unsupported previous source map format: "+t.toString())}var s=t(e);if(s){var o=this.loadFile(s,e,!0);if(!o)throw new Error("Unable to load previous source map: "+s.toString());return o}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){var l=this.annotation;e&&(l=n(r(e),l));var u=this.loadFile(l,e,!1);if(u)try{this.json=JSON.parse(u.replace(/^\)]}'[^\n]*\n/,""))}catch(e){return}return u}}}startWith(e,t){return!!e&&e.substr(0,t.length)===t}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}}return Je=s,s.default=s,Je}function dt(){if(Qe)return Ye;Qe=1;var e=ut().nanoid,t=xe.isAbsolute,n=xe.resolve,i=xe.SourceMapConsumer,a=xe.SourceMapGenerator,s=xe.fileURLToPath,o=xe.pathToFileURL,l=Oe(),u=ct(),c=xe,d=Symbol("lineToIndexCache"),h=Boolean(i&&a),p=Boolean(n&&t);function f(e){if(e[d])return e[d];for(var t=e.css.split("\n"),r=new Array(t.length),n=0,i=0,a=t.length;i<a;i++)r[i]=n,n+=t[i].length+1;return e[d]=r,r}class m{get from(){return this.file||this.id}constructor(r,i){if(void 0===i&&(i={}),null==r||"object"==typeof r&&!r.toString)throw new Error("PostCSS received "+r+" instead of CSS string");if(this.css=r.toString(),"\ufeff"===this.css[0]||""===this.css[0]?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,this.document=this.css,i.document&&(this.document=i.document.toString()),i.from&&(!p||/^\w+:\/\//.test(i.from)||t(i.from)?this.file=i.from:this.file=n(i.from)),p&&h){var a=new u(this.css,i);if(a.text){this.map=a;var s=a.consumer().file;!this.file&&s&&(this.file=this.mapResolve(s))}}this.file||(this.id="<input css "+e(6)+">"),this.map&&(this.map.file=this.from)}error(e,t,r,n){var i,a,s,u,c;if(void 0===n&&(n={}),t&&"object"==typeof t){var d=t,h=r;if("number"==typeof d.offset){u=d.offset;var p=this.fromOffset(u);t=p.line,r=p.col}else t=d.line,r=d.column,u=this.fromLineAndColumn(t,r);if("number"==typeof h.offset){s=h.offset;var f=this.fromOffset(s);a=f.line,i=f.col}else a=h.line,i=h.column,s=this.fromLineAndColumn(h.line,h.column)}else if(r)u=this.fromLineAndColumn(t,r);else{u=t;var m=this.fromOffset(u);t=m.line,r=m.col}var v=this.origin(t,r,a,i);return(c=v?new l(e,void 0===v.endLine?v.line:{column:v.column,line:v.line},void 0===v.endLine?v.column:{column:v.endColumn,line:v.endLine},v.source,v.file,n.plugin):new l(e,void 0===a?t:{column:r,line:t},void 0===a?r:{column:i,line:a},this.css,this.file,n.plugin)).input={column:r,endColumn:i,endLine:a,endOffset:s,line:t,offset:u,source:this.css},this.file&&(o&&(c.input.url=o(this.file).toString()),c.input.file=this.file),c}fromLineAndColumn(e,t){return f(this)[e-1]+t-1}fromOffset(e){var t=f(this),r=0;if(e>=t[t.length-1])r=t.length-1;else for(var n,i=t.length-2;r<i;)if(e<t[n=r+(i-r>>1)])i=n-1;else{if(!(e>=t[n+1])){r=n;break}r=n+1}return{col:e-t[r]+1,line:r+1}}mapResolve(e){return/^\w+:\/\//.test(e)?e:n(this.map.consumer().sourceRoot||this.map.root||".",e)}origin(e,r,n,i){if(!this.map)return!1;var a,l,u=this.map.consumer(),c=u.originalPositionFor({column:r-1,line:e});if(!c.source)return!1;"number"==typeof n&&(a=u.originalPositionFor({column:i-1,line:n})),l=t(c.source)?o(c.source):new URL(c.source,this.map.consumer().sourceRoot||o(this.map.mapFile));var d={column:c.column+1,endColumn:a&&a.column+1,endLine:a&&a.line,line:c.line,url:l.toString()};if("file:"===l.protocol){if(!s)throw new Error("file: protocol is not available in this PostCSS build");d.file=s(l)}var h=u.sourceContentFor(c.source);return h&&(d.source=h),d}toJSON(){var e={};for(var t of["hasBOM","css","file","id"])null!=this[t]&&(e[t]=this[t]);return this.map&&(e.map=r({},this.map),e.map.consumerCache&&(e.map.consumerCache=void 0)),e}}return Ye=m,m.default=m,c&&c.registerInput&&c.registerInput(m),Ye}function ht(){if(Ke)return Ze;Ke=1;var e,t,r=st();class n extends r{constructor(e){super(e),this.type="root",this.nodes||(this.nodes=[])}normalize(e,t,r){var n=super.normalize(e);if(t)if("prepend"===r)this.nodes.length>1?t.raws.before=this.nodes[1].raws.before:delete t.raws.before;else if(this.first!==t)for(var i of n)i.raws.before=t.raws.before;return n}removeChild(e,t){var r=this.index(e);return!t&&0===r&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[r].raws.before),super.removeChild(e)}toResult(r){return void 0===r&&(r={}),new e(new t,this,r).stringify()}}return n.registerLazyResult=t=>{e=t},n.registerProcessor=e=>{t=e},Ze=n,n.default=n,r.registerRoot(n),Ze}function pt(){if(_e)return Xe;_e=1;var e={comma:t=>e.split(t,[","],!0),space:t=>e.split(t,[" ","\n","\t"]),split(e,t,r){var n=[],i="",a=!1,s=0,o=!1,l="",u=!1;for(var c of e)u?u=!1:"\\"===c?u=!0:o?c===l&&(o=!1):'"'===c||"'"===c?(o=!0,l=c):"("===c?s+=1:")"===c?s>0&&(s-=1):0===s&&t.includes(c)&&(a=!0),a?(""!==i&&n.push(i.trim()),i="",a=!1):i+=c;return(r||""!==i)&&n.push(i.trim()),n}};return Xe=e,e.default=e,Xe}function ft(){if(et)return $e;et=1;var e=st(),t=pt();class r extends e{get selectors(){return t.comma(this.selector)}set selectors(e){var t=this.selector?this.selector.match(/,\s*/):null,r=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(r)}constructor(e){super(e),this.type="rule",this.nodes||(this.nodes=[])}}return $e=r,r.default=r,e.registerRule(r),$e}var mt,vt,gt,yt,bt,wt,St,kt,Ct,Mt,It,xt,Ot,Et,Rt,Nt,Tt,At,Lt,Dt,Pt,Ft,jt,Bt,Ut,zt,Wt,Ht,Vt=["inputs"],Gt=["inputId"];function Jt(){if(yt)return gt;yt=1;var e=xe.dirname,t=xe.relative,r=xe.resolve,n=xe.sep,i=xe.SourceMapConsumer,a=xe.SourceMapGenerator,s=xe.pathToFileURL,o=dt(),l=Boolean(i&&a),u=Boolean(e&&r&&t&&n);return gt=class{constructor(e,t,r,n){this.stringify=e,this.mapOpts=r.map||{},this.root=t,this.opts=r,this.css=n,this.originalCSS=n,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){var e;e=this.isInline()?"data:application/json;base64,"+this.toBase64(this.map.toString()):"string"==typeof this.mapOpts.annotation?this.mapOpts.annotation:"function"==typeof this.mapOpts.annotation?this.mapOpts.annotation(this.opts.to,this.root):this.outputFile()+".map";var t="\n";this.css.includes("\r\n")&&(t="\r\n"),this.css+=t+"/*# sourceMappingURL="+e+" */"}applyPrevMaps(){for(var t of this.previous()){var r=this.toUrl(this.path(t.file)),n=t.root||e(t.file),a=void 0;!1===this.mapOpts.sourcesContent?(a=new i(t.text)).sourcesContent&&(a.sourcesContent=null):a=t.consumer(),this.map.applySourceMap(a,r,this.toUrl(this.path(n)))}}clearAnnotation(){if(!1!==this.mapOpts.annotation)if(this.root)for(var e,t=this.root.nodes.length-1;t>=0;t--)"comment"===(e=this.root.nodes[t]).type&&e.text.startsWith("# sourceMappingURL=")&&this.root.removeChild(t);else if(this.css)for(var r;-1!==(r=this.css.lastIndexOf("/*#"));){var n=this.css.indexOf("*/",r+3);if(-1===n)break;for(;r>0&&"\n"===this.css[r-1];)r--;this.css=this.css.slice(0,r)+this.css.slice(n+2)}}generate(){if(this.clearAnnotation(),u&&l&&this.isMap())return this.generateMap();var e="";return this.stringify(this.root,(t=>{e+=t})),[e]}generateMap(){if(this.root)this.generateString();else if(1===this.previous().length){var e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=a.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new a({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]}generateString(){this.css="",this.map=new a({file:this.outputFile(),ignoreInvalidMapping:!0});var e,t,r=1,n=1,i="<no source>",s={generated:{column:0,line:0},original:{column:0,line:0},source:""};this.stringify(this.root,((a,o,l)=>{if(this.css+=a,o&&"end"!==l&&(s.generated.line=r,s.generated.column=n-1,o.source&&o.source.start?(s.source=this.sourcePath(o),s.original.line=o.source.start.line,s.original.column=o.source.start.column-1,this.map.addMapping(s)):(s.source=i,s.original.line=1,s.original.column=0,this.map.addMapping(s))),(t=a.match(/\n/g))?(r+=t.length,e=a.lastIndexOf("\n"),n=a.length-e):n+=a.length,o&&"start"!==l){var u=o.parent||{raws:{}};("decl"===o.type||"atrule"===o.type&&!o.nodes)&&o===u.last&&!u.raws.semicolon||(o.source&&o.source.end?(s.source=this.sourcePath(o),s.original.line=o.source.end.line,s.original.column=o.source.end.column-1,s.generated.line=r,s.generated.column=n-2,this.map.addMapping(s)):(s.source=i,s.original.line=1,s.original.column=0,s.generated.line=r,s.generated.column=n-1,this.map.addMapping(s)))}}))}isAnnotation(){return!!this.isInline()||(void 0!==this.mapOpts.annotation?this.mapOpts.annotation:!this.previous().length||this.previous().some((e=>e.annotation)))}isInline(){if(void 0!==this.mapOpts.inline)return this.mapOpts.inline;var e=this.mapOpts.annotation;return(void 0===e||!0===e)&&(!this.previous().length||this.previous().some((e=>e.inline)))}isMap(){return void 0!==this.opts.map?!!this.opts.map:this.previous().length>0}isSourcesContent(){return void 0!==this.mapOpts.sourcesContent?this.mapOpts.sourcesContent:!this.previous().length||this.previous().some((e=>e.withContent()))}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(n){if(this.mapOpts.absolute)return n;if(60===n.charCodeAt(0))return n;if(/^\w+:\/\//.test(n))return n;var i=this.memoizedPaths.get(n);if(i)return i;var a=this.opts.to?e(this.opts.to):".";"string"==typeof this.mapOpts.annotation&&(a=e(r(a,this.mapOpts.annotation)));var s=t(a,n);return this.memoizedPaths.set(n,s),s}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk((e=>{if(e.source&&e.source.input.map){var t=e.source.input.map;this.previousMaps.includes(t)||this.previousMaps.push(t)}}));else{var e=new o(this.originalCSS,this.opts);e.map&&this.previousMaps.push(e.map)}return this.previousMaps}setSourcesContent(){var e={};if(this.root)this.root.walk((t=>{if(t.source){var r=t.source.input.from;if(r&&!e[r]){e[r]=!0;var n=this.usesFileUrls?this.toFileUrl(r):this.toUrl(this.path(r));this.map.setSourceContent(n,t.source.input.css)}}}));else if(this.css){var t=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(t,this.css)}}sourcePath(e){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(e.source.input.from):this.toUrl(this.path(e.source.input.from))}toBase64(e){return Buffer?Buffer.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))}toFileUrl(e){var t=this.memoizedFileURLs.get(e);if(t)return t;if(s){var r=s(e).toString();return this.memoizedFileURLs.set(e,r),r}throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(e){var t=this.memoizedURLs.get(e);if(t)return t;"\\"===n&&(e=e.replace(/\\/g,"/"));var r=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,r),r}},gt}function qt(){if(wt)return bt;wt=1;var e="'".charCodeAt(0),t='"'.charCodeAt(0),r="\\".charCodeAt(0),n="/".charCodeAt(0),i="\n".charCodeAt(0),a=" ".charCodeAt(0),s="\f".charCodeAt(0),o="\t".charCodeAt(0),l="\r".charCodeAt(0),u="[".charCodeAt(0),c="]".charCodeAt(0),d="(".charCodeAt(0),h=")".charCodeAt(0),p="{".charCodeAt(0),f="}".charCodeAt(0),m=";".charCodeAt(0),v="*".charCodeAt(0),g=":".charCodeAt(0),y="@".charCodeAt(0),b=/[\t\n\f\r "#'()/;[\\\]{}]/g,w=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,S=/.[\r\n"'(/\\]/,k=/[\da-f]/i;return bt=function(C,M){void 0===M&&(M={});var I,x,O,E,R,N,T,A,L,D,P=C.css.valueOf(),F=M.ignoreErrors,j=P.length,B=0,U=[],z=[],W=-1;function H(e){throw C.error("Unclosed "+e,B)}return{back:function(e){z.push(e)},endOfFile:function(){return 0===z.length&&B>=j},nextToken:function(C){if(z.length)return z.pop();if(!(B>=j)){var M=!!C&&C.ignoreUnclosed;switch(I=P.charCodeAt(B)){case i:case a:case o:case l:case s:E=B;do{E+=1,I=P.charCodeAt(E)}while(I===a||I===i||I===o||I===l||I===s);N=["space",P.slice(B,E)],B=E-1;break;case u:case c:case p:case f:case g:case m:case h:var V=String.fromCharCode(I);N=[V,V,B];break;case d:if(D=U.length?U.pop()[1]:"",L=P.charCodeAt(B+1),"url"===D&&L!==e&&L!==t&&L!==a&&L!==i&&L!==o&&L!==s&&L!==l){E=B;do{if(T=!1,-1===(E=P.indexOf(")",E+1))){if(F||M){E=B;break}H("bracket")}for(A=E;P.charCodeAt(A-1)===r;)A-=1,T=!T}while(T);N=["brackets",P.slice(B,E+1),B,E],B=E}else B<=W?N=["(","(",B]:(E=P.indexOf(")",B+1),x=P.slice(B,E+1),-1===E||S.test(x)?(W=-1===E?j:E,N=["(","(",B]):(N=["brackets",x,B,E],B=E));break;case e:case t:R=I===e?"'":'"',E=B;do{if(T=!1,-1===(E=P.indexOf(R,E+1))){if(F||M){E=B+1;break}H("string")}for(A=E;P.charCodeAt(A-1)===r;)A-=1,T=!T}while(T);N=["string",P.slice(B,E+1),B,E],B=E;break;case y:b.lastIndex=B+1,b.test(P),E=0===b.lastIndex?P.length-1:b.lastIndex-2,N=["at-word",P.slice(B,E+1),B,E],B=E;break;case r:for(E=B,O=!0;P.charCodeAt(E+1)===r;)E+=1,O=!O;if(I=P.charCodeAt(E+1),O&&I!==n&&I!==a&&I!==i&&I!==o&&I!==l&&I!==s&&(E+=1,k.test(P.charAt(E)))){for(;k.test(P.charAt(E+1));)E+=1;P.charCodeAt(E+1)===a&&(E+=1)}N=["word",P.slice(B,E+1),B,E],B=E;break;default:I===n&&P.charCodeAt(B+1)===v?(0===(E=P.indexOf("*/",B+2)+1)&&(F||M?E=P.length:H("comment")),N=["comment",P.slice(B,E+1),B,E],B=E):(w.lastIndex=B+1,w.test(P),E=0===w.lastIndex?P.length-1:w.lastIndex-2,N=["word",P.slice(B,E+1),B,E],U.push(N),B=E)}return B++,N}},position:function(){return B}}},bt}function Yt(){if(kt)return St;kt=1;var e=ot(),t=it(),r=at(),n=ht(),i=ft(),a=qt(),s={empty:!0,space:!0};function o(e,t,r){for(var n="",i=t;i<r;i++)n+=e[i][1];return n}return St=class{constructor(e){this.input=e,this.root=new n,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}}atrule(t){var r,n,i,a=new e;a.name=t[1].slice(1),""===a.name&&this.unnamedAtrule(a,t),this.init(a,t[2]);for(var s=!1,o=!1,l=[],u=[];!this.tokenizer.endOfFile();){if("("===(r=(t=this.tokenizer.nextToken())[0])||"["===r?u.push("("===r?")":"]"):"{"===r&&u.length>0?u.push("}"):r===u[u.length-1]&&u.pop(),0===u.length){if(";"===r){a.source.end=this.getPosition(t[2]),a.source.end.offset++,this.semicolon=!0;break}if("{"===r){o=!0;break}if("}"===r){if(l.length>0){for(n=l[i=l.length-1];n&&"space"===n[0];)n=l[--i];n&&(a.source.end=this.getPosition(n[3]||n[2]),a.source.end.offset++)}this.end(t);break}l.push(t)}else l.push(t);if(this.tokenizer.endOfFile()){s=!0;break}}a.raws.between=this.spacesAndCommentsFromEnd(l),l.length?(a.raws.afterName=this.spacesAndCommentsFromStart(l),this.raw(a,"params",l),s&&(t=l[l.length-1],a.source.end=this.getPosition(t[3]||t[2]),a.source.end.offset++,this.spaces=a.raws.between,a.raws.between="")):(a.raws.afterName="",a.params=""),o&&(a.nodes=[],this.current=a)}checkMissedSemicolon(e){var t=this.colon(e);if(!1!==t){for(var r,n=0,i=t-1;i>=0&&("space"===(r=e[i])[0]||2!==(n+=1));i--);throw this.input.error("Missed semicolon","word"===r[0]?r[3]+1:r[2])}}colon(e){var t,r,n,i=0;for(var a of e.entries()){var s=a[0];if("("===(n=(r=a[1])[0])&&(i+=1),")"===n&&(i-=1),0===i&&":"===n){if(t){if("word"===t[0]&&"progid"===t[1])continue;return s}this.doubleColon(r)}t=r}return!1}comment(e){var r=new t;this.init(r,e[2]),r.source.end=this.getPosition(e[3]||e[2]),r.source.end.offset++;var n=e[1].slice(2,-2);if(n.trim()){var i=n.match(/^(\s*)([^]*\S)(\s*)$/);r.text=i[2],r.raws.left=i[1],r.raws.right=i[3]}else r.text="",r.raws.left=n,r.raws.right=""}createTokenizer(){this.tokenizer=a(this.input)}decl(e,t){var n=new r;this.init(n,e[0][2]);var i=e[e.length-1];";"===i[0]&&(this.semicolon=!0,e.pop()),n.source.end=this.getPosition(i[3]||i[2]||function(e){for(var t=e.length-1;t>=0;t--){var r=e[t],n=r[3]||r[2];if(n)return n}}(e)),n.source.end.offset++;for(var a=0;"word"!==e[a][0];)a===e.length-1&&this.unknownWord([e[a]]),a++;n.raws.before+=o(e,0,a),n.source.start=this.getPosition(e[a][2]);for(var s=a;a<e.length;){var l=e[a][0];if(":"===l||"space"===l||"comment"===l)break;a++}n.prop=o(e,s,a);for(var u,c=a;a<e.length&&(u=e[a],a++,":"!==u[0]);)"word"===u[0]&&/\w/.test(u[1])&&this.unknownWord([u]);n.raws.between=o(e,c,a),"_"!==n.prop[0]&&"*"!==n.prop[0]||(n.raws.before+=n.prop[0],n.prop=n.prop.slice(1));for(var d=a;a<e.length;){var h=e[a][0];if("space"!==h&&"comment"!==h)break;a++}var p=e.slice(d,a);e=e.slice(a),this.precheckMissedSemicolon(e);for(var f=e.length-1;f>=0;f--){if("!important"===(u=e[f])[1].toLowerCase()){n.important=!0;var m=this.stringFrom(e,f);" !important"!==(m=this.spacesFromEnd(e)+m)&&(n.raws.important=m);break}if("important"===u[1].toLowerCase()){for(var v=e.slice(0),g="",y=f;y>0;y--){var b=v[y][0];if(g.trim().startsWith("!")&&"space"!==b)break;g=v.pop()[1]+g}g.trim().startsWith("!")&&(n.important=!0,n.raws.important=g,e=v)}if("space"!==u[0]&&"comment"!==u[0])break}var w=e.some((e=>"space"!==e[0]&&"comment"!==e[0]));w&&(n.raws.between+=p.map((e=>e[1])).join(""),p=[]),this.raw(n,"value",p.concat(e),t),n.value.includes(":")&&!t&&this.checkMissedSemicolon(e)}doubleColon(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})}emptyRule(e){var t=new i;this.init(t,e[2]),t.selector="",t.raws.between="",this.current=t}end(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(e){if(this.spaces+=e[1],this.current.nodes){var t=this.current.nodes[this.current.nodes.length-1];t&&"rule"===t.type&&!t.raws.ownSemicolon&&(t.raws.ownSemicolon=this.spaces,this.spaces="",t.source.end=this.getPosition(e[2]),t.source.end.offset+=t.raws.ownSemicolon.length)}}getPosition(e){var t=this.input.fromOffset(e);return{column:t.col,line:t.line,offset:e}}init(e,t){this.current.push(e),e.source={input:this.input,start:this.getPosition(t)},e.raws.before=this.spaces,this.spaces="","comment"!==e.type&&(this.semicolon=!1)}other(e){for(var t=!1,r=null,n=!1,i=null,a=[],s=e[1].startsWith("--"),o=[],l=e;l;){if(r=l[0],o.push(l),"("===r||"["===r)i||(i=l),a.push("("===r?")":"]");else if(s&&n&&"{"===r)i||(i=l),a.push("}");else if(0===a.length){if(";"===r){if(n)return void this.decl(o,s);break}if("{"===r)return void this.rule(o);if("}"===r){this.tokenizer.back(o.pop()),t=!0;break}":"===r&&(n=!0)}else r===a[a.length-1]&&(a.pop(),0===a.length&&(i=null));l=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),a.length>0&&this.unclosedBracket(i),t&&n){if(!s)for(;o.length&&("space"===(l=o[o.length-1][0])||"comment"===l);)this.tokenizer.back(o.pop());this.decl(o,s)}else this.unknownWord(o)}parse(){for(var e;!this.tokenizer.endOfFile();)switch((e=this.tokenizer.nextToken())[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e)}this.endFile()}precheckMissedSemicolon(){}raw(e,t,r,n){for(var i,a,o,l,u=r.length,c="",d=!0,h=0;h<u;h+=1)"space"!==(a=(i=r[h])[0])||h!==u-1||n?"comment"===a?(l=r[h-1]?r[h-1][0]:"empty",o=r[h+1]?r[h+1][0]:"empty",s[l]||s[o]||","===c.slice(-1)?d=!1:c+=i[1]):c+=i[1]:d=!1;if(!d){var p=r.reduce(((e,t)=>e+t[1]),"");e.raws[t]={raw:p,value:c}}e[t]=c}rule(e){e.pop();var t=new i;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t}spacesAndCommentsFromEnd(e){for(var t,r="";e.length&&("space"===(t=e[e.length-1][0])||"comment"===t);)r=e.pop()[1]+r;return r}spacesAndCommentsFromStart(e){for(var t,r="";e.length&&("space"===(t=e[0][0])||"comment"===t);)r+=e.shift()[1];return r}spacesFromEnd(e){for(var t="";e.length&&"space"===e[e.length-1][0];)t=e.pop()[1]+t;return t}stringFrom(e,t){for(var r="",n=t;n<e.length;n++)r+=e[n][1];return e.splice(t,e.length-t),r}unclosedBlock(){var e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)}unclosedBracket(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})}unexpectedClose(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})}unknownWord(e){throw this.input.error("Unknown word "+e[0][1],{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})}unnamedAtrule(e,t){throw this.input.error("At-rule without name",{offset:t[2]},{offset:t[2]+t[1].length})}},St}function Qt(){if(Mt)return Ct;Mt=1;var e=st(),t=dt(),r=Yt();function n(e,n){var i=new t(e,n),a=new r(i);try{a.parse()}catch(e){throw"production"!==process.env.NODE_ENV&&"CssSyntaxError"===e.name&&n&&n.from&&(/\.scss$/i.test(n.from)?e.message+="\nYou tried to parse SCSS with the standard CSS parser; try again with the postcss-scss parser":/\.sass/i.test(n.from)?e.message+="\nYou tried to parse Sass with the standard CSS parser; try again with the postcss-sass parser":/\.less$/i.test(n.from)&&(e.message+="\nYou tried to parse Less with the standard CSS parser; try again with the postcss-less parser")),e}return a.root}return Ct=n,n.default=n,e.registerParse(n),Ct}function Zt(){if(xt)return It;xt=1;class e{constructor(e,t){if(void 0===t&&(t={}),this.type="warning",this.text=e,t.node&&t.node.source){var r=t.node.rangeBy(t);this.line=r.start.line,this.column=r.start.column,this.endLine=r.end.line,this.endColumn=r.end.column}for(var n in t)this[n]=t[n]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}}return It=e,e.default=e,It}function Kt(){if(Et)return Ot;Et=1;var e=Zt();class t{get content(){return this.css}constructor(e,t,r){this.processor=e,this.messages=[],this.root=t,this.opts=r,this.css="",this.map=void 0}toString(){return this.css}warn(t,r){void 0===r&&(r={}),r.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(r.plugin=this.lastPlugin.postcssPlugin);var n=new e(t,r);return this.messages.push(n),n}warnings(){return this.messages.filter((e=>"warning"===e.type))}}return Ot=t,t.default=t,Ot}function Xt(){if(Nt)return Rt;Nt=1;var e={};return Rt=function(t){e[t]||(e[t]=!0,"undefined"!=typeof console&&console.warn&&console.warn(t))}}function _t(){if(At)return Tt;At=1;var e=st(),n=lt(),i=Jt(),a=Qt(),s=Kt(),o=ht(),l=Re(),u=rt(),c=u.isClean,d=u.my,h=Xt(),p={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},f={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},m={Once:!0,postcssPlugin:!0,prepare:!0},v=0;function g(e){return"object"==typeof e&&"function"==typeof e.then}function y(e){var t=!1,r=p[e.type];return"decl"===e.type?t=e.prop.toLowerCase():"atrule"===e.type&&(t=e.name.toLowerCase()),t&&e.append?[r,r+"-"+t,v,r+"Exit",r+"Exit-"+t]:t?[r,r+"-"+t,r+"Exit",r+"Exit-"+t]:e.append?[r,v,r+"Exit"]:[r,r+"Exit"]}function b(e){return{eventIndex:0,events:"document"===e.type?["Document",v,"DocumentExit"]:"root"===e.type?["Root",v,"RootExit"]:y(e),iterator:0,node:e,visitorIndex:0,visitors:[]}}function w(e){return e[c]=!1,e.nodes&&e.nodes.forEach((e=>w(e))),e}var S={};class k{get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}constructor(t,n,i){var o;if(this.stringified=!1,this.processed=!1,"object"!=typeof n||null===n||"root"!==n.type&&"document"!==n.type)if(n instanceof k||n instanceof s)o=w(n.root),n.map&&(void 0===i.map&&(i.map={}),i.map.inline||(i.map.inline=!1),i.map.prev=n.map);else{var l=a;i.syntax&&(l=i.syntax.parse),i.parser&&(l=i.parser),l.parse&&(l=l.parse);try{o=l(n,i)}catch(e){this.processed=!0,this.error=e}o&&!o[d]&&e.rebuild(o)}else o=w(n);this.result=new s(t,o,i),this.helpers=r({},S,{postcss:S,result:this.result}),this.plugins=this.processor.plugins.map((e=>"object"==typeof e&&e.prepare?r({},e,e.prepare(this.result)):e))}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(e,t){var r=this.result.lastPlugin;try{if(t&&t.addToError(e),this.error=e,"CssSyntaxError"!==e.name||e.plugin){if(r.postcssVersion&&"production"!==process.env.NODE_ENV){var n=r.postcssPlugin,i=r.postcssVersion,a=this.result.processor.version,s=i.split("."),o=a.split(".");(s[0]!==o[0]||parseInt(s[1])>parseInt(o[1]))&&console.error("Unknown error from PostCSS plugin. Your current PostCSS version is "+a+", but "+n+" uses "+i+". Perhaps this is the source of the error below.")}}else e.plugin=r.postcssPlugin,e.setMessage()}catch(e){console&&console.error&&console.error(e)}return e}prepareVisitors(){this.listeners={};var e=(e,t,r)=>{this.listeners[t]||(this.listeners[t]=[]),this.listeners[t].push([e,r])};for(var t of this.plugins)if("object"==typeof t)for(var r in t){if(!f[r]&&/^[A-Z]/.test(r))throw new Error("Unknown event "+r+" in "+t.postcssPlugin+". Try to update PostCSS ("+this.processor.version+" now).");if(!m[r])if("object"==typeof t[r])for(var n in t[r])e(t,"*"===n?r:r+"-"+n.toLowerCase(),t[r][n]);else"function"==typeof t[r]&&e(t,r,t[r])}this.hasListener=Object.keys(this.listeners).length>0}runAsync(){var e=this;return t((function*(){e.plugin=0;for(var t=0;t<e.plugins.length;t++){var r=e.plugins[t],n=e.runOnRoot(r);if(g(n))try{yield n}catch(t){throw e.handleError(t)}}if(e.prepareVisitors(),e.hasListener){for(var i=e.result.root;!i[c];){i[c]=!0;for(var a=[b(i)];a.length>0;){var s=e.visitTick(a);if(g(s))try{yield s}catch(t){var o=a[a.length-1].node;throw e.handleError(t,o)}}}if(e.listeners.OnceExit){var l=function*(){var t=u[0],r=u[1];e.result.lastPlugin=t;try{if("document"===i.type){var n=i.nodes.map((t=>r(t,e.helpers)));yield Promise.all(n)}else yield r(i,e.helpers)}catch(t){throw e.handleError(t)}};for(var u of e.listeners.OnceExit)yield*l()}}return e.processed=!0,e.stringify()}))()}runOnRoot(e){this.result.lastPlugin=e;try{if("object"==typeof e&&e.Once){if("document"===this.result.root.type){var t=this.result.root.nodes.map((t=>e.Once(t,this.helpers)));return g(t[0])?Promise.all(t):t}return e.Once(this.result.root,this.helpers)}if("function"==typeof e)return e(this.result.root,this.result)}catch(e){throw this.handleError(e)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();var e=this.result.opts,t=l;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);var r=this.result.root.source;if(void 0===e.map&&!(r&&r.input&&r.input.map)){var n="";return t(this.result.root,(e=>{n+=e})),this.result.css=n,this.result}var a=new i(t,this.result.root,this.result.opts).generate();return this.result.css=a[0],this.result.map=a[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(var e of this.plugins)if(g(this.runOnRoot(e)))throw this.getAsyncError();if(this.prepareVisitors(),this.hasListener){for(var t=this.result.root;!t[c];)t[c]=!0,this.walkSync(t);if(this.listeners.OnceExit)if("document"===t.type)for(var r of t.nodes)this.visitSync(this.listeners.OnceExit,r);else this.visitSync(this.listeners.OnceExit,t)}return this.result}then(e,t){return"production"!==process.env.NODE_ENV&&("from"in this.opts||h("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")),this.async().then(e,t)}toString(){return this.css}visitSync(e,t){for(var r of e){var n=r[0],i=r[1];this.result.lastPlugin=n;var a=void 0;try{a=i(t,this.helpers)}catch(e){throw this.handleError(e,t.proxyOf)}if("root"!==t.type&&"document"!==t.type&&!t.parent)return!0;if(g(a))throw this.getAsyncError()}}visitTick(e){var t=e[e.length-1],r=t.node,n=t.visitors;if("root"===r.type||"document"===r.type||r.parent){if(n.length>0&&t.visitorIndex<n.length){var i=n[t.visitorIndex],a=i[0],s=i[1];t.visitorIndex+=1,t.visitorIndex===n.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=a;try{return s(r.toProxy(),this.helpers)}catch(e){throw this.handleError(e,r)}}if(0!==t.iterator){for(var o,l=t.iterator;o=r.nodes[r.indexes[l]];)if(r.indexes[l]+=1,!o[c])return o[c]=!0,void e.push(b(o));t.iterator=0,delete r.indexes[l]}for(var u=t.events;t.eventIndex<u.length;){var d=u[t.eventIndex];if(t.eventIndex+=1,d===v)return void(r.nodes&&r.nodes.length&&(r[c]=!0,t.iterator=r.getIterator()));if(this.listeners[d])return void(t.visitors=this.listeners[d])}e.pop()}else e.pop()}walkSync(e){e[c]=!0;var t=y(e);for(var r of t)if(r===v)e.nodes&&e.each((e=>{e[c]||this.walkSync(e)}));else{var n=this.listeners[r];if(n&&this.visitSync(n,e.toProxy()))return}}warnings(){return this.sync().warnings()}}return k.registerPostcss=e=>{S=e},Tt=k,k.default=k,o.registerLazyResult(k),n.registerLazyResult(k),Tt}function $t(){if(Bt)return jt;Bt=1;var e=ot(),t=it(),i=st(),a=Oe(),s=at(),o=lt(),l=function(){if(vt)return mt;vt=1;var e=ot(),t=it(),i=at(),a=dt(),s=ct(),o=ht(),l=ft();function u(c,d){if(Array.isArray(c))return c.map((e=>u(e)));var h,p,f=c.inputs,m=n(c,Vt);if(f)for(var v of(d=[],f)){var g=r({},v,{__proto__:a.prototype});g.map&&(g.map=r({},g.map,{__proto__:s.prototype})),d.push(g)}if(m.nodes&&(h=c.nodes.map((e=>u(e,d))),delete m.nodes),m.source){var y=m.source,b=y.inputId,w=n(y,Gt);m.source=w,null!=b&&(m.source.input=d[b])}if("root"===m.type)p=new o(m);else if("decl"===m.type)p=new i(m);else if("rule"===m.type)p=new l(m);else if("comment"===m.type)p=new t(m);else{if("atrule"!==m.type)throw new Error("Unknown node type: "+c.type);p=new e(m)}if(h)for(var S of(p.nodes=h,h))S.parent=p;return p}return mt=u,u.default=u,mt}(),u=dt(),c=_t(),d=pt(),h=nt(),p=Qt(),f=function(){if(Ft)return Pt;Ft=1;var e=lt(),t=_t(),r=function(){if(Dt)return Lt;Dt=1;var e=Jt(),t=Qt(),r=Kt(),n=Re(),i=Xt();class a{get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;var e,r=t;try{e=r(this._css,this._opts)}catch(e){this.error=e}if(this.error)throw this.error;return this._root=e,e}get[Symbol.toStringTag](){return"NoWorkResult"}constructor(t,i,a){i=i.toString(),this.stringified=!1,this._processor=t,this._css=i,this._opts=a,this._map=void 0;var s=n;this.result=new r(this._processor,void 0,this._opts),this.result.css=i;var o=this;Object.defineProperty(this.result,"root",{get:()=>o.root});var l=new e(s,void 0,this._opts,i);if(l.isMap()){var u=l.generate(),c=u[0],d=u[1];c&&(this.result.css=c),d&&(this.result.map=d)}else l.clearAnnotation(),this.result.css=l.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}sync(){if(this.error)throw this.error;return this.result}then(e,t){return"production"!==process.env.NODE_ENV&&("from"in this._opts||i("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")),this.async().then(e,t)}toString(){return this._css}warnings(){return[]}}return Lt=a,a.default=a,Lt}(),n=ht();class i{constructor(e){void 0===e&&(e=[]),this.version="8.5.16",this.plugins=this.normalize(e)}normalize(e){var t=[];for(var r of e)if(!0===r.postcss?r=r():r.postcss&&(r=r.postcss),"object"==typeof r&&Array.isArray(r.plugins))t=t.concat(r.plugins);else if("object"==typeof r&&r.postcssPlugin)t.push(r);else if("function"==typeof r)t.push(r);else{if("object"!=typeof r||!r.parse&&!r.stringify)throw new Error(r+" is not a PostCSS plugin");if("production"!==process.env.NODE_ENV)throw new Error("PostCSS syntaxes cannot be used as plugins. Instead, please use one of the syntax/parser/stringifier options as outlined in your PostCSS runner documentation.")}return t}process(e,n){return void 0===n&&(n={}),this.plugins.length||n.parser||n.stringifier||n.syntax?new t(this,e,n):new r(this,e,n)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}}return Pt=i,i.default=i,n.registerProcessor(i),e.registerProcessor(i),Pt}(),m=Kt(),v=ht(),g=ft(),y=Re(),b=Zt();function w(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return 1===t.length&&Array.isArray(t[0])&&(t=t[0]),new f(t)}return w.plugin=function(e,t){var r,n=!1;function i(){console&&console.warn&&!n&&(n=!0,console.warn(e+": postcss.plugin was deprecated. Migration guide:\nhttps://evilmartians.com/chronicles/postcss-8-plugin-migration"),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(e+": 里面 postcss.plugin 被弃用. 迁移指南:\nhttps://www.w3ctech.com/topic/2226"));var r=t(...arguments);return r.postcssPlugin=e,r.postcssVersion=(new f).version,r}return Object.defineProperty(i,"postcss",{get:()=>(r||(r=i()),r)}),i.process=function(e,t,r){return w([i(r)]).process(e,t)},i},w.stringify=y,w.parse=p,w.fromJSON=l,w.list=d,w.comment=e=>new t(e),w.atRule=t=>new e(t),w.decl=e=>new s(e),w.rule=e=>new g(e),w.root=e=>new v(e),w.document=e=>new o(e),w.CssSyntaxError=a,w.Declaration=s,w.Container=i,w.Processor=f,w.Document=o,w.Comment=t,w.Warning=b,w.AtRule=e,w.Result=m,w.Input=u,w.Rule=g,w.Root=v,w.Node=h,c.registerPostcss(w),jt=w,w.default=w,jt}!function(){if(Ht)return Wt;Ht=1;var e=$t().Input,t=function(){if(zt)return Ut;zt=1;var e=it(),t=Yt(),r=qt();return Ut=class extends t{checkMissedSemicolon(){}comment(t){var r=new e;this.init(r,t[2]);var n=this.input.fromOffset(t[3])||this.input.fromOffset(this.input.css.length-1);r.source.end={column:n.col,line:n.line,offset:t[3]+1};var i=t[1].slice(2);if("*/"===i.slice(-2)&&(i=i.slice(0,-2)),/^\s*$/.test(i))r.text="",r.raws.left=i,r.raws.right="";else{var a=i.match(/^(\s*)([^]*\S)(\s*)$/);r.text=a[2],r.raws.left=a[1],r.raws.right=a[3]}}createTokenizer(){this.tokenizer=r(this.input,{ignoreErrors:!0})}decl(e){e.length>1&&e.some((e=>"word"===e[0]))&&super.decl(e)}doubleColon(){}endFile(){for(this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces;this.current.parent;)this.current=this.current.parent,this.current.raws.after="";this.root.source.end=this.getPosition(this.tokenizer.position())}precheckMissedSemicolon(e){var t=this.colon(e);if(!1!==t){var r,n;for(r=t-1;r>=0&&"word"!==e[r][0];r--);if(!(0===r||r<0)){for(n=r-1;n>=0;n--)if("space"!==e[n][0]){n+=1;break}var i=e.slice(r),a=e.slice(n,r);e.splice(n,e.length-n),this.spaces=a.map((e=>e[1])).join(""),this.decl(i)}}}unclosedBracket(){}unexpectedClose(){this.current.raws.after+="}"}unknownWord(e){this.spaces+=e.map((e=>e[1])).join("")}unnamedAtrule(e){e.name=""}},Ut}();Wt=function(r,n){var i=new e(r,n),a=new t(i);return a.parse(),a.root}}();var er=me($t());er.stringify,er.fromJSON,er.plugin,er.parse,er.list,er.document,er.comment,er.atRule,er.rule,er.decl,er.root,er.CssSyntaxError,er.Declaration,er.Container,er.Processor,er.Document,er.Comment,er.Warning,er.AtRule,er.Result,er.Input,er.Rule,er.Root,er.Node;class tr{constructor(){this.parentElement=null,this.parentNode=null,this.ownerDocument=void 0,this.firstChild=null,this.lastChild=null,this.previousSibling=null,this.nextSibling=null,this.ELEMENT_NODE=rr.ELEMENT_NODE,this.TEXT_NODE=rr.TEXT_NODE,this.nodeType=void 0,this.nodeName=void 0,this.RRNodeType=void 0}get childNodes(){for(var e=[],t=this.firstChild;t;)e.push(t),t=t.nextSibling;return e}contains(e){if(!(e instanceof tr))return!1;if(e.ownerDocument!==this.ownerDocument)return!1;if(e===this)return!0;for(;e.parentNode;){if(e.parentNode===this)return!0;e=e.parentNode}return!1}appendChild(e){throw new Error("RRDomException: Failed to execute 'appendChild' on 'RRNode': This RRNode type does not support this method.")}insertBefore(e,t){throw new Error("RRDomException: Failed to execute 'insertBefore' on 'RRNode': This RRNode type does not support this method.")}removeChild(e){throw new Error("RRDomException: Failed to execute 'removeChild' on 'RRNode': This RRNode type does not support this method.")}toString(){return"RRNode"}}var rr=function(e){return 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",e}({});function nr(e,t,r){void 0===r&&(r=document);var n={capture:!0,passive:!0};return r.addEventListener(e,t,n),()=>ir(r,e,t,n)}function ir(e,t,r,n){ar((()=>{var i=e.removeEventListener;"function"==typeof i&&(void 0!==n?i.call(e,t,r,n):i.call(e,t,r))}))}function ar(e){try{e()}catch(e){if(!(e instanceof DOMException&&"SecurityError"===e.name))throw e}}var sr="Please stop import mirror directly. Instead of that,\r\nnow you can use replayer.getMirror() to access the mirror instance of a replayer,\r\nor you can use record.mirror to access the mirror instance during recording.",or={map:{},getId:()=>(console.error(sr),-1),getNode:()=>(console.error(sr),null),removeNodeFromMap(){console.error(sr)},has:()=>(console.error(sr),!1),reset(){console.error(sr)}};function lr(e,t,r){void 0===r&&(r={});var n=null,i=0;return function(){for(var a=arguments.length,s=new Array(a),o=0;o<a;o++)s[o]=arguments[o];var l=Date.now();i||!1!==r.leading||(i=l);var u=t-(l-i),c=this;u<=0||u>t?(n&&(clearTimeout(n),n=null),i=l,e.apply(c,s)):n||!1===r.trailing||(n=setTimeout((()=>{i=!1===r.leading?0:Date.now(),n=null,e.apply(c,s)}),u))}}function ur(e,t,r,n,i){void 0===i&&(i=window);var a=i.Object.getOwnPropertyDescriptor(e,t);return i.Object.defineProperty(e,t,n?r:{set(e){if(setTimeout((()=>{try{r.set.call(this,e)}catch(e){}}),0),a&&a.set){if(a.get)try{a.get.call(this)}catch(e){return}a.set.call(this,e)}}}),()=>ur(e,t,a||{},!0)}"undefined"!=typeof window&&window.Proxy&&window.Reflect&&(or=new Proxy(or,{get:(e,t,r)=>("map"===t&&console.error(sr),Reflect.get(e,t,r))}));var cr=Date.now;function dr(e){var t,r,n,i,a=e.document;return{left:a.scrollingElement?a.scrollingElement.scrollLeft:void 0!==e.pageXOffset?e.pageXOffset:a.documentElement.scrollLeft||(null==a?void 0:a.body)&&(null==(t=x.parentElement(a.body))?void 0:t.scrollLeft)||(null==a||null==(r=a.body)?void 0:r.scrollLeft)||0,top:a.scrollingElement?a.scrollingElement.scrollTop:void 0!==e.pageYOffset?e.pageYOffset:(null==a?void 0:a.documentElement.scrollTop)||(null==a?void 0:a.body)&&(null==(n=x.parentElement(a.body))?void 0:n.scrollTop)||(null==a||null==(i=a.body)?void 0:i.scrollTop)||0}}function hr(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function pr(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function fr(e){return e?e.nodeType===e.ELEMENT_NODE?e:x.parentElement(e):null}function mr(e,t,r,n){if(!e)return!1;var i=fr(e),a=n;if(!i){var s=x.getRootNode(e);if(!E(s))return!1;i=x.host(s),a=!0}for(;i;){try{if("string"==typeof t){if(i.classList.contains(t))return!0;if(a&&null!==i.closest("."+t))return!0}else if(ie(i,t,a))return!0}catch(e){}if(r){if(i.matches(r))return!0;if(a&&null!==i.closest(r))return!0}var o=x.getRootNode(i);if(!E(o))return!1;i=x.host(o),a=!0}return!1}function vr(e,t,r){return!("TITLE"!==e.tagName||!r.headTitleMutations)||t.getId(e)===Q}function gr(e,t){if(E(e))return!1;var r=t.getId(e);if(!t.has(r))return!0;var n=x.parentNode(e);return(!n||n.nodeType!==e.DOCUMENT_NODE)&&(!n||gr(n,t))}function yr(e){return Boolean(e.changedTouches)}function br(e,t){return Boolean("IFRAME"===e.nodeName&&t.getMeta(e))}function wr(e,t){return Boolean("LINK"===e.nodeName&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&"stylesheet"===e.getAttribute("rel")&&t.getMeta(e))}function Sr(e){return!!e&&(e instanceof tr&&"shadowRoot"in e?Boolean(e.shadowRoot):Boolean(x.shadowRoot(e)))}/[1-9][0-9]{12}/.test(Date.now().toString())||(cr=()=>(new Date).getTime());class kr{constructor(){this.id=1,this.styleIDMap=new WeakMap,this.idStyleMap=new Map}getId(e){var t;return null!=(t=this.styleIDMap.get(e))?t:-1}has(e){return this.styleIDMap.has(e)}add(e,t){return this.has(e)?this.getId(e):(r=void 0===t?this.id++:t,this.styleIDMap.set(e,r),this.idStyleMap.set(r,e),r);var r}getStyle(e){return this.idStyleMap.get(e)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}}function Cr(e){var t,r=null;return"getRootNode"in e&&(null==(t=x.getRootNode(e))?void 0:t.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&x.host(x.getRootNode(e))&&(r=x.host(x.getRootNode(e))),r}function Mr(e){var t=e.ownerDocument;return!!t&&(x.contains(t,e)||function(e){var t=e.ownerDocument;if(!t)return!1;var r=function(e){for(var t,r=e;t=Cr(r);)r=t;return r}(e);return x.contains(t,r)}(e))}function Ir(e){return"__ln"in e}class xr{constructor(){this.length=0,this.head=null,this.tail=null}get(e){if(e>=this.length)throw new Error("Position outside of list range");for(var t=this.head,r=0;r<e;r++){var n;t=(null==(n=t)?void 0:n.next)||null}return t}addNode(e){var t={value:e,previous:null,next:null};if(e.__ln=t,e.previousSibling&&Ir(e.previousSibling)){var r=e.previousSibling.__ln.next;t.next=r,t.previous=e.previousSibling.__ln,e.previousSibling.__ln.next=t,r&&(r.previous=t)}else if(e.nextSibling&&Ir(e.nextSibling)&&e.nextSibling.__ln.previous){var n=e.nextSibling.__ln.previous;t.previous=n,t.next=e.nextSibling.__ln,e.nextSibling.__ln.previous=t,n&&(n.next=t)}else this.head&&(this.head.previous=t),t.next=this.head,this.head=t;null===t.next&&(this.tail=t),this.length++}removeNode(e){var t=e.__ln;this.head&&(t.previous?(t.previous.next=t.next,t.next?t.next.previous=t.previous:this.tail=t.previous):(this.head=t.next,this.head?this.head.previous=null:this.tail=null),e.__ln&&delete e.__ln,this.length--)}}var Or,Er=(e,t)=>e+"@"+t;class Rr{constructor(){this.frozen=!1,this.locked=!1,this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.mapRemoves=[],this.movedMap={},this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.removesSubTreeCache=new Set,this.mutationCb=void 0,this.blockClass=void 0,this.blockSelector=void 0,this.maskTextClass=void 0,this.maskTextSelector=void 0,this.inlineStylesheet=void 0,this.maskInputOptions=void 0,this.maskTextFn=void 0,this.maskInputFn=void 0,this.keepIframeSrcFn=void 0,this.recordCanvas=void 0,this.canvasMaskingConfigured=void 0,this.inlineImages=void 0,this.slimDOMOptions=void 0,this.dataURLOptions=void 0,this.doc=void 0,this.mirror=void 0,this.iframeManager=void 0,this.stylesheetManager=void 0,this.shadowDomManager=void 0,this.canvasManager=void 0,this.processedNodeManager=void 0,this.unattachedDoc=void 0,this.canvasManagerReleased=!1,this.processMutations=e=>{e.forEach(this.processMutation),this.emit()},this.emit=()=>{if(!this.frozen&&!this.locked){for(var e=[],t=new Set,r=new xr,n=e=>{for(var t=e,r=Q;r===Q;)r=(t=t&&t.nextSibling)&&this.mirror.getId(t);return r},i=i=>{var a=x.parentNode(i);if(a&&Mr(i)&&"TEXTAREA"!==a.tagName){var s=E(a)?this.mirror.getId(Cr(i)):this.mirror.getId(a),o=n(i);if(-1===s||-1===o)return r.addNode(i);var l=pe(i,{doc:this.doc,mirror:this.mirror,blockClass:this.blockClass,blockSelector:this.blockSelector,maskTextClass:this.maskTextClass,maskTextSelector:this.maskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:this.inlineStylesheet,maskInputOptions:this.maskInputOptions,maskTextFn:this.maskTextFn,maskInputFn:this.maskInputFn,slimDOMOptions:this.slimDOMOptions,dataURLOptions:this.dataURLOptions,recordCanvas:this.recordCanvas,canvasMaskingConfigured:this.canvasMaskingConfigured,inlineImages:this.inlineImages,onSerialize:e=>{br(e,this.mirror)&&this.iframeManager.addIframe(e),wr(e,this.mirror)&&this.stylesheetManager.trackLinkElement(e),Sr(i)&&this.shadowDomManager.addShadowRoot(x.shadowRoot(i),this.doc)},onIframeLoad:(e,t)=>{this.iframeManager.attachIframe(e,t),this.shadowDomManager.observeAttachShadow(e)},onIframeListenerRegistered:(e,t)=>{this.iframeManager.registerLoadListenerDisposer(e,t)},onStylesheetLoad:(e,t)=>{this.stylesheetManager.attachLinkElement(e,t)}});l&&(e.push({parentId:s,nextId:o,node:l}),t.add(l.id))}};this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(var a of this.movedSet)Tr(this.removesSubTreeCache,a,this.mirror)&&!this.movedSet.has(x.parentNode(a))||i(a);for(var s of this.addedSet)Ar(this.droppedSet,s)||Tr(this.removesSubTreeCache,s,this.mirror)?Ar(this.movedSet,s)?i(s):this.droppedSet.add(s):i(s);for(var o=null;r.length;){var l=null;if(o){var u=this.mirror.getId(x.parentNode(o.value)),c=n(o.value);-1!==u&&-1!==c&&(l=o)}if(!l)for(var d=r.tail;d;){var h=d;if(d=d.previous,h){var p=this.mirror.getId(x.parentNode(h.value));if(-1===n(h.value))continue;if(-1!==p){l=h;break}var f=h.value,m=x.parentNode(f);if(m&&m.nodeType===Node.DOCUMENT_FRAGMENT_NODE){var v=x.host(m);if(-1!==this.mirror.getId(v)){l=h;break}}}}if(!l){for(;r.head;)r.removeNode(r.head.value);break}o=l.previous,r.removeNode(l.value),i(l.value)}var g={texts:this.texts.map((e=>{var t=e.node,r=x.parentNode(t);return r&&"TEXTAREA"===r.tagName&&this.genTextAreaValueMutation(r),{id:this.mirror.getId(t),value:e.value}})).filter((e=>!t.has(e.id))).filter((e=>this.mirror.has(e.id))),attributes:this.attributes.map((e=>{var t=e.attributes;if("string"==typeof t.style){var r=JSON.stringify(e.styleDiff),n=JSON.stringify(e._unchangedStyles);r.length<t.style.length&&(r+n).split("var(").length===t.style.split("var(").length&&(t.style=e.styleDiff)}return{id:this.mirror.getId(e.node),attributes:t}})).filter((e=>!t.has(e.id))).filter((e=>this.mirror.has(e.id))),removes:this.removes,adds:e};(g.texts.length||g.attributes.length||g.removes.length||g.adds.length)&&(this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.removesSubTreeCache=new Set,this.movedMap={},this.mutationCb(g))}},this.bufferBelongsToIframe=e=>this.doc===e.contentDocument,this.genTextAreaValueMutation=e=>{var t=this.attributeMap.get(e);t||(t={node:e,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(t),this.attributeMap.set(e,t));var r=Array.from(x.childNodes(e),(e=>x.textContent(e)||"")).join("");t.attributes.value=L({element:e,maskInputOptions:this.maskInputOptions,tagName:e.tagName,type:F(e),value:r,maskInputFn:this.maskInputFn})},this.processMutation=e=>{if(!vr(e.target,this.mirror,this.slimDOMOptions))switch(e.type){case"characterData":var t=x.textContent(e.target);mr(e.target,this.blockClass,this.blockSelector,!1)||t===e.oldValue||this.texts.push({value:ae(e.target,this.maskTextClass,this.maskTextSelector,!0)&&t?this.maskTextFn?this.maskTextFn(t,fr(e.target)):t.replace(/[\S]/g,"*"):t,node:e.target});break;case"attributes":var r=e.target,n=e.attributeName,i=e.target.getAttribute(n);if("value"===n){var a=F(r);i=L({element:r,maskInputOptions:this.maskInputOptions,tagName:r.tagName,type:a,value:i,maskInputFn:this.maskInputFn})}if(mr(e.target,this.blockClass,this.blockSelector,!1)||i===e.oldValue)return;var s=this.attributeMap.get(e.target);if("IFRAME"===r.tagName&&"src"===n&&!this.keepIframeSrcFn(i)){if(r.contentDocument)return;n="rr_src"}if(s||(s={node:e.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(s),this.attributeMap.set(e.target,s)),"type"===n&&"INPUT"===r.tagName&&"password"===(e.oldValue||"").toLowerCase()&&r.setAttribute("data-rr-is-password","true"),!ne(r.tagName,n))if(s.attributes[n]=re(this.doc,D(r.tagName),D(n),i,r,this.dataURLOptions),"style"===n){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch(e){this.unattachedDoc=this.doc}var o=this.unattachedDoc.createElement("span");for(var l of(e.oldValue&&(o.style.cssText=e.oldValue),Array.from(r.style))){var u=r.style.getPropertyValue(l),c=r.style.getPropertyPriority(l);u!==o.style.getPropertyValue(l)||c!==o.style.getPropertyPriority(l)?s.styleDiff[l]=""===c?u:[u,c]:s._unchangedStyles[l]=[u,c]}for(var d of Array.from(o.style))""===r.style.getPropertyValue(d)&&(s.styleDiff[d]=!1)}else"open"===n&&"DIALOG"===r.tagName&&(r.matches("dialog:modal")?s.attributes.rr_open_mode="modal":s.attributes.rr_open_mode="non-modal");break;case"childList":if(mr(e.target,this.blockClass,this.blockSelector,!0))return;if("TEXTAREA"===e.target.tagName)return void this.genTextAreaValueMutation(e.target);e.addedNodes.forEach((t=>this.genAdds(t,e.target))),e.removedNodes.forEach((t=>{var r=this.mirror.getId(t),n=E(e.target)?this.mirror.getId(x.host(e.target)):this.mirror.getId(e.target);mr(e.target,this.blockClass,this.blockSelector,!1)||vr(t,this.mirror,this.slimDOMOptions)||!function(e,t){return-1!==t.getId(e)}(t,this.mirror)||(this.addedSet.has(t)?(Nr(this.addedSet,t),this.droppedSet.add(t)):this.addedSet.has(e.target)&&-1===r||gr(e.target,this.mirror)||(this.movedSet.has(t)&&this.movedMap[Er(r,n)]?Nr(this.movedSet,t):(this.removes.push({parentId:n,id:r,isShadow:!(!E(e.target)||!R(e.target))||void 0}),function(e,t){for(var r=[e];r.length;){var n=r.pop();t.has(n)||(t.add(n),x.childNodes(n).forEach((e=>r.push(e))))}}(t,this.removesSubTreeCache))),this.mapRemoves.push(t))}))}},this.genAdds=(e,t)=>{if(!this.processedNodeManager.inOtherBuffer(e,this)){if(this.addedSet.has(e))return this.addedSet.delete(e),void this.addedSet.add(e);if(!this.movedSet.has(e)){if(this.mirror.hasNode(e)){if(vr(e,this.mirror,this.slimDOMOptions))return;this.movedSet.add(e);var r=null;t&&this.mirror.hasNode(t)&&(r=this.mirror.getId(t)),r&&-1!==r&&(this.movedMap[Er(this.mirror.getId(e),r)]=!0)}else this.addedSet.add(e),this.droppedSet.delete(e);mr(e,this.blockClass,this.blockSelector,!1)||(x.childNodes(e).forEach((e=>this.genAdds(e))),Sr(e)&&x.childNodes(x.shadowRoot(e)).forEach((t=>{this.processedNodeManager.add(t,this),this.genAdds(t,e)})))}}}}init(e){["mutationCb","blockClass","blockSelector","maskTextClass","maskTextSelector","inlineStylesheet","maskInputOptions","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","canvasMaskingConfigured","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager"].forEach((t=>{this[t]=e[t]})),this.canvasManager.acquire()}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.releaseCanvasManager()}releaseCanvasManager(){this.canvasManagerReleased||(this.canvasManagerReleased=!0,this.canvasManager.reset())}bufferDoc(){return this.doc}destroy(){for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift())}}function Nr(e,t){e.delete(t),x.childNodes(t).forEach((t=>Nr(e,t)))}function Tr(e,t,r){return 0!==e.size&&function(e,t,r){var n=x.parentNode(t);return!!n&&e.has(n)}(e,t)}function Ar(e,t){return 0!==e.size&&Lr(e,t)}function Lr(e,t){var r=x.parentNode(t);return!!r&&(!!e.has(r)||Lr(e,r))}function Dr(e){Or=e}function Pr(){Or=void 0}var Fr=e=>Or?function(){try{return e(...arguments)}catch(e){if(Or&&!0===Or(e))return;throw e}}:e,jr=[];function Br(e){try{if("composedPath"in e){var t=e.composedPath();if(t.length)return t[0]}else if("path"in e&&e.path.length)return e.path[0]}catch(e){}return e&&e.target}function Ur(e,t){var r=s(),n=new Rr;jr.push(n),r.add((()=>{var e=jr.indexOf(n);-1!==e&&jr.splice(e,1)})),r.add((()=>n.destroy())),r.add((()=>n.reset()));try{n.init(e);var i=new(M())(Fr(n.processMutations.bind(n)));r.add((()=>i.disconnect()));var a={attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0};return e.attributeFilter&&e.attributeFilter.length>0&&(a.attributeFilter=e.attributeFilter),i.observe(t,a),{observer:i,buffer:n}}catch(e){throw r.close(),e}}function zr(e){var t=e.scrollCb,r=e.doc,n=e.mirror,i=e.blockClass,a=e.blockSelector,s=e.sampling,l=!0,u=new Map,c=e=>{if(l){var s=Br(e);if(s&&!mr(s,i,a,!0)){var o,c,d=n.getId(s);if(s===r&&r.defaultView){var h=dr(r.defaultView);o=h.left,c=h.top}else o=s.scrollLeft,c=s.scrollTop;var p=o+","+c;u.get(d)!==p&&(u.set(d,p),t({id:d,x:o,y:c}))}}},d=Fr(lr(Fr((e=>c(e))),s.scroll||100));return o((e=>{e.add((()=>{l=!1})),e.add(nr("scroll",d,r)),"onscrollend"in r&&e.add(nr("scrollend",Fr(c),r))}))}function Wr(e,t){for(var r=jr.length-1;r>=0;r--){var n=jr[r];if(n){var i=n.bufferBelongsToIframe(e);!i&&t&&t.has(n.bufferDoc())&&(i=!0),i&&(n.reset(),jr.splice(r,1))}}}var Hr=["INPUT","TEXTAREA","SELECT"],Vr=new WeakMap;function Gr(e){return function e(t,r){if(Qr("CSSGroupingRule")&&t.parentRule instanceof CSSGroupingRule||Qr("CSSMediaRule")&&t.parentRule instanceof CSSMediaRule||Qr("CSSSupportsRule")&&t.parentRule instanceof CSSSupportsRule||Qr("CSSConditionRule")&&t.parentRule instanceof CSSConditionRule){var n=Array.from(t.parentRule.cssRules).indexOf(t);return r.unshift(n),e(t.parentRule,r)}if(t.parentStyleSheet){var i=Array.from(t.parentStyleSheet.cssRules).indexOf(t);r.unshift(i)}return r}(e,[])}function Jr(e,t,r){var n,i;return e?(e.ownerNode?n=t.getId(e.ownerNode):i=r.getId(e),{styleId:i,id:n}):{}}function qr(e,t){var r,n,i,a=e.mirror,s=e.stylesheetManager;i="#document"===t.nodeName?a.getId(t):a.getId(x.host(t));var o="#document"===t.nodeName?null==(r=t.defaultView)?void 0:r.Document:null==(n=t.ownerDocument)||null==(n=n.defaultView)?void 0:n.ShadowRoot,l=null!=o&&o.prototype?Object.getOwnPropertyDescriptor(null==o?void 0:o.prototype,"adoptedStyleSheets"):void 0;return null!==i&&-1!==i&&o&&l?(Object.defineProperty(t,"adoptedStyleSheets",{configurable:l.configurable,enumerable:l.enumerable,get(){var e;return null==(e=l.get)?void 0:e.call(this)},set(e){var t;try{var r;t=null==(r=l.set)?void 0:r.call(this,e)}catch(e){if(e&&"object"==typeof e&&"NotAllowedError"===e.name)return;throw e}if(null!==i&&-1!==i)try{s.adoptStyleSheets(e,i)}catch(e){}return t}}),Fr((()=>{Object.defineProperty(t,"adoptedStyleSheets",{configurable:l.configurable,enumerable:l.enumerable,get:l.get,set:l.set})}))):()=>{}}function Yr(e,t){void 0===t&&(t={});var n=e.doc.defaultView;return n?(function(e,t){var r=e.mutationCb,n=e.mousemoveCb,i=e.mouseInteractionCb,a=e.scrollCb,s=e.viewportResizeCb,o=e.inputCb,l=e.mediaInteractionCb,u=e.styleSheetRuleCb,c=e.styleDeclarationCb,d=e.canvasMutationCb,h=e.fontCb,p=e.selectionCb,f=e.customElementCb;e.mutationCb=function(){t.mutation&&t.mutation(...arguments),r(...arguments)},e.mousemoveCb=function(){t.mousemove&&t.mousemove(...arguments),n(...arguments)},e.mouseInteractionCb=function(){t.mouseInteraction&&t.mouseInteraction(...arguments),i(...arguments)},e.scrollCb=function(){t.scroll&&t.scroll(...arguments),a(...arguments)},e.viewportResizeCb=function(){t.viewportResize&&t.viewportResize(...arguments),s(...arguments)},e.inputCb=function(){t.input&&t.input(...arguments),o(...arguments)},e.mediaInteractionCb=function(){t.mediaInteaction&&t.mediaInteaction(...arguments),l(...arguments)},e.styleSheetRuleCb=function(){t.styleSheetRule&&t.styleSheetRule(...arguments),u(...arguments)},e.styleDeclarationCb=function(){t.styleDeclaration&&t.styleDeclaration(...arguments),c(...arguments)},e.canvasMutationCb=function(){t.canvasMutation&&t.canvasMutation(...arguments),d(...arguments)},e.fontCb=function(){t.font&&t.font(...arguments),h(...arguments)},e.selectionCb=function(){t.selection&&t.selection(...arguments),p(...arguments)},e.customElementCb=function(){t.customElement&&t.customElement(...arguments),f(...arguments)}}(e,t),o((t=>{if(t.add((()=>e.shadowDomManager.resetForDoc(e.doc))),e.recordDOM){var i=Ur(e,e.doc),a=i.observer,s=i.buffer;t.add((()=>{var e=jr.indexOf(s);-1!==e&&jr.splice(e,1)})),t.add((()=>s.destroy())),t.add((()=>s.reset())),t.add((()=>a.disconnect()))}var l,h,f,m,v;for(var g of(t.add(function(e){var t=e.mousemoveCb,r=e.sampling,n=e.doc,i=e.mirror,a=!0;if(!1===r.mousemove)return()=>{};var s,l="number"==typeof r.mousemove?r.mousemove:50,c="number"==typeof r.mousemoveCallback?r.mousemoveCallback:500,d=[],h=lr(Fr((e=>{if(a){var r=Date.now()-s;t(d.map((e=>(e.timeOffset-=r,e))),e),d=[],s=null}})),c),p=Fr(lr(Fr((e=>{if(a){var t=Br(e),r=yr(e)?e.changedTouches[0]:e,n=r.clientX,o=r.clientY;s||(s=cr()),d.push({x:n,y:o,id:i.getId(t),timeOffset:cr()-s}),h("undefined"!=typeof DragEvent&&e instanceof DragEvent?u.Drag:e instanceof MouseEvent?u.MouseMove:u.TouchMove)}})),l,{trailing:!1}));return o((e=>{e.add((()=>{a=!1})),e.add(nr("mousemove",p,n)),e.add(nr("touchmove",p,n)),e.add(nr("drag",p,n))}))}(e)),t.add(function(e){var t=e.mouseInteractionCb,n=e.doc,i=e.mirror,a=e.blockClass,s=e.blockSelector,l=e.sampling,u=!0;if(!1===l.mouseInteraction)return()=>{};var h=!0===l.mouseInteraction||void 0===l.mouseInteraction?{}:l.mouseInteraction,p=null;return o((e=>{e.add((()=>{u=!1})),Object.keys(c).filter((e=>Number.isNaN(Number(e))&&!e.endsWith("_Departed")&&!1!==h[e])).forEach((o=>{var l=D(o),h=(e=>n=>{if(u){var o=Br(n);if(!mr(o,a,s,!0)){var l=null,h=e;if("pointerType"in n){switch(n.pointerType){case"mouse":l=d.Mouse;break;case"touch":l=d.Touch;break;case"pen":l=d.Pen}l===d.Touch?c[e]===c.MouseDown?h="TouchStart":c[e]===c.MouseUp&&(h="TouchEnd"):d.Pen}else yr(n)&&(l=d.Touch);null!==l?(p=l,(h.startsWith("Touch")&&l===d.Touch||h.startsWith("Mouse")&&l===d.Mouse)&&(l=null)):c[e]===c.Click&&(l=p,p=null);var f=yr(n)?n.changedTouches[0]:n;if(f){var m=i.getId(o),v=f.clientX,g=f.clientY;Fr(t)(r({type:c[h],id:m,x:v,y:g},null!==l&&{pointerType:l}))}}}})(o);if(window.PointerEvent)switch(c[o]){case c.MouseDown:case c.MouseUp:l=l.replace("mouse","pointer");break;case c.TouchStart:case c.TouchEnd:return}e.add(nr(l,h,n))}))}))}(e)),t.add(zr(e)),t.add((l={win:n},h=e.viewportResizeCb,f=l.win,m=-1,v=-1,nr("resize",Fr(lr(Fr((()=>{var e=hr(),t=pr();m===e&&v===t||(h({width:Number(t),height:Number(e)}),m=e,v=t)})),200)),f))),t.add(function(e){var t=e.inputCb,n=e.doc,i=e.mirror,a=e.blockClass,s=e.blockSelector,l=e.ignoreClass,u=e.ignoreSelector,c=e.maskInputOptions,d=e.maskInputFn,h=e.sampling,p=e.userTriggeredOnInput,f=!0;function m(e){if(f){var t=Br(e),r=e.isTrusted,i=n.defaultView;if(!t||!i||t instanceof i.HTMLElement){var o=t&&t.tagName;if(t&&"OPTION"===o&&(t=x.parentElement(t)),t&&o&&!(Hr.indexOf(o)<0)&&!mr(t,a,s,!0)&&!(t.classList.contains(l)||u&&t.matches(u))){var h=t.value,m=!1,g=F(t)||"";"radio"===g||"checkbox"===g?m=t.checked:(c[o.toLowerCase()]||c[g])&&(h=L({element:t,maskInputOptions:c,tagName:o,type:g,value:h,maskInputFn:d})),v(t,p?{text:h,isChecked:m,userTriggered:r}:{text:h,isChecked:m});var y=t.name;"radio"===g&&y&&m&&n.querySelectorAll('input[type="radio"][name="'+y+'"]').forEach((e=>{if(e!==t){var r=e.value;v(e,p?{text:r,isChecked:!m,userTriggered:!1}:{text:r,isChecked:!m})}}))}}}}function v(e,n){var a=Vr.get(e);if(!a||a.text!==n.text||a.isChecked!==n.isChecked){Vr.set(e,n);var s=i.getId(e);Fr(t)(r({},n,{id:s}))}}return o((e=>{e.add((()=>{f=!1}));var t="last"===h.input?["change"]:["input","change"];for(var r of t)e.add(nr(r,Fr(m),n));var i=n.defaultView;if(i){var a=i.Object.getOwnPropertyDescriptor(i.HTMLInputElement.prototype,"value"),s=[[i.HTMLInputElement.prototype,"value"],[i.HTMLInputElement.prototype,"checked"],[i.HTMLSelectElement.prototype,"value"],[i.HTMLTextAreaElement.prototype,"value"],[i.HTMLSelectElement.prototype,"selectedIndex"],[i.HTMLOptionElement.prototype,"selected"]];if(a&&a.set){var o=function(t){var r=i.Object.getOwnPropertyDescriptor(t[0],t[1]);e.add((()=>{r?i.Object.defineProperty(t[0],t[1],r):Reflect.deleteProperty(t[0],t[1])})),ur(t[0],t[1],{set(){Fr(m)({target:this,isTrusted:!1})}},!1,i)};for(var l of s)o(l)}}}))}(e)),t.add(function(e){var t=e.mediaInteractionCb,r=e.blockClass,n=e.blockSelector,i=e.mirror,a=e.sampling,s=e.doc,l=!0,u=Fr((e=>lr(Fr((a=>{if(l){var s=Br(a);if(s&&!mr(s,r,n,!0)){var o=s,u=o.currentTime,c=o.volume,d=o.muted,h=o.playbackRate,p=o.loop;t({type:e,id:i.getId(s),currentTime:u,volume:c,muted:d,playbackRate:h,loop:p})}}})),a.media||500)));return o((e=>{e.add((()=>{l=!1})),e.add(nr("play",u(p.Play),s)),e.add(nr("pause",u(p.Pause),s)),e.add(nr("seeked",u(p.Seeked),s)),e.add(nr("volumechange",u(p.VolumeChange),s)),e.add(nr("ratechange",u(p.RateChange),s))}))}(e)),e.recordDOM&&(t.add(function(e,t){var r=e.styleSheetRuleCb,n=e.mirror,i=e.stylesheetManager,a=t.win;return a.CSSStyleSheet&&a.CSSStyleSheet.prototype?o((e=>{var t=a.CSSStyleSheet.prototype.insertRule;e.replace(a.CSSStyleSheet.prototype,"insertRule",new Proxy(t,{apply:Fr(((e,t,a)=>{var s=a[0],o=a[1],l=Jr(t,n,i.styleMirror),u=l.id,c=l.styleId;return(u&&-1!==u||c&&-1!==c)&&r({id:u,styleId:c,adds:[{rule:s,index:o}]}),e.apply(t,a)}))})),e.replace(a.CSSStyleSheet.prototype,"addRule",(function(e,t,r){void 0===r&&(r=this.cssRules.length);var n=e+" { "+t+" }";return a.CSSStyleSheet.prototype.insertRule.apply(this,[n,r])}));var s,o,l=a.CSSStyleSheet.prototype.deleteRule;e.replace(a.CSSStyleSheet.prototype,"deleteRule",new Proxy(l,{apply:Fr(((e,t,a)=>{var s=a[0],o=Jr(t,n,i.styleMirror),l=o.id,u=o.styleId;return(l&&-1!==l||u&&-1!==u)&&r({id:l,styleId:u,removes:[{index:s}]}),e.apply(t,a)}))})),e.replace(a.CSSStyleSheet.prototype,"removeRule",(function(e){return a.CSSStyleSheet.prototype.deleteRule.apply(this,[e])})),a.CSSStyleSheet.prototype.replace&&(s=a.CSSStyleSheet.prototype.replace,e.replace(a.CSSStyleSheet.prototype,"replace",new Proxy(s,{apply:Fr(((e,t,a)=>{var s=a[0],o=Jr(t,n,i.styleMirror),l=o.id,u=o.styleId;return(l&&-1!==l||u&&-1!==u)&&r({id:l,styleId:u,replace:s}),e.apply(t,a)}))}))),a.CSSStyleSheet.prototype.replaceSync&&(o=a.CSSStyleSheet.prototype.replaceSync,e.replace(a.CSSStyleSheet.prototype,"replaceSync",new Proxy(o,{apply:Fr(((e,t,a)=>{var s=a[0],o=Jr(t,n,i.styleMirror),l=o.id,u=o.styleId;return(l&&-1!==l||u&&-1!==u)&&r({id:l,styleId:u,replaceSync:s}),e.apply(t,a)}))})));var u={};Zr("CSSGroupingRule")?u.CSSGroupingRule=a.CSSGroupingRule:(Zr("CSSMediaRule")&&(u.CSSMediaRule=a.CSSMediaRule),Zr("CSSConditionRule")&&(u.CSSConditionRule=a.CSSConditionRule),Zr("CSSSupportsRule")&&(u.CSSSupportsRule=a.CSSSupportsRule));var c={};Object.entries(u).forEach((t=>{var a=t[0],s=t[1];c[a]={insertRule:s.prototype.insertRule,deleteRule:s.prototype.deleteRule},e.replace(s.prototype,"insertRule",new Proxy(c[a].insertRule,{apply:Fr(((e,t,a)=>{var s=a[0],o=a[1],l=Jr(t.parentStyleSheet,n,i.styleMirror),u=l.id,c=l.styleId;return(u&&-1!==u||c&&-1!==c)&&r({id:u,styleId:c,adds:[{rule:s,index:[...Gr(t),o||0]}]}),e.apply(t,a)}))})),e.replace(s.prototype,"deleteRule",new Proxy(c[a].deleteRule,{apply:Fr(((e,t,a)=>{var s=a[0],o=Jr(t.parentStyleSheet,n,i.styleMirror),l=o.id,u=o.styleId;return(l&&-1!==l||u&&-1!==u)&&r({id:l,styleId:u,removes:[{index:[...Gr(t),s]}]}),e.apply(t,a)}))}))}))})):()=>{}}(e,{win:n})),t.add(qr(e,e.doc)),t.add(function(e,t){var r=e.styleDeclarationCb,n=e.mirror,i=e.ignoreCSSAttributes,a=e.stylesheetManager,s=t.win;return o((e=>{var t=s.CSSStyleDeclaration.prototype.setProperty;e.replace(s.CSSStyleDeclaration.prototype,"setProperty",new Proxy(t,{apply:Fr(((e,s,o)=>{var l,u=o[0],c=o[1],d=o[2];if(i.has(u))return t.apply(s,[u,c,d]);var h=Jr(null==(l=s.parentRule)?void 0:l.parentStyleSheet,n,a.styleMirror),p=h.id,f=h.styleId;return(p&&-1!==p||f&&-1!==f)&&r({id:p,styleId:f,set:{property:u,value:c,priority:d},index:Gr(s.parentRule)}),e.apply(s,o)}))}));var o=s.CSSStyleDeclaration.prototype.removeProperty;e.replace(s.CSSStyleDeclaration.prototype,"removeProperty",new Proxy(o,{apply:Fr(((e,t,s)=>{var l,u=s[0];if(i.has(u))return o.apply(t,[u]);var c=Jr(null==(l=t.parentRule)?void 0:l.parentStyleSheet,n,a.styleMirror),d=c.id,h=c.styleId;return(d&&-1!==d||h&&-1!==h)&&r({id:d,styleId:h,remove:{property:u},index:Gr(t.parentRule)}),e.apply(t,s)}))}))}))}(e,{win:n})),e.collectFonts&&t.add(function(e){var t=e.fontCb,r=e.doc,n=!0,i=r.defaultView;return i?o((e=>{e.add((()=>{n=!1}));var a=new WeakMap,s=i.FontFace;e.replace(i,"FontFace",(function(e,t,r){var n=new s(e,t,r);return a.set(n,{family:e,buffer:"string"!=typeof t,descriptors:r,fontSource:"string"==typeof t?t:JSON.stringify(Array.from(new Uint8Array(t)))}),n}));var o=I(r.fonts,"add",(function(e){return function(r){return setTimeout(Fr((()=>{if(n){var e=a.get(r);e&&(t(e),a.delete(r))}})),0),e.apply(this,[r])}}));e.add(o)})):()=>{}}(e))),t.add(function(e){var t=e.doc,r=e.mirror,n=e.blockClass,i=e.blockSelector,a=e.selectionCb,s=!0,o=Fr((()=>{var e=t.getSelection();if(!(!e||s&&null!=e&&e.isCollapsed)){s=e.isCollapsed||!1;for(var o=[],l=e.rangeCount||0,u=0;u<l;u++){var c=e.getRangeAt(u),d=c.startContainer,h=c.startOffset,p=c.endContainer,f=c.endOffset;mr(d,n,i,!0)||mr(p,n,i,!0)||o.push({start:r.getId(d),startOffset:h,end:r.getId(p),endOffset:f})}a({ranges:o})}}));return o(),nr("selectionchange",o)}(e)),t.add(function(e){var t=e.doc,r=e.customElementCb,n=t.defaultView;return n&&n.customElements?I(n.customElements,"define",(function(e){return function(t,n,i){try{r({define:{name:t}})}catch(e){console.warn("Custom element callback failed for "+t)}return e.apply(this,[t,n,i])}})):()=>{}}(e)),e.plugins))t.add(g.observer(g.callback,n,g.options))}))):()=>{}}function Qr(e){return void 0!==window[e]}function Zr(e){return Boolean(void 0!==window[e]&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}class Kr{constructor(e){this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap,this.generateIdFn=e}getId(e,t,r,n){var i=r||this.getIdToRemoteIdMap(e),a=n||this.getRemoteIdToIdMap(e),s=i.get(t);return s||(s=this.generateIdFn(),i.set(t,s),a.set(s,t)),s}getIds(e,t){var r=this.getIdToRemoteIdMap(e),n=this.getRemoteIdToIdMap(e);return t.map((t=>this.getId(e,t,r,n)))}getRemoteId(e,t,r){var n=r||this.getRemoteIdToIdMap(e);return"number"!=typeof t?t:n.get(t)||-1}getRemoteIds(e,t){var r=this.getRemoteIdToIdMap(e);return t.map((t=>this.getRemoteId(e,t,r)))}reset(e){if(!e)return this.iframeIdToRemoteIdMap=new WeakMap,void(this.iframeRemoteIdToIdMap=new WeakMap);this.iframeIdToRemoteIdMap.delete(e),this.iframeRemoteIdToIdMap.delete(e)}getIdToRemoteIdMap(e){var t=this.iframeIdToRemoteIdMap.get(e);return t||(t=new Map,this.iframeIdToRemoteIdMap.set(e,t)),t}getRemoteIdToIdMap(e){var t=this.iframeRemoteIdToIdMap.get(e);return t||(t=new Map,this.iframeRemoteIdToIdMap.set(e,t)),t}}class Xr{constructor(e){this.iframes=new WeakMap,this.crossOriginIframeMap=new WeakMap,this.crossOriginIframeMirror=new Kr(Z),this.crossOriginIframeStyleMirror=void 0,this.crossOriginIframeRootIdMap=new WeakMap,this.mirror=void 0,this.mutationCb=void 0,this.wrappedEmit=void 0,this.loadListener=void 0,this.pageHideListener=void 0,this.stylesheetManager=void 0,this.recordCrossOriginIframes=void 0,this.messageHandler=void 0,this.nestedIframeListeners=new Map,this.attachedWindows=new WeakMap,this.attachedDocuments=new WeakMap,this.attachedIframes=new Map,this.loadListenerDisposers=new WeakMap,this.iframeElementsById=new Map,this.pageHideHandlers=new WeakMap,this.mutationCb=e.mutationCb,this.wrappedEmit=e.wrappedEmit,this.stylesheetManager=e.stylesheetManager,this.recordCrossOriginIframes=e.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new Kr(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=e.mirror,this.messageHandler=this.handleMessage.bind(this),this.recordCrossOriginIframes&&window.addEventListener("message",this.messageHandler)}addIframe(e){this.iframes.set(e,!0),e.contentWindow&&this.crossOriginIframeMap.set(e.contentWindow,e)}registerLoadListenerDisposer(e,t){var r=this.loadListenerDisposers.get(e);r||(r=new Set,this.loadListenerDisposers.set(e,r)),r.add(t);var n=this.mirror.getId(e);-1!==n&&this.iframeElementsById.set(n,e)}getIframeElementById(e){var t,r,n;return null!=(t=null!=(r=null==(n=this.attachedIframes.get(e))?void 0:n.element)?r:this.iframeElementsById.get(e))?t:null}forgetIframeId(e){this.attachedIframes.delete(e),this.iframeElementsById.delete(e)}disposeLoadListeners(e){var t=this.loadListenerDisposers.get(e);t&&(t.forEach((e=>ar(e))),this.loadListenerDisposers.delete(e))}removePageHideListener(e){var t=this.pageHideHandlers.get(e);t&&(t.forEach((e=>{ir(e.win,"pagehide",e.handler)})),this.pageHideHandlers.delete(e))}addLoadListener(e){this.loadListener=e}addPageHideListener(e){this.pageHideListener=e}removeLoadListener(){this.loadListener=void 0}trackIframeContent(e,t){var r=this.mirror.getId(e);return this.attachedIframes.set(r,{element:e,content:t}),r}attachIframe(e,t){var r,n=this.trackIframeContent(e,t);if(e.contentDocument){var i=this.attachedDocuments.get(e);i||(i=new Set,this.attachedDocuments.set(e,i)),i.add(e.contentDocument)}this.mutationCb({adds:[{parentId:n,nextId:null,node:t}],removes:[],texts:[],attributes:[],isAttachIframe:!0});var a=e.contentWindow;if(this.recordCrossOriginIframes&&a&&!this.nestedIframeListeners.has(a)){var s=this.handleMessage.bind(this);ar((()=>{a.addEventListener("message",s),this.nestedIframeListeners.set(a,s);var t=this.attachedWindows.get(e);t||(t=new Set,this.attachedWindows.set(e,t)),t.add(a)}))}ar((()=>{var t=e.contentWindow;if(t){var r=this.pageHideHandlers.get(e);if(r)for(var n of r)if(n.win===t)return;var i=()=>{var t;null==(t=this.pageHideListener)||t.call(this,e),e.contentDocument&&this.mirror.removeNodeFromMap(e.contentDocument),e.contentWindow&&this.crossOriginIframeMap.delete(e.contentWindow)};t.addEventListener("pagehide",i),r||(r=new Set,this.pageHideHandlers.set(e,r)),r.add({win:t,handler:i})}})),null==(r=this.loadListener)||r.call(this,e),e.contentDocument&&e.contentDocument.adoptedStyleSheets&&e.contentDocument.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(e.contentDocument.adoptedStyleSheets,this.mirror.getId(e.contentDocument))}handleMessage(e){var t=e;if("rrweb"===t.data.type&&t.origin===t.data.origin&&e.source){var r=this.crossOriginIframeMap.get(e.source);if(r){var n=this.transformCrossOriginEvent(r,t.data.event);n&&this.wrappedEmit(n,t.data.isCheckout)}}}transformCrossOriginEvent(e,t){switch(t.type){case l.FullSnapshot:this.crossOriginIframeMirror.reset(e),this.crossOriginIframeStyleMirror.reset(e),this.replaceIdOnNode(t.data.node,e);var r=t.data.node.id;return this.crossOriginIframeRootIdMap.set(e,r),this.patchRootIdOnNode(t.data.node,r),this.trackIframeContent(e,t.data.node),{timestamp:t.timestamp,type:l.IncrementalSnapshot,data:{source:u.Mutation,adds:[{parentId:this.mirror.getId(e),nextId:null,node:t.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}};case l.Meta:case l.Load:case l.DomContentLoaded:return!1;case l.Plugin:return t;case l.Custom:return this.replaceIds(t.data.payload,e,["id","parentId","previousId","nextId"]),t;case l.IncrementalSnapshot:switch(t.data.source){case u.Mutation:return t.data.adds.forEach((t=>{this.replaceIds(t,e,["parentId","nextId","previousId"]),this.replaceIdOnNode(t.node,e);var r=this.crossOriginIframeRootIdMap.get(e);r&&this.patchRootIdOnNode(t.node,r)})),t.data.removes.forEach((t=>{this.replaceIds(t,e,["parentId","id"])})),t.data.attributes.forEach((t=>{this.replaceIds(t,e,["id"])})),t.data.texts.forEach((t=>{this.replaceIds(t,e,["id"])})),t;case u.Drag:case u.TouchMove:case u.MouseMove:return t.data.positions.forEach((t=>{this.replaceIds(t,e,["id"])})),t;case u.ViewportResize:return!1;case u.MediaInteraction:case u.MouseInteraction:case u.Scroll:case u.CanvasMutation:case u.Input:return this.replaceIds(t.data,e,["id"]),t;case u.StyleSheetRule:case u.StyleDeclaration:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleId"]),t;case u.Font:return t;case u.Selection:return t.data.ranges.forEach((t=>{this.replaceIds(t,e,["start","end"])})),t;case u.AdoptedStyleSheet:var n;return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleIds"]),null==(n=t.data.styles)||n.forEach((t=>{this.replaceStyleIds(t,e,["styleId"])})),t}}return!1}replace(e,t,r,n){for(var i of n)(Array.isArray(t[i])||"number"==typeof t[i])&&(Array.isArray(t[i])?t[i]=e.getIds(r,t[i]):t[i]=e.getId(r,t[i]));return t}replaceIds(e,t,r){return this.replace(this.crossOriginIframeMirror,e,t,r)}replaceStyleIds(e,t,r){return this.replace(this.crossOriginIframeStyleMirror,e,t,r)}replaceIdOnNode(e,t){this.replaceIds(e,t,["id","rootId"]),"childNodes"in e&&e.childNodes.forEach((e=>{this.replaceIdOnNode(e,t)}))}patchRootIdOnNode(e,t){e.type===f.Document||e.rootId||(e.rootId=t),"childNodes"in e&&e.childNodes.forEach((e=>{this.patchRootIdOnNode(e,t)}))}removeIframeById(e){var t=this.attachedIframes.get(e),r=(null==t?void 0:t.element)||this.iframeElementsById.get(e)||this.mirror.getNode(e);if(this.iframeElementsById.delete(e),r){var n=r.contentWindow,i=this.attachedWindows.get(r);i&&(i.forEach((e=>{var t=this.nestedIframeListeners.get(e);t&&(ir(e,"message",t),this.nestedIframeListeners.delete(e)),this.crossOriginIframeMap.delete(e)})),this.attachedWindows.delete(r)),n&&this.nestedIframeListeners.has(n)&&(ir(n,"message",this.nestedIframeListeners.get(n)),this.nestedIframeListeners.delete(n)),n&&this.crossOriginIframeMap.delete(n),this.iframes.delete(r),this.disposeLoadListeners(r),this.removePageHideListener(r);var a=this.attachedDocuments.get(r);a&&(a.forEach((e=>{ar((()=>this.mirror.removeNodeFromMap(e)))})),ar((()=>Wr(r,a))),this.attachedDocuments.delete(r))}t&&this.attachedIframes.delete(e)}cleanupDetachedIframes(){if(0!==this.attachedIframes.size){var e=[];this.attachedIframes.forEach(((t,r)=>{this.mirror.has(r)||e.push(r)})),e.forEach((e=>this.removeIframeById(e)))}}reattachIframes(){this.attachedIframes.forEach(((e,t)=>{var r=e.content;this.mirror.has(t)?this.mutationCb({adds:[{parentId:t,nextId:null,node:r}],removes:[],texts:[],attributes:[],isAttachIframe:!0}):this.attachedIframes.delete(t)}))}destroy(){this.recordCrossOriginIframes&&ir(window,"message",this.messageHandler),this.nestedIframeListeners.forEach(((e,t)=>{ir(t,"message",e)})),this.nestedIframeListeners.clear();var e=new Set;this.iframeElementsById.forEach((t=>e.add(t))),this.attachedIframes.forEach((t=>{var r=t.element;return e.add(r)})),e.forEach((e=>{this.disposeLoadListeners(e),this.removePageHideListener(e)})),this.crossOriginIframeMirror.reset(),this.crossOriginIframeStyleMirror.reset(),this.attachedIframes.clear(),this.crossOriginIframeMap=new WeakMap,this.iframes=new WeakMap,this.crossOriginIframeRootIdMap=new WeakMap,this.loadListenerDisposers=new WeakMap,this.pageHideHandlers=new WeakMap,this.attachedDocuments=new WeakMap,this.attachedWindows=new WeakMap,this.iframeElementsById=new Map}}class _r{constructor(e){this.shadowDoms=new WeakSet,this.mutationCb=void 0,this.scrollCb=void 0,this.bypassOptions=void 0,this.mirror=void 0,this.generation={},this.documentGenerations=new WeakMap,this.cleanupFailed=!1,this.restoreHandlers=[],this.mutationCb=e.mutationCb,this.scrollCb=e.scrollCb,this.bypassOptions=e.bypassOptions,this.mirror=e.mirror,this.init()}init(){this.reset(),this.patchAttachShadow(Element,document)}addShadowRoot(e,t){var n,i;if(R(e)&&!this.shadowDoms.has(e)){this.shadowDoms.add(e);var a=null!=(n=null==(i=x.host(e))?void 0:i.ownerDocument)?n:t,o=Ur(r({},this.bypassOptions,{doc:a,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this}),e),l=o.observer,u=o.buffer;this.restoreHandlers.push({doc:a,handler:()=>{var e=s();e.add((()=>{var e=jr.indexOf(u);-1!==e&&jr.splice(e,1)})),e.add((()=>u.destroy())),e.add((()=>u.releaseCanvasManager())),e.add((()=>l.disconnect())),e.close()}}),this.restoreHandlers.push({doc:a,handler:zr(r({},this.bypassOptions,{scrollCb:this.scrollCb,doc:e,mirror:this.mirror}))});var c=this.generation,d=this.documentGenerations.get(a);d||(d={},this.documentGenerations.set(a,d));var h=setTimeout((()=>{c===this.generation&&d===this.documentGenerations.get(a)&&(e.adoptedStyleSheets&&e.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(e.adoptedStyleSheets,this.mirror.getId(x.host(e))),this.restoreHandlers.push({doc:a,handler:qr({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},e)}))}),0);this.restoreHandlers.push({doc:a,handler:()=>clearTimeout(h)})}}observeAttachShadow(e){e.contentWindow&&e.contentDocument&&this.patchAttachShadow(e.contentWindow.Element,e.contentDocument)}patchAttachShadow(e,t){var r=this;this.restoreHandlers.push({doc:t,handler:I(e.prototype,"attachShadow",(function(e){return function(n){var i=e.call(this,n),a=x.shadowRoot(this);return a&&Mr(this)&&r.addShadowRoot(a,t),i}}))})}disposeHandlers(e){var t=s();for(var r of e){var n=r.handler;t.add(n)}try{t.close()}catch(e){this.cleanupFailed=!0}if(this.cleanupFailed)throw new i}reset(){this.generation={},this.documentGenerations=new WeakMap;var e=this.restoreHandlers;this.restoreHandlers=[],this.shadowDoms=new WeakSet,this.disposeHandlers(e)}resetForDoc(e){this.documentGenerations.set(e,{});var t=this.restoreHandlers.filter((t=>t.doc===e));this.restoreHandlers=this.restoreHandlers.filter((t=>t.doc!==e)),this.disposeHandlers(t)}}var $r="skip-frame";function en(e){if("object"!=typeof e||null===e)return!1;var t=e,r=t.x,n=t.y,i=t.width,a=t.height;return Number.isFinite(r)&&Number.isFinite(n)&&Number.isFinite(i)&&Number.isFinite(a)&&i>=0&&a>=0}for(var tn="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",rn="undefined"==typeof Uint8Array?[]:new Uint8Array(256),nn=0;nn<64;nn++)rn[tn.charCodeAt(nn)]=nn;var an=new Map,sn=(e,t,r)=>{if(e&&(un(e,t)||"object"==typeof e)){var n=function(e,t){var r=an.get(e);return r||(r=new Map,an.set(e,r)),r.has(t)||r.set(t,[]),r.get(t)}(r,e.constructor.name),i=n.indexOf(e);return-1===i&&(i=n.length,n.push(e)),i}};function on(e,t,r,n){if(e instanceof Array)return e.map((e=>on(e,t,r,n)));if(null===e)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){var i=e.constructor.name,a=function(e){var t,r=new Uint8Array(e),n=r.length,i="";for(t=0;t<n;t+=3)i+=tn[r[t]>>2],i+=tn[(3&r[t])<<4|r[t+1]>>4],i+=tn[(15&r[t+1])<<2|r[t+2]>>6],i+=tn[63&r[t+2]];return n%3==2?i=i.substring(0,i.length-1)+"=":n%3==1&&(i=i.substring(0,i.length-2)+"=="),i}(e);return{rr_type:i,base64:a}}return e instanceof DataView?{rr_type:e.constructor.name,args:[on(e.buffer,t,r,n),e.byteOffset,e.byteLength]}:e instanceof HTMLImageElement?{rr_type:e.constructor.name,src:e.src}:e instanceof HTMLCanvasElement?{rr_type:"HTMLImageElement",src:e.toDataURL(n.type,n.quality)}:e instanceof ImageData?{rr_type:e.constructor.name,args:[on(e.data,t,r,n),e.width,e.height]}:un(e,t)||"object"==typeof e?{rr_type:e.constructor.name,index:sn(e,t,r)}:e}var ln=(e,t,r,n)=>e.map((e=>on(e,t,r,n))),un=(e,t)=>{var r=["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"].filter((e=>"function"==typeof t[e]));return Boolean(r.find((r=>e instanceof t[r])))},cn=["webgl","webgl2"];function dn(e){return"nodeType"in e}function hn(e,t,n,i){var a=[];try{if(i){var s=function(e,t,n){var i=e.GPUCanvasContext;if(null!=i&&i.prototype&&"function"==typeof i.prototype.configure)return I(i.prototype,"configure",(function(i){return function(a){var s=function(e){var t=e.canvas;return t&&"object"==typeof t?t:null}(this);if(!s||dn(s)&&mr(s,t,n,!0))return i.call(this,a);dn(s)&&!("__context"in s)&&(s.__context="webgpu");var o=function(e){var t=e.GPUTextureUsage;return t?t.COPY_SRC|t.RENDER_ATTACHMENT:null}(e);return null!==o&&a?i.call(this,r({},a,{usage:"number"==typeof a.usage?a.usage|o:o})):i.call(this,a)}}))}(e,t,n);s&&a.push(s)}var o=I(e.HTMLCanvasElement.prototype,"getContext",(function(e){return function(r){for(var a=function(e){return"experimental-webgl"===e?"webgl":e}(r),s=arguments.length,o=new Array(s>1?s-1:0),l=1;l<s;l++)o[l-1]=arguments[l];if(!mr(this,t,n,!0)&&("__context"in this||(this.__context=a),i&&cn.includes(a)))if(o[0]&&"object"==typeof o[0]){var u=o[0];u.preserveDrawingBuffer||(u.preserveDrawingBuffer=!0)}else o.splice(0,1,{preserveDrawingBuffer:!0});return e.apply(this,[r,...o])}}));a.push(o)}catch(e){console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return()=>{a.forEach((e=>e()))}}function pn(e,t,r,n,i,a,s){var o=[],l=Object.getOwnPropertyNames(e),u=function(l){if(["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(l))return 0;try{if("function"!=typeof e[l])return 0;var u=I(e,l,(function(e){return function(){for(var o=arguments.length,u=new Array(o),c=0;c<o;c++)u[c]=arguments[c];var d=e.apply(this,u);if(sn(d,a,this),"tagName"in this.canvas&&!mr(this.canvas,n,i,!0)){var h=ln(u,a,this,s),p={type:t,property:l,args:h};r(this.canvas,p)}return d}}));o.push(u)}catch(n){var c=ur(e,l,{set(e){r(this.canvas,{type:t,property:l,args:[e],setter:!0})}});o.push(c)}};for(var c of l)u(c);return o}function fn(){const e=URL.createObjectURL(new Blob(['!function(){"use strict";function e(e,t,a,n,r,i,o){try{var s=e[i](o),l=s.value}catch(e){return void a(e)}s.done?t(l):Promise.resolve(l).then(n,r)}for(var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a="undefined"==typeof Uint8Array?[]:new Uint8Array(256),n=0;n<64;n++)a[t.charCodeAt(n)]=n;var r=function(e){var a,n=new Uint8Array(e),r=n.length,i="";for(a=0;a<r;a+=3)i+=t[n[a]>>2],i+=t[(3&n[a])<<4|n[a+1]>>4],i+=t[(15&n[a+1])<<2|n[a+2]>>6],i+=t[63&n[a+2]];return r%3==2?i=i.substring(0,i.length-1)+"=":r%3==1&&(i=i.substring(0,i.length-2)+"=="),i},i=new Map,o=new Map,s=new Map;function l(e){for(var t=new Uint32Array(e.buffer,e.byteOffset,e.byteLength>>>2),a=2166136261,n=2654435769,r=0;r<t.length;r++)a^=t[r],a=Math.imul(a,16777619),n^=t[r],n=Math.imul(n,2246822507);return(a>>>0).toString(16)+":"+(n>>>0).toString(16)}var f=self,d=null,u=null;f.onmessage=function(){var t,a=(t=function*(e){if("resetFrameDedup"in e.data)i.clear();else if("forgetFrame"in e.data)i.delete(e.data.forgetFrame);else{if(!("OffscreenCanvas"in globalThis))return e.data.bitmap.close(),f.postMessage({id:e.data.id});var t=e.data,a=t.id,n=t.bitmap,g=t.width,c=t.height,h=t.displayWidth,v=t.displayHeight,y=t.dataURLOptions,p=t.maskRegions;try{var w;d&&d.width===g&&d.height===c||(d=new OffscreenCanvas(g,c),u=d.getContext("2d",{willReadFrequently:!0}));var m=u;if(m.clearRect(0,0,g,c),m.drawImage(n,0,0),n.close(),p)for(var b of(m.fillStyle="black",p))m.fillRect(b.x,b.y,b.width,b.height);var M=function(e,t,a){return e+"x"+t+":"+l(a)}(g,c,m.getImageData(0,0,g,c).data),A=null!=(w=i.get(a))?w:function(e,t){var a=e*t,n=o.get(a);return void 0===n&&(n=l(new Uint8ClampedArray(4*a)),o.set(a,n)),e+"x"+t+":"+n}(g,c);if(M===A){var U=s.get(a);if(!(void 0!==p&&void 0!==U&&Date.now()-U>=3e4))return f.postMessage({id:a})}var x=yield d.convertToBlob(y),C=yield x.arrayBuffer();f.postMessage({id:a,type:x.type,base64:r(C),displayWidth:h,displayHeight:v}),i.set(a,M),s.set(a,Date.now())}catch(e){f.postMessage({id:a})}}},function(){var a=this,n=arguments;return new Promise((function(r,i){var o=t.apply(a,n);function s(t){e(o,r,i,s,l,"next",t)}function l(t){e(o,r,i,s,l,"throw",t)}s(void 0)}))});return function(e){return a.apply(this,arguments)}}()}();\n'],{type:"text/javascript"}));try{return new Worker(e)}finally{URL.revokeObjectURL(e)}}var mn,vn,gn,yn=["type"];class bn{onFullSnapshot(){var e;null==(e=this.resetFrameDedup)||e.call(this)}acquire(){this.refCount+=1}reset(){this.refCount>0&&(this.refCount-=1),this.refCount>0||this.teardown()}teardown(){this.torndown||(this.torndown=!0,this.pendingCanvasMutations.clear(),this.resetObservers&&this.resetObservers(),null!==this.rafIdTimestamp&&(cancelAnimationFrame(this.rafIdTimestamp),this.rafIdTimestamp=null),null!==this.rafIdFlush&&(cancelAnimationFrame(this.rafIdFlush),this.rafIdFlush=null))}freeze(){this.frozen=!0}unfreeze(){this.frozen=!1}lock(){this.locked=!0}unlock(){this.locked=!1}constructor(e){this.pendingCanvasMutations=new Map,this.rafStamps={latestId:0,invokeId:null},this.mirror=void 0,this.mutationCb=void 0,this.resetObservers=void 0,this.frozen=!1,this.locked=!1,this.rafIdTimestamp=null,this.rafIdFlush=null,this.refCount=0,this.torndown=!1,this.resetFrameDedup=null,this.processMutation=(e,t)=>{!(this.rafStamps.invokeId&&this.rafStamps.latestId!==this.rafStamps.invokeId)&&this.rafStamps.invokeId||(this.rafStamps.invokeId=this.rafStamps.latestId),this.pendingCanvasMutations.has(e)||this.pendingCanvasMutations.set(e,[]),this.pendingCanvasMutations.get(e).push(t)};var t=e.sampling,r=void 0===t?"all":t,n=e.win,i=e.blockClass,a=e.blockSelector,s=e.recordCanvas,o=e.dataURLOptions,l=e.resolutionScale,u=e.canvasMasking;this.mutationCb=e.mutationCb,this.mirror=e.mirror,s&&"all"===r&&this.initCanvasMutationObserver(n,i,a,o),s&&"number"==typeof r&&this.initCanvasFPSObserver(r,n,i,a,{dataURLOptions:o,resolutionScale:l,canvasMasking:u})}initCanvasFPSObserver(e,r,n,i,a){var s=this;if("OffscreenCanvas"in r){var o,l="number"==typeof a.resolutionScale&&Number.isFinite(a.resolutionScale)?Math.min(1,Math.max(.1,a.resolutionScale)):1,u=hn(r,n,i,!0),c=new Map;try{o=new fn}catch(e){return}var d=!1;o.onerror=()=>{d=!0,cancelAnimationFrame(f),null==o.terminate||o.terminate(),this.resetFrameDedup=null},this.resetFrameDedup=()=>{o.postMessage({resetFrameDedup:!0})};var p=new Map;o.onmessage=e=>{var t=e.data.id;if(c.set(t,!1),"base64"in e.data){var r=e.data,n=r.base64,i=r.type,a=r.displayWidth,s=r.displayHeight,u=this.mutationCb({id:t,type:h["2D"],commands:[{property:"clearRect",args:[0,0,a,s]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:n}],type:i}]},0,0,a,s]}],displayWidth:a,displayHeight:s});if("resend"===u)o.postMessage({forgetFrame:t});else if("shrink"===u){var d,f=null!=(d=p.get(t))?d:l;p.set(t,f<=.1?0:Math.max(.1,f/2))}}};var f,m=1e3/e,v=0,g=e=>{var u,h;d||(v&&e-v<m||(v=e,(u=[],h=e=>{try{e.querySelectorAll("canvas").forEach((e=>{mr(e,n,i,!0)||u.push(e)})),e.querySelectorAll("*").forEach((e=>{e.shadowRoot&&h(e.shadowRoot)}))}catch(e){}},h(r.document),u).forEach(function(){var e=t((function*(e){var t,r=s.mirror.getId(e);if(!c.get(r)){var n=null!=(t=p.get(r))?t:l;if(0!==n&&0!==e.width&&0!==e.height){c.set(r,!0);try{if(["webgl","webgl2"].includes(e.__context)){var i,u=e.getContext(e.__context);if(null!=u&&null!=u.isContextLost&&u.isContextLost())return void c.set(r,!1);!1===(null==u||null==(i=u.getContextAttributes())?void 0:i.preserveDrawingBuffer)&&u.clear(u.COLOR_BUFFER_BIT)}var d=e.clientWidth||e.width,h=e.clientHeight||e.height,f=Math.max(1,Math.round(d*n)),m=Math.max(1,Math.round(h*n)),v=function(e,t,r,n,i,a){if(e&&"function"==typeof e.regionsFn){var s;try{s=e.regionsFn(t)}catch(e){return $r}if(void 0!==s){if(!Array.isArray(s)||!s.every(en))return $r;var o=r/i,l=n/a;return s.filter((e=>e.width>0&&e.height>0)).map((e=>{var t=Math.floor(e.x*o),r=Math.floor(e.y*l);return{x:t,y:r,width:Math.ceil((e.x+e.width)*o)-t,height:Math.ceil((e.y+e.height)*l)-r}}))}}}(a.canvasMasking,e,f,m,d,h);if(v===$r)return void c.set(r,!1);var g=yield createImageBitmap(e,n<1?{resizeWidth:f,resizeHeight:m,resizeQuality:"medium"}:{resizeWidth:f,resizeHeight:m});o.postMessage({id:r,bitmap:g,width:f,height:m,displayWidth:d,displayHeight:h,dataURLOptions:a.dataURLOptions,maskRegions:v},[g])}catch(e){c.set(r,!1)}}}}));return function(t){return e.apply(this,arguments)}}())),f=requestAnimationFrame(g))};f=requestAnimationFrame(g),this.resetObservers=()=>{u(),cancelAnimationFrame(f),null==o.terminate||o.terminate(),this.resetFrameDedup=null}}}initCanvasMutationObserver(e,t,r,n){this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher();var i=hn(e,t,r,!1),a=function(e,t,r,n,i){var a=[],s=Object.getOwnPropertyNames(t.CanvasRenderingContext2D.prototype),o=function(s){try{if("function"!=typeof t.CanvasRenderingContext2D.prototype[s])return 1;var o=I(t.CanvasRenderingContext2D.prototype,s,(function(a){return function(){for(var o=arguments.length,l=new Array(o),u=0;u<o;u++)l[u]=arguments[u];return mr(this.canvas,r,n,!0)||setTimeout((()=>{var r=ln(l,t,this,i);e(this.canvas,{type:h["2D"],property:s,args:r})}),0),a.apply(this,l)}}));a.push(o)}catch(r){var l=ur(t.CanvasRenderingContext2D.prototype,s,{set(t){e(this.canvas,{type:h["2D"],property:s,args:[t],setter:!0})}});a.push(l)}};for(var l of s)o(l);return()=>{a.forEach((e=>e()))}}(this.processMutation.bind(this),e,t,r,n),s=function(e,t,r,n,i){var a=[];return void 0!==t.WebGLRenderingContext&&a.push(...pn(t.WebGLRenderingContext.prototype,h.WebGL,e,r,n,t,i)),void 0!==t.WebGL2RenderingContext&&a.push(...pn(t.WebGL2RenderingContext.prototype,h.WebGL2,e,r,n,t,i)),()=>{a.forEach((e=>e()))}}(this.processMutation.bind(this),e,t,r,n);this.resetObservers=()=>{i(),a(),s()}}startPendingCanvasMutationFlusher(){this.rafIdFlush=requestAnimationFrame((()=>this.flushPendingCanvasMutations()))}startRAFTimestamping(){var e=t=>{this.rafStamps.latestId=t,this.rafIdTimestamp=requestAnimationFrame(e)};this.rafIdTimestamp=requestAnimationFrame(e)}flushPendingCanvasMutations(){this.pendingCanvasMutations.forEach(((e,t)=>{var r=this.mirror.getId(t);this.flushPendingCanvasMutationFor(t,r)})),this.rafIdFlush=requestAnimationFrame((()=>this.flushPendingCanvasMutations()))}flushPendingCanvasMutationFor(e,t){if(!this.frozen&&!this.locked){var r=this.pendingCanvasMutations.get(e);if(r&&-1!==t){var i=r.map((e=>(e.type,n(e,yn)))),a=r[0].type;this.mutationCb({id:t,type:a,commands:i}),this.pendingCanvasMutations.delete(e)}}}}class wn{constructor(e){this.trackedLinkElements=new WeakSet,this.mutationCb=void 0,this.adoptedStyleSheetCb=void 0,this.styleMirror=new kr,this.mutationCb=e.mutationCb,this.adoptedStyleSheetCb=e.adoptedStyleSheetCb}attachLinkElement(e,t){"_cssText"in t.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:t.id,attributes:t.attributes}]}),this.trackLinkElement(e)}trackLinkElement(e){this.trackedLinkElements.has(e)||(this.trackedLinkElements.add(e),this.trackStylesheetInLinkElement(e))}adoptStyleSheets(e,t){var r=this;if(0!==e.length){var n={id:t,styleIds:[]},i=[],a=function(e){var t;r.styleMirror.has(e)?t=r.styleMirror.getId(e):(t=r.styleMirror.add(e),i.push({styleId:t,rules:Array.from(e.rules||CSSRule,((t,r)=>({rule:T(t,e.href),index:r})))})),n.styleIds.push(t)};for(var s of e)a(s);i.length>0&&(n.styles=i),this.adoptedStyleSheetCb(n)}}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet,le()}trackStylesheetInLinkElement(e){}}class Sn{constructor(){this.nodeMap=new WeakMap,this.active=!1}inOtherBuffer(e,t){var r=this.nodeMap.get(e);return r&&Array.from(r).some((e=>e!==t))}add(e,t){this.active||(this.active=!0,requestAnimationFrame((()=>{this.nodeMap=new WeakMap,this.active=!1}))),this.nodeMap.set(e,(this.nodeMap.get(e)||new Set).add(t))}destroy(){}}var kn=!1;try{if(2!==Array.from([1],(e=>2*e))[0]){var Cn,Mn=document.createElement("iframe");document.body.appendChild(Mn),Array.from=(null==(Cn=Mn.contentWindow)?void 0:Cn.Array.from)||Array.from,document.body.removeChild(Mn)}}catch(e){console.debug("Unable to override Array.from",e)}var In=new A,xn=new Set([u.Mutation,u.MediaInteraction,u.StyleSheetRule,u.CanvasMutation,u.Font,u.Log,u.StyleDeclaration,u.AdoptedStyleSheet]);function On(e){void 0===e&&(e={});var t=e,n=t.emit,i=t.checkoutEveryNms,o=t.checkoutEveryNth,c=t.blockClass,d=void 0===c?"rr-block":c,h=t.blockSelector,p=void 0===h?null:h,f=t.ignoreClass,m=void 0===f?"rr-ignore":f,v=t.ignoreSelector,g=void 0===v?null:v,y=t.maskTextClass,b=void 0===y?"rr-mask":y,w=t.maskTextSelector,S=void 0===w?null:w,k=t.inlineStylesheet,C=void 0===k||k,M=t.maskAllInputs,I=t.maskInputOptions,O=t.slimDOMOptions,E=t.maskInputFn,R=t.maskTextFn,N=t.hooks,T=t.packFn,L=t.sampling,D=void 0===L?{}:L,P=t.dataURLOptions,F=void 0===P?{}:P,j=t.canvasResolutionScale,B=t.canvasMasking,U=t.mousemoveWait,z=t.recordDOM,W=void 0===z||z,H=t.recordCanvas,V=void 0!==H&&H,G=t.recordCrossOriginIframes,J=void 0!==G&&G,q=t.recordAfter,Y=void 0===q?"DOMContentLoaded"===e.recordAfter?e.recordAfter:"load":q,Q=t.userTriggeredOnInput,Z=void 0!==Q&&Q,K=t.collectFonts,X=void 0!==K&&K,_=t.inlineImages,$=void 0!==_&&_,ee=t.plugins,te=t.keepIframeSrcFn,re=void 0===te?()=>!1:te,ne=t.ignoreCSSAttributes,ie=void 0===ne?new Set([]):ne,ae=t.attributeFilter,se=t.errorHandler,oe=r({type:"image/webp",quality:.4,maxBase64ImageLength:1048576},F),ue=!J||window.parent===window,ce=!1;if(!ue)try{window.parent.document&&(ce=!1)}catch(e){ce=!0}if(ue&&!n)throw new Error("emit function is required");if(!ue&&!ce)return()=>{};void 0!==U&&void 0===D.mousemove&&(D.mousemove=U);var de,he=s(),me=!1,ve=[],ge=()=>{me=!0,kn=!1,he.close()},ye=e=>{me?he.add(e):ve.push(e)},be=e=>{a(e)&&he.poison(),ge(),se?se(e):console.warn(e)};try{Dr(se),he.add(Pr),he.add((()=>In.reset())),he.add(le),In.reset();var we,Se=!0===M?{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}:void 0!==I?I:{password:!0},ke=fe(void 0!==O&&O);void 0===de&&(de=window),"NodeList"in de&&!de.NodeList.prototype.forEach&&(de.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in de&&!de.DOMTokenList.prototype.forEach&&(de.DOMTokenList.prototype.forEach=Array.prototype.forEach);var Ce,Me,Ie=0,xe=new Map,Oe=e=>{for(var t of ee||[])t.eventProcessor&&(e=t.eventProcessor(e));return T&&!ce&&(e=T(e)),e},Ee=void 0,Re=(e,t)=>{var r;if(!me){var a=e;if(a.timestamp=cr(),null==(r=jr[0])||!r.isFrozen()||a.type===l.FullSnapshot||a.type===l.IncrementalSnapshot&&xn.has(a.data.source)||jr.forEach((e=>e.unfreeze())),ue)Ee=null==n?void 0:n(Oe(a),t);else if(ce){var s={type:"rrweb",event:Oe(a),origin:window.location.origin,isCheckout:t};window.parent.postMessage(s,"*")}if(a.type===l.FullSnapshot)we=a,Ie=0;else if(a.type===l.IncrementalSnapshot){if(a.data.source===u.Mutation&&a.data.isAttachIframe)return;Ie++;var c=o&&Ie>=o,d=i&&a.timestamp-we.timestamp>i;(c||d)&&Ue(!0)}}};mn=Re;var Ne=e=>{if(e.removes&&e.removes.length>0){var t=e.adds.length>0?new Set(e.adds.map((e=>e.node.id))):null,n=new Set;if(e.adds.length>0)for(var i of e.adds){var a=In.getNode(i.node.id);a&&"IFRAME"===a.nodeName&&n.add(a)}e.removes.forEach((e=>{var r=e.id;if(!t||!t.has(r)){var i=De.getIframeElementById(r);i&&n.has(i)?De.forgetIframeId(r):(null==Ce||Ce(r),De.removeIframeById(r))}})),null==Me||Me(),De.cleanupDetachedIframes()}Re({type:l.IncrementalSnapshot,data:r({source:u.Mutation},e)})},Te=e=>Re({type:l.IncrementalSnapshot,data:r({source:u.Scroll},e)}),Ae=e=>{Ee=void 0,Re({type:l.IncrementalSnapshot,data:r({source:u.CanvasMutation},e)});var t=Ee;return Ee=void 0,"resend"===t||"shrink"===t?t:void 0},Le=new wn({mutationCb:Ne,adoptedStyleSheetCb:e=>Re({type:l.IncrementalSnapshot,data:r({source:u.AdoptedStyleSheet},e)})});he.add((()=>Le.reset()));var De=new Xr({mirror:In,mutationCb:Ne,stylesheetManager:Le,recordCrossOriginIframes:J,wrappedEmit:Re});for(var Pe of(he.add((()=>De.destroy())),ee||[]))Pe.getMirror&&Pe.getMirror({nodeMirror:In,crossOriginIframeMirror:De.crossOriginIframeMirror,crossOriginIframeStyleMirror:De.crossOriginIframeStyleMirror});var Fe=new Sn;he.add((()=>Fe.destroy()));var je=null==B?void 0:B.configured;gn=new bn({recordCanvas:V,mutationCb:Ae,win:window,blockClass:d,blockSelector:p,mirror:In,sampling:D.canvas,dataURLOptions:oe,resolutionScale:j,canvasMasking:B}),he.add((()=>gn.reset()));var Be=new _r({mutationCb:Ne,scrollCb:Te,bypassOptions:{blockClass:d,blockSelector:p,maskTextClass:b,maskTextSelector:S,inlineStylesheet:C,maskInputOptions:Se,dataURLOptions:oe,maskTextFn:R,maskInputFn:E,recordCanvas:V,canvasMaskingConfigured:je,inlineImages:$,sampling:D,slimDOMOptions:ke,iframeManager:De,stylesheetManager:Le,canvasManager:gn,keepIframeSrcFn:re,processedNodeManager:Fe,attributeFilter:ae},mirror:In});he.add((()=>Be.reset()));var Ue=function(e){if(void 0===e&&(e=!1),!me&&W){Re({type:l.Meta,data:{href:window.location.href,width:pr(),height:hr()}},e),Le.reset(),Be.init(),jr.forEach((e=>e.lock()));var t=function(e,t){var r=t||{},n=r.mirror,i=void 0===n?new A:n,a=r.blockClass,s=r.blockSelector,o=r.maskTextClass,l=r.maskTextSelector,u=r.inlineStylesheet,c=r.inlineImages,d=void 0!==c&&c,h=r.recordCanvas,p=void 0!==h&&h,f=r.canvasMaskingConfigured,m=r.maskAllInputs,v=void 0!==m&&m,g=r.slimDOM,y=r.dataURLOptions,b=r.preserveWhiteSpace,w=r.onSerialize,S=r.onIframeLoad,k=r.iframeLoadTimeout,C=r.onIframeListenerRegistered,M=r.onStylesheetLoad,I=r.stylesheetLoadTimeout,x=r.keepIframeSrcFn,O=void 0===x?()=>!1:x,E=r.maxDepth;return pe(e,{doc:e,mirror:i,blockClass:void 0===a?"rr-block":a,blockSelector:void 0===s?null:s,maskTextClass:void 0===o?"rr-mask":o,maskTextSelector:void 0===l?null:l,skipChild:!1,inlineStylesheet:void 0===u||u,maskInputOptions:!0===v?{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}:!1===v?{password:!0}:v,maskTextFn:r.maskTextFn,maskInputFn:r.maskInputFn,slimDOMOptions:fe(void 0!==g&&g),dataURLOptions:y,inlineImages:d,recordCanvas:p,canvasMaskingConfigured:f,preserveWhiteSpace:b,onSerialize:w,onIframeLoad:S,iframeLoadTimeout:k,onIframeListenerRegistered:C,onStylesheetLoad:M,stylesheetLoadTimeout:I,keepIframeSrcFn:O,newlyAddedElement:!1,maxDepth:E})}(document,{mirror:In,blockClass:d,blockSelector:p,maskTextClass:b,maskTextSelector:S,inlineStylesheet:C,maskAllInputs:Se,maskTextFn:R,maskInputFn:E,slimDOM:ke,dataURLOptions:oe,recordCanvas:V,canvasMaskingConfigured:je,inlineImages:$,onSerialize:e=>{br(e,In)&&De.addIframe(e),wr(e,In)&&Le.trackLinkElement(e),Sr(e)&&Be.addShadowRoot(x.shadowRoot(e),document)},onIframeLoad:(e,t)=>{De.attachIframe(e,t),Be.observeAttachShadow(e)},onIframeListenerRegistered:(e,t)=>{De.registerLoadListenerDisposer(e,t)},onStylesheetLoad:(e,t)=>{Le.attachLinkElement(e,t)},keepIframeSrcFn:re});if(!t)return console.warn("Failed to snapshot the document");Re({type:l.FullSnapshot,data:{node:t,initialOffset:dr(window)}},e),jr.forEach((e=>e.unlock())),gn.onFullSnapshot(),J&&De.reattachIframes(),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&Le.adoptStyleSheets(document.adoptedStyleSheets,In.getId(document))}};vn=Ue,he.add((()=>xe.clear())),he.add((()=>{var e=s();for(var t of ve)e.add(t);ve.length=0,e.close()})),Ce=e=>{var t=xe.get(e);if(t){var r=s();t.forEach((e=>{r.add(e);var t=ve.indexOf(e);-1!==t&&ve.splice(t,1)})),xe.delete(e),r.close()}},Me=()=>{for(var e of xe){var t=e[0],r=In.getNode(t);if(r)try{r.contentDocument&&r.contentDocument.defaultView||null==Ce||Ce(t)}catch(e){null==Ce||Ce(t)}else null==Ce||Ce(t)}};var ze=e=>{var t;return Yr({mutationCb:Ne,mousemoveCb:(e,t)=>Re({type:l.IncrementalSnapshot,data:{source:t,positions:e}}),mouseInteractionCb:e=>Re({type:l.IncrementalSnapshot,data:r({source:u.MouseInteraction},e)}),scrollCb:Te,viewportResizeCb:e=>Re({type:l.IncrementalSnapshot,data:r({source:u.ViewportResize},e)}),inputCb:e=>Re({type:l.IncrementalSnapshot,data:r({source:u.Input},e)}),mediaInteractionCb:e=>Re({type:l.IncrementalSnapshot,data:r({source:u.MediaInteraction},e)}),styleSheetRuleCb:e=>Re({type:l.IncrementalSnapshot,data:r({source:u.StyleSheetRule},e)}),styleDeclarationCb:e=>Re({type:l.IncrementalSnapshot,data:r({source:u.StyleDeclaration},e)}),canvasMutationCb:Ae,fontCb:e=>Re({type:l.IncrementalSnapshot,data:r({source:u.Font},e)}),selectionCb:e=>{Re({type:l.IncrementalSnapshot,data:r({source:u.Selection},e)})},customElementCb:e=>{Re({type:l.IncrementalSnapshot,data:r({source:u.CustomElement},e)})},blockClass:d,ignoreClass:m,ignoreSelector:g,maskTextClass:b,maskTextSelector:S,maskInputOptions:Se,inlineStylesheet:C,sampling:D,recordDOM:W,recordCanvas:V,canvasMaskingConfigured:je,inlineImages:$,userTriggeredOnInput:Z,collectFonts:X,doc:e,maskInputFn:E,maskTextFn:R,keepIframeSrcFn:re,blockSelector:p,slimDOMOptions:ke,dataURLOptions:oe,mirror:In,iframeManager:De,stylesheetManager:Le,shadowDomManager:Be,processedNodeManager:Fe,canvasManager:gn,ignoreCSSAttributes:ie,attributeFilter:ae,plugins:(null==ee||null==(t=ee.filter((e=>e.observer)))?void 0:t.map((e=>({observer:e.observer,options:e.options,callback:t=>Re({type:l.Plugin,data:{plugin:e.name,payload:t}})}))))||[]},N)};De.addLoadListener((e=>{if(!me)try{var t=In.getId(e),r=ze(e.contentDocument);if(ye(r),-1!==t){var n=xe.get(t);n||(n=new Set,xe.set(t,n)),n.add(r)}}catch(e){be(e)}})),De.addPageHideListener((e=>{var t=In.getId(e);null==Ce||Ce(t),Wr(e)}));var We=-1,He=e=>Re({type:l.Custom,data:{tag:"rrweb/fullscreen",payload:e}}),Ve=()=>{var e,t,r,n,i=document,a=null!=(e=null!=(t=null!=(r=null!=(n=i.fullscreenElement)?n:i.webkitFullscreenElement)?r:i.mozFullScreenElement)?t:i.msFullscreenElement)?e:null,s=a?In.getId(a):-1;s!==We&&(-1!==We&&He({id:We,enter:!1}),We=s,-1!==s&&He({id:s,enter:!0}))},Ge=!1,Je=()=>{me||Ge||(Ge=!0,Ue(),me||(ye(ze(document)),ye(nr("fullscreenchange",Ve)),ye(nr("webkitfullscreenchange",Ve)),ye(nr("mozfullscreenchange",Ve)),ye(nr("MSFullscreenChange",Ve)),kn=!0))};return["interactive","complete"].includes(document.readyState)?Je():(ye(nr("DOMContentLoaded",(()=>{if(!me)try{Re({type:l.DomContentLoaded,data:{}}),"DOMContentLoaded"===Y&&Je()}catch(e){be(e)}}))),ye(nr("load",(()=>{if(!me)try{Re({type:l.Load,data:{}}),"load"===Y&&Je()}catch(e){be(e)}}),window))),ge}catch(e){be(e)}}On.addCustomEvent=(e,t)=>{if(!kn)throw new Error("please add custom event after start recording");mn({type:l.Custom,data:{tag:e,payload:t}})},On.freezePage=()=>{jr.forEach((e=>e.freeze()))},On.takeFullSnapshot=e=>{if(!kn)throw new Error("please take full snapshot after start recording");vn(e)},On.mirror=In;class En{constructor(e){this.fileName=void 0,this.functionName=void 0,this.lineNumber=void 0,this.columnNumber=void 0,this.fileName=e.fileName||"",this.functionName=e.functionName||"",this.lineNumber=e.lineNumber,this.columnNumber=e.columnNumber}toString(){var e=this.lineNumber||"",t=this.columnNumber||"";return this.functionName?this.functionName+" ("+this.fileName+":"+e+":"+t+")":this.fileName+":"+e+":"+t}}var Rn=/(^|@)\S+:\d+/,Nn=/^\s*at .*(\S+:\d+|\(native\))/m,Tn=/^(eval@)?(\[native code])?$/,An={parse:function(e){return e?void 0!==e.stacktrace||void 0!==e["opera#sourceloc"]?this.parseOpera(e):e.stack&&e.stack.match(Nn)?this.parseV8OrIE(e):e.stack?this.parseFFOrSafari(e):[]:[]},extractLocation:function(e){if(-1===e.indexOf(":"))return[e];var t=/(.+?)(?::(\d+))?(?::(\d+))?$/.exec(e.replace(/[()]/g,""));if(!t)throw new Error("Cannot parse given url: "+e);return[t[1],t[2]||void 0,t[3]||void 0]},parseV8OrIE:function(e){return e.stack.split("\n").filter((function(e){return!!e.match(Nn)}),this).map((function(e){e.indexOf("(eval ")>-1&&(e=e.replace(/eval code/g,"eval").replace(/(\(eval at [^()]*)|(\),.*$)/g,""));var t=e.replace(/^\s+/,"").replace(/\(eval code/g,"("),r=t.match(/ (\((.+):(\d+):(\d+)\)$)/),n=(t=r?t.replace(r[0],""):t).split(/\s+/).slice(1),i=this.extractLocation(r?r[1]:n.pop()),a=n.join(" ")||void 0,s=["eval","<anonymous>"].indexOf(i[0])>-1?void 0:i[0];return new En({functionName:a,fileName:s,lineNumber:i[1],columnNumber:i[2]})}),this)},parseFFOrSafari:function(e){return e.stack.split("\n").filter((function(e){return!e.match(Tn)}),this).map((function(e){if(e.indexOf(" > eval")>-1&&(e=e.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,":$1")),-1===e.indexOf("@")&&-1===e.indexOf(":"))return new En({functionName:e});var t=/((.*".+"[^@]*)?[^@]*)(?:@)/,r=e.match(t),n=r&&r[1]?r[1]:void 0,i=this.extractLocation(e.replace(t,""));return new En({functionName:n,fileName:i[0],lineNumber:i[1],columnNumber:i[2]})}),this)},parseOpera:function(e){return!e.stacktrace||e.message.indexOf("\n")>-1&&e.message.split("\n").length>e.stacktrace.split("\n").length?this.parseOpera9(e):e.stack?this.parseOpera11(e):this.parseOpera10(e)},parseOpera9:function(e){for(var t=/Line (\d+).*script (?:in )?(\S+)/i,r=e.message.split("\n"),n=[],i=2,a=r.length;i<a;i+=2){var s=t.exec(r[i]);s&&n.push(new En({fileName:s[2],lineNumber:parseFloat(s[1])}))}return n},parseOpera10:function(e){for(var t=/Line (\d+).*script (?:in )?(\S+)(?:: In function (\S+))?$/i,r=e.stacktrace.split("\n"),n=[],i=0,a=r.length;i<a;i+=2){var s=t.exec(r[i]);s&&n.push(new En({functionName:s[3]||void 0,fileName:s[2],lineNumber:parseFloat(s[1])}))}return n},parseOpera11:function(e){return e.stack.split("\n").filter((function(e){return!!e.match(Rn)&&!e.match(/^Error created at/)}),this).map((function(e){var t=e.split("@"),r=this.extractLocation(t.pop()),n=(t.shift()||"").replace(/<anonymous function(: (\w+))?>/,"$2").replace(/\([^)]*\)/g,"")||void 0;return new En({functionName:n,fileName:r[0],lineNumber:r[1],columnNumber:r[2]})}),this)}};function Ln(e){if(!e||!e.outerHTML)return"";for(var t="";e.parentElement;){var r=e.localName;if(!r)break;r=r.toLowerCase();var n=e.parentElement,i=[];if(n.children&&n.children.length>0)for(var a=0;a<n.children.length;a++){var s=n.children[a];s.localName&&s.localName.toLowerCase&&s.localName.toLowerCase()===r&&i.push(s)}i.length>1&&(r+=":eq("+i.indexOf(e)+")"),t=r+(t?">"+t:""),e=n}return t}var Dn=["InputEvent","CompositionEvent","TextEvent","KeyboardEvent"],Pn=["data","key","code","keyCode","charCode","which","char"];function Fn(e){return Array.isArray(e)}function jn(e){return"object"==typeof e&&null!==e&&!Fn(e)}function Bn(e,t){if(0===t)return!0;var r=Object.keys(e);for(var n of r)if(jn(e[n])&&Bn(e[n],t-1))return!0;return!1}function Un(e,t){var r={numOfKeysLimit:50,depthOfLimit:4};Object.assign(r,t);var n=[],i=[];return JSON.stringify(e,(function(e,t){if(n.length>0){var a=n.indexOf(this);~a?n.splice(a+1):n.push(this),~a?i.splice(a,1/0,e):i.push(e),~n.indexOf(t)&&(t=n[0]===t?"[Circular ~]":"[Circular ~."+i.slice(0,n.indexOf(t)).join(".")+"]")}else n.push(t);if(null===t)return t;if(void 0===t)return"undefined";if(jn(s=t)&&Object.keys(s).length>r.numOfKeysLimit||"function"==typeof s||jn(s)&&Bn(s,r.depthOfLimit))return function(e){var t=e.toString();return r.stringLengthLimit&&t.length>r.stringLengthLimit&&(t=t.slice(0,r.stringLengthLimit)+"..."),t}(t);var s,o,l;if("bigint"==typeof t)return t.toString()+"n";if(t instanceof Event){var u={},c=(o=t,l=globalThis,Dn.some((e=>{var t=l[e];return"function"==typeof t&&o instanceof t})));for(var d in t){var h=t[d];Fn(h)?u[d]=Ln(h.length?h[0]:null):c&&Pn.includes(d)?u[d]="number"==typeof h?0:"":u[d]=h}return u}return t instanceof Node?t instanceof Element&&(Ln(t)||t.localName)||t.nodeName:t instanceof Error?t.stack?t.stack+"\nEnd of stack for Error object":t.name+": "+t.message:t}))}var zn={level:["assert","clear","count","countReset","debug","dir","dirxml","error","group","groupCollapsed","groupEnd","info","log","table","time","timeEnd","timeLog","trace","warn"],lengthThreshold:1e3,logger:"console"};function Wn(e,t,r){var n,i=r?Object.assign({},zn,r):zn,a=i.logger;if(!a)return()=>{};n="string"==typeof a?t[a]:a;var s=0,o=!1,l=[];if(i.level.includes("error")){var u=t=>{var r=t.message,n=t.error,a=An.parse(n).map((e=>e.toString())),s=[Un(r,i.stringifyOptions)];e({level:"error",trace:a,payload:s})};t.addEventListener("error",u),l.push((()=>{t.removeEventListener("error",u)}));var c=t=>{var r,n;t.reason instanceof Error?n=[Un("Uncaught (in promise) "+(r=t.reason).name+": "+r.message,i.stringifyOptions)]:(r=new Error,n=[Un("Uncaught (in promise)",i.stringifyOptions),Un(t.reason,i.stringifyOptions)]);var a=An.parse(r).map((e=>e.toString()));e({level:"error",trace:a,payload:n})};t.addEventListener("unhandledrejection",c),l.push((()=>{t.removeEventListener("unhandledrejection",c)}))}for(var d of i.level)l.push(h(n,d));return()=>{l.forEach((e=>e()))};function h(t,r){return t[r]?I(t,r,(t=>function(){for(var n=arguments.length,a=new Array(n),l=0;l<n;l++)a[l]=arguments[l];if(t(...a),!("assert"===r&&a[0]||o)){o=!0;try{var u=An.parse(new Error).map((e=>e.toString())).splice(1),c=("assert"===r?a.slice(1):a).map((e=>Un(e,i.stringifyOptions)));++s<i.lengthThreshold?e({level:r,trace:u,payload:c}):s===i.lengthThreshold&&e({level:"warn",trace:[],payload:[Un("The number of log records reached the threshold.")]})}catch(e){t("rrweb logger error:",e,...a)}finally{o=!1}}})):()=>{}}}var Hn,Vn=e=>({name:"rrweb/console@1",observer:Wn,options:e}),Gn=(e,t,r)=>{var n=()=>{throw new Error("Invalid internal text data")};(!Number.isSafeInteger(t)||t<1||t>1e6||!Number.isSafeInteger(r)||r<1||r>1e4||e.length>2e6||e.length%4!=0)&&n();for(var i=e.endsWith("==")?2:e.endsWith("=")?1:0,a=new Uint8Array(e.length/4*3-i),s=0,o=0,l=0,u=0;u<e.length-i;u++){var c="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".indexOf(e.charAt(u));c<0&&n(),l=l<<6|c,(o+=6)>=8&&(o-=8,a[s++]=l>>>o&255)}o&&l&(1<<o)-1&&n();for(var d,h,p=new Uint8Array(t),f=0,m=0,v=e=>{m+e>8*a.length&&n();var t=m>>>3,r=(a[t]|a[t+1]<<8|a[t+2]<<16)>>>(7&m)&(1<<e)-1;return m+=e,r},g=(e,t,r)=>{for(var i=new Uint16Array(16),a=0,s=0;s<e.length;s++){var o=e[s];o>15&&n(),o&&(i[o]++,a=Math.max(a,o))}for(var l=1,u=1;u<=15;u++)(l=2*l-i[u])<0&&n();(a?!l||t&&1===a&&1===i[1]:r)||n();for(var c=new Uint16Array(16),d=1;d<15;d++)c[d+1]=c[d]+i[d];for(var h=new Uint16Array(e.length),p=0;p<e.length;p++){var f=e[p];f&&(h[c[f]++]=p)}return{counts:i,symbols:h,maximum:a}},y=e=>{for(var t=0,r=0,i=0,a=1;a<=e.maximum;a++){t=t<<1|v(1);var s=e.counts[a];if(t>=r&&t-r<s)return e.symbols[i+t-r];i+=s,r=r+s<<1}return n()},b=0,w=0;!b;){++w>1024&&n(),b=v(1);var S=v(2);if(0===S){m=m+7&-8;var k=v(16);(65535!=(k^v(16))||f+k>t||m+8*k>8*a.length)&&n(),p.set(a.subarray(m>>>3,(m>>>3)+k),f),f+=k,m+=8*k}else{var C=void 0,M=void 0;if(1===S){if(!d||!h){for(var I=new Uint8Array(288),x=0;x<I.length;x++)I[x]=x<144?8:x<256?9:x<280?7:8;d=g(I,!1,!1);for(var O=new Uint8Array(32),E=0;E<O.length;E++)O[E]=5;h=g(O,!1,!1)}C=d,M=h}else{if(2!==S)return n();var R=v(5)+257,N=v(5)+1,T=v(4)+4;R>286&&n();for(var A=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],L=new Uint8Array(19),D=0;D<T;D++)L[A[D]]=v(3);for(var P=g(L,!1,!1),F=new Uint8Array(R+N),j=0;j<F.length;){var B=y(P);if(B<16)F[j++]=B;else{16!==B||j||n();var U=16===B?F[j-1]:0,z=16===B?v(2)+3:17===B?v(3)+3:v(7)+11;j+z>F.length&&n();for(var W=j+z;j<W;j++)F[j]=U}}F[256]||n(),C=g(F.subarray(0,R),!0,!1),M=g(F.subarray(R),!0,!0)}for(;;){var H=y(C);if(256===H)break;if(H<256)f===t&&n(),p[f++]=H;else{H>285&&n();var V=H-257,G=(V>>>2)-1,J=V<8?V+3:28===V?258:3+(4+(3&V)<<G)+v(G),q=y(M);q>29&&n();var Y=(q>>>1)-1,Q=q<4?q+1:1+(2+(1&q)<<Y)+v(Y);(Q>f||f+J>t)&&n();for(var Z=0;Z<J;Z++)p[f]=p[f-Q],f++}}}}f===t&&Math.ceil(m/8)===a.length||n();for(var K="",X=0;X<f;X+=4096)K+=String.fromCharCode.apply(null,p.subarray(X,Math.min(X+4096,f)));var _=JSON.parse(K);return Array.isArray(_)&&_.length===r&&!_.some((e=>"string"!=typeof e))||n(),Object.freeze(_)},Jn=e=>(Hn||(Hn=Gn("rX3bktw2suCvIDrOw25ss92SJVuaiX3QxT6jM7al6JY9EbuxoUCRqCpOswgaAKu75utPZCbuAFnVE/vgshqZCZK4JPKO/3vFes1GaRhn2qh+3F1dX7HDrA3bCMZHJjf/FK25ur76j63gZlbi23bgu28tHwbRFc1CKamK1omfBslLbCX0JEctAKCNVKL7tlNynr5NSk5CmV7oFdBNBJuE0nJM6V7dvmXuCfRF8Jn92A5zJ9idMOrUvNsaAe/76mWEG4FgcPrxyIe+y7Gwx3pvr7sXmzcv+fbHH77nr1/dvn7zo3i53bx6+4b/IN6+vn395sXr7e33P37ffv/m1W33+oftm83rH95ub18JLt62/Afo4unpghd6e3v744u3b1++fvXjq9u3b19cXV+9G9lPv/zO2kHwcZ7YlveD6P7KlDjwfuzHHZOPo1CaPfbDwLSB341gSgyCa9HBmH78/OsHORoxml8k73CSocd3Ix9Opm+1Xx392JueD/2/RMf6kXG2UfJR4wgAAfcE2vCT6NjEZ+27W4AyI9mkpBGtYeKp1wZeue/EaHpzYnzsGM04E0cxGv0X9v+5u0O/U9z0cmw6Adj070OvNW0NeNYgdrw9fQNKvhPJZnkcWccNZ0c+zKKOrsSfc6+EZuKJt4ZpOatWMK5Mv4W/4Z1aOW773Uwvgh1CV7C1mHgS7Yxf8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qn[14],qn[15],qn[16],qn[17],qn[18],qn[19],qn[20],qn[21];var _n=qn[22],$n=qn[23];qn[24],qn[25],qn[26],qn[27],qn[28],qn[29],qn[30],qn[31],qn[32],qn[33];var ei=qn[34];qn[35],qn[36];var ti=qn[37],ri=qn[38];qn[39],qn[40],qn[41],qn[42],qn[43],qn[44];var ni=qn[45];qn[46],qn[47];var ii=qn[48];qn[49],qn[50],qn[51];var ai=qn[52],si=qn[53];qn[54],qn[55],qn[56],qn[57],qn[58],qn[59];var oi=qn[60];qn[61],qn[62],qn[63],qn[64];var li=qn[65];qn[66];var ui=qn[67];qn[68],qn[69],qn[70],qn[71],qn[72],qn[73],qn[74],qn[75],qn[76],qn[77],qn[78],qn[79],qn[80];var ci=qn[81];qn[82];var di=qn[83];qn[84];var hi=qn[85],pi=qn[86];qn[87],qn[88],qn[89],qn[90];var fi=qn[91];qn[92],qn[93],qn[94];var mi=qn[95];qn[96],qn[97],qn[98],qn[99],qn[100],qn[101],qn[102],qn[103],qn[104],qn[105],qn[106],qn[107],qn[108],qn[109],qn[110];var vi=qn[111];qn[112];var gi=qn[113];qn[114],qn[115],qn[116],qn[117];var yi=qn[118];qn[119],qn[120],qn[121],qn[122],qn[123],qn[124],qn[125],qn[126],qn[127],qn[128],qn[129],qn[130],qn[131];var bi=qn[132],wi=qn[133],Si=qn[134],ki=qn[135],Ci=qn[136];qn[137],qn[138];var Mi=qn[139];qn[140],qn[141],qn[142],qn[143],qn[144],qn[145],qn[146];var Ii=qn[147];qn[148],qn[149],qn[150];var xi=qn[151];qn[152],qn[153],qn[154],qn[155],qn[156],qn[157],qn[158],qn[159],qn[160],qn[161],qn[162],qn[163],qn[164],qn[165],qn[166],qn[167],qn[168],qn[169];var Oi=qn[170],Ei=qn[171];qn[172],qn[173],qn[174],qn[175],qn[176],qn[177],qn[178],qn[179];var Ri=qn[180];qn[181],qn[182];var Ni=qn[183];qn[184],qn[185],qn[186],qn[187],qn[188],qn[189],qn[190],qn[191],qn[192],qn[193],qn[194];var Ti=qn[195],Ai=qn[196];qn[197],qn[198],qn[199],qn[200],qn[201],qn[202];var Li=qn[203];qn[204],qn[205],qn[206],qn[207],qn[208],qn[209],qn[210],qn[211];var Di=qn[212];qn[213],qn[214];var Pi=qn[215],Fi=qn[216],ji=qn[217];qn[218],qn[219];var Bi=qn[220],Ui=qn[221];qn[222],qn[223],qn[224];var zi=qn[225];qn[226],qn[227];var Wi=qn[228];qn[229];var Hi=qn[230];qn[231];var Vi=qn[232],Gi=qn[233];qn[234],qn[235];var Ji=qn[236];qn[237];var qi=qn[238];qn[239];var Yi=qn[240];qn[241],qn[242],qn[243];var Qi=qn[244];qn[245],qn[246],qn[247],qn[248],qn[249],qn[250],qn[251];var Zi=qn[252],Ki=qn[253];qn[254],qn[255],qn[256],qn[257],qn[258],qn[259],qn[260],qn[261];var Xi=qn[262];qn[263],qn[264],qn[265],qn[266],qn[267],qn[268];var _i=qn[269];qn[270],qn[271];var $i=qn[272];qn[273],qn[274];var ea=qn[275];qn[276],qn[277],qn[278],qn[279],qn[280],qn[281],qn[282],qn[283];var ta=qn[284];qn[285],qn[286],qn[287],qn[288];var ra=qn[289];qn[290],qn[291],qn[292],qn[293],qn[294],qn[295],qn[296],qn[297],qn[298],qn[299],qn[300],qn[301],qn[302],qn[303],qn[304];var na=qn[305];qn[306],qn[307];var ia=qn[308];qn[309],qn[310],qn[311],qn[312],qn[313],qn[314],qn[315],qn[316];var aa=qn[317];qn[318],qn[319],qn[320],qn[321],qn[322];var sa=qn[323],oa=qn[324];qn[325],qn[326],qn[327],qn[328],qn[329],qn[330],qn[331],qn[332],qn[333];var la=qn[334];qn[335],qn[336],qn[337],qn[338],qn[339],qn[340],qn[341],qn[342],qn[343],qn[344],qn[345],qn[346],qn[347];var ua=qn[348];qn[349],qn[350];var ca=qn[351];qn[352];var da=Array.isArray,ha=e=>da(e),pa=e=>"object"==typeof e&&null!=e&&!ha(e),fa=e=>"string"==typeof e,ma=e=>!0===e||!1===e,va=e=>"function"==typeof e,ga=e=>{for(var t=0,r=0;r<e[Vi];r+=1){var n=e[hi](r);if(n>=55296&&n<=56319){var i=e[hi](r+1);if(r+1>=e[Vi]||i<56320||i>57343)return null;r+=1}else if(n>=56320&&n<=57343)return null;t+=1}return t},ya=e=>"number"==typeof e&&Number[sa](e),ba=e=>ya(e)&&Number[Kn](e)&&e>=0,wa=e=>Object.is(e,null),Sa=(e,t)=>Object.prototype[wi].call(e,t),ka=(e,t)=>Object.prototype[wi].call(e,t),Ca=(e,t)=>{var r=new Set(t);return Object.keys(e).every((e=>r.has(e)))},Ma=e=>{for(var t=0,r=0;r<e[Vi];r+=1){var n=e[hi](r);if(n<=127)t+=1;else if(n<=2047)t+=2;else if(n>=55296&&n<=56319&&r+1<e[Vi]){var i=e[hi](r+1);i>=56320&&i<=57343?(t+=4,r+=1):t+=3}else t+=3}return t},Ia=e=>Object.freeze(e),xa=Gn("lVZNk9xEDP0rqj3H1IaCXDhtskAlB0hlFjhQHDTdst1MW2rU8nzw66luj+2Z2U2A44xtfbz39KTf79rRRiVoI3bg0PUE2fU0IIQMI+cxJVEjf/fqTg5M2nTEpGhBuKFjj2OeHiaVPXHDYo2TYQg2/U3HRM7IP8mwzSZMPy6f3726c8Jt6ICOKegJnIzRA4vBliCR5nCOPYScA3eAo/WiwU4woO5I717dBd5jDH4qf3leQmMqfdWCzv//XYMp/TUGpdy4UZXYGiXaYxznmuaX629ggSjckcKA5nrK4EfFbaSrZBN4MRBbgc1FyTVXNlHsaFMB/bV0VFMMeAzDODyOExAbcsI+l248sZX+nLDR0UBpH84ftWSun0jBPYZYiwgM1ocMxPugwgOxXYD+bupwQ7nEeF8qiuIwguuROwJxFQP/YBWXFPEEaEZDMpDRnAxUK8HAGZAv5QBtoOhv4do4SfRbMKacVw4+qpg4ibfUL3FnEj9sfv4JeBy2ldqpYR8mSSjZqAwISjkJZ7rNfRU9RbRWdPgBY9yi2z2kFEOl5ELnfTCQSakQLEMbGCMcMEbIOKRYUnjSs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a[1],xa[2],xa[3],xa[4],xa[5],xa[6],xa[7],xa[8],xa[9],xa[10],xa[11],xa[12],xa[13],xa[14],xa[15],xa[16],xa[17],xa[18];var Oa=xa[19];xa[20],xa[21],xa[22];var Ea=xa[23];xa[24],xa[25],xa[26],xa[27],xa[28],xa[29],xa[30],xa[31],xa[32],xa[33],xa[34],xa[35],xa[36],xa[37],xa[38],xa[39],xa[40],xa[41],xa[42],xa[43],xa[44],xa[45],xa[46],xa[47],xa[48],xa[49],xa[50],xa[51],xa[52],xa[53],xa[54],xa[55],xa[56],xa[57],xa[58],xa[59],xa[60],xa[61],xa[62],xa[63],xa[64],xa[65],xa[66],xa[67],xa[68],xa[69],xa[70],xa[71],xa[72],xa[73],xa[74],xa[75],xa[76],xa[77],xa[78],xa[79],xa[80],xa[81],xa[82],xa[83],xa[84];var Ra="https://ingest.elu.dev";Ia({[ua]:Ia([Ra]),[Qi]:Ia([Ra]),[$i]:Ia([Ra]),assets:Ia(["https://assets.elu.dev"])});var Na,Ta=Ia({[ua]:"/v1/events",[Qi]:"/v1/replay",[$i]:"/v1/flags",assets:"/sdk/"}),Aa=Ia({[ua]:"/v1/events",[Qi]:"/v2/replay",[$i]:"/v1/flags",assets:"/sdk/"});Ia({1:Ta,2:Aa}),Ia({1:"/sdk/v1/",2:"/sdk/v2/"});var La=e=>(Na||(Na=Gn("jVZdV9w2EP0rc/za9Sns8vlISEigJSFA0jY9fRhLY1tZWXI08sLy63sk2d7txkDffDR35Pm4dzR/Z6fz+WJxPN9bHJ0cHhwfH57sHWezidOTbJadvTl/++7i/YfLq99+v/746ebz7d39l69//PnXNyyEpLKq1felboxtfzj23erhcf20tz9fHBweHZ+c/vJrNsuu7j59BNM1BTkQaIz1UFD4skYJ1OqJ5A5KMdjOs5IEviYolVGeoFAG3froAKRtUJlslt19OMvnh0cgVUXsoSJDDr2yJtzQGVyh0lhoymbZ1/0775TwV2zNO+esC2fza+SlMtWNs6XSNHVuy83pLbUa12diaeyDJllRQ8bv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ZKNMeM1z2fUL2esuOx0d2RX5+yyM41b3DGZTzKiBncr3qwjYNkTY90gZoTsZ1tPWd45unPVWWP1+XC1H//PQgDeR5683bVjd8riZxf3tn38B",2953,79)),Na[e]);class Da extends Error{constructor(e,t){super(t),this.code=void 0,this.name=La(10),this.code=e}}class Pa extends Error{constructor(e){super(e),this.name=La(7)}}class Fa extends Error{constructor(e){super(e),this.name=La(8)}}class ja extends Error{constructor(e){super(e),this.name=La(11)}}var Ba=Object.freeze(["img","picture","svg","canvas"]),Ua=e=>e[Vi]>0?e.join(", "):void 0,za=e=>{if(!0!==e[vi])throw new Pa(Jn(93));var t="all"===e.inputRule,n="all"===e.textRule?"*":Ua(e[xi]),i=Ua([...e[Mi],..."block"===e.imageRule?Ba:[]]);return Object.freeze(r({maskAllInputs:t},t?{}:{maskInputOptions:Object.freeze({password:!0})},void 0===n?{}:{maskTextSelector:n},void 0===i?{}:{blockSelector:i}))},Wa=Object.freeze([".ph-mask",".elu-mask"]),Ha=Object.freeze([".ph-no-capture",".elu-no-capture"]),Va=Object.freeze([".ph-ignore-input",".elu-ignore-input"]),Ga=Object.freeze({maskAllInputs:!1,maskAllText:!1,maskedInputKinds:Object.freeze([]),maskTextSelectors:Object.freeze([]),blockSelectors:Object.freeze([]),ignoreSelectors:Object.freeze([])}),Ja=e=>Object.freeze([...new Set(e)]),qa=/^(\d{4})-(\d{2})-(\d{2})[Tt](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?(?:[Zz]|([+-])(\d{2}):(\d{2}))$/,Ya=(e,t)=>{throw new Error(e+" "+t)},Qa=function(e,t,n){var i;if(!fa(e))return Ya(t,La(52));var a=ga(e);if(wa(a)||a<1||a>n)return Ya(t,"must contain between 1 and "+n+" Unicode scalars");var s=qa.exec(e);if(!s)return Ya(t,La(51));var o=Number(s[1]),l=Number(s[2]),u=Number(s[3]),c=Number(s[4]),d=Number(s[5]),h=Number(s[6]),p=(null!=(i=s[7])?i:"").replace(/0+$/,""),f=s[9]?Number(s[9]):0,m=s[10]?Number(s[10]):0;(l<1||l>12||u<1||u>((e,t)=>{var r=new Date(0);return r[Si](e,t,0),r.getUTCDate()})(o,l)||c>23||d>59||h>60||f>23||m>59)&&Ya(t,La(49));var v=new Date(0);v[Si](o,l-1,u),v.setUTCHours(c,d,Math.min(h,59),0);var g=v.getTime()/1e3-("-"===s[8]?-1:1)*(60*f+m)*60;ya(g)&&Number[Kn](g)||Ya(t,La(33));var y=60===h;if(y){var b=new Date(1e3*(g+1));0===b.getUTCHours()&&0===b.getUTCMinutes()&&0===b.getUTCSeconds()&&1===b.getUTCDate()&&(0===b.getUTCMonth()||6===b.getUTCMonth())||Ya(t,La(54))}var w=(e=>{var t=Math.floor(e/86400);return Ia({epochDay:t,[yi]:e-86400*t})})(g);return Ia(r({source:e},w,{[pi]:y,[Xn]:p}))},Za="__eluReplayUrlScopeV1",Ka=Object.freeze({paused:Object.freeze({tag:"recording paused",payload:Object.freeze({reason:"url blocker"})}),resumed:Object.freeze({tag:"recording resumed",payload:Object.freeze({reason:"left blocked url"})}),started:Object.freeze({tag:"$recording_started",reason:"url_trigger_matched"})}),Xa=e=>{var t,n,i,a=e.scope,s=a.urlBlocklist.map((e=>{try{return new RegExp(e.url)}catch(e){return null}})),o=null!=(t=e.href)?t:()=>{var e;return null==(e=globalThis.location)?void 0:e.href},l=null!=(n=e.carry)?n:{read:()=>{try{var e=globalThis.document,t=null==e?void 0:e[Za];return pa(t)&&fa(t.key)&&ma(t.blocked)?{key:t.key,blocked:t.blocked}:void 0}catch(e){return}},write:e=>{try{var t=globalThis.document;t&&Object.defineProperty(t,Za,{value:Ia(r({},e)),configurable:!0,writable:!0})}catch(e){}}},u=null!=(i=e.defer)?i:e=>{Promise.resolve().then(e)},c=a.siteKey,d=l.read(),h=(null==d?void 0:d.key)===c&&!0===d.blocked,p=!1,f=!1,m="",v=!1,g=()=>l.write({key:c,blocked:h}),y=e=>{if(!v&&e)try{e()}catch(e){}},b=(t,n)=>y((()=>null==e.addCustomEvent?void 0:e.addCustomEvent(t,r({},n)))),w=()=>{var t;try{t=o()}catch(e){t=null}if(t&&t!==m){m=t;var r=(e=>s.some((t=>null===t||t.test(e))))(t);r&&!h?(h=!0,g(),u((()=>{h&&b(Ka.paused.tag,Ka.paused.payload)}))):!r&&h&&(h=!1,g(),p=!0,f||(f=!0,u((()=>{f=!1,p&&!h&&y(e.takeFullSnapshot)}))),u((()=>{h||b(Ka.resumed.tag,Ka.resumed.payload)})))}};return Object.freeze({admit(e){if(v)return"drop";if(w(),h)return(e=>pa(e)&&5===e.type&&pa(e.data)&&e.data.tag===Ka.paused.tag)(e)?"record":"drop";if(p){if(4!==(e=>pa(e)?e.type:void 0)(e))return"drop";p=!1}return"record"},state:()=>Ia({blocked:h,awaitingSnapshot:p,closed:v}),close(){v=!0}})};Ia({names:100,nameLength:512,flagLength:400,keyLength:512,groups:20,groupIdLength:128,groupNameLength:400,groupEntries:100,filters:50,filterValues:100,valueLength:1e3,urlLength:2e3,minDurationMs:36e5}),Ia({rules:100,conditions:50,values:100,valueLength:1e3}),Ia(["LCP","CLS","FCP","INP"]),Ia(["object","embed",".rr-block",".rr-mask"]),Ia(["Asia/Nicosia","Asia/Famagusta","Atlantic/Canary","Atlantic/Madeira","Atlantic/Azores","Atlantic/Reykjavik","Atlantic/Faroe","Africa/Ceuta","America/Cayenne","America/Guadeloupe","America/Martinique","Indian/Reunion","Indian/Mayotte"]);var _a=Ia({sampled:!1,[ui]:!1,[Oi]:!1,[ci]:0,[Yi]:null}),$a=e=>e.replace(/[\S]/g,"*"),es=e=>"*".repeat(e.length),ts=new Set(["password","email","tel","hidden"]),rs=["src","srcset"],ns=new Set(["img","picture","source"]),is="rr_dataURL",as=e=>"object"==typeof e&&null!==e&&!Array.isArray(e),ss=(e,t,n)=>{var i=r({},t),a="string"==typeof i.type?i.type[Ci]():"";if(("all"===n.inputRule||ts.has(a)||"textarea"===e)&&"value"in i&&("string"==typeof i.value?i.value=es(i.value):delete i.value),"block"===n.imageRule&&ns.has(e))for(var s of rs)s in i&&delete i[s];return"block"===n.imageRule&&is in i&&delete i[is],i},os=(e,t)=>{if(!as(e))return e;var n=r({},e),i=n.type;if(5===i)n.textContent="string"==typeof n.textContent?$a(n.textContent):"";else if(3===i&&"all"===t.textRule)!0!==n.isStyle&&(n.textContent="string"==typeof n.textContent?$a(n.textContent):"");else if(2===i){var a="string"==typeof n.tagName?n.tagName[Ci]():"";as(n[Ri])&&(n[Ri]=ss(a,n[Ri],t))}return Array.isArray(n.childNodes)&&(n.childNodes=n.childNodes.map((e=>os(e,t)))),n},ls=(e,t)=>{var n=r({},e);return"all"===t.textRule&&Array.isArray(n.texts)&&(n.texts=n.texts.map((e=>as(e)?r({},e,{value:"string"==typeof e.value?$a(e.value):""}):e))),Array.isArray(n[Ri])&&(n[Ri]=n[Ri].map((e=>as(e)&&as(e[Ri])?r({},e,{[Ri]:ss("",e[Ri],t)}):e))),Array.isArray(n.adds)&&(n.adds=n.adds.map((e=>as(e)?r({},e,{node:os(e.node,t)}):e))),n},us=(e,t)=>{if(!as(e))return e;var n=e.data;if(!as(n))return e;if(2===e.type)return r({},e,{data:r({},n,{node:os(n.node,t)})});if(3!==e.type)return e;if(0===n.source)return r({},e,{data:ls(n,t)});if(5===n.source){var i=r({},n);return"all"===t.inputRule&&"string"==typeof i.text&&(i.text=es(i.text)),r({},e,{data:i})}return 9===n.source&&"block"===t.imageRule?r({},e,{data:{source:n.source,id:n.id,type:n.type,commands:[]}}):e},cs=/^[a-f0-9]{64}$/,ds=function(){var e=t((function*(e){var t="undefined"==typeof globalThis?void 0:globalThis.crypto;if(null==t||!t.subtle)return null;try{var r=yield t.subtle.digest("SHA-256",e),n="";for(var i of new Uint8Array(r))n+=i.toString(16).padStart(2,"0");return n}catch(e){return null}}));return function(t){return e.apply(this,arguments)}}(),hs=function(){var e=t((function*(e,t){void 0===t&&(t=ds);var r=yield t(e);if(!fa(r)||!cs.test(r[Ci]()))throw new Error(La(5));return r[Ci]()}));return function(t,r){return e.apply(this,arguments)}}(),ps=e=>fa(e)&&/^sha256:[a-f0-9]{64}$/.test(e),fs=e=>(new TextEncoder).encode(e),ms=Ia({maximumReplayDecodedBytes:16777216,[Di]:1e4,maximumJsonNestingDepth:256});function vs(e,t){throw new Da(e,t)}var gs=(e,t)=>{wa(ga(e))&&vs("invalid-unicode",t+" contains an unpaired Unicode surrogate")},ys=e=>void 0===e||va(e)||"symbol"==typeof e,bs=(e,t,r,n,i)=>{if(wa(e))return"null";switch(typeof e){case"string":return gs(e,r),JSON[qi](e);case"number":return Number[sa](e)||vs(aa,r+" must be a finite number"),JSON[qi](e);case"boolean":return e?"true":"false";case"object":break;default:return vs(aa,r+" has an unsupported "+typeof e+" value")}var a=t+1;if(a>n&&vs(La(34),r+" exceeds the maximum JSON nesting depth of "+n),a>i.depth&&(i.depth=a),ha(e)){for(var s=[],o=0;o<e[Vi];o+=1){ka(e,o)||vs(aa,r+"["+o+"] is a sparse array hole");var l=e[o];s.push(ys(l)?"null":bs(l,a,r+"["+o+"]",n,i))}return"["+s.join(",")+"]"}if(!(e=>{var t=Object[oi](e);return wa(t)||t===Object.prototype})(e))return vs(aa,r+" must be a plain JSON object or array");var u=e,c=Object.keys(u).sort(),d=[];for(var h of c){var p=u[h];ys(p)||(gs(h,r+"."+h),d.push(JSON[qi](h)+":"+bs(p,a,r+"."+h,n,i)))}return"{"+d.join(",")+"}"},ws=function(e,t,r){return void 0===r&&(r=256),ys(e)&&vs(aa,t+" must be a JSON value"),bs(e,0,t,r,{depth:0})},Ss="elu-css-selector-v1",ks=[Qn,Ii,"textRule","inputRule","imageRule",vi,Ea,xi,Mi],Cs=["all","sensitive"],Ms=["all","sensitive"],Is=["block","allow"];function xs(e){throw new Pa(e)}var Os=(e,t,r)=>(fa(e)&&t.includes(e)||xs(r+" must be one of "+t.join(", ")),e),Es=(e,t)=>{var r=fa(e)?ga(e):null;return wa(r)||r<1||r>512?xs(t+" must be a selector of 1 to 512 Unicode scalars"):e},Rs=(e,t)=>{ha(e)||xs(t+" must be an array of selectors");for(var r=new Set,n=0;n<e[Vi];n+=1)ka(e,n)||xs(t+" must not be sparse"),r.add(Es(e[n],t+"["+n+"]"));return r.size>128&&xs(t+" may carry at most 128 selectors"),Ia([...r].sort())},Ns=e=>{for(var t of(pa(e)&&Ca(e,ks)||xs(La(39)),ks))Sa(e,t)||xs("masking profile "+t+" is required");return 1!==e[Qn]&&xs("masking profile schemaVersion must be 1"),e[Ii]!==Ss&&xs("masking profile targetDialect must be "+Ss),!0!==e[vi]&&xs(La(43)),ma(e[$n])||xs(La(40)),Ia({[Qn]:1,[Ii]:Ss,textRule:Os(e.textRule,Cs,La(44)),inputRule:Os(e.inputRule,Ms,La(38)),imageRule:Os(e.imageRule,Is,La(37)),[vi]:!0,[$n]:e[$n],[xi]:Rs(e[xi],La(42)),[Mi]:Rs(e[Mi],La(41))})},Ts="rrweb/console@1",As=Object.freeze(["assert","clear","count","countReset","debug","dir","dirxml","error","group","groupCollapsed","groupEnd","info","log","table","time","timeEnd","timeLog","trace","warn"]),Ls="...[truncated]",Ds=Object.freeze({recordConsole:!1}),Ps=e=>pa(e)&&6===e.type&&pa(e.data),Fs=e=>Ps(e)&&e.data.plugin===Ts&&pa(e.data.payload)&&"string"==typeof e.data.payload.level&&As.includes(e.data.payload.level)&&ha(e.data.payload.trace)&&ha(e.data.payload.payload),js=(e,t)=>{var r=e.slice(0,t).map((e=>"string"!=typeof e?"":e.length>2e3?e.slice(0,2e3)+Ls:e));return e.length>t&&r.push(Ls),r},Bs="rrweb/network@1",Us=1e6,zs="[SessionRecording]",Ws="redacted",Hs="[SessionReplay] Failed to read body",Vs=["audio","beacon","body","css","early-hint","embed","fetch","frame","iframe","icon","image","img","input","link","navigation","object","ping","script","track","video","xmlhttprequest"],Gs=["first-input","navigation","paint","resource"],Js=[".lr-ingest.io",".ingest.sentry.io",".clarity.ms","google-analytics.com","analytics.google.com","nr-data.net","datadoghq.com","datadoghq.eu","ddog-gov.com","segment.io","rudderstack.com","amplitude.com","mixpanel.com","hotjar.com","hotjar.io","fullstory.com"],qs=["authorization","x-forwarded-for","cookie","set-cookie","x-api-key","x-real-ip","remote-addr","forwarded","proxy-authorization","x-csrf-token","x-csrftoken","x-xsrf-token"],Ys=["auth","token","secret","session","api-key","apikey","api_key","credential","password","passwd","cookie","csrf","xsrf"],Qs=["password","secret","passwd","api_key","apikey","auth","credentials","mysql_pwd","privatekey","private_key","token"],Zs=["image/","video/","audio/","font/","application/octet-stream","application/pdf","application/zip","application/wasm"],Ks=["video/","audio/"],Xs=new RegExp("^(?:(4[0-9]{12}(?:[0-9]{3})?)|(5[1-5][0-9]{14})|(6(?:011|5[0-9]{2})[0-9]{12})|(3[47][0-9]{13})|(3(?:0[0-5]|[68][0-9])[0-9]{11})|((?:2131|1800|35[0-9]{3})[0-9]{11}))$"),_s=/(^|[^0-9A-Za-z_])([0-9][0-9 -]*[0-9])(?=$|[^0-9A-Za-z_])/g,$s=[16,15,14,13],eo=/(^|[^0-9])((?!000|666)[0-9]{3}-?(?!00)[0-9]{2}-?(?!0000)[0-9]{4})(?=$|([^0-9]))/g,to=/[0-9A-Za-z_]/,ro=()=>{},no=e=>{for(var t=0,r=!1,n=e.length-1;n>=0;n--){var i=e.charCodeAt(n)-48;r&&(i*=2)>9&&(i-=9),t+=i,r=!r}return t%10==0},io=e=>{for(var t=null,r=0;r<e.length;r++){var n=e.charCodeAt(r),i=n>=55296&&n<=56319,a=n>=56320&&n<=57343;if(i){var s=e.charCodeAt(r+1);if(r+1<e.length&&s>=56320&&s<=57343){null!==t&&(t+=e.slice(r,r+2)),r++;continue}}i||a?(null===t&&(t=e.slice(0,r)),t+="�"):null!==t&&(t+=e[r])}return null!=t?t:e},ao=e=>{var t=e.toLowerCase();return qs.includes(t)||Ys.some((e=>t.includes(e)))},so=e=>{if(pa(e)){var t={};for(var r of Object.keys(e)){var n=e[r];t[io(r)]=ao(r)?Ws:io(String(n))}return t}},oo=(e,t,r)=>{if(null==e)return e;var n=null==t?void 0:t["content-length"],i=n?parseInt(n,10):Ma(e);return i>Us?zs+" "+r+" body too large to record ("+i+" bytes)":e.length>25e4&&JSON.stringify(e).length>15e5?zs+" "+r+" body too large to record ("+Ma(e)+" bytes)":e},lo=(e,t)=>{if(null==e)return e;var r=e,n=e.trim();for(var i of(((e=>{var t;for(_s.lastIndex=0;t=_s.exec(e);)for(var r,n=(null!=(r=t[2])?r:"").replace(/[- ]/g,""),i=0;i<n.length;i++)for(var a of $s){var s=i+a;if(!(s>n.length)){var o=n.slice(i,s);if(Xs.test(o)&&no(o))return!0}}return!1})(n)||(e=>{var t;for(eo.lastIndex=0;t=eo.exec(e);){var r=t[1],n=t[3];if(!(r&&n&&to.test(r)&&to.test(n)))return!0}return!1})(n))&&(r=zs+" "+t+" body "+Ws),Qs))r.length&&-1!==r.indexOf(i)&&(r=zs+" "+t+" body "+Ws+" as might contain: "+i);return r},uo=(e,t)=>{var r=((e,t)=>{try{return new URL(e,t).hostname}catch(e){return null}})(e,t);return r&&r.trim().length&&Js.some((e=>r.endsWith(e)))?r:null},co=(e,t,r)=>{var n;if(!e)return!1;if(r.startsWith("blob:"))return!1;var i=null==(n=((e,t)=>{if(e){var r=Object.keys(e).find((e=>"content-type"===e.toLowerCase()));return void 0===r?void 0:e[r]}})(t))?void 0:n.toLowerCase();return!(i&&Zs.some((e=>i.includes(e))))},ho=e=>{var t={};return e.forEach(((e,r)=>{t[r]=e})),t},po=e=>"[SessionReplay] Body too large to record (> "+e+" bytes)",fo=e=>pa(e)&&va(e.getReader)&&va(e.tee),mo=function(e,t,r){return void 0===t&&(t=Us),void 0===r&&(r=500),((e,t)=>{try{var r=e.headers.get("content-length");if(!r)return!1;var n=parseInt(r,10);return Number.isFinite(n)&&n>t}catch(e){return!1}})(e,t)?Promise.resolve(po(t)):new Promise((n=>{var i,a,s=!1,o=()=>{try{var e;null==(e=i)||e.cancel().catch(ro)}catch(e){}},l=e=>{s||(s=!0,clearTimeout(u),o(),n(e))},u=setTimeout((()=>l("[SessionReplay] Timeout while trying to read body")),r);try{a=e.clone()}catch(e){return void l(Hs)}var c=a.body;if(fo(c)&&"undefined"!=typeof TextDecoder){try{i=c.getReader()}catch(e){return void l(Hs)}var d=[],h=0,p=()=>{i.read().then((e=>{var r=e.done,n=e.value;if(s)o();else if(r){var i=new Uint8Array(h),a=0;for(var u of d)i.set(u,a),a+=u.byteLength;l((new TextDecoder).decode(i))}else{if(n){if(h+n.byteLength>t)return void l(po(t));h+=n.byteLength,d.push(n)}p()}}),(e=>l(Hs+": "+e)))};p()}else try{a.text().then((e=>l(e)),(e=>l(Hs+": "+e)))}catch(e){l(Hs)}}))},vo=(e,t,r)=>{if(null==e)return null;var n,i=uo(t,r);if(i)return i+" is in deny list";if(fa(e))return e;if("undefined"!=typeof Document&&e instanceof Document)return e.textContent;if("undefined"!=typeof FormData&&e instanceof FormData)return n=[],e.forEach(((e,t)=>{if(void 0!==t&&"undefined"!==t){var r="undefined"!=typeof File&&e instanceof File?e.name:String(e);n.push(encodeURIComponent(t)+"="+encodeURIComponent(r))}})),n.join("&");if("undefined"!=typeof URLSearchParams&&e instanceof URLSearchParams)return e.toString();if("object"==typeof e)try{return JSON.stringify(e)}catch(e){return"[SessionReplay] Failed to stringify response object"}return"[SessionReplay] Cannot read body of type "+Object.prototype.toString.call(e)},go=e=>"resource"===e.entryType,yo=e=>void 0===e?void 0:Math.round(e),bo=(e,t)=>{var n,i=t.entry,a=i?i.startTime:t.start,s=i?i.responseEnd:t.end,o=Math.floor(Date.now()-e.now()),l=Math.floor(o+(a||0)),u=[r({},i?i.toJSON():{name:t.url},{startTime:yo(a),endTime:yo(s),timeOrigin:o,timestamp:l,method:t.method,initiatorType:null!=(n=t.initiatorType)?n:null==i?void 0:i.initiatorType,status:t.status,requestHeaders:t.captured.requestHeaders,requestBody:t.captured.requestBody,responseHeaders:t.captured.responseHeaders,responseBody:t.captured.responseBody,isInitial:t.isInitial})];if(i&&("navigation"===i.entryType||"resource"===i.entryType))for(var c of i.serverTiming||[])u.push({timeOrigin:o,timestamp:l,startTime:Math.round(i.startTime),name:c.name,duration:c.duration,entryType:"serverTiming"});return u},wo=function(e,t,r,n,i,a,s){if(void 0===s&&(s=0),s>10||!a())return Promise.resolve(null);var o;try{for(var l=e.getEntriesByName(r),u=l.length-1;u>=0;u--){var c=l[u];if(go(c)&&c.initiatorType===t&&(void 0===n||c.startTime>=n)&&(void 0===i||c.startTime<=i)){o=c;break}}}catch(e){return Promise.resolve(null)}return o?Promise.resolve(o):new Promise((e=>setTimeout(e,50*s))).then((()=>wo(e,t,r,n,i,a,s+1)))},So="__eluReplayNetworkV1",ko=(e,t,r,n,i)=>{var a=null==e?void 0:e[t];if(!a){var s=r[n];if(!va(s))return ro;var o=s,l={next:o,handler:null,wrapped:function(){for(var e=l.handler,t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return e?e(this,r,o):o.apply(this,r)}};r[n]=l.wrapped,e&&(e[t]=l),a=l}var u=a;return u.handler=i,()=>{u.handler===i&&(u.handler=null),r[n]===u.wrapped&&(r[n]=u.next,e&&e[t]===u&&delete e[t])}},Co=e=>{var t=Object.freeze([...e.excluded]),n=e.headers||e.body,i=!1;return Object.freeze({name:Bs,observer:(a,s)=>{if(i)return ro;i=!0;var o=!1,l=()=>{try{return s.location.href}catch(e){return"about:blank"}},u=e=>{if(!fa(e))return!1;try{var r=new URL(e,l()),n=r.origin+r.pathname;return t.some((e=>n.startsWith(e)))}catch(e){return!1}},c=e=>{if("serverTiming"!==e.entryType&&u(e.name))return null;var t=so(e.requestHeaders),n=so(e.responseHeaders),i=e=>fa(e)?io(e):null===e?null:void 0,a=lo(oo(i(e.requestBody),t,"Request"),"Request"),s=lo(oo(i(e.responseBody),n,"Response"),"Response"),o=r({},e);return fa(o.name)&&(o.name=io(o.name)),o.requestHeaders=t,o.responseHeaders=n,o.requestBody=a,o.responseBody=s,o},d=function(e,t){if(void 0===t&&(t=!1),!o){var r=[],n=!1;for(var i of e){var s="serverTiming"===i.entryType;if(!s||!n){var l=null;try{l=c(i)}catch(e){l=null}s||(n=!l),l&&r.push(l)}}if(r.length&&!o)try{a(t?{requests:r,isInitial:!0}:{requests:r})}catch(e){}}},h=s.performance,p=[];if(h){try{p.push(Mo(s,h,e.timing,n,d))}catch(e){}if(n){var f={win:s,performance:h,options:e,live:()=>!o,base:l,isExcluded:u,emit:d},m=(e=>{try{var t=e.document,r=t[So];if(r)return r;var n={};return Object.defineProperty(t,So,{value:n,configurable:!0}),n}catch(e){return null}})(s);try{p.push(Oo(f,m))}catch(e){}try{p.push(Ro(f,m))}catch(e){}}}return()=>{for(var e of(o=!0,p))try{e()}catch(e){}}},options:null})},Mo=(e,t,r,n,i)=>{var a,s=e=>(e=>"navigation"===e.entryType)(e)||go(e)&&Vs.includes(e.initiatorType);if(r){var o=t.getEntries().filter(s);i(o.flatMap((e=>bo(t,{entry:e,captured:{},isInitial:!0}))),!0)}var l=e.PerformanceObserver;if(!va(l))return ro;var u=new l((e=>{var r=e.getEntries().filter((e=>s(e)&&!(n&&("xmlhttprequest"===e.initiatorType||"fetch"===e.initiatorType))));i(r.flatMap((e=>bo(t,{entry:e,captured:{}}))))})),c=null!=(a=l.supportedEntryTypes)?a:[];return u.observe({entryTypes:c.filter((e=>Gs.includes(e)))}),()=>u.disconnect()},Io=e=>{if("undefined"==typeof Request)return!1;if(e instanceof Request)return!0;try{return"[object Request]"===Object.prototype.toString.call(e)}catch(e){return!1}},xo=e=>{try{return fa(e)?e:Io(e)?e.url:String(null!=e?e:"")}catch(e){return""}},Oo=(e,t)=>{var r=e.win,n=e.performance,i=e.options;return ko(t,"fetch",r,"fetch",((t,r,a)=>{var s,o=r,l=o[0],u=o[1];if(!e.live()||e.isExcluded(xo(l)))return a.apply(t,r);try{s=Io(l)?new Request(l.clone(),u):new Request(l,u)}catch(e){return a.apply(t,r)}var c=s.url,d={},h=[];try{var p=ho(s.headers);if(i.headers&&(d.requestHeaders=p),!fo(null==u?void 0:u.body)&&co(i.body,p,c)){var f=uo(c,e.base());h.push((f?Promise.resolve(f+" is in deny list"):mo(s)).then((e=>{d.requestBody=e})))}}catch(e){}var m,v,g,y=n.now(),b=()=>{Promise.all(h).then((()=>wo(n,"fetch",c,y,v,e.live))).then((t=>e.emit(bo(n,{entry:t,method:s.method,status:m,captured:d,start:y,end:v,url:c,initiatorType:"fetch"})))).catch(ro)};try{g=a.apply(t,r)}catch(e){throw v=n.now(),b(),e}return Promise.resolve(g).then((t=>{v=n.now();try{m=t.status;var r=ho(t.headers);if(i.headers&&(d.responseHeaders=r),co(i.body,r,c)){var a=Eo(t,c,e.base());h.push((a?Promise.resolve(a):mo(t)).then((e=>{d.responseBody=e})))}}catch(e){}return b(),t}),(e=>{throw v=n.now(),b(),e}))}))},Eo=(e,t,r)=>{var n;if("chunked"===e.headers.get("Transfer-Encoding"))return"Chunked Transfer-Encoding is not supported";var i=null==(n=e.headers.get("Content-Type"))?void 0:n.toLowerCase();if(i&&Ks.some((e=>i.startsWith(e))))return"Content-Type "+i+" is not supported";var a=uo(t,r);return a?a+" is in deny list":null},Ro=(e,t)=>{var r=e.win.XMLHttpRequest,n=null==r?void 0:r.prototype;return n?ko(t,"open",n,"open",((t,r,n)=>{var i=t,a=r,s=a[0],o=a[1],l=xo(o instanceof URL?o.href:o);if(e.live()&&!e.isExcluded(l))try{No(e,i,String(s),l)}catch(e){}return n.apply(i,r)})):ro},No=(e,t,r,n)=>{var i,a,s=e.performance,o=e.options,l=new URL(n,e.base()).href,u={},c={},d=t.setRequestHeader.bind(t);t.setRequestHeader=(e,t)=>{c[e]=t,d(e,t)},o.headers&&(u.requestHeaders=c);var h=t.send.bind(t);t.send=t=>{if(e.live()&&co(o.body,c,l))try{u.requestBody=vo(t,l,e.base())}catch(e){}i=s.now(),h(t)};var p=()=>{t.removeEventListener("readystatechange",f),t.removeEventListener("error",p),t.removeEventListener("abort",p),t.removeEventListener("timeout",p)},f=()=>{if(t.readyState===t.DONE&&(p(),e.live())){a=s.now();try{var c={};for(var d of t.getAllResponseHeaders().trim().split(/[\r\n]+/)){var h=d.split(": "),f=h.shift();f&&(c[f]=h.join(": "))}o.headers&&(u.responseHeaders=c),co(o.body,c,l)&&(u.responseBody=vo(t.response,l,e.base()))}catch(e){}var m=t.status;wo(s,"xmlhttprequest",l,i,a,e.live).then((t=>e.emit(bo(s,{entry:t,method:r,status:m,captured:u,start:i,end:a,url:n,initiatorType:"xmlhttprequest"})))).catch(ro)}};t.addEventListener("readystatechange",f),t.addEventListener("error",p),t.addEventListener("abort",p),t.addEventListener("timeout",p)},To=e=>"object"==typeof e&&null!==e&&!ha(e),Ao=e=>{if(ha(e))return e.map(Ao);if(!To(e))return e;var t,r={};for(var n of Object.keys(e))r[n]=Ao(e[n]);return t=r.attributes,(!To(t)||"string"!=typeof t.value||(t.value=es(t.value),0))&&To(r[Ri])&&delete r[Ri].value,3===r.type&&To(r.data)&&5===r.data.source&&(r.data.text="string"==typeof r.data.text?es(r.data.text):""),r},Lo=(e,t)=>Number[Kn](e)&&e>0&&e<=t,Do=1048576,Po=e=>{var n=Ns(e.profile);if(!Lo(e.maximumEventBytes,8388608)||!Lo(e.maximumPendingBytes,16777216)||e.maximumPendingBytes<e.maximumEventBytes||!Lo(e.maximumPendingEvents,1e3))throw new Error(Jn(565));var i=e.checkoutEveryNms;if(void 0!==i&&!(Number.isSafeInteger(i)&&i>=1e3&&i<=36e5))throw new Error("invalid recorder checkout interval");var a=za(n),s=function(e,t,n){void 0===n&&(n=za(e));var i=null!=t?t:Ga,a="all"===e.textRule||!0===i.maskAllText?"all":"sensitive",s="all"===e.inputRule||!0===i.maskAllInputs?"all":"sensitive",o=Ja([...e.resolvedMaskSelectors,...Wa,...i.maskTextSelectors]),l=Ua(Ja([...n.blockSelector?[n.blockSelector]:[],...Ha,...i.blockSelectors])),u=Ja([...Va,...i.ignoreSelectors]).join(", ");return Object.freeze(r({maskAllInputs:"all"===s},"all"===s?{}:{maskInputOptions:Object.freeze({password:!0})},{maskTextSelector:"all"===a?"*":o.join(", ")},l?{blockSelector:l}:{},{ignoreSelector:u,textRule:a,inputRule:s,maskedInputKinds:Ja(i.maskedInputKinds),maskSelectors:o}))}(n,e.pageMasking,a);for(var o of[...n[xi],...n[Mi],...s.maskSelectors,...null!=(l=null==(u=e.pageMasking)?void 0:u.blockSelectors)?l:[],...null!=(c=null==(d=e.pageMasking)?void 0:d.ignoreSelectors)?c:[]]){var l,u,c,d;e.document.querySelector(o)}var h=['input[type="hidden"]',"iframe","object","embed",s.blockSelector].filter((e=>void 0!==e)).join(", ");e.document.querySelector(h),e.document.querySelector(s.ignoreSelector),e.document.querySelector(s.maskTextSelector);var p,f=Ns(r({},n,{textRule:s.textRule,inputRule:s.inputRule})),m=Math.min(4194304,Math.floor(e.maximumPendingBytes/4)),v=Math.min(Do,e.maximumEventBytes,m),g=m,y=Math.min(3145728,e.maximumEventBytes,g),b=m,w=Math.min(e.maximumEventBytes,b),S=!1,k=!1,C=0,M=0,I=0,x=0,O=(p=e.fullSnapshotIntervalMs,Object.freeze({checkoutEveryNms:ya(p)&&p>0?Math.max(1e4,Math.min(18e5,Math.floor(p))):3e5})),E=!1,R=0,N=0,T=-1,A=0,L=!1,D=!1,P=!1,F=!1,j=!0,B={},U=null,z=null,W=null,H=0,V=0,G=null,J=Promise[Zi](),q=t=>{try{null==e.onFailure||e.onFailure(t)}catch(e){}},Y=()=>{if(L)return _a;try{var t=e.eligibility();return!Number[Kn](t[ci])||t[ci]<0||t[ci]>86400?_a:Object.freeze({sampled:!0===t.sampled,[Oi]:!0===t[Oi],[ci]:t[ci],[Yi]:t[Yi],[ui]:!0})}catch(e){return _a}},Q=()=>{var t=Y();return t.sampled&&t[Oi]&&t[ci]>0&&null!==t[Yi]&&e[ta]()},Z=e=>{try{null==e||e()}catch(e){j=!1,L=!0,B={},q("engine-stop")}},K=()=>{var e=z;z=null,null==e||e.close()},X=()=>{var e=U;U=null,K(),Z(e)},_=()=>{var e=W;W=null,Z(e)},$=()=>(B={},D=!1,P=!1,_(),X(),J),ee=e=>{L=!0,$(),q(e)},te=function(e,t){void 0===t&&(t=!1);try{return(D||t&&P)&&!L&&B===e&&Q()}catch(e){return!1}};return Object.freeze({profile:n,capability:Y,start:()=>{if(L||D||P||F||!j||H>0)return!1;try{if(!Q())return!1}catch(e){return!1}var a={},o=((e,t)=>{var r=null;try{r="allow"===e.imageRule&&t?t():null}catch(e){}return!r||!Number.isSafeInteger(r.fps)||r.fps<1||r.fps>12||"number"!=typeof r.quality||!(r.quality>0&&r.quality<=1)?{recordCanvas:!1}:{recordCanvas:!0,sampling:{canvas:r.fps},dataURLOptions:{type:"image/webp",quality:r.quality},canvasMasking:{configured:()=>!0}}})(n,e.canvas),l=(e=>{var t=null;try{t=e?e():null}catch(e){return null}if(!(t&&ma(t.timing)&&ma(t.headers)&&ma(t.body)&&(t.timing||t.headers||t.body)))return null;var r=(e=>{if(!ha(e))return null;var t=[];for(var r of e){if(!fa(r))return null;try{var n=new URL(r);if("https:"!==n.protocol&&"http:"!==n.protocol)return null;t.push(n.origin+n.pathname)}catch(e){return null}}return t})(t.excluded);return r?Co({timing:t.timing,headers:t.headers,body:t.body,excluded:r}):null})(e.network),u=(e=>{var t=null;try{t=e?e():null}catch(e){}return pa(t)?Object.freeze({recordConsole:!0,consolePlugin:Object.freeze({level:As,lengthThreshold:1e3,stringifyOptions:Object.freeze({numOfKeysLimit:50,depthOfLimit:4}),logger:"console"})}):Ds})(e.console);B=a,G=null,E=o.recordCanvas,S=null!==l,k=u.recordConsole,D=!0;try{var c;F=!0;var d=e.subscribeToRestrictions((()=>{B===a&&$()}));if(F=!1,!te(a))return Z(d),!1;W=d;var p=null!=(c=null==e.urlScope?void 0:e.urlScope())?c:null;z=p?Xa({scope:p,takeFullSnapshot:e.engine.takeFullSnapshot,addCustomEvent:e.engine.addCustomEvent}):null,F=!0;var q=e.engine(r({maskTextSelector:s.maskTextSelector,maskAllInputs:!0,maskInputOptions:{password:!0,email:!0,tel:!0,textarea:!0},maskInputFn:(e,t)=>{var r,i=null==(r=t.getAttribute("type"))?void 0:r[Ci](),a="TEXTAREA"===t.tagName?"textarea":"SELECT"===t.tagName?"select":null!=i?i:"text";if("all"===s.inputRule||["password","email","tel","hidden"].includes(null!=i?i:"")||"TEXTAREA"===t.tagName||s.maskedInputKinds.includes(a))return es(e);for(var o of n[xi])if(t.closest(o))return es(e);for(var l of s.maskSelectors)if(t.closest(l))return es(e);return e},maskTextFn:$a,blockSelector:h,ignoreSelector:s.ignoreSelector},o,{recordCrossOriginIframes:!1,inlineImages:!1,collectFonts:!1,recordDOM:!0,plugins:l?[l]:[],console:u,keepIframeSrcFn:()=>!1,recordAfter:Jn(16),checkoutEveryNms:void 0===i?O.checkoutEveryNms:Math.min(i,O.checkoutEveryNms),errorHandler:()=>(B===a&&ee("engine-start"),!0),emit:i=>((i,a)=>{if(D)if(te(i)){if(!z||"drop"!==z.admit(a)){var s=(e=>To(e)&&3===e.type&&To(e.data)&&9===e.data.source)(a),o=!s&&(e=>To(e)&&6===e.type&&To(e.data)&&e.data.plugin===Bs)(a),l=!s&&!o&&Ps(a);if(!l||k&&Fs(a)){var u=e=>s?e:o||l?void 0:ee("capacity"),c=s&&Number.isSafeInteger(a.data.id)&&a.data.id>0;if((!s||E&&"allow"===n.imageRule&&c)&&(!o||S)){var d,h,p,O=s?R:o?I:l?C:H-R-I-C,L=s?N:o?x:l?M:V-N-x-M,P=s?m:o?g:l?b:e.maximumPendingBytes,F=s?v:o?y:l?w:e.maximumEventBytes,j=s||o?32:l?1e3:e.maximumPendingEvents;if(s&&(e=>{var t=0;for(var r of Array.isArray(e.commands)?e.commands:[]){var n=as(r)&&Array.isArray(r.args)?r.args[0]:null,i=as(n)&&Array.isArray(n.args)?n.args[0]:null;for(var a of as(i)&&Array.isArray(i.data)?i.data:[])as(a)&&"string"==typeof a.base64&&(t+=a.base64.length)}return t})(a.data)>F)return"shrink";if(O>=j||L>=P||(s||o)&&!(()=>{try{return!0===(null==e.canvasAdmission?void 0:e.canvasAdmission())}catch(e){return!1}})())return u("resend");try{if(!To(a)||!Number[Kn](a.timestamp)||a.timestamp<0)throw new Error(Jn(566));if(h=a.timestamp,null!==G&&h<G)throw new Error(Jn(764));var U=l?(e=>{if(wa(e)||!Fs(e))return null;var t=e.data.payload,n=t.level,i=t.trace,a=t.payload;return r({},e,{data:{plugin:Ts,payload:{level:n,trace:js(i,50),payload:js(a,10)}}})})(a):a;if(null===U)return;var W=Ao(us(U,f)),q=JSON[qi](W);if(void 0===q||q[Vi]>F)return void 0===q?ee("capacity"):u("shrink");if((p=(new TextEncoder).encode(q)[ai])>F)return u("shrink");if(s&&Math.floor(h/1e3)!==T&&(T=Math.floor(h/1e3),A=0),L+p>P||s&&A+p>Do)return u("resend");d=JSON.parse(q)}catch(e){return void ee("invalid-event")}if(te(i)){G=h,H+=1,V+=p,s&&(R+=1,N+=p,A+=p),o&&(I+=1,x+=p),l&&(C+=1,M+=p);var Y=J.then(t((function*(){te(i,!0)?yield e.record(d,h,p):B===i&&$()}))).catch((()=>{B===i&&ee("sink")})).then((()=>{H-=1,V-=p,s&&(R-=1,N-=p),o&&(I-=1,x-=p),l&&(C-=1,M-=p)}));J=Y}else $()}}}}else B===i&&$()})(a,i)}));return F=!1,"function"!=typeof q?(j=!1,ee("engine-start"),!1):te(a)?(U=q,!0):(K(),Z(q),!1)}catch(e){return F&&(j=!1),F=!1,ee("engine-start"),!1}},quiesce:()=>{if(L)return $();var e=B;return D=!1,P=!0,X(),j?J.then((()=>{B===e&&(P=!1,_())})):$()},stop:$,marker:(t,n)=>{var i=B;Promise.resolve().then((()=>{if(B===i&&D&&te(i))try{null==e.engine.addCustomEvent||e.engine.addCustomEvent(t,r({},n))}catch(e){}}))},cleanupIsProven:()=>j&&!F&&!D&&!P&&null===U&&null===W&&0===H,settled:()=>J,close:()=>(L=!0,$())})},Fo=e=>"object"==typeof e&&!wa(e)&&4===e.type,jo=(e,t,r,n,i)=>Ia({[gi]:e[gi],[bi]:t,chunkStartedAtMs:t,chunkBytes:r,chunkEvents:1,[Bi]:n,awaitingSnapshot:i}),Bo=Bi,Uo=ea;Ia({base:1,[$i]:2,[Qi]:3}),Ia([{name:"installations",keyPath:Pi,[Xi]:1,indexes:[]},{name:Uo,keyPath:["siteKey","sequence"],[Xi]:1,indexes:[]},{name:"flagCache",keyPath:[ri,"recordKind"],[Xi]:2,indexes:[]},{name:"replayChunks",keyPath:["siteKey",_n],[Xi]:3,indexes:[{name:"chunk",keyPath:["siteKey","replayId","chunkId"],unique:!0},{name:Bo,keyPath:["siteKey","replayId","sequence"],unique:!0}]},{name:"replayStreams",keyPath:["siteKey","replayId"],[Xi]:3,indexes:[]},{name:"replayResolutions",keyPath:["siteKey","replayId","chunkId"],[Xi]:3,indexes:[{name:Bo,keyPath:["siteKey","replayId","sequence"],unique:!0}]}]),Ia({wallNow:()=>(new Date)[ki](),monotonicNowMs:()=>{var e="undefined"==typeof globalThis?void 0:globalThis.performance;return e?e.now():Number.NaN}});var zo=Uint8Array,Wo=Uint16Array,Ho=Uint32Array,Vo=new zo([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),Go=new zo([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),Jo=new zo([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),qo=function(e,t){for(var r=new Wo(31),n=0;n<31;++n)r[n]=t+=1<<e[n-1];var i=new Ho(r[30]);for(n=1;n<30;++n)for(var a=r[n];a<r[n+1];++a)i[a]=a-r[n]<<5|n;return[r,i]},Yo=qo(Vo,2),Qo=Yo[0],Zo=Yo[1];Qo[28]=258,Zo[258]=28;for(var Ko=qo(Go,0)[1],Xo=new Wo(32768),_o=0;_o<32768;++_o){var $o=(43690&_o)>>>1|(21845&_o)<<1;$o=(61680&($o=(52428&$o)>>>2|(13107&$o)<<2))>>>4|(3855&$o)<<4,Xo[_o]=((65280&$o)>>>8|(255&$o)<<8)>>>1}var el=function(e,t,r){for(var n=e.length,i=0,a=new Wo(t);i<n;++i)++a[e[i]-1];var s,o=new Wo(t);for(i=0;i<t;++i)o[i]=o[i-1]+a[i-1]<<1;if(r){s=new Wo(1<<t);var l=15-t;for(i=0;i<n;++i)if(e[i])for(var u=i<<4|e[i],c=t-e[i],d=o[e[i]-1]++<<c,h=d|(1<<c)-1;d<=h;++d)s[Xo[d]>>>l]=u}else for(s=new Wo(n),i=0;i<n;++i)s[i]=Xo[o[e[i]-1]++]>>>15-e[i];return s},tl=new zo(288);for(_o=0;_o<144;++_o)tl[_o]=8;for(_o=144;_o<256;++_o)tl[_o]=9;for(_o=256;_o<280;++_o)tl[_o]=7;for(_o=280;_o<288;++_o)tl[_o]=8;var rl=new zo(32);for(_o=0;_o<32;++_o)rl[_o]=5;var nl=el(tl,9,0),il=el(rl,5,0),al=function(e){return(e/8>>0)+(7&e&&1)},sl=function(e,t,r){r<<=7&t;var n=t/8>>0;e[n]|=r,e[n+1]|=r>>>8},ol=function(e,t,r){r<<=7&t;var n=t/8>>0;e[n]|=r,e[n+1]|=r>>>8,e[n+2]|=r>>>16},ll=function(e,t){for(var r=[],n=0;n<e.length;++n)e[n]&&r.push({s:n,f:e[n]});var i=r.length,a=r.slice();if(!i)return[new zo(0),0];if(1==i){var s=new zo(r[0].s+1);return s[r[0].s]=1,[s,1]}r.sort((function(e,t){return e.f-t.f})),r.push({s:-1,f:25001});var o=r[0],l=r[1],u=0,c=1,d=2;for(r[0]={s:-1,f:o.f+l.f,l:o,r:l};c!=i-1;)o=r[r[u].f<r[d].f?u++:d++],l=r[u!=c&&r[u].f<r[d].f?u++:d++],r[c++]={s:-1,f:o.f+l.f,l:o,r:l};var h=a[0].s;for(n=1;n<i;++n)a[n].s>h&&(h=a[n].s);var p=new Wo(h+1),f=ul(r[c-1],p,0);if(f>t){n=0;var m=0,v=f-t,g=1<<v;for(a.sort((function(e,t){return p[t.s]-p[e.s]||e.f-t.f}));n<i;++n){var y=a[n].s;if(!(p[y]>t))break;m+=g-(1<<f-p[y]),p[y]=t}for(m>>>=v;m>0;){var b=a[n].s;p[b]<t?m-=1<<t-p[b]++-1:++n}for(;n>=0&&m;--n){var w=a[n].s;p[w]==t&&(--p[w],++m)}f=t}return[new zo(p),f]},ul=function(e,t,r){return-1==e.s?Math.max(ul(e.l,t,r+1),ul(e.r,t,r+1)):t[e.s]=r},cl=function(e){for(var t=e.length;t&&!e[--t];);for(var r=new Wo(++t),n=0,i=e[0],a=1,s=function(e){r[n++]=e},o=1;o<=t;++o)if(e[o]==i&&o!=t)++a;else{if(!i&&a>2){for(;a>138;a-=138)s(32754);a>2&&(s(a>10?a-11<<5|28690:a-3<<5|12305),a=0)}else if(a>3){for(s(i),--a;a>6;a-=6)s(8304);a>2&&(s(a-3<<5|8208),a=0)}for(;a--;)s(i);a=1,i=e[o]}return[r.subarray(0,n),t]},dl=function(e,t){for(var r=0,n=0;n<t.length;++n)r+=e[n]*t[n];return r},hl=function(e,t,r){var n=r.length,i=al(t+2);e[i]=255&n,e[i+1]=n>>>8,e[i+2]=255^e[i],e[i+3]=255^e[i+1];for(var a=0;a<n;++a)e[i+a+4]=r[a];return 8*(i+4+n)},pl=function(e,t,r,n,i,a,s,o,l,u,c){sl(t,c++,r),++i[256];for(var d=ll(i,15),h=d[0],p=d[1],f=ll(a,15),m=f[0],v=f[1],g=cl(h),y=g[0],b=g[1],w=cl(m),S=w[0],k=w[1],C=new Wo(19),M=0;M<y.length;++M)C[31&y[M]]++;for(M=0;M<S.length;++M)C[31&S[M]]++;for(var I=ll(C,7),x=I[0],O=I[1],E=19;E>4&&!x[Jo[E-1]];--E);var R,N,T,A,L=u+5<<3,D=dl(i,tl)+dl(a,rl)+s,P=dl(i,h)+dl(a,m)+s+14+3*E+dl(C,x)+(2*C[16]+3*C[17]+7*C[18]);if(L<=D&&L<=P)return hl(t,c,e.subarray(l,l+u));if(sl(t,c,1+(P<D)),c+=2,P<D){R=el(h,p,0),N=h,T=el(m,v,0),A=m;var F=el(x,O,0);for(sl(t,c,b-257),sl(t,c+5,k-1),sl(t,c+10,E-4),c+=14,M=0;M<E;++M)sl(t,c+3*M,x[Jo[M]]);c+=3*E;for(var j=[y,S],B=0;B<2;++B){var U=j[B];for(M=0;M<U.length;++M){var z=31&U[M];sl(t,c,F[z]),c+=x[z],z>15&&(sl(t,c,U[M]>>>5&127),c+=U[M]>>>12)}}}else R=nl,N=tl,T=il,A=rl;for(M=0;M<o;++M)if(n[M]>255){z=n[M]>>>18&31,ol(t,c,R[z+257]),c+=N[z+257],z>7&&(sl(t,c,n[M]>>>23&31),c+=Vo[z]);var W=31&n[M];ol(t,c,T[W]),c+=A[W],W>3&&(ol(t,c,n[M]>>>5&8191),c+=Go[W])}else ol(t,c,R[n[M]]),c+=N[n[M]];return ol(t,c,R[256]),c+N[256]},fl=new Ho([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),ml=function(){for(var e=new Ho(256),t=0;t<256;++t){for(var r=t,n=9;--n;)r=(1&r&&3988292384)^r>>>1;e[t]=r}return e}(),vl=function(e,t,r){for(;r;++t)e[t]=r,r>>>=8};function gl(e,t){void 0===t&&(t={});var r=function(){var e=4294967295;return{p:function(t){for(var r=e,n=0;n<t.length;++n)r=ml[255&r^t[n]]^r>>>8;e=r},d:function(){return 4294967295^e}}}(),n=e.length;r.p(e);var i,a,s,o,l=(i=e,a=t,s=10+((o=t).filename&&o.filename.length+1||0),8,function(e,t,r,n,i,a){var s=e.length,o=new zo(n+s+5*(1+Math.floor(s/7e3))+i),l=o.subarray(n,o.length-i),u=0;if(!t||s<8)for(var c=0;c<=s;c+=65535){var d=c+65535;d<s?u=hl(l,u,e.subarray(c,d)):(l[c]=a,u=hl(l,u,e.subarray(c,s)))}else{for(var h=fl[t-1],p=h>>>13,f=8191&h,m=(1<<r)-1,v=new Wo(32768),g=new Wo(m+1),y=Math.ceil(r/3),b=2*y,w=function(t){return(e[t]^e[t+1]<<y^e[t+2]<<b)&m},S=new Ho(25e3),k=new Wo(288),C=new Wo(32),M=0,I=0,x=(c=0,0),O=0,E=0;c<s;++c){var R=w(c),N=32767&c,T=g[R];if(v[N]=T,g[R]=N,O<=c){var A=s-c;if((M>7e3||x>24576)&&A>423){u=pl(e,l,0,S,k,C,I,x,E,c-E,u),x=M=I=0,E=c;for(var L=0;L<286;++L)k[L]=0;for(L=0;L<30;++L)C[L]=0}var D=2,P=0,F=f,j=N-T&32767;if(A>2&&R==w(c-j))for(var B=Math.min(p,A)-1,U=Math.min(32767,c),z=Math.min(258,A);j<=U&&--F&&N!=T;){if(e[c+D]==e[c+D-j]){for(var W=0;W<z&&e[c+W]==e[c+W-j];++W);if(W>D){if(D=W,P=j,W>B)break;var H=Math.min(j,W-2),V=0;for(L=0;L<H;++L){var G=c-j+L+32768&32767,J=G-v[G]+32768&32767;J>V&&(V=J,T=G)}}}j+=(N=T)-(T=v[N])+32768&32767}if(P){S[x++]=268435456|Zo[D]<<18|Ko[P];var q=31&Zo[D],Y=31&Ko[P];I+=Vo[q]+Go[Y],++k[257+q],++C[Y],O=c+D,++M}else S[x++]=e[c],++k[e[c]]}}u=pl(e,l,a,S,k,C,I,x,E,c-E,u)}return function(e,t,r){(null==r||r>e.length)&&(r=e.length);var n=new(e instanceof Wo?Wo:e instanceof Ho?Ho:zo)(r-0);return n.set(e.subarray(0,r)),n}(o,0,n+al(u)+i)}(i,null==a.level?6:a.level,null==a.mem?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(i.length)))):12+a.mem,s,8,!0)),u=l.length;return function(e,t){var r=t.filename;if(e[0]=31,e[1]=139,e[2]=8,e[8]=t.level<2?4:9==t.level?2:0,e[9]=3,0!=t.mtime&&vl(e,4,Math.floor(new Date(t.mtime||Date.now())/1e3)),r){e[3]=8;for(var n=0;n<=r.length;++n)e[n+10]=r.charCodeAt(n)}}(l,t),vl(l,u-8,r.d()),vl(l,u-4,n),l}for(var yl="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",bl=new Int16Array(128).fill(-1),wl=0;wl<yl[Vi];wl+=1)bl[yl[hi](wl)]=wl;var Sl=e=>{for(var t="",r=0;r+2<e[Vi];r+=3){var n=e[r]<<16|e[r+1]<<8|e[r+2];t+=yl[n>>18]+yl[n>>12&63]+yl[n>>6&63]+yl[63&n]}var i=e[Vi]-r;if(1===i){var a=e[r]<<16;t+=yl[a>>18]+yl[a>>12&63]+"=="}else if(2===i){var s=e[r]<<16|e[r+1]<<8;t+=yl[s>>18]+yl[s>>12&63]+yl[s>>6&63]+"="}return t},kl=Symbol("elu-replay-masking-seal");class Cl{constructor(e,t,r,n,i,a,s){if(this.profile=void 0,this.profileHash=void 0,this.canonicalPayload=void 0,this.payloadByteLength=void 0,this.logicalRecords=void 0,this.nestingDepth=void 0,e!==kl)throw new Fa(La(45));this.profile=t,this[Ti]=r,this.canonicalPayload=n,this.payloadByteLength=i,this[Li]=a,this.nestingDepth=s,Object.freeze(this)}static seal(e,t){var r;if(!va(e))throw new Fa(La(46));if(!ha(t[ua]))throw new Fa(La(47));var n=Ns(t.profile);if(!ps(t[Ti]))throw new Fa(La(48));var i=function(e,t,r){void 0===r&&(r=ms),ha(e)||vs(La(32),t+" must be an array of replay records"),e[Vi]>r[Di]&&vs(La(35),t+" carries "+e[Vi]+" records; the maximum is "+r[Di]);var n={depth:0},i=bs(e,0,t,r.maximumJsonNestingDepth,n),a=Ma(i);return a>r.maximumReplayDecodedBytes&&vs(La(16),t+" serializes to "+a+" bytes; the maximum is "+r.maximumReplayDecodedBytes),Ia({[zi]:i,bytes:fs(i),[Li]:e[Vi],nestingDepth:n.depth})}(t[ua].map((t=>e(t,n))),La(36),null!=(r=t[ca])?r:ms);return new Cl(kl,n,t[Ti],i[zi],i.bytes[Vi],i[Li],i.nestingDepth)}}var Ml=e=>e instanceof Cl;(()=>{for(var e=new Int32Array(256),t=0;t<256;t+=1){for(var r=t,n=0;n<8;n+=1)r=1&r?r>>>1^3988292384:r>>>1;e[t]=r}})();var Il="2.0.0",xl=5242880,Ol=/^elu-[a-z0-9][a-z0-9.-]{0,63}$/,El=/^elu-[a-z0-9-]+$/,Rl=/^[A-Za-z][A-Za-z0-9._-]+$/,Nl=/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/,Tl=[Qn,Hi,Wi,ia,Bi,Ji,"endedAt",Fi,Yn,"codec",ei,"contentEncoding","payload",_i,Gi],Al=[si,ra,Ui],Ll=[di,ti,Ei,"appliedBeforeSerialization",vi,Ea],Dl=[Qn,fi,Ki,la,"facade","build"],Pl=["name",Xi];function Fl(e){throw new ja(e)}var jl=function(e,t,r,n){void 0===n&&(n=1);var i=fa(e)?ga(e):null;return wa(i)||i<n||i>r?Fl(t+" must be a string of "+n+" to "+r+" Unicode scalars"):e},Bl=(e,t)=>(ba(e)||Fl(t+" must be a safe non-negative integer"),e),Ul=(e,t)=>(ps(e)||Fl(t+" must be a lowercase sha256 hash"),e),zl=function(e,t,r,n){for(var i of(void 0===n&&(n=[]),pa(e)&&Ca(e,t)||Fl(r+" must contain only schema-defined fields"),t))n.includes(i)||Sa(e,i)||Fl(r+" "+i+" is required");return e},Wl=(e,t)=>{var r=zl(e,Al,t);return Ia({[si]:jl(r[si],t+" anonymousId",256),[ra]:wa(r[ra])?null:jl(r[ra],t+" userId",512),[Ui]:Bl(r[Ui],t+" revision")})},Hl=(e,t)=>{var r=zl(e,Ll,t);return!0!==r.appliedBeforeSerialization&&Fl(t+" appliedBeforeSerialization must be true"),!0!==r[vi]&&Fl(t+" secureInputsMasked must be true"),ma(r[$n])||Fl(t+" platformFallbackApplied must be a boolean"),Ia({[di]:jl(r[di],t+" policyRevision",128),[ti]:Ul(r[ti],t+" effectivePolicyHash"),[Ei]:Ul(r[Ei],t+" maskingProfileHash"),appliedBeforeSerialization:!0,[vi]:!0,[$n]:r[$n]})},Vl=(e,t,r)=>{var n=zl(e,Pl,t),i=jl(n.name,t+" name",256);return r.test(i)||Fl(t+" name is invalid"),Ia({name:i,[Xi]:jl(n[Xi],t+" version",64)})},Gl=function(e,t){void 0===t&&(t="replay versions");var n=zl(e,Dl,t,["build"]);2!==n[Qn]&&Fl(t+" schemaVersion must be 2"),n[fi]!==Il&&Fl(t+" contractVersion must be "+Il),"browser"!==n[Ki]&&"android"!==n[Ki]&&"ios"!==n[Ki]&&Fl(t+" platform is unsupported");var i=Vl(n[la],t+" runtime",El),a=Vl(n.facade,t+" facade",Rl);return Ia(r({[Qn]:2,[fi]:Il,[Ki]:n[Ki],[la]:i,facade:a},Sa(n,"build")?{build:jl(n.build,t+" build",128)}:{}))},Jl=function(e,t){void 0===t&&(t="replay chunk");var r=zl(e,Tl,t);2!==r[Qn]&&Fl(t+" schemaVersion must be 2");var n=jl(r[Ji],t+" startedAt",64),i=jl(r.endedAt,t+" endedAt",64);((e,t)=>{if(e.epochDay!==t.epochDay)return e.epochDay<t.epochDay?-1:1;if(e[yi]!==t[yi])return e[yi]<t[yi]?-1:1;if(e[pi]!==t[pi])return e[pi]?1:-1;for(var r=Math.max(e[Xn][Vi],t[Xn][Vi]),n=0;n<r;n+=1){var i=e[Xn][hi](n)||48,a=t[Xn][hi](n)||48;if(i!==a)return i<a?-1:1}return 0})(Qa(n,t+" startedAt",64),Qa(i,t+" endedAt",64))>0&&Fl(t+" endedAt must not precede startedAt");var a=jl(r.codec,t+" codec",68);return Ol.test(a)||Fl(t+" codec is invalid"),"none"!==r[ei]&&"gzip"!==r[ei]&&Fl(t+" compression is unsupported"),"base64"!==r.contentEncoding&&Fl(t+" contentEncoding must be base64"),fa(r.payload)&&0!==r.payload[Vi]&&Nl.test(r.payload)||Fl(t+" payload must be non-empty canonical base64"),Ia({[Qn]:2,[Hi]:jl(r[Hi],t+" replayId",256),[Wi]:jl(r[Wi],t+" sessionId",256),[ia]:jl(r[ia],t+" chunkId",256),[Bi]:Bl(r[Bi],t+" sequence"),[Ji]:n,endedAt:i,[Fi]:Wl(r[Fi],t+" identity"),[Yn]:Bl(r[Yn],t+" contextRevision"),codec:a,[ei]:r[ei],contentEncoding:"base64",payload:r.payload,[_i]:Hl(r[_i],t+" privacy"),[Gi]:Gl(r[Gi],t+" versions")})},ql=function(){var e=t((function*(e,t){var r=(e=>fs(ws(Jl(e),"replay chunk")))(e),n=yield hs((e=>{var t=fs("elu-sdk-replay-request-v2"),r=new Uint8Array(t[Vi]+1+4+e[Vi]);r.set(t,0),r[t[Vi]]=0;var n=e[Vi];return r[t[Vi]+1]=n>>>24&255,r[t[Vi]+2]=n>>>16&255,r[t[Vi]+3]=n>>>8&255,r[t[Vi]+4]=255&n,r.set(e,t[Vi]+5),r})(r),t);return Ia({[ji]:"request_"+n,canonicalChunk:r})}));return function(t,r){return e.apply(this,arguments)}}(),Yl=function(){var e=t((function*(e,t){pa(t)||Fl(La(76));var r,n=jl(t[ni],Oa,128),i=void 0===(r=t[mi])?xl:!ba(r)||r<1?Fl(La(77)):Math.min(r,xl),a=Jl(e),s=yield ql(a,t[oa]),o=Ia({[Qn]:2,[ji]:s[ji],chunk:a}),l=fs(ws(o,"replay request"));l[Vi]>i&&Fl("replay request is "+l[Vi]+" bytes; the effective limit is "+i);var u=yield hs(l,t[oa]);return Ia({[ni]:n,[na]:o,[Ni]:l,canonicalRequestSha256:"sha256:"+u,[ai]:l[Vi]})}));return function(t,r){return e.apply(this,arguments)}}(),Ql=function(){var e=t((function*(e){var t=(e=>{if(!Ml(e))throw new Da(La(32),La(65));var t,r=fs(e.canonicalPayload);try{t=gl(r,{mtime:0})}catch(e){return function(e,t){throw new Da("invalid-gzip",t)}(0,La(62))}return Object.freeze({codec:"elu-browser-dom-v1",[ei]:"gzip",contentEncoding:"base64",payload:Sl(t),compressedByteLength:t[Vi],decodedByteLength:r[Vi],[Li]:e[Li],proof:e})})(Cl.seal(us,{profile:e.profile,[Ti]:e[Ti],[ua]:e[ua]})),n=(e=>{pa(e)&&pa(e.payload)&&Ml(e.payload.proof)||Fl(La(69));var t=e.payload;return Jl({[Qn]:2,[Hi]:e[Hi],[Wi]:e[Wi],[ia]:e[ia],[Bi]:e[Bi],[Ji]:e[Ji],endedAt:e.endedAt,[Fi]:e[Fi],[Yn]:e[Yn],codec:t.codec,[ei]:t[ei],contentEncoding:t.contentEncoding,payload:t.payload,[_i]:{[di]:e[di],[ti]:e[ti],[Ei]:t.proof[Ti],appliedBeforeSerialization:!0,[vi]:!0,[$n]:t.proof.profile[$n]},[Gi]:e[Gi]})})({[Hi]:e[Hi],[Wi]:e[Wi],[ia]:e[ia],[Bi]:e[Bi],[Ji]:e[Ji],endedAt:e.endedAt,[Fi]:e[Fi],[Yn]:e[Yn],payload:t,[di]:e[di],[ti]:e[ti],[Gi]:e[Gi]});return Yl(n,r({[ni]:e[ni]},void 0===e[mi]?{}:{[mi]:e[mi]},void 0===e[oa]?{}:{[oa]:e[oa]}))}));return function(t){return e.apply(this,arguments)}}(),Zl=e=>{if(!Number[Kn](e[Ai])||e[Ai]<1)throw new Error(La(68));var n=Math.min(e[Ai],268435456),i=Ia({[gi]:null,[bi]:null,chunkStartedAtMs:null,chunkBytes:0,chunkEvents:0,[Bi]:0,awaitingSnapshot:!1}),a=null,s=!1,o=e[Fi][Hi](),l=null,u=null,c=()=>{if(!l){var t=o;l=Promise.resolve().then((()=>null==e.onReplayClosed?void 0:e.onReplayClosed(t)))}return l},d=0===e.policy[li],h=!1,p=[],f=0,m=0,v=0,g=Promise[Zi](),y=function(t,r){void 0===r&&(r=!1);try{null==e.onSealFailure||e.onSealFailure(null!=t?t:new Error(La(70)),r)}catch(e){}},b=()=>{p=[],f=0},w=()=>{s=!0,a=null,b(),m=0,v=0},S=e=>{w(),y(e,!0)},k=function(){var r=t((function*(){for(;!s&&d&&p[Vi]>0;){var t=p.shift();f-=t.prepared[ai];try{yield e.sink(t.prepared,{discarded:!1,[Bi]:t[Bi]}),h=!0}catch(e){S(e)}}}));return function(){return r.apply(this,arguments)}}(),C=function(){var i=t((function*(t,i){var l=a;if(a=null,!s&&l&&0!==l[ua][Vi]){if(t)return m-=l.estimatedBytes,void(v-=l[ua][Vi]);try{var u=yield Ql(r({},e.seal,{[mi]:e.policy[mi],[ua]:l[ua],[Hi]:o,[Wi]:e[Wi],[ia]:e[Fi][ia](),[Bi]:i,[Ji]:e[Fi].instant(l.startedAtMs),endedAt:e[Fi].instant(l.endedAtMs)}));s||t||(d?(yield e.sink(u,{discarded:!1,[Bi]:i}),h=!0):u[ai]>n-f||p[Vi]>=1e4?S(new Error(La(72))):(p.push({prepared:u,[Bi]:i}),f+=u[ai]))}catch(t){s||(!d||e.policy[li]>0&&!h?S(t):y(t))}finally{m=Math.max(0,m-l.estimatedBytes),v=Math.max(0,v-l[ua][Vi])}}}));return function(e,t){return i.apply(this,arguments)}}();return{record(u,p,f){if(s)return Promise[Zi]();if(!Number[sa](p)||p<0||!wa(i[bi])&&p<i[bi]||!Number[Kn](f)||f<1)return S(new Error(La(31))),g;if(f>n-m||v>=1e4)return S(new Error(La(71))),g;m+=f,v+=1;var y=((e,t,n)=>{var i,a=t.atMs,s=t.byteLength,o=!0===t.opensSnapshot;if(null===e[gi]||null===e[bi])return Ia({action:"buffer",discardSealedChunk:!1,state:Ia(r({},jo(e,a,s,0,o),{[gi]:a}))});var l=a-e[bi],u=a-e[gi];if(l>=1e3*n[ii]||u>=1e3*n[Zn]){var c,d=e[bi]-(null!=(c=e[gi])?c:e[bi]);return Ia({action:"cut-session",discardSealedChunk:d<1e3*n[li],state:Ia(r({},jo(e,a,s,0,o),{[gi]:a}))})}var h=e.chunkEvents>0&&e.chunkBytes+s>n[mi];return e.chunkEvents>0&&!e.awaitingSnapshot&&(h||e.chunkEvents>=5e3||o)?Ia({action:"cut-chunk",discardSealedChunk:!1,state:jo(e,a,s,e[Bi]+1,o)}):Ia({action:"buffer",discardSealedChunk:!1,state:Ia(r({},e,{[bi]:a,chunkStartedAtMs:null!=(i=e.chunkStartedAtMs)?i:a,chunkBytes:e.chunkBytes+s,chunkEvents:e.chunkEvents+1,awaitingSnapshot:o}))})})(i,{atMs:p,[ai]:f,opensSnapshot:Fo(u)},e.policy),w=i[Bi];return i=y.state,g=g.then(t((function*(){if(!s){if("buffer"!==y.action){if(yield C(y.discardSealedChunk,w),s)return;if("cut-session"===y.action){try{yield c()}catch(e){throw S(e),e}if(s)return;b(),d=0===e.policy[li],h=!1,o=e[Fi][Hi](),l=null}}((e,t,r)=>{if(a)return a[ua].push(e),a.endedAtMs=t,void(a.estimatedBytes+=r);a={[ua]:[e],startedAtMs:t,endedAtMs:t,estimatedBytes:r}})(u,p,f),!d&&!wa(y.state[gi])&&p-y.state[gi]>=1e3*e.policy[li]&&(d=!0,yield k())}}))),g},flush(){if(s)return Promise[Zi]();if(i.awaitingSnapshot)return g;var e=i[Bi];return i.chunkEvents>0&&(i=Object.freeze(r({},i,{chunkStartedAtMs:null,chunkBytes:0,chunkEvents:0,[Bi]:i[Bi]+1}))),g=g.then((()=>C(!1,e)))},hasBufferedWork:()=>!s&&(v>0||p[Vi]>0||!wa(a)),bufferedBytes:()=>s?0:m+f,close:()=>(w(),u||(u=g.then(c,function(){var e=t((function*(e){throw yield c(),e}));return function(t){return e.apply(this,arguments)}}())),u)}},Kl=["console"],Xl="__eluOwnedRecorderLeaseV1",_l=e=>{var t=document;if(Xl in t)throw new Error("Recorder is already owned");var i={};Object.defineProperty(t,Xl,{value:i,configurable:!0});var a=!1,s=()=>{if(!a){if(t[Xl]!==i)throw new Error("Recorder ownership changed");delete t[Xl],a=!0}},o=e.console,l=n(e,Kl),u=[...o.recordConsole?[Vn(r({},o.consolePlugin,{level:[...o.consolePlugin.level]}))]:[],...l.plugins],c=On(r({},l,{plugins:u}));if("function"==typeof c)return()=>{c(),s()};s()};Object.assign(_l,{takeFullSnapshot:()=>On.takeFullSnapshot(),addCustomEvent:(e,t)=>On.addCustomEvent(e,t)});var $l=e=>{var t=Po(r({},e,{engine:_l,document:document}));if(e.installSessionDriver){var n=!1;try{n=e.isCurrent()&&e.installSessionDriver(Zl)&&e.isCurrent()}finally{n||t.close()}}return t};export{$l as createEluOwnedRecorder};
|
|
3
3
|
//# sourceMappingURL=recorder.mjs.map
|