PageSourceSearch

https://app.stoqui.com.br/assets/index-CWlpAPNh.js

js stoqui.com.br collected 2026-09-24 11:57:14 UTC 126,907 bytes, 5 lines download raw bytes

1import{gk as In,gl as Mt,gm as Cn,gn as Vt,go as je,gp as Yt,gq as Mn,gr as Ir,gs as Rn,gt as Xt,gu as Tn,gv as he,gw as Ae,gx as Cr,gy as xn,gz as On,gA as Dn,gB as An,gC as Nn,gD as Mr,gE as Ln,gF as Pn,gG as Fn,gH as Bn,gI as Un,gJ as Rr,gK as zn,gL as Wn,gM as Jt,gN as Hn,gO as $n,gP as jn,c7 as qn,gQ as Kn,gR as Vn,gS as Yn,gT as Xn,gU as Jn,gV as Gn,gW as Qn,gX as Zn,gY as es,gZ as ts}from"./index-TALscxEc.js";import{hk as ac,hl as cc,hg as uc,hi as lc,g_ as dc,g$ as hc,ho as fc,h6 as pc,he as mc,hm as gc,hn as yc,hj as Sc,hf as _c,h0 as vc,h1 as wc,hd as Ec,h4 as bc,h5 as kc,h7 as Ic,hc as Cc,hh as Mc,h9 as Rc,ha as Tc,hb as xc,h3 as Oc,h2 as Dc,h8 as Ac}from"./index-TALscxEc.js";import"./mui-CRsYZxVY.js";import"./vendor-Dwao9eNC.js";import"./query-8ViTdhdk.js";import"./datePickers-BIJXYOKG.js";import"./icons-D8aatgQ4.js";import"./lab-DSem1Osk.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};e.SENTRY_RELEASE={id:"2ad85febf9735404429b0670d4acf56a0af5a0a2"}}catch{}})();try{(function(){var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="29403339-4d6e-46ec-9f19-85405d070fc0",e._sentryDebugIdIdentifier="sentry-dbid-29403339-4d6e-46ec-9f19-85405d070fc0")})()}catch{}function rs(e,t){const r=t==null?void 0:t.getDsn(),n=t==null?void 0:t.getOptions().tunnel;return ss(e,r)||ns(e,n)}function ns(e,t){return t?Gt(e)===Gt(t):!1}function ss(e,t){return t?e.includes(t.host):!1}function Gt(e){return e[e.length-1]==="/"?e.slice(0,-1):e}function is(e,...t){const r=new String(String.raw(e,...t));return r.__sentry_template_string__=e.join("\0").replace(/%/g,"%%").replace(/\0/g,"%s"),r.__sentry_template_values__=t,r}const os=is;function as(e,t,r){let n,s,i;const o=r!=null&&r.maxWait?Math.max(r.maxWait,t):0,c=(r==null?void 0:r.setTimeoutImpl)||setTimeout;function a(){return u(),n=e(),n}function u(){s!==void 0&&clearTimeout(s),i!==void 0&&clearTimeout(i),s=i=void 0}function d(){return s!==void 0||i!==void 0?a():n}function l(){return s&&clearTimeout(s),s=c(a,t),o&&i===void 0&&(i=c(a,o)),n}return l.cancel=u,l.flush=d,l}function cs(){return!In()&&Object.prototype.toString.call(typeof process<"u"?process:0)==="[object process]"}function Qt(){return typeof window<"u"&&(!cs()||us())}function us(){const e=Mt.process;return(e==null?void 0:e.type)==="renderer"}function be(e,t,r,n){Cn({level:e,message:t,attributes:r,severityNumber:n})}function ls(e,t){be("trace",e,t)}function ds(e,t){be("debug",e,t)}function hs(e,t){be("info",e,t)}function fs(e,t){be("warn",e,t)}function ps(e,t){be("error",e,t)}function ms(e,t){be("fatal",e,t)}const nc=Object.freeze(Object.defineProperty({__proto__:null,debug:ds,error:ps,fatal:ms,fmt:os,info:hs,trace:ls,warn:fs},Symbol.toStringTag,{value:"Module"}));function Tr(e){return new URLSearchParams(e).toString()}function xr(e,t=je){try{if(typeof e=="string")return[e];if(e instanceof URLSearchParams)return[e.toString()];if(e instanceof FormData)return[Tr(e)];if(!e)return[void 0]}catch(r){return Vt&&t.error(r,"Failed to serialize body",e),[void 0,"BODY_PARSE_ERROR"]}return Vt&&t.info("Skipping network body because of body type",e),[void 0,"UNPARSEABLE_BODY_TYPE"]}function Or(e=[]){if(!(e.length!==2||typeof e[1]!="object"))return e[1].body}const B=Mt,Rt="sentryReplaySession",gs="replay_event",Tt="Unable to send Replay",ys=3e5,Ss=9e5,_s=5e3,vs=5500,ws=6e4,Es=5e3,bs=3,Zt=15e4,Ue=5e3,ks=3e3,Is=300,xt=2e7,Cs=4999,Ms=15e3,er=36e5;var Rs=Object.defineProperty,Ts=(e,t,r)=>t in e?Rs(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,tr=(e,t,r)=>Ts(e,typeof t!="symbol"?t+"":t,r),$=(e=>(e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment",e))($||{});function xs(e){return e.nodeType===e.ELEMENT_NODE}function Ce(e){const t=e==null?void 0:e.host;return(t==null?void 0:t.shadowRoot)===e}function Me(e){return Object.prototype.toString.call(e)==="[object ShadowRoot]"}function Os(e){return e.includes(" background-clip: text;")&&!e.includes(" -webkit-background-clip: text;")&&(e=e.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;")),e}function Ds(e){const{cssText:t}=e;if(t.split('"').length<3)return t;const 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(" ")+";"}function Ke(e){try{const t=e.rules||e.cssRules;return t?Os(Array.from(t,Dr).join("")):null}catch{return null}}function As(e){let t="";for(let r=0;r<e.style.length;r++){const n=e.style,s=n[r],i=n.getPropertyPriority(s);t+=`${s}:${n.getPropertyValue(s)}
1${i?" !important":""};`}return`${e.selectorText} { ${t} }`}function Dr(e){let t;if(Ls(e))try{t=Ke(e.styleSheet)||Ds(e)}catch{}else if(Ps(e)){let r=e.cssText;const n=e.selectorText.includes(":"),s=typeof e.style.all=="string"&&e.style.all;if(s&&(r=As(e)),n&&(r=Ns(r)),n||s)return r}return t||e.cssText}function Ns(e){const t=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return e.replace(t,"$1\\$2")}function Ls(e){return"styleSheet"in e}function Ps(e){return"selectorText"in e}class Ar{constructor(){tr(this,"idNodeMap",new Map),tr(this,"nodeMetaMap",new WeakMap)}getId(t){var n;return t?((n=this.getMeta(t))==null?void 0:n.id)??-1:-1}getNode(t){return this.idNodeMap.get(t)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(t){return this.nodeMetaMap.get(t)||null}removeNodeFromMap(t){const r=this.getId(t);this.idNodeMap.delete(r),t.childNodes&&t.childNodes.forEach(n=>this.removeNodeFromMap(n))}has(t){return this.idNodeMap.has(t)}hasNode(t){return this.nodeMetaMap.has(t)}add(t,r){const n=r.id;this.idNodeMap.set(n,t),this.nodeMetaMap.set(t,r)}replace(t,r){const n=this.getNode(t);if(n){const s=this.nodeMetaMap.get(n);s&&this.nodeMetaMap.set(r,s)}this.idNodeMap.set(t,r)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function Fs(){return new Ar}function et({maskInputOptions:e,tagName:t,type:r}){return t==="OPTION"&&(t="SELECT"),!!(e[t.toLowerCase()]||r&&e[r]||r==="password"||t==="INPUT"&&!r&&e.text)}function Te({isMasked:e,element:t,value:r,maskInputFn:n}){let s=r||"";return e?(n&&(s=n(s,t)),"*".repeat(s.length)):s}function ve(e){return e.toLowerCase()}function St(e){return e.toUpperCase()}const rr="__rrweb_original__";function Bs(e){const t=e.getContext("2d");if(!t)return!0;const r=50;for(let n=0;n<e.width;n+=r)for(let s=0;s<e.height;s+=r){const i=t.getImageData,o=rr in i?i[rr]:i;if(new Uint32Array(o.call(t,n,s,Math.min(r,e.width-n),Math.min(r,e.height-s)).data.buffer).some(a=>a!==0))return!1}return!0}function Ot(e){const t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?ve(t):null}function Ve(e,t,r){return t==="INPUT"&&(r==="radio"||r==="checkbox")?e.getAttribute("value")||"":e.value}function Nr(e,t){let r;try{r=new URL(e,t??window.location.href)}catch{return null}const n=/\.([0-9a-z]+)(?:$)/i,s=r.pathname.match(n);return(s==null?void 0:s[1])??null}const nr={};function Lr(e){const t=nr[e];if(t)return t;const r=window.document;let n=window[e];if(r&&typeof r.createElement=="function")try{const s=r.createElement("iframe");s.hidden=!0,r.head.appendChild(s);const i=s.contentWindow;i&&i[e]&&(n=i[e]),r.head.removeChild(s)}catch{}return nr[e]=n.bind(window)}function _t(...e){return Lr("setTimeout")(...e)}function Pr(...e){return Lr("clearTimeout")(...e)}function Fr(e){try{return e.contentDocument}catch{}}let Us=1;const zs=new RegExp("[^a-z0-9-_:]"),xe=-2;function Dt(){return Us++}function Ws(e){if(e instanceof HTMLFormElement)return"form";const t=ve(e.tagName);return zs.test(t)?"div":t}function Hs(e){let t="";return e.indexOf("//")>-1?t=e.split("/").slice(0,3).join("/"):t=e.split("/")[0],t=t.split("?")[0],t}let fe,sr;const $s=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,js=/^(?:[a-z+]+:)?\/\//i,qs=/^www\..*/i,Ks=/^(data:)([^,]*),(.*)/i;function Ye(e,t){return(e||"").replace($s,(r,n,s,i,o,c)=>{const a=s||o||c,u=n||i||"";if(!a)return r;if(js.test(a)||qs.test(a))return`url(${u}${a}${u})`;if(Ks.test(a))return`url(${u}${a}${u})`;if(a[0]==="/")return`url(${u}${Hs(t)+a}${u})`;const d=t.split("/"),l=a.split("/");d.pop();for(const h of l)h!=="."&&(h===".."?d.pop():d.push(h));return`url(${u}${d.join("/")}${u})`})}const Vs=/^[^ \t\n\r\u000c]+/,Ys=/^[, \t\n\r\u000c]+/;function Xs(e,t){if(t.trim()==="")return t;let r=0;function n(i){let o;const c=i.exec(t.substring(r));return c?(o=c[0],r+=o.length,o):""}const s=[];for(;n(Ys),!(r>=t.length);){let i=n(Vs);if(i.slice(-1)===",")i=ge(e,i.substring(0,i.length-1)),s.push(i);else{let o="";i=ge(e,i);let c=!1;for(;;){const a=t.charAt(r);if(a===""){s.push((i+o).trim());break}else if(c)a===")"&&(c=!1);else if(a===","){r+=1,s.push((i+o).trim());break}else a==="("&&(c=!0);o+=a,r+=1}}}return s.join(", ")}const ir=new WeakMap;function ge(e,t){return!t||t.trim()===""?t:tt(e,t)}function Js(e){return!!(e.tagName==="svg"||e.ownerSVGElement)}function tt(e,t){let r=ir.get(e);if(r||(r=e.createElement("a"),ir.set(e,r)),!t)t="";else if(t.startsWith("blob:")||t.startsWith("data:"))return t;return r.setAttribute("href",t),r.href}
1function Br(e,t,r,n,s,i){return n&&(r==="src"||r==="href"&&!(t==="use"&&n[0]==="#")||r==="xlink:href"&&n[0]!=="#"||r==="background"&&(t==="table"||t==="td"||t==="th")?ge(e,n):r==="srcset"?Xs(e,n):r==="style"?Ye(n,tt(e)):t==="object"&&r==="data"?ge(e,n):typeof i=="function"?i(r,n,s):n)}function Ur(e,t,r){return(e==="video"||e==="audio")&&t==="autoplay"}function zr(e,t,r,n){try{if(n&&e.matches(n))return!1;if(typeof t=="string"){if(e.classList.contains(t))return!0}else for(let s=e.classList.length;s--;){const i=e.classList[s];if(t.test(i))return!0}if(r)return e.matches(r)}catch{}return!1}function Gs(e,t){for(let r=e.classList.length;r--;){const n=e.classList[r];if(t.test(n))return!0}return!1}function de(e,t,r=1/0,n=0){return!e||e.nodeType!==e.ELEMENT_NODE||n>r?-1:t(e)?n:de(e.parentNode,t,r,n+1)}function ye(e,t){return r=>{const n=r;if(n===null)return!1;try{if(e){if(typeof e=="string"){if(n.matches(`.${e}`))return!0}else if(Gs(n,e))return!0}return!!(t&&n.matches(t))}catch{return!1}}}function we(e,t,r,n,s,i){try{const o=e.nodeType===e.ELEMENT_NODE?e:e.parentElement;if(o===null)return!1;if(o.tagName==="INPUT"){const u=o.getAttribute("autocomplete");if(["current-password","new-password","cc-number","cc-exp","cc-exp-month","cc-exp-year","cc-csc"].includes(u))return!0}let c=-1,a=-1;if(i){if(a=de(o,ye(n,s)),a<0)return!0;c=de(o,ye(t,r),a>=0?a:1/0)}else{if(c=de(o,ye(t,r)),c<0)return!1;a=de(o,ye(n,s),c>=0?c:1/0)}return c>=0?a>=0?c<=a:!0:a>=0?!1:!!i}catch{}return!!i}function Qs(e,t,r){const n=e.contentWindow;if(!n)return;let s=!1,i;try{i=n.document.readyState}catch{return}if(i!=="complete"){const c=_t(()=>{s||(t(),s=!0)},r);e.addEventListener("load",()=>{Pr(c),s=!0,t()});return}const o="about:blank";if(n.location.href!==o||e.src===o||e.src==="")return _t(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}function Zs(e,t,r){let n=!1,s;try{s=e.sheet}catch{return}if(s)return;const i=_t(()=>{n||(t(),n=!0)},r);e.addEventListener("load",()=>{Pr(i),n=!0,t()})}function ei(e,t){const{doc:r,mirror:n,blockClass:s,blockSelector:i,unblockSelector:o,maskAllText:c,maskAttributeFn:a,maskTextClass:u,unmaskTextClass:d,maskTextSelector:l,unmaskTextSelector:h,inlineStylesheet:p,maskInputOptions:f={},maskTextFn:m,maskInputFn:_,dataURLOptions:y={},inlineImages:k,recordCanvas:N,keepIframeSrcFn:T,newlyAddedElement:I=!1}=t,S=ti(r,n);switch(e.nodeType){case e.DOCUMENT_NODE:return e.compatMode!=="CSS1Compat"?{type:$.Document,childNodes:[],compatMode:e.compatMode}:{type:$.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:$.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:S};case e.ELEMENT_NODE:return ni(e,{doc:r,blockClass:s,blockSelector:i,unblockSelector:o,inlineStylesheet:p,maskAttributeFn:a,maskInputOptions:f,maskInputFn:_,dataURLOptions:y,inlineImages:k,recordCanvas:N,keepIframeSrcFn:T,newlyAddedElement:I,rootId:S,maskTextClass:u,unmaskTextClass:d,maskTextSelector:l,unmaskTextSelector:h});case e.TEXT_NODE:return ri(e,{doc:r,maskAllText:c,maskTextClass:u,unmaskTextClass:d,maskTextSelector:l,unmaskTextSelector:h,maskTextFn:m,maskInputOptions:f,maskInputFn:_,rootId:S});case e.CDATA_SECTION_NODE:return{type:$.CDATA,textContent:"",rootId:S};case e.COMMENT_NODE:return{type:$.Comment,textContent:e.textContent||"",rootId:S};default:return!1}}function ti(e,t){if(!t.hasNode(e))return;const r=t.getId(e);return r===1?void 0:r}function ri(e,t){var y;const{maskAllText:r,maskTextClass:n,unmaskTextClass:s,maskTextSelector:i,unmaskTextSelector:o,maskTextFn:c,maskInputOptions:a,maskInputFn:u,rootId:d}=t,l=e.parentNode&&e.parentNode.tagName;let h=e.textContent;const p=l==="STYLE"?!0:void 0,f=l==="SCRIPT"?!0:void 0,m=l==="TEXTAREA"?!0:void 0;if(p&&h){try{e.nextSibling||e.previousSibling||(y=e.parentNode.sheet)!=null&&y.cssRules&&(h=Ke(e.parentNode.sheet))}catch(k){console.warn(`Cannot get CSS styles from text's parentNode. Error: ${k}`,e)}h=Ye(h,tt(t.doc))}f&&(h="SCRIPT_PLACEHOLDER");const _=we(e,n,i,s,o,r);if(!p&&!f&&!m&&h&&_&&(h=c?c(h,e.parentElement):h.replace(/[\S]/g,"*")),m&&h&&(a.textarea||_)&&(h=u?u(h,e.parentNode):h.replace(/[\S]/g,"*")),l==="OPTION"&&h){const k=et({type:null,tagName:l,maskInputOptions:a});h=Te({isMasked:we(e,n,i,s,o,k),element:e,value:h,maskInputFn:u})}return{type:$.Text,textContent:h||"",isStyle:p,rootId:d}}function ni(e,t){const{doc:r,blockClass:n,blockSelector:s,unblockSelector:i,inlineStylesheet:o,maskInputOptions:c={},maskAttributeFn:a,maskInputFn:u,dataURLOptions:d={},inlineImages:l,recordCanvas:h,keepIframeSrcFn:p,newlyAddedElement:f=!1,rootId:m,maskTextClass:_,unmaskTextClass:y,maskTextSelector:k,unmaskTextSelector:N}=t,T=zr(e,n,s,i),I=Ws(e);let S={};const R=e.attributes.length;for(let g=0;g<R;g++){const b=e.attributes[g];
1b.name&&!Ur(I,b.name,b.value)&&(S[b.name]=Br(r,I,ve(b.name),b.value,e,a))}if(I==="link"&&o){const g=Array.from(r.styleSheets).find(L=>L.href===e.href);let b=null;g&&(b=Ke(g)),b&&(S.rel=null,S.href=null,S.crossorigin=null,S._cssText=Ye(b,g.href))}if(I==="style"&&e.sheet&&!(e.innerText||e.textContent||"").trim().length){const g=Ke(e.sheet);g&&(S._cssText=Ye(g,tt(r)))}if(I==="input"||I==="textarea"||I==="select"||I==="option"){const g=e,b=Ot(g),L=Ve(g,St(I),b),U=g.checked;if(b!=="submit"&&b!=="button"&&L){const H=we(g,_,k,y,N,et({type:b,tagName:St(I),maskInputOptions:c}));S.value=Te({isMasked:H,element:g,value:L,maskInputFn:u})}U&&(S.checked=U)}if(I==="option"&&(e.selected&&!c.select?S.selected=!0:delete S.selected),I==="canvas"&&h){if(e.__context==="2d")Bs(e)||(S.rr_dataURL=e.toDataURL(d.type,d.quality));else if(!("__context"in e)){const g=e.toDataURL(d.type,d.quality),b=r.createElement("canvas");b.width=e.width,b.height=e.height;const L=b.toDataURL(d.type,d.quality);g!==L&&(S.rr_dataURL=g)}}if(I==="img"&&l){fe||(fe=r.createElement("canvas"),sr=fe.getContext("2d"));const g=e,b=g.currentSrc||g.getAttribute("src")||"<unknown-src>",L=g.crossOrigin,U=()=>{g.removeEventListener("load",U);try{fe.width=g.naturalWidth,fe.height=g.naturalHeight,sr.drawImage(g,0,0),S.rr_dataURL=fe.toDataURL(d.type,d.quality)}catch(H){if(g.crossOrigin!=="anonymous"){g.crossOrigin="anonymous",g.complete&&g.naturalWidth!==0?U():g.addEventListener("load",U);return}else console.warn(`Cannot inline img src=${b}! Error: ${H}`)}g.crossOrigin==="anonymous"&&(L?S.crossOrigin=L:g.removeAttribute("crossorigin"))};g.complete&&g.naturalWidth!==0?U():g.addEventListener("load",U)}if((I==="audio"||I==="video")&&(S.rr_mediaState=e.paused?"paused":"played",S.rr_mediaCurrentTime=e.currentTime),f||(e.scrollLeft&&(S.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(S.rr_scrollTop=e.scrollTop)),T){const{width:g,height:b}=e.getBoundingClientRect();S={class:S.class,rr_width:`${g}px`,rr_height:`${b}px`}}I==="iframe"&&!p(S.src)&&(!T&&!Fr(e)&&(S.rr_src=S.src),delete S.src);let M;try{customElements.get(I)&&(M=!0)}catch{}return{type:$.Element,tagName:I,attributes:S,childNodes:[],isSVG:Js(e)||void 0,needBlock:T,rootId:m,isCustom:M}}function F(e){return e==null?"":e.toLowerCase()}function si(e,t){if(t.comment&&e.type===$.Comment)return!0;if(e.type===$.Element){if(t.script&&(e.tagName==="script"||e.tagName==="link"&&(e.attributes.rel==="preload"||e.attributes.rel==="modulepreload")||e.tagName==="link"&&e.attributes.rel==="prefetch"&&typeof e.attributes.href=="string"&&Nr(e.attributes.href)==="js"))return!0;if(t.headFavicon&&(e.tagName==="link"&&e.attributes.rel==="shortcut icon"||e.tagName==="meta"&&(F(e.attributes.name).match(/^msapplication-tile(image|color)$/)||F(e.attributes.name)==="application-name"||F(e.attributes.rel)==="icon"||F(e.attributes.rel)==="apple-touch-icon"||F(e.attributes.rel)==="shortcut icon")))return!0;if(e.tagName==="meta"){if(t.headMetaDescKeywords&&F(e.attributes.name).match(/^description|keywords$/))return!0;if(t.headMetaSocial&&(F(e.attributes.property).match(/^(og|twitter|fb):/)||F(e.attributes.name).match(/^(og|twitter):/)||F(e.attributes.name)==="pinterest"))return!0;if(t.headMetaRobots&&(F(e.attributes.name)==="robots"||F(e.attributes.name)==="googlebot"||F(e.attributes.name)==="bingbot"))return!0;if(t.headMetaHttpEquiv&&e.attributes["http-equiv"]!==void 0)return!0;if(t.headMetaAuthorship&&(F(e.attributes.name)==="author"||F(e.attributes.name)==="generator"||F(e.attributes.name)==="framework"||F(e.attributes.name)==="publisher"||F(e.attributes.name)==="progid"||F(e.attributes.property).match(/^article:/)||F(e.attributes.property).match(/^product:/)))return!0;if(t.headMetaVerification&&(F(e.attributes.name)==="google-site-verification"||F(e.attributes.name)==="yandex-verification"||F(e.attributes.name)==="csrf-token"||F(e.attributes.name)==="p:domain_verify"||F(e.attributes.name)==="verify-v1"||F(e.attributes.name)==="verification"||F(e.attributes.name)==="shopify-checkout-api-token"))return!0}}return!1}function Se(e,t){const{doc:r,mirror:n,blockClass:s,blockSelector:i,unblockSelector:o,maskAllText:c,maskTextClass:a,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:l,skipChild:h=!1,inl
1ineStylesheet:p=!0,maskInputOptions:f={},maskAttributeFn:m,maskTextFn:_,maskInputFn:y,slimDOMOptions:k,dataURLOptions:N={},inlineImages:T=!1,recordCanvas:I=!1,onSerialize:S,onIframeLoad:R,iframeLoadTimeout:M=5e3,onStylesheetLoad:g,stylesheetLoadTimeout:b=5e3,keepIframeSrcFn:L=()=>!1,newlyAddedElement:U=!1}=t;let{preserveWhiteSpace:H=!0}=t;const j=ei(e,{doc:r,mirror:n,blockClass:s,blockSelector:i,maskAllText:c,unblockSelector:o,maskTextClass:a,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:l,inlineStylesheet:p,maskInputOptions:f,maskAttributeFn:m,maskTextFn:_,maskInputFn:y,dataURLOptions:N,inlineImages:T,recordCanvas:I,keepIframeSrcFn:L,newlyAddedElement:U});if(!j)return console.warn(e,"not serialized"),null;let X;n.hasNode(e)?X=n.getId(e):si(j,k)||!H&&j.type===$.Text&&!j.isStyle&&!j.textContent.replace(/^\s+|\s+$/gm,"").length?X=xe:X=Dt();const D=Object.assign(j,{id:X});if(n.add(e,D),X===xe)return null;S&&S(e);let q=!h;if(D.type===$.Element){q=q&&!D.needBlock,delete D.needBlock;const z=e.shadowRoot;z&&Me(z)&&(D.isShadowHost=!0)}if((D.type===$.Document||D.type===$.Element)&&q){k.headWhitespace&&D.type===$.Element&&D.tagName==="head"&&(H=!1);const z={doc:r,mirror:n,blockClass:s,blockSelector:i,maskAllText:c,unblockSelector:o,maskTextClass:a,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:l,skipChild:h,inlineStylesheet:p,maskInputOptions:f,maskAttributeFn:m,maskTextFn:_,maskInputFn:y,slimDOMOptions:k,dataURLOptions:N,inlineImages:T,recordCanvas:I,preserveWhiteSpace:H,onSerialize:S,onIframeLoad:R,iframeLoadTimeout:M,onStylesheetLoad:g,stylesheetLoadTimeout:b,keepIframeSrcFn:L};for(const Q of Array.from(e.childNodes)){const ne=Se(Q,z);ne&&D.childNodes.push(ne)}if(xs(e)&&e.shadowRoot)for(const Q of Array.from(e.shadowRoot.childNodes)){const ne=Se(Q,z);ne&&(Me(e.shadowRoot)&&(ne.isShadow=!0),D.childNodes.push(ne))}}return e.parentNode&&Ce(e.parentNode)&&Me(e.parentNode)&&(D.isShadow=!0),D.type===$.Element&&D.tagName==="iframe"&&!zr(e,s,i,o)&&Qs(e,()=>{const z=Fr(e);if(z&&R){const Q=Se(z,{doc:z,mirror:n,blockClass:s,blockSelector:i,unblockSelector:o,maskAllText:c,maskTextClass:a,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:l,skipChild:!1,inlineStylesheet:p,maskInputOptions:f,maskAttributeFn:m,maskTextFn:_,maskInputFn:y,slimDOMOptions:k,dataURLOptions:N,inlineImages:T,recordCanvas:I,preserveWhiteSpace:H,onSerialize:S,onIframeLoad:R,iframeLoadTimeout:M,onStylesheetLoad:g,stylesheetLoadTimeout:b,keepIframeSrcFn:L});Q&&R(e,Q)}},M),D.type===$.Element&&D.tagName==="link"&&typeof D.attributes.rel=="string"&&(D.attributes.rel==="stylesheet"||D.attributes.rel==="preload"&&typeof D.attributes.href=="string"&&Nr(D.attributes.href)==="css")&&Zs(e,()=>{if(g){const z=Se(e,{doc:r,mirror:n,blockClass:s,blockSelector:i,unblockSelector:o,maskAllText:c,maskTextClass:a,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:l,skipChild:!1,inlineStylesheet:p,maskInputOptions:f,maskAttributeFn:m,maskTextFn:_,maskInputFn:y,slimDOMOptions:k,dataURLOptions:N,inlineImages:T,recordCanvas:I,preserveWhiteSpace:H,onSerialize:S,onIframeLoad:R,iframeLoadTimeout:M,onStylesheetLoad:g,stylesheetLoadTimeout:b,keepIframeSrcFn:L});z&&g(e,z)}},b),D}function ii(e,t){const{mirror:r=new Ar,blockClass:n="rr-block",blockSelector:s=null,unblockSelector:i=null,maskAllText:o=!1,maskTextClass:c="rr-mask",unmaskTextClass:a=null,maskTextSelector:u=null,unmaskTextSelector:d=null,inlineStylesheet:l=!0,inlineImages:h=!1,recordCanvas:p=!1,maskAllInputs:f=!1,maskAttributeFn:m,maskTextFn:_,maskInputFn:y,slimDOM:k=!1,dataURLOptions:N,preserveWhiteSpace:T,onSerialize:I,onIframeLoad:S,iframeLoadTimeout:R,onStylesheetLoad:M,stylesheetLoadTimeout:g,keepIframeSrcFn:b=()=>!1}=t||{};return Se(e,{doc:e,mirror:r,blockClass:n,blockSelector:s,unblockSelector:i,maskAllText:o,maskTextClass:c,unmaskTextClass:a,maskTextSelector:u,unmaskTextSelector:d,skipChild:!1,inlineStylesheet:l,maskInputOptions:f===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0}:f===!1?{}:f,maskAttributeFn:m,maskTextFn:_,maskInputFn:y,slimDOMOptions:k===!0||k==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:k==="all",headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}
1:k===!1?{}:k,dataURLOptions:N,inlineImages:h,recordCanvas:p,preserveWhiteSpace:T,onSerialize:I,onIframeLoad:S,iframeLoadTimeout:R,onStylesheetLoad:M,stylesheetLoadTimeout:g,keepIframeSrcFn:b,newlyAddedElement:!1})}function V(e,t,r=document){const n={capture:!0,passive:!0};return r.addEventListener(e,t,n),()=>r.removeEventListener(e,t,n)}const pe=`Please stop import mirror directly. Instead of that,\r
2now you can use replayer.getMirror() to access the mirror instance of a replayer,\r
3or you can use record.mirror to access the mirror instance during recording.`;let or={map:{},getId(){return console.error(pe),-1},getNode(){return console.error(pe),null},removeNodeFromMap(){console.error(pe)},has(){return console.error(pe),!1},reset(){console.error(pe)}};typeof window<"u"&&window.Proxy&&window.Reflect&&(or=new Proxy(or,{get(e,t,r){return t==="map"&&console.error(pe),Reflect.get(e,t,r)}}));function Oe(e,t,r={}){let n=null,s=0;return function(...i){const o=Date.now();!s&&r.leading===!1&&(s=o);const c=t-(o-s),a=this;c<=0||c>t?(n&&(hi(n),n=null),s=o,e.apply(a,i)):!n&&r.trailing!==!1&&(n=rt(()=>{s=r.leading===!1?0:Date.now(),n=null,e.apply(a,i)},c))}}function Wr(e,t,r,n,s=window){const i=s.Object.getOwnPropertyDescriptor(e,t);return s.Object.defineProperty(e,t,n?r:{set(o){rt(()=>{r.set.call(this,o)},0),i&&i.set&&i.set.call(this,o)}}),()=>Wr(e,t,i||{},!0)}function At(e,t,r){try{if(!(t in e))return()=>{};const n=e[t],s=r(n);return typeof s=="function"&&(s.prototype=s.prototype||{},Object.defineProperties(s,{__rrweb_original__:{enumerable:!1,value:n}})),e[t]=s,()=>{e[t]=n}}catch{return()=>{}}}let Xe=Date.now;/[1-9][0-9]{12}/.test(Date.now().toString())||(Xe=()=>new Date().getTime());function Hr(e){var r,n,s,i,o,c;const t=e.document;return{left:t.scrollingElement?t.scrollingElement.scrollLeft:e.pageXOffset!==void 0?e.pageXOffset:(t==null?void 0:t.documentElement.scrollLeft)||((n=(r=t==null?void 0:t.body)==null?void 0:r.parentElement)==null?void 0:n.scrollLeft)||((s=t==null?void 0:t.body)==null?void 0:s.scrollLeft)||0,top:t.scrollingElement?t.scrollingElement.scrollTop:e.pageYOffset!==void 0?e.pageYOffset:(t==null?void 0:t.documentElement.scrollTop)||((o=(i=t==null?void 0:t.body)==null?void 0:i.parentElement)==null?void 0:o.scrollTop)||((c=t==null?void 0:t.body)==null?void 0:c.scrollTop)||0}}function $r(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function jr(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function qr(e){if(!e)return null;try{return e.nodeType===e.ELEMENT_NODE?e:e.parentElement}catch{return null}}function Y(e,t,r,n,s){if(!e)return!1;const i=qr(e);if(!i)return!1;const o=ye(t,r);if(!s){const u=n&&i.matches(n);return o(i)&&!u}const c=de(i,o);let a=-1;return c<0?!1:(n&&(a=de(i,ye(null,n))),c>-1&&a<0?!0:c<a)}function oi(e,t){return t.getId(e)!==-1}function pt(e,t){return t.getId(e)===xe}function Kr(e,t){if(Ce(e))return!1;const r=t.getId(e);return t.has(r)?e.parentNode&&e.parentNode.nodeType===e.DOCUMENT_NODE?!1:e.parentNode?Kr(e.parentNode,t):!0:!0}function vt(e){return!!e.changedTouches}function ai(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=(...t)=>{let r=t[0];if(!(0 in t))throw new TypeError("1 argument is required");do if(this===r)return!0;while(r=r&&r.parentNode);return!1})}function Vr(e,t){return!!(e.nodeName==="IFRAME"&&t.getMeta(e))}function Yr(e,t){return!!(e.nodeName==="LINK"&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&e.getAttribute("rel")==="stylesheet"&&t.getMeta(e))}function wt(e){return!!(e!=null&&e.shadowRoot)}class ci{constructor(){this.id=1,this.styleIDMap=new WeakMap,this.idStyleMap=new Map}getId(t){return this.styleIDMap.get(t)??-1}has(t){return this.styleIDMap.has(t)}add(t,r){if(this.has(t))return this.getId(t);let n;return r===void 0?n=this.id++:n=r,this.styleIDMap.set(t,n),this.idStyleMap.set(n,t),n}getStyle(t){return this.idStyleMap.get(t)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}}function Xr(e){var r,n;let t=null;return((n=(r=e.getRootNode)==null?void 0:r.call(e))==null?void 0:n.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&e.getRootNode().host&&(t=e.getRootNode().host),t}function ui(e){let t=e,r;for(;r=Xr(t);)t=r;return t}function li(e){const t=e.ownerDocument;if(!t)return!1;const r=ui(e);return t.contains(r)}function Jr(e){const t=e.ownerDocument;return t?t.contains(e)||li(e):!1}const ar={};function Nt(e){const t=ar[e];if(t)return t;const r=window.document;let n=window[e];if(r&&typeof r.createElement=="function")try{const s=r.createElement("iframe");s.hidden=!0,r.head.appendChild(s);const i=s.contentWindow;i&&i[e]&&(n=i[e]),r.head.removeChild(s)}catch{}return ar[e]=n.bind(window)}function di(...e){return Nt("requestAnimationFrame")(...e)}
3function rt(...e){return Nt("setTimeout")(...e)}function hi(...e){return Nt("clearTimeout")(...e)}var C=(e=>(e[e.DomContentLoaded=0]="DomContentLoaded",e[e.Load=1]="Load",e[e.FullSnapshot=2]="FullSnapshot",e[e.IncrementalSnapshot=3]="IncrementalSnapshot",e[e.Meta=4]="Meta",e[e.Custom=5]="Custom",e[e.Plugin=6]="Plugin",e))(C||{}),E=(e=>(e[e.Mutation=0]="Mutation",e[e.MouseMove=1]="MouseMove",e[e.MouseInteraction=2]="MouseInteraction",e[e.Scroll=3]="Scroll",e[e.ViewportResize=4]="ViewportResize",e[e.Input=5]="Input",e[e.TouchMove=6]="TouchMove",e[e.MediaInteraction=7]="MediaInteraction",e[e.StyleSheetRule=8]="StyleSheetRule",e[e.CanvasMutation=9]="CanvasMutation",e[e.Font=10]="Font",e[e.Log=11]="Log",e[e.Drag=12]="Drag",e[e.StyleDeclaration=13]="StyleDeclaration",e[e.Selection=14]="Selection",e[e.AdoptedStyleSheet=15]="AdoptedStyleSheet",e[e.CustomElement=16]="CustomElement",e))(E||{}),K=(e=>(e[e.MouseUp=0]="MouseUp",e[e.MouseDown=1]="MouseDown",e[e.Click=2]="Click",e[e.ContextMenu=3]="ContextMenu",e[e.DblClick=4]="DblClick",e[e.Focus=5]="Focus",e[e.Blur=6]="Blur",e[e.TouchStart=7]="TouchStart",e[e.TouchMove_Departed=8]="TouchMove_Departed",e[e.TouchEnd=9]="TouchEnd",e[e.TouchCancel=10]="TouchCancel",e))(K||{}),se=(e=>(e[e.Mouse=0]="Mouse",e[e.Pen=1]="Pen",e[e.Touch=2]="Touch",e))(se||{}),me=(e=>(e[e.Play=0]="Play",e[e.Pause=1]="Pause",e[e.Seeked=2]="Seeked",e[e.VolumeChange=3]="VolumeChange",e[e.RateChange=4]="RateChange",e))(me||{});function Lt(e){try{return e.contentDocument}catch{}}function fi(e){try{return e.contentWindow}catch{}}function cr(e){return"__ln"in e}class pi{constructor(){this.length=0,this.head=null,this.tail=null}get(t){if(t>=this.length)throw new Error("Position outside of list range");let r=this.head;for(let n=0;n<t;n++)r=(r==null?void 0:r.next)||null;return r}addNode(t){const r={value:t,previous:null,next:null};if(t.__ln=r,t.previousSibling&&cr(t.previousSibling)){const n=t.previousSibling.__ln.next;r.next=n,r.previous=t.previousSibling.__ln,t.previousSibling.__ln.next=r,n&&(n.previous=r)}else if(t.nextSibling&&cr(t.nextSibling)&&t.nextSibling.__ln.previous){const n=t.nextSibling.__ln.previous;r.previous=n,r.next=t.nextSibling.__ln,t.nextSibling.__ln.previous=r,n&&(n.next=r)}else this.head&&(this.head.previous=r),r.next=this.head,this.head=r;r.next===null&&(this.tail=r),this.length++}removeNode(t){const r=t.__ln;this.head&&(r.previous?(r.previous.next=r.next,r.next?r.next.previous=r.previous:this.tail=r.previous):(this.head=r.next,this.head?this.head.previous=null:this.tail=null),t.__ln&&delete t.__ln,this.length--)}}const ur=(e,t)=>`${e}@${t}`;class mi{constructor(){this.frozen=!1,this.locked=!1,this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.mapRemoves=[],this.movedMap={},this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.processMutations=t=>{t.forEach(this.processMutation),this.emit()},this.emit=()=>{if(this.frozen||this.locked)return;const t=[],r=new Set,n=new pi,s=a=>{let u=a,d=xe;for(;d===xe;)u=u&&u.nextSibling,d=u&&this.mirror.getId(u);return d},i=a=>{if(!a.parentNode||!Jr(a))return;const u=Ce(a.parentNode)?this.mirror.getId(Xr(a)):this.mirror.getId(a.parentNode),d=s(a);if(u===-1||d===-1)return n.addNode(a);const l=Se(a,{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.inlineStylesheet,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:h=>{Vr(h,this.mirror)&&!Y(h,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&this.iframeManager.addIframe(h),Yr(h,this.mirror)&&this.stylesheetManager.trackLinkElement(h),wt
3(a)&&this.shadowDomManager.addShadowRoot(a.shadowRoot,this.doc)},onIframeLoad:(h,p)=>{Y(h,this.blockClass,this.blockSelector,this.unblockSelector,!1)||(this.iframeManager.attachIframe(h,p),h.contentWindow&&this.canvasManager.addWindow(h.contentWindow),this.shadowDomManager.observeAttachShadow(h))},onStylesheetLoad:(h,p)=>{this.stylesheetManager.attachLinkElement(h,p)}});l&&(t.push({parentId:u,nextId:d,node:l}),r.add(l.id))};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(const a of this.movedSet)lr(this.removes,a,this.mirror)&&!this.movedSet.has(a.parentNode)||i(a);for(const a of this.addedSet)!dr(this.droppedSet,a)&&!lr(this.removes,a,this.mirror)||dr(this.movedSet,a)?i(a):this.droppedSet.add(a);let o=null;for(;n.length;){let a=null;if(o){const u=this.mirror.getId(o.value.parentNode),d=s(o.value);u!==-1&&d!==-1&&(a=o)}if(!a){let u=n.tail;for(;u;){const d=u;if(u=u.previous,d){const l=this.mirror.getId(d.value.parentNode);if(s(d.value)===-1)continue;if(l!==-1){a=d;break}else{const p=d.value;if(p.parentNode&&p.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE){const f=p.parentNode.host;if(this.mirror.getId(f)!==-1){a=d;break}}}}}}if(!a){for(;n.head;)n.removeNode(n.head.value);break}o=a.previous,n.removeNode(a.value),i(a.value)}const c={texts:this.texts.map(a=>({id:this.mirror.getId(a.node),value:a.value})).filter(a=>!r.has(a.id)).filter(a=>this.mirror.has(a.id)),attributes:this.attributes.map(a=>{const{attributes:u}=a;if(typeof u.style=="string"){const d=JSON.stringify(a.styleDiff),l=JSON.stringify(a._unchangedStyles);d.length<u.style.length&&(d+l).split("var(").length===u.style.split("var(").length&&(u.style=a.styleDiff)}return{id:this.mirror.getId(a.node),attributes:u}}).filter(a=>!r.has(a.id)).filter(a=>this.mirror.has(a.id)),removes:this.removes,adds:t};!c.texts.length&&!c.attributes.length&&!c.removes.length&&!c.adds.length||(this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.movedMap={},this.mutationCb(c))},this.processMutation=t=>{if(!pt(t.target,this.mirror))switch(t.type){case"characterData":{const r=t.target.textContent;!Y(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&r!==t.oldValue&&this.texts.push({value:we(t.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,this.maskAllText)&&r?this.maskTextFn?this.maskTextFn(r,qr(t.target)):r.replace(/[\S]/g,"*"):r,node:t.target});break}case"attributes":{const r=t.target;let n=t.attributeName,s=t.target.getAttribute(n);if(n==="value"){const o=Ot(r),c=r.tagName;s=Ve(r,c,o);const a=et({maskInputOptions:this.maskInputOptions,tagName:c,type:o}),u=we(t.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,a);s=Te({isMasked:u,element:r,value:s,maskInputFn:this.maskInputFn})}if(Y(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||s===t.oldValue)return;let i=this.attributeMap.get(t.target);if(r.tagName==="IFRAME"&&n==="src"&&!this.keepIframeSrcFn(s))if(!Lt(r))n="rr_src";else return;if(i||(i={node:t.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(i),this.attributeMap.set(t.target,i)),n==="type"&&r.tagName==="INPUT"&&(t.oldValue||"").toLowerCase()==="password"&&r.setAttribute("data-rr-is-password","true"),!Ur(r.tagName,n)&&(i.attributes[n]=Br(this.doc,ve(r.tagName),ve(n),s,r,this.maskAttributeFn),n==="style")){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch{this.unattachedDoc=this.doc}const o=this.unattachedDoc.createElement("span");t.oldValue&&o.setAttribute("style",t.oldValue);for(const c of Array.from(r.style)){const a=r.style.getPropertyValue(c),u=r.style.getPropertyPriority(c);a!==o.style.getPropertyValue(c)||u!==o.style.getPropertyPriority(c)?u===""?i.styleDiff[c]=a:i.styleDiff[c]=[a,u]:i._unchangedStyles[c]=[a,u]}for(const c of Array.from(o.style))r.style.getPropertyValue(c)===""&&(i.styleDiff[c]=!1)}break}case"childList":{if(Y(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!0))return;
3t.addedNodes.forEach(r=>this.genAdds(r,t.target)),t.removedNodes.forEach(r=>{const n=this.mirror.getId(r),s=Ce(t.target)?this.mirror.getId(t.target.host):this.mirror.getId(t.target);Y(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||pt(r,this.mirror)||!oi(r,this.mirror)||(this.addedSet.has(r)?(Et(this.addedSet,r),this.droppedSet.add(r)):this.addedSet.has(t.target)&&n===-1||Kr(t.target,this.mirror)||(this.movedSet.has(r)&&this.movedMap[ur(n,s)]?Et(this.movedSet,r):this.removes.push({parentId:s,id:n,isShadow:Ce(t.target)&&Me(t.target)?!0:void 0})),this.mapRemoves.push(r))});break}}},this.genAdds=(t,r)=>{if(!this.processedNodeManager.inOtherBuffer(t,this)&&!(this.addedSet.has(t)||this.movedSet.has(t))){if(this.mirror.hasNode(t)){if(pt(t,this.mirror))return;this.movedSet.add(t);let n=null;r&&this.mirror.hasNode(r)&&(n=this.mirror.getId(r)),n&&n!==-1&&(this.movedMap[ur(this.mirror.getId(t),n)]=!0)}else this.addedSet.add(t),this.droppedSet.delete(t);Y(t,this.blockClass,this.blockSelector,this.unblockSelector,!1)||(t.childNodes.forEach(n=>this.genAdds(n)),wt(t)&&t.shadowRoot.childNodes.forEach(n=>{this.processedNodeManager.add(n,this),this.genAdds(n,t)}))}}}init(t){["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(r=>{this[r]=t[r]})}freeze(){this.frozen=!0,this.canvasManager.freeze()}unfreeze(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()}isFrozen(){return this.frozen}lock(){this.locked=!0,this.canvasManager.lock()}unlock(){this.locked=!1,this.canvasManager.unlock(),this.emit()}reset(){this.shadowDomManager.reset(),this.canvasManager.reset()}}function Et(e,t){e.delete(t),t.childNodes.forEach(r=>Et(e,r))}function lr(e,t,r){return e.length===0?!1:gi(e,t,r)}function gi(e,t,r){let n=t.parentNode;for(;n;){const s=r.getId(n);if(e.some(i=>i.id===s))return!0;n=n.parentNode}return!1}function dr(e,t){return e.size===0?!1:Gr(e,t)}function Gr(e,t){const{parentNode:r}=t;return r?e.has(r)?!0:Gr(e,r):!1}let Re;function yi(e){Re=e}function Si(){Re=void 0}const O=e=>Re?(...r)=>{try{return e(...r)}catch(n){if(Re&&Re(n)===!0)return()=>{};throw n}}:e,_e=[];function Ne(e){try{if("composedPath"in e){const t=e.composedPath();if(t.length)return t[0]}else if("path"in e&&e.path.length)return e.path[0]}catch{}return e&&e.target}function Qr(e,t){var o,c;const r=new mi;_e.push(r),r.init(e);let n=window.MutationObserver||window.__rrMutationObserver;const s=(c=(o=window==null?void 0:window.Zone)==null?void 0:o.__symbol__)==null?void 0:c.call(o,"MutationObserver");s&&window[s]&&(n=window[s]);const i=new n(O(a=>{e.onMutation&&e.onMutation(a)===!1||r.processMutations.bind(r)(a)}));return i.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),i}function _i({mousemoveCb:e,sampling:t,doc:r,mirror:n}){if(t.mousemove===!1)return()=>{};const s=typeof t.mousemove=="number"?t.mousemove:50,i=typeof t.mousemoveCallback=="number"?t.mousemoveCallback:500;let o=[],c;const a=Oe(O(l=>{const h=Date.now()-c;e(o.map(p=>(p.timeOffset-=h,p)),l),o=[],c=null}),i),u=O(Oe(O(l=>{const h=Ne(l),{clientX:p,clientY:f}=vt(l)?l.changedTouches[0]:l;c||(c=Xe()),o.push({x:p,y:f,id:n.getId(h),timeOffset:Xe()-c}),a(typeof DragEvent<"u"&&l instanceof DragEvent?E.Drag:l instanceof MouseEvent?E.MouseMove:E.TouchMove)}),s,{trailing:!1})),d=[V("mousemove",u,r),V("touchmove",u,r),V("drag",u,r)];return O(()=>{d.forEach(l=>l())})}function vi({mouseInteractionCb:e,doc:t,mirror:r,blockClass:n,blockSelector:s,unblockSelector:i,sampling:o}){if(o.mouseInteraction===!1)return()=>{};const c=o.mouseInteraction===!0||o.mouseInteraction===void 0?{}:o.mouseInteraction,a=[];let u=null;const d=l=>h=>{const p=Ne(h);if(Y(p,n,s,i,!0))return;let f=null,m=l;if("pointerType"in h){switch(h.pointerType){case"mouse":f=se.Mouse;break;case"touch":f=se.Touch;break;case"pen":f=se.Pen;break}f===se.Touch?K[l]===K.MouseDown?m="TouchStart":K[l]===K.MouseUp&&(m="TouchEnd"):se.Pen}else vt(h)&&(f=se.Touch);f!==null?(u=f,(m.startsWith("Touch")&&f===se.Touch||m.startsWith("Mouse")&&f===se.Mouse)&&(f=null)):K[l]===K.Click&&(f=u,u=null);const _=vt(h)?h.changedTouches[0]:h;if(!_)return;const y=r.getId(p),{clientX:k,clientY:N}=_;O(e)({type:K[m],id:y,x:k,y:N,...f!==null&&{pointerType:f}})};return Object.keys(K).filter(l=>Number.isNaN(Number(l))&&!l.endsWith("_Departed")&&c[l]!==!1).forEac
3h(l=>{let h=ve(l);const p=d(l);if(window.PointerEvent)switch(K[l]){case K.MouseDown:case K.MouseUp:h=h.replace("mouse","pointer");break;case K.TouchStart:case K.TouchEnd:return}a.push(V(h,p,t))}),O(()=>{a.forEach(l=>l())})}function Zr({scrollCb:e,doc:t,mirror:r,blockClass:n,blockSelector:s,unblockSelector:i,sampling:o}){const c=O(Oe(O(a=>{const u=Ne(a);if(!u||Y(u,n,s,i,!0))return;const d=r.getId(u);if(u===t&&t.defaultView){const l=Hr(t.defaultView);e({id:d,x:l.left,y:l.top})}else e({id:d,x:u.scrollLeft,y:u.scrollTop})}),o.scroll||100));return V("scroll",c,t)}function wi({viewportResizeCb:e},{win:t}){let r=-1,n=-1;const s=O(Oe(O(()=>{const i=$r(),o=jr();(r!==i||n!==o)&&(e({width:Number(o),height:Number(i)}),r=i,n=o)}),200));return V("resize",s,t)}const Ei=["INPUT","TEXTAREA","SELECT"],hr=new WeakMap;function bi({inputCb:e,doc:t,mirror:r,blockClass:n,blockSelector:s,unblockSelector:i,ignoreClass:o,ignoreSelector:c,maskInputOptions:a,maskInputFn:u,sampling:d,userTriggeredOnInput:l,maskTextClass:h,unmaskTextClass:p,maskTextSelector:f,unmaskTextSelector:m}){function _(R){let M=Ne(R);const g=R.isTrusted,b=M&&St(M.tagName);if(b==="OPTION"&&(M=M.parentElement),!M||!b||Ei.indexOf(b)<0||Y(M,n,s,i,!0))return;const L=M;if(L.classList.contains(o)||c&&L.matches(c))return;const U=Ot(M);let H=Ve(L,b,U),j=!1;const X=et({maskInputOptions:a,tagName:b,type:U}),D=we(M,h,f,p,m,X);(U==="radio"||U==="checkbox")&&(j=M.checked),H=Te({isMasked:D,element:M,value:H,maskInputFn:u}),y(M,l?{text:H,isChecked:j,userTriggered:g}:{text:H,isChecked:j});const q=M.name;U==="radio"&&q&&j&&t.querySelectorAll(`input[type="radio"][name="${q}"]`).forEach(z=>{if(z!==M){const Q=Te({isMasked:D,element:z,value:Ve(z,b,U),maskInputFn:u});y(z,l?{text:Q,isChecked:!j,userTriggered:!1}:{text:Q,isChecked:!j})}})}function y(R,M){const g=hr.get(R);if(!g||g.text!==M.text||g.isChecked!==M.isChecked){hr.set(R,M);const b=r.getId(R);O(e)({...M,id:b})}}const N=(d.input==="last"?["change"]:["input","change"]).map(R=>V(R,O(_),t)),T=t.defaultView;if(!T)return()=>{N.forEach(R=>R())};const I=T.Object.getOwnPropertyDescriptor(T.HTMLInputElement.prototype,"value"),S=[[T.HTMLInputElement.prototype,"value"],[T.HTMLInputElement.prototype,"checked"],[T.HTMLSelectElement.prototype,"value"],[T.HTMLTextAreaElement.prototype,"value"],[T.HTMLSelectElement.prototype,"selectedIndex"],[T.HTMLOptionElement.prototype,"selected"]];return I&&I.set&&N.push(...S.map(R=>Wr(R[0],R[1],{set(){O(_)({target:this,isTrusted:!1})}},!1,T))),O(()=>{N.forEach(R=>R())})}function Je(e){const t=[];function r(n,s){if(ze("CSSGroupingRule")&&n.parentRule instanceof CSSGroupingRule||ze("CSSMediaRule")&&n.parentRule instanceof CSSMediaRule||ze("CSSSupportsRule")&&n.parentRule instanceof CSSSupportsRule||ze("CSSConditionRule")&&n.parentRule instanceof CSSConditionRule){const o=Array.from(n.parentRule.cssRules).indexOf(n);s.unshift(o)}else if(n.parentStyleSheet){const o=Array.from(n.parentStyleSheet.cssRules).indexOf(n);s.unshift(o)}return s}return r(e,t)}function oe(e,t,r){let n,s;return e?(e.ownerNode?n=t.getId(e.ownerNode):s=r.getId(e),{styleId:s,id:n}):{}}function ki({styleSheetRuleCb:e,mirror:t,stylesheetManager:r},{win:n}){if(!n.CSSStyleSheet||!n.CSSStyleSheet.prototype)return()=>{};const s=n.CSSStyleSheet.prototype.insertRule;n.CSSStyleSheet.prototype.insertRule=new Proxy(s,{apply:O((d,l,h)=>{const[p,f]=h,{id:m,styleId:_}=oe(l,t,r.styleMirror);return(m&&m!==-1||_&&_!==-1)&&e({id:m,styleId:_,adds:[{rule:p,index:f}]}),d.apply(l,h)})});const i=n.CSSStyleSheet.prototype.deleteRule;n.CSSStyleSheet.prototype.deleteRule=new Proxy(i,{apply:O((d,l,h)=>{const[p]=h,{id:f,styleId:m}=oe(l,t,r.styleMirror);return(f&&f!==-1||m&&m!==-1)&&e({id:f,styleId:m,removes:[{index:p}]}),d.apply(l,h)})});let o;n.CSSStyleSheet.prototype.replace&&(o=n.CSSStyleSheet.prototype.replace,n.CSSStyleSheet.prototype.replace=new Proxy(o,{apply:O((d,l,h)=>{const[p]=h,{id:f,styleId:m}=oe(l,t,r.styleMirror);return(f&&f!==-1||m&&m!==-1)&&e({id:f,styleId:m,replace:p}),d.apply(l,h)})}));let c;n.CSSStyleSheet.prototype.replaceSync&&(c=n.CSSStyleSheet.prototype.replaceSync,n.CSSStyleSheet.prototype.replaceSync=new Proxy(c,{apply:O((d,l,h)=>{const[p]=h,{id:f,styleId:m}=oe(l,t,r.styleMirror);return(f&&f!==-1||m&&m!==-1)&&e({id:f,styleId:m,replaceSync:p}),d.apply(l,h)})}));const a={};We("CSSGroupingRule")?a.CSSGroupingRule=n.CSSGroupingRule:(We("CSSMediaRule")&&(a.CSSMediaRule=n.CSSMediaRule),We("CSSConditionRule")&&(a.CSSConditionRule=n.CSSConditionRule),We("CSSSupportsRule")&&(a.CSSSupportsRule=n.CSSSupportsRule));const u={};
vendor: 4,418 bytes, line 3
3return Object.entries(a).forEach(([d,l])=>{u[d]={insertRule:l.prototype.insertRule,deleteRule:l.prototype.deleteRule},l.prototype.insertRule=new Proxy(u[d].insertRule,{apply:O((h,p,f)=>{const[m,_]=f,{id:y,styleId:k}=oe(p.parentStyleSheet,t,r.styleMirror);return(y&&y!==-1||k&&k!==-1)&&e({id:y,styleId:k,adds:[{rule:m,index:[...Je(p),_||0]}]}),h.apply(p,f)})}),l.prototype.deleteRule=new Proxy(u[d].deleteRule,{apply:O((h,p,f)=>{const[m]=f,{id:_,styleId:y}=oe(p.parentStyleSheet,t,r.styleMirror);return(_&&_!==-1||y&&y!==-1)&&e({id:_,styleId:y,removes:[{index:[...Je(p),m]}]}),h.apply(p,f)})})}),O(()=>{n.CSSStyleSheet.prototype.insertRule=s,n.CSSStyleSheet.prototype.deleteRule=i,o&&(n.CSSStyleSheet.prototype.replace=o),c&&(n.CSSStyleSheet.prototype.replaceSync=c),Object.entries(a).forEach(([d,l])=>{l.prototype.insertRule=u[d].insertRule,l.prototype.deleteRule=u[d].deleteRule})})}function en({mirror:e,stylesheetManager:t},r){var o,c,a;let n=null;r.nodeName==="#document"?n=e.getId(r):n=e.getId(r.host);const s=r.nodeName==="#document"?(o=r.defaultView)==null?void 0:o.Document:(a=(c=r.ownerDocument)==null?void 0:c.defaultView)==null?void 0:a.ShadowRoot,i=s!=null&&s.prototype?Object.getOwnPropertyDescriptor(s==null?void 0:s.prototype,"adoptedStyleSheets"):void 0;return n===null||n===-1||!s||!i?()=>{}:(Object.defineProperty(r,"adoptedStyleSheets",{configurable:i.configurable,enumerable:i.enumerable,get(){var u;return(u=i.get)==null?void 0:u.call(this)},set(u){var l;const d=(l=i.set)==null?void 0:l.call(this,u);if(n!==null&&n!==-1)try{t.adoptStyleSheets(u,n)}catch{}return d}}),O(()=>{Object.defineProperty(r,"adoptedStyleSheets",{configurable:i.configurable,enumerable:i.enumerable,get:i.get,set:i.set})}))}function Ii({styleDeclarationCb:e,mirror:t,ignoreCSSAttributes:r,stylesheetManager:n},{win:s}){const i=s.CSSStyleDeclaration.prototype.setProperty;s.CSSStyleDeclaration.prototype.setProperty=new Proxy(i,{apply:O((c,a,u)=>{var m;const[d,l,h]=u;if(r.has(d))return i.apply(a,[d,l,h]);const{id:p,styleId:f}=oe((m=a.parentRule)==null?void 0:m.parentStyleSheet,t,n.styleMirror);return(p&&p!==-1||f&&f!==-1)&&e({id:p,styleId:f,set:{property:d,value:l,priority:h},index:Je(a.parentRule)}),c.apply(a,u)})});const o=s.CSSStyleDeclaration.prototype.removeProperty;return s.CSSStyleDeclaration.prototype.removeProperty=new Proxy(o,{apply:O((c,a,u)=>{var p;const[d]=u;if(r.has(d))return o.apply(a,[d]);const{id:l,styleId:h}=oe((p=a.parentRule)==null?void 0:p.parentStyleSheet,t,n.styleMirror);return(l&&l!==-1||h&&h!==-1)&&e({id:l,styleId:h,remove:{property:d},index:Je(a.parentRule)}),c.apply(a,u)})}),O(()=>{s.CSSStyleDeclaration.prototype.setProperty=i,s.CSSStyleDeclaration.prototype.removeProperty=o})}function Ci({mediaInteractionCb:e,blockClass:t,blockSelector:r,unblockSelector:n,mirror:s,sampling:i,doc:o}){const c=O(u=>Oe(O(d=>{const l=Ne(d);if(!l||Y(l,t,r,n,!0))return;const{currentTime:h,volume:p,muted:f,playbackRate:m}=l;e({type:u,id:s.getId(l),currentTime:h,volume:p,muted:f,playbackRate:m})}),i.media||500)),a=[V("play",c(me.Play),o),V("pause",c(me.Pause),o),V("seeked",c(me.Seeked),o),V("volumechange",c(me.VolumeChange),o),V("ratechange",c(me.RateChange),o)];return O(()=>{a.forEach(u=>u())})}function Mi({fontCb:e,doc:t}){const r=t.defaultView;if(!r)return()=>{};const n=[],s=new WeakMap,i=r.FontFace;r.FontFace=function(a,u,d){const l=new i(a,u,d);return s.set(l,{family:a,buffer:typeof u!="string",descriptors:d,fontSource:typeof u=="string"?u:JSON.stringify(Array.from(new Uint8Array(u)))}),l};const o=At(t.fonts,"add",function(c){return function(a){return rt(O(()=>{const u=s.get(a);u&&(e(u),s.delete(a))}),0),c.apply(this,[a])}});return n.push(()=>{r.FontFace=i}),n.push(o),O(()=>{n.forEach(c=>c())})}function Ri(e){const{doc:t,mirror:r,blockClass:n,blockSelector:s,unblockSelector:i,selectionCb:o}=e;let c=!0;const a=O(()=>{const u=t.getSelection();if(!u||c&&(u!=null&&u.isCollapsed))return;c=u.isCollapsed||!1;const d=[],l=u.rangeCount||0;for(let h=0;h<l;h++){const p=u.getRangeAt(h),{startContainer:f,startOffset:m,endContainer:_,endOffset:y}=p;Y(f,n,s,i,!0)||Y(_,n,s,i,!0)||d.push({start:r.getId(f),startOffset:m,end:r.getId(_),endOffset:y})}o({ranges:d})});return a(),V("selectionchange",a)}function Ti({doc:e,customElementCb:t}){const r=e.defaultView;return!r||!r.customElements?()=>{}:At(r.customElements,"define",function(s){return function(i,o,c){try{t({define:{name:i}})}catch{}
3return s.apply(this,[i,o,c])}})}function xi(e,t={}){const r=e.doc.defaultView;if(!r)return()=>{};let n;e.recordDOM&&(n=Qr(e,e.doc));const s=_i(e),i=vi(e),o=Zr(e),c=wi(e,{win:r}),a=bi(e),u=Ci(e);let d=()=>{},l=()=>{},h=()=>{},p=()=>{};e.recordDOM&&(d=ki(e,{win:r}),l=en(e,e.doc),h=Ii(e,{win:r}),e.collectFonts&&(p=Mi(e)));const f=Ri(e),m=Ti(e),_=[];for(const y of e.plugins)_.push(y.observer(y.callback,r,y.options));return O(()=>{_e.forEach(y=>y.reset()),n==null||n.disconnect(),s(),i(),o(),c(),a(),u(),d(),l(),h(),p(),f(),m(),_.forEach(y=>y())})}function ze(e){return typeof window[e]<"u"}function We(e){return!!(typeof window[e]<"u"&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}class bt{constructor(t){this.generateIdFn=t,this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap}getId(t,r,n,s){const i=n||this.getIdToRemoteIdMap(t),o=s||this.getRemoteIdToIdMap(t);let c=i.get(r);return c||(c=this.generateIdFn(),i.set(r,c),o.set(c,r)),c}getIds(t,r){const n=this.getIdToRemoteIdMap(t),s=this.getRemoteIdToIdMap(t);return r.map(i=>this.getId(t,i,n,s))}getRemoteId(t,r,n){const s=n||this.getRemoteIdToIdMap(t);if(typeof r!="number")return r;const i=s.get(r);return i||-1}getRemoteIds(t,r){const n=this.getRemoteIdToIdMap(t);return r.map(s=>this.getRemoteId(t,s,n))}reset(t){if(!t){this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap;return}this.iframeIdToRemoteIdMap.delete(t),this.iframeRemoteIdToIdMap.delete(t)}getIdToRemoteIdMap(t){let r=this.iframeIdToRemoteIdMap.get(t);return r||(r=new Map,this.iframeIdToRemoteIdMap.set(t,r)),r}getRemoteIdToIdMap(t){let r=this.iframeRemoteIdToIdMap.get(t);return r||(r=new Map,this.iframeRemoteIdToIdMap.set(t,r)),r}}class Oi{constructor(){this.crossOriginIframeMirror=new bt(Dt),this.crossOriginIframeRootIdMap=new WeakMap}addIframe(){}addLoadListener(){}attachIframe(){}}class Di{constructor(t){this.iframes=new WeakMap,this.crossOriginIframeMap=new WeakMap,this.crossOriginIframeMirror=new bt(Dt),this.crossOriginIframeRootIdMap=new WeakMap,this.mutationCb=t.mutationCb,this.wrappedEmit=t.wrappedEmit,this.stylesheetManager=t.stylesheetManager,this.recordCrossOriginIframes=t.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new bt(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=t.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}addIframe(t){this.iframes.set(t,!0),t.contentWindow&&this.crossOriginIframeMap.set(t.contentWindow,t)}addLoadListener(t){this.loadListener=t}attachIframe(t,r){var s,i;this.mutationCb({adds:[{parentId:this.mirror.getId(t),nextId:null,node:r}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),this.recordCrossOriginIframes&&((s=t.contentWindow)==null||s.addEventListener("message",this.handleMessage.bind(this))),(i=this.loadListener)==null||i.call(this,t);const n=Lt(t);n&&n.adoptedStyleSheets&&n.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(n.adoptedStyleSheets,this.mirror.getId(n))}handleMessage(t){const r=t;if(r.data.type!=="rrweb"||r.origin!==r.data.origin||!t.source)return;const s=this.crossOriginIframeMap.get(t.source);if(!s)return;const i=this.transformCrossOriginEvent(s,r.data.event);i&&this.wrappedEmit(i,r.data.isCheckout)}transformCrossOriginEvent(t,r){var n;switch(r.type){case C.FullSnapshot:{this.crossOriginIframeMirror.reset(t),this.crossOriginIframeStyleMirror.reset(t),this.replaceIdOnNode(r.data.node,t);const s=r.data.node.id;return this.crossOriginIframeRootIdMap.set(t,s),this.patchRootIdOnNode(r.data.node,s),{timestamp:r.timestamp,type:C.IncrementalSnapshot,data:{source:E.Mutation,adds:[{parentId:this.mirror.getId(t),nextId:null,node:r.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case C.Meta:case C.Load:case C.DomContentLoaded:return!1;case C.Plugin:return r;case C.Custom:return this.replaceIds(r.data.payload,t,["id","parentId","previousId","nextId"]),r;case C.IncrementalSnapshot:switch(r.data.source){case E.Mutation:return r.data.adds.forEach(s=>{this.replaceIds(s,t,["parentId","nextId","previousId"]),this.replaceIdOnNode(s.node,t);const i=this.crossOriginIframeRootIdMap.get(t);i&&this.patchRootIdOnNode(s.node,i)}
3),r.data.removes.forEach(s=>{this.replaceIds(s,t,["parentId","id"])}),r.data.attributes.forEach(s=>{this.replaceIds(s,t,["id"])}),r.data.texts.forEach(s=>{this.replaceIds(s,t,["id"])}),r;case E.Drag:case E.TouchMove:case E.MouseMove:return r.data.positions.forEach(s=>{this.replaceIds(s,t,["id"])}),r;case E.ViewportResize:return!1;case E.MediaInteraction:case E.MouseInteraction:case E.Scroll:case E.CanvasMutation:case E.Input:return this.replaceIds(r.data,t,["id"]),r;case E.StyleSheetRule:case E.StyleDeclaration:return this.replaceIds(r.data,t,["id"]),this.replaceStyleIds(r.data,t,["styleId"]),r;case E.Font:return r;case E.Selection:return r.data.ranges.forEach(s=>{this.replaceIds(s,t,["start","end"])}),r;case E.AdoptedStyleSheet:return this.replaceIds(r.data,t,["id"]),this.replaceStyleIds(r.data,t,["styleIds"]),(n=r.data.styles)==null||n.forEach(s=>{this.replaceStyleIds(s,t,["styleId"])}),r}}return!1}replace(t,r,n,s){for(const i of s)!Array.isArray(r[i])&&typeof r[i]!="number"||(Array.isArray(r[i])?r[i]=t.getIds(n,r[i]):r[i]=t.getId(n,r[i]));return r}replaceIds(t,r,n){return this.replace(this.crossOriginIframeMirror,t,r,n)}replaceStyleIds(t,r,n){return this.replace(this.crossOriginIframeStyleMirror,t,r,n)}replaceIdOnNode(t,r){this.replaceIds(t,r,["id","rootId"]),"childNodes"in t&&t.childNodes.forEach(n=>{this.replaceIdOnNode(n,r)})}patchRootIdOnNode(t,r){t.type!==$.Document&&!t.rootId&&(t.rootId=r),"childNodes"in t&&t.childNodes.forEach(n=>{this.patchRootIdOnNode(n,r)})}}class Ai{init(){}addShadowRoot(){}observeAttachShadow(){}reset(){}}class Ni{constructor(t){this.shadowDoms=new WeakSet,this.restoreHandlers=[],this.mutationCb=t.mutationCb,this.scrollCb=t.scrollCb,this.bypassOptions=t.bypassOptions,this.mirror=t.mirror,this.init()}init(){this.reset(),this.patchAttachShadow(Element,document)}addShadowRoot(t,r){if(!Me(t)||this.shadowDoms.has(t))return;this.shadowDoms.add(t),this.bypassOptions.canvasManager.addShadowRoot(t);const n=Qr({...this.bypassOptions,doc:r,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this},t);this.restoreHandlers.push(()=>n.disconnect()),this.restoreHandlers.push(Zr({...this.bypassOptions,scrollCb:this.scrollCb,doc:t,mirror:this.mirror})),rt(()=>{t.adoptedStyleSheets&&t.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(t.adoptedStyleSheets,this.mirror.getId(t.host)),this.restoreHandlers.push(en({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},t))},0)}observeAttachShadow(t){const r=Lt(t),n=fi(t);!r||!n||this.patchAttachShadow(n.Element,r)}patchAttachShadow(t,r){const n=this;this.restoreHandlers.push(At(t.prototype,"attachShadow",function(s){return function(i){const o=s.call(this,i);return this.shadowRoot&&Jr(this)&&n.addShadowRoot(this.shadowRoot,r),o}}))}reset(){this.restoreHandlers.forEach(t=>{try{t()}catch{}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet,this.bypassOptions.canvasManager.resetShadowRoots()}}var fr="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Li=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var He=0;He<fr.length;He++)Li[fr.charCodeAt(He)]=He;class pr{reset(){}freeze(){}unfreeze(){}lock(){}unlock(){}snapshot(){}addWindow(){}addShadowRoot(){}resetShadowRoots(){}}class Pi{constructor(t){this.trackedLinkElements=new WeakSet,this.styleMirror=new ci,this.mutationCb=t.mutationCb,this.adoptedStyleSheetCb=t.adoptedStyleSheetCb}attachLinkElement(t,r){"_cssText"in r.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:r.id,attributes:r.attributes}]}),this.trackLinkElement(t)}trackLinkElement(t){this.trackedLinkElements.has(t)||(this.trackedLinkElements.add(t),this.trackStylesheetInLinkElement(t))}adoptStyleSheets(t,r){if(t.length===0)return;const n={id:r,styleIds:[]},s=[];for(const i of t){let o;this.styleMirror.has(i)?o=this.styleMirror.getId(i):(o=this.styleMirror.add(i),s.push({styleId:o,rules:Array.from(i.rules||CSSRule,(c,a)=>({rule:Dr(c),index:a}))})),n.styleIds.push(o)}s.length>0&&(n.styles=s),this.adoptedStyleSheetCb(n)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(t){}}class Fi{constructor(){this.nodeMap=new WeakMap,this.active=!1}inOtherBuffer(t,r){const n=this.nodeMap.get(t);return n&&Array.from(n).some(s=>s!==r)}add(t,r){this.active||(this.active=!0,di(()=>{this.nodeMap=new WeakMap,this.active=!1})),this.nodeMap.set(t,(this.nodeMap.get(t)||new Set).add(r))}destroy(){}}let W,Ge;var kr;try{if(Array.from([1],e=>e*2)[0]!==2){const e=document.createElement("iframe");document.body.appendChild(e),Array.from=((kr=e.contentWindow)==null?void 0:kr.Array.from)||Array.from,document.body.removeChild(e)}}catch(e){console.debug("Unable to override Array.from",e)}const ee=Fs();function ie(e={}){const{emit:t,checkoutEveryNms:r,checkoutEveryNth:n,blockClass:s="rr
3-block",blockSelector:i=null,unblockSelector:o=null,ignoreClass:c="rr-ignore",ignoreSelector:a=null,maskAllText:u=!1,maskTextClass:d="rr-mask",unmaskTextClass:l=null,maskTextSelector:h=null,unmaskTextSelector:p=null,inlineStylesheet:f=!0,maskAllInputs:m,maskInputOptions:_,slimDOMOptions:y,maskAttributeFn:k,maskInputFn:N,maskTextFn:T,maxCanvasSize:I=null,packFn:S,sampling:R={},dataURLOptions:M={},mousemoveWait:g,recordDOM:b=!0,recordCanvas:L=!1,recordCrossOriginIframes:U=!1,recordAfter:H=e.recordAfter==="DOMContentLoaded"?e.recordAfter:"load",userTriggeredOnInput:j=!1,collectFonts:X=!1,inlineImages:D=!1,plugins:q,keepIframeSrcFn:z=()=>!1,ignoreCSSAttributes:Q=new Set([]),errorHandler:ne,onMutation:jt,getCanvasManager:En}=e;yi(ne);const Pe=U?window.parent===window:!0;let ke=!1;if(!Pe)try{window.parent.document&&(ke=!1)}catch{ke=!0}if(Pe&&!t)throw new Error("emit function is required");if(!Pe&&!ke)return()=>{};g!==void 0&&R.mousemove===void 0&&(R.mousemove=g),ee.reset();const ot=m===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,radio:!0,checkbox:!0}:_!==void 0?_:{},at=y===!0||y==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:y==="all",headMetaDescKeywords:y==="all"}:y||{};ai();let ct,ut=0;const qt=A=>{for(const Z of q||[])Z.eventProcessor&&(A=Z.eventProcessor(A));return S&&!ke&&(A=S(A)),A};W=(A,Z)=>{var J;const x=A;if(x.timestamp=Xe(),(J=_e[0])!=null&&J.isFrozen()&&x.type!==C.FullSnapshot&&!(x.type===C.IncrementalSnapshot&&x.data.source===E.Mutation)&&_e.forEach(te=>te.unfreeze()),Pe)t==null||t(qt(x),Z);else if(ke){const te={type:"rrweb",event:qt(x),origin:window.location.origin,isCheckout:Z};window.parent.postMessage(te,"*")}if(x.type===C.FullSnapshot)ct=x,ut=0;else if(x.type===C.IncrementalSnapshot){if(x.data.source===E.Mutation&&x.data.isAttachIframe)return;ut++;const te=n&&ut>=n,P=r&&ct&&x.timestamp-ct.timestamp>r;(te||P)&&ht(!0)}};const Fe=A=>{W({type:C.IncrementalSnapshot,data:{source:E.Mutation,...A}})},Kt=A=>W({type:C.IncrementalSnapshot,data:{source:E.Scroll,...A}}),bn=A=>W({type:C.IncrementalSnapshot,data:{source:E.CanvasMutation,...A}}),kn=A=>W({type:C.IncrementalSnapshot,data:{source:E.AdoptedStyleSheet,...A}}),ue=new Pi({mutationCb:Fe,adoptedStyleSheetCb:kn}),le=typeof __RRWEB_EXCLUDE_IFRAME__=="boolean"&&__RRWEB_EXCLUDE_IFRAME__?new Oi:new Di({mirror:ee,mutationCb:Fe,stylesheetManager:ue,recordCrossOriginIframes:U,wrappedEmit:W});for(const A of q||[])A.getMirror&&A.getMirror({nodeMirror:ee,crossOriginIframeMirror:le.crossOriginIframeMirror,crossOriginIframeStyleMirror:le.crossOriginIframeStyleMirror});const lt=new Fi,dt=Ui(En,{mirror:ee,win:window,mutationCb:A=>W({type:C.IncrementalSnapshot,data:{source:E.CanvasMutation,...A}}),recordCanvas:L,blockClass:s,blockSelector:i,unblockSelector:o,maxCanvasSize:I,sampling:R.canvas,dataURLOptions:M,errorHandler:ne}),Be=typeof __RRWEB_EXCLUDE_SHADOW_DOM__=="boolean"&&__RRWEB_EXCLUDE_SHADOW_DOM__?new Ai:new Ni({mutationCb:Fe,scrollCb:Kt,bypassOptions:{onMutation:jt,blockClass:s,blockSelector:i,unblockSelector:o,maskAllText:u,maskTextClass:d,unmaskTextClass:l,maskTextSelector:h,unmaskTextSelector:p,inlineStylesheet:f,maskInputOptions:ot,dataURLOptions:M,maskAttributeFn:k,maskTextFn:T,maskInputFn:N,recordCanvas:L,inlineImages:D,sampling:R,slimDOMOptions:at,iframeManager:le,stylesheetManager:ue,canvasManager:dt,keepIframeSrcFn:z,processedNodeManager:lt},mirror:ee}),ht=(A=!1)=>{if(!b)return;W({type:C.Meta,data:{href:window.location.href,width:jr(),height:$r()}},A),ue.reset(),Be.init(),_e.forEach(x=>x.lock());const Z=ii(document,{mirror:ee,blockClass:s,blockSelector:i,unblockSelector:o,maskAllText:u,maskTextClass:d,unmaskTextClass:l,maskTextSelector:h,unmaskTextSelector:p,inlineStylesheet:f,maskAllInputs:ot,maskAttributeFn:k,maskInputFn:N,maskTextFn:T,slimDOM:at,dataURLOptions:M,recordCanvas:L,inlineImages:D,onSerialize:x=>{Vr(x,ee)&&le.addIframe(x),Yr(x,ee)&&ue.trackLinkElement(x),wt(x)&&Be.addShadowRoot(x.shadowRoot,document)},onIframeLoad:(x,J)=>{le.attachIframe(x,J),x.contentWindow&&dt.addWindow(x.contentWindow),Be.observeAttachShadow(x)},onStylesheetLoad:(x,J)=>{ue.attachLinkElement(x,J)},keepIframeSrcFn:z});if(!Z)return console.warn("Failed to snapshot the document");W({type:C.FullSnapshot,data:{node:Z,initialOffset:Hr(window)}}),_e.forEach(x=>x.unlock()),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&ue.adoptStyleSheets(document.adoptedStyleSheets,ee.getId(document))};Ge=ht;try{const A=[],Z=J=>{var te;return O(xi)({onMutation:jt,mutationCb:Fe,mousemoveCb:(P,ft)=>W({type:C.IncrementalSnapshot,data:{source:ft,positions:P}}),mouseInteractionCb:P=>W({type:C.IncrementalSnapshot,data:{source:E.MouseInteraction,...P}}),scrollCb:Kt,viewportResizeCb:P=>W({type:C.IncrementalSnapshot,data:{source:E.ViewportResize,...P}}),inputCb:P=>W({type:C.IncrementalSnapshot,data:{source:E.Input,...P}}),mediaInteractionCb:P=>W({type:C.IncrementalSnapshot,data:{source:E.MediaInteraction,...P}}),styleSheetRuleCb:P=>W({type:C.IncrementalSnapshot,data:{source:E.StyleSheetRule,...P}}),styleDeclarationCb:P=>W({type:C.IncrementalSnapshot,data:{source:E.StyleDeclaration,...P}}),canvasMutationCb:bn,fontCb:P=>W({type:C.IncrementalSnapshot,data:{source:E.Font,...P}}),selectionCb:P=>{W({type:C.IncrementalSnapshot,data:{source:E.Selection,...P}})},customElementCb:P=>{W({type:C.IncrementalSnapshot,data:{source:E.CustomElement,...P}})},blockClass:s,ignoreClass:c,ignoreSelector:a,maskAllText:u,maskTextClass:d,unmaskTextClass:l,maskTextSelector:h,unmaskTextSelector:p,maskInputOptions:ot,inlineStylesheet:f,sampling:R,recordDOM:b,re
3cordCanvas:L,inlineImages:D,userTriggeredOnInput:j,collectFonts:X,doc:J,maskAttributeFn:k,maskInputFn:N,maskTextFn:T,keepIframeSrcFn:z,blockSelector:i,unblockSelector:o,slimDOMOptions:at,dataURLOptions:M,mirror:ee,iframeManager:le,stylesheetManager:ue,shadowDomManager:Be,processedNodeManager:lt,canvasManager:dt,ignoreCSSAttributes:Q,plugins:((te=q==null?void 0:q.filter(P=>P.observer))==null?void 0:te.map(P=>({observer:P.observer,options:P.options,callback:ft=>W({type:C.Plugin,data:{plugin:P.name,payload:ft}})})))||[]},{})};le.addLoadListener(J=>{try{A.push(Z(J.contentDocument))}catch(te){console.warn(te)}});const x=()=>{ht(),A.push(Z(document))};return document.readyState==="interactive"||document.readyState==="complete"?x():(A.push(V("DOMContentLoaded",()=>{W({type:C.DomContentLoaded,data:{}}),H==="DOMContentLoaded"&&x()})),A.push(V("load",()=>{W({type:C.Load,data:{}}),H==="load"&&x()},window))),()=>{A.forEach(J=>J()),lt.destroy(),Ge=void 0,Si()}}catch(A){console.warn(A)}}function Bi(e){if(!Ge)throw new Error("please take full snapshot after start recording");Ge(e)}ie.mirror=ee;ie.takeFullSnapshot=Bi;function Ui(e,t){try{return e?e(t):new pr}catch{return console.warn("Unable to initialize CanvasManager"),new pr}}var mr;(function(e){e[e.NotStarted=0]="NotStarted",e[e.Running=1]="Running",e[e.Stopped=2]="Stopped"})(mr||(mr={}));const zi=3,Wi=5;function Pt(e){return e>9999999999?e:e*1e3}function mt(e){return e>9999999999?e/1e3:e}function Le(e,t){t.category!=="sentry.transaction"&&(["ui.click","ui.input"].includes(t.category)?e.triggerUserActivity():e.checkAndHandleExpiredSession(),e.addUpdate(()=>(e.throttledAddEvent({type:C.Custom,timestamp:(t.timestamp||0)*1e3,data:{tag:"breadcrumb",payload:Rr(t,10,1e3)}}),t.category==="console")))}const Hi="button,a";function tn(e){return e.closest(Hi)||e}function rn(e){const t=nn(e);return!t||!(t instanceof Element)?t:tn(t)}function nn(e){return $i(e)?e.target:e}function $i(e){return typeof e=="object"&&!!e&&"target"in e}let ae;function ji(e){return ae||(ae=[],qi()),ae.push(e),()=>{const t=ae?ae.indexOf(e):-1;t>-1&&ae.splice(t,1)}}function qi(){zn(B,"open",function(e){return function(...t){if(ae)try{ae.forEach(r=>r())}catch{}return e.apply(B,t)}})}const Ki=new Set([E.Mutation,E.StyleSheetRule,E.StyleDeclaration,E.AdoptedStyleSheet,E.CanvasMutation,E.Selection,E.MediaInteraction]);function Vi(e,t,r){e.handleClick(t,r)}class Yi{constructor(t,r,n=Le){this._lastMutation=0,this._lastScroll=0,this._clicks=[],this._timeout=r.timeout/1e3,this._threshold=r.threshold/1e3,this._scrollTimeout=r.scrollTimeout/1e3,this._replay=t,this._ignoreSelector=r.ignoreSelector,this._addBreadcrumbEvent=n}addListeners(){const t=ji(()=>{this._lastMutation=gr()});this._teardown=()=>{t(),this._clicks=[],this._lastMutation=0,this._lastScroll=0}}removeListeners(){this._teardown&&this._teardown(),this._checkClickTimeout&&clearTimeout(this._checkClickTimeout)}handleClick(t,r){if(Ji(r,this._ignoreSelector)||!Gi(t))return;const n={timestamp:mt(t.timestamp),clickBreadcrumb:t,clickCount:0,node:r};this._clicks.some(s=>s.node===n.node&&Math.abs(s.timestamp-n.timestamp)<1)||(this._clicks.push(n),this._clicks.length===1&&this._scheduleCheckClicks())}registerMutation(t=Date.now()){this._lastMutation=mt(t)}registerScroll(t=Date.now()){this._lastScroll=mt(t)}registerClick(t){const r=tn(t);this._handleMultiClick(r)}_handleMultiClick(t){this._getClicks(t).forEach(r=>{r.clickCount++})}_getClicks(t){return this._clicks.filter(r=>r.node===t)}_checkClicks(){const t=[],r=gr();this._clicks.forEach(n=>{!n.mutationAfter&&this._lastMutation&&(n.mutationAfter=n.timestamp<=this._lastMutation?this._lastMutation-n.timestamp:void 0),!n.scrollAfter&&this._lastScroll&&(n.scrollAfter=n.timestamp<=this._lastScroll?this._lastScroll-n.timestamp:void 0),n.timestamp+this._timeout<=r&&t.push(n)});for(const n of t){const s=this._clicks.indexOf(n);s>-1&&(this._generateBreadcrumbs(n),this._clicks.splice(s,1))}this._clicks.length&&this._scheduleCheckClicks()}_generateBreadcrumbs(t){const r=this._replay,n=t.scrollAfter&&t.scrollAfter<=this._scrollTimeout,s=t.mutationAfter&&t.mutationAfter<=this._threshold,i=!n&&!s,{clickCount:o,clickBreadcrumb:c}=t;if(i){const a=Math.min(t.mutationAfter||this._timeout,this._timeout)*1e3,u=a<this._timeout*1e3?"mutation":"timeout",d={type:"default",message:c.message,timestamp:c.timestamp,category:"ui.slowClickDetected",data:{...c.data,url:B.location.href,route:r.getCurrentRoute(),timeAfterClickMs:a,endReason:u,clickCount:o||1}};this._addBreadcrumbEvent(r,d);return}if(o>1){const a={type:"default",message:c.message,timestamp:c.timestamp,category:"ui.multiClick",data:{...c.data,url:B.location.href,route:r.getCurrentRoute(),clickCount:o,metric:!0}};this._addBreadcrumbEvent(r,a)}}_scheduleCheckClicks(){this._checkClickTimeout&&clearTimeout(this._checkClickTimeout),this._checkClickTimeout=Ae(()=>this._checkClicks(),1e3)}}const Xi=["A","BUTTON","INPUT"];function Ji(e,t){return!!(!Xi.includes(e.tagName)||e.tagName==="INPUT"&&!["submit","button"].includes(e.getAttribute("type")||"")||e.tagName==="A"&&(e.hasAttribute("download")||e.hasAttribute("target")&&e.getAttribute("target")!=="_self")||t&&e.matches(t))}function Gi(e){return!!(e.data&&typeof e.data.nodeId=="number"&&e.timestamp)}function gr(){return Date.now()/1e3}
3function Qi(e,t){try{if(!Zi(t))return;const{source:r}=t.data;if(Ki.has(r)&&e.registerMutation(t.timestamp),r===E.Scroll&&e.registerScroll(t.timestamp),eo(t)){const{type:n,id:s}=t.data,i=ie.mirror.getNode(s);i instanceof HTMLElement&&n===K.Click&&e.registerClick(i)}}catch{}}function Zi(e){return e.type===zi}function eo(e){return e.data.source===E.MouseInteraction}function re(e){return{timestamp:Date.now()/1e3,type:"default",...e}}var Ft=(e=>(e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment",e))(Ft||{});const to=new Set(["id","class","aria-label","role","name","alt","title","data-test-id","data-testid","disabled","aria-disabled","data-sentry-component"]);function ro(e){const t={};!e["data-sentry-component"]&&e["data-sentry-element"]&&(e["data-sentry-component"]=e["data-sentry-element"]);for(const r in e)if(to.has(r)){let n=r;(r==="data-testid"||r==="data-test-id")&&(n="testId"),t[n]=e[r]}return t}const no=e=>t=>{if(!e.isEnabled())return;const r=so(t);if(!r)return;const n=t.name==="click",s=n?t.event:void 0;n&&e.clickDetector&&s&&s.target&&!s.altKey&&!s.metaKey&&!s.ctrlKey&&!s.shiftKey&&Vi(e.clickDetector,r,rn(t.event)),Le(e,r)};function sn(e,t){const r=ie.mirror.getId(e),n=r&&ie.mirror.getNode(r),s=n&&ie.mirror.getMeta(n),i=s&&oo(s)?s:null;return{message:t,data:i?{nodeId:r,node:{id:r,tagName:i.tagName,textContent:Array.from(i.childNodes).map(o=>o.type===Ft.Text&&o.textContent).filter(Boolean).map(o=>o.trim()).join(""),attributes:ro(i.attributes)}}:{}}}function so(e){const{target:t,message:r}=io(e);return re({category:`ui.${e.name}`,...sn(t,r)})}function io(e){const t=e.name==="click";let r,n=null;try{n=t?rn(e.event):nn(e.event),r=Cr(n,{maxStringLength:200})||"<unknown>"}catch{r="<unknown>"}return{target:n,message:r}}function oo(e){return e.type===Ft.Element}function ao(e,t){if(!e.isEnabled())return;e.updateUserActivity();const r=co(t);r&&Le(e,r)}function co(e){const{metaKey:t,shiftKey:r,ctrlKey:n,altKey:s,key:i,target:o}=e;if(!o||uo(o)||!i)return null;const c=t||n||s,a=i.length===1;if(!c&&a)return null;const u=Cr(o,{maxStringLength:200})||"<unknown>",d=sn(o,u);return re({category:"ui.keyDown",message:u,data:{...d.data,metaKey:t,shiftKey:r,ctrlKey:n,altKey:s,key:i}})}function uo(e){return e.tagName==="INPUT"||e.tagName==="TEXTAREA"||e.isContentEditable}const lo={resource:go,paint:po,navigation:mo};function $e(e,t){return({metric:r})=>void t.replayPerformanceEntries.push(e(r))}function ho(e){return e.map(fo).filter(Boolean)}function fo(e){const t=lo[e.entryType];return t?t(e):null}function Ee(e){return((jn()||B.performance.timeOrigin)+e)/1e3}function po(e){const{duration:t,entryType:r,name:n,startTime:s}=e,i=Ee(s);return{type:r,name:n,start:i,end:i+t,data:void 0}}function mo(e){const{entryType:t,name:r,decodedBodySize:n,duration:s,domComplete:i,encodedBodySize:o,domContentLoadedEventStart:c,domContentLoadedEventEnd:a,domInteractive:u,loadEventStart:d,loadEventEnd:l,redirectCount:h,startTime:p,transferSize:f,type:m}=e;return s===0?null:{type:`${t}.${m}`,start:Ee(p),end:Ee(i),name:r,data:{size:f,decodedBodySize:n,encodedBodySize:o,duration:s,domInteractive:u,domContentLoadedEventStart:c,domContentLoadedEventEnd:a,loadEventStart:d,loadEventEnd:l,domComplete:i,redirectCount:h}}}function go(e){const{entryType:t,initiatorType:r,name:n,responseEnd:s,startTime:i,decodedBodySize:o,encodedBodySize:c,responseStatus:a,transferSize:u}=e;return["fetch","xmlhttprequest"].includes(r)?null:{type:`${t}.${r}`,start:Ee(i),end:Ee(s),name:n,data:{size:u,statusCode:a,decodedBodySize:o,encodedBodySize:c}}}function yo(e){const t=e.entries[e.entries.length-1],r=t!=null&&t.element?[t.element]:void 0;return nt(e,"largest-contentful-paint",r)}function So(e){return e.sources!==void 0}function _o(e){const t=[],r=[];for(const n of e.entries)if(So(n)){const s=[];for(const i of n.sources)if(i.node){r.push(i.node);const o=ie.mirror.getId(i.node);o&&s.push(o)}t.push({value:n.value,nodeIds:s.length?s:void 0})}return nt(e,"cumulative-layout-shift",r,t)}function vo(e){const t=e.entries[e.entries.length-1],r=t!=null&&t.target?[t.target]:void 0;return nt(e,"first-input-delay",r)}function wo(e){const t=e.entries[e.entries.length-1],r=t!=null&&t.target?[t.target]:void 0;return nt(e,"interaction-to-next-paint",r)}function nt(e,t,r,n){const s=e.value,i=e.rating,o=Ee(s);return{type:"web-vital",name:t,start:o,end:o,data:{value:s,size:s,rating:i,nodeIds:r?r.map(c=>ie.mirror.getId(c)):void 0,attributions:n}}}function Eo(e){function t(s){e.performanceEntries.includes(s)||e.performanceEntries.push(s)}function r({entries:s}
3){s.forEach(t)}const n=[];return["navigation","paint","resource"].forEach(s=>{n.push(xn(s,r))}),n.push(On($e(yo,e)),Dn($e(_o,e)),An($e(vo,e)),Nn($e(wo,e))),()=>{n.forEach(s=>s())}}const v=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,bo='
vendor: 10,329 bytes, line 3
3var 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]),s=new t([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),a=function(t,e){for(var i=new n(31),s=0;s<31;++s)i[s]=e+=1<<t[s-1];var a=new r(i[30]);for(s=1;s<30;++s)for(var o=i[s];o<i[s+1];++o)a[o]=o-i[s]<<5|s;return{b:i,r:a}},o=a(e,2),h=o.b,f=o.r;h[28]=258,f[258]=28;for(var l=a(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,s=0,a=new n(r);s<i;++s)t[s]&&++a[t[s]-1];var o,h=new n(r);for(s=1;s<r;++s)h[s]=h[s-1]+a[s-1]<<1;if(e){o=new n(1<<r);var f=15-r;for(s=0;s<i;++s)if(t[s])for(var l=s<<4|t[s],c=r-t[s],v=h[t[s]-1]++<<c,d=v|(1<<c)-1;v<=d;++v)o[u[v]>>f]=l}else for(o=new n(i),s=0;s<i;++s)t[s]&&(o[s]=u[h[t[s]-1]++]>>15-t[s]);return o},p=new t(288);for(c=0;c<144;++c)p[c]=8;for(c=144;c<256;++c)p[c]=9;for(c=256;c<280;++c)p[c]=7;for(c=280;c<288;++c)p[c]=8;var g=new t(32);for(c=0;c<32;++c)g[c]=5;var w=d(p,9,0),y=d(g,5,0),m=function(t){return(t+7)/8|0},b=function(n,r,e){return(null==e||e>n.length)&&(e=n.length),new t(n.subarray(r,e))},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},_=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},x=function(r,e){for(var i=[],s=0;s<r.length;++s)r[s]&&i.push({s:s,f:r[s]});var a=i.length,o=i.slice();if(!a)return{t:F,l:0};if(1==a){var h=new t(i[0].s+1);return h[i[0].s]=1,{t:h,l:1}}i.sort(function(t,n){return t.f-n.f}),i.push({s:-1,f:25001});var f=i[0],l=i[1],u=0,c=1,v=2;for(i[0]={s:-1,f:f.f+l.f,l:f,r:l};c!=a-1;)f=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:f.f+l.f,l:f,r:l};var d=o[0].s;for(s=1;s<a;++s)o[s].s>d&&(d=o[s].s);var p=new n(d+1),g=A(i[c-1],p,0);if(g>e){s=0;var w=0,y=g-e,m=1<<y;for(o.sort(function(t,n){return p[n.s]-p[t.s]||t.f-n.f});s<a;++s){var b=o[s].s;if(!(p[b]>e))break;w+=m-(1<<g-p[b]),p[b]=e}for(w>>=y;w>0;){var M=o[s].s;p[M]<e?w-=1<<e-p[M]++-1:++s}for(;s>=0&&w;--s){var E=o[s].s;p[E]==e&&(--p[E],++w)}g=e}return{t:new t(p),l:g}},A=function(t,n,r){return-1==t.s?Math.max(A(t.l,n,r+1),A(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,s=t[0],a=1,o=function(t){e[i++]=t},h=1;h<=r;++h)if(t[h]==s&&h!=r)++a;else{if(!s&&a>2){for(;a>138;a-=138)o(32754);a>2&&(o(a>10?a-11<<5|28690:a-3<<5|12305),a=0)}else if(a>3){for(o(s),--a;a>6;a-=6)o(8304);a>2&&(o(a-3<<5|8208),a=0)}for(;a--;)o(s);a=1,s=t[h]}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 s=0;s<e;++s)t[i+s+4]=r[s];return 8*(i+4+e)},U=function(t,r,a,o,h,f,l,u,c,v,m){z(r,m++,a),++h[256];for(var b=x(h,15),M=b.t,E=b.l,A=x(f,15),U=A.t,C=A.l,F=D(M),I=F.c,S=F.n,L=D(U),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=x(q,7),H=G.t,J=G.l,K=19;K>4&&!H[s[K-1]];--K);var N,P,Q,R,V=v+5<<3,W=T(h,p)+T(f,g)+l,X=T(h,M)+T(f,U)+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(U,C,0),R=U;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[s[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=w,P=p,Q=y,R=g;for(B=0;B<u;++B){var rt=o[B];if(rt>255){_(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;_(r,m,Q[et]),m+=R[et],et>3&&(_(r,m,rt>>5&8191),m+=i[et])}else _(r,m,N[rt]),m+=P[rt]}return _(r,m,N[256]),m+P[256]},C=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,s=0|r.length,a=0;a!=s;){for(var o=Math.min(a+2655,s);a<o;++a)i+=e+=r[a];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(s,a,o,h,u){if(!u&&(u={l:1},a.dictionary)){var c=a.dictionary.subarray(-32768),v=new t(c.length+s.length);v.set(c),v.set(s,c.length),s=v,u.w=c.length}return function(s,a,o,h,u,c){var v=c.z||s.length,d=new t(h+v+5*(1+Math.ceil(v/7e3))+u),p=d.subarray(h,d.length-u),g=c.l,w=7&(c.r||0);if(a){w&&(p[0]=c.r>>3);for(var y=C[a-1],M=y>>13,E=8191&y,z=(1<<o)-1,_=c.p||new n(32768),x=c.h||new n(z+1),A=Math.ceil(o/3),D=2*A,T=function(t){return(s[t]^s[t+1]<<A^s[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=x[H];if(_[J]=K,x[H]=J,B<=j){var N=v-j;if((L>7e3||q>24576)&&(N>423||!g)){w=U(s,p,0,F,I,S,O,q,G,j-G,w),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(s[j+Q]==s[j+Q-W]){for(var $=0;$<Z&&s[j+$]==s[j+$-W];++$);if($>Q){if(Q=$,R=W,$>X)break;var tt=Math.min(W,$-2),nt=0;for(P=0;P<tt;++P){var rt=j-W+P&32767,et=rt-_[rt]&32767;et>nt&&(nt=et,K=rt)}}}W+=(J=K)-(K=_[J])&32767}if(R){F[q++]=268435456|f[Q]<<18|l[R];var it=31&f[Q],st=31&l[R];O+=e[it]+i[st],++I[257+it],++S[st],B=j+Q,++L}else F[q++]=s[j],++I[s[j]]}}for(j=Math.max(j,B);j<v;++j)F[q++]=s[j],++I[s[j]];w=U(s,p,g,F,I,S,O,q,G,j-G,w),g||(c.r=7&w|p[w/8|0]<<3,w-=7,c.h=x,c.p=_,c.i=j,c.w=B)}else{for(j=c.w||0;j<v+g;j+=65535){var at=j+65535;at>=v&&(p[w/8|0]=g,at=v),w=k(p,w+1,s.subarray(j,at))}c.i=v}return b(d,0,h+m(w)+u)}(s,null==a.level?6:a.level,null==a.mem?u.l?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(s.length)))):20:12+a.mem,o,h,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 s=this.b.length-this.s.z;this.b.set(n.subarray(0,s),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(s),32768),this.s.z=n.length-s+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.prototype.flush=function(){this.ondata||E(5),this.s.l&&E(4),this.p(this.b,!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,s=L(t,n,10+((i=n).filename?i.filename.length+1:0),8),a=s.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)}}(s,n),O(s,a-8,r.d()),O(s,a-4,e),s}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.prototype.flush=function(){j.prototype.flush.call(this)},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(G)return G.encode(n);for(var e=n.length,i=new t(n.length+(n.length>>1)),s=0,a=function(t){i[s++]=t},o=0;o<e;++o){if(s+5>i.length){var h=new t(s+8+(e-o<<1));h.set(i),i=h}var f=n.charCodeAt(o);f<128||r?a(f):f<2048?(a(192|f>>6),a(128|63&f)):f>55295&&f<57344?(a(240|(f=65536+(1047552&f)|1023&n.charCodeAt(++o))>>18),a(128|f>>12&63),a(128|f>>6&63),a(128|63&f)):(a(224|f>>12),a(128|f>>6&63),a(128|63&f))}return b(i,0,s)}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(const r of t)n+=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});
3';function ko(){const e=new Blob([bo]);return URL.createObjectURL(e)}const yr=["info","warn","error","log"],qe="[Replay] ";function gt(e,t="info"){Zn({category:"console",data:{logger:"replay"},level:t,message:`${qe}${e}`},{level:t})}function Io(){let e=!1,t=!1;const r={exception:()=>{},infoTick:()=>{},setConfig:n=>{e=!!n.captureExceptions,t=!!n.traceInternals}};return v?(yr.forEach(n=>{r[n]=(...s)=>{je[n](qe,...s),t&&gt(s.join(""),es(n))}}),r.exception=(n,...s)=>{s.length&&r.error&&r.error(...s),je.error(qe,n),e?qn(n):t&&gt(n,"error")},r.infoTick=(...n)=>{je.info(qe,...n),t&&setTimeout(()=>gt(n[0]),0)}):yr.forEach(n=>{r[n]=()=>{}}),r}const w=Io();class Bt extends Error{constructor(){super(`Event buffer exceeded maximum size of ${xt}.`)}}class on{constructor(){this.events=[],this._totalSize=0,this.hasCheckout=!1,this.waitForCheckout=!1}get hasEvents(){return this.events.length>0}get type(){return"sync"}destroy(){this.events=[]}async addEvent(t){const r=JSON.stringify(t).length;if(this._totalSize+=r,this._totalSize>xt)throw new Bt;this.events.push(t)}finish(){return new Promise(t=>{const r=this.events;this.clear(),t(JSON.stringify(r))})}clear(){this.events=[],this._totalSize=0,this.hasCheckout=!1}getEarliestTimestamp(){const t=this.events.map(r=>r.timestamp).sort()[0];return t?Pt(t):null}}class Co{constructor(t){this._worker=t,this._id=0}ensureReady(){return this._ensureReadyPromise?this._ensureReadyPromise:(this._ensureReadyPromise=new Promise((t,r)=>{this._worker.addEventListener("message",({data:n})=>{n.success?t():r()},{once:!0}),this._worker.addEventListener("error",n=>{r(n)},{once:!0})}),this._ensureReadyPromise)}destroy(){v&&w.info("Destroying compression worker"),this._worker.terminate()}postMessage(t,r){const n=this._getAndIncrementId();return new Promise((s,i)=>{const o=({data:c})=>{const a=c;if(a.method===t&&a.id===n){if(this._worker.removeEventListener("message",o),!a.success){v&&w.error("Error in compression worker: ",a.response),i(new Error("Error in compression worker"));return}s(a.response)}};this._worker.addEventListener("message",o),this._worker.postMessage({id:n,method:t,arg:r})})}_getAndIncrementId(){return this._id++}}class Mo{constructor(t){this._worker=new Co(t),this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this.waitForCheckout=!1}get hasEvents(){return!!this._earliestTimestamp}get type(){return"worker"}ensureReady(){return this._worker.ensureReady()}destroy(){this._worker.destroy()}addEvent(t){const r=Pt(t.timestamp);(!this._earliestTimestamp||r<this._earliestTimestamp)&&(this._earliestTimestamp=r);const n=JSON.stringify(t);return this._totalSize+=n.length,this._totalSize>xt?Promise.reject(new Bt):this._sendEventToWorker(n)}finish(){return this._finishRequest()}clear(){this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this._worker.postMessage("clear").then(null,t=>{v&&w.exception(t,'Sending "clear" message to worker failed',t)})}getEarliestTimestamp(){return this._earliestTimestamp}_sendEventToWorker(t){return this._worker.postMessage("addEvent",t)}async _finishRequest(){const t=await this._worker.postMessage("finish");return this._earliestTimestamp=null,this._totalSize=0,t}}class Ro{constructor(t){this._fallback=new on,this._compression=new Mo(t),this._used=this._fallback,this._ensureWorkerIsLoadedPromise=this._ensureWorkerIsLoaded()}get waitForCheckout(){return this._used.waitForCheckout}get type(){return this._used.type}get hasEvents(){return this._used.hasEvents}get hasCheckout(){return this._used.hasCheckout}set hasCheckout(t){this._used.hasCheckout=t}set waitForCheckout(t){this._used.waitForCheckout=t}destroy(){this._fallback.destroy(),this._compression.destroy()}clear(){return this._used.clear()}getEarliestTimestamp(){return this._used.getEarliestTimestamp()}addEvent(t){return this._used.addEvent(t)}async finish(){return await this.ensureWorkerIsLoaded(),this._used.finish()}ensureWorkerIsLoaded(){return this._ensureWorkerIsLoadedPromise}async _ensureWorkerIsLoaded(){try{await this._compression.ensureReady()}catch(t){v&&w.exception(t,"Failed to load the compression worker, falling back to simple buffer");return}await this._switchToCompressionWorker()}async _switchToCompressionWorker(){const{events:t,hasCheckout:r,waitForCheckout:n}=this._fallback,s=[];for(const i of t)s.push(this._compression.addEvent(i));this._compression.hasCheckout=r,this._compression.waitForCheckout=n,this._used=this._compression;try{await Promise.all(s),this._fallback.clear()}catch(i){v&&w.exception(i,"Failed to add events when switching buffers.")}}}function To({useCompression:e,workerUrl:t}){if(e&&window.Worker){const r=xo(t);if(r)return r}return v&&w.info("Using simple buffer"),new on}function xo(e){try{const t=e||Oo();if(!t)return;v&&w.info(`Using compression worker${e?` from ${e}`:""}`);const r=new Worker(t);return new Ro(r)}catch(t){v&&w.exception(t,"Failed to create compression worker")}}function Oo(){return typeof __SENTRY_EXCLUDE_REPLAY_WORKER__>"u"||!__SENTRY_EXCLUDE_REPLAY_WORKER__?ko():""}function Ut(){try{return"sessionStorage"in B&&!!B.sessionStorage}catch{return!1}}function Do(e){Ao(),e.session=void 0}function Ao(){if(Ut())try{B.sessionStorage.removeItem(Rt)}catch{}}function an(e){return e===void 0?!1:Math.random()<e}function zt(e){if(Ut())try{B.sessionStorage.setItem(Rt,JSON.stringify(e))}catch{}}function cn(e){const t=Date.now(),r=e.id||Kn(),n=e.started||t,s=e.lastActivity||t,i=e.segmentId||0,o=e.sampled,c=e.previousSessionId;return{id:r,started:n,lastActivity:s,segmentId:i,sampled:o,previousSessionId:c}}function No(e,t){return an(e)?"session":t?"buffer":!1}function Sr({sessionSampleRate:e,allowBuffering:t,stickySession:r=!1},{previousSessionId:n}={}){const s=No(e,t),i=cn({sampled:s,previousSessionId:n});return r&&zt(i),i}function Lo(){if(!Ut())return null;try{const e=B.sessionStorage.getItem(Rt);if(!e)return null;const t=JSON.parse(e);return v&&w.infoTick("Loading existing session"),cn(t)}catch{return null}}function kt(e,t,r=+new Date){return e===null||t===void 0||t<0?!0:t===0?!1:e+t<=r}function un(e,{maxReplayDuration:t,sessionIdleExpire:r,targetTime:n=Date.now()}){return kt(e.started,t,n)||kt(e.lastActivity,r,n)}function ln(e,{sessionIdleExpire:t,maxReplayDuration:r}){return!(!un(e,{sessionIdleExpire:t,maxReplayDuration:r})||e.sampled==="buffer"&&e.segmentId===0)}function yt({sessionIdleExpire:e,maxReplayDuration:t,previousSessionId:r},n){const s=n.stickySession&&Lo();return s?ln(s,{sessionIdleExpire:e,maxReplayDuration:t})?(v&&w.infoTick("Session in sessionStorage is expired, creating new one..."),Sr(n,{previousSessionId:s.id})):s:(v&&w.infoTick("Creating new session"),Sr(n,{previousSessionId:r}))}function Po(e){return e.type===C.Custom}function Wt(e,t,r){return hn(e,t)?(dn(e,t,r),!0):!1}function Fo(e,t,r){return hn(e,t)?dn(e,t,r):Promise.resolve(null)}async function dn(e,t,r){const{eventBuffer:n}=e;if(!n||n.waitForCheckout&&!r)return null;const s=e.recordingMode==="buffer";try{r&&s&&n.clear(),r&&(n.hasCheckout=!0,n.waitForCheckout=!1);const i=e.getOptions(),o=Bo(t,i.beforeAddRecordingEvent);return o?await n.addEvent(o):void 0}catch(i){const o=i&&i instanceof Bt,c=o?"addEventSizeExceeded":"addEvent";if(o&&s)return n.clear(),n.waitForCheckout=!0,null;e.handleException(i),await e.stop({reason:c});const a=he();a&&a.recordDroppedEvent("internal_sdk_error","replay")}}
3function hn(e,t){if(!e.eventBuffer||e.isPaused()||!e.isEnabled())return!1;const r=Pt(t.timestamp);return r+e.timeouts.sessionIdlePause<Date.now()?!1:r>e.getContext().initialTimestamp+e.getOptions().maxReplayDuration?(v&&w.infoTick(`Skipping event with timestamp ${r} because it is after maxReplayDuration`),!1):!0}function Bo(e,t){try{if(typeof t=="function"&&Po(e))return t(e)}catch(r){return v&&w.exception(r,"An error occurred in the `beforeAddRecordingEvent` callback, skipping the event..."),null}return e}function Ht(e){return!e.type}function It(e){return e.type==="transaction"}function Uo(e){return e.type==="replay_event"}function _r(e){return e.type==="feedback"}function zo(e){return(t,r)=>{if(!e.isEnabled()||!Ht(t)&&!It(t))return;const n=r==null?void 0:r.statusCode;if(!(!n||n<200||n>=300)){if(It(t)){Wo(e,t);return}Ho(e,t)}}}function Wo(e,t){var n,s;const r=e.getContext();(s=(n=t.contexts)==null?void 0:n.trace)!=null&&s.trace_id&&r.traceIds.size<100&&r.traceIds.add(t.contexts.trace.trace_id)}function Ho(e,t){const r=e.getContext();if(t.event_id&&r.errorIds.size<100&&r.errorIds.add(t.event_id),e.recordingMode!=="buffer"||!t.tags||!t.tags.replayId)return;const{beforeErrorSampling:n}=e.getOptions();typeof n=="function"&&!n(t)||Ae(async()=>{try{await e.sendBufferedReplayOrFlush()}catch(s){e.handleException(s)}})}function $o(e){return t=>{!e.isEnabled()||!Ht(t)||jo(e,t)}}function jo(e,t){var n,s,i;const r=(i=(s=(n=t.exception)==null?void 0:n.values)==null?void 0:s[0])==null?void 0:i.value;if(typeof r=="string"&&(r.match(/(reactjs\.org\/docs\/error-decoder\.html\?invariant=|react\.dev\/errors\/)(418|419|422|423|425)/)||r.match(/(does not match server-rendered HTML|Hydration failed because)/i))){const o=re({category:"replay.hydrate-error",data:{url:Wn()}});Le(e,o)}}function qo(e){const t=he();t&&t.on("beforeAddBreadcrumb",r=>Ko(e,r))}function Ko(e,t){if(!e.isEnabled()||!fn(t))return;const r=Vo(t);r&&Le(e,r)}function Vo(e){return!fn(e)||["fetch","xhr","sentry.event","sentry.transaction"].includes(e.category)||e.category.startsWith("ui.")?null:e.category==="console"?Yo(e):re(e)}function Yo(e){var s;const t=(s=e.data)==null?void 0:s.arguments;if(!Array.isArray(t)||t.length===0)return re(e);let r=!1;const n=t.map(i=>{if(!i)return i;if(typeof i=="string")return i.length>Ue?(r=!0,`${i.slice(0,Ue)}…`):i;if(typeof i=="object")try{const o=Rr(i,7);return JSON.stringify(o).length>Ue?(r=!0,`${JSON.stringify(o,null,2).slice(0,Ue)}…`):o}catch{}return i});return re({...e,data:{...e.data,arguments:n,...r?{_meta:{warnings:["CONSOLE_ARG_TRUNCATED"]}}:{}}})}function fn(e){return!!e.category}function Xo(e,t){var r;return e.type||!e.exception||!e.exception.values||!e.exception.values.length?!1:!!((r=t.originalException)!=null&&r.__rrweb__)}function pn(){const e=Mr().getPropagationContext().dsc;e&&delete e.replay_id;const t=Ir();if(t){const r=Ln(t);delete r.replay_id}}function Jo(e,t){e.triggerUserActivity(),e.addUpdate(()=>t.timestamp?(e.throttledAddEvent({type:C.Custom,timestamp:t.timestamp*1e3,data:{tag:"breadcrumb",payload:{timestamp:t.timestamp,type:"default",category:"sentry.feedback",data:{feedbackId:t.event_id}}}}),!1):!0)}function Go(e,t){return e.recordingMode!=="buffer"||t.message===Tt||!t.exception||t.type?!1:an(e.getOptions().errorSampleRate)}function Qo(e){return Object.assign((t,r)=>!e.isEnabled()||e.isPaused()?t:Uo(t)?(delete t.breadcrumbs,t):!Ht(t)&&!It(t)&&!_r(t)?t:e.checkAndHandleExpiredSession()?_r(t)?(e.flush(),t.contexts.feedback.replay_id=e.getSessionId(),Jo(e,t),t):Xo(t,r)&&!e.getOptions()._experiments.captureExceptions?(v&&w.log("Ignoring error from rrweb internals",t),null):((Go(e,t)||e.recordingMode==="session")&&(t.tags={...t.tags,replayId:e.getSessionId()}),t):(pn(),t),{id:"Replay"})}function st(e,t){return t.map(({type:r,start:n,end:s,name:i,data:o})=>{const c=e.throttledAddEvent({type:C.Custom,timestamp:n,data:{tag:"performanceSpan",payload:{op:r,description:i,startTimestamp:n,endTimestamp:s,data:o}}});return typeof c=="string"?Promise.resolve(null):c})}function Zo(e){const{from:t,to:r}=e,n=Date.now()/1e3;return{type:"navigation.push",start:n,end:n,name:r,data:{previous:t}}}function ea(e){return t=>{if(!e.isEnabled())return;const r=Zo(t);r!==null&&(e.getContext().urls.push(r.name),e.triggerUserActivity(),e.addUpdate(()=>(st(e,[r]),!1)))}}function ta(e,t){return v&&e.getOptions()._experiments.traceInternals?!1:rs(t,he())}function mn(e,t){e.isEnabled()&&t!==null&&(ta(e,t.name)||e.addUpdate(()=>(st(e,[t]),!0)))}function it(e){if(!e)return;const t=new TextEncoder;try{if(typeof e=="string")return t.encode(e).length;if(e instanceof URLSearchParams)return t.encode(e.toString()).length;if(e instanceof FormData){const r=Tr(e);return t.encode(r).length}if(e instanceof Blob)return e.size;if(e instanceof ArrayBuffer)return e.byteLength}catch{}}function gn(e){if(!e)return;const t=parseInt(e,10);return isNaN(t)?void 0:t}function Qe(e,t){if(!e)return{headers:{},size:void 0,_meta:{warnings:[t]}};const r={...e._meta},n=r.warnings||[];return r.warnings=[...n,t],e._meta=r,e}function yn(e,t){if(!t)return null;const{startTimestamp:r,endTimestamp:n,url:s,method:i,statusCode:o,request:c,response:a}=t;return{type:e,start:r/1e3,end:n/1e3,name:s,data:{method:i,statusCode:o,request:c,response:a}}}function De(e){return{headers:{},size:e,_meta:{warnings:["URL_SKIPPED"]}}}function ce(e,t,r){if(!t&&Object.keys(e).length===0)return;if(!t)return{headers:e};if(!r)return{headers:e,size:t};const n={headers:e,size:t},{body:s,warnings:i}=ra(r);return n.body=s,i!=null&&i.length&&(n._meta={warnings:i}),n}function Ct(e,t){return Object.entries(e).reduce((r,[n,s])=>{const i=n.toLowerCase();return t.includes(i)&&e[n]&&(r[i]=s),r},{})}function ra(e){if(!e||typeof e!="string")return{body:e};const t=e.length>Zt,r=na(e);if(t){const n=e.slice(0,Zt);return r?{body:n,warnings:["MAYBE_JSON_TRUNCATED"]}:{body:`${n}…`,warnings:["TEXT_TRUNCATED"]}}if(r)try{return{body:JSON.parse(e)}}catch{}return{body:e}}function na(e){const t=e[0],r=e[e.length-1];return t==="["&&r==="]"||t==="{"&&r==="}"}function Ze(e,t){const r=sa(e);return ts(r,t)}function sa(e,t=B.document.baseURI){if(e.startsWith("http://")||e.startsWith("https://")||e.startsWith(B.location.origin))return e;
3const r=new URL(e,t);if(r.origin!==new URL(t).origin)return e;const n=r.href;return!e.endsWith("/")&&n.endsWith("/")?n.slice(0,-1):n}async function ia(e,t,r){try{const n=await aa(e,t,r),s=yn("resource.fetch",n);mn(r.replay,s)}catch(n){v&&w.exception(n,"Failed to capture fetch breadcrumb")}}function oa(e,t){const{input:r,response:n}=t,s=r?Or(r):void 0,i=it(s),o=n?gn(n.headers.get("content-length")):void 0;i!==void 0&&(e.data.request_body_size=i),o!==void 0&&(e.data.response_body_size=o)}async function aa(e,t,r){const n=Date.now(),{startTimestamp:s=n,endTimestamp:i=n}=t,{url:o,method:c,status_code:a=0,request_body_size:u,response_body_size:d}=e.data,l=Ze(o,r.networkDetailAllowUrls)&&!Ze(o,r.networkDetailDenyUrls),h=l?ca(r,t.input,u):De(u),p=await ua(l,r,t.response,d);return{startTimestamp:s,endTimestamp:i,url:o,method:c,statusCode:a,request:h,response:p}}function ca({networkCaptureBodies:e,networkRequestHeaders:t},r,n){const s=r?ha(r,t):{};if(!e)return ce(s,n,void 0);const i=Or(r),[o,c]=xr(i,w),a=ce(s,n,o);return c?Qe(a,c):a}async function ua(e,{networkCaptureBodies:t,networkResponseHeaders:r},n,s){if(!e&&s!==void 0)return De(s);const i=n?Sn(n.headers,r):{};if(!n||!t&&s!==void 0)return ce(i,s,void 0);const[o,c]=await da(n),a=la(o,{networkCaptureBodies:t,responseBodySize:s,captureDetails:e,headers:i});return c?Qe(a,c):a}function la(e,{networkCaptureBodies:t,responseBodySize:r,captureDetails:n,headers:s}){try{const i=e!=null&&e.length&&r===void 0?it(e):r;return n?t?ce(s,i,e):ce(s,i,void 0):De(i)}catch(i){return v&&w.exception(i,"Failed to serialize response body"),ce(s,r,void 0)}}async function da(e){const t=fa(e);if(!t)return[void 0,"BODY_PARSE_ERROR"];try{return[await pa(t)]}catch(r){return r instanceof Error&&r.message.indexOf("Timeout")>-1?(v&&w.warn("Parsing text body from response timed out"),[void 0,"BODY_PARSE_TIMEOUT"]):(v&&w.exception(r,"Failed to get text body from response"),[void 0,"BODY_PARSE_ERROR"])}}function Sn(e,t){const r={};return t.forEach(n=>{e.get(n)&&(r[n]=e.get(n))}),r}function ha(e,t){return e.length===1&&typeof e[0]!="string"?vr(e[0],t):e.length===2?vr(e[1],t):{}}function vr(e,t){if(!e)return{};const r=e.headers;return r?r instanceof Headers?Sn(r,t):Array.isArray(r)?{}:Ct(r,t):{}}function fa(e){try{return e.clone()}catch(t){v&&w.exception(t,"Failed to clone response body")}}function pa(e){return new Promise((t,r)=>{const n=Ae(()=>r(new Error("Timeout while trying to read response body")),500);ma(e).then(s=>t(s),s=>r(s)).finally(()=>clearTimeout(n))})}async function ma(e){return await e.text()}async function ga(e,t,r){try{const n=Sa(e,t,r),s=yn("resource.xhr",n);mn(r.replay,s)}catch(n){v&&w.exception(n,"Failed to capture xhr breadcrumb")}}function ya(e,t){const{xhr:r,input:n}=t;if(!r)return;const s=it(n),i=r.getResponseHeader("content-length")?gn(r.getResponseHeader("content-length")):Ea(r.response,r.responseType);s!==void 0&&(e.data.request_body_size=s),i!==void 0&&(e.data.response_body_size=i)}function Sa(e,t,r){const n=Date.now(),{startTimestamp:s=n,endTimestamp:i=n,input:o,xhr:c}=t,{url:a,method:u,status_code:d=0,request_body_size:l,response_body_size:h}=e.data;if(!a)return null;if(!c||!Ze(a,r.networkDetailAllowUrls)||Ze(a,r.networkDetailDenyUrls)){const S=De(l),R=De(h);return{startTimestamp:s,endTimestamp:i,url:a,method:u,statusCode:d,request:S,response:R}}const p=c[Vn],f=p?Ct(p.request_headers,r.networkRequestHeaders):{},m=Ct(_a(c),r.networkResponseHeaders),[_,y]=r.networkCaptureBodies?xr(o,w):[void 0],[k,N]=r.networkCaptureBodies?va(c):[void 0],T=ce(f,l,_),I=ce(m,h,k);return{startTimestamp:s,endTimestamp:i,url:a,method:u,statusCode:d,request:y?Qe(T,y):T,response:N?Qe(I,N):I}}function _a(e){const t=e.getAllResponseHeaders();return t?t.split(`\r
4`).reduce((r,n)=>{const[s,i]=n.split(": ");return i&&(r[s.toLowerCase()]=i),r},{}):{}}function va(e){const t=[];try{return[e.responseText]}catch(r){t.push(r)}try{return wa(e.response,e.responseType)}catch(r){t.push(r)}return v&&w.warn("Failed to get xhr response body",...t),[void 0]}function wa(e,t){try{if(typeof e=="string")return[e];if(e instanceof Document)return[e.body.outerHTML];if(t==="json"&&e&&typeof e=="object")return[JSON.stringify(e)];if(!e)return[void 0]}catch(r){return v&&w.exception(r,"Failed to serialize body",e),[void 0,"BODY_PARSE_ERROR"]}return v&&w.info("Skipping network body because of body type",e),[void 0,"UNPARSEABLE_BODY_TYPE"]}function Ea(e,t){try{const r=t==="json"&&e&&typeof e=="object"?JSON.stringify(e):e;return it(r)}catch{return}}function ba(e){const t=he();try{const{networkDetailAllowUrls:r,networkDetailDenyUrls:n,networkCaptureBodies:s,networkRequestHeaders:i,networkResponseHeaders:o}=e.getOptions(),c={replay:e,networkDetailAllowUrls:r,networkDetailDenyUrls:n,networkCaptureBodies:s,networkRequestHeaders:i,networkResponseHeaders:o};t&&t.on("beforeAddBreadcrumb",(a,u)=>ka(c,a,u))}catch{}}function ka(e,t,r){if(t.data)try{Ia(t)&&Ma(r)&&(ya(t,r),ga(t,r,e)),Ca(t)&&Ra(r)&&(oa(t,r),ia(t,r,e))}catch(n){v&&w.exception(n,"Error when enriching network breadcrumb")}}function Ia(e){return e.category==="xhr"}function Ca(e){return e.category==="fetch"}function Ma(e){return e==null?void 0:e.xhr}function Ra(e){return e==null?void 0:e.response}function Ta(e,{autoFlushOnFeedback:t}){const r=he();Pn(no(e)),Fn(ea(e)),qo(e),ba(e);const n=Qo(e);Bn(n),r&&(r.on("beforeSendEvent",$o(e)),r.on("afterSendEvent",zo(e)),r.on("createDsc",s=>{const i=e.getSessionId();i&&e.isEnabled()&&e.recordingMode==="session"&&e.checkAndHandleExpiredSession()&&(s.replay_id=i)}),r.on("spanStart",s=>{e.lastActiveSpan=s}),r.on("spanEnd",s=>{e.lastActiveSpan=s}),r.on("beforeSendFeedback",async(s,i)=>{var c;const o=e.getSessionId();i!=null&&i.includeReplay&&e.isEnabled()&&o&&((c=s.contexts)!=null&&c.feedback)&&(s.contexts.feedback.source==="api"&&t&&await e.flush(),s.contexts.feedback.replay_id=o)}),t&&r.on("openFeedbackWidget",async()=>{await e.flush()}))}async function xa(e){try{return Promise.all(st(e,[Oa(B.performance.memory)]))}catch{return[]}}function Oa(e){const{jsHeapSizeLimit:t,totalJSHeapSize:r,usedJSHeapSize:n}=e,s=Date.now()/1e3;return{type:"memory",name:"memory",start:s,end:s,data:{memory:{jsHeapSizeLimit:t,totalJSHeapSize:r,usedJSHeapSize:n}}}}function Da(e,t,r){return as(e,t,{...r,setTimeoutImpl:Ae})}const G=Mt.navigator;function Aa(){return/iPhone|iPad|iPod/i.test((G==null?void 0:G.userAgent)??"")||/Macintosh/i.test((G==null?void 0:G.userAgent)??"")&&(G!=null&&G.maxTouchPoints)&&(G==null?void 0:G.maxTouchPoints)>1?{sampling:{mousemove:!1}}:{}}function Na(e){let t=!1;return(r,n)=>{if(!e.checkAndHandleExpiredSession()){v&&w.warn("Received replay event after session expired.");return}const s=n||!t;t=!0,e.clickDetector&&Qi(e.clickDetector,r),e.addUpdate(()=>{if(e.recordingMode==="buffer"&&s&&e.setInitialState(),!Wt(e,r,s))return!0;
4if(!s)return!1;const i=e.session;if(Pa(e,s),e.recordingMode==="buffer"&&i&&e.eventBuffer){const o=e.eventBuffer.getEarliestTimestamp();o&&(v&&w.info(`Updating session start time to earliest event in buffer to ${new Date(o)}`),i.started=o,e.getOptions().stickySession&&zt(i))}return i!=null&&i.previousSessionId||e.recordingMode==="session"&&e.flush(),!0})}}function La(e){const t=e.getOptions();return{type:C.Custom,timestamp:Date.now(),data:{tag:"options",payload:{shouldRecordCanvas:e.isRecordingCanvas(),sessionSampleRate:t.sessionSampleRate,errorSampleRate:t.errorSampleRate,useCompressionOption:t.useCompression,blockAllMedia:t.blockAllMedia,maskAllText:t.maskAllText,maskAllInputs:t.maskAllInputs,useCompression:e.eventBuffer?e.eventBuffer.type==="worker":!1,networkDetailHasUrls:t.networkDetailAllowUrls.length>0,networkCaptureBodies:t.networkCaptureBodies,networkRequestHasHeaders:t.networkRequestHeaders.length>0,networkResponseHasHeaders:t.networkResponseHeaders.length>0}}}}function Pa(e,t){!t||!e.session||e.session.segmentId!==0||Wt(e,La(e),!1)}function Fa(e){if(!e)return null;try{return e.nodeType===e.ELEMENT_NODE?e:e.parentElement}catch{return null}}function Ba(e,t,r,n){return Yn(Xn(e,Jn(e),n,r),[[{type:"replay_event"},e],[{type:"replay_recording",length:typeof t=="string"?new TextEncoder().encode(t).length:t.length},t]])}function Ua({recordingData:e,headers:t}){let r;const n=`${JSON.stringify(t)}
5`;if(typeof e=="string")r=`${n}${e}`;else{const i=new TextEncoder().encode(n);r=new Uint8Array(i.length+e.length),r.set(i),r.set(e,i.length)}return r}async function za({client:e,scope:t,replayId:r,event:n}){const s=typeof e._integrations=="object"&&e._integrations!==null&&!Array.isArray(e._integrations)?Object.keys(e._integrations):void 0,i={event_id:r,integrations:s};e.emit("preprocessEvent",n,i);const o=await Gn(e.getOptions(),n,i,t,e,Qn());if(!o)return null;e.emit("postprocessEvent",o,i),o.platform=o.platform||"javascript";const c=e.getSdkMetadata(),{name:a,version:u}=(c==null?void 0:c.sdk)||{};return o.sdk={...o.sdk,name:a||"sentry.javascript.unknown",version:u||"0.0.0"},o}async function Wa({recordingData:e,replayId:t,segmentId:r,eventContext:n,timestamp:s,session:i}){const o=Ua({recordingData:e,headers:{segment_id:r}}),{urls:c,errorIds:a,traceIds:u,initialTimestamp:d}=n,l=he(),h=Mr(),p=l==null?void 0:l.getTransport(),f=l==null?void 0:l.getDsn();if(!l||!p||!f||!i.sampled)return Jt({});const m={type:gs,replay_start_timestamp:d/1e3,timestamp:s/1e3,error_ids:a,trace_ids:u,urls:c,replay_id:t,segment_id:r,replay_type:i.sampled},_=await za({scope:h,client:l,replayId:t,event:m});if(!_)return l.recordDroppedEvent("event_processor","replay"),v&&w.info("An event processor returned `null`, will not send event."),Jt({});delete _.sdkProcessingMetadata;const y=Ba(_,o,f,l.getOptions().tunnel);let k;try{k=await p.send(y)}catch(T){const I=new Error(Tt);try{I.cause=T}catch{}throw I}if(typeof k.statusCode=="number"&&(k.statusCode<200||k.statusCode>=300))throw new _n(k.statusCode);const N=Hn({},k);if($n(N,"replay"))throw new $t(N);return k}class _n extends Error{constructor(t){super(`Transport returned status code ${t}`)}}class $t extends Error{constructor(t){super("Rate limit hit"),this.rateLimits=t}}async function vn(e,t={count:0,interval:Es}){const{recordingData:r,onError:n}=e;if(r.length)try{return await Wa(e),!0}catch(s){if(s instanceof _n||s instanceof $t)throw s;if(Un("Replays",{_retryCount:t.count}),n&&n(s),t.count>=bs){const i=new Error(`${Tt} - max retries exceeded`);try{i.cause=s}catch{}throw i}return t.interval*=++t.count,new Promise((i,o)=>{Ae(async()=>{try{await vn(e,t),i(!0)}catch(c){o(c)}},t.interval)})}}const wn="__THROTTLED",Ha="__SKIPPED";function $a(e,t,r){const n=new Map,s=c=>{const a=c-r;n.forEach((u,d)=>{d<a&&n.delete(d)})},i=()=>[...n.values()].reduce((c,a)=>c+a,0);let o=!1;return(...c)=>{const a=Math.floor(Date.now()/1e3);if(s(a),i()>=t){const d=o;return o=!0,d?Ha:wn}o=!1;const u=n.get(a)||0;return n.set(a,u+1),e(...c)}}class ja{constructor({options:t,recordingOptions:r}){this.eventBuffer=null,this.performanceEntries=[],this.replayPerformanceEntries=[],this.recordingMode="session",this.timeouts={sessionIdlePause:ys,sessionIdleExpire:Ss},this._lastActivity=Date.now(),this._isEnabled=!1,this._isPaused=!1,this._requiresManualStart=!1,this._hasInitializedCoreListeners=!1,this._context={errorIds:new Set,traceIds:new Set,urls:[],initialTimestamp:Date.now(),initialUrl:""},this._recordingOptions=r,this._options=t,this._debouncedFlush=Da(()=>this._flush(),this._options.flushMinDelay,{maxWait:this._options.flushMaxDelay}
5),this._throttledAddEvent=$a((o,c)=>Fo(this,o,c),300,5);const{slowClickTimeout:n,slowClickIgnoreSelectors:s}=this.getOptions(),i=n?{threshold:Math.min(ks,n),timeout:n,scrollTimeout:Is,ignoreSelector:s?s.join(","):""}:void 0;if(i&&(this.clickDetector=new Yi(this,i)),v){const o=t._experiments;w.setConfig({captureExceptions:!!o.captureExceptions,traceInternals:!!o.traceInternals})}this._handleVisibilityChange=()=>{B.document.visibilityState==="visible"?this._doChangeToForegroundTasks():this._doChangeToBackgroundTasks()},this._handleWindowBlur=()=>{const o=re({category:"ui.blur"});this._doChangeToBackgroundTasks(o)},this._handleWindowFocus=()=>{const o=re({category:"ui.focus"});this._doChangeToForegroundTasks(o)},this._handleKeyboardEvent=o=>{ao(this,o)}}getContext(){return this._context}isEnabled(){return this._isEnabled}isPaused(){return this._isPaused}isRecordingCanvas(){return!!this._canvas}getOptions(){return this._options}handleException(t){v&&w.exception(t),this._options.onError&&this._options.onError(t)}initializeSampling(t){const{errorSampleRate:r,sessionSampleRate:n}=this._options,s=r<=0&&n<=0;if(this._requiresManualStart=s,!s){if(this._initializeSessionForSampling(t),!this.session){v&&w.exception(new Error("Unable to initialize and create session"));return}this.session.sampled!==!1&&(this.recordingMode=this.session.sampled==="buffer"&&this.session.segmentId===0?"buffer":"session",v&&w.infoTick(`Starting replay in ${this.recordingMode} mode`),this._initializeRecording())}}start(){if(this._isEnabled&&this.recordingMode==="session"){v&&w.info("Recording is already in progress");return}if(this._isEnabled&&this.recordingMode==="buffer"){v&&w.info("Buffering is in progress, call `flush()` to save the replay");return}v&&w.infoTick("Starting replay in session mode"),this._updateUserActivity();const t=yt({maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire},{stickySession:this._options.stickySession,sessionSampleRate:1,allowBuffering:!1});this.session=t,this._initializeRecording()}startBuffering(){if(this._isEnabled){v&&w.info("Buffering is in progress, call `flush()` to save the replay");return}v&&w.infoTick("Starting replay in buffer mode");const t=yt({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration},{stickySession:this._options.stickySession,sessionSampleRate:0,allowBuffering:!0});this.session=t,this.recordingMode="buffer",this._initializeRecording()}startRecording(){try{const t=this._canvas;this._stopRecording=ie({...this._recordingOptions,...this.recordingMode==="buffer"?{checkoutEveryNms:ws}:this._options._experiments.continuousCheckout&&{checkoutEveryNms:Math.max(36e4,this._options._experiments.continuousCheckout)},emit:Na(this),...Aa(),onMutation:this._onMutationHandler.bind(this),...t?{recordCanvas:t.recordCanvas,getCanvasManager:t.getCanvasManager,sampling:t.sampling,dataURLOptions:t.dataURLOptions}:{}})}catch(t){this.handleException(t)}}stopRecording(){try{return this._stopRecording&&(this._stopRecording(),this._stopRecording=void 0),!0}catch(t){return this.handleException(t),!1}}async stop({forceFlush:t=!1,reason:r}={}){var n;if(this._isEnabled){this._isEnabled=!1;try{v&&w.info(`Stopping Replay${r?` triggered by ${r}`:""}`),pn(),this._removeListeners(),this.stopRecording(),this._debouncedFlush.cancel(),t&&await this._flush({force:!0}),(n=this.eventBuffer)==null||n.destroy(),this.eventBuffer=null,Do(this)}catch(s){this.handleException(s)}}}pause(){this._isPaused||(this._isPaused=!0,this.stopRecording(),v&&w.info("Pausing replay"))}resume(){!this._isPaused||!this._checkSession()||(this._isPaused=!1,this.startRecording(),v&&w.info("Resuming replay"))}async sendBufferedReplayOrFlush({continueRecording:t=!0}={}){if(this.recordingMode==="session")return this.flushImmediate();const r=Date.now();v&&w.info("Converting buffer to session"),await this.flushImmediate();const n=this.stopRecording();!t||!n||this.recordingMode!=="session"&&(this.recordingMode="session",this.session&&(this._updateUserActivity(r),this._updateSessionActivity(r),this._maybeSaveSession()),this.startRecording())}addUpdate(t){const r=t();this.recordingMode!=="buffer"&&r!==!0&&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 this.recordingMode==="buffer"?Promise.resolve():this.flushImmediate()}flush(){return this._debouncedFlush()}flushImmediate(){return this._debouncedFlush(),this._debouncedFlush.flush()}cancelFlush(){this._debouncedFlush.cancel()}getSessionId(){var t;return(t=this.session)==null?void 0:t.id}
5checkAndHandleExpiredSession(){if(this._lastActivity&&kt(this._lastActivity,this.timeouts.sessionIdlePause)&&this.session&&this.session.sampled==="session"){this.pause();return}return!!this._checkSession()}setInitialState(){const t=`${B.location.pathname}${B.location.hash}${B.location.search}`,r=`${B.location.origin}${t}`;this.performanceEntries=[],this.replayPerformanceEntries=[],this._clearContext(),this._context.initialUrl=r,this._context.initialTimestamp=Date.now(),this._context.urls.push(r)}throttledAddEvent(t,r){const n=this._throttledAddEvent(t,r);if(n===wn){const s=re({category:"replay.throttled"});this.addUpdate(()=>!Wt(this,{type:Wi,timestamp:s.timestamp||0,data:{tag:"breadcrumb",payload:s,metric:!0}}))}return n}getCurrentRoute(){const t=this.lastActiveSpan||Ir(),r=t&&Rn(t),s=(r&&Xt(r).data||{})[Tn];if(!(!r||!s||!["route","custom"].includes(s)))return Xt(r).description}_initializeRecording(){this.setInitialState(),this._updateSessionActivity(),this.eventBuffer=To({useCompression:this._options.useCompression,workerUrl:this._options.workerUrl}),this._removeListeners(),this._addListeners(),this._isEnabled=!0,this._isPaused=!1,this.startRecording()}_initializeSessionForSampling(t){const r=this._options.errorSampleRate>0,n=yt({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration,previousSessionId:t},{stickySession:this._options.stickySession,sessionSampleRate:this._options.sessionSampleRate,allowBuffering:r});this.session=n}_checkSession(){if(!this.session)return!1;const t=this.session;return ln(t,{sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration})?(this._refreshSession(t),!1):!0}async _refreshSession(t){this._isEnabled&&(await this.stop({reason:"refresh session"}),this.initializeSampling(t.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||(Ta(this,{autoFlushOnFeedback:this._options._experiments.autoFlushOnFeedback}),this._hasInitializedCoreListeners=!0)}catch(t){this.handleException(t)}this._performanceCleanupCallback=Eo(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(t){this.handleException(t)}}_doChangeToBackgroundTasks(t){!this.session||un(this.session,{maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire})||(t&&this._createCustomBreadcrumb(t),this.conditionalFlush())}_doChangeToForegroundTasks(t){if(!this.session)return;if(!this.checkAndHandleExpiredSession()){v&&w.info("Document has become active, but session has expired");return}t&&this._createCustomBreadcrumb(t)}_updateUserActivity(t=Date.now()){this._lastActivity=t}_updateSessionActivity(t=Date.now()){this.session&&(this.session.lastActivity=t,this._maybeSaveSession())}_createCustomBreadcrumb(t){this.addUpdate(()=>{this.throttledAddEvent({type:C.Custom,timestamp:t.timestamp||0,data:{tag:"breadcrumb",payload:t}})})}_addPerformanceEntries(){let t=ho(this.performanceEntries).concat(this.replayPerformanceEntries);if(this.performanceEntries=[],this.replayPerformanceEntries=[],this._requiresManualStart){const r=this._context.initialTimestamp/1e3;t=t.filter(n=>n.start>=r)}return Promise.all(st(this,t))}_clearContext(){this._context.errorIds.clear(),this._context.traceIds.clear(),this._context.urls=[]}_updateInitialTimestampFromEventBuffer(){const{session:t,eventBuffer:r}=this;if(!t||!r||this._requiresManualStart||t.segmentId)return;const n=r.getEarliestTimestamp();
5n&&n<this._context.initialTimestamp&&(this._context.initialTimestamp=n)}_popEventContext(){const t={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(),t}async _runFlush(){var r;const t=this.getSessionId();if(!this.session||!this.eventBuffer||!t){v&&w.error("No session or eventBuffer found to flush.");return}if(await this._addPerformanceEntries(),!!((r=this.eventBuffer)!=null&&r.hasEvents)&&(await xa(this),!!this.eventBuffer&&t===this.getSessionId()))try{this._updateInitialTimestampFromEventBuffer();const n=Date.now();if(n-this._context.initialTimestamp>this._options.maxReplayDuration+3e4)throw new Error("Session is too long, not sending replay");const s=this._popEventContext(),i=this.session.segmentId++;this._maybeSaveSession();const o=await this.eventBuffer.finish();await vn({replayId:t,recordingData:o,segmentId:i,eventContext:s,session:this.session,timestamp:n,onError:c=>this.handleException(c)})}catch(n){this.handleException(n),this.stop({reason:"sendReplay"});const s=he();if(s){const i=n instanceof $t?"ratelimit_backoff":"send_error";s.recordDroppedEvent(i,"replay")}}}async _flush({force:t=!1}={}){if(!this._isEnabled&&!t)return;if(!this.checkAndHandleExpiredSession()){v&&w.error("Attempting to finish replay event after session expired.");return}if(!this.session)return;const r=this.session.started,s=Date.now()-r;this._debouncedFlush.cancel();const i=s<this._options.minReplayDuration,o=s>this._options.maxReplayDuration+5e3;if(i||o){v&&w.info(`Session duration (${Math.floor(s/1e3)}s) is too ${i?"short":"long"}, not sending replay.`),i&&this._debouncedFlush();return}const c=this.eventBuffer;c&&this.session.segmentId===0&&!c.hasCheckout&&v&&w.info("Flushing initial segment without checkout.");const a=!!this._flushLock;this._flushLock||(this._flushLock=this._runFlush());try{await this._flushLock}catch(u){this.handleException(u)}finally{this._flushLock=void 0,a&&this._debouncedFlush()}}_maybeSaveSession(){this.session&&this._options.stickySession&&zt(this.session)}_onMutationHandler(t){const{ignoreMutations:r}=this._options._experiments;if(r!=null&&r.length&&t.some(c=>{const a=Fa(c.target),u=r.join(",");return a==null?void 0:a.matches(u)}))return!1;const n=t.length,s=this._options.mutationLimit,i=this._options.mutationBreadcrumbLimit,o=s&&n>s;if(n>i||o){const c=re({category:"replay.mutations",data:{count:n,limit:o}});this._createCustomBreadcrumb(c)}return o?(this.stop({reason:"mutationLimit",forceFlush:this.recordingMode==="session"}),!1):!0}}function Ie(e,t){return[...e,...t].join(",")}function qa({mask:e,unmask:t,block:r,unblock:n,ignore:s}){const i=["base","iframe[srcdoc]:not([src])"],o=Ie(e,[".sentry-mask","[data-sentry-mask]"]),c=Ie(t,[]);return{maskTextSelector:o,unmaskTextSelector:c,blockSelector:Ie(r,[".sentry-block","[data-sentry-block]",...i]),unblockSelector:Ie(n,[]),ignoreSelector:Ie(s,[".sentry-ignore","[data-sentry-ignore]",'input[type="file"]'])}}function Ka({el:e,key:t,maskAttributes:r,maskAllText:n,privacyOptions:s,value:i}){return!n||s.unmaskTextSelector&&e.matches(s.unmaskTextSelector)?i:r.includes(t)||t==="value"&&e.tagName==="INPUT"&&["submit","button"].includes(e.getAttribute("type")||"")?i.replace(/[\S]/g,"*"):i}const wr='img,image,svg,video,object,picture,embed,map,audio,link[rel="icon"],link[rel="apple-touch-icon"]',Va=["content-length","content-type","accept"];let Er=!1;const sc=e=>new Ya(e);class Ya{constructor({flushMinDelay:t=_s,flushMaxDelay:r=vs,minReplayDuration:n=Cs,maxReplayDuration:s=er,stickySession:i=!0,useCompression:o=!0,workerUrl:c,_experiments:a={},maskAllText:u=!0,maskAllInputs:d=!0,blockAllMedia:l=!0,mutationBreadcrumbLimit:h=750,mutationLimit:p=1e4,slowClickTimeout:f=7e3,slowClickIgnoreSelectors:m=[],networkDetailAllowUrls:_=[],networkDetailDenyUrls:y=[],networkCaptureBodies:k=!0,networkRequestHeaders:N=[],networkResponseHeaders:T=[],mask:I=[],maskAttributes:S=["title","placeholder","aria-label"],unmask:R=[],block:M=[],unblock:g=[],ignore:b=[],maskFn:L,beforeAddRecordingEvent:U,beforeErrorSampling:H,onError:j}={}){this.name="Replay";const X=qa({mask:I,unmask:R,block:M,unblock:g,ignore:b});if(this._recordingOptions={maskAllInputs:d,maskAllText:u,maskInputOptions:{password:!0},maskTextFn:L,maskInputFn:L,maskAttributeFn:(D,q,z)=>
5Ka({maskAttributes:S,maskAllText:u,privacyOptions:X,key:D,value:q,el:z}),...X,slimDOMOptions:"all",inlineStylesheet:!0,inlineImages:!1,collectFonts:!0,errorHandler:D=>{try{D.__rrweb__=!0}catch{}},recordCrossOriginIframes:!!a.recordCrossOriginIframes},this._initialOptions={flushMinDelay:t,flushMaxDelay:r,minReplayDuration:Math.min(n,Ms),maxReplayDuration:Math.min(s,er),stickySession:i,useCompression:o,workerUrl:c,blockAllMedia:l,maskAllInputs:d,maskAllText:u,mutationBreadcrumbLimit:h,mutationLimit:p,slowClickTimeout:f,slowClickIgnoreSelectors:m,networkDetailAllowUrls:_,networkDetailDenyUrls:y,networkCaptureBodies:k,networkRequestHeaders:br(N),networkResponseHeaders:br(T),beforeAddRecordingEvent:U,beforeErrorSampling:H,onError:j,_experiments:a},this._initialOptions.blockAllMedia&&(this._recordingOptions.blockSelector=this._recordingOptions.blockSelector?`${this._recordingOptions.blockSelector},${wr}`:wr),this._isInitialized&&Qt())throw new Error("Multiple Sentry Session Replay instances are not supported");this._isInitialized=!0}get _isInitialized(){return Er}set _isInitialized(t){Er=t}afterAllSetup(t){!Qt()||this._replay||(this._setup(t),this._initialize(t))}start(){this._replay&&this._replay.start()}startBuffering(){this._replay&&this._replay.startBuffering()}stop(){return this._replay?this._replay.stop({forceFlush:this._replay.recordingMode==="session"}):Promise.resolve()}flush(t){return this._replay?this._replay.isEnabled()?this._replay.sendBufferedReplayOrFlush(t):(this._replay.start(),Promise.resolve()):Promise.resolve()}getReplayId(){var t;if((t=this._replay)!=null&&t.isEnabled())return this._replay.getSessionId()}getRecordingMode(){var t;if((t=this._replay)!=null&&t.isEnabled())return this._replay.recordingMode}_initialize(t){this._replay&&(this._maybeLoadFromReplayCanvasIntegration(t),this._replay.initializeSampling())}_setup(t){const r=Xa(this._initialOptions,t);this._replay=new ja({options:r,recordingOptions:this._recordingOptions})}_maybeLoadFromReplayCanvasIntegration(t){try{const r=t.getIntegrationByName("ReplayCanvas");if(!r)return;this._replay._canvas=r.getOptions()}catch{}}}function Xa(e,t){const r=t.getOptions(),n={sessionSampleRate:0,errorSampleRate:0,...e},s=Yt(r.replaysSessionSampleRate),i=Yt(r.replaysOnErrorSampleRate);return s==null&&i==null&&Mn(()=>{console.warn("Replay is disabled because neither `replaysSessionSampleRate` nor `replaysOnErrorSampleRate` are set.")}),s!=null&&(n.sessionSampleRate=s),i!=null&&(n.errorSampleRate=i),n}function br(e){return[...Va,...e.map(t=>t.toLowerCase())]}export{ac as SDK_NAME,cc as SDK_VERSION,Zn as addBreadcrumb,uc as addChildSpanToSpan,Bn as addEventProcessor,lc as browserTracingIntegration,dc as captureEvent,qn as captureException,hc as captureMessage,fc as close,pc as flush,Ir as getActiveSpan,he as getClient,Mr as getCurrentScope,mc as getGlobalScope,Qn as getIsolationScope,Rn as getRootSpan,gc as init,nc as logger,yc as nativeCrash,Sc as registerSpanErrorInstrumentation,sc as replayIntegration,Un as setContext,_c as setCurrentClient,vc as setExtra,wc as setExtras,Ec as setMeasurement,bc as setTag,kc as setTags,Ic as setUser,Cc as spanIsSampled,Xt as spanToJSON,Mc as startIdleSpan,Rc as startInactiveSpan,Tc as startSpan,xc as startSpanManual,Oc as suppressTracing,Dc as withActiveSpan,Ac as withScope};

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.