1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[119],{369:function(e,t,r){let n,i,s,o,a,l;r.d(t,{U:function(){return rv}});var c,u,d,h,p,f,m,y,g=r(21),v=r(57755),_=r(12647),S=r(65785),b=r(27553),w=r(40932),k=r(82327),E=r(89669),I=r(89284),M=r(82300),R=r(70716),C=r(85229),x=r(28643),T=r(92674),O=r(95458),D=r(76682),N=r(14785),A=r(86608),L=r(98359),P=r(14081),F=r(17803);let B=w.n2,U="sentryReplaySession",j="Unable to send Replay",z={low:{sampling:{canvas:1},dataURLOptions:{type:"image/webp",quality:.25}},medium:{sampling:{canvas:2},dataURLOptions:{type:"image/webp",quality:.4}},high:{sampling:{canvas:4},dataURLOptions:{type:"image/webp",quality:.5}}};function W(e){let t=null==e?void 0:e.host;return(null==t?void 0:t.shadowRoot)===e}function $(e){return"[object ShadowRoot]"===Object.prototype.toString.call(e)}function H(e){try{var t;let r=e.rules||e.cssRules;return r?((t=Array.from(r,q).join("")).includes(" background-clip: text;")&&!t.includes(" -webkit-background-clip: text;")&&(t=t.replace(" background-clip: text;"," -webkit-background-clip: text; background-clip: text;")),t):null}catch(e){return null}}function q(e){let t;if("styleSheet"in e)try{t=H(e.styleSheet)||function(e){let{cssText:t}=e;if(t.split('"').length<3)return t;let 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(e){}else if("selectorText"in e&&e.selectorText.includes(":"))return e.cssText.replace(/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm,"$1\\$2");return t||e.cssText}(c=m||(m={}))[c.Document=0]="Document",c[c.DocumentType=1]="DocumentType",c[c.Element=2]="Element",c[c.Text=3]="Text",c[c.CDATA=4]="CDATA",c[c.Comment=5]="Comment";class K{constructor(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}getId(e){var t;if(!e)return -1;let r=null===(t=this.getMeta(e))||void 0===t?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){let t=this.getId(e);this.idNodeMap.delete(t),e.childNodes&&e.childNodes.forEach(e=>this.removeNodeFromMap(e))}has(e){return this.idNodeMap.has(e)}hasNode(e){return this.nodeMetaMap.has(e)}add(e,t){let r=t.id;this.idNodeMap.set(r,e),this.nodeMetaMap.set(e,t)}replace(e,t){let r=this.getNode(e);if(r){let e=this.nodeMetaMap.get(r);e&&this.nodeMetaMap.set(t,e)}this.idNodeMap.set(e,t)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function V({maskInputOptions:e,tagName:t,type:r}){return"OPTION"===t&&(t="SELECT"),!!(e[t.toLowerCase()]||r&&e[r]||"password"===r||"INPUT"===t&&!r&&e.text)}function J({isMasked:e,element:t,value:r,maskInputFn:n}){let i=r||"";return e?(n&&(i=n(i,t)),"*".repeat(i.length)):i}function Y(e){return e.toLowerCase()}function G(e){return e.toUpperCase()}let X="__rrweb_original__";function Q(e){let t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?Y(t):null}function Z(e,t,r){return"INPUT"===t&&("radio"===r||"checkbox"===r)?e.getAttribute("value")||"":e.value}let ee=1,et=RegExp("[^a-z0-9-_:]");function er(){return ee++}let en=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,ei=/^(?:[a-z+]+:)?\/\//i,es=/^www\..*/i,eo=/^(data:)([^,]*),(.*)/i;function ea(e,t){return(e||"").replace(en,(e,r,n,i,s,o)=>{let a=n||s||o,l=r||i||"";if(!a)return e;if(ei.test(a)||es.test(a)||eo.test(a))return`url(${l}${a}${l})`;if("/"===a[0])return`url(${l}${(t.indexOf("//")>-1?t.split("/").slice(0,3).join("/"):t.split("/")[0]).split("?")[0]+a}${l})`;let c=t.split("/"),u=a.split("/");for(let e of(c.pop(),u))"."!==e&&(".."===e?c.pop():c.push(e));return`url(${l}${c.join("/")}${l})`})}let el=/^[^ \t\n\r\u000c]+/,ec=/^[, \t\n\r\u000c]+/;function eu(e,t){if(!t||""===t.trim())return t;let r=e.createElement("a");return r.href=t,r.href}function ed(){let e=document.createElement("a");return e.href="",e.href}function eh(e,t,r,n,i,s){return n?"src"!==r&&("href"!==r||"use"===t&&"#"===n[0])&&("xlink:href"!==r||"#"===n[0])&&("background"!==r||"table"!==t&&"td"!==t&&"th"!==t)?"srcset"===r?function(e,t){if(""===t.trim())return t;let r=0;function n(e){let n;let i=e.exec(t.substring(r));return i?(n=i[0],r+=n.length,n):""}let i=[];for(;n(ec),!(r>=t.length);){let s=n(el);if(","===s.slice(-1))s=eu(e,s.substring(0,s.length-1)),i.push(s);else{let n="";s=eu(e,s);let o=!1;for(;;){let e=t.charAt(r);if(""===e){i.push((s+n).trim());break}if(o)")"===e&&(o=!1);else{if(","===e){r+=1,i.push((s+n).trim());break}"("===e&&(o=!0)}n+=e,r+=1}}}return i.join(", ")}(e,n):"style"===r?ea(n,ed()):"object"===t&&"data"===r?eu(e,n):"function"==typeof s?s(r,n,i):n:eu(e,n):n}function ep(e,t,r){return("video"===e||"audio"===e)&&"autoplay"===t}function ef(e,t,r=1/0,n=0){return!e||e.nodeType!==e.ELEMENT_NODE||n>r?-1:t(e)?n:ef(e.parentNode,t,r,n+1)}function em(e,t){return r=>{if(null===r)return!1;if(e){if("string"==typeof e){if(r.matches(`.${e}`))return!0}else if(function(e,t){for(let r=e.classList.length;r--;){let n=e.classList[r];if(t.test(n))return!0}return!1}(r,e))return!0}return!!(t&&r.matches(t))}}function ey(e,t,r,n,i,s){try{let o=e.nodeType===e.ELEMENT_NODE?e:e.parentElement;if(null===o)return!1;let a=-1,l=-1;if(s){if((l=ef(o,em(n,i)))<0)return!0;a=ef(o,em(t,r),l>=0?l:1/0)}else{if((a=ef(o,em(t,r)))<0)return!1;l=ef(o,em(n,i),a>=0?a:1/0)}return a>=0?!(l>=0)||a<=l:!(l>=0)&&!!s}catch(e){}return!!s}function eg(e){return null==e?"":e.toLowerCase()}function ev(e,t){let r;let{doc:s,mirror:o,blockClass:a,blockSelector:l,unblockSelector:c,maskAllText:u,maskTextClass:d,unmaskTextClass:h,maskTextSelector:p,unmaskTextSelector:f,skipChild:y=!1,inlineStylesheet:g=!0,maskInputOptions:v={},maskAttributeFn:_,maskTextFn:S,maskInputFn:b,slimDOMOptions:w,dataURLOptions:k={}
1,inlineImages:E=!1,recordCanvas:I=!1,onSerialize:M,onIframeLoad:R,iframeLoadTimeout:C=5e3,onStylesheetLoad:x,stylesheetLoadTimeout:T=5e3,keepIframeSrcFn:O=()=>!1,newlyAddedElement:D=!1}=t,{preserveWhiteSpace:N=!0}=t,A=function(e,t){let{doc:r,mirror:s,blockClass:o,blockSelector:a,unblockSelector:l,maskAllText:c,maskAttributeFn:u,maskTextClass:d,unmaskTextClass:h,maskTextSelector:p,unmaskTextSelector:f,inlineStylesheet:y,maskInputOptions:g={},maskTextFn:v,maskInputFn:_,dataURLOptions:S={},inlineImages:b,recordCanvas:w,keepIframeSrcFn:k,newlyAddedElement:E=!1}=t,I=function(e,t){if(!t.hasNode(e))return;let r=t.getId(e);return 1===r?void 0:r}(r,s);switch(e.nodeType){case e.DOCUMENT_NODE:if("CSS1Compat"!==e.compatMode)return{type:m.Document,childNodes:[],compatMode:e.compatMode};return{type:m.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:m.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:I};case e.ELEMENT_NODE:return function(e,t){let r;let{doc:s,blockClass:o,blockSelector:a,unblockSelector:l,inlineStylesheet:c,maskInputOptions:u={},maskAttributeFn:d,maskInputFn:h,dataURLOptions:p={},inlineImages:f,recordCanvas:y,keepIframeSrcFn:g,newlyAddedElement:v=!1,rootId:_,maskAllText:S,maskTextClass:b,unmaskTextClass:w,maskTextSelector:k,unmaskTextSelector:E}=t,I=function(e,t,r,n){try{if(n&&e.matches(n))return!1;if("string"==typeof t){if(e.classList.contains(t))return!0}else for(let r=e.classList.length;r--;){let n=e.classList[r];if(t.test(n))return!0}if(r)return e.matches(r)}catch(e){}return!1}(e,o,a,l),M=function(e){if(e instanceof HTMLFormElement)return"form";let t=Y(e.tagName);return et.test(t)?"div":t}(e),R={},C=e.attributes.length;for(let t=0;t<C;t++){let r=e.attributes[t];ep(M,r.name,r.value)||(R[r.name]=eh(s,M,Y(r.name),r.value,e,d))}if("link"===M&&c){let t=Array.from(s.styleSheets).find(t=>t.href===e.href),r=null;t&&(r=H(t)),r&&(delete R.rel,delete R.href,R._cssText=ea(r,t.href))}if("style"===M&&e.sheet&&!(e.innerText||e.textContent||"").trim().length){let t=H(e.sheet);t&&(R._cssText=ea(t,ed()))}if("input"===M||"textarea"===M||"select"===M||"option"===M){let t=Q(e),r=Z(e,G(M),t),n=e.checked;if("submit"!==t&&"button"!==t&&r){let n=ey(e,b,k,w,E,V({type:t,tagName:G(M),maskInputOptions:u}));R.value=J({isMasked:n,element:e,value:r,maskInputFn:h})}n&&(R.checked=n)}if("option"===M&&(e.selected&&!u.select?R.selected=!0:delete R.selected),"canvas"===M&&y){if("2d"===e.__context)!function(e){let t=e.getContext("2d");if(!t)return!0;for(let r=0;r<e.width;r+=50)for(let n=0;n<e.height;n+=50){let i=t.getImageData,s=X in i?i[X]:i,o=new Uint32Array(s.call(t,r,n,Math.min(50,e.width-r),Math.min(50,e.height-n)).data.buffer);if(o.some(e=>0!==e))return!1}return!0}(e)&&(R.rr_dataURL=e.toDataURL(p.type,p.quality));else if(!("__context"in e)){let t=e.toDataURL(p.type,p.quality),r=document.createElement("canvas");r.width=e.width,r.height=e.height;let n=r.toDataURL(p.type,p.quality);t!==n&&(R.rr_dataURL=t)}}if("img"===M&&f){n||(i=(n=s.createElement("canvas")).getContext("2d"));let t=e.crossOrigin;e.crossOrigin="anonymous";let r=()=>{e.removeEventListener("load",r);try{n.width=e.naturalWidth,n.height=e.naturalHeight,i.drawImage(e,0,0),R.rr_dataURL=n.toDataURL(p.type,p.quality)}catch(t){console.warn(`Cannot inline img src=${e.currentSrc}! Error: ${t}`)}t?R.crossOrigin=t:e.removeAttribute("crossorigin")};e.complete&&0!==e.naturalWidth?r():e.addEventListener("load",r)}if(("audio"===M||"video"===M)&&(R.rr_mediaState=e.paused?"paused":"played",R.rr_mediaCurrentTime=e.currentTime),!v&&(e.scrollLeft&&(R.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(R.rr_scrollTop=e.scrollTop)),I){let{width:t,height:r}=e.getBoundingClientRect();R={class:R.class,rr_width:`${t}px`,rr_height:`${r}px`}}"iframe"!==M||g(R.src)||(e.contentDocument||(R.rr_src=R.src),delete R.src);try{customElements.get(M)&&(r=!0)}catch(e){}return{type:m.Element,tagName:M,attributes:R,childNodes:[],isSVG:!!("svg"===e.tagName||e.ownerSVGElement)||void 0,needBlock:I,rootId:_,isCustom:r}}(e,{doc:r,blockClass:o,blockSelector:a,unblockSelector:l,inlineStylesheet:y,maskAttributeFn:u,maskInputOptions:g,maskInputFn:_,dataURLOptions:S,inlineImages:b,recordCanvas:w,keepIframeSrcFn:k,newlyAddedElement:E,rootId:I,maskAllText:c,maskTextClass:d,unmaskTextClass:h,maskTextSelector:p,unmaskTextSelector:f});case e.TEXT_NODE:return function(e,t){var r;let{maskAllText:n,maskTextClass:i,unmaskTextClass:s,maskTextSelector:o,unmaskTextSelector:a,maskTextFn:l,maskInputOptions:c,maskInputFn:u,rootId:d}=t,h=e.parentNode&&e.parentNode.tagName,p=e.textContent,f="STYLE"===h||void 0,y="SCRIPT"===h||void 0,g="TEXTAREA"===h||void 0;if(f&&p){try{e.nextSibling||e.previousSibling||(null===(r=e.parentNode.sheet)||void 0===r?void 0:r.cssRules)&&(p=H(e.parentNode.sheet))}catch(t){console.warn(`Cannot get CSS styles from text's parentNode. Error: ${t}`,e)}p=ea(p,ed())}y&&(p="SCRIPT_PLACEHOLDER");let v=ey(e,i,o,s,a,n);if(f||y||g||!p||!v||(p=l?l(p):p.replace(/[\S]/g,"*")),g&&p&&(c.textarea||v)&&(p=u?u(p,e.parentNode):p.replace(/[\S]/g,"*")),"OPTION"===h&&p){let t=V({type:null,tagName:h,maskInputOptions:c});p=J({isMasked:ey(e,i,o,s,a,t),element:e,value:p,maskInputFn:u})}return{type:m.Text,textContent:p||"",isStyle:f,rootId:d}}(e,{maskAllText:c,maskTextClass:d,unmaskTextClass:h,maskTextSelector:p,unmaskTextSelector:f,maskTextFn:v,maskInputOptions:g,maskInputFn:_,rootId:I});case e.CDATA_SECTION_NODE:return{type:m.CDATA,textContent:"",rootId:I};case e.COMMENT_NODE:return{type:m.Comment,textContent:e.textContent||"",rootId:I};default:return!1}}(e,{doc:s,mirror:o,blockClass:a,blockSelector:l,maskAllText:u,unblockSelector:c,maskTextClass:d,unmaskTextClass:h,maskTextSelector:p,unmaskTextSelector:f,inlineStylesheet:g,maskInputOptions:v,maskAttributeFn:_,maskTextFn:S,maskInputFn:b,dataURLOptions:k,inlineImages:E,recordCanvas:I,keepIframeSrcFn:O,newlyAddedElement:D});if(!A)return console.warn(e,"not serialized"),null;r=o.hasNode(e)?o.getId(e):!function(e,t){if(t.comment&&e.type===m.Comment)return!0;
1if(e.type===m.Element){if(t.script&&("script"===e.tagName||"link"===e.tagName&&("preload"===e.attributes.rel||"modulepreload"===e.attributes.rel)&&"script"===e.attributes.as||"link"===e.tagName&&"prefetch"===e.attributes.rel&&"string"==typeof e.attributes.href&&e.attributes.href.endsWith(".js"))||t.headFavicon&&("link"===e.tagName&&"shortcut icon"===e.attributes.rel||"meta"===e.tagName&&(eg(e.attributes.name).match(/^msapplication-tile(image|color)$/)||"application-name"===eg(e.attributes.name)||"icon"===eg(e.attributes.rel)||"apple-touch-icon"===eg(e.attributes.rel)||"shortcut icon"===eg(e.attributes.rel))))return!0;if("meta"===e.tagName){if(t.headMetaDescKeywords&&eg(e.attributes.name).match(/^description|keywords$/)||t.headMetaSocial&&(eg(e.attributes.property).match(/^(og|twitter|fb):/)||eg(e.attributes.name).match(/^(og|twitter):/)||"pinterest"===eg(e.attributes.name)))return!0;if(t.headMetaRobots&&("robots"===eg(e.attributes.name)||"googlebot"===eg(e.attributes.name)||"bingbot"===eg(e.attributes.name)))return!0;if(t.headMetaHttpEquiv&&void 0!==e.attributes["http-equiv"])return!0;else if(t.headMetaAuthorship&&("author"===eg(e.attributes.name)||"generator"===eg(e.attributes.name)||"framework"===eg(e.attributes.name)||"publisher"===eg(e.attributes.name)||"progid"===eg(e.attributes.name)||eg(e.attributes.property).match(/^article:/)||eg(e.attributes.property).match(/^product:/)))return!0;else if(t.headMetaVerification&&("google-site-verification"===eg(e.attributes.name)||"yandex-verification"===eg(e.attributes.name)||"csrf-token"===eg(e.attributes.name)||"p:domain_verify"===eg(e.attributes.name)||"verify-v1"===eg(e.attributes.name)||"verification"===eg(e.attributes.name)||"shopify-checkout-api-token"===eg(e.attributes.name)))return!0}}return!1}(A,w)&&(N||A.type!==m.Text||A.isStyle||A.textContent.replace(/^\s+|\s+$/gm,"").length)?er():-2;let L=Object.assign(A,{id:r});if(o.add(e,L),-2===r)return null;M&&M(e);let P=!y;if(L.type===m.Element){P=P&&!L.needBlock,delete L.needBlock;let t=e.shadowRoot;t&&$(t)&&(L.isShadowHost=!0)}if((L.type===m.Document||L.type===m.Element)&&P){w.headWhitespace&&L.type===m.Element&&"head"===L.tagName&&(N=!1);let t={doc:s,mirror:o,blockClass:a,blockSelector:l,maskAllText:u,unblockSelector:c,maskTextClass:d,unmaskTextClass:h,maskTextSelector:p,unmaskTextSelector:f,skipChild:y,inlineStylesheet:g,maskInputOptions:v,maskAttributeFn:_,maskTextFn:S,maskInputFn:b,slimDOMOptions:w,dataURLOptions:k,inlineImages:E,recordCanvas:I,preserveWhiteSpace:N,onSerialize:M,onIframeLoad:R,iframeLoadTimeout:C,onStylesheetLoad:x,stylesheetLoadTimeout:T,keepIframeSrcFn:O};for(let r of Array.from(e.childNodes)){let e=ev(r,t);e&&L.childNodes.push(e)}if(e.nodeType===e.ELEMENT_NODE&&e.shadowRoot)for(let r of Array.from(e.shadowRoot.childNodes)){let n=ev(r,t);n&&($(e.shadowRoot)&&(n.isShadow=!0),L.childNodes.push(n))}}return e.parentNode&&W(e.parentNode)&&$(e.parentNode)&&(L.isShadow=!0),L.type===m.Element&&"iframe"===L.tagName&&function(e,t,r){let n;let i=e.contentWindow;if(!i)return;let s=!1;try{n=i.document.readyState}catch(e){return}if("complete"!==n){let n=setTimeout(()=>{s||(t(),s=!0)},r);e.addEventListener("load",()=>{clearTimeout(n),s=!0,t()});return}let o="about:blank";if(i.location.href!==o||e.src===o||""===e.src)return setTimeout(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}(e,()=>{let t=e.contentDocument;if(t&&R){let r=ev(t,{doc:t,mirror:o,blockClass:a,blockSelector:l,unblockSelector:c,maskAllText:u,maskTextClass:d,unmaskTextClass:h,maskTextSelector:p,unmaskTextSelector:f,skipChild:!1,inlineStylesheet:g,maskInputOptions:v,maskAttributeFn:_,maskTextFn:S,maskInputFn:b,slimDOMOptions:w,dataURLOptions:k,inlineImages:E,recordCanvas:I,preserveWhiteSpace:N,onSerialize:M,onIframeLoad:R,iframeLoadTimeout:C,onStylesheetLoad:x,stylesheetLoadTimeout:T,keepIframeSrcFn:O});r&&R(e,r)}},C),L.type===m.Element&&"link"===L.tagName&&"stylesheet"===L.attributes.rel&&function(e,t,r){let n,i=!1;try{n=e.sheet}catch(e){return}if(n)return;let s=setTimeout(()=>{i||(t(),i=!0)},r);e.addEventListener("load",()=>{clearTimeout(s),i=!0,t()})}(e,()=>{if(x){let t=ev(e,{doc:s,mirror:o,blockClass:a,blockSelector:l,unblockSelector:c,maskAllText:u,maskTextClass:d,unmaskTextClass:h,maskTextSelector:p,unmaskTextSelector:f,skipChild:!1,inlineStylesheet:g,maskInputOptions:v,maskAttributeFn:_,maskTextFn:S,maskInputFn:b,slimDOMOptions:w,dataURLOptions:k,inlineImages:E,recordCanvas:I,preserveWhiteSpace:N,onSerialize:M,onIframeLoad:R,iframeLoadTimeout:C,onStylesheetLoad:x,stylesheetLoadTimeout:T,keepIframeSrcFn:O});t&&x(e,t)}},T),L}function e_(e,t,r=document){let n={capture:!0,passive:!0};return r.addEventListener(e,t,n),()=>r.removeEventListener(e,t,n)}let eS="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.",eb={map:{},getId:()=>(console.error(eS),-1),getNode:()=>(console.error(eS),null),removeNodeFromMap(){console.error(eS)},has:()=>(console.error(eS),!1),reset(){console.error(eS)}};function ew(e,t,r={}){let n=null,i=0;return function(...s){let o=Date.now();i||!1!==r.leading||(i=o);let a=t-(o-i),l=this;a<=0||a>t?(n&&(clearTimeout(n),n=null),i=o,e.apply(l,s)):n||!1===r.trailing||(n=setTimeout(()=>{i=!1===r.leading?0:Date.now(),n=null,e.apply(l,s)},a))}}function ek(e,t,r){try{if(!(t in e))return()=>{};let n=e[t],i=r(n);return"function"==typeof i&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:n}})),e[t]=i,()=>{e[t]=n}}catch(e){return()=>{}}}"undefined"!=typeof window&&window.Proxy&&window.Reflect&&(eb=new Proxy(eb,{get:(e,t,r)=>("map"===t&&console.error(eS),Reflect.get(e,t,r))}));let eE=Date.now;function eI(e){var t,r,n,i,s,o;let a=e.document;return{left:a.scrollingElement?a.scrollingElement.scrollLeft:void 0!==e.pageXOffset?e.pageXOffset:(null==a?void 0:a.documentElement.scrollLeft)||(null===(r=null===(t=null==a?void 0:a.body)||void 0===t?void 0:t.parentElement)||void 0===r?void 0:r.scrollLeft)||(null===(n=null==a?void 0:a.body)||void 0===n?void 0:n.scrollLeft)||0,top:a.scrollingElement?a.scrollingElement.scrollTop:void 0!==e.pageYOffset?e.pageYOffset:(null==a?void 0:a.documentElement.scrollTop)||(null===(s=null===(i=null==a?void 0:a.body)||void 0===i?void 0:i.parentElement)||void 0===s?void 0:s.scrollTop)||(null===(o=null==a?void 0:a.body)||void 0===o?void 0:o.scrollTop)||0}}function eM(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function eR(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function eC(e,t,r,n,i){if(!e)return!1;let s=e.nodeType===e.ELEMENT_NODE?e:e.parentElement;if(!s)return!1;let o=em(t,r);
1if(!i){let e=n&&s.matches(n);return o(s)&&!e}let a=ef(s,o),l=-1;return!(a<0)&&(n&&(l=ef(s,em(null,n))),a>-1&&l<0||a<l)}function ex(e,t){return -2===t.getId(e)}function eT(e){return!!e.changedTouches}function eO(e,t){return!!("IFRAME"===e.nodeName&&t.getMeta(e))}function eD(e,t){return!!("LINK"===e.nodeName&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&"stylesheet"===e.getAttribute("rel")&&t.getMeta(e))}function eN(e){return!!(null==e?void 0:e.shadowRoot)}/[1-9][0-9]{12}/.test(Date.now().toString())||(eE=()=>new Date().getTime());class eA{constructor(){this.id=1,this.styleIDMap=new WeakMap,this.idStyleMap=new Map}getId(e){var t;return null!==(t=this.styleIDMap.get(e))&&void 0!==t?t:-1}has(e){return this.styleIDMap.has(e)}add(e,t){let r;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)}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 eL(e){var t,r;let n=null;return(null===(r=null===(t=e.getRootNode)||void 0===t?void 0:t.call(e))||void 0===r?void 0:r.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&e.getRootNode().host&&(n=e.getRootNode().host),n}function eP(e){let t=e.ownerDocument;return!!t&&(t.contains(e)||function(e){let t=e.ownerDocument;if(!t)return!1;let r=function(e){let t,r=e;for(;t=eL(r);)r=t;return r}(e);return t.contains(r)}(e))}var eF=((u=eF||{})[u.DomContentLoaded=0]="DomContentLoaded",u[u.Load=1]="Load",u[u.FullSnapshot=2]="FullSnapshot",u[u.IncrementalSnapshot=3]="IncrementalSnapshot",u[u.Meta=4]="Meta",u[u.Custom=5]="Custom",u[u.Plugin=6]="Plugin",u),eB=((d=eB||{})[d.Mutation=0]="Mutation",d[d.MouseMove=1]="MouseMove",d[d.MouseInteraction=2]="MouseInteraction",d[d.Scroll=3]="Scroll",d[d.ViewportResize=4]="ViewportResize",d[d.Input=5]="Input",d[d.TouchMove=6]="TouchMove",d[d.MediaInteraction=7]="MediaInteraction",d[d.StyleSheetRule=8]="StyleSheetRule",d[d.CanvasMutation=9]="CanvasMutation",d[d.Font=10]="Font",d[d.Log=11]="Log",d[d.Drag=12]="Drag",d[d.StyleDeclaration=13]="StyleDeclaration",d[d.Selection=14]="Selection",d[d.AdoptedStyleSheet=15]="AdoptedStyleSheet",d[d.CustomElement=16]="CustomElement",d),eU=((h=eU||{})[h.MouseUp=0]="MouseUp",h[h.MouseDown=1]="MouseDown",h[h.Click=2]="Click",h[h.ContextMenu=3]="ContextMenu",h[h.DblClick=4]="DblClick",h[h.Focus=5]="Focus",h[h.Blur=6]="Blur",h[h.TouchStart=7]="TouchStart",h[h.TouchMove_Departed=8]="TouchMove_Departed",h[h.TouchEnd=9]="TouchEnd",h[h.TouchCancel=10]="TouchCancel",h),ej=((p=ej||{})[p.Mouse=0]="Mouse",p[p.Pen=1]="Pen",p[p.Touch=2]="Touch",p);class ez{constructor(){this.length=0,this.head=null,this.tail=null}get(e){if(e>=this.length)throw Error("Position outside of list range");let t=this.head;for(let r=0;r<e;r++)t=(null==t?void 0:t.next)||null;return t}addNode(e){let t={value:e,previous:null,next:null};if(e.__ln=t,e.previousSibling&&"__ln"in e.previousSibling){let 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&&"__ln"in e.nextSibling&&e.nextSibling.__ln.previous){let r=e.nextSibling.__ln.previous;t.previous=r,t.next=e.nextSibling.__ln,e.nextSibling.__ln.previous=t,r&&(r.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){let 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--)}}let eW=(e,t)=>`${e}@${t}`;class e${constructor(){this.frozen=!1,this.locked=!1,this.texts=[],this.attributes=[],this.removes=[],this.mapRemoves=[],this.movedMap={},this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.processMutations=e=>{e.forEach(this.processMutation),this.emit()},this.emit=()=>{if(this.frozen||this.locked)return;let e=[],t=new Set,r=new ez,n=e=>{let t=e,r=-2;for(;-2===r;)r=(t=t&&t.nextSibling)&&this.mirror.getId(t);return r},i=i=>{if(!i.parentNode||!eP(i))return;let s=W(i.parentNode)?this.mirror.getId(eL(i)):this.mirror.getId(i.parentNode),o=n(i);if(-1===s||-1===o)return r.addNode(i);let a=ev(i,{doc:this.doc,mirror:this.mirror,blockClass:this.blockClass,blockSelector:this.blockSelector,maskAllText:this.maskAllText,unblockSelector:this.unblockSelector,maskTextClass:this.maskTextClass,unmaskTextClass:this.unmaskTextClass,maskTextSelector:this.maskTextSelector,unmaskTextSelector:this.unmaskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:this.inl
1ineStylesheet,maskInputOptions:this.maskInputOptions,maskAttributeFn:this.maskAttributeFn,maskTextFn:this.maskTextFn,maskInputFn:this.maskInputFn,slimDOMOptions:this.slimDOMOptions,dataURLOptions:this.dataURLOptions,recordCanvas:this.recordCanvas,inlineImages:this.inlineImages,onSerialize:e=>{eO(e,this.mirror)&&this.iframeManager.addIframe(e),eD(e,this.mirror)&&this.stylesheetManager.trackLinkElement(e),eN(i)&&this.shadowDomManager.addShadowRoot(i.shadowRoot,this.doc)},onIframeLoad:(e,t)=>{this.iframeManager.attachIframe(e,t),this.shadowDomManager.observeAttachShadow(e)},onStylesheetLoad:(e,t)=>{this.stylesheetManager.attachLinkElement(e,t)}});a&&(e.push({parentId:s,nextId:o,node:a}),t.add(a.id))};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(let e of this.movedSet)(!eq(this.removes,e,this.mirror)||this.movedSet.has(e.parentNode))&&i(e);for(let e of this.addedSet)eK(this.droppedSet,e)||eq(this.removes,e,this.mirror)?eK(this.movedSet,e)?i(e):this.droppedSet.add(e):i(e);let s=null;for(;r.length;){let e=null;if(s){let t=this.mirror.getId(s.value.parentNode),r=n(s.value);-1!==t&&-1!==r&&(e=s)}if(!e){let t=r.tail;for(;t;){let r=t;if(t=t.previous,r){let t=this.mirror.getId(r.value.parentNode),i=n(r.value);if(-1===i)continue;if(-1!==t){e=r;break}{let t=r.value;if(t.parentNode&&t.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE){let n=t.parentNode.host,i=this.mirror.getId(n);if(-1!==i){e=r;break}}}}}}if(!e){for(;r.head;)r.removeNode(r.head.value);break}s=e.previous,r.removeNode(e.value),i(e.value)}let o={texts:this.texts.map(e=>({id:this.mirror.getId(e.node),value:e.value})).filter(e=>!t.has(e.id)).filter(e=>this.mirror.has(e.id)),attributes:this.attributes.map(e=>{let{attributes:t}=e;if("string"==typeof t.style){let 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};(o.texts.length||o.attributes.length||o.removes.length||o.adds.length)&&(this.texts=[],this.attributes=[],this.removes=[],this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.movedMap={},this.mutationCb(o))},this.processMutation=e=>{let t;if(!ex(e.target,this.mirror)){try{t=document.implementation.createHTMLDocument()}catch(e){t=this.doc}switch(e.type){case"characterData":{let t=e.target.textContent;eC(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||t===e.oldValue||this.texts.push({value:ey(e.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,this.maskAllText)&&t?this.maskTextFn?this.maskTextFn(t):t.replace(/[\S]/g,"*"):t,node:e.target});break}case"attributes":{let r=e.target,n=e.attributeName,i=e.target.getAttribute(n);if("value"===n){let t=Q(r),n=r.tagName;i=Z(r,n,t);let s=V({maskInputOptions:this.maskInputOptions,tagName:n,type:t}),o=ey(e.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,s);i=J({isMasked:o,element:r,value:i,maskInputFn:this.maskInputFn})}if(eC(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||i===e.oldValue)return;let s=this.attributes.find(t=>t.node===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)),"type"===n&&"INPUT"===r.tagName&&"password"===(e.oldValue||"").toLowerCase()&&r.setAttribute("data-rr-is-password","true"),!ep(r.tagName,n)&&(s.attributes[n]=eh(this.doc,Y(r.tagName),Y(n),i,r,this.maskAttributeFn),"style"===n)){let n=t.createElement("span");for(let t of(e.oldValue&&n.setAttribute("style",e.oldValue),Array.from(r.style))){let e=r.style.getPropertyValue(t),i=r.style.getPropertyPriority(t);e!==n.style.getPropertyValue(t)||i!==n.style.getPropertyPriority(t)?""===i?s.styleDiff[t]=e:s.styleDiff[t]=[e,i]:s._unchangedStyles[t]=[e,i]}for(let e of Array.from(n.style))""===r.style.getPropertyValue(e)&&(s.styleDiff[e]=!1)}break}case"childList":if(eC(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!0))return;
1e.addedNodes.forEach(t=>this.genAdds(t,e.target)),e.removedNodes.forEach(t=>{let r=this.mirror.getId(t),n=W(e.target)?this.mirror.getId(e.target.host):this.mirror.getId(e.target);eC(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||ex(t,this.mirror)||-1===this.mirror.getId(t)||(this.addedSet.has(t)?(eH(this.addedSet,t),this.droppedSet.add(t)):this.addedSet.has(e.target)&&-1===r||function e(t,r){if(W(t))return!1;let n=r.getId(t);return!r.has(n)||(!t.parentNode||t.parentNode.nodeType!==t.DOCUMENT_NODE)&&(!t.parentNode||e(t.parentNode,r))}(e.target,this.mirror)||(this.movedSet.has(t)&&this.movedMap[eW(r,n)]?eH(this.movedSet,t):this.removes.push({parentId:n,id:r,isShadow:!!(W(e.target)&&$(e.target))||void 0})),this.mapRemoves.push(t))})}}},this.genAdds=(e,t)=>{if(!this.processedNodeManager.inOtherBuffer(e,this)&&!(this.addedSet.has(e)||this.movedSet.has(e))){if(this.mirror.hasNode(e)){if(ex(e,this.mirror))return;this.movedSet.add(e);let r=null;t&&this.mirror.hasNode(t)&&(r=this.mirror.getId(t)),r&&-1!==r&&(this.movedMap[eW(this.mirror.getId(e),r)]=!0)}else this.addedSet.add(e),this.droppedSet.delete(e);!eC(e,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&(e.childNodes.forEach(e=>this.genAdds(e)),eN(e)&&e.shadowRoot.childNodes.forEach(t=>{this.processedNodeManager.add(t,this),this.genAdds(t,e)}))}}}init(e){["mutationCb","blockClass","blockSelector","unblockSelector","maskAllText","maskTextClass","unmaskTextClass","maskTextSelector","unmaskTextSelector","inlineStylesheet","maskInputOptions","maskAttributeFn","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager"].forEach(t=>{this[t]=e[t]})}freeze(){this.frozen=!0,this.canvasManager.freeze()}unfreeze(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()}isFrozen(){return this.frozen}lock(){this.locked=!0,this.canvasManager.lock()}unlock(){this.locked=!1,this.canvasManager.unlock(),this.emit()}reset(){this.shadowDomManager.reset(),this.canvasManager.reset()}}function eH(e,t){e.delete(t),t.childNodes.forEach(t=>eH(e,t))}function eq(e,t,r){return 0!==e.length&&function e(t,r,n){let{parentNode:i}=r;if(!i)return!1;let s=n.getId(i);return!!t.some(e=>e.id===s)||e(t,i,n)}(e,t,r)}function eK(e,t){return 0!==e.size&&function e(t,r){let{parentNode:n}=r;return!!n&&(!!t.has(n)||e(t,n))}(e,t)}let eV=e=>s?(...t)=>{try{return e(...t)}catch(e){if(s&&!0===s(e))return()=>{};throw e}}:e,eJ=[];function eY(e){try{if("composedPath"in e){let 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 eG(e,t){var r,n;let i=new e$;eJ.push(i),i.init(e);let s=window.MutationObserver||window.__rrMutationObserver,o=null===(n=null===(r=null==window?void 0:window.Zone)||void 0===r?void 0:r.__symbol__)||void 0===n?void 0:n.call(r,"MutationObserver");o&&window[o]&&(s=window[o]);let a=new s(eV(t=>{e.onMutation&&!1===e.onMutation(t)||i.processMutations.bind(i)(t)}));return a.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),a}function eX({scrollCb:e,doc:t,mirror:r,blockClass:n,blockSelector:i,unblockSelector:s,sampling:o}){let a=eV(ew(eV(o=>{let a=eY(o);if(!a||eC(a,n,i,s,!0))return;let l=r.getId(a);if(a===t&&t.defaultView){let r=eI(t.defaultView);e({id:l,x:r.left,y:r.top})}else e({id:l,x:a.scrollLeft,y:a.scrollTop})}),o.scroll||100));return e_("scroll",a,t)}let eQ=["INPUT","TEXTAREA","SELECT"],eZ=new WeakMap;function e0(e){return function(e,t){if(e5("CSSGroupingRule")&&e.parentRule instanceof CSSGroupingRule||e5("CSSMediaRule")&&e.parentRule instanceof CSSMediaRule||e5("CSSSupportsRule")&&e.parentRule instanceof CSSSupportsRule||e5("CSSConditionRule")&&e.parentRule instanceof CSSConditionRule){let r=Array.from(e.parentRule.cssRules),n=r.indexOf(e);t.unshift(n)}else if(e.parentStyleSheet){let r=Array.from(e.parentStyleSheet.cssRules),n=r.indexOf(e);t.unshift(n)}return t}(e,[])}function e1(e,t,r){let n,i;return e?(e.ownerNode?n=t.getId(e.ownerNode):i=r.getId(e),{styleId:i,id:n}):{}}function e2({mirror:e,stylesheetManager:t},r){var n,i,s;let o=null;o="#document"===r.nodeName?e.getId(r):e.getId(r.host);let a="#document"===r.nodeName?null===(n=r.defaultView)||void 0===n?void 0:n.Document:null===(s=null===(i=r.ownerDocument)||void 0===i?void 0:i.defaultView)||void 0===s?void 0:s.ShadowRoot,l=(null==a?void 0:a.prototype)?Object.getOwnPropertyDescriptor(null==a?void 0:a.prototype,"adoptedStyleSheets"):void 0;return null!==o&&-1!==o&&a&&l?(Object.defineProperty(r,"adoptedStyleSheets",{configurable:l.configurable,enumerable:l.enumerable,get(){var e;return null===(e=l.get)||void 0===e?void 0:e.call(this)},set(e){var r;let n=null===(r=l.set)||void 0===r?void 0:r.call(this,e);if(null!==o&&-1!==o)try{t.adoptStyleSheets(e,o)}catch(e){}return n}}),eV(()=>{Object.defineProperty(r,"adoptedStyleSheets",{configurable:l.configurable,enumerable:l.enumerable,get:l.get,set:l.set})})):()=>{}}function e3(e,t={}){let r=e.doc.defaultView;if(!r)return()=>{};let n=eG(e,e.doc),i=function({mousemoveCb:e,sampling:t,doc:r,mirror:n}){let i;if(!1===t.mousemove)return()=>{};let s="number"==typeof t.mousemove?t.mousemove:50,o="number"==typeof t.mousemoveCallback?t.mousemoveCallback:500,a=[],l=ew(eV(t=>{let r=Date.now()-i;e(a.map(e=>(e.timeOffset-=r,e)),t),a=[],i=null}),o),c=eV(ew(eV(e=>{let t=eY(e),{clientX:r,clientY:s}=eT(e)?e.changedTouches[0]:e;i||(i=eE()),a.push({x:r,y:s,id:n.getId(t),timeOffset:eE()-i}),l("undefined"!=typeof DragEvent&&e instanceof DragEvent?eB.Drag:e instanceof MouseEvent?eB.MouseMove:eB.TouchMove)}),s,{trailing:!1})),u=[e_("mousemove",c,r),e_("touchmove",c,r),e_("drag",c,r)];return eV(()=>
1{u.forEach(e=>e())})}(e),s=function({mouseInteractionCb:e,doc:t,mirror:r,blockClass:n,blockSelector:i,unblockSelector:s,sampling:o}){if(!1===o.mouseInteraction)return()=>{};let a=!0===o.mouseInteraction||void 0===o.mouseInteraction?{}:o.mouseInteraction,l=[],c=null,u=t=>o=>{let a=eY(o);if(eC(a,n,i,s,!0))return;let l=null,u=t;if("pointerType"in o){switch(o.pointerType){case"mouse":l=ej.Mouse;break;case"touch":l=ej.Touch;break;case"pen":l=ej.Pen}l===ej.Touch?eU[t]===eU.MouseDown?u="TouchStart":eU[t]===eU.MouseUp&&(u="TouchEnd"):ej.Pen}else eT(o)&&(l=ej.Touch);null!==l?(c=l,(u.startsWith("Touch")&&l===ej.Touch||u.startsWith("Mouse")&&l===ej.Mouse)&&(l=null)):eU[t]===eU.Click&&(l=c,c=null);let d=eT(o)?o.changedTouches[0]:o;if(!d)return;let h=r.getId(a),{clientX:p,clientY:f}=d;eV(e)(Object.assign({type:eU[u],id:h,x:p,y:f},null!==l&&{pointerType:l}))};return Object.keys(eU).filter(e=>Number.isNaN(Number(e))&&!e.endsWith("_Departed")&&!1!==a[e]).forEach(e=>{let r=Y(e),n=u(e);if(window.PointerEvent)switch(eU[e]){case eU.MouseDown:case eU.MouseUp:r=r.replace("mouse","pointer");break;case eU.TouchStart:case eU.TouchEnd:return}l.push(e_(r,n,t))}),eV(()=>{l.forEach(e=>e())})}(e),o=eX(e),a=function({viewportResizeCb:e},{win:t}){let r=-1,n=-1,i=eV(ew(eV(()=>{let t=eM(),i=eR();(r!==t||n!==i)&&(e({width:Number(i),height:Number(t)}),r=t,n=i)}),200));return e_("resize",i,t)}(e,{win:r}),l=function({inputCb:e,doc:t,mirror:r,blockClass:n,blockSelector:i,unblockSelector:s,ignoreClass:o,ignoreSelector:a,maskInputOptions:l,maskInputFn:c,sampling:u,userTriggeredOnInput:d,maskTextClass:h,unmaskTextClass:p,maskTextSelector:f,unmaskTextSelector:m}){function y(e){let r=eY(e),u=e.isTrusted,y=r&&G(r.tagName);if("OPTION"===y&&(r=r.parentElement),!r||!y||0>eQ.indexOf(y)||eC(r,n,i,s,!0))return;let v=r;if(v.classList.contains(o)||a&&v.matches(a))return;let _=Q(r),S=Z(v,y,_),b=!1,w=V({maskInputOptions:l,tagName:y,type:_}),k=ey(r,h,f,p,m,w);("radio"===_||"checkbox"===_)&&(b=r.checked),S=J({isMasked:k,element:r,value:S,maskInputFn:c}),g(r,d?{text:S,isChecked:b,userTriggered:u}:{text:S,isChecked:b});let E=r.name;"radio"===_&&E&&b&&t.querySelectorAll(`input[type="radio"][name="${E}"]`).forEach(e=>{if(e!==r){let t=J({isMasked:k,element:e,value:Z(e,y,_),maskInputFn:c});g(e,d?{text:t,isChecked:!b,userTriggered:!1}:{text:t,isChecked:!b})}})}function g(t,n){let i=eZ.get(t);if(!i||i.text!==n.text||i.isChecked!==n.isChecked){eZ.set(t,n);let i=r.getId(t);eV(e)(Object.assign(Object.assign({},n),{id:i}))}}let v="last"===u.input?["change"]:["input","change"],_=v.map(e=>e_(e,eV(y),t)),S=t.defaultView;if(!S)return()=>{_.forEach(e=>e())};let b=S.Object.getOwnPropertyDescriptor(S.HTMLInputElement.prototype,"value"),w=[[S.HTMLInputElement.prototype,"value"],[S.HTMLInputElement.prototype,"checked"],[S.HTMLSelectElement.prototype,"value"],[S.HTMLTextAreaElement.prototype,"value"],[S.HTMLSelectElement.prototype,"selectedIndex"],[S.HTMLOptionElement.prototype,"selected"]];return b&&b.set&&_.push(...w.map(e=>(function e(t,r,n,i,s=window){let o=s.Object.getOwnPropertyDescriptor(t,r);return s.Object.defineProperty(t,r,i?n:{set(e){setTimeout(()=>{n.set.call(this,e)},0),o&&o.set&&o.set.call(this,e)}}),()=>e(t,r,o||{},!0)})(e[0],e[1],{set(){eV(y)({target:this,isTrusted:!1})}},!1,S))),eV(()=>{_.forEach(e=>e())})}(e),c=function({mediaInteractionCb:e,blockClass:t,blockSelector:r,unblockSelector:n,mirror:i,sampling:s,doc:o}){let a=eV(o=>ew(eV(s=>{let a=eY(s);if(!a||eC(a,t,r,n,!0))return;let{currentTime:l,volume:c,muted:u,playbackRate:d}=a;e({type:o,id:i.getId(a),currentTime:l,volume:c,muted:u,playbackRate:d})}),s.media||500)),l=[e_("play",a(0),o),e_("pause",a(1),o),e_("seeked",a(2),o),e_("volumechange",a(3),o),e_("ratechange",a(4),o)];return eV(()=>{l.forEach(e=>e())})}(e),u=function({styleSheetRuleCb:e,mirror:t,stylesheetManager:r},{win:n}){let i,s;if(!n.CSSStyleSheet||!n.CSSStyleSheet.prototype)return()=>{};let o=n.CSSStyleSheet.prototype.insertRule;n.CSSStyleSheet.prototype.insertRule=new Proxy(o,{apply:eV((n,i,s)=>{let[o,a]=s,{id:l,styleId:c}=e1(i,t,r.styleMirror);return(l&&-1!==l||c&&-1!==c)&&e({id:l,styleId:c,adds:[{rule:o,index:a}]}),n.apply(i,s)})});let a=n.CSSStyleSheet.prototype.deleteRule;n.CSSStyleSheet.prototype.deleteRule=new Proxy(a,{apply:eV((n,i,s)=>{let[o]=s,{id:a,styleId:l}=e1(i,t,r.styleMirror);return(a&&-1!==a||l&&-1!==l)&&e({id:a,styleId:l,removes:[{index:o}]}),n.apply(i,s)})}),n.CSSStyleSheet.prototype.replace&&(i=n.CSSStyleSheet.prototype.replace,n.CSSStyleSheet.prototype.replace=new Proxy(i,{apply:eV((n,i,s)=>{let[o]=s,{id:a,styleId:l}=e1(i,t,r.styleMirror);return(a&&-1!==a||l&&-1!==l)&&e({id:a,styleId:l,replace:o}),n.apply(i,s)})})),n.CSSStyleSheet.prototype.replaceSync&&(s=n.CSSStyleSheet.prototype.replaceSync,n.CSSStyleSheet.prototype.replaceSync=new Proxy(s,{apply:eV((n,i,s)=>{let[o]=s,{id:a,styleId:l}=e1(i,t,r.styleMirror);return(a&&-1!==a||l&&-1!==l)&&e({id:a,styleId:l,replaceSync:o}),n.apply(i,s)})}));let l={};e8("CSSGroupingRule")?l.CSSGroupingRule=n.CSSGroupingRule:(e8("CSSMediaRule")&&(l.CSSMediaRule=n.CSSMediaRule),e8("CSSConditionRule")&&(l.CSSConditionRule=n.CSSConditionRule),e8("CSSSupportsRule")&&(l.CSSSupportsRule=n.CSSSupportsRule));let c={};return Object.entries(l).forEach(([n,i])=>{c[n]={insertRule:i.prototype.insertRule,deleteRule:i.prototype.deleteRule},i.prototype.insertRule=new Proxy(c[n].insertRule,{apply:eV((n,i,s)=>{let[o,a]=s,{id:l,styleId:c}=e1(i.parentStyleSheet,t,r.styleMirror);return(l&&-1!==l||c&&-1!==c)&&e({id:l,styleId:c,adds:[{rule:o,index:[...e0(i),a||0]}]}),n.apply(i,s)})}),i.prototype.deleteRule=new Proxy(c[n].deleteRule,{apply:eV((n,i,s)=>{let[o]=s,{id:a,styleId:l}=e1(i.parentStyleSheet,t,r.styleMirror);return(a&&-1!==a||l&&-1!==l)&&e({id:a,styleId:l,removes:[{index:[...e0(i),o]}]}),n.apply(i,s)})})}),eV(()=>{n.CSSStyleSheet.prototype.insertRule=o,n.CSSStyleSheet.prototype.deleteRule=a,i&&(n.CSSStyleSheet.prototype.replace=i),s&&(n.CSSStyleSheet.prototype.replaceSync=s),Object.entries(l).forEach(([e,t])=>{t.prototype.insertRule=c[e].insertRule,t.prototype.deleteRule=c[e].deleteRule})})}(e,{win:r}),d=e2(e,e.doc),h=function({styleDeclarationCb:e,mirror:t,ignoreCSSAttributes:r,stylesheetManager:n},{win:i}){let s=i.CSSStyleDeclaration.prototype.setProperty;i.CSSStyleDeclaration.prototype.setProperty=new Proxy(s,{apply:eV((i,o,a)=>{var l;let[c,u,d]=a;if(r.has(c))return s.apply(o,[c,u,d]);let{id:h,styleId:p}=e1(null===(l=o.parentRule)||void 0===l?void 0:l.parentStyleSheet,t,n.styleMirror);
1return(h&&-1!==h||p&&-1!==p)&&e({id:h,styleId:p,set:{property:c,value:u,priority:d},index:e0(o.parentRule)}),i.apply(o,a)})});let o=i.CSSStyleDeclaration.prototype.removeProperty;return i.CSSStyleDeclaration.prototype.removeProperty=new Proxy(o,{apply:eV((i,s,a)=>{var l;let[c]=a;if(r.has(c))return o.apply(s,[c]);let{id:u,styleId:d}=e1(null===(l=s.parentRule)||void 0===l?void 0:l.parentStyleSheet,t,n.styleMirror);return(u&&-1!==u||d&&-1!==d)&&e({id:u,styleId:d,remove:{property:c},index:e0(s.parentRule)}),i.apply(s,a)})}),eV(()=>{i.CSSStyleDeclaration.prototype.setProperty=s,i.CSSStyleDeclaration.prototype.removeProperty=o})}(e,{win:r}),p=e.collectFonts?function({fontCb:e,doc:t}){let r=t.defaultView;if(!r)return()=>{};let n=[],i=new WeakMap,s=r.FontFace;r.FontFace=function(e,t,r){let n=new s(e,t,r);return i.set(n,{family:e,buffer:"string"!=typeof t,descriptors:r,fontSource:"string"==typeof t?t:JSON.stringify(Array.from(new Uint8Array(t)))}),n};let o=ek(t.fonts,"add",function(t){return function(r){return setTimeout(eV(()=>{let t=i.get(r);t&&(e(t),i.delete(r))}),0),t.apply(this,[r])}});return n.push(()=>{r.FontFace=s}),n.push(o),eV(()=>{n.forEach(e=>e())})}(e):()=>{},f=function(e){let{doc:t,mirror:r,blockClass:n,blockSelector:i,unblockSelector:s,selectionCb:o}=e,a=!0,l=eV(()=>{let e=t.getSelection();if(!e||a&&(null==e?void 0:e.isCollapsed))return;a=e.isCollapsed||!1;let l=[],c=e.rangeCount||0;for(let t=0;t<c;t++){let o=e.getRangeAt(t),{startContainer:a,startOffset:c,endContainer:u,endOffset:d}=o,h=eC(a,n,i,s,!0)||eC(u,n,i,s,!0);h||l.push({start:r.getId(a),startOffset:c,end:r.getId(u),endOffset:d})}o({ranges:l})});return l(),e_("selectionchange",l)}(e),m=function({doc:e,customElementCb:t}){let r=e.defaultView;if(!r||!r.customElements)return()=>{};let n=ek(r.customElements,"define",function(e){return function(r,n,i){try{t({define:{name:r}})}catch(e){}return e.apply(this,[r,n,i])}});return n}(e),y=[];for(let t of e.plugins)y.push(t.observer(t.callback,r,t.options));return eV(()=>{eJ.forEach(e=>e.reset()),n.disconnect(),i(),s(),o(),a(),l(),c(),u(),d(),h(),p(),f(),m(),y.forEach(e=>e())})}function e5(e){return void 0!==window[e]}function e8(e){return!!(void 0!==window[e]&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}class e6{constructor(e){this.generateIdFn=e,this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap}getId(e,t,r,n){let i=r||this.getIdToRemoteIdMap(e),s=n||this.getRemoteIdToIdMap(e),o=i.get(t);return o||(o=this.generateIdFn(),i.set(t,o),s.set(o,t)),o}getIds(e,t){let r=this.getIdToRemoteIdMap(e),n=this.getRemoteIdToIdMap(e);return t.map(t=>this.getId(e,t,r,n))}getRemoteId(e,t,r){let n=r||this.getRemoteIdToIdMap(e);if("number"!=typeof t)return t;let i=n.get(t);return i||-1}getRemoteIds(e,t){let r=this.getRemoteIdToIdMap(e);return t.map(t=>this.getRemoteId(e,t,r))}reset(e){if(!e){this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap;return}this.iframeIdToRemoteIdMap.delete(e),this.iframeRemoteIdToIdMap.delete(e)}getIdToRemoteIdMap(e){let t=this.iframeIdToRemoteIdMap.get(e);return t||(t=new Map,this.iframeIdToRemoteIdMap.set(e,t)),t}getRemoteIdToIdMap(e){let t=this.iframeRemoteIdToIdMap.get(e);return t||(t=new Map,this.iframeRemoteIdToIdMap.set(e,t)),t}}class e4{constructor(){this.crossOriginIframeMirror=new e6(er),this.crossOriginIframeRootIdMap=new WeakMap}addIframe(){}addLoadListener(){}attachIframe(){}}class e7{constructor(e){this.iframes=new WeakMap,this.crossOriginIframeMap=new WeakMap,this.crossOriginIframeMirror=new e6(er),this.crossOriginIframeRootIdMap=new WeakMap,this.mutationCb=e.mutationCb,this.wrappedEmit=e.wrappedEmit,this.stylesheetManager=e.stylesheetManager,this.recordCrossOriginIframes=e.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new e6(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=e.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}addIframe(e){this.iframes.set(e,!0),e.contentWindow&&this.crossOriginIframeMap.set(e.contentWindow,e)}addLoadListener(e){this.loadListener=e}attachIframe(e,t){var r;this.mutationCb({adds:[{parentId:this.mirror.getId(e),nextId:null,node:t}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),null===(r=this.loadListener)||void 0===r||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){if("rrweb"!==e.data.type||e.origin!==e.data.origin)return;let t=e.source;if(!t)return;let r=this.crossOriginIframeMap.get(e.source);if(!r)return;let n=this.transformCrossOriginEvent(r,e.data.event);n&&this.wrappedEmit(n,e.data.isCheckout)}transformCrossOriginEvent(e,t){var r;switch(t.type){case eF.FullSnapshot:{this.crossOriginIframeMirror.reset(e),this.crossOriginIframeStyleMirror.reset(e),this.replaceIdOnNode(t.data.node,e);let r=t.data.node.id;return this.crossOriginIframeRootIdMap.set(e,r),this.patchRootIdOnNode(t.data.node,r),{timestamp:t.timestamp,type:eF.IncrementalSnapshot,data:{source:eB.Mutation,adds:[{parentId:this.mirror.getId(e),nextId:null,node:t.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case eF.Meta:case eF.Load:case eF.DomContentLoaded:break;case eF.Plugin:return t;case eF.Custom:return this.replaceIds(t.data.payload,e,["id","parentId","previousId","nextId"]),t;case eF.IncrementalSnapshot:switch(t.data.source){case eB.Mutation:return t.data.adds.forEach(t=>{this.replaceIds(t,e,["parentId","nextId","previousId"]),this.replaceIdOnNode(t.node,e);let r=this.crossOriginIframeRootIdMap.get(e);r&&this.patchRootIdOnNode(t.node,r)}
1),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 eB.Drag:case eB.TouchMove:case eB.MouseMove:return t.data.positions.forEach(t=>{this.replaceIds(t,e,["id"])}),t;case eB.ViewportResize:return!1;case eB.MediaInteraction:case eB.MouseInteraction:case eB.Scroll:case eB.CanvasMutation:case eB.Input:return this.replaceIds(t.data,e,["id"]),t;case eB.StyleSheetRule:case eB.StyleDeclaration:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleId"]),t;case eB.Font:return t;case eB.Selection:return t.data.ranges.forEach(t=>{this.replaceIds(t,e,["start","end"])}),t;case eB.AdoptedStyleSheet:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleIds"]),null===(r=t.data.styles)||void 0===r||r.forEach(t=>{this.replaceStyleIds(t,e,["styleId"])}),t}}return!1}replace(e,t,r,n){for(let 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===m.Document||e.rootId||(e.rootId=t),"childNodes"in e&&e.childNodes.forEach(e=>{this.patchRootIdOnNode(e,t)})}}class e9{init(){}addShadowRoot(){}observeAttachShadow(){}reset(){}}class te{constructor(e){this.shadowDoms=new WeakSet,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){if(!$(e)||this.shadowDoms.has(e))return;this.shadowDoms.add(e);let r=eG(Object.assign(Object.assign({},this.bypassOptions),{doc:t,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this}),e);this.restoreHandlers.push(()=>r.disconnect()),this.restoreHandlers.push(eX(Object.assign(Object.assign({},this.bypassOptions),{scrollCb:this.scrollCb,doc:e,mirror:this.mirror}))),setTimeout(()=>{e.adoptedStyleSheets&&e.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(e.adoptedStyleSheets,this.mirror.getId(e.host)),this.restoreHandlers.push(e2({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},e))},0)}observeAttachShadow(e){e.contentWindow&&e.contentDocument&&this.patchAttachShadow(e.contentWindow.Element,e.contentDocument)}patchAttachShadow(e,t){let r=this;this.restoreHandlers.push(ek(e.prototype,"attachShadow",function(e){return function(n){let i=e.call(this,n);return this.shadowRoot&&eP(this)&&r.addShadowRoot(this.shadowRoot,t),i}}))}reset(){this.restoreHandlers.forEach(e=>{try{e()}catch(e){}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet}}class tt{reset(){}freeze(){}unfreeze(){}lock(){}unlock(){}}class tr{constructor(e){this.trackedLinkElements=new WeakSet,this.styleMirror=new eA,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){if(0===e.length)return;let r={id:t,styleIds:[]},n=[];for(let t of e){let e;this.styleMirror.has(t)?e=this.styleMirror.getId(t):(e=this.styleMirror.add(t),n.push({styleId:e,rules:Array.from(t.rules||CSSRule,(e,t)=>({rule:q(e),index:t}))})),r.styleIds.push(e)}n.length>0&&(r.styles=n),this.adoptedStyleSheetCb(r)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(e){}}class tn{constructor(){this.nodeMap=new WeakMap,this.loop=!0,this.periodicallyClear()}periodicallyClear(){requestAnimationFrame(()=>{this.clear(),this.loop&&this.periodicallyClear()})}inOtherBuffer(e,t){let r=this.nodeMap.get(e);return r&&Array.from(r).some(e=>e!==t)}add(e,t){this.nodeMap.set(e,(this.nodeMap.get(e)||new Set).add(t))}clear(){this.nodeMap=new WeakMap}destroy(){this.loop=!1}}function ti(e){return e.timestamp=eE(),e}let ts=new K;function to(e={}){var t;let r;let{emit:n,checkoutEveryNms:i,checkoutEveryNth:l,blockClass:c="rr-block",blockSelector:u=null,unblockSelector:d=null,ignoreClass:h="rr-ignore",ignoreSelector:p=null,maskAllText:f=!1,maskTextClass:m="rr-mask",unmaskTextClass:y=null,maskTextSelector:g=null,unmaskTextSelector:v=null,inlineStylesheet:_=!0,maskAllInputs:S,maskInputOptions:b,slimDOMOptions:w,maskAttributeFn:k,maskInputFn:E,maskTextFn:I,packFn:M,sampling:R={},dataURLOptions:C={},mousemoveWait:x,recordCanvas:T=!1,recordCrossOriginIframes:O=!1,recordAfter:D="DOMContentLoaded"===e.recordAfter?e.recordAfter:"load",userTriggeredOnInput:N=!1,collectFonts:A=!1,inlineImages:L=!1,plugins:P,keepIframeSrcFn:F=()=>!1,ignoreCSSAttributes:B=new Set([]),errorHandler:U,onMutation:j,getCanvasManager:z}=e;s=U;let W=!O||window.parent===window,$=!1;if(!W)try{window.parent.document&&($=!1)}catch(e){$=!0}if(W&&!n)throw Error("emit function is required");void 0!==x&&void 0===R.mousemove&&(R.mousemove=x),ts.reset();let H=!0===S?{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,radio:!0,checkbox:!0}:void 0!==b?b:{},q=!0===w||"all"===w?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:"all"===w,headMetaDescKeywords:"all"===w}:w||{};!function(e=window){"NodeList"in e&&!e.NodeList.prototype.forEach&&(e.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in e&&!e.DOMTokenList.prototype.forEach&&(e.DOMTokenList.prototype.forEach=Array.prototype.forEach),Node.prototype.contains||(Node.prototype.contains=(...e)=>{let t=e[0];if(!(0 in e))throw TypeError("1 argument is required");do if(this===t)return!0;while(t=t&&t.parentNode);return!1})}();let V=0,J=e=>{for(let t of P||[])t.eventProcessor&&(e=t.eventProcessor(e));return M&&!$&&(e=M(e)),e},Y=(e,t)=>
1{var s;if((null===(s=eJ[0])||void 0===s?void 0:s.isFrozen())&&e.type!==eF.FullSnapshot&&!(e.type===eF.IncrementalSnapshot&&e.data.source===eB.Mutation)&&eJ.forEach(e=>e.unfreeze()),W)null==n||n(J(e),t);else if($){let r={type:"rrweb",event:J(e),origin:window.location.origin,isCheckout:t};window.parent.postMessage(r,"*")}if(e.type===eF.FullSnapshot)r=e,V=0;else if(e.type===eF.IncrementalSnapshot){if(e.data.source===eB.Mutation&&e.data.isAttachIframe)return;V++;let t=l&&V>=l,n=i&&e.timestamp-r.timestamp>i;(t||n)&&ei(!0)}};o=Y;let G=e=>{Y(ti({type:eF.IncrementalSnapshot,data:Object.assign({source:eB.Mutation},e)}))},X=e=>Y(ti({type:eF.IncrementalSnapshot,data:Object.assign({source:eB.Scroll},e)})),Q=e=>Y(ti({type:eF.IncrementalSnapshot,data:Object.assign({source:eB.CanvasMutation},e)})),Z=new tr({mutationCb:G,adoptedStyleSheetCb:e=>Y(ti({type:eF.IncrementalSnapshot,data:Object.assign({source:eB.AdoptedStyleSheet},e)}))}),ee="boolean"==typeof __RRWEB_EXCLUDE_IFRAME__&&__RRWEB_EXCLUDE_IFRAME__?new e4:new e7({mirror:ts,mutationCb:G,stylesheetManager:Z,recordCrossOriginIframes:O,wrappedEmit:Y});for(let e of P||[])e.getMirror&&e.getMirror({nodeMirror:ts,crossOriginIframeMirror:ee.crossOriginIframeMirror,crossOriginIframeStyleMirror:ee.crossOriginIframeStyleMirror});let et=new tn,er=(t={recordCanvas:T,blockClass:c,blockSelector:u,unblockSelector:d,sampling:R.canvas,dataURLOptions:C},z?z(Object.assign(Object.assign({},t),{mirror:ts,win:window,mutationCb:e=>{var t;return t=ti({type:eF.IncrementalSnapshot,data:Object.assign({source:eB.CanvasMutation},e)}),void(o&&o(t))}})):new tt),en="boolean"==typeof __RRWEB_EXCLUDE_SHADOW_DOM__&&__RRWEB_EXCLUDE_SHADOW_DOM__?new e9:new te({mutationCb:G,scrollCb:X,bypassOptions:{onMutation:j,blockClass:c,blockSelector:u,unblockSelector:d,maskAllText:f,maskTextClass:m,unmaskTextClass:y,maskTextSelector:g,unmaskTextSelector:v,inlineStylesheet:_,maskInputOptions:H,dataURLOptions:C,maskAttributeFn:k,maskTextFn:I,maskInputFn:E,recordCanvas:T,inlineImages:L,sampling:R,slimDOMOptions:q,iframeManager:ee,stylesheetManager:Z,canvasManager:er,keepIframeSrcFn:F,processedNodeManager:et},mirror:ts}),ei=(e=!1)=>{Y(ti({type:eF.Meta,data:{href:window.location.href,width:eR(),height:eM()}}),e),Z.reset(),en.init(),eJ.forEach(e=>e.lock());let t=function(e,t){let{mirror:r=new K,blockClass:n="rr-block",blockSelector:i=null,unblockSelector:s=null,maskAllText:o=!1,maskTextClass:a="rr-mask",unmaskTextClass:l=null,maskTextSelector:c=null,unmaskTextSelector:u=null,inlineStylesheet:d=!0,inlineImages:h=!1,recordCanvas:p=!1,maskAllInputs:f=!1,maskAttributeFn:m,maskTextFn:y,maskInputFn:g,slimDOM:v=!1,dataURLOptions:_,preserveWhiteSpace:S,onSerialize:b,onIframeLoad:w,iframeLoadTimeout:k,onStylesheetLoad:E,stylesheetLoadTimeout:I,keepIframeSrcFn:M=()=>!1}=t||{},R=!0===f?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0}:!1===f?{}:f,C=!0===v||"all"===v?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:"all"===v,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:!1===v?{}:v;return ev(e,{doc:e,mirror:r,blockClass:n,blockSelector:i,unblockSelector:s,maskAllText:o,maskTextClass:a,unmaskTextClass:l,maskTextSelector:c,unmaskTextSelector:u,skipChild:!1,inlineStylesheet:d,maskInputOptions:R,maskAttributeFn:m,maskTextFn:y,maskInputFn:g,slimDOMOptions:C,dataURLOptions:_,inlineImages:h,recordCanvas:p,preserveWhiteSpace:S,onSerialize:b,onIframeLoad:w,iframeLoadTimeout:k,onStylesheetLoad:E,stylesheetLoadTimeout:I,keepIframeSrcFn:M,newlyAddedElement:!1})}(document,{mirror:ts,blockClass:c,blockSelector:u,unblockSelector:d,maskAllText:f,maskTextClass:m,unmaskTextClass:y,maskTextSelector:g,unmaskTextSelector:v,inlineStylesheet:_,maskAllInputs:H,maskAttributeFn:k,maskInputFn:E,maskTextFn:I,slimDOM:q,dataURLOptions:C,recordCanvas:T,inlineImages:L,onSerialize:e=>{eO(e,ts)&&ee.addIframe(e),eD(e,ts)&&Z.trackLinkElement(e),eN(e)&&en.addShadowRoot(e.shadowRoot,document)},onIframeLoad:(e,t)=>{ee.attachIframe(e,t),en.observeAttachShadow(e)},onStylesheetLoad:(e,t)=>{Z.attachLinkElement(e,t)},keepIframeSrcFn:F});if(!t)return console.warn("Failed to snapshot the document");Y(ti({type:eF.FullSnapshot,data:{node:t,initialOffset:eI(window)}}
1)),eJ.forEach(e=>e.unlock()),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&Z.adoptStyleSheets(document.adoptedStyleSheets,ts.getId(document))};a=ei;try{let e=[],t=e=>{var t;return eV(e3)({onMutation:j,mutationCb:G,mousemoveCb:(e,t)=>Y(ti({type:eF.IncrementalSnapshot,data:{source:t,positions:e}})),mouseInteractionCb:e=>Y(ti({type:eF.IncrementalSnapshot,data:Object.assign({source:eB.MouseInteraction},e)})),scrollCb:X,viewportResizeCb:e=>Y(ti({type:eF.IncrementalSnapshot,data:Object.assign({source:eB.ViewportResize},e)})),inputCb:e=>Y(ti({type:eF.IncrementalSnapshot,data:Object.assign({source:eB.Input},e)})),mediaInteractionCb:e=>Y(ti({type:eF.IncrementalSnapshot,data:Object.assign({source:eB.MediaInteraction},e)})),styleSheetRuleCb:e=>Y(ti({type:eF.IncrementalSnapshot,data:Object.assign({source:eB.StyleSheetRule},e)})),styleDeclarationCb:e=>Y(ti({type:eF.IncrementalSnapshot,data:Object.assign({source:eB.StyleDeclaration},e)})),canvasMutationCb:Q,fontCb:e=>Y(ti({type:eF.IncrementalSnapshot,data:Object.assign({source:eB.Font},e)})),selectionCb:e=>{Y(ti({type:eF.IncrementalSnapshot,data:Object.assign({source:eB.Selection},e)}))},customElementCb:e=>{Y(ti({type:eF.IncrementalSnapshot,data:Object.assign({source:eB.CustomElement},e)}))},blockClass:c,ignoreClass:h,ignoreSelector:p,maskAllText:f,maskTextClass:m,unmaskTextClass:y,maskTextSelector:g,unmaskTextSelector:v,maskInputOptions:H,inlineStylesheet:_,sampling:R,recordCanvas:T,inlineImages:L,userTriggeredOnInput:N,collectFonts:A,doc:e,maskAttributeFn:k,maskInputFn:E,maskTextFn:I,keepIframeSrcFn:F,blockSelector:u,unblockSelector:d,slimDOMOptions:q,dataURLOptions:C,mirror:ts,iframeManager:ee,stylesheetManager:Z,shadowDomManager:en,processedNodeManager:et,canvasManager:er,ignoreCSSAttributes:B,plugins:(null===(t=null==P?void 0:P.filter(e=>e.observer))||void 0===t?void 0:t.map(e=>({observer:e.observer,options:e.options,callback:t=>Y(ti({type:eF.Plugin,data:{plugin:e.name,payload:t}}))})))||[]},{})};ee.addLoadListener(r=>{try{e.push(t(r.contentDocument))}catch(e){console.warn(e)}});let r=()=>{ei(),e.push(t(document))};return"interactive"===document.readyState||"complete"===document.readyState?r():(e.push(e_("DOMContentLoaded",()=>{Y(ti({type:eF.DomContentLoaded,data:{}})),"DOMContentLoaded"===D&&r()})),e.push(e_("load",()=>{Y(ti({type:eF.Load,data:{}})),"load"===D&&r()},window))),()=>{e.forEach(e=>e()),et.destroy(),a=void 0,s=void 0}}catch(e){console.warn(e)}}function ta(e){return e>9999999999?e:1e3*e}function tl(e){return e>9999999999?e/1e3:e}function tc(e,t){"sentry.transaction"!==t.category&&(["ui.click","ui.input"].includes(t.category)?e.triggerUserActivity():e.checkAndHandleExpiredSession(),e.addUpdate(()=>(e.throttledAddEvent({type:eF.Custom,timestamp:1e3*(t.timestamp||0),data:{tag:"breadcrumb",payload:(0,k.Fv)(t,10,1e3)}}),"console"===t.category)))}function tu(e){let t=e.closest("button,a");return t||e}function td(e){let t=th(e);return t&&t instanceof Element?tu(t):t}function th(e){return"object"==typeof e&&e&&"target"in e?e.target:e}to.mirror=ts,to.takeFullSnapshot=function(e){if(!a)throw Error("please take full snapshot after start recording");a(e)};class tp{constructor(e,t,r=tc){this._lastMutation=0,this._lastScroll=0,this._clicks=[],this._timeout=t.timeout/1e3,this._threshold=t.threshold/1e3,this._scollTimeout=t.scrollTimeout/1e3,this._replay=e,this._ignoreSelector=t.ignoreSelector,this._addBreadcrumbEvent=r}addListeners(){var e;let t=(e=()=>{this._lastMutation=tm()},l||(l=[],(0,E.hl)(B,"open",function(e){return function(...t){if(l)try{l.forEach(e=>e())}catch(e){}return e.apply(B,t)}})),l.push(e),()=>{let t=l?l.indexOf(e):-1;t>-1&&l.splice(t,1)});this._teardown=()=>{t(),this._clicks=[],this._lastMutation=0,this._lastScroll=0}}removeListeners(){this._teardown&&this._teardown(),this._checkClickTimeout&&clearTimeout(this._checkClickTimeout)}handleClick(e,t){var r;if(r=this._ignoreSelector,!tf.includes(t.tagName)||"INPUT"===t.tagName&&!["submit","button"].includes(t.getAttribute("type")||"")||"A"===t.tagName&&(t.hasAttribute("download")||t.hasAttribute("target")&&"_self"!==t.getAttribute("target"))||r&&t.matches(r)||!(e.data&&"number"==typeof e.data.nodeId&&e.timestamp))return;let n={timestamp:tl(e.timestamp),clickBreadcrumb:e,clickCount:0,node:t};this._clicks.some(e=>e.node===n.node&&1>
1Math.abs(e.timestamp-n.timestamp))||(this._clicks.push(n),1===this._clicks.length&&this._scheduleCheckClicks())}registerMutation(e=Date.now()){this._lastMutation=tl(e)}registerScroll(e=Date.now()){this._lastScroll=tl(e)}registerClick(e){let t=tu(e);this._handleMultiClick(t)}_handleMultiClick(e){this._getClicks(e).forEach(e=>{e.clickCount++})}_getClicks(e){return this._clicks.filter(t=>t.node===e)}_checkClicks(){let e=[],t=tm();for(let r of(this._clicks.forEach(r=>{!r.mutationAfter&&this._lastMutation&&(r.mutationAfter=r.timestamp<=this._lastMutation?this._lastMutation-r.timestamp:void 0),!r.scrollAfter&&this._lastScroll&&(r.scrollAfter=r.timestamp<=this._lastScroll?this._lastScroll-r.timestamp:void 0),r.timestamp+this._timeout<=t&&e.push(r)}),e)){let e=this._clicks.indexOf(r);e>-1&&(this._generateBreadcrumbs(r),this._clicks.splice(e,1))}this._clicks.length&&this._scheduleCheckClicks()}_generateBreadcrumbs(e){let t=this._replay,r=e.scrollAfter&&e.scrollAfter<=this._scollTimeout,n=e.mutationAfter&&e.mutationAfter<=this._threshold,{clickCount:i,clickBreadcrumb:s}=e;if(!r&&!n){let r=1e3*Math.min(e.mutationAfter||this._timeout,this._timeout),n=r<1e3*this._timeout?"mutation":"timeout",o={type:"default",message:s.message,timestamp:s.timestamp,category:"ui.slowClickDetected",data:{...s.data,url:B.location.href,route:t.getCurrentRoute(),timeAfterClickMs:r,endReason:n,clickCount:i||1}};this._addBreadcrumbEvent(t,o);return}if(i>1){let e={type:"default",message:s.message,timestamp:s.timestamp,category:"ui.multiClick",data:{...s.data,url:B.location.href,route:t.getCurrentRoute(),clickCount:i,metric:!0}};this._addBreadcrumbEvent(t,e)}}_scheduleCheckClicks(){this._checkClickTimeout&&clearTimeout(this._checkClickTimeout),this._checkClickTimeout=setTimeout(()=>this._checkClicks(),1e3)}}let tf=["A","BUTTON","INPUT"];function tm(){return Date.now()/1e3}function ty(e){return{timestamp:Date.now()/1e3,type:"default",...e}}(f=y||(y={}))[f.Document=0]="Document",f[f.DocumentType=1]="DocumentType",f[f.Element=2]="Element",f[f.Text=3]="Text",f[f.CDATA=4]="CDATA",f[f.Comment=5]="Comment";let tg=new Set(["id","class","aria-label","role","name","alt","title","data-test-id","data-testid","disabled","aria-disabled","data-sentry-component"]),tv=e=>t=>{if(!e.isEnabled())return;let r=function(e){let{target:t,message:r}=function(e){let t;let r="click"===e.name,n=null;try{n=r?td(e.event):th(e.event),t=(0,I.Rt)(n,{maxStringLength:200})||"<unknown>"}catch(e){t="<unknown>"}return{target:n,message:t}}(e);return ty({category:`ui.${e.name}`,...t_(t,r)})}(t);if(!r)return;let n="click"===t.name,i=n?t.event:void 0;n&&e.clickDetector&&i&&i.target&&!i.altKey&&!i.metaKey&&!i.ctrlKey&&!i.shiftKey&&function(e,t,r){e.handleClick(t,r)}(e.clickDetector,r,td(t.event)),tc(e,r)};function t_(e,t){let r=to.mirror.getId(e),n=r&&to.mirror.getNode(r),i=n&&to.mirror.getMeta(n),s=i&&i.type===y.Element?i:null;return{message:t,data:s?{nodeId:r,node:{id:r,tagName:s.tagName,textContent:Array.from(s.childNodes).map(e=>e.type===y.Text&&e.textContent).filter(Boolean).map(e=>e.trim()).join(""),attributes:function(e){let t={};for(let r in e)if(tg.has(r)){let n=r;("data-testid"===r||"data-test-id"===r)&&(n="testId"),t[n]=e[r]}return t}(s.attributes)}}:{}}}let tS={resource:function(e){let{entryType:t,initiatorType:r,name:n,responseEnd:i,startTime:s,decodedBodySize:o,encodedBodySize:a,responseStatus:l,transferSize:c}=e;return["fetch","xmlhttprequest"].includes(r)?null:{type:`${t}.${r}`,start:tw(s),end:tw(i),name:n,data:{size:c,statusCode:l,decodedBodySize:o,encodedBodySize:a}}},paint:function(e){let{duration:t,entryType:r,name:n,startTime:i}=e,s=tw(i);return{type:r,name:n,start:s,end:s+t,data:void 0}},navigation:function(e){let{entryType:t,name:r,decodedBodySize:n,duration:i,domComplete:s,encodedBodySize:o,domContentLoadedEventStart:a,domContentLoadedEventEnd:l,domInteractive:c,loadEventStart:u,loadEventEnd:d,redirectCount:h,startTime:p,transferSize:f,type:m}=e;return 0===i?null:{type:`${t}.${m}`,start:tw(p),end:tw(s),name:r,data:{size:f,decodedBodySize:n,encodedBodySize:o,duration:i,domInteractive:c,domContentLoadedEventStart:a,domContentLoadedEventEnd:l,loadEventStart:u,loadEventEnd:d,domComplete:s,redirectCount:h}}}};function tb(e){return tS[e.entryType]?tS[e.entryType](e):null}function tw(e){return((M.Z1||B.performance.timeOrigin)+e)/1e3}let tk="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;function tE(e,t){tk&&(R.kg.info(e),t&&tM(e))}function tI(e,t){tk&&(R.kg.info(e),t&&setTimeout(()=>{tM(e)},0))}function tM(e){(0,g.n_)({category:"console",data:{logger:"replay"},level:"info",message:e},{level:"info"})}
1class tR extends Error{constructor(){super("Event buffer exceeded maximum size of 20000000.")}}class tC{constructor(){this.events=[],this._totalSize=0,this.hasCheckout=!1}get hasEvents(){return this.events.length>0}get type(){return"sync"}destroy(){this.events=[]}async addEvent(e){let t=JSON.stringify(e).length;if(this._totalSize+=t,this._totalSize>2e7)throw new tR;this.events.push(e)}finish(){return new Promise(e=>{let t=this.events;this.clear(),e(JSON.stringify(t))})}clear(){this.events=[],this._totalSize=0,this.hasCheckout=!1}getEarliestTimestamp(){let e=this.events.map(e=>e.timestamp).sort()[0];return e?ta(e):null}}class tx{constructor(e){this._worker=e,this._id=0}ensureReady(){return this._ensureReadyPromise||(this._ensureReadyPromise=new Promise((e,t)=>{this._worker.addEventListener("message",({data:r})=>{r.success?e():t()},{once:!0}),this._worker.addEventListener("error",e=>{t(e)},{once:!0})})),this._ensureReadyPromise}destroy(){tE("[Replay] Destroying compression worker"),this._worker.terminate()}postMessage(e,t){let r=this._getAndIncrementId();return new Promise((n,i)=>{let s=({data:t})=>{if(t.method===e&&t.id===r){if(this._worker.removeEventListener("message",s),!t.success){tk&&R.kg.error("[Replay]",t.response),i(Error("Error in compression worker"));return}n(t.response)}};this._worker.addEventListener("message",s),this._worker.postMessage({id:r,method:e,arg:t})})}_getAndIncrementId(){return this._id++}}class tT{constructor(e){this._worker=new tx(e),this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1}get hasEvents(){return!!this._earliestTimestamp}get type(){return"worker"}ensureReady(){return this._worker.ensureReady()}destroy(){this._worker.destroy()}addEvent(e){let t=ta(e.timestamp);(!this._earliestTimestamp||t<this._earliestTimestamp)&&(this._earliestTimestamp=t);let r=JSON.stringify(e);return(this._totalSize+=r.length,this._totalSize>2e7)?Promise.reject(new tR):this._sendEventToWorker(r)}finish(){return this._finishRequest()}clear(){this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this._worker.postMessage("clear").then(null,e=>{tk&&R.kg.warn('[Replay] Sending "clear" message to worker failed',e)})}getEarliestTimestamp(){return this._earliestTimestamp}_sendEventToWorker(e){return this._worker.postMessage("addEvent",e)}async _finishRequest(){let e=await this._worker.postMessage("finish");return this._earliestTimestamp=null,this._totalSize=0,e}}class tO{constructor(e){this._fallback=new tC,this._compression=new tT(e),this._used=this._fallback,this._ensureWorkerIsLoadedPromise=this._ensureWorkerIsLoaded()}get type(){return this._used.type}get hasEvents(){return this._used.hasEvents}get hasCheckout(){return this._used.hasCheckout}set hasCheckout(e){this._used.hasCheckout=e}destroy(){this._fallback.destroy(),this._compression.destroy()}clear(){return this._used.clear()}getEarliestTimestamp(){return this._used.getEarliestTimestamp()}addEvent(e){return this._used.addEvent(e)}async finish(){return await this.ensureWorkerIsLoaded(),this._used.finish()}ensureWorkerIsLoaded(){return this._ensureWorkerIsLoadedPromise}async _ensureWorkerIsLoaded(){try{await this._compression.ensureReady()}catch(e){tE("[Replay] Failed to load the compression worker, falling back to simple buffer");return}await this._switchToCompressionWorker()}async _switchToCompressionWorker(){let{events:e,hasCheckout:t}=this._fallback,r=[];for(let t of e)r.push(this._compression.addEvent(t));this._compression.hasCheckout=t,this._used=this._compression;try{await Promise.all(r)}catch(e){tk&&R.kg.warn("[Replay] Failed to add events when switching buffers.",e)}}}function tD(){try{return"sessionStorage"in B&&!!B.sessionStorage}catch(e){return!1}}function tN(e){return void 0!==e&&Math.random()<e}function tA(e){let t=Date.now(),r=e.id||(0,C.DM)(),n=e.started||t,i=e.lastActivity||t,s=e.segmentId||0,o=e.sampled,a=e.previousSessionId;return{id:r,started:n,lastActivity:i,segmentId:s,sampled:o,previousSessionId:a}}function tL(e){if(tD())try{B.sessionStorage.setItem(U,JSON.stringify(e))}catch(e){}}function tP({sessionSampleRate:e,allowBuffering:t,stickySession:r=!1},{previousSessionId:n}={}){let i=tN(e)?"session":!!t&&"buffer",s=tA({sampled:i,previousSessionId:n});return r&&tL(s),s}function tF(e,t,r=+new Date){return null===e||void 0===t||t<0||0!==t&&e+t<=r}function tB(e,{maxReplayDuration:t,sessionIdleExpire:r,targetTime:n=Date.now()}){return tF(e.started,t,n)||tF(e.lastActivity,r,n)}function tU(e,{sessionIdleExpire:t,maxReplayDuration:r}){return!!tB(e,{sessionIdleExpire:t,maxReplayDuration:r})&&("buffer"!==e.sampled||0!==e.segmentId)}function tj({traceInternals:e,sessionIdleExpire:t,maxReplayDuration:r,previousSessionId:n},i){let s=i.stickySession&&function(e){if(!tD())return null;try{let t=B.sessionStorage.getItem(U);if(!t)return null;let r=JSON.parse(t);return tI("[Replay] Loading existing session",e),tA(r)}catch(e){return null}}(e);return s?tU(s,{sessionIdleExpire:t,maxReplayDuration:r})?(tI("[Replay] Session in sessionStorage is expired, creating new one..."),tP(i,{previousSessionId:s.id})):s:(tI("[Replay] Creating new session",e),tP(i,{previousSessionId:n}))}function tz(e,t,r){return!!t$(e,t)&&(tW(e,t,r),!0)}async function tW(e,t,r){if(!e.eventBuffer)return null;try{r&&"buffer"===e.recordingMode&&e.eventBuffer.clear(),r&&(e.eventBuffer.hasCheckout=!0);let n=e.getOptions(),i=function(e,t){try{if("function"==typeof t&&e.type===eF.Custom)return t(e)}catch(e){return tk&&R.kg.error("[Replay] An error occured in the `beforeAddRecordingEvent` callback, skipping the event...",e),null}return e}(t,n.beforeAddRecordingEvent);if(!i)return;return await e.eventBuffer.addEvent(i)}catch(n){let t=n&&n instanceof tR?"addEventSizeExceeded":"addEvent";tk&&R.kg.error(n),await e.stop({reason:t});let r=(0,g.s3)();r&&r.recordDroppedEvent("internal_sdk_error","replay")}}
1function t$(e,t){if(!e.eventBuffer||e.isPaused()||!e.isEnabled())return!1;let r=ta(t.timestamp);return!(r+e.timeouts.sessionIdlePause<Date.now())&&(!(r>e.getContext().initialTimestamp+e.getOptions().maxReplayDuration)||(tE(`[Replay] Skipping event with timestamp ${r} because it is after maxReplayDuration`,e.getOptions()._experiments.traceInternals),!1))}function tH(e){return"transaction"===e.type}function tq(e){return"feedback"===e.type}function tK(e){let t=function(){let e=(0,g.s3)();if(!e)return!1;let t=e.getTransport();return!!t&&(t.send.__sentry__baseTransport__||!1)}();return(r,n)=>{if(!e.isEnabled()||r.type&&!tH(r))return;let i=n&&n.statusCode;if(!t||i&&!(i<200)&&!(i>=300)){if(tH(r)){!function(e,t){let r=e.getContext();t.contexts&&t.contexts.trace&&t.contexts.trace.trace_id&&r.traceIds.size<100&&r.traceIds.add(t.contexts.trace.trace_id)}(e,r);return}!function(e,t){let r=e.getContext();if(t.event_id&&r.errorIds.size<100&&r.errorIds.add(t.event_id),"buffer"!==e.recordingMode||!t.tags||!t.tags.replayId)return;let{beforeErrorSampling:n}=e.getOptions();("function"!=typeof n||n(t))&&setTimeout(()=>{e.sendBufferedReplayOrFlush()})}(e,r)}}}function tV(e,t){return t.map(({type:t,start:r,end:n,name:i,data:s})=>{let o=e.throttledAddEvent({type:eF.Custom,timestamp:r,data:{tag:"performanceSpan",payload:{op:t,description:i,startTimestamp:r,endTimestamp:n,data:s}}});return"string"==typeof o?Promise.resolve(null):o})}function tJ(e,t){var r;e.isEnabled()&&null!==t&&(r=t.name,(!tk||!e.getOptions()._experiments.traceInternals)&&(0,v.W)(r,(0,g.s3)())||e.addUpdate(()=>(tV(e,[t]),!0)))}function tY(e,t){if(e)try{if("string"==typeof e)return t.encode(e).length;if(e instanceof URLSearchParams)return t.encode(e.toString()).length;if(e instanceof FormData){let r=t3(e);return t.encode(r).length}if(e instanceof Blob)return e.size;if(e instanceof ArrayBuffer)return e.byteLength}catch(e){}}function tG(e){if(!e)return;let t=parseInt(e,10);return isNaN(t)?void 0:t}function tX(e){try{if("string"==typeof e)return[e];if(e instanceof URLSearchParams)return[e.toString()];if(e instanceof FormData)return[t3(e)];if(!e)return[void 0]}catch(t){return tk&&R.kg.warn("[Replay] Failed to serialize body",e),[void 0,"BODY_PARSE_ERROR"]}return tk&&R.kg.info("[Replay] Skipping network body because of body type",e),[void 0,"UNPARSEABLE_BODY_TYPE"]}function tQ(e,t){if(!e)return{headers:{},size:void 0,_meta:{warnings:[t]}};let r={...e._meta},n=r.warnings||[];return r.warnings=[...n,t],e._meta=r,e}function tZ(e,t){if(!t)return null;let{startTimestamp:r,endTimestamp:n,url:i,method:s,statusCode:o,request:a,response:l}=t,c={type:e,start:r/1e3,end:n/1e3,name:i,data:(0,E.Jr)({method:s,statusCode:o,request:a,response:l})};return c}function t0(e){return{headers:{},size:e,_meta:{warnings:["URL_SKIPPED"]}}}function t1(e,t,r){if(!t&&0===Object.keys(e).length)return;if(!t)return{headers:e};if(!r)return{headers:e,size:t};let n={headers:e,size:t},{body:i,warnings:s}=function(e){if(!e||"string"!=typeof e)return{body:e};let t=e.length>15e4,r=function(e){let t=e[0],r=e[e.length-1];return"["===t&&"]"===r||"{"===t&&"}"===r}(e);if(t){let t=e.slice(0,15e4);return r?{body:t,warnings:["MAYBE_JSON_TRUNCATED"]}:{body:`${t}â¦`,warnings:["TEXT_TRUNCATED"]}}if(r)try{let t=JSON.parse(e);return{body:t}}catch(e){}return{body:e}}(r);return n.body=i,s&&s.length>0&&(n._meta={warnings:s}),n}function t2(e,t){return Object.keys(e).reduce((r,n)=>{let i=n.toLowerCase();return t.includes(i)&&e[n]&&(r[i]=e[n]),r},{})}function t3(e){return new URLSearchParams(e).toString()}function t5(e,t){let r=function(e,t=B.document.baseURI){if(e.startsWith("http://")||e.startsWith("https://")||e.startsWith(B.location.origin))return e;let r=new URL(e,t);if(r.origin!==new URL(t).origin)return e;let n=r.href;return!e.endsWith("/")&&n.endsWith("/")?n.slice(0,-1):n}(e);return(0,T.U0)(r,t)}async function t8(e,t,r){try{let n=await t6(e,t,r),i=tZ("resource.fetch",n);tJ(r.replay,i)}catch(e){tk&&R.kg.error("[Replay] Failed to capture fetch breadcrumb",e)}}async function t6(e,t,r){let n=Date.now(),{startTimestamp:i=n,endTimestamp:s=n}=t,{url:o,method:a,status_code:l=0,request_body_size:c,response_body_size:u}=e.data,d=t5(o,r.networkDetailAllowUrls)&&!t5(o,r.networkDetailDenyUrls),h=d?function({networkCaptureBodies:e,networkRequestHeaders:t},r,n){let i=r?1===r.length&&"string"!=typeof r[0]?rt(r[0],t):2===r.length?rt(r[1],t):{}:{};if(!e)return t1(i,n,void 0);let s=t9(r),[o,a]=tX(s),l=t1(i,n,o);return a?tQ(l,a):l}(r,t.input,c):t0(c),p=await t4(d,r,t.response,u);return{startTimestamp:i,endTimestamp:s,url:o,method:a,statusCode:l,request:h,response:p}}async function t4(e,{networkCaptureBodies:t,textEncoder:r,networkResponseHeaders:n},i,s){if(!e&&void 0!==s)return t0(s);let o=i?re(i.headers,n):{};if(!i||!t&&void 0!==s)return t1(o,s,void 0);let[a,l]=await t7(i),c=function(e,{networkCaptureBodies:t,textEncoder:r,responseBodySize:n,captureDetails:i,headers:s}){try{let o=e&&e.length&&void 0===n?tY(e,r):n;if(!i)return t0(o);if(t)return t1(s,o,e);return t1(s,o,void 0)}catch(e){return tk&&R.kg.warn("[Replay] Failed to serialize response body",e),t1(s,n,void 0)}}(a,{networkCaptureBodies:t,textEncoder:r,responseBodySize:s,captureDetails:e,headers:o});return l?tQ(c,l):c}async function t7(e){let t=function(e){try{return e.clone()}catch(e){tk&&R.kg.warn("[Replay] Failed to clone response body",e)}}(e);if(!t)return[void 0,"BODY_PARSE_ERROR"];try{let e=await new Promise((e,r)=>{let n=setTimeout(()=>r(Error("Timeout while trying to read response body")),500);rr(t).then(t=>e(t),e=>r(e)).finally(()=>clearTimeout(n))});return[e]}catch(e){return tk&&R.kg.warn("[Replay] Failed to get text body from response",e),[void 0,"BODY_PARSE_ERROR"]}}function t9(e=[]){if(2===e.length&&"object"==typeof e[1])return e[1].body}function re(e,t){let r={};return t.forEach(t=>{e.get(t)&&(r[t]=e.get(t))}),r}function rt(e,t){if(!e)return{};let r=e.headers;return r?r instanceof Headers?re(r,t):Array.isArray(r)?{}:t2(r,t):{}}async function rr(e){return await e.text()}async function rn(e,t,r){try{let n=function(e,t,r){let n=Date.now(),{startTimestamp:i=n,endTimestamp:s=n,input:o,xhr:a}=t,{url:l,method:c,status_code:u=0,request_body_size:d,response_body_size:h}=e.data;if(!l)return null;if(!a||!t5(l,r.networkDetailAllowUrls)||t5(l,r.networkDetailDenyUrls)){let e=t0(d),t=t0(h);return{startTimestamp:i,endTimestamp:s,url:l,method:c,statusCode:u,request:e,response:t}}let p=a[x.xU],f=p?t2(p.request_headers,r.networkRequestHeaders):{},m=t2(function(e){let t=e.getAllResponseHeaders();return t?t.split("\r\n").reduce((e,t)=>
1{let[r,n]=t.split(": ");return e[r.toLowerCase()]=n,e},{}):{}}(a),r.networkResponseHeaders),[y,g]=r.networkCaptureBodies?tX(o):[void 0],[v,_]=r.networkCaptureBodies?function(e){let t=[];try{return[e.responseText]}catch(e){t.push(e)}try{return function(e,t){try{if("string"==typeof e)return[e];if(e instanceof Document)return[e.body.outerHTML];if("json"===t&&e&&"object"==typeof e)return[JSON.stringify(e)];if(!e)return[void 0]}catch(t){return tk&&R.kg.warn("[Replay] Failed to serialize body",e),[void 0,"BODY_PARSE_ERROR"]}return tk&&R.kg.info("[Replay] Skipping network body because of body type",e),[void 0,"UNPARSEABLE_BODY_TYPE"]}(e.response,e.responseType)}catch(e){t.push(e)}return tk&&R.kg.warn("[Replay] Failed to get xhr response body",...t),[void 0]}(a):[void 0],S=t1(f,d,y),b=t1(m,h,v);return{startTimestamp:i,endTimestamp:s,url:l,method:c,statusCode:u,request:g?tQ(S,g):S,response:_?tQ(b,_):b}}(e,t,r),i=tZ("resource.xhr",n);tJ(r.replay,i)}catch(e){tk&&R.kg.error("[Replay] Failed to capture xhr breadcrumb",e)}}let ri=null,rs=e=>t=>{if(!e.isEnabled())return;let r=function(e){let t=e.getLastBreadcrumb&&e.getLastBreadcrumb();return ri!==t&&t?(ri=t,!t.category||["fetch","xhr","sentry.event","sentry.transaction"].includes(t.category)||t.category.startsWith("ui."))?null:"console"===t.category?function(e){let t=e.data&&e.data.arguments;if(!Array.isArray(t)||0===t.length)return ty(e);let r=!1,n=t.map(e=>{if(!e)return e;if("string"==typeof e)return e.length>5e3?(r=!0,`${e.slice(0,5e3)}â¦`):e;if("object"==typeof e)try{let t=(0,k.Fv)(e,7),n=JSON.stringify(t);if(n.length>5e3)return r=!0,`${JSON.stringify(t,null,2).slice(0,5e3)}â¦`;return t}catch(e){}return e});return ty({...e,data:{...e.data,arguments:n,...r?{_meta:{warnings:["CONSOLE_ARG_TRUNCATED"]}}:{}}})}(t):ty(t):null}(t);r&&tc(e,r)};async function ro(e){try{return Promise.all(tV(e,[function(e){let{jsHeapSizeLimit:t,totalJSHeapSize:r,usedJSHeapSize:n}=e,i=Date.now()/1e3;return{type:"memory",name:"memory",start:i,end:i,data:{memory:{jsHeapSizeLimit:t,totalJSHeapSize:r,usedJSHeapSize:n}}}}(B.performance.memory)]))}catch(e){return[]}}async function ra({client:e,scope:t,replayId:r,event:n}){let i="object"!=typeof e._integrations||null===e._integrations||Array.isArray(e._integrations)?void 0:Object.keys(e._integrations),s={event_id:r,integrations:i};e.emit&&e.emit("preprocessEvent",n,s);let o=await (0,S.R)(e.getOptions(),n,s,t,e,(0,b.aF)());if(!o)return null;o.platform=o.platform||"javascript";let a=e.getSdkMetadata&&e.getSdkMetadata(),{name:l,version:c}=a&&a.sdk||{};return o.sdk={...o.sdk,name:l||"sentry.javascript.unknown",version:c||"0.0.0"},o}async function rl({recordingData:e,replayId:t,segmentId:r,eventContext:n,timestamp:i,session:s}){var o;let a;let l=function({recordingData:e,headers:t}){let r;let n=`${JSON.stringify(t)} 2`;if("string"==typeof e)r=`${n}${e}`;else{let t=new TextEncoder,i=t.encode(n);(r=new Uint8Array(i.length+e.length)).set(i),r.set(e,i.length)}return r}({recordingData:e,headers:{segment_id:r}}),{urls:c,errorIds:u,traceIds:d,initialTimestamp:h}=n,p=(0,g.s3)(),f=(0,g.nZ)(),m=p&&p.getTransport(),y=p&&p.getDsn();if(!p||!m||!y||!s.sampled)return;let v={type:"replay_event",replay_start_timestamp:h/1e3,timestamp:i/1e3,error_ids:u,trace_ids:d,urls:c,replay_id:t,segment_id:r,replay_type:s.sampled},_=await ra({scope:f,client:p,replayId:t,event:v});if(!_){p.recordDroppedEvent("event_processor","replay",v),tE("An event processor returned `null`, will not send event.");return}delete _.sdkProcessingMetadata;let S=(o=p.getOptions().tunnel,(0,A.Jd)((0,A.Cd)(_,(0,A.HY)(_),o,y),[[{type:"replay_event"},_],[{type:"replay_recording",length:"string"==typeof l?new TextEncoder().encode(l).length:l.length},l]]));try{a=await m.send(S)}catch(t){let e=Error(j);try{e.cause=t}catch(e){}throw e}if(!a)return a;if("number"==typeof a.statusCode&&(a.statusCode<200||a.statusCode>=300))throw new rc(a.statusCode);let b=(0,L.WG)({},a);if((0,L.Q)(b,"replay"))throw new ru(b);return a}class rc extends Error{constructor(e){super(`Transport returned status code ${e}`)}}class ru extends Error{constructor(e){super("Rate limit hit"),this.rateLimits=e}}async function rd(e,t={count:0,interval:5e3}){let{recordingData:r,options:n}=e;if(r.length)try{return await rl(e),!0}catch(r){if(r instanceof rc||r instanceof ru)throw r;if((0,g.v)("Replays",{_retryCount:t.count}),tk&&n._experiments&&n._experiments.captureExceptions&&(0,g.Tb)(r),t.count>=3){let e=Error(`${j} - max retries exceeded`);try{e.cause=r}catch(e){}throw e}return t.interval*=++t.count,new Promise((r,n)=>{setTimeout(async()=>{try{await rd(e,t),r(!0)}catch(e){n(e)}},t.interval)})}}let rh="__THROTTLED";class rp{constructor({options:e,recordingOptions:t}){rp.prototype.__init.call(this),rp.prototype.__init2.call(this),rp.prototype.__init3.call(this),rp.prototype.__init4.call(this),rp.prototype.__init5.call(this),rp.prototype.__init6.call(this),this.eventBuffer=null,this.performanceEntries=[],this.replayPerformanceEntries=[],this.recordingMode="session",this.timeouts={sessionIdlePause:3e5,sessionIdleExpire:9e5},this._lastActivity=Date.now(),this._isEnabled=!1,this._isPaused=!1,this._hasInitializedCoreListeners=!1,this._context={errorIds:new Set,traceIds:new Set,urls:[],initialTimestamp:Date.now(),initialUrl:""},this._recordingOptions=t,this._options=e,this._debouncedFlush=function(e,t,r){let n,i,s;let o=r&&r.maxWait?Math.max(r.maxWait,t):0;function a(){return l(),n=e()}function l(){void 0!==i&&clearTimeout(i),void 0!==s&&clearTimeout(s),i=s=void 0}function c(){return i&&clearTimeout(i),i=setTimeout(a,t),o&&void 0===s&&(s=setTimeout(a,o)),n}return c.cancel=l,c.flush=function(){return void 0!==i||void 0!==s?a():n},c}(()=>this._flush(),this._options.flushMinDelay,{maxWait:this._options.flushMaxDelay}),this._throttledAddEvent=function(e,t,r){let n=new Map,i=e=>{let t=e-5;
2n.forEach((e,r)=>{r<t&&n.delete(r)})},s=()=>[...n.values()].reduce((e,t)=>e+t,0),o=!1;return(...t)=>{let r=Math.floor(Date.now()/1e3);if(i(r),s()>=300){let e=o;return o=!0,e?"__SKIPPED":rh}o=!1;let a=n.get(r)||0;return n.set(r,a+1),e(...t)}}((e,t)=>t$(this,e)?tW(this,e,t):Promise.resolve(null),0,0);let{slowClickTimeout:r,slowClickIgnoreSelectors:n}=this.getOptions(),i=r?{threshold:Math.min(3e3,r),timeout:r,scrollTimeout:300,ignoreSelector:n?n.join(","):""}:void 0;i&&(this.clickDetector=new tp(this,i))}getContext(){return this._context}isEnabled(){return this._isEnabled}isPaused(){return this._isPaused}getOptions(){return this._options}initializeSampling(e){let{errorSampleRate:t,sessionSampleRate:r}=this._options;if(!(t<=0)||!(r<=0)){if(this._initializeSessionForSampling(e),!this.session){this._handleException(Error("Unable to initialize and create session"));return}!1!==this.session.sampled&&(this.recordingMode="buffer"===this.session.sampled&&0===this.session.segmentId?"buffer":"session",tI(`[Replay] Starting replay in ${this.recordingMode} mode`,this._options._experiments.traceInternals),this._initializeRecording())}}start(){if(this._isEnabled&&"session"===this.recordingMode)throw Error("Replay recording is already in progress");if(this._isEnabled&&"buffer"===this.recordingMode)throw Error("Replay buffering is in progress, call `flush()` to save the replay");tI("[Replay] Starting replay in session mode",this._options._experiments.traceInternals);let e=tj({maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire,traceInternals:this._options._experiments.traceInternals},{stickySession:this._options.stickySession,sessionSampleRate:1,allowBuffering:!1});this.session=e,this._initializeRecording()}startBuffering(){if(this._isEnabled)throw Error("Replay recording is already in progress");tI("[Replay] Starting replay in buffer mode",this._options._experiments.traceInternals);let e=tj({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration,traceInternals:this._options._experiments.traceInternals},{stickySession:this._options.stickySession,sessionSampleRate:0,allowBuffering:!0});this.session=e,this.recordingMode="buffer",this._initializeRecording()}startRecording(){try{var e;let t;let r=this._options._experiments.canvas;this._stopRecording=to({...this._recordingOptions,..."buffer"===this.recordingMode&&{checkoutEveryNms:6e4},emit:(e=this,t=!1,(r,n)=>{if(!e.checkAndHandleExpiredSession()){tk&&R.kg.warn("[Replay] Received replay event after session expired.");return}let i=n||!t;t=!0,e.clickDetector&&function(e,t){try{if(3!==t.type)return;let{source:r}=t.data;if(r===eB.Mutation&&e.registerMutation(t.timestamp),r===eB.Scroll&&e.registerScroll(t.timestamp),t.data.source===eB.MouseInteraction){let{type:r,id:n}=t.data,i=to.mirror.getNode(n);i instanceof HTMLElement&&r===eU.Click&&e.registerClick(i)}}catch(e){}}(e.clickDetector,r),e.addUpdate(()=>{if("buffer"===e.recordingMode&&i&&e.setInitialState(),!tz(e,r,i))return!0;if(!i)return!1;if(i&&e.session&&0===e.session.segmentId&&tz(e,function(e){let t=e.getOptions();return{type:eF.Custom,timestamp:Date.now(),data:{tag:"options",payload:{sessionSampleRate:t.sessionSampleRate,errorSampleRate:t.errorSampleRate,useCompressionOption:t.useCompression,blockAllMedia:t.blockAllMedia,maskAllText:t.maskAllText,maskAllInputs:t.maskAllInputs,useCompression:!!e.eventBuffer&&"worker"===e.eventBuffer.type,networkDetailHasUrls:t.networkDetailAllowUrls.length>0,networkCaptureBodies:t.networkCaptureBodies,networkRequestHasHeaders:t.networkRequestHeaders.length>0,networkResponseHasHeaders:t.networkResponseHeaders.length>0}}}}(e),!1),e.session&&e.session.previousSessionId)return!0;if("buffer"===e.recordingMode&&e.session&&e.eventBuffer){let t=e.eventBuffer.getEarliestTimestamp();t&&(tE(`[Replay] Updating session start time to earliest event in buffer to ${new Date(t)}`,e.getOptions()._experiments.traceInternals),e.session.started=t,e.getOptions().stickySession&&tL(e.session))}return"session"===e.recordingMode&&e.flush(),!0})}),onMutation:this._onMutationHandler,...r&&r.manager&&{recordCanvas:!0,getCanvasManager:r.manager,...z[r.quality||"medium"]||z.medium}})}catch(e){this._handleException(e)}}stopRecording(){try{return this._stopRecording&&(this._stopRecording(),this._stopRecording=void 0),!0}catch(e){return this._handleException(e),!1}}async stop({forceFlush:e=!1,reason:t}={}){if(this._isEnabled){this._isEnabled=!1;
2try{tE(`[Replay] Stopping Replay${t?` triggered by ${t}`:""}`,this._options._experiments.traceInternals),this._removeListeners(),this.stopRecording(),this._debouncedFlush.cancel(),e&&await this._flush({force:!0}),this.eventBuffer&&this.eventBuffer.destroy(),this.eventBuffer=null,function(){if(tD())try{B.sessionStorage.removeItem(U)}catch(e){}}(),this.session=void 0}catch(e){this._handleException(e)}}}pause(){this._isPaused||(this._isPaused=!0,this.stopRecording(),tE("[Replay] Pausing replay",this._options._experiments.traceInternals))}resume(){this._isPaused&&this._checkSession()&&(this._isPaused=!1,this.startRecording(),tE("[Replay] Resuming replay",this._options._experiments.traceInternals))}async sendBufferedReplayOrFlush({continueRecording:e=!0}={}){if("session"===this.recordingMode)return this.flushImmediate();let t=Date.now();tE("[Replay] Converting buffer to session",this._options._experiments.traceInternals),await this.flushImmediate();let r=this.stopRecording();e&&r&&"session"!==this.recordingMode&&(this.recordingMode="session",this.session&&(this._updateUserActivity(t),this._updateSessionActivity(t),this._maybeSaveSession()),this.startRecording())}addUpdate(e){let t=e();"buffer"!==this.recordingMode&&!0!==t&&this._debouncedFlush()}triggerUserActivity(){if(this._updateUserActivity(),!this._stopRecording){if(!this._checkSession())return;this.resume();return}this.checkAndHandleExpiredSession(),this._updateSessionActivity()}updateUserActivity(){this._updateUserActivity(),this._updateSessionActivity()}conditionalFlush(){return"buffer"===this.recordingMode?Promise.resolve():this.flushImmediate()}flush(){return this._debouncedFlush()}flushImmediate(){return this._debouncedFlush(),this._debouncedFlush.flush()}cancelFlush(){this._debouncedFlush.cancel()}getSessionId(){return this.session&&this.session.id}checkAndHandleExpiredSession(){if(this._lastActivity&&tF(this._lastActivity,this.timeouts.sessionIdlePause)&&this.session&&"session"===this.session.sampled){this.pause();return}return!!this._checkSession()}setInitialState(){let e=`${B.location.pathname}${B.location.hash}${B.location.search}`,t=`${B.location.origin}${e}`;this.performanceEntries=[],this.replayPerformanceEntries=[],this._clearContext(),this._context.initialUrl=t,this._context.initialTimestamp=Date.now(),this._context.urls.push(t)}throttledAddEvent(e,t){let r=this._throttledAddEvent(e,t);if(r===rh){let e=ty({category:"replay.throttled"});this.addUpdate(()=>!tz(this,{type:5,timestamp:e.timestamp||0,data:{tag:"breadcrumb",payload:e,metric:!0}}))}return r}getCurrentRoute(){let e=this.lastTransaction||(0,g.nZ)().getTransaction();if(e&&["route","custom"].includes(e.metadata.source))return e.name}_initializeRecording(){this.setInitialState(),this._updateSessionActivity(),this.eventBuffer=function({useCompression:e,workerUrl:t}){if(e&&window.Worker){let e=function(e){try{let t=e||("undefined"!=typeof __SENTRY_EXCLUDE_REPLAY_WORKER__&&__SENTRY_EXCLUDE_REPLAY_WORKER__?"":function(){let e=new Blob(['var t=Uint8Array,n=Uint16Array,r=Int32Array,e=new t([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]),i=new t([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]),a=new t([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),s=function(t,e){for(var i=new n(31),a=0;a<31;++a)i[a]=e+=1<<t[a-1];var s=new r(i[30]);for(a=1;a<30;++a)for(var o=i[a];o<i[a+1];++o)s[o]=o-i[a]<<5|a;return{b:i,r:s}},o=s(e,2),f=o.b,h=o.r;f[28]=258,h[258]=28;for(var l=s(i,0).r,u=new n(32768),c=0;c<32768;++c){var v=(43690&c)>>1|(21845&c)<<1;v=(61680&(v=(52428&v)>>2|(13107&v)<<2))>>4|(3855&v)<<4,u[c]=((65280&v)>>8|(255&v)<<8)>>1}var d=function(t,r,e){for(var i=t.length,a=0,s=new n(r);a<i;++a)t[a]&&++s[t[a]-1];var o,f=new n(r);for(a=1;a<r;++a)f[a]=f[a-1]+s[a-1]<<1;if(e){o=new n(1<<r);var h=15-r;for(a=0;a<i;++a)if(t[a])for(var l=a<<4|t[a],c=r-t[a],v=f[t[a]-1]++<<c,d=v|(1<<c)-1;v<=d;++v)o[u[v]>>h]=l}else for(o=new n(i),a=0;a<i;++a)t[a]&&(o[a]=u[f[t[a]-1]++]>>15-t[a]);return o},g=new t(288);for(c=0;c<144;++c)g[c]=8;for(c=144;c<256;++c)g[c]=9;for(c=256;c<280;++c)g[c]=7;for(c=280;c<288;++c)g[c]=8;var w=new t(32);for(c=0;c<32;++c)w[c]=5;var p=d(g,9,0),y=d(w,5,0),m=function(t){return(t+7)/8|0},b=function(n,r,e){return(null==r||r<0)&&(r=0),(null==e||e>n.length)&&(e=n.length),new t(n.subarray(r,e))}
vendor: 4,465 bytes, line 2
2,M=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],E=function(t,n,r){var e=new Error(n||M[t]);if(e.code=t,Error.captureStackTrace&&Error.captureStackTrace(e,E),!r)throw e;return e},z=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8},A=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8,t[e+2]|=r>>16},_=function(r,e){for(var i=[],a=0;a<r.length;++a)r[a]&&i.push({s:a,f:r[a]});var s=i.length,o=i.slice();if(!s)return{t:F,l:0};if(1==s){var f=new t(i[0].s+1);return f[i[0].s]=1,{t:f,l:1}}i.sort((function(t,n){return t.f-n.f})),i.push({s:-1,f:25001});var h=i[0],l=i[1],u=0,c=1,v=2;for(i[0]={s:-1,f:h.f+l.f,l:h,r:l};c!=s-1;)h=i[i[u].f<i[v].f?u++:v++],l=i[u!=c&&i[u].f<i[v].f?u++:v++],i[c++]={s:-1,f:h.f+l.f,l:h,r:l};var d=o[0].s;for(a=1;a<s;++a)o[a].s>d&&(d=o[a].s);var g=new n(d+1),w=x(i[c-1],g,0);if(w>e){a=0;var p=0,y=w-e,m=1<<y;for(o.sort((function(t,n){return g[n.s]-g[t.s]||t.f-n.f}));a<s;++a){var b=o[a].s;if(!(g[b]>e))break;p+=m-(1<<w-g[b]),g[b]=e}for(p>>=y;p>0;){var M=o[a].s;g[M]<e?p-=1<<e-g[M]++-1:++a}for(;a>=0&&p;--a){var E=o[a].s;g[E]==e&&(--g[E],++p)}w=e}return{t:new t(g),l:w}},x=function(t,n,r){return-1==t.s?Math.max(x(t.l,n,r+1),x(t.r,n,r+1)):n[t.s]=r},D=function(t){for(var r=t.length;r&&!t[--r];);for(var e=new n(++r),i=0,a=t[0],s=1,o=function(t){e[i++]=t},f=1;f<=r;++f)if(t[f]==a&&f!=r)++s;else{if(!a&&s>2){for(;s>138;s-=138)o(32754);s>2&&(o(s>10?s-11<<5|28690:s-3<<5|12305),s=0)}else if(s>3){for(o(a),--s;s>6;s-=6)o(8304);s>2&&(o(s-3<<5|8208),s=0)}for(;s--;)o(a);s=1,a=t[f]}return{c:e.subarray(0,i),n:r}},T=function(t,n){for(var r=0,e=0;e<n.length;++e)r+=t[e]*n[e];return r},k=function(t,n,r){var e=r.length,i=m(n+2);t[i]=255&e,t[i+1]=e>>8,t[i+2]=255^t[i],t[i+3]=255^t[i+1];for(var a=0;a<e;++a)t[i+a+4]=r[a];return 8*(i+4+e)},C=function(t,r,s,o,f,h,l,u,c,v,m){z(r,m++,s),++f[256];for(var b=_(f,15),M=b.t,E=b.l,x=_(h,15),C=x.t,U=x.l,F=D(M),I=F.c,S=F.n,L=D(C),O=L.c,j=L.n,q=new n(19),B=0;B<I.length;++B)++q[31&I[B]];for(B=0;B<O.length;++B)++q[31&O[B]];for(var G=_(q,7),H=G.t,J=G.l,K=19;K>4&&!H[a[K-1]];--K);var N,P,Q,R,V=v+5<<3,W=T(f,g)+T(h,w)+l,X=T(f,M)+T(h,C)+l+14+3*K+T(q,H)+2*q[16]+3*q[17]+7*q[18];if(c>=0&&V<=W&&V<=X)return k(r,m,t.subarray(c,c+v));if(z(r,m,1+(X<W)),m+=2,X<W){N=d(M,E,0),P=M,Q=d(C,U,0),R=C;var Y=d(H,J,0);z(r,m,S-257),z(r,m+5,j-1),z(r,m+10,K-4),m+=14;for(B=0;B<K;++B)z(r,m+3*B,H[a[B]]);m+=3*K;for(var Z=[I,O],$=0;$<2;++$){var tt=Z[$];for(B=0;B<tt.length;++B){var nt=31&tt[B];z(r,m,Y[nt]),m+=H[nt],nt>15&&(z(r,m,tt[B]>>5&127),m+=tt[B]>>12)}}}else N=p,P=g,Q=y,R=w;for(B=0;B<u;++B){var rt=o[B];if(rt>255){A(r,m,N[(nt=rt>>18&31)+257]),m+=P[nt+257],nt>7&&(z(r,m,rt>>23&31),m+=e[nt]);var et=31&rt;A(r,m,Q[et]),m+=R[et],et>3&&(A(r,m,rt>>5&8191),m+=i[et])}else A(r,m,N[rt]),m+=P[rt]}return A(r,m,N[256]),m+P[256]},U=new r([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),F=new t(0),I=function(){for(var t=new Int32Array(256),n=0;n<256;++n){for(var r=n,e=9;--e;)r=(1&r&&-306674912)^r>>>1;t[n]=r}return t}(),S=function(){var t=1,n=0;return{p:function(r){for(var e=t,i=n,a=0|r.length,s=0;s!=a;){for(var o=Math.min(s+2655,a);s<o;++s)i+=e+=r[s];e=(65535&e)+15*(e>>16),i=(65535&i)+15*(i>>16)}t=e,n=i},d:function(){return(255&(t%=65521))<<24|(65280&t)<<8|(255&(n%=65521))<<8|n>>8}}},L=function(a,s,o,f,u){if(!u&&(u={l:1},s.dictionary)){var c=s.dictionary.subarray(-32768),v=new t(c.length+a.length);v.set(c),v.set(a,c.length),a=v,u.w=c.length}return function(a,s,o,f,u,c){var v=c.z||a.length,d=new t(f+v+5*(1+Math.ceil(v/7e3))+u),g=d.subarray(f,d.length-u),w=c.l,p=7&(c.r||0);if(s){p&&(g[0]=c.r>>3);for(var y=U[s-1],M=y>>13,E=8191&y,z=(1<<o)-1,A=c.p||new n(32768),_=c.h||new n(z+1),x=Math.ceil(o/3),D=2*x,T=function(t){return(a[t]^a[t+1]<<x^a[t+2]<<D)&z},F=new r(25e3),I=new n(288),S=new n(32),L=0,O=0,j=c.i||0,q=0,B=c.w||0,G=0;j+2<v;++j){var H=T(j),J=32767&j,K=_[H];if(A[J]=K,_[H]=J,B<=j){var N=v-j;if((L>7e3||q>24576)&&(N>423||!w)){p=C(a,g,0,F,I,S,O,q,G,j-G,p),q=L=O=0,G=j;for(var P=0;P<286;++P)I[P]=0;for(P=0;P<30;++P)S[P]=0}var Q=2,R=0,V=E,W=J-K&32767;if(N>2&&H==T(j-W))for(var X=Math.min(M,N)-1,Y=Math.min(32767,j),Z=Math.min(258,N);W<=Y&&--V&&J!=K;){if(a[j+Q]==a[j+Q-W]){for(var $=0;$<Z&&a[j+$]==a[j+$-W];++$);if($>Q){if(Q=$,R=W,$>X)break;var tt=Math.min(W,$-2),nt=0;for(P=0;P<tt;
2++P){var rt=j-W+P&32767,et=rt-A[rt]&32767;et>nt&&(nt=et,K=rt)}}}W+=(J=K)-(K=A[J])&32767}if(R){F[q++]=268435456|h[Q]<<18|l[R];var it=31&h[Q],at=31&l[R];O+=e[it]+i[at],++I[257+it],++S[at],B=j+Q,++L}else F[q++]=a[j],++I[a[j]]}}for(j=Math.max(j,B);j<v;++j)F[q++]=a[j],++I[a[j]];p=C(a,g,w,F,I,S,O,q,G,j-G,p),w||(c.r=7&p|g[p/8|0]<<3,p-=7,c.h=_,c.p=A,c.i=j,c.w=B)}else{for(j=c.w||0;j<v+w;j+=65535){var st=j+65535;st>=v&&(g[p/8|0]=w,st=v),p=k(g,p+1,a.subarray(j,st))}c.i=v}return b(d,0,f+m(p)+u)}(a,null==s.level?6:s.level,null==s.mem?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(a.length)))):12+s.mem,o,f,u)},O=function(t,n,r){for(;r;++n)t[n]=r,r>>>=8},j=function(){function n(n,r){if("function"==typeof n&&(r=n,n={}),this.ondata=r,this.o=n||{},this.s={l:0,i:32768,w:32768,z:32768},this.b=new t(98304),this.o.dictionary){var e=this.o.dictionary.subarray(-32768);this.b.set(e,32768-e.length),this.s.i=32768-e.length}}return n.prototype.p=function(t,n){this.ondata(L(t,this.o,0,0,this.s),n)},n.prototype.push=function(n,r){this.ondata||E(5),this.s.l&&E(4);var e=n.length+this.s.z;if(e>this.b.length){if(e>2*this.b.length-32768){var i=new t(-32768&e);i.set(this.b.subarray(0,this.s.z)),this.b=i}var a=this.b.length-this.s.z;a&&(this.b.set(n.subarray(0,a),this.s.z),this.s.z=this.b.length,this.p(this.b,!1)),this.b.set(this.b.subarray(-32768)),this.b.set(n.subarray(a),32768),this.s.z=n.length-a+32768,this.s.i=32766,this.s.w=32768}else this.b.set(n,this.s.z),this.s.z+=n.length;this.s.l=1&r,(this.s.z>this.s.w+8191||r)&&(this.p(this.b,r||!1),this.s.w=this.s.i,this.s.i-=2)},n}();function q(t,n){n||(n={});var r=function(){var t=-1;return{p:function(n){for(var r=t,e=0;e<n.length;++e)r=I[255&r^n[e]]^r>>>8;t=r},d:function(){return~t}}}(),e=t.length;r.p(t);var i,a=L(t,n,10+((i=n).filename?i.filename.length+1:0),8),s=a.length;return function(t,n){var r=n.filename;if(t[0]=31,t[1]=139,t[2]=8,t[8]=n.level<2?4:9==n.level?2:0,t[9]=3,0!=n.mtime&&O(t,4,Math.floor(new Date(n.mtime||Date.now())/1e3)),r){t[3]=8;for(var e=0;e<=r.length;++e)t[e+10]=r.charCodeAt(e)}}(a,n),O(a,s-8,r.d()),O(a,s-4,e),a}var B=function(){function t(t,n){this.c=S(),this.v=1,j.call(this,t,n)}return t.prototype.push=function(t,n){this.c.p(t),j.prototype.push.call(this,t,n)},t.prototype.p=function(t,n){var r=L(t,this.o,this.v&&(this.o.dictionary?6:2),n&&4,this.s);this.v&&(function(t,n){var r=n.level,e=0==r?0:r<6?1:9==r?3:2;if(t[0]=120,t[1]=e<<6|(n.dictionary&&32),t[1]|=31-(t[0]<<8|t[1])%31,n.dictionary){var i=S();i.p(n.dictionary),O(t,2,i.d())}}(r,this.o),this.v=0),n&&O(r,r.length-4,this.c.d()),this.ondata(r,n)},t}(),G="undefined"!=typeof TextEncoder&&new TextEncoder,H="undefined"!=typeof TextDecoder&&new TextDecoder;try{H.decode(F,{stream:!0})}catch(t){}var J=function(){function t(t){this.ondata=t}return t.prototype.push=function(t,n){this.ondata||E(5),this.d&&E(4),this.ondata(K(t),this.d=n||!1)},t}();function K(n,r){if(r){for(var e=new t(n.length),i=0;i<n.length;++i)e[i]=n.charCodeAt(i);return e}if(G)return G.encode(n);var a=n.length,s=new t(n.length+(n.length>>1)),o=0,f=function(t){s[o++]=t};for(i=0;i<a;++i){if(o+5>s.length){var h=new t(o+8+(a-i<<1));h.set(s),s=h}var l=n.charCodeAt(i);l<128||r?f(l):l<2048?(f(192|l>>6),f(128|63&l)):l>55295&&l<57344?(f(240|(l=65536+(1047552&l)|1023&n.charCodeAt(++i))>>18),f(128|l>>12&63),f(128|l>>6&63),f(128|63&l)):(f(224|l>>12),f(128|l>>6&63),f(128|63&l))}return b(s,0,o)}const N=new class{constructor(){this._init()}clear(){this._init()}addEvent(t){if(!t)throw new Error("Adding invalid event");const n=this._hasEvents?",":"";this.stream.push(n+t),this._hasEvents=!0}finish(){this.stream.push("]",!0);const t=function(t){let n=0;for(let r=0,e=t.length;r<e;r++)n+=t[r].length;const r=new Uint8Array(n);for(let n=0,e=0,i=t.length;n<i;n++){const i=t[n];r.set(i,e),e+=i.length}return r}(this._deflatedData);return this._init(),t}_init(){this._hasEvents=!1,this._deflatedData=[],this.deflate=new B,this.deflate.ondata=(t,n)=>{this._deflatedData.push(t)},this.stream=new J(((t,n)=>{this.deflate.push(t,n)})),this.stream.push("[")}},P={clear:()=>{N.clear()},addEvent:t=>N.addEvent(t),finish:()=>N.finish(),compress:t=>function(t){return q(K(t))}(t)};addEventListener("message",(function(t){const n=t.data.method,r=t.data.id,e=t.data.arg;if(n in P&&"function"==typeof P[n])try{const t=P[n](e);postMessage({id:r,method:n,success:!0,response:t})}catch(t){postMessage({id:r,method:n,success:!1,response:t.message}),console.error(t)}})),postMessage({id:void 0,method:"init",success:!0,response:void 0});']);return URL.createObjectURL(e)}());if(!t)return;tE(`[Replay] Using compression worker${e?` from ${e}`:""}`);let r=new Worker(t);return new tO(r)}catch(e){tE("[Replay] Failed to create compression worker")}}(t);if(e)return e}return tE("[Replay] Using simple buffer"),new tC}({useCompression:this._options.useCompression,workerUrl:this._options.workerUrl}),this._removeListeners(),this._addListeners(),this._isEnabled=!0,this._isPaused=!1,this.startRecording()}_handleException(e){tk&&R.kg.error("[Replay]",e),tk&&this._options._experiments&&this._options._experiments.captureExceptions&&(0,g.Tb)(e)}_initializeSessionForSampling(e){let t=this._options.errorSampleRate>0,r=tj({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration,traceInternals:this._options._experiments.traceInternals,previousSessionId:e},{stickySession:this._options.stickySession,sessionSampleRate:this._options.sessionSampleRate,allowBuffering:t});this.session=r}_checkSession(){if(!this.session)return!1;let e=this.session;return!tU(e,{sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration})||(this._refreshSession(e),!1)}async _refreshSession(e){this._isEnabled&&(await this.stop({reason:"refresh session"}),this.initializeSampling(e.id))}_addListeners(){try{B.document.addEventListener("visibilitychange",this._handleVisibilityChange),B.addEventListener("blur",this._handleWindowBlur),B.addEventListener("focus",this._handleWindowFocus),B.addEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.addListeners(),this._hasInitializedCoreListeners||(function(e){let t=(0,g.nZ)(),r=(0,g.s3)();t.addScopeListener(rs(e)),(0,D.O)(tv(e)),(0,N.a)(t=>{if(!e.isEnabled())return;let r=function(e){let{from:t,to:r}=e,n=Date.now()/1e3;return{type:"navigation.push",start:n,end:n,name:r,data:{previous:t}}}(t);null!==r&&(e.getContext().urls.push(r.name),e.triggerUserActivity(),e.addUpdate(()=>(tV(e,[r]),!1)))}),function(e){let t=(0,g.s3)();try{let r=new TextEncoder,{networkDetailAllowUrls:n,networkDetailDenyUrls:i,networkCaptureBodies:s,networkRequestHeaders:o,networkResponseHeaders:a}=e.getOptions(),l={replay:e,textEncoder:r,networkDetailAllowUrls:n,networkDetailDenyUrls:i,networkCaptureBodies:s,networkRequestHeaders:o,networkResponseHeaders:a};t&&t.on?t.on("beforeAddBreadcrumb",(e,t)=>(function(e,t,r){if(t.data)try{var n,i;"xhr"===t.category&&(n=r)&&n.xhr&&(function(e,t,r){let{xhr:n,input:i}=t;if(!n)return;let s=tY(i,r.textEncoder),o=n.getResponseHeader("content-length")?tG(n.getResponseHeader("content-length")):function(e,t,r){try{let n="json"===t&&e&&"object"==typeof e?JSON.stringify(e):e;return tY(n,r)}catch(e){return}}(n.response,n.responseType,r.textEncoder);void 0!==s&&(e.data.request_body_size=s),void 0!==o&&(e.data.response_body_size=o)}(t,r,e),rn(t,r,e)),"fetch"===t.category&&(i=r)&&i.response&&(function(e,t,r){let{input
2:n,response:i}=t,s=n?t9(n):void 0,o=tY(s,r.textEncoder),a=i?tG(i.headers.get("content-length")):void 0;void 0!==o&&(e.data.request_body_size=o),void 0!==a&&(e.data.response_body_size=a)}(t,r,e),t8(t,r,e))}catch(e){tk&&R.kg.warn("Error when enriching network breadcrumb")}})(l,e,t)):((0,O.U)(t=>{if(!e.isEnabled())return;let r=function(e){let{startTimestamp:t,endTimestamp:r,fetchData:n,response:i}=e;if(!r)return null;let{method:s,url:o}=n;return{type:"resource.fetch",start:t/1e3,end:r/1e3,name:o,data:{method:s,statusCode:i?i.status:void 0}}}(t);tJ(e,r)}),(0,x.UK)(t=>{if(!e.isEnabled())return;let r=function(e){let{startTimestamp:t,endTimestamp:r,xhr:n}=e,i=n[x.xU];if(!t||!r||!i)return null;let{method:s,url:o,status_code:a}=i;return void 0===o?null:{type:"resource.xhr",name:o,start:t/1e3,end:r/1e3,data:{method:s,statusCode:a}}}(t);tJ(e,r)}))}catch(e){}}(e);let n=function(e,t=!1){let r=t?tK(e):void 0;return Object.assign((t,n)=>{if(!e.isEnabled())return t;if("replay_event"===t.type)return delete t.breadcrumbs,t;if(t.type&&!tH(t)&&!tq(t))return t;let i=e.checkAndHandleExpiredSession();if(!i)return t;if(tq(t))return e.flush(),t.contexts.feedback.replay_id=e.getSessionId(),e.triggerUserActivity(),e.addUpdate(()=>!t.timestamp||(e.throttledAddEvent({type:eF.Custom,timestamp:1e3*t.timestamp,data:{timestamp:t.timestamp,tag:"breadcrumb",payload:{category:"sentry.feedback",data:{feedbackId:t.event_id}}}}),!1)),t;if(!t.type&&t.exception&&t.exception.values&&t.exception.values.length&&n.originalException&&n.originalException.__rrweb__&&!e.getOptions()._experiments.captureExceptions)return tk&&R.kg.log("[Replay] Ignoring error from rrweb internals",t),null;let s="buffer"===e.recordingMode&&t.message!==j&&!!t.exception&&!t.type&&tN(e.getOptions().errorSampleRate),o=s||"session"===e.recordingMode;return o&&(t.tags={...t.tags,replayId:e.getSessionId()}),r&&r(t,{statusCode:200}),t},{id:"Replay"})}(e,!(r&&r.on));r&&r.addEventProcessor?r.addEventProcessor(n):(0,_.Q)(n),r&&r.on&&(r.on("beforeSendEvent",t=>{e.isEnabled()&&!t.type&&function(e,t){let r=t.exception&&t.exception.values&&t.exception.values[0].value;if("string"==typeof r&&(r.match(/reactjs\.org\/docs\/error-decoder\.html\?invariant=(418|419|422|423|425)/)||r.match(/(does not match server-rendered HTML|Hydration failed because)/i))){let t=ty({category:"replay.hydrate-error"});tc(e,t)}}(e,t)}),r.on("afterSendEvent",tK(e)),r.on("createDsc",t=>{let r=e.getSessionId();if(r&&e.isEnabled()&&"session"===e.recordingMode){let n=e.checkAndHandleExpiredSession();n&&(t.replay_id=r)}}),r.on("startTransaction",t=>{e.lastTransaction=t}),r.on("finishTransaction",t=>{e.lastTransaction=t}),r.on("beforeSendFeedback",(t,r)=>{let n=e.getSessionId();r&&r.includeReplay&&e.isEnabled()&&n&&(e.flush(),t.contexts&&t.contexts.feedback&&(t.contexts.feedback.replay_id=n))}))}(this),this._hasInitializedCoreListeners=!0)}catch(e){this._handleException(e)}this._performanceCleanupCallback=function(e){function t(t){e.performanceEntries.includes(t)||e.performanceEntries.push(t)}function r({entries:e}){e.forEach(t)}let n=[];return["navigation","paint","resource"].forEach(e=>{n.push((0,F._j)(e,r))}),n.push((0,F.$A)(({metric:t})=>{e.replayPerformanceEntries.push(function(e){let t=e.entries,r=t[t.length-1],n=r?r.element:void 0,i=e.value,s=tw(i),o={type:"largest-contentful-paint",name:"largest-contentful-paint",start:s,end:s,data:{value:i,size:i,nodeId:n?to.mirror.getId(n):void 0}};return o}(t))})),()=>{n.forEach(e=>e())}}(this)}_removeListeners(){try{B.document.removeEventListener("visibilitychange",this._handleVisibilityChange),B.removeEventListener("blur",this._handleWindowBlur),B.removeEventListener("focus",this._handleWindowFocus),B.removeEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.removeListeners(),this._performanceCleanupCallback&&this._performanceCleanupCallback()}catch(e){this._handleException(e)}}__init(){this._handleVisibilityChange=()=>{"visible"===B.document.visibilityState?this._doChangeToForegroundTasks():this._doChangeToBackgroundTasks()}}__init2(){this._handleWindowBlur=()=>{let e=ty({category:"ui.blur"});
2this._doChangeToBackgroundTasks(e)}}__init3(){this._handleWindowFocus=()=>{let e=ty({category:"ui.focus"});this._doChangeToForegroundTasks(e)}}__init4(){this._handleKeyboardEvent=e=>{!function(e,t){if(!e.isEnabled())return;e.updateUserActivity();let r=function(e){var t;let{metaKey:r,shiftKey:n,ctrlKey:i,altKey:s,key:o,target:a}=e;if(!a||"INPUT"===(t=a).tagName||"TEXTAREA"===t.tagName||t.isContentEditable||!o)return null;let l=1===o.length;if(!(r||i||s)&&l)return null;let c=(0,I.Rt)(a,{maxStringLength:200})||"<unknown>",u=t_(a,c);return ty({category:"ui.keyDown",message:c,data:{...u.data,metaKey:r,shiftKey:n,ctrlKey:i,altKey:s,key:o}})}(t);r&&tc(e,r)}(this,e)}}_doChangeToBackgroundTasks(e){if(!this.session)return;let t=tB(this.session,{maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire});t||(e&&this._createCustomBreadcrumb(e),this.conditionalFlush())}_doChangeToForegroundTasks(e){if(!this.session)return;let t=this.checkAndHandleExpiredSession();if(!t){tE("[Replay] Document has become active, but session has expired");return}e&&this._createCustomBreadcrumb(e)}_updateUserActivity(e=Date.now()){this._lastActivity=e}_updateSessionActivity(e=Date.now()){this.session&&(this.session.lastActivity=e,this._maybeSaveSession())}_createCustomBreadcrumb(e){this.addUpdate(()=>{this.throttledAddEvent({type:eF.Custom,timestamp:e.timestamp||0,data:{tag:"breadcrumb",payload:e}})})}_addPerformanceEntries(){let e=this.performanceEntries.map(tb).filter(Boolean).concat(this.replayPerformanceEntries);return this.performanceEntries=[],this.replayPerformanceEntries=[],Promise.all(tV(this,e))}_clearContext(){this._context.errorIds.clear(),this._context.traceIds.clear(),this._context.urls=[]}_updateInitialTimestampFromEventBuffer(){let{session:e,eventBuffer:t}=this;if(!e||!t||e.segmentId)return;let r=t.getEarliestTimestamp();r&&r<this._context.initialTimestamp&&(this._context.initialTimestamp=r)}
2_popEventContext(){let e={initialTimestamp:this._context.initialTimestamp,initialUrl:this._context.initialUrl,errorIds:Array.from(this._context.errorIds),traceIds:Array.from(this._context.traceIds),urls:this._context.urls};return this._clearContext(),e}async _runFlush(){let e=this.getSessionId();if(!this.session||!this.eventBuffer||!e){tk&&R.kg.error("[Replay] No session or eventBuffer found to flush.");return}if(await this._addPerformanceEntries(),this.eventBuffer&&this.eventBuffer.hasEvents&&(await ro(this),this.eventBuffer&&e===this.getSessionId()))try{this._updateInitialTimestampFromEventBuffer();let t=Date.now();if(t-this._context.initialTimestamp>this._options.maxReplayDuration+3e4)throw Error("Session is too long, not sending replay");let r=this._popEventContext(),n=this.session.segmentId++;this._maybeSaveSession();let i=await this.eventBuffer.finish();await rd({replayId:e,recordingData:i,segmentId:n,eventContext:r,session:this.session,options:this.getOptions(),timestamp:t})}catch(t){this._handleException(t),this.stop({reason:"sendReplay"});let e=(0,g.s3)();e&&e.recordDroppedEvent("send_error","replay")}}__init5(){this._flush=async({force:e=!1}={})=>{if(!this._isEnabled&&!e)return;if(!this.checkAndHandleExpiredSession()){tk&&R.kg.error("[Replay] Attempting to finish replay event after session expired.");return}if(!this.session)return;let t=this.session.started,r=Date.now(),n=r-t;this._debouncedFlush.cancel();let i=n<this._options.minReplayDuration,s=n>this._options.maxReplayDuration+5e3;if(i||s){tE(`[Replay] Session duration (${Math.floor(n/1e3)}s) is too ${i?"short":"long"}, not sending replay.`,this._options._experiments.traceInternals),i&&this._debouncedFlush();return}let o=this.eventBuffer;if(o&&0===this.session.segmentId&&!o.hasCheckout&&tE("[Replay] Flushing initial segment without checkout.",this._options._experiments.traceInternals),!this._flushLock){this._flushLock=this._runFlush(),await this._flushLock,this._flushLock=void 0;return}try{await this._flushLock}catch(e){tk&&R.kg.error(e)}finally{this._debouncedFlush()}}}_maybeSaveSession(){this.session&&this._options.stickySession&&tL(this.session)}__init6(){this._onMutationHandler=e=>{let t=e.length,r=this._options.mutationLimit,n=this._options.mutationBreadcrumbLimit,i=r&&t>r;if(t>n||i){let e=ty({category:"replay.mutations",data:{count:t,limit:i}});this._createCustomBreadcrumb(e)}return!i||(this.stop({reason:"mutationLimit",forceFlush:"session"===this.recordingMode}),!1)}}}function rf(e,t,r,n){let i="string"==typeof n?n.split(","):[],s=[...e,...i,...t];return void 0!==r&&("string"==typeof r&&s.push(`.${r}`),(0,R.Cf)(()=>{console.warn("[Replay] You are using a deprecated configuration item for privacy. Read the documentation on how to use the new privacy configuration.")})),s.join(",")}let rm='img,image,svg,video,object,picture,embed,map,audio,link[rel="icon"],link[rel="apple-touch-icon"]',ry=["content-length","content-type","accept"],rg=!1;class rv{static __initStatic(){this.id="Replay"}constructor({flushMinDelay:e=5e3,flushMaxDelay:t=5500,minReplayDuration:r=4999,maxReplayDuration:n=36e5,stickySession:i=!0,useCompression:s=!0,workerUrl:o,_experiments:a={},sessionSampleRate:l,errorSampleRate:c,maskAllText:u=!0,maskAllInputs:d=!0,blockAllMedia:h=!0,mutationBreadcrumbLimit:p=750,mutationLimit:f=1e4,slowClickTimeout:m=7e3,slowClickIgnoreSelectors:y=[],networkDetailAllowUrls:g=[],networkDetailDenyUrls:v=[],networkCaptureBodies:_=!0,networkRequestHeaders:S=[],networkResponseHeaders:b=[],mask:w=[],maskAttributes:k=["title","placeholder"],unmask:E=[],block:I=[],unblock:M=[],ignore:R=[],maskFn:C,beforeAddRecordingEvent:x,beforeErrorSampling:T,blockClass:O,blockSelector:D,maskInputOptions:N,maskTextClass:A,maskTextSelector:L,ignoreClass:F}={}){this.name=rv.id;let B=function({mask:e,unmask:t,block:r,unblock:n,ignore:i,blockClass:s,blockSelector:o,maskTextClass:a,maskTextSelector:l,ignoreClass:c}){let u=rf(e,[".sentry-mask","[data-sentry-mask]"],a,l),d=rf(t,[".sentry-unmask","[data-sentry-unmask]"]),h={maskTextSelector:u,unmaskTextSelector:d,blockSelector:rf(r,[".sentry-block","[data-sentry-block]",'base[href="/"]'],s,o),unblockSelector:rf(n,[".sentry-unblock","[data-sentry-unblock]"]),ignoreSelector:rf(i,[".sentry-ignore","[data-sentry-ignore]",'
2input[type="file"]'],c)};return s instanceof RegExp&&(h.blockClass=s),a instanceof RegExp&&(h.maskTextClass=a),h}({mask:w,unmask:E,block:I,unblock:M,ignore:R,blockClass:O,blockSelector:D,maskTextClass:A,maskTextSelector:L,ignoreClass:F});if(this._recordingOptions={maskAllInputs:d,maskAllText:u,maskInputOptions:{...N||{},password:!0},maskTextFn:C,maskInputFn:C,maskAttributeFn:(e,t,r)=>(function({el:e,key:t,maskAttributes:r,maskAllText:n,privacyOptions:i,value:s}){return!n||i.unmaskTextSelector&&e.matches(i.unmaskTextSelector)?s:r.includes(t)||"value"===t&&"INPUT"===e.tagName&&["submit","button"].includes(e.getAttribute("type")||"")?s.replace(/[\S]/g,"*"):s})({maskAttributes:k,maskAllText:u,privacyOptions:B,key:e,value:t,el:r}),...B,slimDOMOptions:"all",inlineStylesheet:!0,inlineImages:!1,collectFonts:!0,errorHandler:e=>{try{e.__rrweb__=!0}catch(e){}}},this._initialOptions={flushMinDelay:e,flushMaxDelay:t,minReplayDuration:Math.min(r,15e3),maxReplayDuration:Math.min(n,36e5),stickySession:i,sessionSampleRate:l,errorSampleRate:c,useCompression:s,workerUrl:o,blockAllMedia:h,maskAllInputs:d,maskAllText:u,mutationBreadcrumbLimit:p,mutationLimit:f,slowClickTimeout:m,slowClickIgnoreSelectors:y,networkDetailAllowUrls:g,networkDetailDenyUrls:v,networkCaptureBodies:_,networkRequestHeaders:r_(S),networkResponseHeaders:r_(b),beforeAddRecordingEvent:x,beforeErrorSampling:T,_experiments:a},"number"==typeof l&&(console.warn(`[Replay] You are passing \`sessionSampleRate\` to the Replay integration. 3This option is deprecated and will be removed soon. 4Instead, configure \`replaysSessionSampleRate\` directly in the SDK init options, e.g.: 5Sentry.init({ replaysSessionSampleRate: ${l} })`),this._initialOptions.sessionSampleRate=l),"number"==typeof c&&(console.warn(`[Replay] You are passing \`errorSampleRate\` to the Replay integration. 6This option is deprecated and will be removed soon. 7Instead, configure \`replaysOnErrorSampleRate\` directly in the SDK init options, e.g.: 8Sentry.init({ replaysOnErrorSampleRate: ${c} })`),this._initialOptions.errorSampleRate=c),this._initialOptions.blockAllMedia&&(this._recordingOptions.blockSelector=this._recordingOptions.blockSelector?`${this._recordingOptions.blockSelector},${rm}`:rm),this._isInitialized&&(0,P.j)())throw Error("Multiple Sentry Session Replay instances are not supported");this._isInitialized=!0}get _isInitialized(){return rg}set _isInitialized(e){rg=e}setupOnce(){(0,P.j)()&&(this._setup(),setTimeout(()=>this._initialize()))}start(){this._replay&&this._replay.start()}startBuffering(){this._replay&&this._replay.startBuffering()}stop(){return this._replay?this._replay.stop({forceFlush:"session"===this._replay.recordingMode}):Promise.resolve()}flush(e){return this._replay&&this._replay.isEnabled()?this._replay.sendBufferedReplayOrFlush(e):Promise.resolve()}getReplayId(){if(this._replay&&this._replay.isEnabled())return this._replay.getSessionId()}_initialize(){this._replay&&this._replay.initializeSampling()}_setup(){let e=function(e){let t=(0,g.s3)(),r=t&&t.getOptions(),n={sessionSampleRate:0,errorSampleRate:0,...(0,E.Jr)(e)};return r?(null==e.sessionSampleRate&&null==e.errorSampleRate&&null==r.replaysSessionSampleRate&&null==r.replaysOnErrorSampleRate&&(0,R.Cf)(()=>{console.warn("Replay is disabled because neither `replaysSessionSampleRate` nor `replaysOnErrorSampleRate` are set.")}),"number"==typeof r.replaysSessionSampleRate&&(n.sessionSampleRate=r.replaysSessionSampleRate),"number"==typeof r.replaysOnErrorSampleRate&&(n.errorSampleRate=r.replaysOnErrorSampleRate)):(0,R.Cf)(()=>{console.warn("SDK client is not available.")}),n}(this._initialOptions);this._replay=new rp({options:e,recordingOptions:this._recordingOptions})}}function r_(e){return[...ry,...e.map(e=>e.toLowerCase())]}rv.__initStatic()}}]); 9//# sourceMappingURL=396464d2-eeab92522571f0be.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.