PageSourceSearch

https://fintest-app.netlify.app/_app/js/index-B7u7pUku.js

js fintest-app.netlify.app collected 2026-10-03 10:44:50 UTC 323,067 bytes, 369 lines download raw bytes

1const ba=Object.prototype.toString;function Dt(e){switch(ba.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return Be(e,Error)}}function Vt(e,t){return ba.call(e)===`[object ${t}]`}function zs(e){return Vt(e,"ErrorEvent")}function Ai(e){return Vt(e,"DOMError")}function ed(e){return Vt(e,"DOMException")}function Ae(e){return Vt(e,"String")}function Gs(e){return typeof e=="object"&&e!==null&&"__sentry_template_string__"in e&&"__sentry_template_values__"in e}function qs(e){return e===null||Gs(e)||typeof e!="object"&&typeof e!="function"}function lt(e){return Vt(e,"Object")}function Ir(e){return typeof Event<"u"&&Be(e,Event)}function td(e){return typeof Element<"u"&&Be(e,Element)}function nd(e){return Vt(e,"RegExp")}function Tn(e){return!!(e&&e.then&&typeof e.then=="function")}function rd(e){return lt(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}function Ea(e){return typeof e=="number"&&e!==e}function Be(e,t){try{return e instanceof t}catch{return!1}}function Ta(e){return!!(typeof e=="object"&&e!==null&&(e.__isVue||e._isVue))}function Lt(e,t=0){return typeof e!="string"||t===0||e.length<=t?e:`${e.slice(0,t)}...`}function Xr(e,t){let n=e;const r=n.length;if(r<=150)return n;t>r&&(t=r);let s=Math.max(t-60,0);s<5&&(s=0);let i=Math.min(s+140,r);return i>r-5&&(i=r),i===r&&(s=Math.max(i-140,0)),n=n.slice(s,i),s>0&&(n=`'{snip} ${n}`),i<r&&(n+=" {snip}"),n}function nr(e,t){if(!Array.isArray(e))return"";const n=[];for(let r=0;r<e.length;r++){const s=e[r];try{Ta(s)?n.push("[VueViewModel]"):n.push(String(s))}catch{n.push("[value cannot be serialized]")}}return n.join(t)}function sd(e,t,n=!1){return Ae(e)?nd(t)?t.test(e):Ae(t)?n?e===t:e.includes(t):!1:!1}function Kt(e,t=[],n=!1){return t.some(r=>sd(e,r,n))}function va(e,t,n=250,r,s,i,o){if(!i.exception||!i.exception.values||!o||!Be(o.originalException,Error))return;const a=i.exception.values.length>0?i.exception.values[i.exception.values.length-1]:void 0;a&&(i.exception.values=id(ps(e,t,s,o.originalException,r,i.exception.values,a,0),n))}function ps(e,t,n,r,s,i,o,a){if(i.length>=n+1)return i;let c=[...i];if(Be(r[s],Error)){Oi(o,a);const u=e(t,r[s]),l=c.length;Ni(u,s,l,a),c=ps(e,t,n,r[s],s,[u,...c],u,l)}return Array.isArray(r.errors)&&r.errors.forEach((u,l)=>{if(Be(u,Error)){Oi(o,a);const d=e(t,u),f=c.length;Ni(d,`errors[${l}]`,f,a),c=ps(e,t,n,u,s,[d,...c],d,f)}}),c}function Oi(e,t){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,...e.type==="AggregateError"&&{is_exception_group:!0},exception_id:t}}function Ni(e,t,n,r){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,type:"chained",source:t,exception_id:n,parent_id:r}}function id(e,t){return e.map(n=>(n.value&&(n.value=Lt(n.value,t)),n))}function Ln(e){return e&&e.Math==Math?e:void 0}const A=typeof globalThis=="object"&&Ln(globalThis)||typeof window=="object"&&Ln(window)||typeof self=="object"&&Ln(self)||typeof global=="object"&&Ln(global)||(function(){return this})()||{};function Ys(){return A}function Ia(e,t,n){const r=n||A,s=r.__SENTRY__=r.__SENTRY__||{};return s[e]||(s[e]=t())}const Pt=Ys(),od=80;function Je(e,t={}){if(!e)return"<unknown>";try{let n=e;const r=5,s=[];let i=0,o=0;const a=" > ",c=a.length;let u;const l=Array.isArray(t)?t:t.keyAttrs,d=!Array.isArray(t)&&t.maxStringLength||od;for(;n&&i++<r&&(u=ad(n,l),!(u==="html"||i>1&&o+s.length*c+u.length>=d));)s.push(u),o+=u.length,n=n.parentNode;return s.reverse().join(a)}catch{return"<unknown>"}}function ad(e,t){const n=e,r=[];let s,i,o,a,c;if(!n||!n.tagName)return"";if(Pt.HTMLElement&&n instanceof HTMLElement&&n.dataset&&n.dataset.sentryComponent)return n.dataset.sentryComponent;r.push(n.tagName.toLowerCase());const u=t&&t.length?t.filter(d=>n.getAttribute(d)).map(d=>[d,n.getAttribute(d)]):null;if(u&&u.length)u.forEach(d=>{r.push(`[${d[0]}="${d[1]}"]`)});else if(n.id&&r.push(`#${n.id}`),s=n.className,s&&Ae(s))for(i=s.split(/\s+/),c=0;c<i.length;c++)r.push(`.${i[c]}`);const l=["aria-label","type","name","title","alt"];for(c=0;c<l.length;c++)o=l[c],a=n.getAttribute(o),a&&r.push(`[${o}="${a}"]`);return r.join("")}function wa(){try{return Pt.document.location.href}catch{return""}}function ka(e){return Pt.document&&Pt.document.querySelector?Pt.document.querySelector(e):null}function Ca(e){if(!Pt.HTMLElement)return null;let t=e;const n=5;for(let r=0;r<n;r++){if(!t)return null;if(t instanceof HTMLElement&&t.dataset.sentryComponent)return t.dataset.sentryComponent;t=t.parentNode}return null}const Xt=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,cd="Sentry Logger ",rr=["debug","info","warn","error","log","assert","trace"],sr={};function we(e){if(!("console"in A))return e();const t=A.console,n={},r=Object.keys(sr);r.forEach(s=>{const i=sr[s];n[s]=t[s],t[s]=i});try{return e()}finally{r.forEach(s=>{t[s]=n[s]})}}function ud(){let e=!1;const t={enable:()=>{e=!0},disable:()=>{e=!1},isEnabled:()=>e};return Xt?rr.forEach(n=>{t[n]=(...r)=>{e&&we(()=>{A.console[n](`${cd}[${n}]:`,...r)})}}):rr.forEach(n=>{t[n]=()=>{}}),t}const h=ud(),ld=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function dd(e){return e==="http"||e==="https"}function ht(e,t=!1){const{host:n,path:r,pass:s,port:i,projectId:o,protocol:a,publicKey:c}=e;return`${a}://${c}${t&&s?`:${s}`:""}@${n}${i?`:${i}`:""}/${r&&`${r}/`}${o}`}function Ra(e){const t=ld.exec(e);if(!t){we(()=>{console.error(`Invalid Sentry Dsn: ${e}`)});return}const[n,r,s="",i,o="",a]=t.slice(1);let c="",u=a;const l=u.split("/");if(l.length>1&&(c=l.slice(0,-1).join("/"),u=l.pop()),u){const d=u.match(/^\d+/);
1d&&(u=d[0])}return xa({host:i,pass:s,path:c,projectId:u,port:o,protocol:n,publicKey:r})}function xa(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function fd(e){if(!Xt)return!0;const{port:t,projectId:n,protocol:r}=e;return["protocol","publicKey","host","projectId"].find(o=>e[o]?!1:(h.error(`Invalid Sentry Dsn: ${o} missing`),!0))?!1:n.match(/^\d+$/)?dd(r)?t&&isNaN(parseInt(t,10))?(h.error(`Invalid Sentry Dsn: Invalid port ${t}`),!1):!0:(h.error(`Invalid Sentry Dsn: Invalid protocol ${r}`),!1):(h.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),!1)}function Ma(e){const t=typeof e=="string"?Ra(e):xa(e);if(!(!t||!fd(t)))return t}class xe extends Error{constructor(t,n="warn"){super(t),this.message=t,this.name=new.target.prototype.constructor.name,Object.setPrototypeOf(this,new.target.prototype),this.logLevel=n}}function oe(e,t,n){if(!(t in e))return;const r=e[t],s=n(r);typeof s=="function"&&Aa(s,r),e[t]=s}function Ze(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch{Xt&&h.log(`Failed to add non-enumerable property "${t}" to object`,e)}}function Aa(e,t){try{const n=t.prototype||{};e.prototype=t.prototype=n,Ze(e,"__sentry_original__",t)}catch{}}function Vs(e){return e.__sentry_original__}function pd(e){return Object.keys(e).map(t=>`${encodeURIComponent(t)}=${encodeURIComponent(e[t])}`).join("&")}function Oa(e){if(Dt(e))return{message:e.message,name:e.name,stack:e.stack,...Li(e)};if(Ir(e)){const t={type:e.type,target:Di(e.target),currentTarget:Di(e.currentTarget),...Li(e)};return typeof CustomEvent<"u"&&Be(e,CustomEvent)&&(t.detail=e.detail),t}else return e}function Di(e){try{return td(e)?Je(e):Object.prototype.toString.call(e)}catch{return"<unknown>"}}function Li(e){if(typeof e=="object"&&e!==null){const t={};for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}else return{}}function hd(e,t=40){const n=Object.keys(Oa(e));if(n.sort(),!n.length)return"[object has no keys]";if(n[0].length>=t)return Lt(n[0],t);for(let r=n.length;r>0;r--){const s=n.slice(0,r).join(", ");if(!(s.length>t))return r===n.length?s:Lt(s,t)}return""}function ae(e){return hs(e,new Map)}function hs(e,t){if(md(e)){const n=t.get(e);if(n!==void 0)return n;const r={};t.set(e,r);for(const s of Object.keys(e))typeof e[s]<"u"&&(r[s]=hs(e[s],t));return r}if(Array.isArray(e)){const n=t.get(e);if(n!==void 0)return n;const r=[];return t.set(e,r),e.forEach(s=>{r.push(hs(s,t))}),r}return e}function md(e){if(!lt(e))return!1;try{const t=Object.getPrototypeOf(e).constructor.name;return!t||t==="Object"}catch{return!0}}const Na=50,Pi=/\(error: (.*)\)/,$i=/captureMessage|captureException/;function Da(...e){const t=e.sort((n,r)=>n[0]-r[0]).map(n=>n[1]);return(n,r=0)=>{const s=[],i=n.split(`
2`);for(let o=r;o<i.length;o++){const a=i[o];if(a.length>1024)continue;const c=Pi.test(a)?a.replace(Pi,"$1"):a;if(!c.match(/\S*Error: /)){for(const u of t){const l=u(c);if(l){s.push(l);break}}if(s.length>=Na)break}}return _d(s)}}function gd(e){return Array.isArray(e)?Da(...e):e}function _d(e){if(!e.length)return[];const t=Array.from(e);return/sentryWrapped/.test(t[t.length-1].function||"")&&t.pop(),t.reverse(),$i.test(t[t.length-1].function||"")&&(t.pop(),$i.test(t[t.length-1].function||"")&&t.pop()),t.slice(0,Na).map(n=>({...n,filename:n.filename||t[t.length-1].filename,function:n.function||"?"}))}const Jr="<anonymous>";function He(e){try{return!e||typeof e!="function"?Jr:e.name||Jr}catch{return Jr}}const Jn={},Fi={};function mt(e,t){Jn[e]=Jn[e]||[],Jn[e].push(t)}function gt(e,t){Fi[e]||(t(),Fi[e]=!0)}function Ie(e,t){const n=e&&Jn[e];if(n)for(const r of n)try{r(t)}catch(s){Xt&&h.error(`Error while triggering instrumentation handler.
3Type: ${e}
4Name: ${He(r)}
5Error:`,s)}}function La(e){const t="console";mt(t,e),gt(t,yd)}function yd(){"console"in A&&rr.forEach(function(e){e in A.console&&oe(A.console,e,function(t){return sr[e]=t,function(...n){Ie("console",{args:n,level:e});const s=sr[e];s&&s.apply(A.console,n)}})})}function W(){const e=A,t=e.crypto||e.msCrypto;let n=()=>Math.random()*16;try{if(t&&t.randomUUID)return t.randomUUID().replace(/-/g,"");t&&t.getRandomValues&&(n=()=>
5{const r=new Uint8Array(1);return t.getRandomValues(r),r[0]})}catch{}return("10000000100040008000"+1e11).replace(/[018]/g,r=>(r^(n()&15)>>r/4).toString(16))}function Pa(e){return e.exception&&e.exception.values?e.exception.values[0]:void 0}function Ve(e){const{message:t,event_id:n}=e;if(t)return t;const r=Pa(e);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"<unknown>":n||"<unknown>"}function ms(e,t,n){const r=e.exception=e.exception||{},s=r.values=r.values||[],i=s[0]=s[0]||{};i.value||(i.value=t||""),i.type||(i.type="Error")}function dt(e,t){const n=Pa(e);if(!n)return;const r={type:"generic",handled:!0},s=n.mechanism;if(n.mechanism={...r,...s,...t},t&&"data"in t){const i={...s&&s.data,...t.data};n.mechanism.data=i}}function Sd(e,t,n=5){if(t.lineno===void 0)return;const r=e.length,s=Math.max(Math.min(r-1,t.lineno-1),0);t.pre_context=e.slice(Math.max(0,s-n),s).map(i=>Xr(i,0)),t.context_line=Xr(e[Math.min(r-1,s)],t.colno||0),t.post_context=e.slice(Math.min(s+1,r),s+1+n).map(i=>Xr(i,0))}function Bi(e){if(e&&e.__sentry_captured__)return!0;try{Ze(e,"__sentry_captured__",!0)}catch{}return!1}function Ks(e){return Array.isArray(e)?e:[e]}const wt=A,bd=1e3;let Hi,gs,_s;function $a(e){mt("dom",e),gt("dom",Ed)}function Ed(){if(!wt.document)return;const e=Ie.bind(null,"dom"),t=Ui(e,!0);wt.document.addEventListener("click",t,!1),wt.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach(n=>{const r=wt[n]&&wt[n].prototype;!r||!r.hasOwnProperty||!r.hasOwnProperty("addEventListener")||(oe(r,"addEventListener",function(s){return function(i,o,a){if(i==="click"||i=="keypress")try{const c=this,u=c.__sentry_instrumentation_handlers__=c.__sentry_instrumentation_handlers__||{},l=u[i]=u[i]||{refCount:0};if(!l.handler){const d=Ui(e);l.handler=d,s.call(this,i,d,a)}l.refCount++}catch{}return s.call(this,i,o,a)}}),oe(r,"removeEventListener",function(s){return function(i,o,a){if(i==="click"||i=="keypress")try{const c=this,u=c.__sentry_instrumentation_handlers__||{},l=u[i];l&&(l.refCount--,l.refCount<=0&&(s.call(this,i,l.handler,a),l.handler=void 0,delete u[i]),Object.keys(u).length===0&&delete c.__sentry_instrumentation_handlers__)}catch{}return s.call(this,i,o,a)}}))})}function Td(e){if(e.type!==gs)return!1;try{if(!e.target||e.target._sentryId!==_s)return!1}catch{}return!0}function vd(e,t){return e!=="keypress"?!1:!t||!t.tagName?!0:!(t.tagName==="INPUT"||t.tagName==="TEXTAREA"||t.isContentEditable)}function Ui(e,t=!1){return n=>{if(!n||n._sentryCaptured)return;const r=Id(n);if(vd(n.type,r))return;Ze(n,"_sentryCaptured",!0),r&&!r._sentryId&&Ze(r,"_sentryId",W());
5const s=n.type==="keypress"?"input":n.type;Td(n)||(e({event:n,name:s,global:t}),gs=n.type,_s=r?r._sentryId:void 0),clearTimeout(Hi),Hi=wt.setTimeout(()=>{_s=void 0,gs=void 0},bd)}}function Id(e){try{return e.target}catch{return null}}const ir=Ys();function Fa(){if(!("fetch"in ir))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch{return!1}}function ys(e){return e&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function Ba(){if(typeof EdgeRuntime=="string")return!0;if(!Fa())return!1;if(ys(ir.fetch))return!0;let e=!1;const t=ir.document;if(t&&typeof t.createElement=="function")try{const n=t.createElement("iframe");n.hidden=!0,t.head.appendChild(n),n.contentWindow&&n.contentWindow.fetch&&(e=ys(n.contentWindow.fetch)),t.head.removeChild(n)}catch(n){Xt&&h.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",n)}return e}function wd(){return"ReportingObserver"in ir}function wr(e){const t="fetch";mt(t,e),gt(t,kd)}function kd(){Ba()&&oe(A,"fetch",function(e){return function(...t){const{method:n,url:r}=Cd(t),s={args:t,fetchData:{method:n,url:r},startTimestamp:Date.now()};return Ie("fetch",{...s}),e.apply(A,t).then(i=>{const o={...s,endTimestamp:Date.now(),response:i};return Ie("fetch",o),i},i=>{const o={...s,endTimestamp:Date.now(),error:i};throw Ie("fetch",o),i})}})}function Ss(e,t){return!!e&&typeof e=="object"&&!!e[t]}function Wi(e){return typeof e=="string"?e:e?Ss(e,"url")?e.url:e.toString?e.toString():"":""}function Cd(e){if(e.length===0)return{method:"GET",url:""};if(e.length===2){const[n,r]=e;return{url:Wi(n),method:Ss(r,"method")?String(r.method).toUpperCase():"GET"}}const t=e[0];return{url:Wi(t),method:Ss(t,"method")?String(t.method).toUpperCase():"GET"}}let Pn=null;function Ha(e){const t="error";mt(t,e),gt(t,Rd)}function Rd(){Pn=A.onerror,A.onerror=function(e,t,n,r,s){return Ie("error",{column:r,error:s,line:n,msg:e,url:t}),Pn&&!Pn.__SENTRY_LOADER__?Pn.apply(this,arguments):!1},A.onerror.__SENTRY_INSTRUMENTED__=!0}let $n=null;function Ua(e){const t="unhandledrejection";mt(t,e),gt(t,xd)}function xd(){$n=A.onunhandledrejection,A.onunhandledrejection=function(e){return Ie("unhandledrejection",e),$n&&!$n.__SENTRY_LOADER__?$n.apply(this,arguments):!0},A.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}const Fn=Ys();function Md(){const e=Fn.chrome,t=e&&e.app&&e.app.runtime,n="history"in Fn&&!!Fn.history.pushState&&!!Fn.history.replaceState;return!t&&n}const rn=A;let Bn;function vn(e){const t="history";mt(t,e),gt(t,Ad)}function Ad(){if(!Md())return;const e=rn.onpopstate;rn.onpopstate=function(...n){const r=rn.location.href,s=Bn;if(Bn=r,Ie("history",{from:s,to:r}),e)try{return e.apply(this,n)}catch{}};function t(n){return function(...r){const s=r.length>2?r[2]:void 0;if(s){const i=Bn,o=String(s);Bn=o,Ie("history",{from:i,to:o})}return n.apply(this,r)}}oe(rn.history,"pushState",t),oe(rn.history,"replaceState",t)}const Od=A,Pe="__sentry_xhr_v3__";function kr(e){mt("xhr",e),gt("xhr",Nd)}function Nd(){if(!Od.XMLHttpRequest)return;const e=XMLHttpRequest.prototype;oe(e,"open",function(t){return function(...n){const r=Date.now(),s=Ae(n[0])?n[0].toUpperCase():void 0,i=Dd(n[1]);if(!s||!i)return t.apply(this,n);this[Pe]={method:s,url:i,request_headers:{}},s==="POST"&&i.match(/sentry_key/)&&(this.__sentry_own_request__=!0);const o=()=>{const a=this[Pe];if(a&&this.readyState===4){try{a.status_code=this.status}catch{}const c={args:[s,i],endTimestamp:Date.now(),startTimestamp:r,xhr:this};Ie("xhr",c)}};return"onreadystatechange"in this&&typeof this.onreadystatechange=="function"?oe(this,"onreadystatechange",function(a){return function(...c){return o(),a.apply(this,c)}}):this.addEventListener("readystatechange",o),oe(this,"setRequestHeader",function(a){return function(...c){const[u,l]=c,d=this[Pe];return d&&Ae(u)&&Ae(l)&&(d.request_headers[u.toLowerCase()]=l),a.apply(this,c)}}),t.apply(this,n)}}),oe(e,"send",function(t){return function(...n){const r=this[Pe];if(!r)return t.apply(this,n);n[0]!==void 0&&(r.body=n[0]);const s={args:[r.method,r.url],startTimestamp:Date.now(),xhr:this};return Ie("xhr",s),t.apply(this,n)}})}function Dd(e){if(Ae(e))return e;try{return e.toString()}catch{}}function Ld(){return typeof __SENTRY_BROWSER_BUNDLE__<"u"&&!!__SENTRY_BROWSER_BUNDLE__}function Pd(){return"npm"}function $d(){return!Ld()&&Object.prototype.toString.call(typeof process<"u"?process:0)==="[object process]"}function bs(){return typeof window<"u"&&(!$d()||Fd())}function Fd(){return A.process!==void 0&&A.process.type==="renderer"}function Bd(){const e=typeof WeakSet=="function",t=e?new WeakSet:[];function n(s){if(e)return t.has(s)?!0:(t.add(s),!1);for(let i=0;i<t.length;i++)if(t[i]===s)return!0;return t.push(s),!1}function r(s){if(e)t.delete(s);else for(let i=0;i<t.length;i++)if(t[i]===s){t.splice(i,1);break}}return[n,r]}function Te(e,t=100,n=1/0){try{return Es("",e,t,n)}catch(r){return{ERROR:`**non-serializable** (${r})`}}}function Wa(e,t=3,n=100*1024){const r=Te(e,t);return jd(r)>n?Wa(e,t-1,n):r}function Es(e,t,n=1/0,r=1/0,s=Bd()){const[i,o]=s;if(t==null||["number","boolean","string"].includes(typeof t)&&!Ea(t))return t;const a=Hd(e,t);if(!a.startsWith("[object "))return a;
5if(t.__sentry_skip_normalization__)return t;const c=typeof t.__sentry_override_normalization_depth__=="number"?t.__sentry_override_normalization_depth__:n;if(c===0)return a.replace("object ","");if(i(t))return"[Circular ~]";const u=t;if(u&&typeof u.toJSON=="function")try{const p=u.toJSON();return Es("",p,c-1,r,s)}catch{}const l=Array.isArray(t)?[]:{};let d=0;const f=Oa(t);for(const p in f){if(!Object.prototype.hasOwnProperty.call(f,p))continue;if(d>=r){l[p]="[MaxProperties ~]";break}const m=f[p];l[p]=Es(p,m,c-1,r,s),d++}return o(t),l}function Hd(e,t){try{if(e==="domain"&&t&&typeof t=="object"&&t._events)return"[Domain]";if(e==="domainEmitter")return"[DomainEmitter]";if(typeof global<"u"&&t===global)return"[Global]";if(typeof window<"u"&&t===window)return"[Window]";if(typeof document<"u"&&t===document)return"[Document]";if(Ta(t))return"[VueViewModel]";if(rd(t))return"[SyntheticEvent]";if(typeof t=="number"&&t!==t)return"[NaN]";if(typeof t=="function")return`[Function: ${He(t)}]`;if(typeof t=="symbol")return`[${String(t)}]`;if(typeof t=="bigint")return`[BigInt: ${String(t)}]`;const n=Ud(t);return/^HTML(\w*)Element$/.test(n)?`[HTMLElement: ${n}]`:`[object ${n}]`}catch(n){return`**non-serializable** (${n})`}}function Ud(e){const t=Object.getPrototypeOf(e);return t?t.constructor.name:"null prototype"}function Wd(e){return~-encodeURI(e).split(/%..|./).length}function jd(e){return Wd(JSON.stringify(e))}function zd(e,t){let n=0;for(let r=e.length-1;r>=0;r--){const s=e[r];s==="."?e.splice(r,1):s===".."?(e.splice(r,1),n++):n&&(e.splice(r,1),n--)}if(t)for(;n--;n)e.unshift("..");return e}const Gd=/^(\S+:\\|\/?)([\s\S]*?)((?:\.{1,2}|[^/\\]+?|)(\.[^./\\]*|))(?:[/\\]*)$/;function qd(e){const t=e.length>1024?`<truncated>${e.slice(-1024)}`:e,n=Gd.exec(t);return n?n.slice(1):[]}function ji(...e){let t="",n=!1;for(let r=e.length-1;r>=-1&&!n;r--){const s=r>=0?e[r]:"/";s&&(t=`${s}/${t}`,n=s.charAt(0)==="/")}return t=zd(t.split("/").filter(r=>!!r),!n).join("/"),(n?"/":"")+t||"."}function zi(e){let t=0;for(;t<e.length&&e[t]==="";t++);let n=e.length-1;for(;n>=0&&e[n]==="";n--);return t>n?[]:e.slice(t,n-t+1)}function Yd(e,t){e=ji(e).slice(1),t=ji(t).slice(1);const n=zi(e.split("/")),r=zi(t.split("/")),s=Math.min(n.length,r.length);let i=s;for(let a=0;a<s;a++)if(n[a]!==r[a]){i=a;break}let o=[];for(let a=i;a<n.length;a++)o.push("..");return o=o.concat(r.slice(i)),o.join("/")}function Vd(e,t){return qd(e)[2]}var De;(function(e){e[e.PENDING=0]="PENDING";const n=1;e[e.RESOLVED=n]="RESOLVED";const r=2;e[e.REJECTED=r]="REJECTED"})(De||(De={}));function Ft(e){return new ge(t=>{t(e)})}function Xs(e){return new ge((t,n)=>{n(e)})}class ge{constructor(t){ge.prototype.__init.call(this),ge.prototype.__init2.call(this),ge.prototype.__init3.call(this),ge.prototype.__init4.call(this),this._state=De.PENDING,this._handlers=[];try{t(this._resolve,this._reject)}catch(n){this._reject(n)}}then(t,n){return new ge((r,s)=>{this._handlers.push([!1,i=>{if(!t)r(i);else try{r(t(i))}catch(o){s(o)}},i=>{if(!n)s(i);else try{r(n(i))}catch(o){s(o)}}]),this._executeHandlers()})}catch(t){return this.then(n=>n,t)}finally(t){return new ge((n,r)=>{let s,i;return this.then(o=>{i=!1,s=o,t&&t()},o=>{i=!0,s=o,t&&t()}).then(()=>{if(i){r(s);return}n(s)})})}__init(){this._resolve=t=>{this._setResult(De.RESOLVED,t)}}__init2(){this._reject=t=>{this._setResult(De.REJECTED,t)}}__init3(){this._setResult=(t,n)=>{if(this._state===De.PENDING){if(Tn(n)){n.then(this._resolve,this._reject);return}this._state=t,this._value=n,this._executeHandlers()}}}__init4(){this._executeHandlers=()=>{if(this._state===De.PENDING)return;const t=this._handlers.slice();this._handlers=[],t.forEach(n=>{n[0]||(this._state===De.RESOLVED&&n[1](this._value),this._state===De.REJECTED&&n[2](this._value),n[0]=!0)})}}}function Kd(e){const t=[];function n(){return e===void 0||t.length<e}function r(o){return t.splice(t.indexOf(o),1)[0]}function s(o){if(!n())return Xs(new xe("Not adding Promise because buffer limit was reached."));const a=o();return t.indexOf(a)===-1&&t.push(a),a.then(()=>r(a)).then(null,()=>r(a).then(null,()=>{})),a}function i(o){return new ge((a,c)=>{let u=t.length;if(!u)return a(!0);const l=setTimeout(()=>{o&&o>0&&a(!1)},o);t.forEach(d=>{Ft(d).then(()=>{--u||(clearTimeout(l),a(!0))},c)})})}return{$:t,add:s,drain:i}}function ut(e){if(!e)return{};const t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};const n=t[6]||"",r=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],search:n,hash:r,relative:t[5]+n+r}}
5function Xd(e){return e.split(/[\?#]/,1)[0]}const Jd=["fatal","error","warning","log","info","debug"];function ja(e){return e==="warn"?"warning":Jd.includes(e)?e:"log"}const za=1e3;function In(){return Date.now()/za}function Zd(){const{performance:e}=A;if(!e||!e.now)return In;const t=Date.now()-e.now(),n=e.timeOrigin==null?t:e.timeOrigin;return()=>(n+e.now())/za}const tt=Zd(),ue=(()=>{const{performance:e}=A;if(!e||!e.now)return;const t=3600*1e3,n=e.now(),r=Date.now(),s=e.timeOrigin?Math.abs(e.timeOrigin+n-r):t,i=s<t,o=e.timing&&e.timing.navigationStart,c=typeof o=="number"?Math.abs(o+n-r):t,u=c<t;return i||u?s<=c?e.timeOrigin:o:r})(),Ts="baggage",Ga="sentry-",Qd=/^sentry-/,ef=8192;function qa(e){if(!Ae(e)&&!Array.isArray(e))return;let t={};if(Array.isArray(e))t=e.reduce((r,s)=>{const i=Gi(s);for(const o of Object.keys(i))r[o]=i[o];return r},{});else{if(!e)return;t=Gi(e)}const n=Object.entries(t).reduce((r,[s,i])=>{if(s.match(Qd)){const o=s.slice(Ga.length);r[o]=i}return r},{});if(Object.keys(n).length>0)return n}function Ya(e){if(!e)return;const t=Object.entries(e).reduce((n,[r,s])=>(s&&(n[`${Ga}${r}`]=s),n),{});return tf(t)}function Gi(e){return e.split(",").map(t=>t.split("=").map(n=>decodeURIComponent(n.trim()))).reduce((t,[n,r])=>(t[n]=r,t),{})}function tf(e){if(Object.keys(e).length!==0)return Object.entries(e).reduce((t,[n,r],s)=>{const i=`${encodeURIComponent(n)}=${encodeURIComponent(r)}`,o=s===0?i:`${t},${i}`;return o.length>ef?(Xt&&h.warn(`Not adding key: ${n} with val: ${r} to baggage header due to exceeding baggage size limits.`),t):o},"")}const nf=new RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function Js(e){if(!e)return;const t=e.match(nf);if(!t)return;let n;return t[3]==="1"?n=!0:t[3]==="0"&&(n=!1),{traceId:t[1],parentSampled:n,parentSpanId:t[2]}}function rf(e,t){const n=Js(e),r=qa(t),{traceId:s,parentSpanId:i,parentSampled:o}=n||{};return n?{traceparentData:n,dynamicSamplingContext:r||{},propagationContext:{traceId:s||W(),parentSpanId:i||W().substring(16),spanId:W().substring(16),sampled:o,dsc:r||{}}}:{traceparentData:n,dynamicSamplingContext:void 0,propagationContext:{traceId:s||W(),spanId:W().substring(16)}}}function Va(e,t){const n=Js(e),r=qa(t),{traceId:s,parentSpanId:i,parentSampled:o}=n||{};return n?{traceId:s||W(),parentSpanId:i||W().substring(16),spanId:W().substring(16),sampled:o,dsc:r||{}}:{traceId:s||W(),spanId:W().substring(16)}}function Zs(e=W(),t=W().substring(16),n){let r="";return n!==void 0&&(r=n?"-1":"-0"),`${e}-${t}${r}`}function We(e,t=[]){return[e,t]}function sf(e,t){const[n,r]=e;return[n,[...r,t]]}function Bt(e,t){const n=e[1];for(const r of n){const s=r[0].type;if(t(r,s))return!0}return!1}function of(e,t){return Bt(e,(n,r)=>t.includes(r))}function vs(e,t){return(t||new TextEncoder).encode(e)}function Ka(e,t){const[n,r]=e;let s=JSON.stringify(n);function i(o){typeof s=="string"?s=typeof o=="string"?s+o:[vs(s,t),o]:s.push(typeof o=="string"?vs(o,t):o)}for(const o of r){const[a,c]=o;if(i(`
6${JSON.stringify(a)}
7`),typeof c=="string"||c instanceof Uint8Array)i(c);else{let u;try{u=JSON.stringify(c)}catch{u=JSON.stringify(Te(c))}i(u)}}return typeof s=="string"?s:af(s)}function af(e){const t=e.reduce((s,i)=>s+i.length,0),n=new Uint8Array(t);let r=0;for(const s of e)n.set(s,r),r+=s.length;return n}function cf(e,t,n){let r=typeof e=="string"?t.encode(e):e;function s(c){const u=r.subarray(0,c);return r=r.subarray(c+1),u}function i(){let c=r.indexOf(10);return c<0&&(c=r.length),JSON.parse(n.decode(s(c)))}const o=i(),a=[];for(;r.length;){const c=i(),u=typeof c.length=="number"?c.length:void 0;a.push([c,u?s(u):i()])}return[o,a]}function uf(e,t){const n=typeof e.data=="string"?vs(e.data,t):e.data;return[ae({type:"attachment",length:n.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType}),n]}const lf={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",feedback:"feedback",span:"span",statsd:"metric_bucket"};function qi(e){return lf[e]}function Qs(e){if(!e||!e.sdk)return;
7const{name:t,version:n}=e.sdk;return{name:t,version:n}}function Xa(e,t,n,r){const s=e.sdkProcessingMetadata&&e.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:e.event_id,sent_at:new Date().toISOString(),...t&&{sdk:t},...!!n&&r&&{dsn:ht(r)},...s&&{trace:ae({...s})}}}function df(e,t,n){const r=[{type:"client_report"},{timestamp:In(),discarded_events:e}];return We(t?{dsn:t}:{},[r])}const ff=60*1e3;function Ja(e,t=Date.now()){const n=parseInt(`${e}`,10);if(!isNaN(n))return n*1e3;const r=Date.parse(`${e}`);return isNaN(r)?ff:r-t}function pf(e,t){return e[t]||e.all||0}function Za(e,t,n=Date.now()){return pf(e,t)>n}function Qa(e,{statusCode:t,headers:n},r=Date.now()){const s={...e},i=n&&n["x-sentry-rate-limits"],o=n&&n["retry-after"];if(i)for(const a of i.trim().split(",")){const[c,u,,,l]=a.split(":",5),d=parseInt(c,10),f=(isNaN(d)?60:d)*1e3;if(!u)s.all=r+f;else for(const p of u.split(";"))p==="metric_bucket"?(!l||l.split(";").includes("custom"))&&(s[p]=r+f):s[p]=r+f}else o?s.all=r+Ja(o,r):t===429&&(s.all=r+60*1e3);return s}function hf(e,t){return e(t.stack||"",1)}function mf(e,t){const n={type:t.name||t.constructor.name,value:t.message},r=hf(e,t);return r.length&&(n.stacktrace={frames:r}),n}function gf(e,t){return e??t()}function Zn(e){let t,n=e[0],r=1;for(;r<e.length;){const s=e[r],i=e[r+1];if(r+=2,(s==="optionalAccess"||s==="optionalCall")&&n==null)return;s==="access"||s==="optionalAccess"?(t=n,n=i(n)):(s==="call"||s==="optionalCall")&&(n=i((...o)=>n.call(t,...o)),t=void 0)}return n}const E=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,wn="production";function ei(){return Ia("globalEventProcessors",()=>[])}function _f(e){ei().push(e)}function or(e,t,n,r=0){return new ge((s,i)=>{const o=e[r];if(t===null||typeof o!="function")s(t);else{const a=o({...t},n);E&&o.id&&a===null&&h.log(`Event processor "${o.id}" dropped event`),Tn(a)?a.then(c=>or(e,c,n,r+1).then(s)).then(null,i):or(e,a,n,r+1).then(s).then(null,i)}})}function ec(e){const t=tt(),n={sid:W(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>yf(n)};return e&&ft(n,e),n}function ft(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),!e.did&&!t.did&&(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||tt(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=t.sid.length===32?t.sid:W()),t.init!==void 0&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),typeof t.started=="number"&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if(typeof t.duration=="number")e.duration=t.duration;else{const n=e.timestamp-e.started;e.duration=n>=0?n:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),typeof t.errors=="number"&&(e.errors=t.errors),t.status&&(e.status=t.status)}function tc(e,t){let n={};e.status==="ok"&&(n={status:"exited"}),ft(e,n)}function yf(e){return ae({sid:`${e.sid}`,init:e.init,started:new Date(e.started*1e3).toISOString(),timestamp:new Date(e.timestamp*1e3).toISOString(),status:e.status,errors:e.errors,did:typeof e.did=="number"||typeof e.did=="string"?`${e.did}`:void 0,duration:e.duration,abnormal_mechanism:e.abnormal_mechanism,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}})}const Sf=0,nc=1;function ti(e){const{spanId:t,traceId:n}=e.spanContext(),{data:r,op:s,parent_span_id:i,status:o,tags:a,origin:c}=j(e);return ae({data:r,op:s,parent_span_id:i,span_id:t,status:o,tags:a,trace_id:n,origin:c})}function Cr(e){const{traceId:t,spanId:n}=e.spanContext(),r=ni(e);return Zs(t,n,r)}function Rr(e){return typeof e=="number"?Yi(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?Yi(e.getTime()):tt()}function Yi(e){return e>9999999999?e/1e3:e}function j(e){return bf(e)?e.getSpanJSON():typeof e.toJSON=="function"?e.toJSON():{}}function bf(e){return typeof e.getSpanJSON=="function"}function ni(e){const{traceFlags:t}=e.spanContext();return!!(t&nc)}function ri(e,t,n,r,s,i){const{normalizeDepth:o=3,normalizeMaxBreadth:a=1e3}=e,c={...t,event_id:t.event_id||n.event_id||W(),timestamp:t.timestamp||In()},u=n.integrations||e.integrations.map(S=>S.name);Ef(c,e),If(c,u),t.type===void 0&&Tf(c,e.stackParser);const l=kf(r,n.captureContext);n.mechanism&&dt(c,n.mechanism);const d=s&&s.getEventProcessors?s.getEventProcessors():[],f=Ff().getScopeData();if(i){const S=i.getScopeData();
7Ji(f,S)}if(l){const S=l.getScopeData();Ji(f,S)}const p=[...n.attachments||[],...f.attachments];p.length&&(n.attachments=p),ic(c,f);const m=[...d,...ei(),...f.eventProcessors];return or(m,c,n).then(S=>(S&&vf(S),typeof o=="number"&&o>0?wf(S,o,a):S))}function Ef(e,t){const{environment:n,release:r,dist:s,maxValueLength:i=250}=t;"environment"in e||(e.environment="environment"in t?n:wn),e.release===void 0&&r!==void 0&&(e.release=r),e.dist===void 0&&s!==void 0&&(e.dist=s),e.message&&(e.message=Lt(e.message,i));const o=e.exception&&e.exception.values&&e.exception.values[0];o&&o.value&&(o.value=Lt(o.value,i));const a=e.request;a&&a.url&&(a.url=Lt(a.url,i))}const Vi=new WeakMap;function Tf(e,t){const n=A._sentryDebugIds;if(!n)return;let r;const s=Vi.get(t);s?r=s:(r=new Map,Vi.set(t,r));const i=Object.keys(n).reduce((o,a)=>{let c;const u=r.get(a);u?c=u:(c=t(a),r.set(a,c));for(let l=c.length-1;l>=0;l--){const d=c[l];if(d.filename){o[d.filename]=n[a];break}}return o},{});try{e.exception.values.forEach(o=>{o.stacktrace.frames.forEach(a=>{a.filename&&(a.debug_id=i[a.filename])})})}catch{}}function vf(e){const t={};try{e.exception.values.forEach(r=>{r.stacktrace.frames.forEach(s=>{s.debug_id&&(s.abs_path?t[s.abs_path]=s.debug_id:s.filename&&(t[s.filename]=s.debug_id),delete s.debug_id)})})}catch{}if(Object.keys(t).length===0)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];const n=e.debug_meta.images;Object.keys(t).forEach(r=>{n.push({type:"sourcemap",code_file:r,debug_id:t[r]})})}function If(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}function wf(e,t,n){if(!e)return null;const r={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(s=>({...s,...s.data&&{data:Te(s.data,t,n)}}))},...e.user&&{user:Te(e.user,t,n)},...e.contexts&&{contexts:Te(e.contexts,t,n)},...e.extra&&{extra:Te(e.extra,t,n)}};return e.contexts&&e.contexts.trace&&r.contexts&&(r.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(r.contexts.trace.data=Te(e.contexts.trace.data,t,n))),e.spans&&(r.spans=e.spans.map(s=>{const i=j(s).data;return i&&(s.data=Te(i,t,n)),s})),r}function kf(e,t){if(!t)return e;const n=e?e.clone():new Fe;return n.update(t),n}function Cf(e){if(e)return Rf(e)?{captureContext:e}:Mf(e)?{captureContext:e}:e}function Rf(e){return e instanceof Fe||typeof e=="function"}const xf=["user","level","extra","contexts","tags","fingerprint","requestSession","propagationContext"];function Mf(e){return Object.keys(e).some(t=>xf.includes(t))}function Jt(e,t){return z().captureException(e,Cf(t))}function Is(e,t){const n=typeof t=="string"?t:void 0,r=typeof t!="string"?{captureContext:t}:void 0;return z().captureMessage(e,n,r)}function xr(e,t){return z().captureEvent(e,t)}function HT(e){z().configureScope(e)}function Qe(e,t){z().addBreadcrumb(e,t)}function Af(e,t){z().setContext(e,t)}function UT(e){z().setExtras(e)}function WT(e,t){z().setExtra(e,t)}function jT(e){z().setTags(e)}function zT(e,t){z().setTag(e,t)}function GT(e){z().setUser(e)}function _t(...e){const t=z();if(e.length===2){const[n,r]=e;return n?t.withScope(()=>(t.getStackTop().scope=n,r(n))):t.withScope(r)}return t.withScope(e[0])}function qT(e){return Ar(()=>e(Oe()))}function YT(e,t){return _t(n=>(n.setSpan(e),t(n)))}function VT(e,t){return z().startTransaction({...e},t)}async function KT(e){const t=x();return t?t.flush(e):(E&&h.warn("Cannot flush events. No client defined."),Promise.resolve(!1))}async function XT(e){const t=x();return t?t.close(e):(E&&h.warn("Cannot flush events and disable SDK. No client defined."),Promise.resolve(!1))}function JT(){return z().lastEventId()}function x(){return z().getClient()}function ZT(){return!!x()}function ne(){return z().getScope()}function Ki(e){const t=x(),n=Oe(),r=ne(),{release:s,environment:i=wn}=t&&t.getOptions()||{},{userAgent:o}=A.navigator||{},a=ec({release:s,environment:i,user:r.getUser()||n.getUser(),...o&&{userAgent:o},...e}),c=n.getSession();return c&&c.status==="ok"&&ft(c,{status:"exited"}),rc(),n.setSession(a),r.setSession(a),a}function rc(){const e=Oe(),t=ne(),n=t.getSession()||e.getSession();n&&tc(n),sc(),e.setSession(),t.setSession()}function sc(){const e=Oe(),t=ne(),n=x(),r=t.getSession()||e.getSession();r&&n&&n.captureSession&&n.captureSession(r)}function Xi(e=!1){if(e){rc();return}sc()}function ar(e){return e.transaction}function Mr(e,t,n){const r=t.getOptions(),{publicKey:s}=t.getDsn()||{},{segment:i}=n&&n.getUser()||{},o=ae({environment:r.environment||wn,release:r.release,user_segment:i,public_key:s,trace_id:e});return t.emit&&t.emit("createDsc",o),o}function Ht(e){const t=x();if(!t)return{};const n=Mr(j(e).trace_id||"",t,ne()),r=ar(e);if(!r)return n;const s=r&&r._frozenDynamicSamplingContext;if(s)return s;const{sampleRate:i,source:o}=r.metadata;i!=null&&(n.sample_rate=`${i}`);const a=j(r);return o&&o!=="url"&&(n.transaction=a.description),n.sampled=String(ni(r)),t.emit&&t.emit("createDsc",n),n}function ic(e,t){const{fingerprint:n,span:r,breadcrumbs:s,sdkProcessingMetadata:i}=t;Of(e,t),r&&Lf(e,r),Pf(e,n),Nf(e,s),Df(e,i)}function Ji(e,t){const{extra:n,tags:r,user:s,contexts:i,level:o,sdkProcessingMetadata:a,breadcrumbs:c,fingerprint:u,eventProcessors:l,attachments:d,propagationContext:f,transactionName:p,span:m}=t;sn(e,"extra",n),sn(e,"tags",r),sn(e,"user",s),sn(e,"contexts",i),sn(e,"sdkProcessingMetadata",a),o&&(e.level=o),p&&(e.transactionName=p),m&&(e.span=m),c.length&&(e.breadcrumbs=[...e.breadcrumbs,...c]),u.length&&(e.fingerprint=[...e.fingerprint,...u]),l.length&&(e.eventProcessors=[...e.eventProcessors,...l]),d.length&&(e.attachments=[...e.attachments,...d]),e.propagationContext={...e.propagationContext,...f}}function sn(e,t,n){if(n&&Object.keys(n).length){e[t]={...e[t]};for(const r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[t][r]=n[r])}}function Of(e,t){const{extra:n,tags:r,user:s,contexts:i,level:o,transactionName:a}=t,c=ae(n);c&&Object.keys(c).length&&(e.extra={...c,...e.extra});const u=ae(r);u&&Object.keys(u).length&&(e.tags={...u,...e.tags});const l=ae(s);l&&Object.keys(l).length&&(e.user={...l,...e.user});const d=ae(i);d&&Object.keys(d).length&&(e.contexts={...d,...e.contexts}),o&&(e.level=o),a&&(e.transaction=a)}function Nf(e,t){const n=[...e.breadcrumbs||[],...t];e.breadcrumbs=n.length?n:void 0}function Df(e,t){e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...t}}function Lf(e,t){e.contexts={trace:ti(t),...e.contexts};const n=ar(t);if(n){e.sdkProcessingMetadata={dynamicSamplingContext:Ht(t),...e.sdkProcessingMetadata};const r=j(n).description;r&&(e.tags={transaction:r,...e.tags})}}
7function Pf(e,t){e.fingerprint=e.fingerprint?Ks(e.fingerprint):[],t&&(e.fingerprint=e.fingerprint.concat(t)),e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint}const $f=100;let Zr;class Fe{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext=Zi()}static clone(t){return t?t.clone():new Fe}clone(){const t=new Fe;return t._breadcrumbs=[...this._breadcrumbs],t._tags={...this._tags},t._extra={...this._extra},t._contexts={...this._contexts},t._user=this._user,t._level=this._level,t._span=this._span,t._session=this._session,t._transactionName=this._transactionName,t._fingerprint=this._fingerprint,t._eventProcessors=[...this._eventProcessors],t._requestSession=this._requestSession,t._attachments=[...this._attachments],t._sdkProcessingMetadata={...this._sdkProcessingMetadata},t._propagationContext={...this._propagationContext},t._client=this._client,t}setClient(t){this._client=t}getClient(){return this._client}addScopeListener(t){this._scopeListeners.push(t)}addEventProcessor(t){return this._eventProcessors.push(t),this}setUser(t){return this._user=t||{email:void 0,id:void 0,ip_address:void 0,segment:void 0,username:void 0},this._session&&ft(this._session,{user:t}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(t){return this._requestSession=t,this}setTags(t){return this._tags={...this._tags,...t},this._notifyScopeListeners(),this}setTag(t,n){return this._tags={...this._tags,[t]:n},this._notifyScopeListeners(),this}setExtras(t){return this._extra={...this._extra,...t},this._notifyScopeListeners(),this}setExtra(t,n){return this._extra={...this._extra,[t]:n},this._notifyScopeListeners(),this}setFingerprint(t){return this._fingerprint=t,this._notifyScopeListeners(),this}setLevel(t){return this._level=t,this._notifyScopeListeners(),this}setTransactionName(t){return this._transactionName=t,this._notifyScopeListeners(),this}setContext(t,n){return n===null?delete this._contexts[t]:this._contexts[t]=n,this._notifyScopeListeners(),this}setSpan(t){return this._span=t,this._notifyScopeListeners(),this}getSpan(){return this._span}getTransaction(){const t=this._span;return t&&t.transaction}setSession(t){return t?this._session=t:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(t){if(!t)return this;const n=typeof t=="function"?t(this):t;if(n instanceof Fe){const r=n.getScopeData();this._tags={...this._tags,...r.tags},this._extra={...this._extra,...r.extra},this._contexts={...this._contexts,...r.contexts},r.user&&Object.keys(r.user).length&&(this._user=r.user),r.level&&(this._level=r.level),r.fingerprint.length&&(this._fingerprint=r.fingerprint),n.getRequestSession()&&(this._requestSession=n.getRequestSession()),r.propagationContext&&(this._propagationContext=r.propagationContext)}else if(lt(n)){const r=t;this._tags={...this._tags,...r.tags},this._extra={...this._extra,...r.extra},this._contexts={...this._contexts,...r.contexts},r.user&&(this._user=r.user),r.level&&(this._level=r.level),r.fingerprint&&(this._fingerprint=r.fingerprint),r.requestSession&&(this._requestSession=r.requestSession),r.propagationContext&&(this._propagationContext=r.propagationContext)}return this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._span=void 0,this._session=void 0,this._notifyScopeListeners(),this._attachments=[],this._propagationContext=Zi(),this}addBreadcrumb(t,n){const r=typeof n=="number"?n:$f;if(r<=0)return this;const s={timestamp:In(),...t},i=this._breadcrumbs;return i.push(s),this._breadcrumbs=i.length>r?i.slice(-r):i,this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(t){return this._attachments.push(t),this}
7getAttachments(){return this.getScopeData().attachments}clearAttachments(){return this._attachments=[],this}getScopeData(){const{_breadcrumbs:t,_attachments:n,_contexts:r,_tags:s,_extra:i,_user:o,_level:a,_fingerprint:c,_eventProcessors:u,_propagationContext:l,_sdkProcessingMetadata:d,_transactionName:f,_span:p}=this;return{breadcrumbs:t,attachments:n,contexts:r,tags:s,extra:i,user:o,level:a,fingerprint:c||[],eventProcessors:u,propagationContext:l,sdkProcessingMetadata:d,transactionName:f,span:p}}applyToEvent(t,n={},r=[]){ic(t,this.getScopeData());const s=[...r,...ei(),...this._eventProcessors];return or(s,t,n)}setSDKProcessingMetadata(t){return this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...t},this}setPropagationContext(t){return this._propagationContext=t,this}getPropagationContext(){return this._propagationContext}captureException(t,n){const r=n&&n.event_id?n.event_id:W();if(!this._client)return h.warn("No client configured on scope - will not capture exception!"),r;const s=new Error("Sentry syntheticException");return this._client.captureException(t,{originalException:t,syntheticException:s,...n,event_id:r},this),r}captureMessage(t,n,r){const s=r&&r.event_id?r.event_id:W();if(!this._client)return h.warn("No client configured on scope - will not capture message!"),s;const i=new Error(t);return this._client.captureMessage(t,n,{originalException:t,syntheticException:i,...r,event_id:s},this),s}captureEvent(t,n){const r=n&&n.event_id?n.event_id:W();return this._client?(this._client.captureEvent(t,{...n,event_id:r},this),r):(h.warn("No client configured on scope - will not capture event!"),r)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(t=>{t(this)}),this._notifyingListeners=!1)}}function Ff(){return Zr||(Zr=new Fe),Zr}function Zi(){return{traceId:W(),spanId:W().substring(16)}}const gn="7.120.4",oc=parseFloat(gn),Bf=100;class ac{constructor(t,n,r,s=oc){this._version=s;let i;n?i=n:(i=new Fe,i.setClient(t));let o;r?o=r:(o=new Fe,o.setClient(t)),this._stack=[{scope:i}],t&&this.bindClient(t),this._isolationScope=o}isOlderThan(t){return this._version<t}bindClient(t){const n=this.getStackTop();n.client=t,n.scope.setClient(t),t&&t.setupIntegrations&&t.setupIntegrations()}pushScope(){const t=this.getScope().clone();return this.getStack().push({client:this.getClient(),scope:t}),t}popScope(){return this.getStack().length<=1?!1:!!this.getStack().pop()}withScope(t){const n=this.pushScope();let r;try{r=t(n)}catch(s){throw this.popScope(),s}return Tn(r)?r.then(s=>(this.popScope(),s),s=>{throw this.popScope(),s}):(this.popScope(),r)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStack(){return this._stack}getStackTop(){return this._stack[this._stack.length-1]}captureException(t,n){const r=this._lastEventId=n&&n.event_id?n.event_id:W(),s=new Error("Sentry syntheticException");return this.getScope().captureException(t,{originalException:t,syntheticException:s,...n,event_id:r}),r}captureMessage(t,n,r){const s=this._lastEventId=r&&r.event_id?r.event_id:W(),i=new Error(t);return this.getScope().captureMessage(t,n,{originalException:t,syntheticException:i,...r,event_id:s}),s}captureEvent(t,n){const r=n&&n.event_id?n.event_id:W();return t.type||(this._lastEventId=r),this.getScope().captureEvent(t,{...n,event_id:r}),r}lastEventId(){return this._lastEventId}addBreadcrumb(t,n){const{scope:r,client:s}=this.getStackTop();if(!s)return;const{beforeBreadcrumb:i=null,maxBreadcrumbs:o=Bf}=s.getOptions&&s.getOptions()||{};if(o<=0)return;const c={timestamp:In(),...t},u=i?we(()=>i(c,n)):c;u!==null&&(s.emit&&s.emit("beforeAddBreadcrumb",u,n),r.addBreadcrumb(u,o))}setUser(t){this.getScope().setUser(t),this.getIsolationScope().setUser(t)}setTags(t){this.getScope().setTags(t),this.getIsolationScope().setTags(t)}setExtras(t){this.getScope().setExtras(t),this.getIsolationScope().setExtras(t)}setTag(t,n){this.getScope().setTag(t,n),this.getIsolationScope().setTag(t,n)}setExtra(t,n){this.getScope().setExtra(t,n),this.getIsolationScope().setExtra(t,n)}
7setContext(t,n){this.getScope().setContext(t,n),this.getIsolationScope().setContext(t,n)}configureScope(t){const{scope:n,client:r}=this.getStackTop();r&&t(n)}run(t){const n=Qi(this);try{t(this)}finally{Qi(n)}}getIntegration(t){const n=this.getClient();if(!n)return null;try{return n.getIntegration(t)}catch{return E&&h.warn(`Cannot retrieve integration ${t.id} from the current Hub`),null}}startTransaction(t,n){const r=this._callExtensionMethod("startTransaction",t,n);return E&&!r&&(this.getClient()?h.warn(`Tracing extension 'startTransaction' has not been added. Call 'addTracingExtensions' before calling 'init':
8Sentry.addTracingExtensions();
9Sentry.init({...});
10`):h.warn("Tracing extension 'startTransaction' is missing. You should 'init' the SDK before calling 'startTransaction'")),r}traceHeaders(){return this._callExtensionMethod("traceHeaders")}captureSession(t=!1){if(t)return this.endSession();this._sendSessionUpdate()}endSession(){const n=this.getStackTop().scope,r=n.getSession();r&&tc(r),this._sendSessionUpdate(),n.setSession()}startSession(t){const{scope:n,client:r}=this.getStackTop(),{release:s,environment:i=wn}=r&&r.getOptions()||{},{userAgent:o}=A.navigator||{},a=ec({release:s,environment:i,user:n.getUser(),...o&&{userAgent:o},...t}),c=n.getSession&&n.getSession();return c&&c.status==="ok"&&ft(c,{status:"exited"}),this.endSession(),n.setSession(a),a}shouldSendDefaultPii(){const t=this.getClient(),n=t&&t.getOptions();return!!(n&&n.sendDefaultPii)}_sendSessionUpdate(){const{scope:t,client:n}=this.getStackTop(),r=t.getSession();r&&n&&n.captureSession&&n.captureSession(r)}_callExtensionMethod(t,...n){const s=Zt().__SENTRY__;if(s&&s.extensions&&typeof s.extensions[t]=="function")return s.extensions[t].apply(this,n);E&&h.warn(`Extension method ${t} couldn't be found, doing nothing.`)}}function Zt(){return A.__SENTRY__=A.__SENTRY__||{extensions:{},hub:void 0},A}function Qi(e){const t=Zt(),n=ws(t);return cc(t,e),n}function z(){const e=Zt();if(e.__SENTRY__&&e.__SENTRY__.acs){const t=e.__SENTRY__.acs.getCurrentHub();if(t)return t}return Hf(e)}function Oe(){return z().getIsolationScope()}function Hf(e=Zt()){return(!Uf(e)||ws(e).isOlderThan(oc))&&cc(e,new ac),ws(e)}function Ar(e,t={}){const n=Zt();return n.__SENTRY__&&n.__SENTRY__.acs?n.__SENTRY__.acs.runWithAsyncContext(e,t):e()}function Uf(e){return!!(e&&e.__SENTRY__&&e.__SENTRY__.hub)}function ws(e){return Ia("hub",()=>new ac,e)}function cc(e,t){if(!e)return!1;const n=e.__SENTRY__=e.__SENTRY__||{};return n.hub=t,!0}function Ue(e){return(e||z()).getScope().getTransaction()}const QT=Js;let eo=!1;function Wf(){eo||(eo=!0,Ha(ks),Ua(ks))}function ks(){const e=Ue();if(e){const t="internal_error";E&&h.log(`[Tracing] Transaction: ${t} -> Global error occured`),e.setStatus(t)}}ks.tag="sentry_tracingErrorCallback";var to;(function(e){e.Ok="ok";const n="deadline_exceeded";e.DeadlineExceeded=n;const r="unauthenticated";e.Unauthenticated=r;const s="permission_denied";e.PermissionDenied=s;const i="not_found";e.NotFound=i;const o="resource_exhausted";e.ResourceExhausted=o;const a="invalid_argument";e.InvalidArgument=a;const c="unimplemented";e.Unimplemented=c;const u="unavailable";e.Unavailable=u;const l="internal_error";e.InternalError=l;const d="unknown_error";e.UnknownError=d;const f="cancelled";e.Cancelled=f;const p="already_exists";e.AlreadyExists=p;const m="failed_precondition";e.FailedPrecondition=m;const _="aborted";e.Aborted=_;const S="out_of_range";e.OutOfRange=S;const g="data_loss";e.DataLoss=g})(to||(to={}));function uc(e){if(e<400&&e>=100)return"ok";if(e>=400&&e<500)switch(e){case 401:return"unauthenticated";case 403:return"permission_denied";case 404:return"not_found";case 409:return"already_exists";case 413:return"failed_precondition";case 429:return"resource_exhausted";default:return"invalid_argument"}if(e>=500&&e<600)switch(e){case 501:return"unimplemented";case 503:return"unavailable";case 504:return"deadline_exceeded";default:return"internal_error"}return"unknown_error"}const ev=uc;function si(e,t){e.setTag("http.status_code",String(t)),e.setData("http.response.status_code",t);const n=uc(t);n!=="unknown_error"&&e.setStatus(n)}function ii(e,t,n=()=>{}){let r;try{r=e()}catch(s){throw t(s),n(),s}return jf(r,t,n)}function jf(e,t,n){return Tn(e)?e.then(r=>(n(),r),r=>{throw t(r),n(),r}):(n(),e)}function yt(e){if(typeof __SENTRY_TRACING__=="boolean"&&!__SENTRY_TRACING__)return!1;const t=x(),n=e||t&&t.getOptions();return!!n&&(n.enableTracing||"tracesSampleRate"in n||"tracesSampler"in n)}function tv(e,t,n=()=>{},r=()=>{}){const s=z(),i=ne(),o=i.getSpan(),a=Nr(e),c=Or(s,{parentSpan:o,spanContext:a,forceTransaction:!1,scope:i});return i.setSpan(c),ii(()=>t(c),u=>{c&&c.setStatus("internal_error"),n(u,c)},()=>{c&&c.end(),i.setSpan(o),r()})}function nv(e,t){const n=Nr(e);return Ar(()=>_t(e.scope,r=>{const s=z(),i=r.getSpan(),a=e.onlyIfParent&&!i?void 0:Or(s,{parentSpan:i,spanContext:n,forceTransaction:e.forceTransaction,scope:r});return ii(()=>t(a),()=>{if(a){const{status:c}=j(a);(!c||c==="ok")&&a.setStatus("internal_error")}},()=>a&&a.end())}))}function rv(e,t){const n=Nr(e);return Ar(()=>_t(e.scope,r=>{const s=z(),i=r.getSpan(),a=e.onlyIfParent&&!i?void 0:Or(s,{parentSpan:i,spanContext:n,forceTransaction:e.forceTransaction,scope:r});function c(){a&&a.end()}return ii(()=>
10t(a,c),()=>{if(a&&a.isRecording()){const{status:u}=j(a);(!u||u==="ok")&&a.setStatus("internal_error")}})}))}function cr(e){if(!yt())return;const t=Nr(e),n=z(),r=e.scope?e.scope.getSpan():Ut();if(e.onlyIfParent&&!r)return;const o=(e.scope||ne()).clone();return Or(n,{parentSpan:r,spanContext:t,forceTransaction:e.forceTransaction,scope:o})}function Ut(){return ne().getSpan()}const sv=({sentryTrace:e,baggage:t},n)=>{const r=ne(),{traceparentData:s,dynamicSamplingContext:i,propagationContext:o}=rf(e,t);r.setPropagationContext(o),E&&s&&h.log(`[Tracing] Continuing trace ${s.traceId}.`);const a={...s,metadata:ae({dynamicSamplingContext:i})};return n?Ar(()=>n(a)):a};function Or(e,{parentSpan:t,spanContext:n,forceTransaction:r,scope:s}){if(!yt())return;const i=Oe();let o;if(t&&!r)o=t.startChild(n);else if(t){const a=Ht(t),{traceId:c,spanId:u}=t.spanContext(),l=ni(t);o=e.startTransaction({traceId:c,parentSpanId:u,parentSampled:l,...n,metadata:{dynamicSamplingContext:a,...n.metadata}})}else{const{traceId:a,dsc:c,parentSpanId:u,sampled:l}={...i.getPropagationContext(),...s.getPropagationContext()};o=e.startTransaction({traceId:a,parentSpanId:u,parentSampled:l,...n,metadata:{dynamicSamplingContext:c,...n.metadata}})}return s.setSpan(o),zf(o,s,i),o}function Nr(e){if(e.startTime){const t={...e};return t.startTimestamp=Rr(e.startTime),delete t.startTime,t}return e}const lc="_sentryScope",dc="_sentryIsolationScope";function zf(e,t,n){e&&(Ze(e,dc,n),Ze(e,lc,t))}function Gf(e){return{scope:e[lc],isolationScope:e[dc]}}let cn;function fc(e){return cn?cn.get(e):void 0}function pc(e){const t=fc(e);if(!t)return;const n={};for(const[,[r,s]]of t)n[r]||(n[r]=[]),n[r].push(ae(s));return n}function qf(e,t,n,r,s,i){const o=Ut();if(o){const a=fc(o)||new Map,c=`${e}:${t}@${r}`,u=a.get(i);if(u){const[,l]=u;a.set(i,[c,{min:Math.min(l.min,n),max:Math.max(l.max,n),count:l.count+=1,sum:l.sum+=n,tags:l.tags}])}else a.set(i,[c,{min:n,max:n,count:1,sum:n,tags:s}]);cn||(cn=new WeakMap),cn.set(o,a)}}const le="sentry.source",Rt="sentry.sample_rate",Hn="sentry.op",$e="sentry.origin",Yf="profile_id";class hc{constructor(t=1e3){this._maxlen=t,this.spans=[]}add(t){this.spans.length>this._maxlen?t.spanRecorder=void 0:this.spans.push(t)}}class Dr{constructor(t={}){this._traceId=t.traceId||W(),this._spanId=t.spanId||W().substring(16),this._startTime=t.startTimestamp||tt(),this.tags=t.tags?{...t.tags}:{},this.data=t.data?{...t.data}:{},this.instrumenter=t.instrumenter||"sentry",this._attributes={},this.setAttributes({[$e]:t.origin||"manual",[Hn]:t.op,...t.attributes}),this._name=t.name||t.description,t.parentSpanId&&(this._parentSpanId=t.parentSpanId),"sampled"in t&&(this._sampled=t.sampled),t.status&&(this._status=t.status),t.endTimestamp&&(this._endTime=t.endTimestamp),t.exclusiveTime!==void 0&&(this._exclusiveTime=t.exclusiveTime),this._measurements=t.measurements?{...t.measurements}:{}}get name(){return this._name||""}set name(t){this.updateName(t)}get description(){return this._name}set description(t){this._name=t}get traceId(){return this._traceId}set traceId(t){this._traceId=t}get spanId(){return this._spanId}set spanId(t){this._spanId=t}set parentSpanId(t){this._parentSpanId=t}get parentSpanId(){return this._parentSpanId}get sampled(){return this._sampled}set sampled(t){this._sampled=t}get attributes(){return this._attributes}set attributes(t){this._attributes=t}get startTimestamp(){return this._startTime}set startTimestamp(t){this._startTime=t}get endTimestamp(){return this._endTime}set endTimestamp(t){this._endTime=t}get status(){return this._status}set status(t){this._status=t}get op(){return this._attributes[Hn]}set op(t){this.setAttribute(Hn,t)}get origin(){return this._attributes[$e]}set origin(t){this.setAttribute($e,t)}spanContext(){const{_spanId:t,_traceId:n,_sampled:r}=this;return{spanId:t,traceId:n,traceFlags:r?nc:Sf}}startChild(t){const n=new Dr({...t,parentSpanId:this._spanId,sampled:this._sampled,traceId:this._traceId});n.spanRecorder=this.spanRecorder,n.spanRecorder&&n.spanRecorder.add(n);const r=ar(this);if(n.transaction=r,E&&r){const s=t&&t.op||"< unknown op >",i=j(n).description||"< unknown name >",o=r.spanContext().spanId,a=`[Tracing] Starting '${s}' span on transaction '${i}' (${o}).`;h.log(a),this._logMessage=a}return n}setTag(t,n){return this.tags={...this.tags,[t]:n},this}setData(t,n){return this.data={...this.data,[t]:n},this}setAttribute(t,n){n===void 0?delete this._attributes[t]:this._attributes[t]=n}setAttributes(t){Object.keys(t).forEach(n=>this.setAttribute(n,t[n]))}setStatus(t){return this._status=t,this}setHttpStatus(t){return si(this,t),this}setName(t){this.updateName(t)}updateName(t){return this._name=t,this}isSuccess(){return this._status==="ok"}finish(t){return this.end(t)}end(t){if(this._endTime)return;const n=ar(this);if(E&&n&&n.spanContext().spanId!==this._spanId){const r=this._logMessage;r&&h.log(r.replace("Starting","Finishing"))}this._endTime=Rr(t)}toTraceparent(){return Cr(this)}toContext(){return ae({data:this._getData(),description:this._name,endTimestamp:this._endTime,op:this.op,parentSpanId:this._parentSpanId,sampled:this._sampled,spanId:this._spanId,startTimestamp:this._startTime,status:this._status,tags:this.tags,traceId:this._traceId})}updateWithContext(t){return this.data=t.data||{},this._name=t.name||t.description,this._endTime=t.endTimestamp,this.op=t.op,this._parentSpanId=t.parentSpanId,this._sampled=t.sampled,this._spanId=t.spanId||this._spanId,this._startTime=t.startTimestamp||this._startTime,this._status=t.status,this.tags=t.tags||{},this._traceId=t.traceId||this._traceId,this}getTraceContext(){return ti(this)}getSpanJSON(){return ae({data:this._getData(),description:this._name,op:this._attributes[Hn],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:this._status,tags:Object.keys(this.tags).length>0?this.tags:void 0,timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[$e],_metrics_summary:pc(this),profile_id:this._attributes[Yf],exclusive_time:this._exclusiveTime,measurements:Object.keys(this._measurements).length>0?this._measurements:void 0})}isRecording(){return!this._endTime&&!!this._sampled}
10toJSON(){return this.getSpanJSON()}_getData(){const{data:t,_attributes:n}=this,r=Object.keys(t).length>0,s=Object.keys(n).length>0;if(!(!r&&!s))return r&&s?{...t,...n}:r?t:n}}class mc extends Dr{constructor(t,n){super(t),this._contexts={},this._hub=n||z(),this._name=t.name||"",this._metadata={...t.metadata},this._trimEnd=t.trimEnd,this.transaction=this;const r=this._metadata.dynamicSamplingContext;r&&(this._frozenDynamicSamplingContext={...r})}get name(){return this._name}set name(t){this.setName(t)}get metadata(){return{source:"custom",spanMetadata:{},...this._metadata,...this._attributes[le]&&{source:this._attributes[le]},...this._attributes[Rt]&&{sampleRate:this._attributes[Rt]}}}set metadata(t){this._metadata=t}setName(t,n="custom"){this._name=t,this.setAttribute(le,n)}updateName(t){return this._name=t,this}initSpanRecorder(t=1e3){this.spanRecorder||(this.spanRecorder=new hc(t)),this.spanRecorder.add(this)}setContext(t,n){n===null?delete this._contexts[t]:this._contexts[t]=n}setMeasurement(t,n,r=""){this._measurements[t]={value:n,unit:r}}setMetadata(t){this._metadata={...this._metadata,...t}}end(t){const n=Rr(t),r=this._finishTransaction(n);if(r)return this._hub.captureEvent(r)}toContext(){const t=super.toContext();return ae({...t,name:this._name,trimEnd:this._trimEnd})}updateWithContext(t){return super.updateWithContext(t),this._name=t.name||"",this._trimEnd=t.trimEnd,this}getDynamicSamplingContext(){return Ht(this)}setHub(t){this._hub=t}getProfileId(){if(this._contexts!==void 0&&this._contexts.profile!==void 0)return this._contexts.profile.profile_id}_finishTransaction(t){if(this._endTime!==void 0)return;this._name||(E&&h.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),this._name="<unlabeled transaction>"),super.end(t);const n=this._hub.getClient();if(n&&n.emit&&n.emit("finishTransaction",this),this._sampled!==!0){E&&h.log("[Tracing] Discarding transaction because its trace was not chosen to be sampled."),n&&n.recordDroppedEvent("sample_rate","transaction");return}const r=this.spanRecorder?this.spanRecorder.spans.filter(l=>l!==this&&j(l).timestamp):[];if(this._trimEnd&&r.length>0){const l=r.map(d=>j(d).timestamp).filter(Boolean);this._endTime=l.reduce((d,f)=>d>f?d:f)}const{scope:s,isolationScope:i}=Gf(this),{metadata:o}=this,{source:a}=o,c={contexts:{...this._contexts,trace:ti(this)},spans:r,start_timestamp:this._startTime,tags:this.tags,timestamp:this._endTime,transaction:this._name,type:"transaction",sdkProcessingMetadata:{...o,capturedSpanScope:s,capturedSpanIsolationScope:i,...ae({dynamicSamplingContext:Ht(this)})},_metrics_summary:pc(this),...a&&{transaction_info:{source:a}}};return Object.keys(this._measurements).length>0&&(E&&h.log("[Measurements] Adding measurements to transaction",JSON.stringify(this._measurements,void 0,2)),c.measurements=this._measurements),E&&h.log(`[Tracing] Finishing ${this.op} transaction: ${this._name}.`),c}}const un={idleTimeout:1e3,finalTimeout:3e4,heartbeatInterval:5e3},Vf="finishReason",Tt=["heartbeatFailed","idleTimeout","documentHidden","finalTimeout","externalFinish","cancelled"];class Kf extends hc{constructor(t,n,r,s){super(s),this._pushActivity=t,this._popActivity=n,this.transactionSpanId=r}add(t){if(t.spanContext().spanId!==this.transactionSpanId){const n=t.end;t.end=(...r)=>(this._popActivity(t.spanContext().spanId),n.apply(t,r)),j(t).timestamp===void 0&&this._pushActivity(t.spanContext().spanId)}super.add(t)}}class Xf extends mc{constructor(t,n,r=un.idleTimeout,s=un.finalTimeout,i=un.heartbeatInterval,o=!1,a=!1){super(t,n),this._idleHub=n,this._idleTimeout=r,this._finalTimeout=s,this._heartbeatInterval=i,this._onScope=o,this.activities={},this._heartbeatCounter=0,this._finished=!1,this._idleTimeoutCanceledPermanently=!1,this._beforeFinishCallbacks=[],this._finishReason=Tt[4],this._autoFinishAllowed=!a,o&&(E&&h.log(`Setting idle transaction on scope. Span ID: ${this.spanContext().spanId}`),n.getScope().setSpan(this)),a||this._restartIdleTimeout(),setTimeout(()=>{this._finished||(this.setStatus("deadline_exceeded"),this._finishReason=Tt[3],this.end())},this._finalTimeout)}end(t){const n=Rr(t);if(this._finished=!0,this.activities={},this.op==="ui.action.click"&&this.setAttribute(Vf,this._finishReason),this.spanRecorder){E&&h.log("[Tracing] finishing IdleTransaction",new Date(n*1e3).toISOString(),this.op);for(const r of this._beforeFinishCallbacks)r(this,n);this.spanRecorder.spans=this.spanRecorder.spans.filter(r=>{if(r.spanContext().spanId===this.spanContext().spanId)return!0;j(r).timestamp||(r.setStatus("cancelled"),r.end(n),E&&h.log("[Tracing] cancelling span since transaction ended early",JSON.stringify(r,void 0,2)));const{start_timestamp:s,timestamp:i}=j(r),o=s&&s<n,a=(this._finalTimeout+this._idleTimeout)/1e3,c=i&&s&&i-s<a;if(E){const u=JSON.stringify(r,void 0,2);o?c||h.log("[Tracing] discarding Span since it finished after Transaction final timeout",u):h.log("[Tracing] discarding Span since it happened after Transaction was finished",u)}return o&&c}),E&&h.log("[Tracing] flushing IdleTransaction")}else E&&h.log("[Tracing] No active IdleTransaction");if(this._onScope){const r=this._idleHub.getScope();r.getTransaction()===this&&r.setSpan(void 0)}return super.end(t)}registerBeforeFinishCallback(t){this._beforeFinishCallbacks.push(t)}initSpanRecorder(t){if(!this.spanRecorder){const n=s=>{this._finished||this._pushActivity(s)},r=s=>{this._finished||this._popActivity(s)};this.spanRecorder=new Kf(n,r,this.spanContext().spanId,t),E&&h.log("Starting heartbeat"),this._pingHeartbeat()}this.spanRecorder.add(this)}cancelIdleTimeout(t,{restartOnChildSpanChange:n}={restartOnChildSpanChange:!0}){this._idleTimeoutCanceledPermanently=n===!1,this._idleTimeoutID&&(clearTimeout(this._idleTimeoutID),this._idleTimeoutID=void 0,Object.keys(this.activities).length===0&&this._idleTimeoutCanceledPermanently&&(this._finishReason=Tt[5],this.end(t)))}setFinishReason(t){this._finishReason=t}sendAutoFinishSignal(){this._autoFinishAllowed||(E&&h.log("[Tracing] Received finish signal for idle transaction."),this._restartIdleTimeout(),this._autoFinishAllowed=!0)}_restartIdleTimeout(t){this.cancelIdleTimeout(),this._idleTimeoutID=setTimeout(()=>{!this._finished&&Object.keys(this.activities).length===0&&(this._finishReason=Tt[1],this.end(t))},this._idleTimeout)}
10_pushActivity(t){this.cancelIdleTimeout(void 0,{restartOnChildSpanChange:!this._idleTimeoutCanceledPermanently}),E&&h.log(`[Tracing] pushActivity: ${t}`),this.activities[t]=!0,E&&h.log("[Tracing] new activities count",Object.keys(this.activities).length)}_popActivity(t){if(this.activities[t]&&(E&&h.log(`[Tracing] popActivity ${t}`),delete this.activities[t],E&&h.log("[Tracing] new activities count",Object.keys(this.activities).length)),Object.keys(this.activities).length===0){const n=tt();this._idleTimeoutCanceledPermanently?this._autoFinishAllowed&&(this._finishReason=Tt[5],this.end(n)):this._restartIdleTimeout(n+this._idleTimeout/1e3)}}_beat(){if(this._finished)return;const t=Object.keys(this.activities).join("");t===this._prevHeartbeatString?this._heartbeatCounter++:this._heartbeatCounter=1,this._prevHeartbeatString=t,this._heartbeatCounter>=3?this._autoFinishAllowed&&(E&&h.log("[Tracing] Transaction finished because of no change for 3 heart beats"),this.setStatus("deadline_exceeded"),this._finishReason=Tt[0],this.end()):this._pingHeartbeat()}_pingHeartbeat(){E&&h.log(`pinging Heartbeat -> current counter: ${this._heartbeatCounter}`),setTimeout(()=>{this._beat()},this._heartbeatInterval)}}function gc(e,t,n){if(!yt(t))return e.sampled=!1,e;if(e.sampled!==void 0)return e.setAttribute(Rt,Number(e.sampled)),e;let r;return typeof t.tracesSampler=="function"?(r=t.tracesSampler(n),e.setAttribute(Rt,Number(r))):n.parentSampled!==void 0?r=n.parentSampled:typeof t.tracesSampleRate<"u"?(r=t.tracesSampleRate,e.setAttribute(Rt,Number(r))):(r=1,e.setAttribute(Rt,r)),_c(r)?r?(e.sampled=Math.random()<r,e.sampled?(E&&h.log(`[Tracing] starting ${e.op} transaction - ${j(e).description}`),e):(E&&h.log(`[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ${Number(r)})`),e)):(E&&h.log(`[Tracing] Discarding transaction because ${typeof t.tracesSampler=="function"?"tracesSampler returned 0 or false":"a negative sampling decision was inherited or tracesSampleRate is set to 0"}`),e.sampled=!1,e):(E&&h.warn("[Tracing] Discarding transaction because of invalid sample rate."),e.sampled=!1,e)}function _c(e){return Ea(e)||!(typeof e=="number"||typeof e=="boolean")?(E&&h.warn(`[Tracing] Given sample rate is invalid. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(e)} of type ${JSON.stringify(typeof e)}.`),!1):e<0||e>1?(E&&h.warn(`[Tracing] Given sample rate is invalid. Sample rate must be between 0 and 1. Got ${e}.`),!1):!0}function Jf(){const t=this.getScope().getSpan();return t?{"sentry-trace":Cr(t)}:{}}function Zf(e,t){const n=this.getClient(),r=n&&n.getOptions()||{},s=r.instrumenter||"sentry",i=e.instrumenter||"sentry";s!==i&&(E&&h.error(`A transaction was started with instrumenter=\`${i}\`, but the SDK is configured with the \`${s}\` instrumenter.
11The transaction will not be sampled. Please use the ${s} instrumentation to start transactions.`),e.sampled=!1);let o=new mc(e,this);return o=gc(o,r,{name:e.name,parentSampled:e.parentSampled,transactionContext:e,attributes:{...e.data,...e.attributes},...t}),o.isRecording()&&o.initSpanRecorder(r._experiments&&r._experiments.maxSpans),n&&n.emit&&n.emit("startTransaction",o),o}function ur(e,t,n,r,s,i,o,a=!1){const c=e.getClient(),u=c&&c.getOptions()||{};let l=new Xf(t,e,n,r,o,s,a);return l=gc(l,u,{name:t.name,parentSampled:t.parentSampled,transactionContext:t,attributes:{...t.data,...t.attributes},...i}),l.isRecording()&&l.initSpanRecorder(u._experiments&&u._experiments.maxSpans),c&&c.emit&&c.emit("startTransaction",l),l}function yc(){const e=Zt();e.__SENTRY__&&(e.__SENTRY__.extensions=e.__SENTRY__.extensions||{},e.__SENTRY__.extensions.startTransaction||(e.__SENTRY__.extensions.startTransaction=Zf),e.__SENTRY__.extensions.traceHeaders||(e.__SENTRY__.extensions.traceHeaders=Jf),Wf())}function Qf(e,t,n){const r=Ue();r&&r.setMeasurement(e,t,n)}function ep(e,t){return t&&(e.sdk=e.sdk||{},e.sdk.name=e.sdk.name||t.name,e.sdk.version=e.sdk.version||t.version,e.sdk.integrations=[...e.sdk.integrations||[],...t.integrations||[]],e.sdk.packages=[...e.sdk.packages||[],...t.packages||[]]),e}function tp(e,t,n,r){const s=Qs(n),i={sent_at:new Date().toISOString(),...s&&{sdk:s},...!!r&&t&&{dsn:ht(t)}},o="aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e.toJSON()];return We(i,[o])}function Sc(e,t,n,r){const s=Qs(n),i=e.type&&e.type!=="replay_event"?e.type:"event";ep(e,n&&n.sdk);const o=Xa(e,s,r,t);return delete e.sdkProcessingMetadata,We(o,[[{type:i},e]])}const np="7";function bc(e){const t=e.protocol?`${e.protocol}:`:"",n=e.port?`:${e.port}`:"";return`${t}//${e.host}${n}${e.path?`/${e.path}`:""}/api/`}function rp(e){return`${bc(e)}${e.projectId}/envelope/`}function sp(e,t){return pd({sentry_key:e.publicKey,sentry_version:np,...t&&{sentry_client:`${t.name}/${t.version}`}})}function Ec(e,t={}){const n=typeof t=="string"?t:t.tunnel,r=typeof t=="string"||!t._metadata?void 0:t._metadata.sdk;return n||`${rp(e)}?${sp(e,r)}`}function ip(e,t){const n=Ma(e);if(!n)return"";const r=`${bc(n)}embed/error-page/`;let s=`dsn=${ht(n)}`;for(const i in t)if(i!=="dsn"&&i!=="onClose")if(i==="user"){const o=t.user;if(!o)continue;o.name&&(s+=`&name=${encodeURIComponent(o.name)}`),o.email&&(s+=`&email=${encodeURIComponent(o.email)}`)}else s+=`&${encodeURIComponent(i)}=${encodeURIComponent(t[i])}`;return`${r}?${s}`}const no=[];function op(e){const t={};return e.forEach(n=>{const{name:r}=n,s=t[r];s&&!s.isDefaultInstance&&n.isDefaultInstance||(t[r]=n)}),Object.keys(t).map(n=>t[n])}function ap(e){const t=e.defaultIntegrations||[],n=e.integrations;t.forEach(o=>{o.isDefaultInstance=!0});let r;Array.isArray(n)?r=[...t,...n]:typeof n=="function"?r=Ks(n(t)):r=t;const s=op(r),i=up(s,o=>o.name==="Debug");if(i!==-1){const[o]=s.splice(i,1);s.push(o)}return s}function cp(e,t){const n={};return t.forEach(r=>{r&&Tc(e,r,n)}),n}function ro(e,t){for(const n of t)n&&n.afterAllSetup&&n.afterAllSetup(e)}function Tc(e,t,n){if(n[t.name]){E&&h.log(`Integration skipped because it was already installed: ${t.name}`);return}if(n[t.name]=t,no.indexOf(t.name)===-1&&(t.setupOnce(_f,z),no.push(t.name)),t.setup&&typeof t.setup=="function"&&t.setup(e),e.on&&typeof t.preprocessEvent=="function"){const r=t.preprocessEvent.bind(t);e.on("preprocessEvent",(s,i)=>r(s,i,e))}if(e.addEventProcessor&&typeof t.processEvent=="function"){const r=t.processEvent.bind(t),s=(i,o)=>r(i,o,e);s.id=t.name,e.addEventProcessor(s)}E&&h.log(`Integration installed: ${t.name}`)}function iv(e){const t=x();if(!t||!t.addIntegration){E&&h.warn(`Cannot add integration "${e.name}" because no SDK Client is available.`);return}t.addIntegration(e)}function up(e,t){for(let n=0;n<e.length;n++)if(t(e[n])===!0)return n;return-1}function Z(e,t){const n=function(...s){return t(...s)};return n.id=e,n}function lp(e,t,n,r){const s=Object.entries(ae(r)).sort((i,o)=>i[0].localeCompare(o[0]));return`${e}${t}${n}${s}`}function dp(e){let t=0;for(let n=0;n<e.length;n++){const r=e.charCodeAt(n);t=(t<<5)-t+r,t&=t}return t>>>0}function fp(e){let t="";for(const n of e){const r=Object.entries(n.tags),s=r.length>0?`|#${r.map(([i,o])=>`${i}:${o}`).join(",")}`:"";t+=`${n.name}@${n.unit}:${n.metric}|${n.metricType}${s}|T${n.timestamp}
12`}return t}function pp(e){return e.replace(/[^\w]+/gi,"_")}function hp(e){return e.replace(/[^\w\-.]+/gi,"_")}function mp(e){return e.replace(/[^\w\-./]+/gi,"")}const gp=[[`
13`,"\\n"],["\r","\\r"],["	","\\t"],["\\","\\\\"],["|","\\u{7c}"],[",","\\u{2c}"]];function _p(e){for(const[t,n]of gp)if(e===t)return n;return e}function yp(e){return[...e].reduce((t,n)=>t+_p(n),"")}function Sp(e){const t={};for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)){const r=mp(n);t[r]=yp(String(e[n]))}return t}function bp(e,t,n,r){const s={sent_at:new Date().toISOString()};n&&n.sdk&&(s.sdk={name:n.sdk.name,version:n.sdk.version}),r&&t&&(s.dsn=ht(t));const i=Ep(e);return We(s,[i])}function Ep(e){const t=fp(e);return[{type:"statsd",length:t.length},t]}const so="Not capturing exception because it's already been captured.";class Tp{constructor(t){if(this._options=t,this._integrations={},this._integrationsInitialized=!1,this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],t.dsn?this._dsn=Ma(t.dsn):E&&h.warn("No DSN provided, client will not send events."),this._dsn){const n=Ec(this._dsn,t);this._transport=t.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...t.transportOptions,url:n})}}captureException(t,n,r){if(Bi(t)){E&&h.log(so);return}let s=n&&n.event_id;return this._process(this.eventFromException(t,n).then(i=>this._captureEvent(i,n,r)).then(i=>{s=i}
13)),s}captureMessage(t,n,r,s){let i=r&&r.event_id;const o=Gs(t)?t:String(t),a=qs(t)?this.eventFromMessage(o,n,r):this.eventFromException(t,r);return this._process(a.then(c=>this._captureEvent(c,r,s)).then(c=>{i=c})),i}captureEvent(t,n,r){if(n&&n.originalException&&Bi(n.originalException)){E&&h.log(so);return}let s=n&&n.event_id;const o=(t.sdkProcessingMetadata||{}).capturedSpanScope;return this._process(this._captureEvent(t,n,o||r).then(a=>{s=a})),s}captureSession(t){typeof t.release!="string"?E&&h.warn("Discarded session because of missing or non-string release"):(this.sendSession(t),ft(t,{init:!1}))}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(t){const n=this._transport;return n?(this.metricsAggregator&&this.metricsAggregator.flush(),this._isClientDoneProcessing(t).then(r=>n.flush(t).then(s=>r&&s))):Ft(!0)}close(t){return this.flush(t).then(n=>(this.getOptions().enabled=!1,this.metricsAggregator&&this.metricsAggregator.close(),n))}getEventProcessors(){return this._eventProcessors}addEventProcessor(t){this._eventProcessors.push(t)}setupIntegrations(t){(t&&!this._integrationsInitialized||this._isEnabled()&&!this._integrationsInitialized)&&this._setupIntegrations()}init(){this._isEnabled()&&this._setupIntegrations()}getIntegrationById(t){return this.getIntegrationByName(t)}getIntegrationByName(t){return this._integrations[t]}getIntegration(t){try{return this._integrations[t.id]||null}catch{return E&&h.warn(`Cannot retrieve integration ${t.id} from the current Client`),null}}addIntegration(t){const n=this._integrations[t.name];Tc(this,t,this._integrations),n||ro(this,[t])}sendEvent(t,n={}){this.emit("beforeSendEvent",t,n);let r=Sc(t,this._dsn,this._options._metadata,this._options.tunnel);for(const i of n.attachments||[])r=sf(r,uf(i,this._options.transportOptions&&this._options.transportOptions.textEncoder));const s=this._sendEnvelope(r);s&&s.then(i=>this.emit("afterSendEvent",t,i),null)}sendSession(t){const n=tp(t,this._dsn,this._options._metadata,this._options.tunnel);this._sendEnvelope(n)}recordDroppedEvent(t,n,r){if(this._options.sendClientReports){const s=typeof r=="number"?r:1,i=`${t}:${n}`;E&&h.log(`Recording outcome: "${i}"${s>1?` (${s} times)`:""}`),this._outcomes[i]=(this._outcomes[i]||0)+s}}captureAggregateMetrics(t){E&&h.log(`Flushing aggregated metrics, number of metrics: ${t.length}`);const n=bp(t,this._dsn,this._options._metadata,this._options.tunnel);this._sendEnvelope(n)}on(t,n){this._hooks[t]||(this._hooks[t]=[]),this._hooks[t].push(n)}emit(t,...n){this._hooks[t]&&this._hooks[t].forEach(r=>r(...n))}_setupIntegrations(){const{integrations:t}=this._options;this._integrations=cp(this,t),ro(this,t),this._integrationsInitialized=!0}_updateSessionFromEvent(t,n){let r=!1,s=!1;const i=n.exception&&n.exception.values;if(i){s=!0;for(const c of i){const u=c.mechanism;if(u&&u.handled===!1){r=!0;break}}}const o=t.status==="ok";(o&&t.errors===0||o&&r)&&(ft(t,{...r&&{status:"crashed"},errors:t.errors||Number(s||r)}),this.captureSession(t))}_isClientDoneProcessing(t){return new ge(n=>{let r=0;const s=1,i=setInterval(()=>{this._numProcessing==0?(clearInterval(i),n(!0)):(r+=s,t&&r>=t&&(clearInterval(i),n(!1)))},s)})}_isEnabled(){return this.getOptions().enabled!==!1&&this._transport!==void 0}_prepareEvent(t,n,r,s=Oe()){const i=this.getOptions(),o=Object.keys(this._integrations);return!n.integrations&&o.length>0&&(n.integrations=o),this.emit("preprocessEvent",t,n),ri(i,t,n,r,this,s).then(a=>{if(a===null)return a;const c={...s.getPropagationContext(),...r?r.getPropagationContext():void 0};if(!(a.contexts&&a.contexts.trace)&&c){const{traceId:l,spanId:d,parentSpanId:f,dsc:p}=c;a.contexts={trace:{trace_id:l,span_id:d,parent_span_id:f},...a.contexts};const m=p||Mr(l,this,r);a.sdkProcessingMetadata={dynamicSamplingContext:m,...a.sdkProcessingMetadata}}return a})}_captureEvent(t,n={},r){return this._processEvent(t,n,r).then(s=>s.event_id,s=>{if(E){const i=s;i.logLevel==="log"?h.log(i.message):h.warn(i)}})}_processEvent(t,n,r){const s=this.getOptions(),{sampleRate:i}
13=s,o=Ic(t),a=vc(t),c=t.type||"error",u=`before send for type \`${c}\``;if(a&&typeof i=="number"&&Math.random()>i)return this.recordDroppedEvent("sample_rate","error",t),Xs(new xe(`Discarding event because it's not included in the random sample (sampling rate = ${i})`,"log"));const l=c==="replay_event"?"replay":c,f=(t.sdkProcessingMetadata||{}).capturedSpanIsolationScope;return this._prepareEvent(t,n,r,f).then(p=>{if(p===null)throw this.recordDroppedEvent("event_processor",l,t),new xe("An event processor returned `null`, will not send event.","log");if(n.data&&n.data.__sentry__===!0)return p;const _=Ip(s,p,n);return vp(_,u)}).then(p=>{if(p===null){if(this.recordDroppedEvent("before_send",l,t),o){const g=1+(t.spans||[]).length;this.recordDroppedEvent("before_send","span",g)}throw new xe(`${u} returned \`null\`, will not send event.`,"log")}const m=r&&r.getSession();if(!o&&m&&this._updateSessionFromEvent(m,p),o){const S=p.sdkProcessingMetadata&&p.sdkProcessingMetadata.spanCountBeforeProcessing||0,g=p.spans?p.spans.length:0,y=S-g;y>0&&this.recordDroppedEvent("before_send","span",y)}const _=p.transaction_info;if(o&&_&&p.transaction!==t.transaction){const S="custom";p.transaction_info={..._,source:S}}return this.sendEvent(p,n),p}).then(null,p=>{throw p instanceof xe?p:(this.captureException(p,{data:{__sentry__:!0},originalException:p}),new xe(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.
14Reason: ${p}`))})}_process(t){this._numProcessing++,t.then(n=>(this._numProcessing--,n),n=>(this._numProcessing--,n))}_sendEnvelope(t){if(this.emit("beforeEnvelope",t),this._isEnabled()&&this._transport)return this._transport.send(t).then(null,n=>{E&&h.error("Error while sending event:",n)});E&&h.error("Transport disabled")}_clearOutcomes(){const t=this._outcomes;return this._outcomes={},Object.keys(t).map(n=>{const[r,s]=n.split(":");return{reason:r,category:s,quantity:t[n]}})}}function vp(e,t){const n=`${t} must return \`null\` or a valid event.`;if(Tn(e))return e.then(r=>{if(!lt(r)&&r!==null)throw new xe(n);return r},r=>{throw new xe(`${t} rejected with ${r}`)});if(!lt(e)&&e!==null)throw new xe(n);return e}function Ip(e,t,n){const{beforeSend:r,beforeSendTransaction:s}=e;if(vc(t)&&r)return r(t,n);if(Ic(t)&&s){if(t.spans){const i=t.spans.length;t.sdkProcessingMetadata={...t.sdkProcessingMetadata,spanCountBeforeProcessing:i}}return s(t,n)}return t}function vc(e){return e.type===void 0}function Ic(e){return e.type==="transaction"}function wp(e){const t=x();!t||!t.addEventProcessor||t.addEventProcessor(e)}const wc="c",kc="g",oi="s",Cc="d",kp=5e3;class Cp{constructor(t){this._value=t}get weight(){return 1}add(t){this._value+=t}toString(){return`${this._value}`}}class Rp{constructor(t){this._last=t,this._min=t,this._max=t,this._sum=t,this._count=1}get weight(){return 5}add(t){this._last=t,t<this._min&&(this._min=t),t>this._max&&(this._max=t),this._sum+=t,this._count++}toString(){return`${this._last}:${this._min}:${this._max}:${this._sum}:${this._count}`}}class xp{constructor(t){this._value=[t]}get weight(){return this._value.length}add(t){this._value.push(t)}toString(){return this._value.join(":")}}class Mp{constructor(t){this.first=t,this._value=new Set([t])}get weight(){return this._value.size}add(t){this._value.add(t)}toString(){return Array.from(this._value).map(t=>typeof t=="string"?dp(t):t).join(":")}}const Ap={[wc]:Cp,[kc]:Rp,[Cc]:xp,[oi]:Mp};function Op(e,t){t.debug===!0&&(E?h.enable():we(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})),ne().update(t.initialScope);const r=new e(t);Np(r),Dp(r)}function Np(e){const n=z().getStackTop();n.client=e,n.scope.setClient(e)}function Dp(e){e.init?e.init():e.setupIntegrations&&e.setupIntegrations()}const Lp=30;function Rc(e,t,n=Kd(e.bufferSize||Lp)){let r={};const s=o=>n.drain(o);function i(o){const a=[];if(Bt(o,(d,f)=>{const p=qi(f);if(Za(r,p)){const m=io(d,f);e.recordDroppedEvent("ratelimit_backoff",p,m)}else a.push(d)}),a.length===0)return Ft();const c=We(o[0],a),u=d=>{Bt(c,(f,p)=>{const m=io(f,p);
14e.recordDroppedEvent(d,qi(p),m)})},l=()=>t({body:Ka(c,e.textEncoder)}).then(d=>(d.statusCode!==void 0&&(d.statusCode<200||d.statusCode>=300)&&E&&h.warn(`Sentry responded with status code ${d.statusCode} to sent event.`),r=Qa(r,d),d),d=>{throw u("network_error"),d});return n.add(l).then(d=>d,d=>{if(d instanceof xe)return E&&h.error("Skipped sending event because buffer is full."),u("queue_overflow"),Ft();throw d})}return i.__sentry__baseTransport__=!0,{send:i,flush:s}}function io(e,t){if(!(t!=="event"&&t!=="transaction"))return Array.isArray(e)?e[1]:void 0}const Pp=100,oo=5e3,$p=36e5;function Qr(e,t){E&&h.info(`[Offline]: ${e}`,t)}function Fp(e){return t=>{const n=e(t),r=t.createStore?t.createStore(t):void 0;let s=oo,i;function o(l,d,f){return of(l,["replay_event","replay_recording","client_report"])?!1:t.shouldStore?t.shouldStore(l,d,f):!0}function a(l){r&&(i&&clearTimeout(i),i=setTimeout(async()=>{i=void 0;const d=await r.pop();d&&(Qr("Attempting to send previously queued event"),u(d).catch(f=>{Qr("Failed to retry sending",f)}))},l),typeof i!="number"&&i.unref&&i.unref())}function c(){i||(a(s),s=Math.min(s*2,$p))}async function u(l){try{const d=await n.send(l);let f=Pp;if(d){if(d.headers&&d.headers["retry-after"])f=Ja(d.headers["retry-after"]);else if((d.statusCode||0)>=400)return d}return a(f),s=oo,d}catch(d){if(r&&await o(l,d,s))return await r.insert(l),c(),Qr("Error sending. Event queued",d),{};throw d}}return t.flushAtStartup&&c(),{send:u,flush:l=>n.flush(l)}}}function xc(e,t){let n;return Bt(e,(r,s)=>(t.includes(s)&&(n=Array.isArray(r)?r[1]:void 0),!!n)),n}function Bp(e,t){return n=>{const r=e(n);return{...r,send:async s=>{const i=xc(s,["event","transaction","profile","replay_event"]);return i&&(i.release=t),r.send(s)}}}}function Hp(e,t){return We(t?{...e[0],dsn:t}:e[0],e[1])}function ov(e,t){return n=>{const r=e(n),s=new Map;function i(c,u){const l=u?`${c}:${u}`:c;let d=s.get(l);if(!d){const f=Ra(c);if(!f)return;const p=Ec(f,n.tunnel);d=u?Bp(e,u)({...n,url:p}):e({...n,url:p}),s.set(l,d)}return[c,d]}async function o(c){function u(f){const p=f&&f.length?f:["event"];return xc(c,p)}const l=t({envelope:c,getEvent:u}).map(f=>typeof f=="string"?i(f,void 0):i(f.dsn,f.release)).filter(f=>!!f);return l.length===0&&l.push(["",r]),(await Promise.all(l.map(([f,p])=>p.send(Hp(c,f)))))[0]}async function a(c){const u=[await r.flush(c)];for(const[,l]of s)u.push(await l.flush(c));return u.every(l=>l)}return{send:o,flush:a}}}function Up(e,t){const n={sent_at:new Date().toISOString()};t&&(n.dsn=ht(t));const r=e.map(Wp);return We(n,r)}function Wp(e){return[{type:"span"},e]}function Mc(e,t){const n=t&&Gp(t)?t.getClient():t,r=n&&n.getDsn(),s=n&&n.getOptions().tunnel;return zp(e,r)||jp(e,s)}function jp(e,t){return t?ao(e)===ao(t):!1}function zp(e,t){return t?e.includes(t.host):!1}function ao(e){return e[e.length-1]==="/"?e.slice(0,-1):e}function Gp(e){return e.getClient!==void 0}function av(e,...t){const n=new String(String.raw(e,...t));return n.__sentry_template_string__=e.join("\0").replace(/%/g,"%%").replace(/\0/g,"%s"),n.__sentry_template_values__=t,n}function qp(e,t,n=[t],r="npm"){const s=e._metadata||{};s.sdk||(s.sdk={name:`sentry.javascript.${t}`,packages:n.map(i=>({name:`${r}:@sentry/${i}`,version:gn})),version:gn}),e._metadata=s}const Ac=new Map,co=new Set;function Yp(e){if(A._sentryModuleMetadata)for(const t of Object.keys(A._sentryModuleMetadata)){const n=A._sentryModuleMetadata[t];if(co.has(t))continue;co.add(t);const r=e(t);for(const s of r.reverse())if(s.filename){Ac.set(s.filename,n);break}}}function Vp(e,t){return Yp(e),Ac.get(t)}function Kp(e,t){try{t.exception.values.forEach(n=>{if(n.stacktrace)for(const r of n.stacktrace.frames||[]){if(!r.filename)continue;const s=Vp(e,r.filename);s&&(r.module_metadata=s)}})}catch{}}function Xp(e){try{e.exception.values.forEach(t=>{if(t.stacktrace)for(const n of t.stacktrace.frames||[])delete n.module_metadata})}catch{}}const Oc="ModuleMetadata",Jp=(()=>({name:Oc,setupOnce(){},setup(e){typeof e.on=="function"&&e.on("beforeEnvelope",t=>{Bt(t,(n,r)=>{if(r==="event"){const s=Array.isArray(n)?n[1]:void 0;s&&(Xp(s),n[1]=s)}})})},processEvent(e,t,n){const r=n.getOptions().stackParser;return Kp(r,e),e}})),Zp=Jp,cv=Z(Oc,Zp),Qp=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/],eh=[/^.*\/healthcheck$/,/^.*\/healthy$/,/^.*\/live$/,/^.*\/ready$/,/^.*\/heartbeat$/,/^.*\/health$/,/^.*\/healthz$/],Nc="InboundFilters",th=((e={})=>({name:Nc,setupOnce(){},processEvent(t,n,r){const s=r.getOptions(),i=rh(e,s);return sh(t,i)?null:t}})),Dc=th,nh=Z(Nc,Dc);function rh(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:Qp],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[],...e.disableTransactionDefaults?[]:eh],ignoreInternal:e.ignoreInternal!==void 0?e.ignoreInternal:!0}}function sh(e,t){return t.ignoreInternal&&lh(e)?(E&&h.warn(`Event dropped due to being internal Sentry Error.
15Event: ${Ve(e)}`),!0):ih(e,t.ignoreErrors)?(E&&h.warn(`Event dropped due to being matched by \`ignoreErrors\` option.
16Event: ${Ve(e)}`),!0):oh(e,t.ignoreTransactions)?(E&&h.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.
17Event: ${Ve(e)}`),!0):ah(e,t.denyUrls)?(E&&h.warn(`Event dropped due to being matched by \`denyUrls\` option.
18Event: ${Ve(e)}.
19Url: ${lr(e)}`),!0):ch(e,t.allowUrls)?!1:(E&&h.warn(`Event dropped due to not being matched by \`allowUrls\` option.
20Event: ${Ve(e)}.
21Url: ${lr(e)}`),!0)}function ih(e,t){return e.type||!t||!t.length?!1:uh(e).some(n=>Kt(n,t))}function oh(e,t){if(e.type!=="transaction"||!t||!t.length)return!1;const n=e.transaction;return n?Kt(n,t):!1}function ah(e,t){if(!t||!t.length)return!1;const n=lr(e);return n?Kt(n,t):!1}function ch(e,t){if(!t||!t.length)return!0;const n=lr(e);return n?Kt(n,t):!0}function uh(e){const t=[];e.message&&t.push(e.message);let n;try{n=e.exception.values[e.exception.values.length-1]}catch{}return n&&n.value&&(t.push(n.value),n.type&&t.push(`${n.type}: ${n.value}`)),E&&t.length===0&&h.error(`Could not extract message for event ${Ve(e)}`),t}function lh(e){try{return e.exception.values[0].type==="SentryError"}catch{}return!1}function dh(e=[]){for(let t=e.length-1;t>=0;t--){const n=e[t];if(n&&n.filename!=="<anonymous>"&&n.filename!=="[native code]")return n.filename||null}return null}function lr(e){try{let t;try{t=e.exception.values[0].stacktrace.frames}catch{}return t?dh(t):null}catch{return E&&h.error(`Cannot extract url for event ${Ve(e)}`),null}}let uo;const Lc="FunctionToString",lo=new WeakMap,fh=(()=>({name:Lc,setupOnce(){uo=Function.prototype.toString;try{Function.prototype.toString=function(...e){const t=Vs(this),n=lo.has(x())&&t!==void 0?t:this;return uo.apply(n,e)}}catch{}},setup(e){lo.set(e,!0)}})),Pc=fh,ph=Z(Lc,Pc),hh="cause",mh=5,$c="LinkedErrors",gh=((e={})=>{const t=e.limit||mh,n=e.key||hh;return{name:$c,setupOnce(){},preprocessEvent(r,s,i){const o=i.getOptions();va(mf,o.stackParser,o.maxValueLength,n,t,r,s)}}}),_h=gh,yh=Z($c,_h),Sh=Object.freeze(Object.defineProperty({__proto__:null,FunctionToString:ph,InboundFilters:nh,LinkedErrors:yh},Symbol.toStringTag,{value:"Module"}));class bh{constructor(t){this._client=t,this._buckets=new Map,this._interval=setInterval(()=>this.flush(),kp)}add(t,n,r,s="none",i={},o=tt()){const a=Math.floor(o),c=hp(n),u=Sp(i),l=pp(s),d=lp(t,c,l,u);let f=this._buckets.get(d);const p=f&&t===oi?f.metric.weight:0;f?(f.metric.add(r),f.timestamp<a&&(f.timestamp=a)):(f={metric:new Ap[t](r),timestamp:a,metricType:t,name:c,unit:l,tags:u},this._buckets.set(d,f));const m=typeof r=="string"?f.metric.weight-p:r;qf(t,c,m,l,i,d)}flush(){if(this._buckets.size!==0){if(this._client.captureAggregateMetrics){const t=Array.from(this._buckets).map(([,n])=>n);this._client.captureAggregateMetrics(t)}this._buckets.clear()}}close(){clearInterval(this._interval),this.flush()}}const Fc="MetricsAggregator",Eh=(()=>({name:Fc,setupOnce(){},setup(e){e.metricsAggregator=new bh(e)}})),Bc=Eh,Th=Z(Fc,Bc);function Lr(e,t,n,r={}){const s=x(),i=ne();if(s){if(!s.metricsAggregator){E&&h.warn("No metrics aggregator enabled. Please add the MetricsAggregator integration to use metrics APIs");return}const{unit:o,tags:a,timestamp:c}=r,{release:u,environment:l}=s.getOptions(),d=i.getTransaction(),f={};u&&(f.release=u),l&&(f.environment=l),d&&(f.transaction=j(d).description||""),E&&h.log(`Adding value of ${n} to ${e} metric ${t}`),s.metricsAggregator.add(e,t,n,o,{...f,...a},c)}}function vh(e,t=1,n){Lr(wc,e,t,n)}function Ih(e,t,n){Lr(Cc,e,t,n)}
21function wh(e,t,n){Lr(oi,e,t,n)}function kh(e,t,n){Lr(kc,e,t,n)}const uv={increment:vh,distribution:Ih,set:wh,gauge:kh,MetricsAggregator:Th,metricsAggregatorIntegration:Bc},Ch=Sh,P=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,k=A;function Hc(){k.document?k.document.addEventListener("visibilitychange",()=>{const e=Ue();if(k.document.hidden&&e){const t="cancelled",{op:n,status:r}=j(e);P&&h.log(`[Tracing] Transaction: ${t} -> since tab moved to the background, op: ${n}`),r||e.setStatus(t),e.setTag("visibilitychange","document.hidden"),e.end()}}):P&&h.warn("[Tracing] Could not set up background tab detection due to lack of global document")}const kn=(e,t,n)=>{let r,s;return i=>{t.value>=0&&(i||n)&&(s=t.value-(r||0),(s||r===void 0)&&(r=t.value,t.delta=s,e(t)))}},Rh=()=>`v3-${Date.now()}-${Math.floor(Math.random()*(9e12-1))+1e12}`,xh=()=>{const e=k.performance.timing,t=k.performance.navigation.type,n={entryType:"navigation",startTime:0,type:t==2?"back_forward":t===1?"reload":"navigate"};for(const r in e)r!=="navigationStart"&&r!=="toJSON"&&(n[r]=Math.max(e[r]-e.navigationStart,0));return n},Pr=()=>k.__WEB_VITALS_POLYFILL__?k.performance&&(performance.getEntriesByType&&performance.getEntriesByType("navigation")[0]||xh()):k.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0],ai=()=>{const e=Pr();return e&&e.activationStart||0},Cn=(e,t)=>{const n=Pr();let r="navigate";return n&&(k.document&&k.document.prerendering||ai()>0?r="prerender":r=n.type.replace(/_/g,"-")),{name:e,value:typeof t>"u"?-1:t,rating:"good",delta:0,entries:[],id:Rh(),navigationType:r}},Qt=(e,t,n)=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){const r=new PerformanceObserver(s=>{t(s.getEntries())});return r.observe({type:e,buffered:!0,...n}),r}}catch{}},Rn=(e,t)=>{const n=r=>{(r.type==="pagehide"||k.document.visibilityState==="hidden")&&(e(r),t&&(removeEventListener("visibilitychange",n,!0),removeEventListener("pagehide",n,!0)))};k.document&&(addEventListener("visibilitychange",n,!0),addEventListener("pagehide",n,!0))},Mh=(e,t={})=>{const n=Cn("CLS",0);let r,s=0,i=[];const o=c=>{c.forEach(u=>{if(!u.hadRecentInput){const l=i[0],d=i[i.length-1];s&&i.length!==0&&u.startTime-d.startTime<1e3&&u.startTime-l.startTime<5e3?(s+=u.value,i.push(u)):(s=u.value,i=[u]),s>n.value&&(n.value=s,n.entries=i,r&&r())}})},a=Qt("layout-shift",o);if(a){r=kn(e,n,t.reportAllChanges);const c=()=>{o(a.takeRecords()),r(!0)};return Rn(c),c}};let dr=-1;const Ah=()=>{k.document&&k.document.visibilityState&&(dr=k.document.visibilityState==="hidden"&&!k.document.prerendering?0:1/0)},Oh=()=>{Rn(({timeStamp:e})=>{dr=e},!0)},ci=()=>(dr<0&&(Ah(),Oh()),{get firstHiddenTime(){return dr}}),Nh=e=>{const t=ci(),n=Cn("FID");let r;const s=a=>{a.startTime<t.firstHiddenTime&&(n.value=a.processingStart-a.startTime,n.entries.push(a),r(!0))},i=a=>{a.forEach(s)},o=Qt("first-input",i);r=kn(e,n),o&&Rn(()=>{i(o.takeRecords()),o.disconnect()},!0)};let Uc=0,es=1/0,Un=0;const Dh=e=>{e.forEach(t=>{t.interactionId&&(es=Math.min(es,t.interactionId),Un=Math.max(Un,t.interactionId),Uc=Un?(Un-es)/7+1:0)})};let Cs;const Lh=()=>Cs?Uc:performance.interactionCount||0,Ph=()=>{"interactionCount"in performance||Cs||(Cs=Qt("event",Dh,{type:"event",buffered:!0,durationThreshold:0}))},Wc=()=>Lh(),fo=10,Le=[],ts={},po=e=>{const t=Le[Le.length-1],n=ts[e.interactionId];if(n||Le.length<fo||e.duration>t.latency){if(n)n.entries.push(e),n.latency=Math.max(n.latency,e.duration);else{const r={id:e.interactionId,latency:e.duration,entries:[e]};ts[r.id]=r,Le.push(r)}Le.sort((r,s)=>s.latency-r.latency),Le.splice(fo).forEach(r=>{delete ts[r.id]})}},$h=()=>{const e=Math.min(Le.length-1,Math.floor(Wc()/50));return Le[e]},Fh=(e,t)=>{t=t||{},Ph();const n=Cn("INP");let r;const s=o=>{o.forEach(c=>{c.interactionId&&po(c),c.entryType==="first-input"&&!Le.some(l=>l.entries.some(d=>c.duration===d.duration&&c.startTime===d.startTime))&&po(c)});const a=$h();a&&a.latency!==n.value&&(n.value=a.latency,n.entries=a.entries,r())},i=Qt("event",s,{durationThreshold:t.durationThreshold||40});r=kn(e,n,t.reportAllChanges),i&&(i.observe({type:"first-input",buffered:!0}),Rn(()=>{s(i.takeRecords()),n.value<0&&Wc()>0&&(n.value=0,n.entries=[]),r(!0)}))},ho={},Bh=e=>{const t=ci(),n=Cn("LCP");let r;const s=o=>{const a=o[o.length-1];if(a){const c=Math.max(a.startTime-ai(),0);c<t.firstHiddenTime&&(n.value=c,n.entries=[a],r())}},i=Qt("largest-contentful-paint",s);if(i){r=kn(e,n);const o=()=>{ho[n.id]||(s(i.takeRecords()),i.disconnect(),ho[n.id]=!0,r(!0))};return["keydown","click"].forEach(a=>{k.document&&addEventListener(a,o,{once:!0,capture:!0})}),Rn(o,!0),o}},Rs=e=>{k.document&&(k.document.prerendering?addEventListener("prerenderingchange",()=>Rs(e),!0):k.document.readyState!=="complete"?addEventListener("load",()=>Rs(e),!0):setTimeout(e,0))},Hh=(e,t)=>{t=t||{};const n=Cn("TTFB"),r=kn(e,n,t.reportAllChanges);Rs(()=>{const s=Pr();if(s){if(n.value=Math.max(s.responseStart-ai(),0),n.value<0||n.value>performance.now())return;n.entries=[s],r(!0)}})},ln={},fr={};let jc,zc,Gc,qc,Yc;function Uh(e,t=!1){return xn("cls",e,Gh,jc,t)}function Vc(e,t=!1){return xn("lcp",e,Yh,Gc,t)}function Wh(e){return xn("ttfb",e,Vh,qc)}function jh(e){return xn("fid",e,qh,zc)}function zh(e){return xn("inp",e,Kh,Yc)}function et(e,t){return Kc(e,t),fr[e]||(Xh(e),fr[e]=!0),Xc(e,t)}function en(e,t){const n=ln[e];if(!(!n||!n.length))for(const r of n)try{r(t)}catch(s){P&&h.error(`Error while triggering instrumentation handler.
22Type: ${e}
23Name: ${He(r)}
24Error:`,s)}}function Gh(){return Mh(e=>{en("cls",{metric:e}),jc=e},{reportAllChanges:!0})}function qh(){return Nh(e=>{en("fid",{metric:e}),zc=e})}function Yh(){return Bh(e=>{en("lcp",{metric:e}),Gc=e})}function Vh(){return Hh(e=>{en("ttfb",{metric:e}),qc=e})}function Kh(){return Fh(e=>{en("inp",{metric:e}),Yc=e})}function xn(e,t,n,r,s=!1){Kc(e,t);let i;return fr[e]||(i=n(),fr[e]=!0),r&&t({metric:r}),Xc(e,t,s?i:void 0)}function Xh(e){const t={};e==="event"&&(t.durationThreshold=0),Qt(e,n=>{en(e,{entries:n})},t)}function Kc(e,t){ln[e]=ln[e]||[],ln[e].push(t)}function Xc(e,t,n){return()=>{n&&n();const r=ln[e];if(!r)return;const s=r.indexOf(t);s!==-1&&r.splice(s,1)}}function ns(e){return typeof e=="number"&&isFinite(e)}function Wt(e,{startTimestamp:t,...n}){return t&&e.startTimestamp>t&&(e.startTimestamp=t),e.startChild({startTimestamp:t,...n})}const Jh=2147483647;function ie(e){return e/1e3}function ui(){return k&&k.addEventListener&&k.performance}let mo=0,ee={},Ce,dn;
24function Jc(){const e=ui();if(e&&ue){e.mark&&k.performance.mark("sentry-tracing-init");const t=em(),n=Zh(),r=Qh(),s=tm();return()=>{t(),n(),r(),s()}}return()=>{}}function Zc(){et("longtask",({entries:e})=>{for(const t of e){const n=Ue();if(!n)return;const r=ie(ue+t.startTime),s=ie(t.duration);n.startChild({description:"Main UI thread blocked",op:"ui.long-task",origin:"auto.ui.browser.metrics",startTimestamp:r,endTimestamp:r+s})}})}function Qc(){et("event",({entries:e})=>{for(const t of e){const n=Ue();if(!n)return;if(t.name==="click"){const r=ie(ue+t.startTime),s=ie(t.duration),i={description:Je(t.target),op:`ui.interaction.${t.name}`,origin:"auto.ui.browser.metrics",startTimestamp:r,endTimestamp:r+s},o=Ca(t.target);o&&(i.attributes={"ui.component_name":o}),n.startChild(i)}}})}function eu(e,t){if(ui()&&ue){const r=nm(e,t);return()=>{r()}}return()=>{}}function Zh(){return Uh(({metric:e})=>{const t=e.entries[e.entries.length-1];t&&(P&&h.log("[Measurements] Adding CLS"),ee.cls={value:e.value,unit:""},dn=t)},!0)}function Qh(){return Vc(({metric:e})=>{const t=e.entries[e.entries.length-1];t&&(P&&h.log("[Measurements] Adding LCP"),ee.lcp={value:e.value,unit:"millisecond"},Ce=t)},!0)}function em(){return jh(({metric:e})=>{const t=e.entries[e.entries.length-1];if(!t)return;const n=ie(ue),r=ie(t.startTime);P&&h.log("[Measurements] Adding FID"),ee.fid={value:e.value,unit:"millisecond"},ee["mark.fid"]={value:n+r,unit:"second"}})}function tm(){return Wh(({metric:e})=>{e.entries[e.entries.length-1]&&(P&&h.log("[Measurements] Adding TTFB"),ee.ttfb={value:e.value,unit:"millisecond"})})}const go={click:"click",pointerdown:"click",pointerup:"click",mousedown:"click",mouseup:"click",touchstart:"click",touchend:"click",mouseover:"hover",mouseout:"hover",mouseenter:"hover",mouseleave:"hover",pointerover:"hover",pointerout:"hover",pointerenter:"hover",pointerleave:"hover",dragstart:"drag",dragend:"drag",drag:"drag",dragenter:"drag",dragleave:"drag",dragover:"drag",drop:"drag",keydown:"press",keyup:"press",keypress:"press",input:"press"};function nm(e,t){return zh(({metric:n})=>{if(n.value===void 0)return;const r=n.entries.find(b=>b.duration===n.value&&go[b.name]!==void 0),s=x();if(!r||!s)return;const i=go[r.name],o=s.getOptions(),a=ie(ue+r.startTime),c=ie(n.value),u=r.interactionId!==void 0?e[r.interactionId]:void 0;if(u===void 0)return;const{routeName:l,parentContext:d,activeTransaction:f,user:p,replayId:m}=u,_=p!==void 0?p.email||p.id||p.ip_address:void 0,S=f!==void 0?f.getProfileId():void 0,g=new Dr({startTimestamp:a,endTimestamp:a+c,op:`ui.interaction.${i}`,name:Je(r.target),attributes:{release:o.release,environment:o.environment,transaction:l,..._!==void 0&&_!==""?{user:_}:{},...S!==void 0?{profile_id:S}:{},...m!==void 0?{replay_id:m}:{}},exclusiveTime:n.value,measurements:{inp:{value:n.value,unit:"millisecond"}}}),y=lm(d,o,t);if(y&&Math.random()<y){const b=g?Up([g],s.getDsn()):void 0,v=s&&s.getTransport();v&&b&&v.send(b).then(null,T=>{P&&h.error("Error while sending interaction:",T)});return}})}function tu(e){const t=ui();if(!t||!k.performance.getEntries||!ue)return;P&&h.log("[Tracing] Adding & adjusting spans using Performance API");const n=ie(ue),r=t.getEntries(),{op:s,start_timestamp:i}=j(e);
24if(r.slice(mo).forEach(o=>{const a=ie(o.startTime),c=ie(o.duration);if(!(e.op==="navigation"&&i&&n+a<i))switch(o.entryType){case"navigation":{sm(e,o,n);break}case"mark":case"paint":case"measure":{rm(e,o,a,c,n);const u=ci(),l=o.startTime<u.firstHiddenTime;o.name==="first-paint"&&l&&(P&&h.log("[Measurements] Adding FP"),ee.fp={value:o.startTime,unit:"millisecond"}),o.name==="first-contentful-paint"&&l&&(P&&h.log("[Measurements] Adding FCP"),ee.fcp={value:o.startTime,unit:"millisecond"});break}case"resource":{om(e,o,o.name,a,c,n);break}}}),mo=Math.max(r.length-1,0),am(e),s==="pageload"){um(ee),["fcp","fp","lcp"].forEach(a=>{if(!ee[a]||!i||n>=i)return;const c=ee[a].value,u=n+ie(c),l=Math.abs((u-i)*1e3),d=l-c;P&&h.log(`[Measurements] Normalized ${a} from ${c} to ${l} (${d})`),ee[a].value=l});const o=ee["mark.fid"];o&&ee.fid&&(Wt(e,{description:"first input delay",endTimestamp:o.value+ie(ee.fid.value),op:"ui.action",origin:"auto.ui.browser.metrics",startTimestamp:o.value}),delete ee["mark.fid"]),"fcp"in ee||delete ee.cls,Object.keys(ee).forEach(a=>{Qf(a,ee[a].value,ee[a].unit)}),cm(e)}Ce=void 0,dn=void 0,ee={}}function rm(e,t,n,r,s){const i=s+n,o=i+r;return Wt(e,{description:t.name,endTimestamp:o,op:t.entryType,origin:"auto.resource.browser.metrics",startTimestamp:i}),i}function sm(e,t,n){["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach(r=>{Wn(e,t,r,n)}),Wn(e,t,"secureConnection",n,"TLS/SSL","connectEnd"),Wn(e,t,"fetch",n,"cache","domainLookupStart"),Wn(e,t,"domainLookup",n,"DNS"),im(e,t,n)}function Wn(e,t,n,r,s,i){const o=i?t[i]:t[`${n}End`],a=t[`${n}Start`];!a||!o||Wt(e,{op:"browser",origin:"auto.browser.browser.metrics",description:s||n,startTimestamp:r+ie(a),endTimestamp:r+ie(o)})}function im(e,t,n){t.responseEnd&&(Wt(e,{op:"browser",origin:"auto.browser.browser.metrics",description:"request",startTimestamp:n+ie(t.requestStart),endTimestamp:n+ie(t.responseEnd)}),Wt(e,{op:"browser",origin:"auto.browser.browser.metrics",description:"response",startTimestamp:n+ie(t.responseStart),endTimestamp:n+ie(t.responseEnd)}))}function om(e,t,n,r,s,i){if(t.initiatorType==="xmlhttprequest"||t.initiatorType==="fetch")return;const o=ut(n),a={};rs(a,t,"transferSize","http.response_transfer_size"),rs(a,t,"encodedBodySize","http.response_content_length"),rs(a,t,"decodedBodySize","http.decoded_response_content_length"),"renderBlockingStatus"in t&&(a["resource.render_blocking_status"]=t.renderBlockingStatus),o.protocol&&(a["url.scheme"]=o.protocol.split(":").pop()),o.host&&(a["server.address"]=o.host),a["url.same_origin"]=n.includes(k.location.origin);const c=i+r,u=c+s;Wt(e,{description:n.replace(k.location.origin,""),endTimestamp:u,op:t.initiatorType?`resource.${t.initiatorType}`:"resource.other",origin:"auto.resource.browser.metrics",startTimestamp:c,data:a})}function am(e){const t=k.navigator;if(!t)return;const n=t.connection;n&&(n.effectiveType&&e.setTag("effectiveConnectionType",n.effectiveType),n.type&&e.setTag("connectionType",n.type),ns(n.rtt)&&(ee["connection.rtt"]={value:n.rtt,unit:"millisecond"})),ns(t.deviceMemory)&&e.setTag("deviceMemory",`${t.deviceMemory} GB`),ns(t.hardwareConcurrency)&&e.setTag("hardwareConcurrency",String(t.hardwareConcurrency))}function cm(e){Ce&&(P&&h.log("[Measurements] Adding LCP Data"),Ce.element&&e.setTag("lcp.element",Je(Ce.element)),Ce.id&&e.setTag("lcp.id",Ce.id),Ce.url&&e.setTag("lcp.url",Ce.url.trim().slice(0,200)),e.setTag("lcp.size",Ce.size)),dn&&dn.sources&&(P&&h.log("[Measurements] Adding CLS Data"),dn.sources.forEach((t,n)=>e.setTag(`cls.source.${n+1}`,Je(t.node))))}function rs(e,t,n,r){const s=t[n];s!=null&&s<Jh&&(e[r]=s)}function um(e){const t=Pr();if(!t)return;const{responseStart:n,requestStart:r}=t;r<=n&&(P&&h.log("[Measurements] Adding TTFB Request Time"),e["ttfb.requestTime"]={value:n-r,unit:"millisecond"})}function lm(e,t,n){if(!yt(t))return!1;let r;return e!==void 0&&typeof t.tracesSampler=="function"?r=t.tracesSampler({transactionContext:e,name:e.name,parentSampled:e.parentSampled,attributes:{...e.data,...e.attributes},location:k.location}):e!==void 0&&e.sampled!==void 0?r=e.sampled:typeof t.tracesSampleRate<"u"?r=t.tracesSampleRate:r=1,_c(r)?r===!0?n:r===!1?0:r*n:(P&&h.warn("[Tracing] Discarding interaction span because of invalid sample rate."),!1)}function dm(e,t,n,r,s="auto.http.browser"){if(!yt()||!e.fetchData)return;const i=t(e.fetchData.url);if(e.endTimestamp&&i){const p=e.fetchData.__span;if(!p)return;const m=r[p];m&&(hm(m,e),delete r[p]);return}const o=ne(),a=x(),{method:c,url:u}=e.fetchData,l=pm(u),d=l?ut(l).host:void 0,f=i?cr({name:`${c} ${u}`,onlyIfParent:!0,attributes:{url:u,type:"fetch","http.method":c,"http.url":l,"server.address":d,[$e]:s},op:"http.client"}):void 0;if(f&&(e.fetchData.__span=f.spanContext().spanId,r[f.spanContext().spanId]=f),n(e.fetchData.url)&&a){const p=e.args[0];e.args[1]=e.args[1]||{};const m=e.args[1];m.headers=fm(p,a,o,m,f)}return f}
24function fm(e,t,n,r,s){const i=s||n.getSpan(),o=Oe(),{traceId:a,spanId:c,sampled:u,dsc:l}={...o.getPropagationContext(),...n.getPropagationContext()},d=i?Cr(i):Zs(a,c,u),f=Ya(l||(i?Ht(i):Mr(a,t,n))),p=r.headers||(typeof Request<"u"&&Be(e,Request)?e.headers:void 0);if(p)if(typeof Headers<"u"&&Be(p,Headers)){const m=new Headers(p);return m.append("sentry-trace",d),f&&m.append(Ts,f),m}else if(Array.isArray(p)){const m=[...p,["sentry-trace",d]];return f&&m.push([Ts,f]),m}else{const m="baggage"in p?p.baggage:void 0,_=[];return Array.isArray(m)?_.push(...m):m&&_.push(m),f&&_.push(f),{...p,"sentry-trace":d,baggage:_.length>0?_.join(","):void 0}}else return{"sentry-trace":d,baggage:f}}function pm(e){try{return new URL(e).href}catch{return}}function hm(e,t){if(t.response){si(e,t.response.status);const n=t.response&&t.response.headers&&t.response.headers.get("content-length");if(n){const r=parseInt(n);r>0&&e.setAttribute("http.response_content_length",r)}}else t.error&&e.setStatus("internal_error");e.end()}const xs=["localhost",/^\/(?!\/)/],pr={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0,tracingOrigins:xs,tracePropagationTargets:xs};function nu(e){const{traceFetch:t,traceXHR:n,tracePropagationTargets:r,tracingOrigins:s,shouldCreateSpanForRequest:i,enableHTTPTimings:o}={traceFetch:pr.traceFetch,traceXHR:pr.traceXHR,...e},a=typeof i=="function"?i:l=>!0,c=l=>ym(l,r||s),u={};t&&wr(l=>{const d=dm(l,a,c,u);if(d){const f=ru(l.fetchData.url),p=f?ut(f).host:void 0;d.setAttributes({"http.url":f,"server.address":p})}o&&d&&_o(d)}),n&&kr(l=>{const d=Sm(l,a,c,u);o&&d&&_o(d)})}function mm(e){return e.entryType==="resource"&&"initiatorType"in e&&typeof e.nextHopProtocol=="string"&&(e.initiatorType==="fetch"||e.initiatorType==="xmlhttprequest")}function _o(e){const{url:t}=j(e).data||{};if(!t||typeof t!="string")return;const n=et("resource",({entries:r})=>{r.forEach(s=>{mm(s)&&s.name.endsWith(t)&&(_m(s).forEach(o=>e.setAttribute(...o)),setTimeout(n))})})}function gm(e){let t="unknown",n="unknown",r="";for(const s of e){if(s==="/"){[t,n]=e.split("/");break}if(!isNaN(Number(s))){t=r==="h"?"http":r,n=e.split(r)[1];break}r+=s}return r===e&&(t=r),{name:t,version:n}}function ke(e=0){return((ue||performance.timeOrigin)+e)/1e3}function _m(e){const{name:t,version:n}=gm(e.nextHopProtocol),r=[];return r.push(["network.protocol.version",n],["network.protocol.name",t]),ue?[...r,["http.request.redirect_start",ke(e.redirectStart)],["http.request.fetch_start",ke(e.fetchStart)],["http.request.domain_lookup_start",ke(e.domainLookupStart)],["http.request.domain_lookup_end",ke(e.domainLookupEnd)],["http.request.connect_start",ke(e.connectStart)],["http.request.secure_connection_start",ke(e.secureConnectionStart)],["http.request.connection_end",ke(e.connectEnd)],["http.request.request_start",ke(e.requestStart)],["http.request.response_start",ke(e.responseStart)],["http.request.response_end",ke(e.responseEnd)]]:r}function ym(e,t){return Kt(e,t||xs)}function Sm(e,t,n,r){const s=e.xhr,i=s&&s[Pe];if(!yt()||!s||s.__sentry_own_request__||!i)return;const o=t(i.url);if(e.endTimestamp&&o){const p=s.__sentry_xhr_span_id__;if(!p)return;const m=r[p];m&&i.status_code!==void 0&&(si(m,i.status_code),m.end(),delete r[p]);return}const a=ne(),c=Oe(),u=ru(i.url),l=u?ut(u).host:void 0,d=o?cr({name:`${i.method} ${i.url}`,onlyIfParent:!0,attributes:{type:"xhr","http.method":i.method,"http.url":u,url:i.url,"server.address":l,[$e]:"auto.http.browser"},op:"http.client"}):void 0;d&&(s.__sentry_xhr_span_id__=d.spanContext().spanId,r[s.__sentry_xhr_span_id__]=d);const f=x();if(s.setRequestHeader&&n(i.url)&&f){const{traceId:p,spanId:m,sampled:_,dsc:S}={...c.getPropagationContext(),...a.getPropagationContext()},g=d?Cr(d):Zs(p,m,_),y=Ya(S||(d?Ht(d):Mr(p,f,a)));bm(s,g,y)}return d}function bm(e,t,n){try{e.setRequestHeader("sentry-trace",t),n&&e.setRequestHeader(Ts,n)}catch{}}function ru(e){try{return new URL(e,k.location.origin).href}catch{return}}function Em(e,t=!0,n=!0){if(!k||!k.location){P&&h.warn("Could not initialize routing instrumentation due to invalid location");return}let r=k.location.href,s;t&&(s=e({name:k.location.pathname,startTimestamp:ue?ue/1e3:void 0,op:"pageload",origin:"auto.pageload.browser",metadata:{source:"url"}})),n&&vn(({to:i,from:o})=>{if(o===void 0&&r&&r.indexOf(i)!==-1){r=void 0;return}o!==i&&(r=void 0,s&&(P&&h.log(`[Tracing] Finishing current transaction with op: ${s.op}`),s.end()),s=e({name:k.location.pathname,op:"navigation",origin:"auto.navigation.browser",metadata:{source:"url"}}))})}
24const Tm="BrowserTracing",vm={...un,markBackgroundTransactions:!0,routingInstrumentation:Em,startTransactionOnLocationChange:!0,startTransactionOnPageLoad:!0,enableLongTask:!0,enableInp:!1,interactionsSampleRate:1,_experiments:{},...pr},yo=10;class lv{constructor(t){this.name=Tm,this._hasSetTracePropagationTargets=!1,yc(),P&&(this._hasSetTracePropagationTargets=!!(t&&(t.tracePropagationTargets||t.tracingOrigins))),this.options={...vm,...t},this.options._experiments.enableLongTask!==void 0&&(this.options.enableLongTask=this.options._experiments.enableLongTask),t&&!t.tracePropagationTargets&&t.tracingOrigins&&(this.options.tracePropagationTargets=t.tracingOrigins),this._collectWebVitals=Jc(),this._interactionIdToRouteNameMapping={},this.options.enableInp&&eu(this._interactionIdToRouteNameMapping,this.options.interactionsSampleRate),this.options.enableLongTask&&Zc(),this.options._experiments.enableInteractions&&Qc(),this._latestRoute={name:void 0,context:void 0}}setupOnce(t,n){this._getCurrentHub=n;const s=n().getClient(),i=s&&s.getOptions(),{routingInstrumentation:o,startTransactionOnLocationChange:a,startTransactionOnPageLoad:c,markBackgroundTransactions:u,traceFetch:l,traceXHR:d,shouldCreateSpanForRequest:f,enableHTTPTimings:p,_experiments:m}=this.options,_=i&&i.tracePropagationTargets,S=_||this.options.tracePropagationTargets;P&&this._hasSetTracePropagationTargets&&_&&h.warn("[Tracing] The `tracePropagationTargets` option was set in the BrowserTracing integration and top level `Sentry.init`. The top level `Sentry.init` value is being used."),o(g=>{const y=this._createRouteTransaction(g);return this.options._experiments.onStartRouteTransaction&&this.options._experiments.onStartRouteTransaction(y,g,n),y},c,a),u&&Hc(),m.enableInteractions&&this._registerInteractionListener(),this.options.enableInp&&this._registerInpInteractionListener(),nu({traceFetch:l,traceXHR:d,tracePropagationTargets:S,shouldCreateSpanForRequest:f,enableHTTPTimings:p})}_createRouteTransaction(t){if(!this._getCurrentHub){P&&h.warn(`[Tracing] Did not create ${t.op} transaction because _getCurrentHub is invalid.`);return}const n=this._getCurrentHub(),{beforeNavigate:r,idleTimeout:s,finalTimeout:i,heartbeatInterval:o}=this.options,a=t.op==="pageload";let c;if(a){const p=a?So("sentry-trace"):"",m=a?So("baggage"):void 0,{traceId:_,dsc:S,parentSpanId:g,sampled:y}=Va(p,m);c={traceId:_,parentSpanId:g,parentSampled:y,...t,metadata:{...t.metadata,dynamicSamplingContext:S},trimEnd:!0}}else c={trimEnd:!0,...t};const u=typeof r=="function"?r(c):c,l=u===void 0?{...c,sampled:!1}:u;l.metadata=l.name!==c.name?{...l.metadata,source:"custom"}:l.metadata,this._latestRoute.name=l.name,this._latestRoute.context=l,l.sampled===!1&&P&&h.log(`[Tracing] Will not send ${l.op} transaction because of beforeNavigate.`),P&&h.log(`[Tracing] Starting ${l.op} transaction on scope`);const{location:d}=k,f=ur(n,l,s,i,!0,{location:d},o,a);return a&&k.document&&(k.document.addEventListener("readystatechange",()=>{["interactive","complete"].includes(k.document.readyState)&&f.sendAutoFinishSignal()}),["interactive","complete"].includes(k.document.readyState)&&f.sendAutoFinishSignal()),f.registerBeforeFinishCallback(p=>{this._collectWebVitals(),tu(p)}),f}_registerInteractionListener(){let t;const n=()=>{const{idleTimeout:r,finalTimeout:s,heartbeatInterval:i}=this.options,o="ui.action.click",a=Ue();if(a&&a.op&&["navigation","pageload"].includes(a.op)){P&&h.warn(`[Tracing] Did not create ${o} transaction because a pageload or navigation transaction is in progress.`);return}if(t&&(t.setFinishReason("interactionInterrupted"),t.end(),t=void 0),!this._getCurrentHub){P&&h.warn(`[Tracing] Did not create ${o} transaction because _getCurrentHub is invalid.`);return}if(!this._latestRoute.name){P&&h.warn(`[Tracing] Did not create ${o} transaction because _latestRouteName is missing.`);return}const c=this._getCurrentHub(),{location:u}=k,l={name:this._latestRoute.name,op:o,trimEnd:!0,data:{[le]:this._latestRoute.context?Im(this._latestRoute.context):"url"}};t=ur(c,l,r,s,!0,{location:u},i)};["click"].forEach(r=>{k.document&&addEventListener(r,n,{once:!1,capture:!0})})}_registerInpInteractionListener(){const t=({entries:n})=>{const r=x(),s=r!==void 0&&r.getIntegrationByName!==void 0?r.getIntegrationByName("Replay"):void 0,i=s!==void 0?s.getReplayId():void 0,o=Ue(),a=ne(),c=a!==void 0?a.getUser():void 0;
24n.forEach(u=>{if(wm(u)){const l=u.interactionId;if(l===void 0)return;const d=this._interactionIdToRouteNameMapping[l],f=u.duration,p=u.startTime,m=Object.keys(this._interactionIdToRouteNameMapping),_=m.length>0?m.reduce((S,g)=>this._interactionIdToRouteNameMapping[S].duration<this._interactionIdToRouteNameMapping[g].duration?S:g):void 0;if(u.entryType==="first-input"&&m.map(g=>this._interactionIdToRouteNameMapping[g]).some(g=>g.duration===f&&g.startTime===p)||!l)return;if(d)d.duration=Math.max(d.duration,f);else if(m.length<yo||_===void 0||f>this._interactionIdToRouteNameMapping[_].duration){const S=this._latestRoute.name,g=this._latestRoute.context;S&&g&&(_&&Object.keys(this._interactionIdToRouteNameMapping).length>=yo&&delete this._interactionIdToRouteNameMapping[_],this._interactionIdToRouteNameMapping[l]={routeName:S,duration:f,parentContext:g,user:c,activeTransaction:o,replayId:i,startTime:p})}}})};et("event",t),et("first-input",t)}}function So(e){const t=ka(`meta[name=${e}]`);return t?t.getAttribute("content"):void 0}function Im(e){const t=e.attributes&&e.attributes[le],n=e.data&&e.data[le],r=e.metadata&&e.metadata.source;return t||n||r}function wm(e){return"duration"in e}const km="BrowserTracing",Cm={...un,instrumentNavigation:!0,instrumentPageLoad:!0,markBackgroundSpan:!0,enableLongTask:!0,enableInp:!1,interactionsSampleRate:1,_experiments:{},...pr},bo=((e={})=>{const t=P?!!(e.tracePropagationTargets||e.tracingOrigins):!1;yc(),!e.tracePropagationTargets&&e.tracingOrigins&&(e.tracePropagationTargets=e.tracingOrigins);const n={...Cm,...e},r=Jc(),s={};n.enableInp&&eu(s,n.interactionsSampleRate),n.enableLongTask&&Zc(),n._experiments.enableInteractions&&Qc();const i={name:void 0,context:void 0};function o(a){const c=z(),{beforeStartSpan:u,idleTimeout:l,finalTimeout:d,heartbeatInterval:f}=n,p=a.op==="pageload";let m;if(p){const y=p?Eo("sentry-trace"):"",b=p?Eo("baggage"):void 0,{traceId:v,dsc:T,parentSpanId:I,sampled:M}=Va(y,b);m={traceId:v,parentSpanId:I,parentSampled:M,...a,metadata:{...a.metadata,dynamicSamplingContext:T},trimEnd:!0}}else m={trimEnd:!0,...a};const _=u?u(m):m;_.metadata=_.name!==m.name?{..._.metadata,source:"custom"}:_.metadata,i.name=_.name,i.context=_,_.sampled===!1&&P&&h.log(`[Tracing] Will not send ${_.op} transaction because of beforeNavigate.`),P&&h.log(`[Tracing] Starting ${_.op} transaction on scope`);const{location:S}=k,g=ur(c,_,l,d,!0,{location:S},f,p);return p&&k.document&&(k.document.addEventListener("readystatechange",()=>{["interactive","complete"].includes(k.document.readyState)&&g.sendAutoFinishSignal()}),["interactive","complete"].includes(k.document.readyState)&&g.sendAutoFinishSignal()),g.registerBeforeFinishCallback(y=>{r(),tu(y)}),g}return{name:km,setupOnce:()=>{},afterAllSetup(a){const c=a.getOptions(),{markBackgroundSpan:u,traceFetch:l,traceXHR:d,shouldCreateSpanForRequest:f,enableHTTPTimings:p,_experiments:m}=n,_=c&&c.tracePropagationTargets,S=_||n.tracePropagationTargets;P&&t&&_&&h.warn("[Tracing] The `tracePropagationTargets` option was set in the BrowserTracing integration and top level `Sentry.init`. The top level `Sentry.init` value is being used.");let g,y=k.location&&k.location.href;if(a.on&&(a.on("startNavigationSpan",b=>{g&&(P&&h.log(`[Tracing] Finishing current transaction with op: ${j(g).op}`),g.end()),g=o({op:"navigation",...b})}),a.on("startPageLoadSpan",b=>{g&&(P&&h.log(`[Tracing] Finishing current transaction with op: ${j(g).op}`),g.end()),g=o({op:"pageload",...b})})),n.instrumentPageLoad&&a.emit&&k.location){const b={name:k.location.pathname,startTimestamp:ue?ue/1e3:void 0,origin:"auto.pageload.browser",attributes:{[le]:"url"}};Rm(a,b)}n.instrumentNavigation&&a.emit&&k.location&&vn(({to:b,from:v})=>{if(v===void 0&&y&&y.indexOf(b)!==-1){y=void 0;return}if(v!==b){y=void 0;const T={name:k.location.pathname,origin:"auto.navigation.browser",attributes:{[le]:"url"}};su(a,T)}}),u&&Hc(),m.enableInteractions&&xm(n,i),n.enableInp&&Am(s,i),nu({traceFetch:l,traceXHR:d,tracePropagationTargets:S,shouldCreateSpanForRequest:f,enableHTTPTimings:p})},options:n}});function Rm(e,t){if(!e.emit)return;e.emit("startPageLoadSpan",t);const n=Ut();return(n&&j(n).op)==="pageload"?n:void 0}function su(e,t){if(!e.emit)return;e.emit("startNavigationSpan",t);const n=Ut();return(n&&j(n).op)==="navigation"?n:void 0}function Eo(e){const t=ka(`meta[name=${e}]`);return t?t.getAttribute("content"):void 0}function xm(e,t){let n;const r=()=>{const{idleTimeout:s,finalTimeout:i,heartbeatInterval:o}=e,a="ui.action.click",c=Ue();if(c&&c.op&&["navigation","pageload"].includes(c.op)){P&&h.warn(`[Tracing] Did not create ${a} transaction because a pageload or navigation transaction is in progress.`);return}if(n&&(n.setFinishReason("interactionInterrupted"),n.end(),n=void 0),!t.name){P&&h.warn(`[Tracing] Did not create ${a} transaction because _latestRouteName is missing.`);return}const{location:u}=k,l={name:t.name,op:a,trimEnd:!0,data:{[le]:t.context?Om(t.context):"url"}};n=ur(z(),l,s,i,!0,{location:u},o)};["click"].forEach(s=>{k.document&&addEventListener(s,r,{once:!1,capture:!0})})}function Mm(e){return"duration"in e}const To=10;function Am(e,t){const n=({entries:r})=>{const s=x(),i=s!==void 0&&s.getIntegrationByName!==void 0?s.getIntegrationByName("Replay"):void 0,o=i!==void 0?i.getReplayId():void 0,a=Ue(),c=ne(),u=c!==void 0?c.getUser():void 0;r.forEach(l=>{if(Mm(l)){const d=l.interactionId;if(d===void 0)return;const f=e[d],p=l.duration,m=l.startTime,_=Object.keys(e),S=_.length>0?_.reduce((g,y)=>e[g].duration<e[y].duration?g:y):void 0;if(l.entryType==="first-input"&&_.map(y=>e[y]).some(y=>y.duration===p&&y.startTime===m)||!d)return;if(f)f.duration=Math.max(f.duration,p);else if(_.length<To||S===void 0||p>e[S].duration){const g=t.name,y=t.context;g&&y&&(S&&Object.keys(e).length>=To&&delete e[S],e[d]={routeName:g,duration:p,parentContext:y,user:u,activeTransaction:a,replayId:o,startTime:m})}}})};et("event",n),et("first-input",n)}
24function Om(e){const t=e.attributes&&e.attributes[le],n=e.data&&e.data[le],r=e.metadata&&e.metadata.source;return t||n||r}const C=A;let Ms=0;function iu(){return Ms>0}function Nm(){Ms++,setTimeout(()=>{Ms--})}function pt(e,t={},n){if(typeof e!="function")return e;try{const s=e.__sentry_wrapped__;if(s)return typeof s=="function"?s:e;if(Vs(e))return e}catch{return e}const r=function(){const s=Array.prototype.slice.call(arguments);try{const i=s.map(o=>pt(o,t));return e.apply(this,i)}catch(i){throw Nm(),_t(o=>{o.addEventProcessor(a=>(t.mechanism&&(ms(a,void 0),dt(a,t.mechanism)),a.extra={...a.extra,arguments:s},a)),Jt(i)}),i}};try{for(const s in e)Object.prototype.hasOwnProperty.call(e,s)&&(r[s]=e[s])}catch{}Aa(r,e),Ze(e,"__sentry_wrapped__",r);try{Object.getOwnPropertyDescriptor(r,"name").configurable&&Object.defineProperty(r,"name",{get(){return e.name}})}catch{}return r}const F=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;function ou(e,t){const n=li(e,t),r={type:t&&t.name,value:$m(t)};return n.length&&(r.stacktrace={frames:n}),r.type===void 0&&r.value===""&&(r.value="Unrecoverable error caught"),r}function Dm(e,t,n,r){const s=x(),i=s&&s.getOptions().normalizeDepth,o={exception:{values:[{type:Ir(t)?t.constructor.name:r?"UnhandledRejection":"Error",value:Hm(t,{isUnhandledRejection:r})}]},extra:{__serialized__:Wa(t,i)}};if(n){const a=li(e,n);a.length&&(o.exception.values[0].stacktrace={frames:a})}return o}function ss(e,t){return{exception:{values:[ou(e,t)]}}}function li(e,t){const n=t.stacktrace||t.stack||"",r=Pm(t);try{return e(n,r)}catch{}return[]}const Lm=/Minified React error #\d+;/i;function Pm(e){if(e){if(typeof e.framesToPop=="number")return e.framesToPop;if(Lm.test(e.message))return 1}return 0}function $m(e){const t=e&&e.message;return t?t.error&&typeof t.error.message=="string"?t.error.message:t:"No error message"}function Fm(e,t,n,r){const s=n&&n.syntheticException||void 0,i=di(e,t,s,r);return dt(i),i.level="error",n&&n.event_id&&(i.event_id=n.event_id),Ft(i)}function Bm(e,t,n="info",r,s){const i=r&&r.syntheticException||void 0,o=As(e,t,i,s);return o.level=n,r&&r.event_id&&(o.event_id=r.event_id),Ft(o)}function di(e,t,n,r,s){let i;if(zs(t)&&t.error)return ss(e,t.error);if(Ai(t)||ed(t)){const o=t;if("stack"in t)i=ss(e,t);else{const a=o.name||(Ai(o)?"DOMError":"DOMException"),c=o.message?`${a}: ${o.message}`:a;i=As(e,c,n,r),ms(i,c)}return"code"in o&&(i.tags={...i.tags,"DOMException.code":`${o.code}`}),i}return Dt(t)?ss(e,t):lt(t)||Ir(t)?(i=Dm(e,t,n,s),dt(i,{synthetic:!0}),i):(i=As(e,t,n,r),ms(i,`${t}`),dt(i,{synthetic:!0}),i)}function As(e,t,n,r){const s={};if(r&&n){const i=li(e,n);i.length&&(s.exception={values:[{value:t,stacktrace:{frames:i}}]})}if(Gs(t)){const{__sentry_template_string__:i,__sentry_template_values__:o}=t;return s.logentry={message:i,params:o},s}return s.message=t,s}function Hm(e,{isUnhandledRejection:t}){const n=hd(e),r=t?"promise rejection":"exception";return zs(e)?`Event \`ErrorEvent\` captured as ${r} with message \`${e.message}\``:Ir(e)?`Event \`${Um(e)}\` (type=${e.type}) captured as ${r}`:`Object captured as ${r} with keys: ${n}`}function Um(e){try{const t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch{}}function Wm(e,{metadata:t,tunnel:n,dsn:r}){const s={event_id:e.event_id,sent_at:new Date().toISOString(),...t&&t.sdk&&{sdk:{name:t.sdk.name,version:t.sdk.version}},...!!n&&!!r&&{dsn:ht(r)}},i=jm(e);return We(s,[i])}function jm(e){return[{type:"user_report"},e]}class zm extends Tp{constructor(t){const n=C.SENTRY_SDK_SOURCE||Pd();qp(t,"browser",["browser"],n),super(t),t.sendClientReports&&C.document&&C.document.addEventListener("visibilitychange",()=>{C.document.visibilityState==="hidden"&&this._flushOutcomes()})}eventFromException(t,n){return Fm(this._options.stackParser,t,n,this._options.attachStacktrace)}eventFromMessage(t,n="info",r){return Bm(this._options.stackParser,t,n,r,this._options.attachStacktrace)}captureUserFeedback(t){if(!this._isEnabled()){F&&h.warn("SDK not enabled, will not capture user feedback.");return}const n=Wm(t,{metadata:this.getSdkMetadata(),dsn:this.getDsn(),tunnel:this.getOptions().tunnel});this._sendEnvelope(n)}_prepareEvent(t,n,r){return t.platform=t.platform||"javascript",super._prepareEvent(t,n,r)}_flushOutcomes(){const t=this._clearOutcomes();if(t.length===0){F&&h.log("No outcomes to send");return}if(!this._dsn){F&&h.log("No dsn provided, will not send outcomes");return}F&&h.log("Sending outcomes:",t);const n=df(t,this._options.tunnel&&ht(this._dsn));this._sendEnvelope(n)}}let an;function Gm(){if(an)return an;if(ys(C.fetch))return an=C.fetch.bind(C);const e=C.document;let t=C.fetch;if(e&&typeof e.createElement=="function")try{const n=e.createElement("iframe");n.hidden=!0,e.head.appendChild(n);const r=n.contentWindow;r&&r.fetch&&(t=r.fetch),e.head.removeChild(n)}catch(n){F&&h.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",n
24)}return an=t.bind(C)}function qm(){an=void 0}function Ym(e,t=Gm()){let n=0,r=0;function s(i){const o=i.body.length;n+=o,r++;const a={body:i.body,method:"POST",referrerPolicy:"origin",headers:e.headers,keepalive:n<=6e4&&r<15,...e.fetchOptions};try{return t(e.url,a).then(c=>(n-=o,r--,{statusCode:c.status,headers:{"x-sentry-rate-limits":c.headers.get("X-Sentry-Rate-Limits"),"retry-after":c.headers.get("Retry-After")}}))}catch(c){return qm(),n-=o,r--,Xs(c)}}return Rc(e,s)}const Vm=4;function Km(e){function t(n){return new ge((r,s)=>{const i=new XMLHttpRequest;i.onerror=s,i.onreadystatechange=()=>{i.readyState===Vm&&r({statusCode:i.status,headers:{"x-sentry-rate-limits":i.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":i.getResponseHeader("Retry-After")}})},i.open("POST",e.url);for(const o in e.headers)Object.prototype.hasOwnProperty.call(e.headers,o)&&i.setRequestHeader(o,e.headers[o]);i.send(n.body)})}return Rc(e,t)}const tn="?",Xm=10,Jm=20,Zm=30,Qm=40,eg=50;function Mn(e,t,n,r){const s={filename:e,function:t,in_app:!0};return n!==void 0&&(s.lineno=n),r!==void 0&&(s.colno=r),s}const tg=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,ng=/\((\S*)(?::(\d+))(?::(\d+))\)/,rg=e=>{const t=tg.exec(e);if(t){if(t[2]&&t[2].indexOf("eval")===0){const i=ng.exec(t[2]);i&&(t[2]=i[1],t[3]=i[2],t[4]=i[3])}const[r,s]=au(t[1]||tn,t[2]);return Mn(s,r,t[3]?+t[3]:void 0,t[4]?+t[4]:void 0)}},sg=[Zm,rg],ig=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,og=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,ag=e=>{const t=ig.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){const i=og.exec(t[3]);i&&(t[1]=t[1]||"eval",t[3]=i[1],t[4]=i[2],t[5]="")}let r=t[3],s=t[1]||tn;return[s,r]=au(s,r),Mn(r,s,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}},cg=[eg,ag],ug=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i,lg=e=>{const t=ug.exec(e);return t?Mn(t[2],t[1]||tn,+t[3],t[4]?+t[4]:void 0):void 0},dg=[Qm,lg],fg=/ line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i,pg=e=>{const t=fg.exec(e);return t?Mn(t[2],t[3]||tn,+t[1]):void 0},dv=[Xm,pg],hg=/ line (\d+), column (\d+)\s*(?:in (?:<anonymous function: ([^>]+)>|([^)]+))\(.*\))? in (.*):\s*$/i,mg=e=>{const t=hg.exec(e);return t?Mn(t[5],t[3]||t[4]||tn,+t[1],+t[2]):void 0},fv=[Jm,mg],gg=[sg,cg,dg],_g=Da(...gg),au=(e,t)=>{const n=e.indexOf("safari-extension")!==-1,r=e.indexOf("safari-web-extension")!==-1;return n||r?[e.indexOf("@")!==-1?e.split("@")[0]:tn,n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]},jn=1024,cu="Breadcrumbs",yg=((e={})=>{const t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:cu,setupOnce(){},setup(n){t.console&&La(Tg(n)),t.dom&&$a(Eg(n,t.dom)),t.xhr&&kr(vg(n)),t.fetch&&wr(Ig(n)),t.history&&vn(wg(n)),t.sentry&&n.on&&n.on("beforeSendEvent",bg(n))}}}),uu=yg,Sg=Z(cu,uu);function bg(e){return function(n){x()===e&&Qe({category:`sentry.${n.type==="transaction"?"transaction":"event"}`,event_id:n.event_id,level:n.level,message:Ve(n)},{event:n})}}function Eg(e,t){return function(r){if(x()!==e)return;let s,i,o=typeof t=="object"?t.serializeAttribute:void 0,a=typeof t=="object"&&typeof t.maxStringLength=="number"?t.maxStringLength:void 0;a&&a>jn&&(F&&h.warn(`\`dom.maxStringLength\` cannot exceed ${jn}, but a value of ${a} was configured. Sentry will use ${jn} instead.`),a=jn),typeof o=="string"&&(o=[o]);try{const u=r.event,l=kg(u)?u.target:u;s=Je(l,{keyAttrs:o,maxStringLength:a}),i=Ca(l)}catch{s="<unknown>"}if(s.length===0)return;const c={category:`ui.${r.name}`,message:s};i&&(c.data={"ui.component_name":i}),Qe(c,{event:r.event,name:r.name,global:r.global})}}function Tg(e){return function(n){if(x()!==e)return;const r={category:"console",data:{arguments:n.args,logger:"console"},level:ja(n.level),message:nr(n.args," ")};if(n.level==="assert")if(n.args[0]===!1)r.message=`Assertion failed: ${nr(n.args.slice(1)," ")||"console.assert"}`,r.data.arguments=n.args.slice(1);else return;Qe(r,{input:n.args,level:n.level})}}function vg(e){return function(n){if(x()!==e)return;const{startTimestamp:r,endTimestamp:s}=n,i=n.xhr[Pe];if(!r||!s||!i)return;const{method:o,url:a,status_code:c,body:u}=i,l={method:o,url:a,status_code:c},d={xhr:n.xhr,input:u,startTimestamp:r,endTimestamp:s};Qe({category:"xhr",data:l,type:"http"},d)}}function Ig(e){return function(n){if(x()!==e)return;const{startTimestamp:r,endTimestamp:s}=n;
24if(s&&!(n.fetchData.url.match(/sentry_key/)&&n.fetchData.method==="POST"))if(n.error){const i=n.fetchData,o={data:n.error,input:n.args,startTimestamp:r,endTimestamp:s};Qe({category:"fetch",data:i,level:"error",type:"http"},o)}else{const i=n.response,o={...n.fetchData,status_code:i&&i.status},a={input:n.args,response:i,startTimestamp:r,endTimestamp:s};Qe({category:"fetch",data:o,type:"http"},a)}}}function wg(e){return function(n){if(x()!==e)return;let r=n.from,s=n.to;const i=ut(C.location.href);let o=r?ut(r):void 0;const a=ut(s);(!o||!o.path)&&(o=i),i.protocol===a.protocol&&i.host===a.host&&(s=a.relative),i.protocol===o.protocol&&i.host===o.host&&(r=o.relative),Qe({category:"navigation",data:{from:r,to:s}})}}function kg(e){return!!e&&!!e.target}const lu="Dedupe",Cg=(()=>{let e;return{name:lu,setupOnce(){},processEvent(t){if(t.type)return t;try{if(xg(t,e))return F&&h.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}return e=t}}}),du=Cg,Rg=Z(lu,du);function xg(e,t){return t?!!(Mg(e,t)||Ag(e,t)):!1}function Mg(e,t){const n=e.message,r=t.message;return!(!n&&!r||n&&!r||!n&&r||n!==r||!pu(e,t)||!fu(e,t))}function Ag(e,t){const n=vo(t),r=vo(e);return!(!n||!r||n.type!==r.type||n.value!==r.value||!pu(e,t)||!fu(e,t))}function fu(e,t){let n=Io(e),r=Io(t);if(!n&&!r)return!0;if(n&&!r||!n&&r||(n=n,r=r,r.length!==n.length))return!1;for(let s=0;s<r.length;s++){const i=r[s],o=n[s];if(i.filename!==o.filename||i.lineno!==o.lineno||i.colno!==o.colno||i.function!==o.function)return!1}return!0}function pu(e,t){let n=e.fingerprint,r=t.fingerprint;if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;n=n,r=r;try{return n.join("")===r.join("")}catch{return!1}}function vo(e){return e.exception&&e.exception.values&&e.exception.values[0]}function Io(e){const t=e.exception;if(t)try{return t.values[0].stacktrace.frames}catch{return}}const hu="GlobalHandlers",Og=((e={})=>{const t={onerror:!0,onunhandledrejection:!0,...e};return{name:hu,setupOnce(){Error.stackTraceLimit=50},setup(n){t.onerror&&(Dg(n),wo("onerror")),t.onunhandledrejection&&(Lg(n),wo("onunhandledrejection"))}}}),mu=Og,Ng=Z(hu,mu);function Dg(e){Ha(t=>{const{stackParser:n,attachStacktrace:r}=_u();if(x()!==e||iu())return;const{msg:s,url:i,line:o,column:a,error:c}=t,u=c===void 0&&Ae(s)?Fg(s,i,o,a):gu(di(n,c||s,void 0,r,!1),i,o,a);u.level="error",xr(u,{originalException:c,mechanism:{handled:!1,type:"onerror"}})})}function Lg(e){Ua(t=>{const{stackParser:n,attachStacktrace:r}=_u();if(x()!==e||iu())return;const s=Pg(t),i=qs(s)?$g(s):di(n,s,void 0,r,!0);i.level="error",xr(i,{originalException:s,mechanism:{handled:!1,type:"onunhandledrejection"}})})}function Pg(e){if(qs(e))return e;const t=e;try{if("reason"in t)return t.reason;if("detail"in t&&"reason"in t.detail)return t.detail.reason}catch{}return e}function $g(e){return{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(e)}`}]}}}function Fg(e,t,n,r){const s=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i;let i=zs(e)?e.message:e,o="Error";const a=i.match(s);return a&&(o=a[1],i=a[2]),gu({exception:{values:[{type:o,value:i}]}},t,n,r)}function gu(e,t,n,r){const s=e.exception=e.exception||{},i=s.values=s.values||[],o=i[0]=i[0]||{},a=o.stacktrace=o.stacktrace||{},c=a.frames=a.frames||[],u=isNaN(parseInt(r,10))?void 0:r,l=isNaN(parseInt(n,10))?void 0:n,d=Ae(t)&&t.length>0?t:wa();return c.length===0&&c.push({colno:u,filename:d,function:"?",in_app:!0,lineno:l}),e}function wo(e){F&&h.log(`Global Handler attached: ${e}`)}function _u(){const e=x();return e&&e.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}const yu="HttpContext",Bg=(()=>({name:yu,setupOnce(){},preprocessEvent(e){if(!C.navigator&&!C.location&&!C.document)return;const t=e.request&&e.request.url||C.location&&C.location.href,{referrer:n}=C.document||{},{userAgent:r}=C.navigator||{},s={...e.request&&e.request.headers,...n&&{Referer:n},...r&&{"User-Agent":r}},i={...e.request,...t&&{url:t},headers:s};e.request=i}})),Su=Bg,Hg=Z(yu,Su),Ug="cause",Wg=5,bu="LinkedErrors",jg=((e={})=>{const t=e.limit||Wg,n=e.key||Ug;return{name:bu,setupOnce(){},preprocessEvent(r,s,i){const o=i.getOptions();va(ou,o.stackParser,o.maxValueLength,n,t,r,s)}}}),Eu=jg,zg=Z(bu,Eu),Gg=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","BroadcastChannel","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","SharedWorker","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"],Tu="TryCatch",qg=((e={})=>{const t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...e};return{name:Tu,setupOnce(){t.setTimeout&&oe(C,"setTimeout",ko),t.setInterval&&oe(C,"setInterval",ko),t.requestAnimationFrame&&oe(C,"requestAnimationFrame",Vg),t.XMLHttpRequest&&"XMLHttpRequest"in C&&oe(XMLHttpRequest.prototype,"send",Kg);const n=t.eventTarget;n&&(Array.isArray(n)?n:Gg).forEach(Xg)}}}),vu=qg,Yg=Z(Tu,vu);function ko(e){return function(...t){const n=t[0];return t[0]=pt(n,{mechanism:{data:{function:He(e)},handled:!1,type:"instrument"}}),e.apply(this,t)}}function Vg(e){return function(t){return e.apply(this,[pt(t,{mechanism:{data:{function:"requestAnimationFrame",handler:He(e)},handled:!1,type:"instrument"}})])}}function Kg(e){return function(...t){const n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(s=>{s in n&&typeof n[s]=="function"&&oe(n,s,function(i){const o={mechanism:{data:{function:s,handler:He(i)},handled:!1,type:"instrument"}},a=Vs(i);return a&&(o.mechanism.data.handler=He(a)),pt(i,o)})}),e.apply(this,t)}}function Xg(e){const t=C,n=t[e]&&t[e].prototype;!n||!n.hasOwnProperty||!n.hasOwnProperty("addEventListener")||(oe(n,"addEventListener",function(r){return function(s,i,o){try{typeof i.handleEvent=="function"&&(i.handleEvent=pt(i.handleEvent,{mechanism:{data:{function:"handleEvent",handler:He(i),target:e},handled:!1,type:"instrument"}}))}catch{}return r.apply(this,[s,pt(i,{mechanism:{data:{function:"addEventListener",handler:He(i),target:e},handled:!1,type:"instrument"}}),o])}}),oe(n,"removeEventListener",function(r){return function(s,i,o){const a=i;try{const c=a&&a.__sentry_wrapped__;c&&r.call(this,s,c,o)}catch{}return r.call(this,s,a,o)}}))}
24const Jg=[Dc(),Pc(),vu(),uu(),mu(),Eu(),du(),Su()];function Iu(e){return[...Jg]}function Zg(e={}){e.defaultIntegrations===void 0&&(e.defaultIntegrations=Iu()),e.release===void 0&&(typeof __SENTRY_RELEASE__=="string"&&(e.release=__SENTRY_RELEASE__),C.SENTRY_RELEASE&&C.SENTRY_RELEASE.id&&(e.release=C.SENTRY_RELEASE.id)),e.autoSessionTracking===void 0&&(e.autoSessionTracking=!0),e.sendClientReports===void 0&&(e.sendClientReports=!0);const t={...e,stackParser:gd(e.stackParser||_g),integrations:ap(e),transport:e.transport||(Fa()?Ym:Km)};Op(zm,t),e.autoSessionTracking&&Qg()}const pv=(e={},t=z())=>{if(!C.document){F&&h.error("Global document not defined in showReportDialog call");return}const{client:n,scope:r}=t.getStackTop(),s=e.dsn||n&&n.getDsn();if(!s){F&&h.error("DSN not configured for showReportDialog call");return}r&&(e.user={...r.getUser(),...e.user}),e.eventId||(e.eventId=t.lastEventId());const i=C.document.createElement("script");i.async=!0,i.crossOrigin="anonymous",i.src=ip(s,e),e.onLoad&&(i.onload=e.onLoad);const{onClose:o}=e;if(o){const c=u=>{if(u.data==="__sentry_reportdialog_closed__")try{o()}finally{C.removeEventListener("message",c)}};C.addEventListener("message",c)}const a=C.document.head||C.document.body;a?a.appendChild(i):F&&h.error("Not injecting report dialog. No injection point found in HTML")};function hv(){}function mv(e){e()}function gv(e){return pt(e)()}function Qg(){if(typeof C.document>"u"){F&&h.warn("Session tracking in non-browser environment with @sentry/browser is not supported.");return}Ki({ignoreDuration:!0}),Xi(),vn(({from:e,to:t})=>{e!==void 0&&e!==t&&(Ki({ignoreDuration:!0}),Xi())})}function _v(e){const t=x();t&&t.captureUserFeedback(e)}const e_=Object.freeze(Object.defineProperty({__proto__:null,Breadcrumbs:Sg,Dedupe:Rg,GlobalHandlers:Ng,HttpContext:Hg,LinkedErrors:zg,TryCatch:Yg},Symbol.toStringTag,{value:"Module"})),V=A,fi="sentryReplaySession",t_="replay_event",pi="Unable to send Replay",n_=3e5,r_=9e5,s_=5e3,i_=5500,o_=6e4,a_=5e3,c_=3,Co=15e4,zn=5e3,u_=3e3,l_=300,hi=2e7,d_=4999,f_=15e3,Ro=36e5;function p_(e,t){return e??t()}function hr(e){let t,n=e[0],r=1;for(;r<e.length;){const s=e[r],i=e[r+1];if(r+=2,(s==="optionalAccess"||s==="optionalCall")&&n==null)return;s==="access"||s==="optionalAccess"?(t=n,n=i(n)):(s==="call"||s==="optionalCall")&&(n=i((...o)=>n.call(t,...o)),t=void 0)}return n}var se;(function(e){e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment"})(se||(se={}));function h_(e){return e.nodeType===e.ELEMENT_NODE}function fn(e){const t=hr([e,"optionalAccess",n=>n.host]);return hr([t,"optionalAccess",n=>n.shadowRoot])===e}function pn(e){return Object.prototype.toString.call(e)==="[object ShadowRoot]"}function m_(e){return e.includes(" background-clip: text;")&&!e.includes(" -webkit-background-clip: text;")&&(e=e.replace(" background-clip: text;"," -webkit-background-clip: text; background-clip: text;")),e}function g_(e){const{cssText:t}=e;if(t.split('"').length<3)return t;const n=["@import",`url(${JSON.stringify(e.href)})`];return e.layerName===""?n.push("layer"):e.layerName&&n.push(`layer(${e.layerName})`),e.supportsText&&n.push(`supports(${e.supportsText})`),e.media.length&&n.push(e.media.mediaText),n.join(" ")+";"}function mr(e){try{const t=e.rules||e.cssRules;return t?m_(Array.from(t,wu).join("")):null}catch{return null}}function wu(e){let t;if(y_(e))try{t=mr(e.styleSheet)||g_(e)}catch{}else if(S_(e)&&e.selectorText.includes(":"))return __(e.cssText);return t||e.cssText}function __(e){const t=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return e.replace(t,"$1\\$2")}function y_(e){return"styleSheet"in e}function S_(e){return"selectorText"in e}class ku{constructor(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}getId(t){if(!t)return-1;const n=hr([this,"access",r=>r.getMeta,"call",r=>r(t),"optionalAccess",r=>r.id]);return p_(n,()=>-1)}getNode(t){return this.idNodeMap.get(t)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(t){return this.nodeMetaMap.get(t)||null}removeNodeFromMap(t){const n=this.getId(t);
24this.idNodeMap.delete(n),t.childNodes&&t.childNodes.forEach(r=>this.removeNodeFromMap(r))}has(t){return this.idNodeMap.has(t)}hasNode(t){return this.nodeMetaMap.has(t)}add(t,n){const r=n.id;this.idNodeMap.set(r,t),this.nodeMetaMap.set(t,n)}replace(t,n){const r=this.getNode(t);if(r){const s=this.nodeMetaMap.get(r);s&&this.nodeMetaMap.set(n,s)}this.idNodeMap.set(t,n)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function b_(){return new ku}function $r({maskInputOptions:e,tagName:t,type:n}){return t==="OPTION"&&(t="SELECT"),!!(e[t.toLowerCase()]||n&&e[n]||n==="password"||t==="INPUT"&&!n&&e.text)}function _n({isMasked:e,element:t,value:n,maskInputFn:r}){let s=n||"";return e?(r&&(s=r(s,t)),"*".repeat(s.length)):s}function jt(e){return e.toLowerCase()}function Os(e){return e.toUpperCase()}const xo="__rrweb_original__";function E_(e){const t=e.getContext("2d");if(!t)return!0;const n=50;for(let r=0;r<e.width;r+=n)for(let s=0;s<e.height;s+=n){const i=t.getImageData,o=xo in i?i[xo]:i;if(new Uint32Array(o.call(t,r,s,Math.min(n,e.width-r),Math.min(n,e.height-s)).data.buffer).some(c=>c!==0))return!1}return!0}function mi(e){const t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?jt(t):null}function gr(e,t,n){return t==="INPUT"&&(n==="radio"||n==="checkbox")?e.getAttribute("value")||"":e.value}let T_=1;const v_=new RegExp("[^a-z0-9-_:]"),yn=-2;function gi(){return T_++}function I_(e){if(e instanceof HTMLFormElement)return"form";const t=jt(e.tagName);return v_.test(t)?"div":t}function w_(e){let t="";return e.indexOf("//")>-1?t=e.split("/").slice(0,3).join("/"):t=e.split("/")[0],t=t.split("?")[0],t}let vt,Mo;const k_=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,C_=/^(?:[a-z+]+:)?\/\//i,R_=/^www\..*/i,x_=/^(data:)([^,]*),(.*)/i;function _r(e,t){return(e||"").replace(k_,(n,r,s,i,o,a)=>{const c=s||o||a,u=r||i||"";if(!c)return n;if(C_.test(c)||R_.test(c))return`url(${u}${c}${u})`;if(x_.test(c))return`url(${u}${c}${u})`;if(c[0]==="/")return`url(${u}${w_(t)+c}${u})`;const l=t.split("/"),d=c.split("/");l.pop();for(const f of d)f!=="."&&(f===".."?l.pop():l.push(f));return`url(${u}${l.join("/")}${u})`})}const M_=/^[^ \t\n\r\u000c]+/,A_=/^[, \t\n\r\u000c]+/;function O_(e,t){if(t.trim()==="")return t;let n=0;function r(i){let o;const a=i.exec(t.substring(n));return a?(o=a[0],n+=o.length,o):""}const s=[];for(;r(A_),!(n>=t.length);){let i=r(M_);if(i.slice(-1)===",")i=xt(e,i.substring(0,i.length-1)),s.push(i);else{let o="";i=xt(e,i);let a=!1;for(;;){const c=t.charAt(n);if(c===""){s.push((i+o).trim());break}else if(a)c===")"&&(a=!1);else if(c===","){n+=1,s.push((i+o).trim());break}else c==="("&&(a=!0);o+=c,n+=1}}}return s.join(", ")}function xt(e,t){if(!t||t.trim()==="")return t;const n=e.createElement("a");return n.href=t,n.href}function N_(e){return!!(e.tagName==="svg"||e.ownerSVGElement)}function _i(){const e=document.createElement("a");return e.href="",e.href}function Cu(e,t,n,r,s,i){return r&&(n==="src"||n==="href"&&!(t==="use"&&r[0]==="#")||n==="xlink:href"&&r[0]!=="#"||n==="background"&&(t==="table"||t==="td"||t==="th")?xt(e,r):n==="srcset"?O_(e,r):n==="style"?_r(r,_i()):t==="object"&&n==="data"?xt(e,r):typeof i=="function"?i(n,r,s):r)}function Ru(e,t,n){return(e==="video"||e==="audio")&&t==="autoplay"}function D_(e,t,n,r){try{if(r&&e.matches(r))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(n)return e.matches(n)}catch{}return!1}function L_(e,t){for(let n=e.classList.length;n--;){const r=e.classList[n];if(t.test(r))return!0}return!1}function at(e,t,n=1/0,r=0){return!e||e.nodeType!==e.ELEMENT_NODE||r>n?-1:t(e)?r:at(e.parentNode,t,n,r+1)}function Mt(e,t){return n=>{const r=n;if(r===null)return!1;try{if(e){if(typeof e=="string"){if(r.matches(`.${e}`))return!0}else if(L_(r,e))return!0}return!!(t&&r.matches(t))}catch{return!1}}}function zt(e,t,n,r,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 a=-1,c=-1;if(i){if(c=at(o,Mt(r,s)),c<0)return!0;a=at(o,Mt(t,n),c>=0?c:1/0)}else{if(a=at(o,Mt(t,n)),a<0)return!1;c=at(o,Mt(r,s),a>=0?a:1/0)}return a>=0?c>=0?a<=c:!0:c>=0?!1:!!i}catch{}return!!i}function P_(e,t,n){const r=e.contentWindow;if(!r)return;let s=!1,i;try{i=r.document.readyState}catch{return}if(i!=="complete"){const a=setTimeout(()=>{s||(t(),s=!0)},n);e.addEventListener("load",()=>{clearTimeout(a),s=!0,t()});return}const o="about:blank";if(r.location.href!==o||e.src===o||e.src==="")return setTimeout(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}function $_(e,t,n){let r=!1,s;try{s=e.sheet}catch{return}if(s)return;const i=setTimeout(()=>{r||(t(),r=!0)},n);e.addEventListener("load",()=>{clearTimeout(i),r=!0,t()})}function F_(e,t){const{doc:n,mirror:r,blockClass:s,blockSelector:i,unblockSelector:o,maskAllText:a,maskAttributeFn:c,maskTextClass:u,unmaskTextClass:l,maskTextSelector:d,unmaskTextSelector:f,inlineStylesheet:p,maskInputOptions:m={},maskTextFn:_,maskInputFn:S,dataURLOptions:g={},inlineImages:y,recordCanvas:b,keepIframeSrcFn:v,newlyAddedElement:T=!1}=t,I=B_(n,r);switch(e.nodeType){case e.DOCUMENT_NODE:return e.compatMode!=="CSS1Compat"?{type:se.Document,childNodes:[],compatMode:e.compatMode}:{type:se.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:se.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:I};case e.ELEMENT_NODE:return U_(e,{doc:n,blockClass:s,blockSelector:i,unblockSelector:o,inlineStylesheet:p,maskAttributeFn:c,maskInputOptions:m,maskInputFn:S,dataURLOptions:g,inlineImages:y,recordCanvas:b,keepIframeSrcFn:v,newlyAddedElement:T,rootId:I,maskTextClass:u,unmaskTextClass:l,maskTextSelector:d,unmaskTextSelector:f});case e.TEXT_NODE:return H_(e,{maskAllText:a,maskTextClass:u,unmaskTextClass:l,maskTextSelector:d,unmaskTextSelector:f,maskTextFn:_,maskInputOptions:m,maskInputFn:S,rootId:I});case e.CDATA_SECTION_NODE:return{type:se.CDATA,textContent:"",rootId:I};case e.COMMENT_NODE:return{type:se.Comment,textContent:e.textContent||"",rootId:I};default:return!1}}function B_(e,t){if(!t.hasNode(e))return;const n=t.getId(e);return n===1?void 0:n}function H_(e,t){const{maskAllText:n,maskTextClass:r,unmaskTextClass:s,maskTextSelector:i,unmaskTextSelector:o,maskTextFn:a,maskInputOptions:c,maskInputFn:u,rootId:l}=t,d=e.parentNode&&e.parentNode.tagName;let f=e.textContent;const p=d==="STYLE"?!0:void 0,m=d==="SCRIPT"?!0:void 0,_=d==="TEXTAREA"?!0:void 0;if(p&&f){try{e.nextSibling||e.previousSibling||hr([e,"access",g=>g.parentNode,"access",g=>g.sheet,"optionalAccess",g=>g.cssRules])&&(f=mr(e.parentNode.sheet))}catch(g){console.warn(`Cannot get CSS styles from text's parentNode. Error: ${g}`,e)}f=_r(f,_i())}m&&(f="SCRIPT_PLACEHOLDER");const S=zt(e,r,i,s,o,n);if(!p&&!m&&!_&&f&&S&&(f=a?a(f,e.parentElement):f.replace(/[\S]/g,"*")),_&&f&&(c.textarea||S)&&(f=u?u(f,e.parentNode):f.replace(/[\S]/g,"*")),d==="OPTION"&&f){const g=$r({type:null,tagName:d,maskInputOptions:c});f=_n({isMasked:zt(e,r,i,s,o,g),element:e,value:f,maskInputFn:u})}return{type:se.Text,textContent:f||"",isStyle:p,rootId:l}}function U_(e,t){const{doc:n,blockClass:r,blockSelector:s,unblockSelector:i,inlineStylesheet:o,maskInputOptions:a={},maskAttributeFn:c,maskInputFn:u,dataURLOptions:l={},inlineImages:d,recordCanvas:f,keepIframeSrcFn:p,newlyAddedElement:m=!1,rootId:_,maskTextClass:S,unmaskTextClass:g,maskTextSelector:y,unmaskTextSelector:b}=t,v=D_(e,r,s,i),T=I_(e);let I={};const M=e.attributes.length;for(let w=0;w<M;w++){const R=e.attributes[w];R.name&&!Ru(T,R.name,R.value)&&(I[R.name]=Cu(n,T,jt(R.name),R.value,e,c))}if(T==="link"&&o){const w=Array.from(n.styleSheets).find(L=>L.href===e.href);let R=null;w&&(R=mr(w)),R&&(delete I.rel,delete I.href,I._cssText=_r(R,w.href))}if(T==="style"&&e.sheet&&!(e.innerText||e.textContent||"").trim().length){const w=mr(e.sheet);
24w&&(I._cssText=_r(w,_i()))}if(T==="input"||T==="textarea"||T==="select"||T==="option"){const w=e,R=mi(w),L=gr(w,Os(T),R),K=w.checked;if(R!=="submit"&&R!=="button"&&L){const re=zt(w,S,y,g,b,$r({type:R,tagName:Os(T),maskInputOptions:a}));I.value=_n({isMasked:re,element:w,value:L,maskInputFn:u})}K&&(I.checked=K)}if(T==="option"&&(e.selected&&!a.select?I.selected=!0:delete I.selected),T==="canvas"&&f){if(e.__context==="2d")E_(e)||(I.rr_dataURL=e.toDataURL(l.type,l.quality));else if(!("__context"in e)){const w=e.toDataURL(l.type,l.quality),R=document.createElement("canvas");R.width=e.width,R.height=e.height;const L=R.toDataURL(l.type,l.quality);w!==L&&(I.rr_dataURL=w)}}if(T==="img"&&d){vt||(vt=n.createElement("canvas"),Mo=vt.getContext("2d"));const w=e,R=w.crossOrigin;w.crossOrigin="anonymous";const L=()=>{w.removeEventListener("load",L);try{vt.width=w.naturalWidth,vt.height=w.naturalHeight,Mo.drawImage(w,0,0),I.rr_dataURL=vt.toDataURL(l.type,l.quality)}catch(K){console.warn(`Cannot inline img src=${w.currentSrc}! Error: ${K}`)}R?I.crossOrigin=R:w.removeAttribute("crossorigin")};w.complete&&w.naturalWidth!==0?L():w.addEventListener("load",L)}if((T==="audio"||T==="video")&&(I.rr_mediaState=e.paused?"paused":"played",I.rr_mediaCurrentTime=e.currentTime),m||(e.scrollLeft&&(I.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(I.rr_scrollTop=e.scrollTop)),v){const{width:w,height:R}=e.getBoundingClientRect();I={class:I.class,rr_width:`${w}px`,rr_height:`${R}px`}}T==="iframe"&&!p(I.src)&&(e.contentDocument||(I.rr_src=I.src),delete I.src);let O;try{customElements.get(T)&&(O=!0)}catch{}return{type:se.Element,tagName:T,attributes:I,childNodes:[],isSVG:N_(e)||void 0,needBlock:v,rootId:_,isCustom:O}}function Y(e){return e==null?"":e.toLowerCase()}function W_(e,t){if(t.comment&&e.type===se.Comment)return!0;if(e.type===se.Element){if(t.script&&(e.tagName==="script"||e.tagName==="link"&&(e.attributes.rel==="preload"||e.attributes.rel==="modulepreload")&&e.attributes.as==="script"||e.tagName==="link"&&e.attributes.rel==="prefetch"&&typeof e.attributes.href=="string"&&e.attributes.href.endsWith(".js")))return!0;if(t.headFavicon&&(e.tagName==="link"&&e.attributes.rel==="shortcut icon"||e.tagName==="meta"&&(Y(e.attributes.name).match(/^msapplication-tile(image|color)$/)||Y(e.attributes.name)==="application-name"||Y(e.attributes.rel)==="icon"||Y(e.attributes.rel)==="apple-touch-icon"||Y(e.attributes.rel)==="shortcut icon")))return!0;if(e.tagName==="meta"){if(t.headMetaDescKeywords&&Y(e.attributes.name).match(/^description|keywords$/))return!0;if(t.headMetaSocial&&(Y(e.attributes.property).match(/^(og|twitter|fb):/)||Y(e.attributes.name).match(/^(og|twitter):/)||Y(e.attributes.name)==="pinterest"))return!0;if(t.headMetaRobots&&(Y(e.attributes.name)==="robots"||Y(e.attributes.name)==="googlebot"||Y(e.attributes.name)==="bingbot"))return!0;if(t.headMetaHttpEquiv&&e.attributes["http-equiv"]!==void 0)return!0;if(t.headMetaAuthorship&&(Y(e.attributes.name)==="author"||Y(e.attributes.name)==="generator"||Y(e.attributes.name)==="framework"||Y(e.attributes.name)==="publisher"||Y(e.attributes.name)==="progid"||Y(e.attributes.property).match(/^article:/)||Y(e.attributes.property).match(/^product:/)))return!0;if(t.headMetaVerification&&(Y(e.attributes.name)==="google-site-verification"||Y(e.attributes.name)==="yandex-verification"||Y(e.attributes.name)==="csrf-token"||Y(e.attributes.name)==="p:domain_verify"||Y(e.attributes.name)==="verify-v1"||Y(e.attributes.name)==="verification"||Y(e.attributes.name)==="shopify-checkout-api-token"))return!0}}return!1}function At(e,t){const{doc:n,mirror:r,blockClass:s,blockSelector:i,unblockSelector:o,maskAllText:a,maskTextClass:c,unmaskTextClass:u,maskTextSelector:l,unmaskTextSelector:d,skipChild:f=!1,inlineStylesheet:p=!0,maskInputOptions:m={},maskAttributeFn:_,maskTextFn:S,maskInputFn:g,slimDOMOptions:y,dataURLOptions:b={},inlineImages:v=!1,recordCanvas:T=!1,onSerialize:I,onIframeLoad:M,iframeLoadTimeout:O=5e3,onStylesheetLoad:w,stylesheetLoadTimeout:R=5e3,keepIframeSrcFn:L=()=>!1,newlyAddedElement:K=!1}=t;let{preserveWhiteSpace:re=!0}=t;const ce=F_(e,{doc:n,mirror:r,blockClass:s,blockSelector:i,maskAllText:a,unblockSelector:o,maskTextClass:c,unmaskTextClass:u,maskTextSelector:l,unmaskTextSelector:d,inlineStylesheet:p,maskInputOptions:m,maskAttributeFn:_,maskTextFn:S,maskInputFn:g,dataURLOptions:b,inlineImages:v,recordCanvas:T,keepIframeSrcFn:L,newlyAddedElement:K});if(!ce)return console.warn(e,"not serialized"),null;let me;r.hasNode(e)?me=r.getId(e):W_(ce,y)||!re&&ce.type===se.Text&&!ce.isStyle&&!ce.textContent.replace(/^\s+|\s+$/gm,"").length?me=yn:me=gi();const G=Object.assign(ce,{id:me});if(r.add(e,G),me===yn)return null;I&&I(e);let ye=!f;if(G.type===se.Element){ye=ye&&!G.needBlock,delete G.needBlock;const te=e.shadowRoot;te&&pn(te)&&(G.isShadowHost=!0)}if((G.type===se.Document||G.type===se.Element)&&ye){y.headWhitespace&&G.type===se.Element&&G.tagName==="head"&&(re=!1);const te={doc:n,mirror:r,blockClass:s,blockSelector:i,maskAllText:a,unblockSelector:o,maskTextClass:c,unmaskTextClass:u,maskTextSelector:l,unmaskTextSelector:d,skipChild:f,inlineStylesheet:p,maskInputOptions:m,maskAttributeFn:_,maskTextFn:S,maskInputFn:g,slimDOMOptions:y,dataURLOptions:b,inlineImages:v,recordCanvas:T,preserveWhiteSpace:re,onSerialize:I,onIframeLoad:M,iframeLoadTimeout:O,onStylesheetLoad:w,stylesheetLoadTimeout:R,keepIframeSrcFn:L};for(const he of Array.from(e.childNodes)){const Se=At(he,te);Se&&G.childNodes.push(Se)}if(h_(e)&&e.shadowRoot)for(const he of Array.from(e.shadowRoot.childNodes)){const Se=At(he,te);Se&&(pn(e.shadowRoot)&&(Se.isShadow=!0),G.childNodes.push(Se))}}return e.parentNode&&fn(e.parentNode)&&pn(e.parentNode)&&(G.isShadow=!0),G.type===se.Element&&G.tagName==="iframe"&&P_(e,()=>{const te=e.contentDocument;if(te&&M){const he=At(te,{doc:te,mirror:r,blockClass:s,blockSelector:i,unblockSelector:o,maskAllText:a,maskTextClass:c,unmaskTextClass:u,maskTextSelector:l,unmaskTextSelector:d,skipChild:!1,inlineStylesheet:p,maskInputOptions:m,maskAttributeFn:_,maskTextFn:S,maskInputFn:g,slimDOMOptions:y,dataURLOptions:b,inlineImages:v,recordCanvas:T,preserveWhiteSpace:re,onSerialize:I,onIframeLoad:M,iframeLoadTimeout:O,onStylesheetLoad:w,stylesheetLoadTimeout:R,keepIframeSrcFn:L});he&&M(e,he)}},O),G.type===se.Element&&G.tagName==="link"&&G.attributes.rel==="stylesheet"&&$_(e,()=>{if(w){const te=At(e,{doc:n,mirror:r,blockClass:s,blockSelector:i,unblockSelector:o,maskAllText:a,maskTextClass:c,unmaskTextClass:u,maskTextSelector:l,unmaskTextSelector:d,skipChild:!1,inlineStylesheet:p,maskInputOptions:m,maskAttributeFn:_,maskTextFn:S,maskInputFn:g,slimDOMOptions:y,dataURLOptions:b,inlineImages:v,recordCanvas:T,preserveWhiteSpace:re,onSerialize:I,onIframeLoad:M,iframeLoadTimeout:O,onStylesheetLoad:w,stylesheetLoadTimeout:R,keepIframeSrcFn:L});te&&w(e,te)}},R),G}function j_(e,t){const{mirror:n=new ku,blockClass:r="rr-block",blockSelector:s=null,unblockSelector:i=null,maskAllText:o=!1,maskTextClass:a="rr-mask",unmaskTextClass:c=null,maskTextSelector:u=null,unmaskTextSelector:l=null,inlineStylesheet:d=!0,inl
24ineImages:f=!1,recordCanvas:p=!1,maskAllInputs:m=!1,maskAttributeFn:_,maskTextFn:S,maskInputFn:g,slimDOM:y=!1,dataURLOptions:b,preserveWhiteSpace:v,onSerialize:T,onIframeLoad:I,iframeLoadTimeout:M,onStylesheetLoad:O,stylesheetLoadTimeout:w,keepIframeSrcFn:R=()=>!1}=t||{};return At(e,{doc:e,mirror:n,blockClass:r,blockSelector:s,unblockSelector:i,maskAllText:o,maskTextClass:a,unmaskTextClass:c,maskTextSelector:u,unmaskTextSelector:l,skipChild:!1,inlineStylesheet:d,maskInputOptions: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}:m===!1?{}:m,maskAttributeFn:_,maskTextFn:S,maskInputFn:g,slimDOMOptions:y===!0||y==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:y==="all",headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:y===!1?{}:y,dataURLOptions:b,inlineImages:f,recordCanvas:p,preserveWhiteSpace:v,onSerialize:T,onIframeLoad:I,iframeLoadTimeout:M,onStylesheetLoad:O,stylesheetLoadTimeout:w,keepIframeSrcFn:R,newlyAddedElement:!1})}function ze(e){let t,n=e[0],r=1;for(;r<e.length;){const s=e[r],i=e[r+1];if(r+=2,(s==="optionalAccess"||s==="optionalCall")&&n==null)return;s==="access"||s==="optionalAccess"?(t=n,n=i(n)):(s==="call"||s==="optionalCall")&&(n=i((...o)=>n.call(t,...o)),t=void 0)}return n}function pe(e,t,n=document){const r={capture:!0,passive:!0};return n.addEventListener(e,t,r),()=>n.removeEventListener(e,t,r)}const kt=`Please stop import mirror directly. Instead of that,\r
25now you can use replayer.getMirror() to access the mirror instance of a replayer,\r
26or you can use record.mirror to access the mirror instance during recording.`;let Ao={map:{},getId(){return console.error(kt),-1},getNode(){return console.error(kt),null},removeNodeFromMap(){console.error(kt)},has(){return console.error(kt),!1},reset(){console.error(kt)}};typeof window<"u"&&window.Proxy&&window.Reflect&&(Ao=new Proxy(Ao,{get(e,t,n){return t==="map"&&console.error(kt),Reflect.get(e,t,n)}}));function Sn(e,t,n={}){let r=null,s=0;return function(...i){const o=Date.now();!s&&n.leading===!1&&(s=o);const a=t-(o-s),c=this;a<=0||a>t?(r&&(X_(r),r=null),s=o,e.apply(c,i)):!r&&n.trailing!==!1&&(r=Fr(()=>{s=n.leading===!1?0:Date.now(),r=null,e.apply(c,i)},a))}}function xu(e,t,n,r,s=window){const i=s.Object.getOwnPropertyDescriptor(e,t);return s.Object.defineProperty(e,t,r?n:{set(o){Fr(()=>{n.set.call(this,o)},0),i&&i.set&&i.set.call(this,o)}}),()=>xu(e,t,i||{},!0)}function yi(e,t,n){try{if(!(t in e))return()=>{};const r=e[t],s=n(r);return typeof s=="function"&&(s.prototype=s.prototype||{},Object.defineProperties(s,{__rrweb_original__:{enumerable:!1,value:r}})),e[t]=s,()=>{e[t]=r}}catch{return()=>{}}}let yr=Date.now;/[1-9][0-9]{12}/.test(Date.now().toString())||(yr=()=>new Date().getTime());function Mu(e){const t=e.document;return{left:t.scrollingElement?t.scrollingElement.scrollLeft:e.pageXOffset!==void 0?e.pageXOffset:ze([t,"optionalAccess",n=>n.documentElement,"access",n=>n.scrollLeft])||ze([t,"optionalAccess",n=>n.body,"optionalAccess",n=>n.parentElement,"optionalAccess",n=>n.scrollLeft])||ze([t,"optionalAccess",n=>n.body,"optionalAccess",n=>n.scrollLeft])||0,top:t.scrollingElement?t.scrollingElement.scrollTop:e.pageYOffset!==void 0?e.pageYOffset:ze([t,"optionalAccess",n=>n.documentElement,"access",n=>n.scrollTop])||ze([t,"optionalAccess",n=>n.body,"optionalAccess",n=>n.parentElement,"optionalAccess",n=>n.scrollTop])||ze([t,"optionalAccess",n=>n.body,"optionalAccess",n=>n.scrollTop])||0}}function Au(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function Ou(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function Nu(e){return e?e.nodeType===e.ELEMENT_NODE?e:e.parentElement:null}function ve(e,t,n,r,s){if(!e)return!1;const i=Nu(e);if(!i)return!1;const o=Mt(t,n);if(!s){const u=r&&i.matches(r);return o(i)&&!u}const a=at(i,o);let c=-1;return a<0?!1:(r&&(c=at(i,Mt(null,r))),a>-1&&c<0?!0:a<c)}function z_(e,t){return t.getId(e)!==-1}function is(e,t){return t.getId(e)===yn}function Du(e,t){if(fn(e))return!1;const n=t.getId(e);return t.has(n)?e.parentNode&&e.parentNode.nodeType===e.DOCUMENT_NODE?!1:e.parentNode?Du(e.parentNode,t):!0:!0}function Ns(e){return!!e.changedTouches}function G_(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 n=t[0];if(!(0 in t))throw new TypeError("1 argument is required");do if(this===n)return!0;while(n=n&&n.parentNode);return!1})}function Lu(e,t){return!!(e.nodeName==="IFRAME"&&t.getMeta(e))}function Pu(e,t){return!!(e.nodeName==="LINK"&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&e.getAttribute("rel")==="stylesheet"&&t.getMeta(e))}function Ds(e){return!!ze([e,"optionalAccess",t=>t.shadowRoot])}class q_{constructor(){this.id=1,this.styleIDMap=new WeakMap,this.idStyleMap=new Map}getId(t){return gf(this.styleIDMap.get(t),()=>-1)}has(t){return this.styleIDMap.has(t)}add(t,n){if(this.has(t))return this.getId(t);let r;return n===void 0?r=this.id++:r=n,this.styleIDMap.set(t,r),this.idStyleMap.set(r,t),r}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 $u(e){let t=null;return ze([e,"access",n=>n.getRootNode,"optionalCall",n=>n(),"optionalAccess",n=>n.nodeType])===Node.DOCUMENT_FRAGMENT_NODE&&e.getRootNode().host&&(t=e.getRootNode().host),t}function Y_(e){let t=e,n;for(;n=$u(t);)t=n;return t}function V_(e){const t=e.ownerDocument;if(!t)return!1;const n=Y_(e);return t.contains(n)}function Fu(e){const t=e.ownerDocument;return t?t.contains(e)||V_(e):!1}const Oo={};function Si(e){const t=Oo[e];if(t)return t;const n=window.document;let r=window[e];if(n&&typeof n.createElement=="function")try{const s=n.createElement("iframe");s.hidden=!0,n.head.appendChild(s);const i=s.contentWindow;i&&i[e]&&(r=i[e]),n.head.removeChild(s)}catch{}return Oo[e]=r.bind(window)}function K_(...e){return Si("requestAnimationFrame")(...e)}
26function Fr(...e){return Si("setTimeout")(...e)}function X_(...e){return Si("clearTimeout")(...e)}var N=(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))(N||{}),D=(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))(D||{}),de=(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))(de||{}),Ne=(e=>(e[e.Mouse=0]="Mouse",e[e.Pen=1]="Pen",e[e.Touch=2]="Touch",e))(Ne||{});function J_(e){let t,n=e[0],r=1;for(;r<e.length;){const s=e[r],i=e[r+1];if(r+=2,(s==="optionalAccess"||s==="optionalCall")&&n==null)return;s==="access"||s==="optionalAccess"?(t=n,n=i(n)):(s==="call"||s==="optionalCall")&&(n=i((...o)=>n.call(t,...o)),t=void 0)}return n}function No(e){return"__ln"in e}class Z_{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 n=this.head;for(let r=0;r<t;r++)n=J_([n,"optionalAccess",s=>s.next])||null;return n}addNode(t){const n={value:t,previous:null,next:null};if(t.__ln=n,t.previousSibling&&No(t.previousSibling)){const r=t.previousSibling.__ln.next;n.next=r,n.previous=t.previousSibling.__ln,t.previousSibling.__ln.next=n,r&&(r.previous=n)}else if(t.nextSibling&&No(t.nextSibling)&&t.nextSibling.__ln.previous){const r=t.nextSibling.__ln.previous;n.previous=r,n.next=t.nextSibling.__ln,t.nextSibling.__ln.previous=n,r&&(r.next=n)}else this.head&&(this.head.previous=n),n.next=this.head,this.head=n;n.next===null&&(this.tail=n),this.length++}removeNode(t){const n=t.__ln;this.head&&(n.previous?(n.previous.next=n.next,n.next?n.next.previous=n.previous:this.tail=n.previous):(this.head=n.next,this.head?this.head.previous=null:this.tail=null),t.__ln&&delete t.__ln,this.length--)}}const Do=(e,t)=>`${e}@${t}`;class Q_{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=[],n=new Set,r=new Z_,s=c=>{let u=c,l=yn;for(;l===yn;)u=u&&u.nextSibling,l=u&&this.mirror.getId(u);return l},i=c=>{if(!c.parentNode||!Fu(c))return;const u=fn(c.parentNode)?this.mirror.getId($u(c)):this.mirror.getId(c.parentNode),l=s(c);if(u===-1||l===-1)return r.addNode(c);const d=At(c,{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:f=>{Lu(f,this.mirror)&&this.iframeManager.addIframe(f),Pu(f,this.mirror)&&this.stylesheetManager.trackLinkElement(f),Ds(c)&&this.shadowDomManager.addShadowRoot(c.shadowRoot,this.doc)},onIframeLoad:(f,p)=>{this.iframeManager.attachIframe(f,p),this.shadowDomManager.observeAttachShadow(f)},onStylesheetLoad:(f,p)=>{this.stylesheetManager.attachLinkElement(f,p)}});d&&(t.push({parentId:u,nextId:l,node:d}),n.add(d.id))};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(const c of this.movedSet)Lo(this.removes,c,this.mirror)&&!this.movedSet.has(c.parentNode)||i(c);for(const c of this.addedSet)!Po(this.droppedSet,c)&&!Lo(this.removes,c,this.mirror)||Po(this.movedSet,c)?i(c):this.droppedSet.add(c);let o=null;for(;r.length;){let c=null;if(o){const u=this.mirror.getId(o.value.parentNode),l=s(o.value);u!==-1&&l!==-1&&(c=o)}if(!c){let u=r.tail;for(;u;){const l=u;if(u=u.previous,l){const d=this.mirror.getId(l.value.parentNode);
26if(s(l.value)===-1)continue;if(d!==-1){c=l;break}else{const p=l.value;if(p.parentNode&&p.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE){const m=p.parentNode.host;if(this.mirror.getId(m)!==-1){c=l;break}}}}}}if(!c){for(;r.head;)r.removeNode(r.head.value);break}o=c.previous,r.removeNode(c.value),i(c.value)}const a={texts:this.texts.map(c=>({id:this.mirror.getId(c.node),value:c.value})).filter(c=>!n.has(c.id)).filter(c=>this.mirror.has(c.id)),attributes:this.attributes.map(c=>{const{attributes:u}=c;if(typeof u.style=="string"){const l=JSON.stringify(c.styleDiff),d=JSON.stringify(c._unchangedStyles);l.length<u.style.length&&(l+d).split("var(").length===u.style.split("var(").length&&(u.style=c.styleDiff)}return{id:this.mirror.getId(c.node),attributes:u}}).filter(c=>!n.has(c.id)).filter(c=>this.mirror.has(c.id)),removes:this.removes,adds:t};!a.texts.length&&!a.attributes.length&&!a.removes.length&&!a.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(a))},this.processMutation=t=>{if(!is(t.target,this.mirror))switch(t.type){case"characterData":{const n=t.target.textContent;!ve(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&n!==t.oldValue&&this.texts.push({value:zt(t.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,this.maskAllText)&&n?this.maskTextFn?this.maskTextFn(n,Nu(t.target)):n.replace(/[\S]/g,"*"):n,node:t.target});break}case"attributes":{const n=t.target;let r=t.attributeName,s=t.target.getAttribute(r);if(r==="value"){const o=mi(n),a=n.tagName;s=gr(n,a,o);const c=$r({maskInputOptions:this.maskInputOptions,tagName:a,type:o}),u=zt(t.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,c);s=_n({isMasked:u,element:n,value:s,maskInputFn:this.maskInputFn})}if(ve(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||s===t.oldValue)return;let i=this.attributeMap.get(t.target);if(n.tagName==="IFRAME"&&r==="src"&&!this.keepIframeSrcFn(s))if(!n.contentDocument)r="rr_src";else return;if(i||(i={node:t.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(i),this.attributeMap.set(t.target,i)),r==="type"&&n.tagName==="INPUT"&&(t.oldValue||"").toLowerCase()==="password"&&n.setAttribute("data-rr-is-password","true"),!Ru(n.tagName,r)&&(i.attributes[r]=Cu(this.doc,jt(n.tagName),jt(r),s,n,this.maskAttributeFn),r==="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 a of Array.from(n.style)){const c=n.style.getPropertyValue(a),u=n.style.getPropertyPriority(a);c!==o.style.getPropertyValue(a)||u!==o.style.getPropertyPriority(a)?u===""?i.styleDiff[a]=c:i.styleDiff[a]=[c,u]:i._unchangedStyles[a]=[c,u]}for(const a of Array.from(o.style))n.style.getPropertyValue(a)===""&&(i.styleDiff[a]=!1)}break}case"childList":{if(ve(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!0))return;t.addedNodes.forEach(n=>this.genAdds(n,t.target)),t.removedNodes.forEach(n=>{const r=this.mirror.getId(n),s=fn(t.target)?this.mirror.getId(t.target.host):this.mirror.getId(t.target);ve(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||is(n,this.mirror)||!z_(n,this.mirror)||(this.addedSet.has(n)?(Ls(this.addedSet,n),this.droppedSet.add(n)):this.addedSet.has(t.target)&&r===-1||Du(t.target,this.mirror)||(this.movedSet.has(n)&&this.movedMap[Do(r,s)]?Ls(this.movedSet,n):this.removes.push({parentId:s,id:r,isShadow:fn(t.target)&&pn(t.target)?!0:void 0})),this.mapRemoves.push(n))});break}}},this.genAdds=(t,n)=>{if(!this.processedNodeManager.inOtherBuffer(t,this)&&!(this.addedSet.has(t)||this.movedSet.has(t))){if(this.mirror.hasNode(t)){if(is(t,this.mirror))return;this.movedSet.add(t);let r=null;n&&this.mirror.hasNode(n)&&(r=this.mirror.getId(n)),r&&r!==-1&&(this.movedMap[Do(this.mirror.getId(t),r)]=!0)}else this.addedSet.add(t),this.droppedSet.delete(t);ve(t,this.blockClass,this.blockSelector,this.unblockSelector,!1)||(t.childNodes.forEac
26h(r=>this.genAdds(r)),Ds(t)&&t.shadowRoot.childNodes.forEach(r=>{this.processedNodeManager.add(r,this),this.genAdds(r,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(n=>{this[n]=t[n]})}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 Ls(e,t){e.delete(t),t.childNodes.forEach(n=>Ls(e,n))}function Lo(e,t,n){return e.length===0?!1:Bu(e,t,n)}function Bu(e,t,n){const{parentNode:r}=t;if(!r)return!1;const s=n.getId(r);return e.some(i=>i.id===s)?!0:Bu(e,r,n)}function Po(e,t){return e.size===0?!1:Hu(e,t)}function Hu(e,t){const{parentNode:n}=t;return n?e.has(n)?!0:Hu(e,n):!1}let hn;function ey(e){hn=e}function ty(){hn=void 0}const $=e=>hn?((...n)=>{try{return e(...n)}catch(r){if(hn&&hn(r)===!0)return()=>{};throw r}}):e;function Re(e){let t,n=e[0],r=1;for(;r<e.length;){const s=e[r],i=e[r+1];if(r+=2,(s==="optionalAccess"||s==="optionalCall")&&n==null)return;s==="access"||s==="optionalAccess"?(t=n,n=i(n)):(s==="call"||s==="optionalCall")&&(n=i((...o)=>n.call(t,...o)),t=void 0)}return n}const Ot=[];function An(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 Uu(e,t){const n=new Q_;Ot.push(n),n.init(e);let r=window.MutationObserver||window.__rrMutationObserver;const s=Re([window,"optionalAccess",o=>o.Zone,"optionalAccess",o=>o.__symbol__,"optionalCall",o=>o("MutationObserver")]);s&&window[s]&&(r=window[s]);const i=new r($(o=>{e.onMutation&&e.onMutation(o)===!1||n.processMutations.bind(n)(o)}));return i.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),i}function ny({mousemoveCb:e,sampling:t,doc:n,mirror:r}){if(t.mousemove===!1)return()=>{};const s=typeof t.mousemove=="number"?t.mousemove:50,i=typeof t.mousemoveCallback=="number"?t.mousemoveCallback:500;let o=[],a;const c=Sn($(d=>{const f=Date.now()-a;e(o.map(p=>(p.timeOffset-=f,p)),d),o=[],a=null}),i),u=$(Sn($(d=>{const f=An(d),{clientX:p,clientY:m}=Ns(d)?d.changedTouches[0]:d;a||(a=yr()),o.push({x:p,y:m,id:r.getId(f),timeOffset:yr()-a}),c(typeof DragEvent<"u"&&d instanceof DragEvent?D.Drag:d instanceof MouseEvent?D.MouseMove:D.TouchMove)}),s,{trailing:!1})),l=[pe("mousemove",u,n),pe("touchmove",u,n),pe("drag",u,n)];return $(()=>{l.forEach(d=>d())})}function ry({mouseInteractionCb:e,doc:t,mirror:n,blockClass:r,blockSelector:s,unblockSelector:i,sampling:o}){if(o.mouseInteraction===!1)return()=>{};const a=o.mouseInteraction===!0||o.mouseInteraction===void 0?{}:o.mouseInteraction,c=[];let u=null;const l=d=>f=>{const p=An(f);if(ve(p,r,s,i,!0))return;let m=null,_=d;if("pointerType"in f){switch(f.pointerType){case"mouse":m=Ne.Mouse;break;case"touch":m=Ne.Touch;break;case"pen":m=Ne.Pen;break}m===Ne.Touch?de[d]===de.MouseDown?_="TouchStart":de[d]===de.MouseUp&&(_="TouchEnd"):Ne.Pen}else Ns(f)&&(m=Ne.Touch);m!==null?(u=m,(_.startsWith("Touch")&&m===Ne.Touch||_.startsWith("Mouse")&&m===Ne.Mouse)&&(m=null)):de[d]===de.Click&&(m=u,u=null);const S=Ns(f)?f.changedTouches[0]:f;if(!S)return;const g=n.getId(p),{clientX:y,clientY:b}=S;$(e)({type:de[_],id:g,x:y,y:b,...m!==null&&{pointerType:m}})};return Object.keys(de).filter(d=>Number.isNaN(Number(d))&&!d.endsWith("_Departed")&&a[d]!==!1).forEach(d=>{let f=jt(d);const p=l(d);if(window.PointerEvent)switch(de[d]){case de.MouseDown:case de.MouseUp:f=f.replace("mouse","pointer");break;case de.TouchStart:case de.TouchEnd:return}c.push(pe(f,p,t))}),$(()=>
26{c.forEach(d=>d())})}function Wu({scrollCb:e,doc:t,mirror:n,blockClass:r,blockSelector:s,unblockSelector:i,sampling:o}){const a=$(Sn($(c=>{const u=An(c);if(!u||ve(u,r,s,i,!0))return;const l=n.getId(u);if(u===t&&t.defaultView){const d=Mu(t.defaultView);e({id:l,x:d.left,y:d.top})}else e({id:l,x:u.scrollLeft,y:u.scrollTop})}),o.scroll||100));return pe("scroll",a,t)}function sy({viewportResizeCb:e},{win:t}){let n=-1,r=-1;const s=$(Sn($(()=>{const i=Au(),o=Ou();(n!==i||r!==o)&&(e({width:Number(o),height:Number(i)}),n=i,r=o)}),200));return pe("resize",s,t)}const iy=["INPUT","TEXTAREA","SELECT"],$o=new WeakMap;function oy({inputCb:e,doc:t,mirror:n,blockClass:r,blockSelector:s,unblockSelector:i,ignoreClass:o,ignoreSelector:a,maskInputOptions:c,maskInputFn:u,sampling:l,userTriggeredOnInput:d,maskTextClass:f,unmaskTextClass:p,maskTextSelector:m,unmaskTextSelector:_}){function S(M){let O=An(M);const w=M.isTrusted,R=O&&Os(O.tagName);if(R==="OPTION"&&(O=O.parentElement),!O||!R||iy.indexOf(R)<0||ve(O,r,s,i,!0))return;const L=O;if(L.classList.contains(o)||a&&L.matches(a))return;const K=mi(O);let re=gr(L,R,K),ce=!1;const me=$r({maskInputOptions:c,tagName:R,type:K}),G=zt(O,f,m,p,_,me);(K==="radio"||K==="checkbox")&&(ce=O.checked),re=_n({isMasked:G,element:O,value:re,maskInputFn:u}),g(O,d?{text:re,isChecked:ce,userTriggered:w}:{text:re,isChecked:ce});const ye=O.name;K==="radio"&&ye&&ce&&t.querySelectorAll(`input[type="radio"][name="${ye}"]`).forEach(te=>{if(te!==O){const he=_n({isMasked:G,element:te,value:gr(te,R,K),maskInputFn:u});g(te,d?{text:he,isChecked:!ce,userTriggered:!1}:{text:he,isChecked:!ce})}})}function g(M,O){const w=$o.get(M);if(!w||w.text!==O.text||w.isChecked!==O.isChecked){$o.set(M,O);const R=n.getId(M);$(e)({...O,id:R})}}const b=(l.input==="last"?["change"]:["input","change"]).map(M=>pe(M,$(S),t)),v=t.defaultView;if(!v)return()=>{b.forEach(M=>M())};const T=v.Object.getOwnPropertyDescriptor(v.HTMLInputElement.prototype,"value"),I=[[v.HTMLInputElement.prototype,"value"],[v.HTMLInputElement.prototype,"checked"],[v.HTMLSelectElement.prototype,"value"],[v.HTMLTextAreaElement.prototype,"value"],[v.HTMLSelectElement.prototype,"selectedIndex"],[v.HTMLOptionElement.prototype,"selected"]];return T&&T.set&&b.push(...I.map(M=>xu(M[0],M[1],{set(){$(S)({target:this,isTrusted:!1})}},!1,v))),$(()=>{b.forEach(M=>M())})}function Sr(e){const t=[];function n(r,s){if(Gn("CSSGroupingRule")&&r.parentRule instanceof CSSGroupingRule||Gn("CSSMediaRule")&&r.parentRule instanceof CSSMediaRule||Gn("CSSSupportsRule")&&r.parentRule instanceof CSSSupportsRule||Gn("CSSConditionRule")&&r.parentRule instanceof CSSConditionRule){const o=Array.from(r.parentRule.cssRules).indexOf(r);s.unshift(o)}else if(r.parentStyleSheet){const o=Array.from(r.parentStyleSheet.cssRules).indexOf(r);s.unshift(o)}return s}return n(e,t)}function Ge(e,t,n){let r,s;return e?(e.ownerNode?r=t.getId(e.ownerNode):s=n.getId(e),{styleId:s,id:r}):{}}function ay({styleSheetRuleCb:e,mirror:t,stylesheetManager:n},{win:r}){if(!r.CSSStyleSheet||!r.CSSStyleSheet.prototype)return()=>{};const s=r.CSSStyleSheet.prototype.insertRule;r.CSSStyleSheet.prototype.insertRule=new Proxy(s,{apply:$((l,d,f)=>{const[p,m]=f,{id:_,styleId:S}=Ge(d,t,n.styleMirror);return(_&&_!==-1||S&&S!==-1)&&e({id:_,styleId:S,adds:[{rule:p,index:m}]}),l.apply(d,f)})});const i=r.CSSStyleSheet.prototype.deleteRule;r.CSSStyleSheet.prototype.deleteRule=new Proxy(i,{apply:$((l,d,f)=>{const[p]=f,{id:m,styleId:_}=Ge(d,t,n.styleMirror);return(m&&m!==-1||_&&_!==-1)&&e({id:m,styleId:_,removes:[{index:p}]}),l.apply(d,f)})});let o;r.CSSStyleSheet.prototype.replace&&(o=r.CSSStyleSheet.prototype.replace,r.CSSStyleSheet.prototype.replace=new Proxy(o,{apply:$((l,d,f)=>{const[p]=f,{id:m,styleId:_}=Ge(d,t,n.styleMirror);return(m&&m!==-1||_&&_!==-1)&&e({id:m,styleId:_,replace:p}),l.apply(d,f)})}));let a;r.CSSStyleSheet.prototype.replaceSync&&(a=r.CSSStyleSheet.prototype.replaceSync,r.CSSStyleSheet.prototype.replaceSync=new Proxy(a,{apply:$((l,d,f)=>{const[p]=f,{id:m,styleId:_}=Ge(d,t,n.styleMirror);return(m&&m!==-1||_&&_!==-1)&&e({id:m,styleId:_,replaceSync:p}),l.apply(d,f)})}));const c={};qn("CSSGroupingRule")?c.CSSGroupingRule=r.CSSGroupingRule:(qn("CSSMediaRule")&&(c.CSSMediaRule=r.CSSMediaRule),qn("CSSConditionRule")&&(c.CSSConditionRule=r.CSSConditionRule),qn("CSSSupportsRule")&&(c.CSSSupportsRule=r.CSSSupportsRule));const u={};
26return Object.entries(c).forEach(([l,d])=>{u[l]={insertRule:d.prototype.insertRule,deleteRule:d.prototype.deleteRule},d.prototype.insertRule=new Proxy(u[l].insertRule,{apply:$((f,p,m)=>{const[_,S]=m,{id:g,styleId:y}=Ge(p.parentStyleSheet,t,n.styleMirror);return(g&&g!==-1||y&&y!==-1)&&e({id:g,styleId:y,adds:[{rule:_,index:[...Sr(p),S||0]}]}),f.apply(p,m)})}),d.prototype.deleteRule=new Proxy(u[l].deleteRule,{apply:$((f,p,m)=>{const[_]=m,{id:S,styleId:g}=Ge(p.parentStyleSheet,t,n.styleMirror);return(S&&S!==-1||g&&g!==-1)&&e({id:S,styleId:g,removes:[{index:[...Sr(p),_]}]}),f.apply(p,m)})})}),$(()=>{r.CSSStyleSheet.prototype.insertRule=s,r.CSSStyleSheet.prototype.deleteRule=i,o&&(r.CSSStyleSheet.prototype.replace=o),a&&(r.CSSStyleSheet.prototype.replaceSync=a),Object.entries(c).forEach(([l,d])=>{d.prototype.insertRule=u[l].insertRule,d.prototype.deleteRule=u[l].deleteRule})})}function ju({mirror:e,stylesheetManager:t},n){let r=null;n.nodeName==="#document"?r=e.getId(n):r=e.getId(n.host);const s=n.nodeName==="#document"?Re([n,"access",o=>o.defaultView,"optionalAccess",o=>o.Document]):Re([n,"access",o=>o.ownerDocument,"optionalAccess",o=>o.defaultView,"optionalAccess",o=>o.ShadowRoot]),i=Re([s,"optionalAccess",o=>o.prototype])?Object.getOwnPropertyDescriptor(Re([s,"optionalAccess",o=>o.prototype]),"adoptedStyleSheets"):void 0;return r===null||r===-1||!s||!i?()=>{}:(Object.defineProperty(n,"adoptedStyleSheets",{configurable:i.configurable,enumerable:i.enumerable,get(){return Re([i,"access",o=>o.get,"optionalAccess",o=>o.call,"call",o=>o(this)])},set(o){const a=Re([i,"access",c=>c.set,"optionalAccess",c=>c.call,"call",c=>c(this,o)]);if(r!==null&&r!==-1)try{t.adoptStyleSheets(o,r)}catch{}return a}}),$(()=>{Object.defineProperty(n,"adoptedStyleSheets",{configurable:i.configurable,enumerable:i.enumerable,get:i.get,set:i.set})}))}function cy({styleDeclarationCb:e,mirror:t,ignoreCSSAttributes:n,stylesheetManager:r},{win:s}){const i=s.CSSStyleDeclaration.prototype.setProperty;s.CSSStyleDeclaration.prototype.setProperty=new Proxy(i,{apply:$((a,c,u)=>{const[l,d,f]=u;if(n.has(l))return i.apply(c,[l,d,f]);const{id:p,styleId:m}=Ge(Re([c,"access",_=>_.parentRule,"optionalAccess",_=>_.parentStyleSheet]),t,r.styleMirror);return(p&&p!==-1||m&&m!==-1)&&e({id:p,styleId:m,set:{property:l,value:d,priority:f},index:Sr(c.parentRule)}),a.apply(c,u)})});const o=s.CSSStyleDeclaration.prototype.removeProperty;return s.CSSStyleDeclaration.prototype.removeProperty=new Proxy(o,{apply:$((a,c,u)=>{const[l]=u;if(n.has(l))return o.apply(c,[l]);const{id:d,styleId:f}=Ge(Re([c,"access",p=>p.parentRule,"optionalAccess",p=>p.parentStyleSheet]),t,r.styleMirror);return(d&&d!==-1||f&&f!==-1)&&e({id:d,styleId:f,remove:{property:l},index:Sr(c.parentRule)}),a.apply(c,u)})}),$(()=>{s.CSSStyleDeclaration.prototype.setProperty=i,s.CSSStyleDeclaration.prototype.removeProperty=o})}function uy({mediaInteractionCb:e,blockClass:t,blockSelector:n,unblockSelector:r,mirror:s,sampling:i,doc:o}){const a=$(u=>Sn($(l=>{const d=An(l);if(!d||ve(d,t,n,r,!0))return;const{currentTime:f,volume:p,muted:m,playbackRate:_}=d;e({type:u,id:s.getId(d),currentTime:f,volume:p,muted:m,playbackRate:_})}),i.media||500)),c=[pe("play",a(0),o),pe("pause",a(1),o),pe("seeked",a(2),o),pe("volumechange",a(3),o),pe("ratechange",a(4),o)];return $(()=>{c.forEach(u=>u())})}function ly({fontCb:e,doc:t}){const n=t.defaultView;if(!n)return()=>{};const r=[],s=new WeakMap,i=n.FontFace;n.FontFace=function(c,u,l){const d=new i(c,u,l);return s.set(d,{family:c,buffer:typeof u!="string",descriptors:l,fontSource:typeof u=="string"?u:JSON.stringify(Array.from(new Uint8Array(u)))}),d};const o=yi(t.fonts,"add",function(a){return function(c){return Fr($(()=>{const u=s.get(c);u&&(e(u),s.delete(c))}),0),a.apply(this,[c])}});return r.push(()=>{n.FontFace=i}),r.push(o),$(()=>{r.forEach(a=>a())})}function dy(e){const{doc:t,mirror:n,blockClass:r,blockSelector:s,unblockSelector:i,selectionCb:o}=e;let a=!0;const c=$(()=>{const u=t.getSelection();if(!u||a&&Re([u,"optionalAccess",f=>f.isCollapsed]))return;a=u.isCollapsed||!1;const l=[],d=u.rangeCount||0;for(let f=0;f<d;f++){const p=u.getRangeAt(f),{startContainer:m,startOffset:_,endContainer:S,endOffset:g}=p;ve(m,r,s,i,!0)||ve(S,r,s,i,!0)||l.push({start:n.getId(m),startOffset:_,end:n.getId(S),endOffset:g})}o({ranges:l})});return c(),pe("selectionchange",c)}function fy({doc:e,customElementCb:t}){const n=e.defaultView;return!n||!n.customElements?()=>{}:yi(n.customElements,"define",function(s){return function(i,o,a){try{t({define:{name:i}})}catch{}return s.apply(this,[i,o,a])}})}function py(e,t={}){const n=e.doc.defaultView;if(!n)return()=>{};const r=Uu(e,e.doc),s=ny(e),i=ry(e),o=Wu(e),a=sy(e,{win:n}),c=oy(e),u=uy(e),l=ay(e,{win:n}),d=ju(e,e.doc),f=cy(e,{win:n}),p=e.collectFonts?ly(e):()=>{},m=dy(e),_=fy(e),S=[];for(const g of e.plugins)S.push(g.observer(g.callback,n,g.options));return $(()=>{Ot.forEach(g=>g.reset()),r.disconnect(),s(),i(),o(),a(),c(),u(),l(),d(),f(),p(),m(),_(),S.forEac
26h(g=>g())})}function Gn(e){return typeof window[e]<"u"}function qn(e){return!!(typeof window[e]<"u"&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}class Ps{constructor(t){this.generateIdFn=t,this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap}getId(t,n,r,s){const i=r||this.getIdToRemoteIdMap(t),o=s||this.getRemoteIdToIdMap(t);let a=i.get(n);return a||(a=this.generateIdFn(),i.set(n,a),o.set(a,n)),a}getIds(t,n){const r=this.getIdToRemoteIdMap(t),s=this.getRemoteIdToIdMap(t);return n.map(i=>this.getId(t,i,r,s))}getRemoteId(t,n,r){const s=r||this.getRemoteIdToIdMap(t);if(typeof n!="number")return n;const i=s.get(n);return i||-1}getRemoteIds(t,n){const r=this.getRemoteIdToIdMap(t);return n.map(s=>this.getRemoteId(t,s,r))}reset(t){if(!t){this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap;return}this.iframeIdToRemoteIdMap.delete(t),this.iframeRemoteIdToIdMap.delete(t)}getIdToRemoteIdMap(t){let n=this.iframeIdToRemoteIdMap.get(t);return n||(n=new Map,this.iframeIdToRemoteIdMap.set(t,n)),n}getRemoteIdToIdMap(t){let n=this.iframeRemoteIdToIdMap.get(t);return n||(n=new Map,this.iframeRemoteIdToIdMap.set(t,n)),n}}function Fo(e){let t,n=e[0],r=1;for(;r<e.length;){const s=e[r],i=e[r+1];if(r+=2,(s==="optionalAccess"||s==="optionalCall")&&n==null)return;s==="access"||s==="optionalAccess"?(t=n,n=i(n)):(s==="call"||s==="optionalCall")&&(n=i((...o)=>n.call(t,...o)),t=void 0)}return n}class hy{constructor(){this.crossOriginIframeMirror=new Ps(gi),this.crossOriginIframeRootIdMap=new WeakMap}addIframe(){}addLoadListener(){}attachIframe(){}}class my{constructor(t){this.iframes=new WeakMap,this.crossOriginIframeMap=new WeakMap,this.crossOriginIframeMirror=new Ps(gi),this.crossOriginIframeRootIdMap=new WeakMap,this.mutationCb=t.mutationCb,this.wrappedEmit=t.wrappedEmit,this.stylesheetManager=t.stylesheetManager,this.recordCrossOriginIframes=t.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new Ps(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,n){this.mutationCb({adds:[{parentId:this.mirror.getId(t),nextId:null,node:n}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),Fo([this,"access",r=>r.loadListener,"optionalCall",r=>r(t)]),t.contentDocument&&t.contentDocument.adoptedStyleSheets&&t.contentDocument.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(t.contentDocument.adoptedStyleSheets,this.mirror.getId(t.contentDocument))}handleMessage(t){const n=t;if(n.data.type!=="rrweb"||n.origin!==n.data.origin||!t.source)return;const s=this.crossOriginIframeMap.get(t.source);if(!s)return;const i=this.transformCrossOriginEvent(s,n.data.event);i&&this.wrappedEmit(i,n.data.isCheckout)}transformCrossOriginEvent(t,n){switch(n.type){case N.FullSnapshot:{this.crossOriginIframeMirror.reset(t),this.crossOriginIframeStyleMirror.reset(t),this.replaceIdOnNode(n.data.node,t);const r=n.data.node.id;return this.crossOriginIframeRootIdMap.set(t,r),this.patchRootIdOnNode(n.data.node,r),{timestamp:n.timestamp,type:N.IncrementalSnapshot,data:{source:D.Mutation,adds:[{parentId:this.mirror.getId(t),nextId:null,node:n.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case N.Meta:case N.Load:case N.DomContentLoaded:return!1;case N.Plugin:return n;case N.Custom:return this.replaceIds(n.data.payload,t,["id","parentId","previousId","nextId"]),n;case N.IncrementalSnapshot:switch(n.data.source){case D.Mutation:return n.data.adds.forEach(r=>{this.replaceIds(r,t,["parentId","nextId","previousId"]),this.replaceIdOnNode(r.node,t);const s=this.crossOriginIframeRootIdMap.get(t);s&&this.patchRootIdOnNode(r.node,s)}),n.data.removes.forEach(r=>{this.replaceIds(r,t,["parentId","id"])}),n.data.attributes.forEach(r=>{this.replaceIds(r,t,["id"])}
26),n.data.texts.forEach(r=>{this.replaceIds(r,t,["id"])}),n;case D.Drag:case D.TouchMove:case D.MouseMove:return n.data.positions.forEach(r=>{this.replaceIds(r,t,["id"])}),n;case D.ViewportResize:return!1;case D.MediaInteraction:case D.MouseInteraction:case D.Scroll:case D.CanvasMutation:case D.Input:return this.replaceIds(n.data,t,["id"]),n;case D.StyleSheetRule:case D.StyleDeclaration:return this.replaceIds(n.data,t,["id"]),this.replaceStyleIds(n.data,t,["styleId"]),n;case D.Font:return n;case D.Selection:return n.data.ranges.forEach(r=>{this.replaceIds(r,t,["start","end"])}),n;case D.AdoptedStyleSheet:return this.replaceIds(n.data,t,["id"]),this.replaceStyleIds(n.data,t,["styleIds"]),Fo([n,"access",r=>r.data,"access",r=>r.styles,"optionalAccess",r=>r.forEach,"call",r=>r(s=>{this.replaceStyleIds(s,t,["styleId"])})]),n}}return!1}replace(t,n,r,s){for(const i of s)!Array.isArray(n[i])&&typeof n[i]!="number"||(Array.isArray(n[i])?n[i]=t.getIds(r,n[i]):n[i]=t.getId(r,n[i]));return n}replaceIds(t,n,r){return this.replace(this.crossOriginIframeMirror,t,n,r)}replaceStyleIds(t,n,r){return this.replace(this.crossOriginIframeStyleMirror,t,n,r)}replaceIdOnNode(t,n){this.replaceIds(t,n,["id","rootId"]),"childNodes"in t&&t.childNodes.forEach(r=>{this.replaceIdOnNode(r,n)})}patchRootIdOnNode(t,n){t.type!==se.Document&&!t.rootId&&(t.rootId=n),"childNodes"in t&&t.childNodes.forEach(r=>{this.patchRootIdOnNode(r,n)})}}class gy{init(){}addShadowRoot(){}observeAttachShadow(){}reset(){}}class _y{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,n){if(!pn(t)||this.shadowDoms.has(t))return;this.shadowDoms.add(t);const r=Uu({...this.bypassOptions,doc:n,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this},t);this.restoreHandlers.push(()=>r.disconnect()),this.restoreHandlers.push(Wu({...this.bypassOptions,scrollCb:this.scrollCb,doc:t,mirror:this.mirror})),Fr(()=>{t.adoptedStyleSheets&&t.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(t.adoptedStyleSheets,this.mirror.getId(t.host)),this.restoreHandlers.push(ju({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},t))},0)}observeAttachShadow(t){!t.contentWindow||!t.contentDocument||this.patchAttachShadow(t.contentWindow.Element,t.contentDocument)}patchAttachShadow(t,n){const r=this;this.restoreHandlers.push(yi(t.prototype,"attachShadow",function(s){return function(i){const o=s.call(this,i);return this.shadowRoot&&Fu(this)&&r.addShadowRoot(this.shadowRoot,n),o}}))}reset(){this.restoreHandlers.forEach(t=>{try{t()}catch{}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet}}class Bo{reset(){}freeze(){}unfreeze(){}lock(){}unlock(){}snapshot(){}}class yy{constructor(t){this.trackedLinkElements=new WeakSet,this.styleMirror=new q_,this.mutationCb=t.mutationCb,this.adoptedStyleSheetCb=t.adoptedStyleSheetCb}attachLinkElement(t,n){"_cssText"in n.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:n.id,attributes:n.attributes}]}),this.trackLinkElement(t)}trackLinkElement(t){this.trackedLinkElements.has(t)||(this.trackedLinkElements.add(t),this.trackStylesheetInLinkElement(t))}adoptStyleSheets(t,n){if(t.length===0)return;const r={id:n,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,(a,c)=>({rule:wu(a),index:c}))})),r.styleIds.push(o)}s.length>0&&(r.styles=s),this.adoptedStyleSheetCb(r)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(t){}}class Sy{constructor(){this.nodeMap=new WeakMap,this.loop=!0,this.periodicallyClear()}periodicallyClear(){K_(()=>{this.clear(),this.loop&&this.periodicallyClear()})}inOtherBuffer(t,n){const r=this.nodeMap.get(t);return r&&Array.from(r).some(s=>s!==n)}add(t,n){this.nodeMap.set(t,(this.nodeMap.get(t)||new Set).add(n))}clear(){this.nodeMap=new WeakMap}destroy(){this.loop=!1}}let Q,br;const Ee=b_();function Ke(e={}){const{emit:t,checkoutEveryNms:n,checkoutEveryNth:r,blockClass:s="rr
26-block",blockSelector:i=null,unblockSelector:o=null,ignoreClass:a="rr-ignore",ignoreSelector:c=null,maskAllText:u=!1,maskTextClass:l="rr-mask",unmaskTextClass:d=null,maskTextSelector:f=null,unmaskTextSelector:p=null,inlineStylesheet:m=!0,maskAllInputs:_,maskInputOptions:S,slimDOMOptions:g,maskAttributeFn:y,maskInputFn:b,maskTextFn:v,maxCanvasSize:T=null,packFn:I,sampling:M={},dataURLOptions:O={},mousemoveWait:w,recordCanvas:R=!1,recordCrossOriginIframes:L=!1,recordAfter:K=e.recordAfter==="DOMContentLoaded"?e.recordAfter:"load",userTriggeredOnInput:re=!1,collectFonts:ce=!1,inlineImages:me=!1,plugins:G,keepIframeSrcFn:ye=()=>!1,ignoreCSSAttributes:te=new Set([]),errorHandler:he,onMutation:Se,getCanvasManager:Gr}=e;ey(he);const bt=L?window.parent===window:!0;let je=!1;if(!bt)try{window.parent.document&&(je=!1)}catch{je=!0}if(bt&&!t)throw new Error("emit function is required");w!==void 0&&M.mousemove===void 0&&(M.mousemove=w),Ee.reset();const Et=_===!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}:S!==void 0?S:{},nn=g===!0||g==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:g==="all",headMetaDescKeywords:g==="all"}:g||{};G_();let qr,Yr=0;const Ri=H=>{for(const be of G||[])be.eventProcessor&&(H=be.eventProcessor(H));return I&&!je&&(H=I(H)),H};Q=(H,be)=>{const B=H;if(B.timestamp=yr(),Zn([Ot,"access",J=>J[0],"optionalAccess",J=>J.isFrozen,"call",J=>J()])&&B.type!==N.FullSnapshot&&!(B.type===N.IncrementalSnapshot&&B.data.source===D.Mutation)&&Ot.forEach(J=>J.unfreeze()),bt)Zn([t,"optionalCall",J=>J(Ri(B),be)]);else if(je){const J={type:"rrweb",event:Ri(B),origin:window.location.origin,isCheckout:be};window.parent.postMessage(J,"*")}if(B.type===N.FullSnapshot)qr=B,Yr=0;else if(B.type===N.IncrementalSnapshot){if(B.data.source===D.Mutation&&B.data.isAttachIframe)return;Yr++;const J=r&&Yr>=r,U=n&&qr&&B.timestamp-qr.timestamp>n;(J||U)&&Kr(!0)}};const Nn=H=>{Q({type:N.IncrementalSnapshot,data:{source:D.Mutation,...H}})},xi=H=>Q({type:N.IncrementalSnapshot,data:{source:D.Scroll,...H}}),Jl=H=>Q({type:N.IncrementalSnapshot,data:{source:D.CanvasMutation,...H}}),Zl=H=>Q({type:N.IncrementalSnapshot,data:{source:D.AdoptedStyleSheet,...H}}),nt=new yy({mutationCb:Nn,adoptedStyleSheetCb:Zl}),rt=typeof __RRWEB_EXCLUDE_IFRAME__=="boolean"&&__RRWEB_EXCLUDE_IFRAME__?new hy:new my({mirror:Ee,mutationCb:Nn,stylesheetManager:nt,recordCrossOriginIframes:L,wrappedEmit:Q});for(const H of G||[])H.getMirror&&H.getMirror({nodeMirror:Ee,crossOriginIframeMirror:rt.crossOriginIframeMirror,crossOriginIframeStyleMirror:rt.crossOriginIframeStyleMirror});const Vr=new Sy,Mi=Ey(Gr,{mirror:Ee,win:window,mutationCb:H=>Q({type:N.IncrementalSnapshot,data:{source:D.CanvasMutation,...H}}),recordCanvas:R,blockClass:s,blockSelector:i,unblockSelector:o,maxCanvasSize:T,sampling:M.canvas,dataURLOptions:O,errorHandler:he}),Dn=typeof __RRWEB_EXCLUDE_SHADOW_DOM__=="boolean"&&__RRWEB_EXCLUDE_SHADOW_DOM__?new gy:new _y({mutationCb:Nn,scrollCb:xi,bypassOptions:{onMutation:Se,blockClass:s,blockSelector:i,unblockSelector:o,maskAllText:u,maskTextClass:l,unmaskTextClass:d,maskTextSelector:f,unmaskTextSelector:p,inlineStylesheet:m,maskInputOptions:Et,dataURLOptions:O,maskAttributeFn:y,maskTextFn:v,maskInputFn:b,recordCanvas:R,inlineImages:me,sampling:M,slimDOMOptions:nn,iframeManager:rt,stylesheetManager:nt,canvasManager:Mi,keepIframeSrcFn:ye,processedNodeManager:Vr},mirror:Ee}),Kr=(H=!1)=>{Q({type:N.Meta,data:{href:window.location.href,width:Ou(),height:Au()}},H),nt.reset(),Dn.init(),Ot.forEach(B=>B.lock());const be=j_(document,{mirror:Ee,blockClass:s,blockSelector:i,unblockSelector:o,maskAllText:u,maskTextClass:l,unmaskTextClass:d,maskTextSelector:f,unmaskTextSelector:p,inlineStylesheet:m,maskAllInputs:Et,maskAttributeFn:y,maskInputFn:b,maskTextFn:v,slimDOM:nn,dataURLOptions:O,recordCanvas:R,inlineImages:me,onSerialize:B=>{Lu(B,Ee)&&rt.addIframe(B),Pu(B,Ee)&&nt.trackLinkElement(B),Ds(B)&&Dn.addShadowRoot(B.shadowRoot,document)},onIframeLoad:(B,J)=>{rt.attachIframe(B,J),Dn.observeAttachShadow(B)},onStylesheetLoad:(B,J)=>{nt.attachLinkElement(B,J)},keepIframeSrcFn:ye});if(!be)return console.warn("Failed to snapshot the document");Q({type:N.FullSnapshot,data:{node:be,initialOffset:Mu(window)}}),Ot.forEach(B=>B.unlock()),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&nt.adoptStyleSheets(document.adoptedStyleSheets,Ee.getId(document))};br=Kr;try{const H=[],be=J=>$(py)({onMutation:Se,mutationCb:Nn,mousemoveCb:(U,st)=>Q({type:N.IncrementalSnapshot,data:{source:st,positions:U}}),mouseInteractionCb:U=>Q({type:N.IncrementalSnapshot,data:{source:D.MouseInteraction,...U}}),scrollCb:xi,viewportResizeCb:U=>Q({type:N.IncrementalSnapshot,data:{source:D.ViewportResize,...U}}),inputCb:U=>Q({type:N.IncrementalSnapshot,data:{source:D.Input,...U}}),mediaInteractionCb:U=>Q({type:N.IncrementalSnapshot,data:{source:D.MediaInteraction,...U}}),styleSheetRuleCb:U=>Q({type:N.IncrementalSnapshot,data:{source:D.StyleSheetRule,...U}}),styleDeclarationCb:U=>Q({type:N.IncrementalSnapshot,data:{source:D.StyleDeclaration,...U}}),canvasMutationCb:Jl,fontCb:U=>Q({type:N.IncrementalSnapshot,data:{source:D.Font,...U}}),selectionCb:U=>{Q({type:N.IncrementalSnapshot,data:{source:D.Selection,...U}})},customElementCb:U=>{Q({type:N.IncrementalSnapshot,data:{source:D.CustomElement,...U}})},blockClass:s,ignoreClass:a,ignoreSelector:c,maskAllText:u,maskTextClass:l,unmaskTextClass:d,maskTextSelector:f,unmaskTextSelector:p,maskInputOptions:Et,inlineStylesheet:m,sampling:M,recordCanvas:R,inlineImages:me,userTriggeredOnInput:re,collectFonts:ce,doc:J,maskAttributeFn:y,maskInputFn:b,maskTextFn:v,keepIframeSrcFn:ye,blockSelector:i,unblockSelector:o,slimDOMOptions:nn,dataURLOptions:O,mirror:Ee,iframeManager:rt,stylesheetManager:nt,shadowDomManager:Dn,processedNodeManager:Vr,canvasManager:Mi,ignoreCSSAttributes:te,plugins:Zn([G,"optionalAccess",U=>U.filter,"call",U=>U(st=>st.observer),"optionalAccess",U=>U.map,"call",U=>U(st=>({observer:st.observer,options:st.options,callback:Ql=>Q({type:N.Plugin,data:{plugin:st.name,payload:Ql}})}))])||[]},{});rt.addLoadListener(J=>{try{H.push(be(J.contentDocument))}catch(U){console.warn(U)}});const B=()=>{Kr(),H.push(be(document))};return document.readyState==="interactive"||document.readyState==="complete"?B():(H.push(pe("DOMContentLoaded",()=>{Q({type:N.DomContentLoaded,data:{}}),K==="DOMContentLoaded"&&B()})),H.push(pe("load",()=>{Q({type:N.Load,data:{}}),K==="load"&&B()}
26,window))),()=>{H.forEach(J=>J()),Vr.destroy(),br=void 0,ty()}}catch(H){console.warn(H)}}function by(e){if(!br)throw new Error("please take full snapshot after start recording");br(e)}Ke.mirror=Ee;Ke.takeFullSnapshot=by;function Ey(e,t){try{return e?e(t):new Bo}catch{return console.warn("Unable to initialize CanvasManager"),new Bo}}const Ty=3,vy=5;function bi(e){return e>9999999999?e:e*1e3}function os(e){return e>9999999999?e/1e3:e}function On(e,t){t.category!=="sentry.transaction"&&(["ui.click","ui.input"].includes(t.category)?e.triggerUserActivity():e.checkAndHandleExpiredSession(),e.addUpdate(()=>(e.throttledAddEvent({type:N.Custom,timestamp:(t.timestamp||0)*1e3,data:{tag:"breadcrumb",payload:Te(t,10,1e3)}}),t.category==="console")))}const Iy="button,a";function zu(e){return e.closest(Iy)||e}function Gu(e){const t=qu(e);return!t||!(t instanceof Element)?t:zu(t)}function qu(e){return wy(e)?e.target:e}function wy(e){return typeof e=="object"&&!!e&&"target"in e}let qe;function ky(e){return qe||(qe=[],Cy()),qe.push(e),()=>{const t=qe?qe.indexOf(e):-1;t>-1&&qe.splice(t,1)}}function Cy(){oe(V,"open",function(e){return function(...t){if(qe)try{qe.forEach(n=>n())}catch{}return e.apply(V,t)}})}function Ry(e,t,n){e.handleClick(t,n)}class xy{constructor(t,n,r=On){this._lastMutation=0,this._lastScroll=0,this._clicks=[],this._timeout=n.timeout/1e3,this._threshold=n.threshold/1e3,this._scollTimeout=n.scrollTimeout/1e3,this._replay=t,this._ignoreSelector=n.ignoreSelector,this._addBreadcrumbEvent=r}addListeners(){const t=ky(()=>{this._lastMutation=Ho()});this._teardown=()=>{t(),this._clicks=[],this._lastMutation=0,this._lastScroll=0}}removeListeners(){this._teardown&&this._teardown(),this._checkClickTimeout&&clearTimeout(this._checkClickTimeout)}handleClick(t,n){if(Ay(n,this._ignoreSelector)||!Oy(t))return;const r={timestamp:os(t.timestamp),clickBreadcrumb:t,clickCount:0,node:n};this._clicks.some(s=>s.node===r.node&&Math.abs(s.timestamp-r.timestamp)<1)||(this._clicks.push(r),this._clicks.length===1&&this._scheduleCheckClicks())}registerMutation(t=Date.now()){this._lastMutation=os(t)}registerScroll(t=Date.now()){this._lastScroll=os(t)}registerClick(t){const n=zu(t);this._handleMultiClick(n)}_handleMultiClick(t){this._getClicks(t).forEach(n=>{n.clickCount++})}_getClicks(t){return this._clicks.filter(n=>n.node===t)}_checkClicks(){const t=[],n=Ho();this._clicks.forEach(r=>{!r.mutationAfter&&this._lastMutation&&(r.mutationAfter=r.timestamp<=this._lastMutation?this._lastMutation-r.timestamp:void 0),!r.scrollAfter&&this._lastScroll&&(r.scrollAfter=r.timestamp<=this._lastScroll?this._lastScroll-r.timestamp:void 0),r.timestamp+this._timeout<=n&&t.push(r)});for(const r of t){const s=this._clicks.indexOf(r);s>-1&&(this._generateBreadcrumbs(r),this._clicks.splice(s,1))}this._clicks.length&&this._scheduleCheckClicks()}_generateBreadcrumbs(t){const n=this._replay,r=t.scrollAfter&&t.scrollAfter<=this._scollTimeout,s=t.mutationAfter&&t.mutationAfter<=this._threshold,i=!r&&!s,{clickCount:o,clickBreadcrumb:a}=t;if(i){const c=Math.min(t.mutationAfter||this._timeout,this._timeout)*1e3,u=c<this._timeout*1e3?"mutation":"timeout",l={type:"default",message:a.message,timestamp:a.timestamp,category:"ui.slowClickDetected",data:{...a.data,url:V.location.href,route:n.getCurrentRoute(),timeAfterClickMs:c,endReason:u,clickCount:o||1}};this._addBreadcrumbEvent(n,l);return}if(o>1){const c={type:"default",message:a.message,timestamp:a.timestamp,category:"ui.multiClick",data:{...a.data,url:V.location.href,route:n.getCurrentRoute(),clickCount:o,metric:!0}};this._addBreadcrumbEvent(n,c)}}_scheduleCheckClicks(){this._checkClickTimeout&&clearTimeout(this._checkClickTimeout),this._checkClickTimeout=setTimeout(()=>this._checkClicks(),1e3)}}const My=["A","BUTTON","INPUT"];function Ay(e,t){return!!(!My.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 Oy(e){return!!(e.data&&typeof e.data.nodeId=="number"&&e.timestamp)}function Ho(){return Date.now()/1e3}function Ny(e,t){try{if(!Dy(t))return;const{source:n}=t.data;if(n===D.Mutation&&e.registerMutation(t.timestamp),n===D.Scroll&&e.registerScroll(t.timestamp),Ly(t)){const{type:r,id:s}=t.data,i=Ke.mirror.getNode(s);i instanceof HTMLElement&&r===de.Click&&e.registerClick(i)}}catch{}}function Dy(e){return e.type===Ty}function Ly(e){return e.data.source===D.MouseInteraction}function Me(e){return{timestamp:Date.now()/1e3,type:"default",...e}}var Er;(function(e){e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment"})(Er||(Er={}));const Py=new Set(["id","class","aria-label","role","name","alt","title","data-test-id","data-testid","disabled","aria-disabled","data-sentry-component"]);function $y(e){const t={};for(const n in e)if(Py.has(n)){let r=n;(n==="data-testid"||n==="data-test-id")&&(r="testId"),t[r]=e[n]}return t}const Fy=e=>t=>{if(!e.isEnabled())return;const n=By(t);if(!n)return;
26const r=t.name==="click",s=r?t.event:void 0;r&&e.clickDetector&&s&&s.target&&!s.altKey&&!s.metaKey&&!s.ctrlKey&&!s.shiftKey&&Ry(e.clickDetector,n,Gu(t.event)),On(e,n)};function Yu(e,t){const n=Ke.mirror.getId(e),r=n&&Ke.mirror.getNode(n),s=r&&Ke.mirror.getMeta(r),i=s&&Uy(s)?s:null;return{message:t,data:i?{nodeId:n,node:{id:n,tagName:i.tagName,textContent:Array.from(i.childNodes).map(o=>o.type===Er.Text&&o.textContent).filter(Boolean).map(o=>o.trim()).join(""),attributes:$y(i.attributes)}}:{}}}function By(e){const{target:t,message:n}=Hy(e);return Me({category:`ui.${e.name}`,...Yu(t,n)})}function Hy(e){const t=e.name==="click";let n,r=null;try{r=t?Gu(e.event):qu(e.event),n=Je(r,{maxStringLength:200})||"<unknown>"}catch{n="<unknown>"}return{target:r,message:n}}function Uy(e){return e.type===Er.Element}function Wy(e,t){if(!e.isEnabled())return;e.updateUserActivity();const n=jy(t);n&&On(e,n)}function jy(e){const{metaKey:t,shiftKey:n,ctrlKey:r,altKey:s,key:i,target:o}=e;if(!o||zy(o)||!i)return null;const a=t||r||s,c=i.length===1;if(!a&&c)return null;const u=Je(o,{maxStringLength:200})||"<unknown>",l=Yu(o,u);return Me({category:"ui.keyDown",message:u,data:{...l.data,metaKey:t,shiftKey:n,ctrlKey:r,altKey:s,key:i}})}function zy(e){return e.tagName==="INPUT"||e.tagName==="TEXTAREA"||e.isContentEditable}const Uo={resource:Ky,paint:Yy,navigation:Vy};function Gy(e){return e.map(qy).filter(Boolean)}function qy(e){return Uo[e.entryType]?Uo[e.entryType](e):null}function Gt(e){return((ue||V.performance.timeOrigin)+e)/1e3}function Yy(e){const{duration:t,entryType:n,name:r,startTime:s}=e,i=Gt(s);return{type:n,name:r,start:i,end:i+t,data:void 0}}function Vy(e){const{entryType:t,name:n,decodedBodySize:r,duration:s,domComplete:i,encodedBodySize:o,domContentLoadedEventStart:a,domContentLoadedEventEnd:c,domInteractive:u,loadEventStart:l,loadEventEnd:d,redirectCount:f,startTime:p,transferSize:m,type:_}=e;return s===0?null:{type:`${t}.${_}`,start:Gt(p),end:Gt(i),name:n,data:{size:m,decodedBodySize:r,encodedBodySize:o,duration:s,domInteractive:u,domContentLoadedEventStart:a,domContentLoadedEventEnd:c,loadEventStart:l,loadEventEnd:d,domComplete:i,redirectCount:f}}}function Ky(e){const{entryType:t,initiatorType:n,name:r,responseEnd:s,startTime:i,decodedBodySize:o,encodedBodySize:a,responseStatus:c,transferSize:u}=e;return["fetch","xmlhttprequest"].includes(n)?null:{type:`${t}.${n}`,start:Gt(i),end:Gt(s),name:r,data:{size:u,statusCode:c,decodedBodySize:o,encodedBodySize:a}}}function Xy(e){const t=e.entries,n=t[t.length-1],r=n?n.element:void 0,s=e.value,i=Gt(s);return{type:"largest-contentful-paint",name:"largest-contentful-paint",start:i,end:i,data:{value:s,size:s,nodeId:r?Ke.mirror.getId(r):void 0}}}function Jy(e){function t(s){e.performanceEntries.includes(s)||e.performanceEntries.push(s)}function n({entries:s}){s.forEach(t)}const r=[];return["navigation","paint","resource"].forEach(s=>{r.push(et(s,n))}),r.push(Vc(({metric:s})=>{e.replayPerformanceEntries.push(Xy(s))})),()=>{r.forEach(s=>s())}}const q=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,Zy='var t=Uint8Array,n=Uint16Array,r=Int32Array,e=new t([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),i=new t([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),a=new t([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),s=function(t,e){for(var i=new n(31),a=0;a<31;++a)i[a]=e+=1<<t[a-1];var s=new r(i[30]);for(a=1;a<30;++a)for(var o=i[a];o<i[a+1];++o)s[o]=o-i[a]<<5|a;return{b:i,r:s}},o=s(e,2),f=o.b,h=o.r;f[28]=258,h[258]=28;for(var l=s(i,0).r,u=new n(32768),c=0;c<32768;++c){var v=(43690&c)>>1|(21845&c)<<1;v=(61680&(v=(52428&v)>>2|(13107&v)<<2))>>4|(3855&v)<<4,u[c]=((65280&v)>>8|(255&v)<<8)>>1}var d=function(t,r,e){for(var i=t.length,a=0,s=new n(r);a<i;++a)t[a]&&++s[t[a]-1];var o,f=new n(r);for(a=1;a<r;++a)f[a]=f[a-1]+s[a-1]<<1;if(e){o=new n(1<<r);var h=15-r;for(a=0;a<i;++a)if(t[a])for(var l=a<<4|t[a],c=r-t[a],v=f[t[a]-1]++<<c,d=v|(1<<c)-1;v<=d;++v)o[u[v]>>h]=l}else for(o=new n(i),a=0;a<i;++a)t[a]&&(o[a]=u[f[t[a]-1]++]>>15-t[a]);return o},g=new t(288);for(c=0;c<144;++c)g[c]=8;for(c=144;c<256;++c)g[c]=9;for(c=256;c<280;++c)g[c]=7;for(c=280;c<288;++c)g[c]=8;var w=new t(32);for(c=0;c<32;++c)w[c]=5;var p=d(g,9,0),y=d(w,5,0),m=function(t){return(t+7)/8|0},b=function(n,r,e){return(null==r||r<0)&&(r=0),(null==e||e>n.length)&&(e=n.length),new t(n.subarray(r,e))}
vendor: 4,465 bytes, line 26
26,M=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],E=function(t,n,r){var e=new Error(n||M[t]);if(e.code=t,Error.captureStackTrace&&Error.captureStackTrace(e,E),!r)throw e;return e},z=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8},A=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8,t[e+2]|=r>>16},_=function(r,e){for(var i=[],a=0;a<r.length;++a)r[a]&&i.push({s:a,f:r[a]});var s=i.length,o=i.slice();if(!s)return{t:F,l:0};if(1==s){var f=new t(i[0].s+1);return f[i[0].s]=1,{t:f,l:1}}i.sort((function(t,n){return t.f-n.f})),i.push({s:-1,f:25001});var h=i[0],l=i[1],u=0,c=1,v=2;for(i[0]={s:-1,f:h.f+l.f,l:h,r:l};c!=s-1;)h=i[i[u].f<i[v].f?u++:v++],l=i[u!=c&&i[u].f<i[v].f?u++:v++],i[c++]={s:-1,f:h.f+l.f,l:h,r:l};var d=o[0].s;for(a=1;a<s;++a)o[a].s>d&&(d=o[a].s);var g=new n(d+1),w=x(i[c-1],g,0);if(w>e){a=0;var p=0,y=w-e,m=1<<y;for(o.sort((function(t,n){return g[n.s]-g[t.s]||t.f-n.f}));a<s;++a){var b=o[a].s;if(!(g[b]>e))break;p+=m-(1<<w-g[b]),g[b]=e}for(p>>=y;p>0;){var M=o[a].s;g[M]<e?p-=1<<e-g[M]++-1:++a}for(;a>=0&&p;--a){var E=o[a].s;g[E]==e&&(--g[E],++p)}w=e}return{t:new t(g),l:w}},x=function(t,n,r){return-1==t.s?Math.max(x(t.l,n,r+1),x(t.r,n,r+1)):n[t.s]=r},D=function(t){for(var r=t.length;r&&!t[--r];);for(var e=new n(++r),i=0,a=t[0],s=1,o=function(t){e[i++]=t},f=1;f<=r;++f)if(t[f]==a&&f!=r)++s;else{if(!a&&s>2){for(;s>138;s-=138)o(32754);s>2&&(o(s>10?s-11<<5|28690:s-3<<5|12305),s=0)}else if(s>3){for(o(a),--s;s>6;s-=6)o(8304);s>2&&(o(s-3<<5|8208),s=0)}for(;s--;)o(a);s=1,a=t[f]}return{c:e.subarray(0,i),n:r}},T=function(t,n){for(var r=0,e=0;e<n.length;++e)r+=t[e]*n[e];return r},k=function(t,n,r){var e=r.length,i=m(n+2);t[i]=255&e,t[i+1]=e>>8,t[i+2]=255^t[i],t[i+3]=255^t[i+1];for(var a=0;a<e;++a)t[i+a+4]=r[a];return 8*(i+4+e)},C=function(t,r,s,o,f,h,l,u,c,v,m){z(r,m++,s),++f[256];for(var b=_(f,15),M=b.t,E=b.l,x=_(h,15),C=x.t,U=x.l,F=D(M),I=F.c,S=F.n,L=D(C),O=L.c,j=L.n,q=new n(19),B=0;B<I.length;++B)++q[31&I[B]];for(B=0;B<O.length;++B)++q[31&O[B]];for(var G=_(q,7),H=G.t,J=G.l,K=19;K>4&&!H[a[K-1]];--K);var N,P,Q,R,V=v+5<<3,W=T(f,g)+T(h,w)+l,X=T(f,M)+T(h,C)+l+14+3*K+T(q,H)+2*q[16]+3*q[17]+7*q[18];if(c>=0&&V<=W&&V<=X)return k(r,m,t.subarray(c,c+v));if(z(r,m,1+(X<W)),m+=2,X<W){N=d(M,E,0),P=M,Q=d(C,U,0),R=C;var Y=d(H,J,0);z(r,m,S-257),z(r,m+5,j-1),z(r,m+10,K-4),m+=14;for(B=0;B<K;++B)z(r,m+3*B,H[a[B]]);m+=3*K;for(var Z=[I,O],$=0;$<2;++$){var tt=Z[$];for(B=0;B<tt.length;++B){var nt=31&tt[B];z(r,m,Y[nt]),m+=H[nt],nt>15&&(z(r,m,tt[B]>>5&127),m+=tt[B]>>12)}}}else N=p,P=g,Q=y,R=w;for(B=0;B<u;++B){var rt=o[B];if(rt>255){A(r,m,N[(nt=rt>>18&31)+257]),m+=P[nt+257],nt>7&&(z(r,m,rt>>23&31),m+=e[nt]);var et=31&rt;A(r,m,Q[et]),m+=R[et],et>3&&(A(r,m,rt>>5&8191),m+=i[et])}else A(r,m,N[rt]),m+=P[rt]}return A(r,m,N[256]),m+P[256]},U=new r([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),F=new t(0),I=function(){for(var t=new Int32Array(256),n=0;n<256;++n){for(var r=n,e=9;--e;)r=(1&r&&-306674912)^r>>>1;t[n]=r}return t}(),S=function(){var t=1,n=0;return{p:function(r){for(var e=t,i=n,a=0|r.length,s=0;s!=a;){for(var o=Math.min(s+2655,a);s<o;++s)i+=e+=r[s];e=(65535&e)+15*(e>>16),i=(65535&i)+15*(i>>16)}t=e,n=i},d:function(){return(255&(t%=65521))<<24|(65280&t)<<8|(255&(n%=65521))<<8|n>>8}}},L=function(a,s,o,f,u){if(!u&&(u={l:1},s.dictionary)){var c=s.dictionary.subarray(-32768),v=new t(c.length+a.length);v.set(c),v.set(a,c.length),a=v,u.w=c.length}return function(a,s,o,f,u,c){var v=c.z||a.length,d=new t(f+v+5*(1+Math.ceil(v/7e3))+u),g=d.subarray(f,d.length-u),w=c.l,p=7&(c.r||0);if(s){p&&(g[0]=c.r>>3);for(var y=U[s-1],M=y>>13,E=8191&y,z=(1<<o)-1,A=c.p||new n(32768),_=c.h||new n(z+1),x=Math.ceil(o/3),D=2*x,T=function(t){return(a[t]^a[t+1]<<x^a[t+2]<<D)&z},F=new r(25e3),I=new n(288),S=new n(32),L=0,O=0,j=c.i||0,q=0,B=c.w||0,G=0;j+2<v;++j){var H=T(j),J=32767&j,K=_[H];if(A[J]=K,_[H]=J,B<=j){var N=v-j;if((L>7e3||q>24576)&&(N>423||!w)){p=C(a,g,0,F,I,S,O,q,G,j-G,p),q=L=O=0,G=j;for(var P=0;P<286;++P)I[P]=0;for(P=0;P<30;++P)S[P]=0}var Q=2,R=0,V=E,W=J-K&32767;if(N>2&&H==T(j-W))for(var X=Math.min(M,N)-1,Y=Math.min(32767,j),Z=Math.min(258,N);W<=Y&&--V&&J!=K;){if(a[j+Q]==a[j+Q-W]){for(var $=0;$<Z&&a[j+$]==a[j+$-W];++$);if($>Q){if(Q=$,R=W,$>X)break;var tt=Math.min(W,$-2),nt=0;for(P=0;P<tt;
26++P){var rt=j-W+P&32767,et=rt-A[rt]&32767;et>nt&&(nt=et,K=rt)}}}W+=(J=K)-(K=A[J])&32767}if(R){F[q++]=268435456|h[Q]<<18|l[R];var it=31&h[Q],at=31&l[R];O+=e[it]+i[at],++I[257+it],++S[at],B=j+Q,++L}else F[q++]=a[j],++I[a[j]]}}for(j=Math.max(j,B);j<v;++j)F[q++]=a[j],++I[a[j]];p=C(a,g,w,F,I,S,O,q,G,j-G,p),w||(c.r=7&p|g[p/8|0]<<3,p-=7,c.h=_,c.p=A,c.i=j,c.w=B)}else{for(j=c.w||0;j<v+w;j+=65535){var st=j+65535;st>=v&&(g[p/8|0]=w,st=v),p=k(g,p+1,a.subarray(j,st))}c.i=v}return b(d,0,f+m(p)+u)}(a,null==s.level?6:s.level,null==s.mem?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(a.length)))):12+s.mem,o,f,u)},O=function(t,n,r){for(;r;++n)t[n]=r,r>>>=8},j=function(){function n(n,r){if("function"==typeof n&&(r=n,n={}),this.ondata=r,this.o=n||{},this.s={l:0,i:32768,w:32768,z:32768},this.b=new t(98304),this.o.dictionary){var e=this.o.dictionary.subarray(-32768);this.b.set(e,32768-e.length),this.s.i=32768-e.length}}return n.prototype.p=function(t,n){this.ondata(L(t,this.o,0,0,this.s),n)},n.prototype.push=function(n,r){this.ondata||E(5),this.s.l&&E(4);var e=n.length+this.s.z;if(e>this.b.length){if(e>2*this.b.length-32768){var i=new t(-32768&e);i.set(this.b.subarray(0,this.s.z)),this.b=i}var a=this.b.length-this.s.z;a&&(this.b.set(n.subarray(0,a),this.s.z),this.s.z=this.b.length,this.p(this.b,!1)),this.b.set(this.b.subarray(-32768)),this.b.set(n.subarray(a),32768),this.s.z=n.length-a+32768,this.s.i=32766,this.s.w=32768}else this.b.set(n,this.s.z),this.s.z+=n.length;this.s.l=1&r,(this.s.z>this.s.w+8191||r)&&(this.p(this.b,r||!1),this.s.w=this.s.i,this.s.i-=2)},n}();function q(t,n){n||(n={});var r=function(){var t=-1;return{p:function(n){for(var r=t,e=0;e<n.length;++e)r=I[255&r^n[e]]^r>>>8;t=r},d:function(){return~t}}}(),e=t.length;r.p(t);var i,a=L(t,n,10+((i=n).filename?i.filename.length+1:0),8),s=a.length;return function(t,n){var r=n.filename;if(t[0]=31,t[1]=139,t[2]=8,t[8]=n.level<2?4:9==n.level?2:0,t[9]=3,0!=n.mtime&&O(t,4,Math.floor(new Date(n.mtime||Date.now())/1e3)),r){t[3]=8;for(var e=0;e<=r.length;++e)t[e+10]=r.charCodeAt(e)}}(a,n),O(a,s-8,r.d()),O(a,s-4,e),a}var B=function(){function t(t,n){this.c=S(),this.v=1,j.call(this,t,n)}return t.prototype.push=function(t,n){this.c.p(t),j.prototype.push.call(this,t,n)},t.prototype.p=function(t,n){var r=L(t,this.o,this.v&&(this.o.dictionary?6:2),n&&4,this.s);this.v&&(function(t,n){var r=n.level,e=0==r?0:r<6?1:9==r?3:2;if(t[0]=120,t[1]=e<<6|(n.dictionary&&32),t[1]|=31-(t[0]<<8|t[1])%31,n.dictionary){var i=S();i.p(n.dictionary),O(t,2,i.d())}}(r,this.o),this.v=0),n&&O(r,r.length-4,this.c.d()),this.ondata(r,n)},t}(),G="undefined"!=typeof TextEncoder&&new TextEncoder,H="undefined"!=typeof TextDecoder&&new TextDecoder;try{H.decode(F,{stream:!0})}catch(t){}var J=function(){function t(t){this.ondata=t}return t.prototype.push=function(t,n){this.ondata||E(5),this.d&&E(4),this.ondata(K(t),this.d=n||!1)},t}();function K(n,r){if(r){for(var e=new t(n.length),i=0;i<n.length;++i)e[i]=n.charCodeAt(i);return e}if(G)return G.encode(n);var a=n.length,s=new t(n.length+(n.length>>1)),o=0,f=function(t){s[o++]=t};for(i=0;i<a;++i){if(o+5>s.length){var h=new t(o+8+(a-i<<1));h.set(s),s=h}var l=n.charCodeAt(i);l<128||r?f(l):l<2048?(f(192|l>>6),f(128|63&l)):l>55295&&l<57344?(f(240|(l=65536+(1047552&l)|1023&n.charCodeAt(++i))>>18),f(128|l>>12&63),f(128|l>>6&63),f(128|63&l)):(f(224|l>>12),f(128|l>>6&63),f(128|63&l))}return b(s,0,o)}const N=new class{constructor(){this._init()}clear(){this._init()}addEvent(t){if(!t)throw new Error("Adding invalid event");const n=this._hasEvents?",":"";this.stream.push(n+t),this._hasEvents=!0}finish(){this.stream.push("]",!0);const t=function(t){let n=0;for(let r=0,e=t.length;r<e;r++)n+=t[r].length;const r=new Uint8Array(n);for(let n=0,e=0,i=t.length;n<i;n++){const i=t[n];r.set(i,e),e+=i.length}return r}(this._deflatedData);return this._init(),t}_init(){this._hasEvents=!1,this._deflatedData=[],this.deflate=new B,this.deflate.ondata=(t,n)=>{this._deflatedData.push(t)},this.stream=new J(((t,n)=>{this.deflate.push(t,n)})),this.stream.push("[")}},P={clear:()=>{N.clear()},addEvent:t=>N.addEvent(t),finish:()=>N.finish(),compress:t=>function(t){return q(K(t))}(t)};addEventListener("message",(function(t){const n=t.data.method,r=t.data.id,e=t.data.arg;if(n in P&&"function"==typeof P[n])try{const t=P[n](e);postMessage({id:r,method:n,success:!0,response:t})}catch(t){postMessage({id:r,method:n,success:!1,response:t.message}),console.error(t)}})),postMessage({id:void 0,method:"init",success:!0,response:void 0});';function Qy(){const e=new Blob([Zy]);return URL.createObjectURL(e)}function fe(e,t){q&&(h.info(e),t&&Vu(e))}function $t(e,t){q&&(h.info(e),t&&setTimeout(()=>{Vu(e)},0))}function Vu(e){Qe({category:"console",data:{logger:"replay"},level:"info",message:e},{level:"info"})}
26class Ei extends Error{constructor(){super(`Event buffer exceeded maximum size of ${hi}.`)}}class Ku{constructor(){this.events=[],this._totalSize=0,this.hasCheckout=!1}get hasEvents(){return this.events.length>0}get type(){return"sync"}destroy(){this.events=[]}async addEvent(t){const n=JSON.stringify(t).length;if(this._totalSize+=n,this._totalSize>hi)throw new Ei;this.events.push(t)}finish(){return new Promise(t=>{const n=this.events;this.clear(),t(JSON.stringify(n))})}clear(){this.events=[],this._totalSize=0,this.hasCheckout=!1}getEarliestTimestamp(){const t=this.events.map(n=>n.timestamp).sort()[0];return t?bi(t):null}}class eS{constructor(t){this._worker=t,this._id=0}ensureReady(){return this._ensureReadyPromise?this._ensureReadyPromise:(this._ensureReadyPromise=new Promise((t,n)=>{this._worker.addEventListener("message",({data:r})=>{r.success?t():n()},{once:!0}),this._worker.addEventListener("error",r=>{n(r)},{once:!0})}),this._ensureReadyPromise)}destroy(){fe("[Replay] Destroying compression worker"),this._worker.terminate()}postMessage(t,n){const r=this._getAndIncrementId();return new Promise((s,i)=>{const o=({data:a})=>{const c=a;if(c.method===t&&c.id===r){if(this._worker.removeEventListener("message",o),!c.success){q&&h.error("[Replay]",c.response),i(new Error("Error in compression worker"));return}s(c.response)}};this._worker.addEventListener("message",o),this._worker.postMessage({id:r,method:t,arg:n})})}_getAndIncrementId(){return this._id++}}class tS{constructor(t){this._worker=new eS(t),this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1}get hasEvents(){return!!this._earliestTimestamp}get type(){return"worker"}ensureReady(){return this._worker.ensureReady()}destroy(){this._worker.destroy()}addEvent(t){const n=bi(t.timestamp);(!this._earliestTimestamp||n<this._earliestTimestamp)&&(this._earliestTimestamp=n);const r=JSON.stringify(t);return this._totalSize+=r.length,this._totalSize>hi?Promise.reject(new Ei):this._sendEventToWorker(r)}finish(){return this._finishRequest()}clear(){this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this._worker.postMessage("clear").then(null,t=>{q&&h.warn('[Replay] 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 nS{constructor(t){this._fallback=new Ku,this._compression=new tS(t),this._used=this._fallback,this._ensureWorkerIsLoadedPromise=this._ensureWorkerIsLoaded()}get type(){return this._used.type}get hasEvents(){return this._used.hasEvents}get hasCheckout(){return this._used.hasCheckout}set hasCheckout(t){this._used.hasCheckout=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{fe("[Replay] Failed to load the compression worker, falling back to simple buffer");return}await this._switchToCompressionWorker()}async _switchToCompressionWorker(){const{events:t,hasCheckout:n}=this._fallback,r=[];for(const s of t)r.push(this._compression.addEvent(s));this._compression.hasCheckout=n,this._used=this._compression;try{await Promise.all(r)}catch(s){q&&h.warn("[Replay] Failed to add events when switching buffers.",s)}}}function rS({useCompression:e,workerUrl:t}){if(e&&window.Worker){const n=sS(t);if(n)return n}return fe("[Replay] Using simple buffer"),new Ku}function sS(e){try{const t=e||iS();if(!t)return;fe(`[Replay] Using compression worker${e?` from ${e}`:""}`);const n=new Worker(t);return new nS(n)}catch{fe("[Replay] Failed to create compression worker")}}function iS(){return typeof __SENTRY_EXCLUDE_REPLAY_WORKER__>"u"||!__SENTRY_EXCLUDE_REPLAY_WORKER__?Qy():""}function Ti(){try{return"sessionStorage"in V&&!!V.sessionStorage}catch{return!1}}function oS(e){aS(),e.session=void 0}function aS(){if(Ti())try{V.sessionStorage.removeItem(fi)}catch{}}function Xu(e){return e===void 0?!1:Math.random()<e}function Ju(e){const t=Date.now(),n=e.id||W(),r=e.started||t,s=e.lastActivity||t,i=e.segmentId||0,o=e.sampled,a=e.previousSessionId;return{id:n,started:r,lastActivity:s,segmentId:i,sampled:o,previousSessionId:a}}function vi(e){if(Ti())try{V.sessionStorage.setItem(fi,JSON.stringify(e))}catch{}}function cS(e,t){return Xu(e)?"session":t?"buffer":!1}function Wo({sessionSampleRate:e,allowBuffering:t,stickySession:n=!1},{previousSessionId:r}={}){const s=cS(e,t),i=Ju({sampled:s,previousSessionId:r});return n&&vi(i),i}function uS(e){if(!Ti())return null;try{const t=V.sessionStorage.getItem(fi);if(!t)return null;const n=JSON.parse(t);return $t("[Replay] Loading existing session",e),Ju(n)}catch{return null}}function $s(e,t,n=+new Date){return e===null||t===void 0||t<0?!0:t===0?!1:e+t<=n}function Zu(e,{maxReplayDuration:t,sessionIdleExpire:n,targetTime:r=Date.now()}){return $s(e.started,t,r)||$s(e.lastActivity,n,r)}function Qu(e,{sessionIdleExpire:t,maxReplayDuration:n}){return!(!Zu(e,{sessionIdleExpire:t,maxReplayDuration:n})||e.sampled==="buffer"&&e.segmentId===0)}function as({traceInternals:e,sessionIdleExpire:t,maxReplayDuration:n,previousSessionId:r},s){const i=s.stickySession&&uS(e);return i?Qu(i,{sessionIdleExpire:t,maxReplayDuration:n})?($t("[Replay] Session in sessionStorage is expired, creating new one..."),Wo(s,{previousSessionId:i.id})):i:($t("[Replay] Creating new session",e),Wo(s,{previousSessionId:r}))}function lS(e){return e.type===N.Custom}function Ii(e,t,n){return tl(e,t)?(el(e,t,n),!0):!1}function dS(e,t,n){return tl(e,t)?el(e,t,n):Promise.resolve(null)}async function el(e,t,n){if(!e.eventBuffer)return null;try{n&&e.recordingMode==="buffer"&&e.eventBuffer.clear(),n&&(e.eventBuffer.hasCheckout=!0);const r=e.getOptions(),s=fS(t,r.beforeAddRecordingEvent);return s?await e.eventBuffer.addEvent(s):void 0}catch(r){const s=r&&r instanceof Ei?"addEventSizeExceeded":"addEvent";q&&h.error(r),await e.stop({reason:s});const i=x();i&&i.recordDroppedEvent("internal_sdk_error","replay")}}
26function tl(e,t){if(!e.eventBuffer||e.isPaused()||!e.isEnabled())return!1;const n=bi(t.timestamp);return n+e.timeouts.sessionIdlePause<Date.now()?!1:n>e.getContext().initialTimestamp+e.getOptions().maxReplayDuration?(fe(`[Replay] Skipping event with timestamp ${n} because it is after maxReplayDuration`,e.getOptions()._experiments.traceInternals),!1):!0}function fS(e,t){try{if(typeof t=="function"&&lS(e))return t(e)}catch(n){return q&&h.error("[Replay] An error occured in the `beforeAddRecordingEvent` callback, skipping the event...",n),null}return e}function wi(e){return!e.type}function Fs(e){return e.type==="transaction"}function pS(e){return e.type==="replay_event"}function jo(e){return e.type==="feedback"}function nl(e){const t=gS();return(n,r)=>{if(!e.isEnabled()||!wi(n)&&!Fs(n))return;const s=r&&r.statusCode;if(!(t&&(!s||s<200||s>=300))){if(Fs(n)){hS(e,n);return}mS(e,n)}}}function hS(e,t){const n=e.getContext();t.contexts&&t.contexts.trace&&t.contexts.trace.trace_id&&n.traceIds.size<100&&n.traceIds.add(t.contexts.trace.trace_id)}function mS(e,t){const n=e.getContext();if(t.event_id&&n.errorIds.size<100&&n.errorIds.add(t.event_id),e.recordingMode!=="buffer"||!t.tags||!t.tags.replayId)return;const{beforeErrorSampling:r}=e.getOptions();typeof r=="function"&&!r(t)||setTimeout(()=>{e.sendBufferedReplayOrFlush()})}function gS(){const e=x();if(!e)return!1;const t=e.getTransport();return t&&t.send.__sentry__baseTransport__||!1}function _S(e){return t=>{!e.isEnabled()||!wi(t)||yS(e,t)}}function yS(e,t){const n=t.exception&&t.exception.values&&t.exception.values[0].value;if(typeof n=="string"&&(n.match(/reactjs\.org\/docs\/error-decoder\.html\?invariant=(418|419|422|423|425)/)||n.match(/(does not match server-rendered HTML|Hydration failed because)/i))){const r=Me({category:"replay.hydrate-error"});On(e,r)}}function SS(e,t){return e.type||!e.exception||!e.exception.values||!e.exception.values.length?!1:!!(t.originalException&&t.originalException.__rrweb__)}function bS(e,t){e.triggerUserActivity(),e.addUpdate(()=>t.timestamp?(e.throttledAddEvent({type:N.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 ES(e,t){return e.recordingMode!=="buffer"||t.message===pi||!t.exception||t.type?!1:Xu(e.getOptions().errorSampleRate)}function TS(e,t=!1){const n=t?nl(e):void 0;return Object.assign((r,s)=>e.isEnabled()?pS(r)?(delete r.breadcrumbs,r):!wi(r)&&!Fs(r)&&!jo(r)||!e.checkAndHandleExpiredSession()?r:jo(r)?(e.flush(),r.contexts.feedback.replay_id=e.getSessionId(),bS(e,r),r):SS(r,s)&&!e.getOptions()._experiments.captureExceptions?(q&&h.log("[Replay] Ignoring error from rrweb internals",r),null):((ES(e,r)||e.recordingMode==="session")&&(r.tags={...r.tags,replayId:e.getSessionId()}),n&&n(r,{statusCode:200}),r):r,{id:"Replay"})}function Br(e,t){return t.map(({type:n,start:r,end:s,name:i,data:o})=>{const a=e.throttledAddEvent({type:N.Custom,timestamp:r,data:{tag:"performanceSpan",payload:{op:n,description:i,startTimestamp:r,endTimestamp:s,data:o}}});return typeof a=="string"?Promise.resolve(null):a})}function vS(e){const{from:t,to:n}=e,r=Date.now()/1e3;return{type:"navigation.push",start:r,end:r,name:n,data:{previous:t}}}function IS(e){return t=>{if(!e.isEnabled())return;const n=vS(t);n!==null&&(e.getContext().urls.push(n.name),e.triggerUserActivity(),e.addUpdate(()=>(Br(e,[n]),!1)))}}function wS(e,t){return q&&e.getOptions()._experiments.traceInternals?!1:Mc(t,x())}function Hr(e,t){e.isEnabled()&&t!==null&&(wS(e,t.name)||e.addUpdate(()=>(Br(e,[t]),!0)))}function kS(e){const{startTimestamp:t,endTimestamp:n,fetchData:r,response:s}=e;if(!n)return null;const{method:i,url:o}=r;return{type:"resource.fetch",start:t/1e3,end:n/1e3,name:o,data:{method:i,statusCode:s?s.status:void 0}}}function CS(e){return t=>{if(!e.isEnabled())return;const n=kS(t);Hr(e,n)}}function RS(e){const{startTimestamp:t,endTimestamp:n,xhr:r}=e,s=r[Pe];if(!t||!n||!s)return null;const{method:i,url:o,status_code:a}=s;return o===void 0?null:{type:"resource.xhr",name:o,start:t/1e3,end:n/1e3,data:{method:i,statusCode:a}}}function xS(e){return t=>{if(!e.isEnabled())return;const n=RS(t);Hr(e,n)}}function Ur(e,t){if(e)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 n=ol(e);return t.encode(n).length}if(e instanceof Blob)return e.size;if(e instanceof ArrayBuffer)return e.byteLength}catch{}}function rl(e){if(!e)return;const t=parseInt(e,10);return isNaN(t)?void 0:t}function sl(e){try{if(typeof e=="string")return[e];if(e instanceof URLSearchParams)return[e.toString()];if(e instanceof FormData)return[ol(e)];if(!e)return[void 0]}catch{return q&&h.warn("[Replay] Failed to serialize body",e),[void 0,"BODY_PARSE_ERROR"]}return q&&h.info("[Replay] Skipping network body because of body type",e),[void 0,"UNPARSEABLE_BODY_TYPE"]}function Tr(e,t){if(!e)return{headers:{},size:void 0,_meta:{warnings:[t]}};const n={...e._meta},r=n.warnings||[];return n.warnings=[...r,t],e._meta=n,e}function il(e,t){if(!t)return null;const{startTimestamp:n,endTimestamp:r,url:s,method:i,statusCode:o,request:a,response:c}=t;return{type:e,start:n/1e3,end:r/1e3,name:s,data:ae({method:i,statusCode:o,request:a,response:c})}}function bn(e){return{headers:{},size:e,_meta:{warnings:["URL_SKIPPED"]}}}function Xe(e,t,n){if(!t&&Object.keys(e).length===0)return;if(!t)return{headers:e};if(!n)return{headers:e,size:t};const r={headers:e,size:t},{body:s,warnings:i}=MS(n);return r.body=s,i&&i.length>0&&(r._meta={warnings:i}),r}function Bs(e,t){return Object.keys(e).reduce((n,r)=>{const s=r.toLowerCase();return t.includes(s)&&e[r]&&(n[s]=e[r]),n},{})}function ol(e){return new URLSearchParams(e).toString()}function MS(e){if(!e||typeof e!="string")return{body:e};const t=e.length>Co,n=AS(e);if(t){const r=e.slice(0,Co);return n?{body:r,warnings:["MAYBE_JSON_TRUNCATED"]}:{body:`${r}…`,warnings:["TEXT_TRUNCATED"]}}if(n)try{return{body:JSON.parse(e)}}catch{}return{body:e}}function AS(e){const t=e[0],n=e[e.length-1];return t==="["&&n==="]"||t==="{"&&n==="}"}function vr(e,t){const n=OS(e);return Kt(n,t)}function OS(e,t=V.document.baseURI){if(e.startsWith("http://")||e.startsWith("https://")||e.startsWith(V.location.origin))return e;const n=new URL(e,t);if(n.origin!==new URL(t).origin)return e;const r=n.href;return!e.endsWith("/")&&r.endsWith("/")?r.slice(0,-1):r}async function NS(e,t,n){try{const r=await LS(e,t,n),s=il("resource.fetch",r);Hr(n.replay,s)}catch(r){q&&h.error("[Replay] Failed to capture fetch breadcrumb",r)}}function DS(e,t,n){const{input:r,response:s}=t,i=r?al(r):void 0,o=Ur(i,n.textEncoder),a=s?rl(s.headers.get("content-length")):void 0;o!==void 0&&(e.data.request_body_size=o),a!==void 0&&(e.data.response_body_size=a
26)}async function LS(e,t,n){const r=Date.now(),{startTimestamp:s=r,endTimestamp:i=r}=t,{url:o,method:a,status_code:c=0,request_body_size:u,response_body_size:l}=e.data,d=vr(o,n.networkDetailAllowUrls)&&!vr(o,n.networkDetailDenyUrls),f=d?PS(n,t.input,u):bn(u),p=await $S(d,n,t.response,l);return{startTimestamp:s,endTimestamp:i,url:o,method:a,statusCode:c,request:f,response:p}}function PS({networkCaptureBodies:e,networkRequestHeaders:t},n,r){const s=n?HS(n,t):{};if(!e)return Xe(s,r,void 0);const i=al(n),[o,a]=sl(i),c=Xe(s,r,o);return a?Tr(c,a):c}async function $S(e,{networkCaptureBodies:t,textEncoder:n,networkResponseHeaders:r},s,i){if(!e&&i!==void 0)return bn(i);const o=s?cl(s.headers,r):{};if(!s||!t&&i!==void 0)return Xe(o,i,void 0);const[a,c]=await BS(s),u=FS(a,{networkCaptureBodies:t,textEncoder:n,responseBodySize:i,captureDetails:e,headers:o});return c?Tr(u,c):u}function FS(e,{networkCaptureBodies:t,textEncoder:n,responseBodySize:r,captureDetails:s,headers:i}){try{const o=e&&e.length&&r===void 0?Ur(e,n):r;return s?t?Xe(i,o,e):Xe(i,o,void 0):bn(o)}catch(o){return q&&h.warn("[Replay] Failed to serialize response body",o),Xe(i,r,void 0)}}async function BS(e){const t=US(e);if(!t)return[void 0,"BODY_PARSE_ERROR"];try{return[await WS(t)]}catch(n){return q&&h.warn("[Replay] Failed to get text body from response",n),[void 0,"BODY_PARSE_ERROR"]}}function al(e=[]){if(!(e.length!==2||typeof e[1]!="object"))return e[1].body}function cl(e,t){const n={};return t.forEach(r=>{e.get(r)&&(n[r]=e.get(r))}),n}function HS(e,t){return e.length===1&&typeof e[0]!="string"?zo(e[0],t):e.length===2?zo(e[1],t):{}}function zo(e,t){if(!e)return{};const n=e.headers;return n?n instanceof Headers?cl(n,t):Array.isArray(n)?{}:Bs(n,t):{}}function US(e){try{return e.clone()}catch(t){q&&h.warn("[Replay] Failed to clone response body",t)}}function WS(e){return new Promise((t,n)=>{const r=setTimeout(()=>n(new Error("Timeout while trying to read response body")),500);jS(e).then(s=>t(s),s=>n(s)).finally(()=>clearTimeout(r))})}async function jS(e){return await e.text()}async function zS(e,t,n){try{const r=qS(e,t,n),s=il("resource.xhr",r);Hr(n.replay,s)}catch(r){q&&h.error("[Replay] Failed to capture xhr breadcrumb",r)}}function GS(e,t,n){const{xhr:r,input:s}=t;if(!r)return;const i=Ur(s,n.textEncoder),o=r.getResponseHeader("content-length")?rl(r.getResponseHeader("content-length")):XS(r.response,r.responseType,n.textEncoder);i!==void 0&&(e.data.request_body_size=i),o!==void 0&&(e.data.response_body_size=o)}function qS(e,t,n){const r=Date.now(),{startTimestamp:s=r,endTimestamp:i=r,input:o,xhr:a}=t,{url:c,method:u,status_code:l=0,request_body_size:d,response_body_size:f}=e.data;if(!c)return null;if(!a||!vr(c,n.networkDetailAllowUrls)||vr(c,n.networkDetailDenyUrls)){const I=bn(d),M=bn(f);return{startTimestamp:s,endTimestamp:i,url:c,method:u,statusCode:l,request:I,response:M}}const p=a[Pe],m=p?Bs(p.request_headers,n.networkRequestHeaders):{},_=Bs(YS(a),n.networkResponseHeaders),[S,g]=n.networkCaptureBodies?sl(o):[void 0],[y,b]=n.networkCaptureBodies?VS(a):[void 0],v=Xe(m,d,S),T=Xe(_,f,y);return{startTimestamp:s,endTimestamp:i,url:c,method:u,statusCode:l,request:g?Tr(v,g):v,response:b?Tr(T,b):T}}function YS(e){const t=e.getAllResponseHeaders();return t?t.split(`\r
27`).reduce((n,r)=>{const[s,i]=r.split(": ");return n[s.toLowerCase()]=i,n},{}):{}}function VS(e){const t=[];try{return[e.responseText]}catch(n){t.push(n)}try{return KS(e.response,e.responseType)}catch(n){t.push(n)}return q&&h.warn("[Replay] Failed to get xhr response body",...t),[void 0]}function KS(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{return q&&h.warn("[Replay] Failed to serialize body",e),[void 0,"BODY_PARSE_ERROR"]}return q&&h.info("[Replay] Skipping network body because of body type",e),[void 0,"UNPARSEABLE_BODY_TYPE"]}function XS(e,t,n){try{const r=t==="json"&&e&&typeof e=="object"?JSON.stringify(e):e;return Ur(r,n)}catch{return}}function JS(e){const t=x();try{const n=new TextEncoder,{networkDetailAllowUrls:r,networkDetailDenyUrls:s,networkCaptureBodies:i,networkRequestHeaders:o,networkResponseHeaders:a}=e.getOptions(),c={replay:e,textEncoder:n,networkDetailAllowUrls:r,networkDetailDenyUrls:s,networkCaptureBodies:i,networkRequestHeaders:o,networkResponseHeaders:a};t&&t.on?t.on("beforeAddBreadcrumb",(u,l)=>ZS(c,u,l)):(wr(CS(e)),kr(xS(e)))}catch{}}function ZS(e,t,n){if(t.data)try{QS(t)&&tb(n)&&(GS(t,n,e),zS(t,n,e)),eb(t)&&nb(n)&&(DS(t,n,e),NS(t,n,e))}catch{q&&h.warn("Error when enriching network breadcrumb")}}function QS(e){return e.category==="xhr"}function eb(e){return e.category==="fetch"}function tb(e){return e&&e.xhr}function nb(e){return e&&e.response}let Go=null;function rb(e){return!!e.category}const sb=e=>t=>{if(!e.isEnabled())return;const n=ib(t);n&&On(e,n)};function ib(e){const t=e.getLastBreadcrumb&&e.getLastBreadcrumb();return Go===t||!t||(Go=t,!rb(t)||["fetch","xhr","sentry.event","sentry.transaction"].includes(t.category)||t.category.startsWith("ui."))?null:t.category==="console"?ob(t):Me(t)}function ob(e){const t=e.data&&e.data.arguments;if(!Array.isArray(t)||t.length===0)return Me(e);let n=!1;const r=t.map(s=>{if(!s)return s;if(typeof s=="string")return s.length>zn?(n=!0,`${s.slice(0,zn)}…`):s;if(typeof s=="object")try{const i=Te(s,7);return JSON.stringify(i).length>zn?(n=!0,`${JSON.stringify(i,null,2).slice(0,zn)}…`):i}catch{}return s});return Me({...e,data:{...e.data,arguments:r,...n?{_meta:{warnings:["CONSOLE_ARG_TRUNCATED"]}}:{}}})}function ab(e){const t=ne(),n=x();t.addScopeListener(sb(e)),$a(Fy(e)),vn(IS(e)),JS(e);const r=TS(e,!qo(n));
27n&&n.addEventProcessor?n.addEventProcessor(r):wp(r),qo(n)&&(n.on("beforeSendEvent",_S(e)),n.on("afterSendEvent",nl(e)),n.on("createDsc",s=>{const i=e.getSessionId();i&&e.isEnabled()&&e.recordingMode==="session"&&e.checkAndHandleExpiredSession()&&(s.replay_id=i)}),n.on("startTransaction",s=>{e.lastTransaction=s}),n.on("finishTransaction",s=>{e.lastTransaction=s}),n.on("beforeSendFeedback",(s,i)=>{const o=e.getSessionId();i&&i.includeReplay&&e.isEnabled()&&o&&s.contexts&&s.contexts.feedback&&(s.contexts.feedback.replay_id=o)}))}function qo(e){return!!(e&&e.on)}async function cb(e){try{return Promise.all(Br(e,[ub(V.performance.memory)]))}catch{return[]}}function ub(e){const{jsHeapSizeLimit:t,totalJSHeapSize:n,usedJSHeapSize:r}=e,s=Date.now()/1e3;return{type:"memory",name:"memory",start:s,end:s,data:{memory:{jsHeapSizeLimit:t,totalJSHeapSize:n,usedJSHeapSize:r}}}}function lb(e,t,n){let r,s,i;const o=n&&n.maxWait?Math.max(n.maxWait,t):0;function a(){return c(),r=e(),r}function c(){s!==void 0&&clearTimeout(s),i!==void 0&&clearTimeout(i),s=i=void 0}function u(){return s!==void 0||i!==void 0?a():r}function l(){return s&&clearTimeout(s),s=setTimeout(a,t),o&&i===void 0&&(i=setTimeout(a,o)),r}return l.cancel=c,l.flush=u,l}function db(e){let t=!1;return(n,r)=>{if(!e.checkAndHandleExpiredSession()){q&&h.warn("[Replay] Received replay event after session expired.");return}const s=r||!t;t=!0,e.clickDetector&&Ny(e.clickDetector,n),e.addUpdate(()=>{if(e.recordingMode==="buffer"&&s&&e.setInitialState(),!Ii(e,n,s))return!0;if(!s)return!1;if(pb(e,s),e.session&&e.session.previousSessionId)return!0;if(e.recordingMode==="buffer"&&e.session&&e.eventBuffer){const i=e.eventBuffer.getEarliestTimestamp();i&&(fe(`[Replay] Updating session start time to earliest event in buffer to ${new Date(i)}`,e.getOptions()._experiments.traceInternals),e.session.started=i,e.getOptions().stickySession&&vi(e.session))}return e.recordingMode==="session"&&e.flush(),!0})}}function fb(e){const t=e.getOptions();return{type:N.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 pb(e,t){!t||!e.session||e.session.segmentId!==0||Ii(e,fb(e),!1)}function hb(e,t,n,r){return We(Xa(e,Qs(e),r,n),[[{type:"replay_event"},e],[{type:"replay_recording",length:typeof t=="string"?new TextEncoder().encode(t).length:t.length},t]])}function mb({recordingData:e,headers:t}){let n;const r=`${JSON.stringify(t)}
28`;if(typeof e=="string")n=`${r}${e}`;else{const i=new TextEncoder().encode(r);n=new Uint8Array(i.length+e.length),n.set(i),n.set(e,i.length)}return n}async function gb({client:e,scope:t,replayId:n,event:r}){const s=typeof e._integrations=="object"&&e._integrations!==null&&!Array.isArray(e._integrations)?Object.keys(e._integrations):void 0,i={event_id:n,integrations:s};e.emit&&e.emit("preprocessEvent",r,i);const o=await ri(e.getOptions(),r,i,t,e,Oe());if(!o)return null;o.platform=o.platform||"javascript";const a=e.getSdkMetadata&&e.getSdkMetadata(),{name:c,version:u}=a&&a.sdk||{};return o.sdk={...o.sdk,name:c||"sentry.javascript.unknown",version:u||"0.0.0"},o}async function _b({recordingData:e,replayId:t,segmentId:n,eventContext:r,timestamp:s,session:i}){const o=mb({recordingData:e,headers:{segment_id:n}}),{urls:a,errorIds:c,traceIds:u,initialTimestamp:l}=r,d=x(),f=ne(),p=d&&d.getTransport(),m=d&&d.getDsn();if(!d||!p||!m||!i.sampled)return;const _={type:t_,replay_start_timestamp:l/1e3,timestamp:s/1e3,error_ids:c,trace_ids:u,urls:a,replay_id:t,segment_id:n,replay_type:i.sampled},S=await gb({scope:f,client:d,replayId:t,event:_});if(!S){d.recordDroppedEvent("event_processor","replay",_),fe("An event processor returned `null`, will not send event.");return}delete S.sdkProcessingMetadata;const g=hb(S,o,m,d.getOptions().tunnel);let y;try{y=await p.send(g)}catch(v){const T=new Error(pi);try{T.cause=v}catch{}throw T}if(!y)return y;if(typeof y.statusCode=="number"&&(y.statusCode<200||y.statusCode>=300))throw new ul(y.statusCode);const b=Qa({},y);if(Za(b,"replay"))throw new ll(b);return y}
28class ul extends Error{constructor(t){super(`Transport returned status code ${t}`)}}class ll extends Error{constructor(t){super("Rate limit hit"),this.rateLimits=t}}async function dl(e,t={count:0,interval:a_}){const{recordingData:n,options:r}=e;if(n.length)try{return await _b(e),!0}catch(s){if(s instanceof ul||s instanceof ll)throw s;if(Af("Replays",{_retryCount:t.count}),q&&r._experiments&&r._experiments.captureExceptions&&Jt(s),t.count>=c_){const i=new Error(`${pi} - max retries exceeded`);try{i.cause=s}catch{}throw i}return t.interval*=++t.count,new Promise((i,o)=>{setTimeout(async()=>{try{await dl(e,t),i(!0)}catch(a){o(a)}},t.interval)})}}const fl="__THROTTLED",yb="__SKIPPED";function Sb(e,t,n){const r=new Map,s=a=>{const c=a-n;r.forEach((u,l)=>{l<c&&r.delete(l)})},i=()=>[...r.values()].reduce((a,c)=>a+c,0);let o=!1;return(...a)=>{const c=Math.floor(Date.now()/1e3);if(s(c),i()>=t){const l=o;return o=!0,l?yb:fl}o=!1;const u=r.get(c)||0;return r.set(c,u+1),e(...a)}}class Ye{constructor({options:t,recordingOptions:n}){Ye.prototype.__init.call(this),Ye.prototype.__init2.call(this),Ye.prototype.__init3.call(this),Ye.prototype.__init4.call(this),Ye.prototype.__init5.call(this),Ye.prototype.__init6.call(this),this.eventBuffer=null,this.performanceEntries=[],this.replayPerformanceEntries=[],this.recordingMode="session",this.timeouts={sessionIdlePause:n_,sessionIdleExpire:r_},this._lastActivity=Date.now(),this._isEnabled=!1,this._isPaused=!1,this._hasInitializedCoreListeners=!1,this._context={errorIds:new Set,traceIds:new Set,urls:[],initialTimestamp:Date.now(),initialUrl:""},this._recordingOptions=n,this._options=t,this._debouncedFlush=lb(()=>this._flush(),this._options.flushMinDelay,{maxWait:this._options.flushMaxDelay}),this._throttledAddEvent=Sb((o,a)=>dS(this,o,a),300,5);const{slowClickTimeout:r,slowClickIgnoreSelectors:s}=this.getOptions(),i=r?{threshold:Math.min(u_,r),timeout:r,scrollTimeout:l_,ignoreSelector:s?s.join(","):""}:void 0;i&&(this.clickDetector=new xy(this,i))}getContext(){return this._context}isEnabled(){return this._isEnabled}isPaused(){return this._isPaused}isRecordingCanvas(){return!!this._canvas}getOptions(){return this._options}initializeSampling(t){const{errorSampleRate:n,sessionSampleRate:r}=this._options;if(!(n<=0&&r<=0)){if(this._initializeSessionForSampling(t),!this.session){this._handleException(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",$t(`[Replay] Starting replay in ${this.recordingMode} mode`,this._options._experiments.traceInternals),this._initializeRecording())}}start(){if(this._isEnabled&&this.recordingMode==="session")throw new Error("Replay recording is already in progress");if(this._isEnabled&&this.recordingMode==="buffer")throw new Error("Replay buffering is in progress, call `flush()` to save the replay");$t("[Replay] Starting replay in session mode",this._options._experiments.traceInternals),this._updateUserActivity();const t=as({maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire,traceInternals:this._options._experiments.traceInternals},{stickySession:this._options.stickySession,sessionSampleRate:1,allowBuffering:!1});this.session=t,this._initializeRecording()}startBuffering(){if(this._isEnabled)throw new Error("Replay recording is already in progress");$t("[Replay] Starting replay in buffer mode",this._options._experiments.traceInternals);const t=as({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration,traceInternals:this._options._experiments.traceInternals},{stickySession:this._options.stickySession,sessionSampleRate:0,allowBuffering:!0});this.session=t,this.recordingMode="buffer",this._initializeRecording()}startRecording(){try{const t=this._canvas;this._stopRecording=Ke({...this._recordingOptions,...this.recordingMode==="buffer"&&{checkoutEveryNms:o_},emit:db(this),onMutation:this._onMutationHandler,...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:n}={}){if(this._isEnabled){this._isEnabled=!1;try{fe(`[Replay] Stopping Replay${n?` triggered by ${n}`:""}`,this._options._experiments.traceInternals),this._removeListeners(),this.stopRecording(),this._debouncedFlush.cancel(),t&&await this._flush({force:!0}),this.eventBuffer&&this.eventBuffer.destroy(),this.eventBuffer=null,oS(this)}catch(r){this._handleException(r)}}}pause(){this._isPaused||(this._isPaused=!0,this.stopRecording(),fe("[Replay] Pausing replay",this._options._experiments.traceInternals))}resume(){!this._isPaused||!this._checkSession()||(this._isPaused=!1,this.startRecording(),fe("[Replay] Resuming replay",this._options._experiments.traceInternals))}async sendBufferedReplayOrFlush({continueRecording:t=!0}={}){if(this.recordingMode==="session")return this.flushImmediate();const n=Date.now();
28fe("[Replay] Converting buffer to session",this._options._experiments.traceInternals),await this.flushImmediate();const r=this.stopRecording();!t||!r||this.recordingMode!=="session"&&(this.recordingMode="session",this.session&&(this._updateUserActivity(n),this._updateSessionActivity(n),this._maybeSaveSession()),this.startRecording())}addUpdate(t){const n=t();this.recordingMode!=="buffer"&&n!==!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(){return this.session&&this.session.id}checkAndHandleExpiredSession(){if(this._lastActivity&&$s(this._lastActivity,this.timeouts.sessionIdlePause)&&this.session&&this.session.sampled==="session"){this.pause();return}return!!this._checkSession()}setInitialState(){const t=`${V.location.pathname}${V.location.hash}${V.location.search}`,n=`${V.location.origin}${t}`;this.performanceEntries=[],this.replayPerformanceEntries=[],this._clearContext(),this._context.initialUrl=n,this._context.initialTimestamp=Date.now(),this._context.urls.push(n)}throttledAddEvent(t,n){const r=this._throttledAddEvent(t,n);if(r===fl){const s=Me({category:"replay.throttled"});this.addUpdate(()=>!Ii(this,{type:vy,timestamp:s.timestamp||0,data:{tag:"breadcrumb",payload:s,metric:!0}}))}return r}getCurrentRoute(){const t=this.lastTransaction||ne().getTransaction(),r=(t&&j(t).data||{})[le];if(!(!t||!r||!["route","custom"].includes(r)))return j(t).description}_initializeRecording(){this.setInitialState(),this._updateSessionActivity(),this.eventBuffer=rS({useCompression:this._options.useCompression,workerUrl:this._options.workerUrl}),this._removeListeners(),this._addListeners(),this._isEnabled=!0,this._isPaused=!1,this.startRecording()}_handleException(t){q&&h.error("[Replay]",t),q&&this._options._experiments&&this._options._experiments.captureExceptions&&Jt(t)}_initializeSessionForSampling(t){const n=this._options.errorSampleRate>0,r=as({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration,traceInternals:this._options._experiments.traceInternals,previousSessionId:t},{stickySession:this._options.stickySession,sessionSampleRate:this._options.sessionSampleRate,allowBuffering:n});this.session=r}_checkSession(){if(!this.session)return!1;const t=this.session;return Qu(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{V.document.addEventListener("visibilitychange",this._handleVisibilityChange),V.addEventListener("blur",this._handleWindowBlur),V.addEventListener("focus",this._handleWindowFocus),V.addEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.addListeners(),this._hasInitializedCoreListeners||(ab(this),this._hasInitializedCoreListeners=!0)}catch(t){this._handleException(t)}this._performanceCleanupCallback=Jy(this)}_removeListeners(){try{V.document.removeEventListener("visibilitychange",this._handleVisibilityChange),V.removeEventListener("blur",this._handleWindowBlur),V.removeEventListener("focus",this._handleWindowFocus),V.removeEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.removeListeners(),this._performanceCleanupCallback&&this._performanceCleanupCallback()}catch(t){this._handleException(t)}}__init(){this._handleVisibilityChange=()=>{V.document.visibilityState==="visible"?this._doChangeToForegroundTasks():this._doChangeToBackgroundTasks()}}__init2(){this._handleWindowBlur=()=>{const t=Me({category:"ui.blur"});
28this._doChangeToBackgroundTasks(t)}}__init3(){this._handleWindowFocus=()=>{const t=Me({category:"ui.focus"});this._doChangeToForegroundTasks(t)}}__init4(){this._handleKeyboardEvent=t=>{Wy(this,t)}}_doChangeToBackgroundTasks(t){!this.session||Zu(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()){fe("[Replay] 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:N.Custom,timestamp:t.timestamp||0,data:{tag:"breadcrumb",payload:t}})})}_addPerformanceEntries(){const t=Gy(this.performanceEntries).concat(this.replayPerformanceEntries);return this.performanceEntries=[],this.replayPerformanceEntries=[],Promise.all(Br(this,t))}_clearContext(){this._context.errorIds.clear(),this._context.traceIds.clear(),this._context.urls=[]}_updateInitialTimestampFromEventBuffer(){const{session:t,eventBuffer:n}=this;if(!t||!n||t.segmentId)return;const r=n.getEarliestTimestamp();r&&r<this._context.initialTimestamp&&(this._context.initialTimestamp=r)}_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(){const t=this.getSessionId();if(!this.session||!this.eventBuffer||!t){q&&h.error("[Replay] No session or eventBuffer found to flush.");return}if(await this._addPerformanceEntries(),!(!this.eventBuffer||!this.eventBuffer.hasEvents)&&(await cb(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 r=this._popEventContext(),s=this.session.segmentId++;this._maybeSaveSession();const i=await this.eventBuffer.finish();await dl({replayId:t,recordingData:i,segmentId:s,eventContext:r,session:this.session,options:this.getOptions(),timestamp:n})}catch(n){this._handleException(n),this.stop({reason:"sendReplay"});const r=x();r&&r.recordDroppedEvent("send_error","replay")}}__init5(){this._flush=async({force:t=!1}={})=>{if(!this._isEnabled&&!t)return;if(!this.checkAndHandleExpiredSession()){q&&h.error("[Replay] Attempting to finish replay event after session expired.");return}if(!this.session)return;const n=this.session.started,s=Date.now()-n;this._debouncedFlush.cancel();const i=s<this._options.minReplayDuration,o=s>this._options.maxReplayDuration+5e3;if(i||o){fe(`[Replay] Session duration (${Math.floor(s/1e3)}s) is too ${i?"short":"long"}, not sending replay.`,this._options._experiments.traceInternals),i&&this._debouncedFlush();return}const a=this.eventBuffer;if(a&&this.session.segmentId===0&&!a.hasCheckout&&fe("[Replay] Flushing initial segment without checkout.",this._options._experiments.traceInternals),!this._flushLock){this._flushLock=this._runFlush(),await this._flushLock,this._flushLock=void 0;return}try{await this._flushLock}catch(c){q&&h.error(c)}finally{this._debouncedFlush()}}}_maybeSaveSession(){this.session&&this._options.stickySession&&vi(this.session)}__init6(){this._onMutationHandler=t=>{const n=t.length,r=this._options.mutationLimit,s=this._options.mutationBreadcrumbLimit,i=r&&n>r;if(n>s||i){const o=Me({category:"replay.mutations",data:{count:n,limit:i}});this._createCustomBreadcrumb(o)}return i?(this.stop({reason:"mutationLimit",forceFlush:this.recordingMode==="session"}),!1):!0}}}function on(e,t,n,r){const s=typeof r=="string"?r.split(","):[],i=[...e,...s,...t];return typeof n<"u"&&(typeof n=="string"&&i.push(`.${n}`),we(()=>{console.warn("[Replay] You are using a deprecated configuration item for privacy. Read the documentation on how to use the new privacy configuration.")})),i.join(",")}function bb({mask:e,unmask:t,block:n,unblock:r,ignore:s,blockClass:i,blockSelector:o,maskTextClass:a,maskTextSelector:c,ignoreClass:u}){const l=['base[href="/"]'],d=on(e,[".sentry-mask","[data-sentry-mask]"],a,c),f=on(t,[".sentry-unmask","[data-sentry-unmask]"]),p={maskTextSelector:d,unmaskTextSelector:f,blockSelector:on(n,[".sentry-block","[data-sentry-block]",...l],i,o),unblockSelector:on(r,[".sentry-unblock","[data-sentry-unblock]"]),ignoreSelector:on(s,[".sentry-ignore","[data-sentry-ignore]",'
28input[type="file"]'],u)};return i instanceof RegExp&&(p.blockClass=i),a instanceof RegExp&&(p.maskTextClass=a),p}function Eb({el:e,key:t,maskAttributes:n,maskAllText:r,privacyOptions:s,value:i}){return!r||s.unmaskTextSelector&&e.matches(s.unmaskTextSelector)?i:n.includes(t)||t==="value"&&e.tagName==="INPUT"&&["submit","button"].includes(e.getAttribute("type")||"")?i.replace(/[\S]/g,"*"):i}const Yo='img,image,svg,video,object,picture,embed,map,audio,link[rel="icon"],link[rel="apple-touch-icon"]',Tb=["content-length","content-type","accept"];let Vo=!1;const yv=(e=>new Wr(e));class Wr{static __initStatic(){this.id="Replay"}constructor({flushMinDelay:t=s_,flushMaxDelay:n=i_,minReplayDuration:r=d_,maxReplayDuration:s=Ro,stickySession:i=!0,useCompression:o=!0,workerUrl:a,_experiments:c={},sessionSampleRate:u,errorSampleRate:l,maskAllText:d=!0,maskAllInputs:f=!0,blockAllMedia:p=!0,mutationBreadcrumbLimit:m=750,mutationLimit:_=1e4,slowClickTimeout:S=7e3,slowClickIgnoreSelectors:g=[],networkDetailAllowUrls:y=[],networkDetailDenyUrls:b=[],networkCaptureBodies:v=!0,networkRequestHeaders:T=[],networkResponseHeaders:I=[],mask:M=[],maskAttributes:O=["title","placeholder"],unmask:w=[],block:R=[],unblock:L=[],ignore:K=[],maskFn:re,beforeAddRecordingEvent:ce,beforeErrorSampling:me,blockClass:G,blockSelector:ye,maskInputOptions:te,maskTextClass:he,maskTextSelector:Se,ignoreClass:Gr}={}){this.name=Wr.id;const bt=bb({mask:M,unmask:w,block:R,unblock:L,ignore:K,blockClass:G,blockSelector:ye,maskTextClass:he,maskTextSelector:Se,ignoreClass:Gr});if(this._recordingOptions={maskAllInputs:f,maskAllText:d,maskInputOptions:{...te||{},password:!0},maskTextFn:re,maskInputFn:re,maskAttributeFn:(je,Et,nn)=>Eb({maskAttributes:O,maskAllText:d,privacyOptions:bt,key:je,value:Et,el:nn}),...bt,slimDOMOptions:"all",inlineStylesheet:!0,inlineImages:!1,collectFonts:!0,errorHandler:je=>{try{je.__rrweb__=!0}catch{}}},this._initialOptions={flushMinDelay:t,flushMaxDelay:n,minReplayDuration:Math.min(r,f_),maxReplayDuration:Math.min(s,Ro),stickySession:i,sessionSampleRate:u,errorSampleRate:l,useCompression:o,workerUrl:a,blockAllMedia:p,maskAllInputs:f,maskAllText:d,mutationBreadcrumbLimit:m,mutationLimit:_,slowClickTimeout:S,slowClickIgnoreSelectors:g,networkDetailAllowUrls:y,networkDetailDenyUrls:b,networkCaptureBodies:v,networkRequestHeaders:Ko(T),networkResponseHeaders:Ko(I),beforeAddRecordingEvent:ce,beforeErrorSampling:me,_experiments:c},typeof u=="number"&&(console.warn(`[Replay] You are passing \`sessionSampleRate\` to the Replay integration.
29This option is deprecated and will be removed soon.
30Instead, configure \`replaysSessionSampleRate\` directly in the SDK init options, e.g.:
31Sentry.init({ replaysSessionSampleRate: ${u} })`),this._initialOptions.sessionSampleRate=u),typeof l=="number"&&(console.warn(`[Replay] You are passing \`errorSampleRate\` to the Replay integration.
32This option is deprecated and will be removed soon.
33Instead, configure \`replaysOnErrorSampleRate\` directly in the SDK init options, e.g.:
34Sentry.init({ replaysOnErrorSampleRate: ${l} })`),this._initialOptions.errorSampleRate=l),this._initialOptions.blockAllMedia&&(this._recordingOptions.blockSelector=this._recordingOptions.blockSelector?`${this._recordingOptions.blockSelector},${Yo}`:Yo),this._isInitialized&&bs())throw new Error("Multiple Sentry Session Replay instances are not supported");this._isInitialized=!0}get _isInitialized(){return Vo}set _isInitialized(t){Vo=t}setupOnce(){bs()&&(this._setup(),setTimeout(()=>this._initialize()))}start(){this._replay&&this._replay.start()}startBuffering(){this._replay&&this._replay.startBuffering()}stop(){return this._replay?this._replay.stop({forceFlush:this._replay.recordingMode==="session"}):Promise.resolve()}flush(t){return!this._replay||!this._replay.isEnabled()?Promise.resolve():this._replay.sendBufferedReplayOrFlush(t)}getReplayId(){if(!(!this._replay||!this._replay.isEnabled()))return this._replay.getSessionId()}_initialize(){this._replay&&(this._maybeLoadFromReplayCanvasIntegration(),this._replay.initializeSampling())}_setup(){const t=vb(this._initialOptions);this._replay=new Ye({options:t,recordingOptions:this._recordingOptions})}_maybeLoadFromReplayCanvasIntegration(){try{const n=x().getIntegrationByName("ReplayCanvas");if(!n)return;this._replay._canvas=n.getOptions()}catch{}}}Wr.__initStatic();function vb(e){const t=x(),n=t&&t.getOptions(),r={sessionSampleRate:0,errorSampleRate:0,...ae(e)};return n?(e.sessionSampleRate==null&&e.errorSampleRate==null&&n.replaysSessionSampleRate==null&&n.replaysOnErrorSampleRate==null&&we(()=>{console.warn("Replay is disabled because neither `replaysSessionSampleRate` nor `replaysOnErrorSampleRate` are set.")}),typeof n.replaysSessionSampleRate=="number"&&(r.sessionSampleRate=n.replaysSessionSampleRate),typeof n.replaysOnErrorSampleRate=="number"&&(r.errorSampleRate=n.replaysOnErrorSampleRate),r):(we(()=>{console.warn("SDK client is not available.")}),r)}function Ko(e){return[...Tb,...e.map(t=>t.toLowerCase())]}function Sv(){const e=x();return e&&e.getIntegrationByName&&e.getIntegrationByName("Replay")}var Xo;(function(e){e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment"})(Xo||(Xo={}));function Ib(e,t){for(let n=e.classList.length;n--;){const r=e.classList[n];if(t.test(r))return!0}return!1}function Hs(e,t,n=1/0,r=0){return!e||e.nodeType!==e.ELEMENT_NODE||r>n?-1:t(e)?r:Hs(e.parentNode,t,n,r+1)}function Jo(e,t){return n=>{const r=n;if(r===null)return!1;try{if(e){if(typeof e=="string"){if(r.matches(`.${e}`))return!0}else if(Ib(r,e))return!0}return!!(t&&r.matches(t))}catch{return!1}}}const Ct=`Please stop import mirror directly. Instead of that,\r
35now you can use replayer.getMirror() to access the mirror instance of a replayer,\r
36or you can use record.mirror to access the mirror instance during recording.`;let Zo={map:{},getId(){return console.error(Ct),-1},getNode(){return console.error(Ct),null},removeNodeFromMap(){console.error(Ct)},has(){return console.error(Ct),!1},reset(){console.error(Ct)}};typeof window<"u"&&window.Proxy&&window.Reflect&&(Zo=new Proxy(Zo,{get(e,t,n){return t==="map"&&console.error(Ct),Reflect.get(e,t,n)}}));function ki(e,t,n,r,s=window){const i=s.Object.getOwnPropertyDescriptor(e,t);return s.Object.defineProperty(e,t,r?n:{set(o){hl(()=>{n.set.call(this,o)},0),i&&i.set&&i.set.call(this,o)}}),()=>ki(e,t,i||{},!0)}function Ci(e,t,n){try{if(!(t in e))return()=>{};const r=e[t],s=n(r);return typeof s=="function"&&(s.prototype=s.prototype||{},Object.defineProperties(s,{__rrweb_original__:{enumerable:!1,value:r}})),e[t]=s,()=>{e[t]=r}}catch{return()=>{}}}/[1-9][0-9]{12}/.test(Date.now().toString());function wb(e){return e?e.nodeType===e.ELEMENT_NODE?e:e.parentElement:null}function jr(e,t,n,r,s){if(!e)return!1;const i=wb(e);if(!i)return!1;const o=Jo(t,n),a=Hs(i,o);let c=-1;return a<0?!1:(r&&(c=Hs(i,Jo(null,r))),a>-1&&c<0?!0:a<c)}const Qo={};function pl(e){const t=Qo[e];if(t)return t;const n=window.document;let r=window[e];if(n&&typeof n.createElement=="function")try{const s=n.createElement("iframe");s.hidden=!0,n.head.appendChild(s);const i=s.contentWindow;i&&i[e]&&(r=i[e]),n.head.removeChild(s)}catch{}return Qo[e]=r.bind(window)}function it(...e){return pl("requestAnimationFrame")(...e)}function hl(...e){return pl("setTimeout")(...e)}var qt=(e=>(e[e["2D"]=0]="2D",e[e.WebGL=1]="WebGL",e[e.WebGL2=2]="WebGL2",e))(qt||{});let Qn;function kb(e){Qn=e}const ea=e=>Qn?((...n)=>{try{return e(...n)}catch(r){if(Qn&&Qn(r)===!0)return()=>{};throw r}}):e;var Nt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Cb=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var Yn=0;Yn<Nt.length;Yn++)Cb[Nt.charCodeAt(Yn)]=Yn;var Rb=function(e){var t=new Uint8Array(e),n,r=t.length,s="";for(n=0;n<r;n+=3)s+=Nt[t[n]>>2],s+=Nt[(t[n]&3)<<4|t[n+1]>>4],s+=Nt[(t[n+1]&15)<<2|t[n+2]>>6],s+=Nt[t[n+2]&63];return r%3===2?s=s.substring(0,s.length-1)+"=":r%3===1&&(s=s.substring(0,s.length-2)+"=="),s};const ta=new Map;function xb(e,t){let n=ta.get(e);return n||(n=new Map,ta.set(e,n)),n.has(t)||n.set(t,[]),n.get(t)}const ml=(e,t,n)=>{if(!e||!(_l(e,t)||typeof e=="object"))return;const r=e.constructor.name,s=xb(n,r);let i=s.indexOf(e);return i===-1&&(i=s.length,s.push(e)),i};function er(e,t,n){if(e instanceof Array)return e.map(r=>er(r,t,n));if(e===null)return e;if(e instanceof Float32Array||e instanceof Float64Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Uint8Array||e instanceof Uint16Array||e instanceof Int16Array||e instanceof Int8Array||e instanceof Uint8ClampedArray)return{rr_type:e.constructor.name,args:[Object.values(e)]};if(e instanceof ArrayBuffer){const r=e.constructor.name,s=Rb(e);return{rr_type:r,base64:s}}else{if(e instanceof DataView)return{rr_type:e.constructor.name,args:[er(e.buffer,t,n),e.byteOffset,e.byteLength]};if(e instanceof HTMLImageElement){const r=e.constructor.name,{src:s}=e;return{rr_type:r,src:s}}else if(e instanceof HTMLCanvasElement){const r="HTMLImageElement",s=e.toDataURL();return{rr_type:r,src:s}}else{if(e instanceof ImageData)return{rr_type:e.constructor.name,args:[er(e.data,t,n),e.width,e.height]};if(_l(e,t)||typeof e=="object"){const r=e.constructor.name,s=ml(e,t,n);return{rr_type:r,index:s}}}}return e}const gl=(e,t,n)=>e.map(r=>er(r,t,n)),_l=(e,t)=>!!["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"].filter(s=>typeof t[s]=="function").find(s=>e instanceof t[s]);function Mb(e,t,n,r,s){const i=[],o=Object.getOwnPropertyNames(t.CanvasRenderingContext2D.prototype);for(const a of o)try{if(typeof t.CanvasRenderingContext2D.prototype[a]!="function")continue;const c=Ci(t.CanvasRenderingContext2D.prototype,a,function(u){return function(...l){return jr(this.canvas,n,r,s,!0)||hl(()=>{const d=gl(l,t,this);e(this.canvas,{type:qt["2D"],property:a,args:d})}
36,0),u.apply(this,l)}});i.push(c)}catch{const u=ki(t.CanvasRenderingContext2D.prototype,a,{set(l){e(this.canvas,{type:qt["2D"],property:a,args:[l],setter:!0})}});i.push(u)}return()=>{i.forEach(a=>a())}}function Ab(e){return e==="experimental-webgl"?"webgl":e}function na(e,t,n,r,s){const i=[];try{const o=Ci(e.HTMLCanvasElement.prototype,"getContext",function(a){return function(c,...u){if(!jr(this,t,n,r,!0)){const l=Ab(c);if("__context"in this||(this.__context=l),s&&["webgl","webgl2"].includes(l))if(u[0]&&typeof u[0]=="object"){const d=u[0];d.preserveDrawingBuffer||(d.preserveDrawingBuffer=!0)}else u.splice(0,1,{preserveDrawingBuffer:!0})}return a.apply(this,[c,...u])}});i.push(o)}catch{console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return()=>{i.forEach(o=>o())}}function ra(e,t,n,r,s,i,o,a){const c=[],u=Object.getOwnPropertyNames(e);for(const l of u)if(!["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(l))try{if(typeof e[l]!="function")continue;const d=Ci(e,l,function(f){return function(...p){const m=f.apply(this,p);if(ml(m,a,this),"tagName"in this.canvas&&!jr(this.canvas,r,s,i,!0)){const _=gl(p,a,this),S={type:t,property:l,args:_};n(this.canvas,S)}return m}});c.push(d)}catch{const f=ki(e,l,{set(p){n(this.canvas,{type:t,property:l,args:[p],setter:!0})}});c.push(f)}return c}function Ob(e,t,n,r,s,i){const o=[];return o.push(...ra(t.WebGLRenderingContext.prototype,qt.WebGL,e,n,r,s,i,t)),typeof t.WebGL2RenderingContext<"u"&&o.push(...ra(t.WebGL2RenderingContext.prototype,qt.WebGL2,e,n,r,s,i,t)),()=>{o.forEach(a=>a())}}var Nb='for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t="undefined"==typeof Uint8Array?[]:new Uint8Array(256),a=0;a<64;a++)t[e.charCodeAt(a)]=a;var n=function(t){var a,n=new Uint8Array(t),r=n.length,s="";for(a=0;a<r;a+=3)s+=e[n[a]>>2],s+=e[(3&n[a])<<4|n[a+1]>>4],s+=e[(15&n[a+1])<<2|n[a+2]>>6],s+=e[63&n[a+2]];return r%3==2?s=s.substring(0,s.length-1)+"=":r%3==1&&(s=s.substring(0,s.length-2)+"=="),s};const r=new Map,s=new Map;const i=self;i.onmessage=async function(e){if(!("OffscreenCanvas"in globalThis))return i.postMessage({id:e.data.id});{const{id:t,bitmap:a,width:o,height:f,maxCanvasSize:c,dataURLOptions:g}=e.data,u=async function(e,t,a){const r=e+"-"+t;if("OffscreenCanvas"in globalThis){if(s.has(r))return s.get(r);const i=new OffscreenCanvas(e,t);i.getContext("2d");const o=await i.convertToBlob(a),f=await o.arrayBuffer(),c=n(f);return s.set(r,c),c}return""}(o,f,g),[h,d]=function(e,t,a){if(!a)return[e,t];const[n,r]=a;if(e<=n&&t<=r)return[e,t];let s=e,i=t;return s>n&&(i=Math.floor(n*t/e),s=n),i>r&&(s=Math.floor(r*e/t),i=r),[s,i]}(o,f,c),l=new OffscreenCanvas(h,d),w=l.getContext("bitmaprenderer"),p=h===o&&d===f?a:await createImageBitmap(a,{resizeWidth:h,resizeHeight:d,resizeQuality:"low"});w.transferFromImageBitmap(p),a.close();const y=await l.convertToBlob(g),v=y.type,b=await y.arrayBuffer(),m=n(b);if(p.close(),!r.has(t)&&await u===m)return r.set(t,m),i.postMessage({id:t});if(r.get(t)===m)return i.postMessage({id:t});i.postMessage({id:t,type:v,base64:m,width:o,height:f}),r.set(t,m)}};';function Db(){const e=new Blob([Nb]);return URL.createObjectURL(e)}class Lb{reset(){this.pendingCanvasMutations.clear(),this.resetObservers&&this.resetObservers()}freeze(){this.frozen=!0}unfreeze(){this.frozen=!1}lock(){this.locked=!0}unlock(){this.locked=!1}constructor(t){this.pendingCanvasMutations=new Map,this.rafStamps={latestId:0,invokeId:null},this.frozen=!1,this.locked=!1,this.processMutation=(d,f)=>{(this.rafStamps.invokeId&&this.rafStamps.latestId!==this.rafStamps.invokeId||!this.rafStamps.invokeId)&&(this.rafStamps.invokeId=this.rafStamps.latestId),this.pendingCanvasMutations.has(d)||this.pendingCanvasMutations.set(d,[]),this.pendingCanvasMutations.get(d).push(f)};const{sampling:n="all",win:r,blockClass:s,blockSelector:i,unblockSelector:o,maxCanvasSize:a,recordCanvas:c,dataURLOptions:u,errorHandler:l}=t;this.mutationCb=t.mutationCb,this.mirror=t.mirror,this.options=t,l&&kb(l),!t.enableManualSnapshot&&ea(()=>{c&&n==="all"&&this.initCanvasMutationObserver(r,s,i,o),c&&typeof n=="number"&&this.initCanvasFPSObserver(n,r,s,i,o,a,{dataURLOptions:u})})()}initCanvasFPSObserver(t,n,r,s,i,o,a){const c=na(n,r,s,i,!0),u=this.takeSnapshot(!1,t,n,r,s,i,o,a.dataURLOptions);this.resetObservers=()=>{c(),cancelAnimationFrame(u)}}initCanvasMutationObserver(t,n,r,s){this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher();const i=na(t,n,r,s,!1),o=Mb(this.processMutation.bind(this),t,n,r,s),a=Ob(this.processMutation.bind(this),t,n,r,s,this.mirror);this.resetObservers=()=>{i(),o(),a()}}
36snapshot(t){const{options:n}=this,r=this.takeSnapshot(!0,n.sampling==="all"?2:n.sampling||2,n.win,n.blockClass,n.blockSelector,n.unblockSelector,n.maxCanvasSize,n.dataURLOptions,t);this.resetObservers=()=>{cancelAnimationFrame(r)}}takeSnapshot(t,n,r,s,i,o,a,c,u){const l=new Map,d=new Worker(Db());d.onmessage=g=>{const y=g.data,{id:b}=y;if(l.set(b,!1),!("base64"in y))return;const{base64:v,type:T,width:I,height:M}=y;this.mutationCb({id:b,type:qt["2D"],commands:[{property:"clearRect",args:[0,0,I,M]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:v}],type:T}]},0,0,I,M]}]})};const f=1e3/n;let p=0,m;const _=g=>{if(g)return[g];const y=[];return r.document.querySelectorAll("canvas").forEach(b=>{jr(b,s,i,o)||y.push(b)}),y},S=g=>{if(p&&g-p<f){m=it(S);return}p=g,_(u).forEach(y=>{const b=this.mirror.getId(y);if(!l.get(b)&&!(!y.width||!y.height)){if(l.set(b,!0),!t&&["webgl","webgl2"].includes(y.__context)){const v=y.getContext(y.__context);Zn([v,"optionalAccess",T=>T.getContextAttributes,"call",T=>T(),"optionalAccess",T=>T.preserveDrawingBuffer])===!1&&v.clear(v.COLOR_BUFFER_BIT)}createImageBitmap(y).then(v=>{d.postMessage({id:b,bitmap:v,width:y.width,height:y.height,dataURLOptions:c,maxCanvasSize:a},[v])}).catch(v=>{ea(()=>{throw v})()})}}),m=it(S)};return m=it(S),m}startPendingCanvasMutationFlusher(){it(()=>this.flushPendingCanvasMutations())}startRAFTimestamping(){const t=n=>{this.rafStamps.latestId=n,it(t)};it(t)}flushPendingCanvasMutations(){this.pendingCanvasMutations.forEach((t,n)=>{const r=this.mirror.getId(n);this.flushPendingCanvasMutationFor(n,r)}),it(()=>this.flushPendingCanvasMutations())}flushPendingCanvasMutationFor(t,n){if(this.frozen||this.locked)return;const r=this.pendingCanvasMutations.get(t);if(!r||n===-1)return;const s=r.map(o=>{const{type:a,...c}=o;return c}),{type:i}=r[0];this.mutationCb({id:n,type:i,commands:s}),this.pendingCanvasMutations.delete(t)}}const sa={low:{sampling:{canvas:1},dataURLOptions:{type:"image/webp",quality:.25}},medium:{sampling:{canvas:2},dataURLOptions:{type:"image/webp",quality:.4}},high:{sampling:{canvas:4},dataURLOptions:{type:"image/webp",quality:.5}}},yl="ReplayCanvas",Vn=1280,Pb=((e={})=>{const[t,n]=e.maxCanvasSize||[],r={quality:e.quality||"medium",enableManualSnapshot:e.enableManualSnapshot,maxCanvasSize:[t?Math.min(t,Vn):Vn,n?Math.min(n,Vn):Vn]};let s;const i=new Promise(o=>s=o);return{name:yl,setupOnce(){},getOptions(){const{quality:o,enableManualSnapshot:a,maxCanvasSize:c}=r;return{enableManualSnapshot:a,recordCanvas:!0,getCanvasManager:u=>{const l=new Lb({...u,enableManualSnapshot:a,maxCanvasSize:c,errorHandler:d=>{try{typeof d=="object"&&(d.__rrweb__=!0)}catch{}}});return s(l),l},...sa[o]||sa.medium}},async snapshot(o){(await i).snapshot(o)}}}),$b=Pb,bv=Z(yl,$b),St=A,cs="#ffffff",ia="inherit",us="rgba(108, 95, 199, 1)",oa={fontFamily:"system-ui, 'Helvetica Neue', Arial, sans-serif",fontSize:"14px",background:cs,backgroundHover:"#f6f6f7",foreground:"#2b2233",border:"1.5px solid rgba(41, 35, 47, 0.13)",borderRadius:"25px",boxShadow:"0px 4px 24px 0px rgba(43, 34, 51, 0.12)",success:"#268d75",error:"#df3338",submitBackground:"rgba(88, 74, 192, 1)",submitBackgroundHover:us,submitBorder:us,submitOutlineFocus:"#29232f",submitForeground:cs,submitForegroundHover:cs,cancelBackground:"transparent",cancelBackgroundHover:"var(--background-hover)",cancelBorder:"var(--border)",cancelOutlineFocus:"var(--input-outline-focus)",cancelForeground:"var(--foreground)",cancelForegroundHover:"var(--foreground)",inputBackground:ia,inputForeground:ia,inputBorder:"var(--border)",inputOutlineFocus:us,formBorderRadius:"20px",formContentBorderRadius:"6px"},aa={light:oa,dark:{...oa,background:"#29232f",backgroundHover:"#352f3b",foreground:"#ebe6ef",border:"1.5px solid rgba(235, 230, 239, 0.15)",success:"#2da98c",error:"#f55459"}},Fb="Report a Bug",Bb="Cancel",Hb="Send Bug Report",Ub="Report a Bug",Wb="[email protected]",jb="Email",zb="What's the bug? What did you expect?",Gb="Description",qb="Your Name",Yb="Name",Vb="(required)",Kb="Thank y
36ou for your report!",Sl="widget",bl="api";async function Xb({client:e,scope:t,event:n}){const r={};e.emit&&e.emit("preprocessEvent",n,r);const s=await ri(e.getOptions(),n,r,t,e,Oe());return s===null?(e.recordDroppedEvent("event_processor","feedback",n),null):(s.platform=s.platform||"javascript",s)}async function Jb({feedback:{message:e,email:t,name:n,source:r,url:s}},{includeReplay:i=!0}={}){const o=x(),a=o&&o.getTransport(),c=o&&o.getDsn();if(!o||!a||!c)return;const u={contexts:{feedback:{contact_email:t,name:n,message:e,url:s,source:r}},type:"feedback"};return _t(async l=>{l.clearBreadcrumbs(),[bl,Sl].includes(String(r))&&l.setLevel("info");const d=await Xb({scope:l,client:o,event:u});if(!d)return;o.emit&&o.emit("beforeSendFeedback",d,{includeReplay:!!i});const f=Sc(d,c,o.getOptions()._metadata,o.getOptions().tunnel);let p;try{p=await a.send(f)}catch(m){const _=new Error("Unable to send Feedback");try{_.cause=m}catch{}throw _}if(p){if(typeof p.statusCode=="number"&&(p.statusCode<200||p.statusCode>=300))throw new Error("Unable to send Feedback");return p}})}function Zb({name:e,email:t,message:n,source:r=bl,url:s=wa()},i={}){if(!n)throw new Error("Unable to submit feedback with empty message");return Jb({feedback:{name:e,email:t,message:n,url:s,source:r}},i)}const ot=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;function ca(e,t){return{...e,...t,themeDark:{...e.themeDark,...t.themeDark},themeLight:{...e.themeLight,...t.themeLight}}}function Qb(e){const t=e.createElement("style");return t.textContent=`
37.widget__actor {
38  position: fixed;
39  left: var(--left);
40  right: var(--right);
41  bottom: var(--bottom);
42  top: var(--top);
43  z-index: var(--z-index);
44
45  line-height: 16px;
46
47  display: flex;
48  align-items: center;
49  gap: 8px;
50
51  border-radius: var(--border-radius);
52  cursor: pointer;
53  font-family: inherit;
54  font-size: var(--font-size);
55  font-weight: 600;
56  padding: 16px;
57  text-decoration: none;
58  z-index: 9000;
59
60  color: var(--foreground);
61  background-color: var(--background);
62  border: var(--border);
63  box-shadow: var(--box-shadow);
64  opacity: 1;
65  transition: opacity 0.1s ease-in-out;
66}
67
68.widget__actor:hover {
69  background-color: var(--background-hover);
70}
71
72.widget__actor svg {
73  width: 16px;
74  height: 16px;
75}
76
77.widget__actor--hidden {
78  opacity: 0;
79  pointer-events: none;
80  visibility: hidden;
81}
82
83.widget__actor__text {
84}
85
86@media (max-width: 600px) {
87  .widget__actor__text {
88    display: none;
89  }
90}
91
92.feedback-icon path {
93  fill: var(--foreground);
94}
95`,t}function eE(e){const t=e.createElement("style");return t.textContent=`
96.dialog {
97  line-height: 25px;
98  background-color: rgba(0, 0, 0, 0.05);
99  border: none;
100  position: fixed;
101  inset: 0;
102  z-index: 10000;
103  width: 100vw;
104  height: 100vh;
105  display: flex;
106  align-items: center;
107  justify-content: center;
108  opacity: 1;
109  transition: opacity 0.2s ease-in-out;
110}
111
112.dialog:not([open]) {
113  opacity: 0;
114  pointer-events: none;
115  visibility: hidden;
116}
117.dialog:not([open]) .dialog__content {
118  transform: translate(0, -16px) scale(0.98);
119}
120
121.dialog__content {
122  position: fixed;
123  left: var(--left);
124  right: var(--right);
125  bottom: var(--bottom);
126  top: var(--top);
127
128  border: var(--border);
129  border-radius: var(--form-border-radius);
130  background-color: var(--background);
131  color: var(--foreground);
132
133  width: 320px;
134  max-width: 100%;
135  max-height: calc(100% - 2rem);
136  display: flex;
137  flex-direction: column;
138  box-shadow: var(--box-shadow);
139  transition: transform 0.2s ease-in-out;
140  transform: translate(0, 0) scale(1);
141}
142
143.dialog__header {
144  display: flex;
145  align-items: center;
146  justify-content: space-between;
147  font-size: 20px;
148  font-weight: 600;
149  padding: 24px 24px 0 24px;
150  margin: 0;
151  margin-bottom: 16px;
152}
153
154.brand-link {
155  display: inline-flex;
156}
157
158.error {
159  color: var(--error);
160  margin-bottom: 16px;
161}
162
163.form {
164  display: grid;
165  overflow: auto;
166  flex-direction: column;
167  gap: 16px;
168  padding: 0 24px 24px;
169}
170
171.form__error-container {
172  color: var(--error);
173}
174
175.form__error-container--hidden {
176  display: none;
177}
178
179.form__label {
180  display: flex;
181  flex-direction: column;
182  gap: 4px;
183  margin: 0px;
184}
185
186.form__label__text {
187  display: grid;
188  gap: 4px;
189  align-items: center;
190  grid-auto-flow: column;
191  grid-auto-columns: max-content;
192}
193
194.form__label__text--required {
195  font-size: 0.85em;
196}
197
198.form__input {
199  line-height: inherit;
200  background-color: var(--input-background);
201  box-sizing: border-box;
202  border: var(--input-border);
203  border-radius: var(--form-content-border-radius);
204  color: var(--input-foreground);
205  font-family: inherit;
206  font-size: var(--font-size);
207  font-weight: 500;
208  padding: 6px 12px;
209}
210
211.form__input::placeholder {
212  color: var(--input-foreground);
213  opacity: 0.65;
214}
215
216.form__input:focus-visible {
217  outline: 1px auto var(--input-outline-focus);
218}
219
220.form__input--textarea {
221  font-family: inherit;
222  resize: vertical;
223}
224
225.btn-group {
226  display: grid;
227  gap: 8px;
228  margin-top: 8px;
229}
230
231.btn {
232  line-height: inherit;
233  border: var(--cancel-border);
234  border-radius: var(--form-content-border-radius);
235  cursor: pointer;
236  font-family: inherit;
237  font-size: var(--font-size);
238  font-weight: 600;
239  padding: 6px 16px;
240}
241.btn[disabled] {
242  opacity: 0.6;
243  pointer-events: none;
244}
245
246.btn--primary {
247  background-color: var(--submit-background);
248  border-color: var(--submit-border);
249  color: var(--submit-foreground);
250}
251.btn--primary:hover {
252  background-color: var(--submit-background-hover);
253  color: var(--submit-foreground-hover);
254}
255.btn--primary:focus-visible {
256  outline: 1px auto var(--submit-outline-focus);
257}
258
259.btn--default {
260  background-color: var(--cancel-background);
261  color: var(--cancel-foreground);
262  font-weight: 500;
263}
264.btn--default:hover {
265  background-color: var(--cancel-background-hover);
266  color: var(--cancel-foreground-hover);
267}
268.btn--default:focus-visible {
269  outline: 1px auto var(--cancel-outline-focus);
270}
271
272.success-message {
273  background-color: var(--background);
274  border: var(--border);
275  border-radius: var(--border-radius);
276  box-shadow: var(--box-shadow);
277  font-weight: 600;
278  color: var(--success);
279  padding: 12px 24px;
280  line-height: 25px;
281  display: grid;
282  align-items: center;
283  grid-auto-flow: column;
284  gap: 6px;
285  cursor: default;
286}
287
288.success-icon path {
289  fill: var(--success);
290}
291`,t}function ua(e){return`
292  --background: ${e.background};
293  --background-hover: ${e.backgroundHover};
294  --foreground: ${e.foreground};
295  --error: ${e.error};
296  --success: ${e.success};
297  --border: ${e.border};
298  --border-radius: ${e.borderRadius};
299  --box-shadow: ${e.boxShadow};
300
301  --submit-background: ${e.submitBackground};
302  --submit-background-hover: ${e.submitBackgroundHover};
303  --submit-border: ${e.submitBorder};
304  --submit-outline-focus: ${e.submitOutlineFocus};
305  --submit-foreground: ${e.submitForeground};
306  --submit-foreground-hover: ${e.submitForegroundHover};
307
308  --cancel-background: ${e.cancelBackground};
309  --cancel-background-hover: ${e.cancelBackgroundHover};
310  --cancel-border: ${e.cancelBorder};
311  --cancel-outline-focus: ${e.cancelOutlineFocus};
312  --cancel-foreground: ${e.cancelForeground};
313  --cancel-foreground-hover: ${e.cancelForegroundHover};
314
315  --input-background: ${e.inputBackground};
316  --input-foreground: ${e.inputForeground};
317  --input-border: ${e.inputBorder};
318  --input-outline-focus: ${e.inputOutlineFocus};
319
320  --form-border-radius: ${e.formBorderRadius};
321  --form-content-border-radius: ${e.formContentBorderRadius};
322  `}function tE(e,t,n){const r=e.createElement("style");return r.textContent=`
323:host {
324  --bottom: 1rem;
325  --right: 1rem;
326  --top: auto;
327  --left: auto;
328  --z-index: 100000;
329  --font-family: ${n.light.fontFamily};
330  --font-size: ${n.light.fontSize};
331
332  position: fixed;
333  left: var(--left);
334  right: var(--right);
335  bottom: var(--bottom);
336  top: var(--top);
337  z-index: var(--z-index);
338
339  font-family: var(--font-family);
340  font-size: var(--font-size);
341
342  ${ua(t==="dark"?n.dark:n.light)}
343}
344
345${t==="system"?`
346@media (prefers-color-scheme: dark) {
347  :host {
348    ${ua(n.dark)}
349  }
350}`:""}
351}`,r}function nE({id:e,colorScheme:t,themeDark:n,themeLight:r}){try{const s=St.document,i=s.createElement("div");i.id=e;const o=i.attachShadow({mode:"open"});return o.appendChild(tE(s,t,{dark:n,light:r})),o.appendChild(eE(s)),{shadow:o,host:i}}catch{throw h.warn("[Feedback] Browser does not support shadow DOM API"),new Error("Browser does not support shadow DOM API.")}}async function rE(e,t,n){if(!e)return;const r=()=>{e&&e.showError("There was a problem submitting feedback, please wait and try again.")};e.hideError();try{return await Zb({...t,source:Sl},n)}catch(s){ot&&h.error(s),r()}}function _e(e,t){return Object.entries(t).forEach(([n,r])=>{e.setAttributeNS(null,n,r)}),e}const It=20,sE="http://www.w3.org/2000/svg";function iE(){const e=a=>St.document.createElementNS(sE,a),t=_e(e("svg"),{class:"feedback-icon",width:`${It}`,height:`${It}`,viewBox:`0 0 ${It} ${It}`,fill:"none"}),n=_e(e("g"),{clipPath:"url(#clip0_57_80)"}),r=_e(e("path"),{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M15.6622 15H12.3997C12.2129 14.9959 12.031 14.9396 11.8747 14.8375L8.04965 12.2H7.49956V19.1C7.4875 19.3348 7.3888 19.5568 7.22256 19.723C7.05632 19.8892 6.83435 19.9879 6.59956 20H2.04956C1.80193 19.9968 1.56535 19.8969 1.39023 19.7218C1.21511 19.5467 1.1153 19.3101 1.11206 19.0625V12.2H0.949652C0.824431 12.2017 0.700142 12.1783 0.584123 12.1311C0.468104 12.084 0.362708 12.014 0.274155 11.9255C0.185602 11.8369 0.115689 11.7315 0.0685419 11.6155C0.0213952 11.4995 -0.00202913 11.3752 -0.00034808 11.25V3.75C-0.00900498 3.62067 0.0092504 3.49095 0.0532651 3.36904C0.0972798 3.24712 0.166097 3.13566 0.255372 3.04168C0.344646 2.94771 0.452437 2.87327 0.571937 2.82307C0.691437 2.77286 0.82005 2.74798 0.949652 2.75H8.04965L11.8747 0.1625C12.031 0.0603649 12.2129 0.00407221 12.3997 0H15.6622C15.9098 0.00323746 16.1464 0.103049 16.3215 0.278167C16.4966 0.453286 16.5964 0.689866 16.5997 0.9375V3.25269C17.3969 3.42959 18.1345 3.83026 18.7211 4.41679C19.5322 5.22788 19.9878 6.32796 19.9878 7.47502C19.9878 8.62209 19.5322 9.72217 18.7211 10.5333C18.1345 11.1198 17.3969 11.5205 16.5997 11.6974V14.0125C16.6047 14.1393 16.5842 14.2659 16.5395 14.3847C16.4948 14.5035 16.4268 14.6121 16.3394 14.7042C16.252 14.7962 16.147 14.8698 16.0307 14.9206C15.9144 14.9714 15.7891 14.9984 15.6622 15ZM1.89695 10.325H1.88715V4.625H8.33715C8.52423 4.62301 8.70666 4.56654 8.86215 4.4625L12.6872 1.875H14.7247V13.125H12.6872L8.86215 10.4875C8.70666 10.3835 8.52423 10.327 8.33715 10.325H2.20217C2.15205 10.3167 2.10102 10.3125 2.04956 10.3125C1.9981 10.3125 1.94708 10.3167 1.89695 10.325ZM2.98706 12.2V18.1625H5.66206V12.2H2.98706ZM16.5997 9.93612V5.01393C16.6536 5.02355 16.7072 5.03495 16.7605 5.04814C17.1202 5.13709 17.45
35156 5.30487 17.7425 5.53934C18.0293 5.77381 18.2605 6.06912 18.4192 6.40389C18.578 6.73866 18.6603 7.10452 18.6603 7.47502C18.6603 7.84552 18.578 8.21139 18.4192 8.54616C18.2605 8.88093 18.0293 9.17624 17.7425 9.41071C17.4556 9.64518 17.1202 9.81296 16.7605 9.90191C16.7072 9.91509 16.6536 9.9265 16.5997 9.93612Z"});t.appendChild(n).appendChild(r);const s=e("defs"),i=_e(e("clipPath"),{id:"clip0_57_80"}),o=_e(e("rect"),{width:`${It}`,height:`${It}`,fill:"white"});return i.appendChild(o),s.appendChild(i),t.appendChild(s).appendChild(i).appendChild(o),{get el(){return t}}}function X(e,t,...n){const s=St.document.createElement(e);t&&Object.entries(t).forEach(([i,o])=>{i==="className"&&typeof o=="string"?s.setAttribute("class",o):typeof o=="boolean"&&o?s.setAttribute(i,""):typeof o=="string"?s.setAttribute(i,o):i.startsWith("on")&&typeof o=="function"&&s.addEventListener(i.substring(2).toLowerCase(),o)});for(const i of n)El(s,i);return s}function El(e,t){const n=St.document;if(!(typeof t>"u"||t===null))if(Array.isArray(t))for(const r of t)El(e,r);else t===!1||(typeof t=="string"?e.appendChild(n.createTextNode(t)):t instanceof Node?e.appendChild(t):e.appendChild(n.createTextNode(String(t))))}function oE({buttonLabel:e,onClick:t}){function n(s){t&&t(s)}const r=X("button",{type:"button",className:"widget__actor","aria-label":e,"aria-hidden":"false"},iE().el,e?X("span",{className:"widget__actor__text"},e):null);return r.addEventListener("click",n),{get el(){return r},show:()=>{r.classList.remove("widget__actor--hidden"),r.setAttribute("aria-hidden","false")},hide:()=>{r.classList.add("widget__actor--hidden"),r.setAttribute("aria-hidden","true")}}}function aE({label:e}){return{el:X("button",{type:"submit",className:"btn btn--primary","aria-label":e},e)}}function ls(e,t){const n=e.get(t);return typeof n=="string"?n.trim():""}function cE({nameLabel:e,namePlaceholder:t,emailLabel:n,emailPlaceholder:r,messageLabel:s,messagePlaceholder:i,isRequiredLabel:o,cancelButtonLabel:a,submitButtonLabel:c,showName:u,showEmail:l,isNameRequired:d,isEmailRequired:f,defaultName:p,defaultEmail:m,onCancel:_,onSubmit:S}){const{el:g}=aE({label:c});function y(L){if(L.preventDefault(),L.target instanceof HTMLFormElement)try{if(S){const K=new FormData(L.target),re={name:ls(K,"name"),email:ls(K,"email"),message:ls(K,"message")};S(re)}}catch{}}const b=X("div",{className:"form__error-container form__error-container--hidden","aria-hidden":"true"});function v(L){b.textContent=L,b.classList.remove("form__error-container--hidden"),b.setAttribute("aria-hidden","false")}function T(){b.textContent="",b.classList.add("form__error-container--hidden"),b.setAttribute("aria-hidden","true")}const I=X("input",{id:"name",type:u?"text":"hidden","aria-hidden":u?"false":"true",name:"name",required:d,className:"form__input",placeholder:t,value:p}),M=X("input",{id:"email",type:l?"text":"hidden","aria-hidden":l?"false":"true",name:"email",required:f,className:"form__input",placeholder:r,value:m}),O=X("textarea",{id:"message",autoFocus:"true",rows:"5",name:"message",required:!0,className:"form__input form__input--textarea",placeholder:i}),w=X("button",{type:"button",className:"btn btn--default","aria-label":a,onClick:L=>{_&&_(L)}},a),R=X("form",{className:"form",onSubmit:y},[b,u&&X("label",{htmlFor:"name",className:"form__label"},[X("span",{className:"form__label__text"},e,d&&X("span",{className:"form__label__text--required"},` ${o}`)),I]),!u&&I,l&&X("label",{htmlFor:"email",className:"form__label"},[X("span",{className:"form__label__text"},n,f&&X("span",{className:"form__label__text--required"},` ${o}`)),M]),!l&&M,X("label",{htmlFor:"message",className:"form__label"},[X("span",{className:"form__label__text"},s,X("span",{className:"form__label__text--required"},` ${o}`)),O]),X("div",{className:"btn-group"},[g,w])]);return{get el(){return R},showError:v,hideError:T}}const uE="http://www.w3.org/2000/svg";function lE({colorScheme:e}){const t=o=>St.document.createElementNS(uE,o),n=_e(t("svg"),{class:"sentry-logo",width:"32",height:"30",viewBox:"0 0 72 66",fill:"none"}),r=_e(t("path"),{transform:"translate(11, 11)",d:"M29,2.26a4.67,4.67,0,0,0-8,0L14.42,13.53A32.21,32.21,0,0,1,32.17,40.19H27.55A27.68,27.68,0,0,0,12.09,17.47L6,28a15.92,15.92,0,0,1,9.23,12.17H4.62A.76.76,0,0,1,4,39.06l2.94-5a10.74,10.74,0,0,0-3.36-1.9l-2.91,5a4.54,4.54,0,0,0,1.69,6.24A4.66,4.66,0,0,0,4.62,44H19.15a19.4,19.4,0,0,0-8-17.31l2.31-4A23.87,23.87,0,0,1,23.76,44H36.07a35.88,35.88,0,0,0-16.41-31.8l4.67-8a.77.77,0,0,1,1.05-.27c.53.29,20.29,34.77,20.66,35.17a.76.76,0,0,1-.68,1.13H40.6q.09,1.91,0,3.81h4.78A4.59,4.59,0,0,0,50,39.43a4.49,4.49,0,0,0-.62-2.28Z"});n.append(r);const s=t("defs"),i=t("style");return i.textContent=`
352    path {
353      fill: ${e==="dark"?"#fff":"#362d59"};
354    }`,e==="system"&&(i.textContent+=`
355    @media (prefers-color-scheme: dark) {
356      path: {
357        fill: '#fff';
358      }
359    }
360    `),s.append(i),n.append(s),{get el(){return n}}}
360function dE({formTitle:e,showBranding:t,showName:n,showEmail:r,isNameRequired:s,isEmailRequired:i,colorScheme:o,defaultName:a,defaultEmail:c,onClosed:u,onCancel:l,onSubmit:d,...f}){let p=null;function m(){_(),u&&u()}function _(){p&&(p.open=!1)}function S(){p&&(p.open=!0)}function g(){return p&&p.open===!0||!1}const{el:y,showError:b,hideError:v}=cE({showEmail:r,showName:n,isEmailRequired:i,isNameRequired:s,defaultName:a,defaultEmail:c,onSubmit:d,onCancel:l,...f});return p=X("dialog",{className:"dialog",open:!0,onClick:m},X("div",{className:"dialog__content",onClick:T=>{T.stopPropagation()}},X("h2",{className:"dialog__header"},e,t&&X("a",{className:"brand-link",target:"_blank",href:"https://sentry.io/welcome/",title:"Powered by Sentry",rel:"noopener noreferrer"},lE({colorScheme:o}).el)),y)),{get el(){return p},showError:b,hideError:v,open:S,close:_,checkIsOpen:g}}const Kn=16,la=17,fE="http://www.w3.org/2000/svg";function pE(){const e=c=>St.document.createElementNS(fE,c),t=_e(e("svg"),{class:"success-icon",width:`${Kn}`,height:`${la}`,viewBox:`0 0 ${Kn} ${la}`,fill:"none"}),n=_e(e("g"),{clipPath:"url(#clip0_57_156)"}),r=_e(e("path"),{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M3.55544 15.1518C4.87103 16.0308 6.41775 16.5 8 16.5C10.1217 16.5 12.1566 15.6571 13.6569 14.1569C15.1571 12.6566 16 10.6217 16 8.5C16 6.91775 15.5308 5.37103 14.6518 4.05544C13.7727 2.73985 12.5233 1.71447 11.0615 1.10897C9.59966 0.503466 7.99113 0.34504 6.43928 0.653721C4.88743 0.962403 3.46197 1.72433 2.34315 2.84315C1.22433 3.96197 0.462403 5.38743 0.153721 6.93928C-0.15496 8.49113 0.00346625 10.0997 0.608967 11.5615C1.21447 13.0233 2.23985 14.2727 3.55544 15.1518ZM4.40546 3.1204C5.46945 2.40946 6.72036 2.03 8 2.03C9.71595 2.03 11.3616 2.71166 12.575 3.92502C13.7883 5.13838 14.47 6.78405 14.47 8.5C14.47 9.77965 14.0905 11.0306 13.3796 12.0945C12.6687 13.1585 11.6582 13.9878 10.476 14.4775C9.29373 14.9672 7.99283 15.0953 6.73777 14.8457C5.48271 14.596 4.32987 13.9798 3.42502 13.075C2.52018 12.1701 1.90397 11.0173 1.65432 9.76224C1.40468 8.50718 1.5328 7.20628 2.0225 6.02404C2.5122 4.8418 3.34148 3.83133 4.40546 3.1204Z"}),s=_e(e("path"),{d:"M6.68775 12.4297C6.78586 12.4745 6.89218 12.4984 7 12.5C7.11275 12.4955 7.22315 12.4664 7.32337 12.4145C7.4236 12.3627 7.51121 12.2894 7.58 12.2L12 5.63999C12.0848 5.47724 12.1071 5.28902 12.0625 5.11098C12.0178 4.93294 11.9095 4.77744 11.7579 4.67392C11.6064 4.57041 11.4221 4.52608 11.24 4.54931C11.0579 4.57254 10.8907 4.66173 10.77 4.79999L6.88 10.57L5.13 8.56999C5.06508 8.49566 4.98613 8.43488 4.89768 8.39111C4.80922 8.34735 4.713 8.32148 4.61453 8.31498C4.51605 8.30847 4.41727 8.32147 4.32382 8.35322C4.23038 8.38497 4.14413 8.43484 4.07 8.49999C3.92511 8.63217 3.83692 8.81523 3.82387 9.01092C3.81083 9.2066 3.87393 9.39976 4 9.54999L6.43 12.24C6.50187 12.3204 6.58964 12.385 6.68775 12.4297Z"});t.appendChild(n).append(s,r);const i=e("defs"),o=_e(e("clipPath"),{id:"clip0_57_156"}),a=_e(e("rect"),{width:`${Kn}`,height:`${Kn}`,fill:"white",transform:"translate(0 0.5)"});return o.appendChild(a),i.appendChild(o),t.appendChild(i).appendChild(o).appendChild(a),{get el(){return t}}}function hE({message:e,onRemove:t}){function n(){r&&(r.remove(),t&&t())}const r=X("div",{className:"success-message",onClick:n},pE().el,e);return{el:r,remove:n}}function da({shadow:e,options:{shouldCreateActor:t=!0,...n},attachTo:r}){let s,i,o=!1;function a(){if(e)try{const g=hE({message:n.successMessageText,onRemove:()=>{y&&clearTimeout(y),l()}});if(!g.el)throw new Error("Unable to show success message");e.appendChild(g.el);const y=setTimeout(()=>{g&&g.remove()},5e3)}catch(g){h.error(g)}}async function c(g){if(!i)return;const y=[];if(n.isNameRequired&&!g.name&&y.push(n.nameLabel),n.isEmailRequired&&!g.email&&y.push(n.emailLabel),g.message||y.push(n.messageLabel),y.length>0){i.showError(`Please enter in the following required fields: ${y.join(", ")}`);return}if(!await rE(i,g)){n.onSubmitError&&n.onSubmitError();return}_(),a(),n.onSubmitSuccess&&n.onSubmitSuccess()}function u(){const g=x(),y=g&&g.getIntegrationByName&&g.getIntegrationByName("Replay");y&&y.flush().catch(b=>{ot&&h.error(b)})}function l(){s&&s.show()}function d(){s&&s.hide()}function f(){s&&s.el&&s.el.remove()}function p(){try{if(i){i.open(),o=!0,n.onFormOpen&&n.onFormOpen(),u();return}const g=n.useSentryUser,y=ne(),b=y&&y.getUser();if(i=dE({colorScheme:n.colorScheme,showBranding:n.showBranding,showName:n.showName||n.isNameRequired,showEmail
360:n.showEmail||n.isEmailRequired,isNameRequired:n.isNameRequired,isEmailRequired:n.isEmailRequired,formTitle:n.formTitle,cancelButtonLabel:n.cancelButtonLabel,submitButtonLabel:n.submitButtonLabel,emailLabel:n.emailLabel,emailPlaceholder:n.emailPlaceholder,messageLabel:n.messageLabel,messagePlaceholder:n.messagePlaceholder,nameLabel:n.nameLabel,namePlaceholder:n.namePlaceholder,isRequiredLabel:n.isRequiredLabel,defaultName:g&&b&&b[g.name]||"",defaultEmail:g&&b&&b[g.email]||"",onClosed:()=>{l(),o=!1,n.onFormClose&&n.onFormClose()},onCancel:()=>{m(),l()},onSubmit:c}),!i.el)throw new Error("Unable to open Feedback dialog");e.appendChild(i.el),d(),n.onFormOpen&&n.onFormOpen(),u()}catch(g){h.error(g)}}function m(){i&&(i.close(),o=!1,n.onFormClose&&n.onFormClose())}function _(){if(i){m();const g=i.el;g&&g.remove(),i=void 0}}function S(){o||p(),d()}return r?r.addEventListener("click",S):t&&(s=oE({buttonLabel:n.buttonLabel,onClick:S}),s.el&&e.appendChild(s.el)),{get actor(){return s},get dialog(){return i},showActor:l,hideActor:d,removeActor:f,openDialog:p,closeDialog:m,removeDialog:_}}const Xn=St.document,Ev=(e=>new zr(e));class zr{static __initStatic(){this.id="Feedback"}constructor({autoInject:t=!0,id:n="sentry-feedback",isEmailRequired:r=!1,isNameRequired:s=!1,showBranding:i=!0,showEmail:o=!0,showName:a=!0,useSentryUser:c={email:"email",name:"username"},themeDark:u,themeLight:l,colorScheme:d="system",buttonLabel:f=Fb,cancelButtonLabel:p=Bb,submitButtonLabel:m=Hb,formTitle:_=Ub,emailPlaceholder:S=Wb,emailLabel:g=jb,messagePlaceholder:y=zb,messageLabel:b=Gb,namePlaceholder:v=qb,nameLabel:T=Yb,isRequiredLabel:I=Vb,successMessageText:M=Kb,onFormClose:O,onFormOpen:w,onSubmitError:R,onSubmitSuccess:L}={}){this.name=zr.id,this._host=null,this._shadow=null,this._widget=null,this._widgets=new Set,this._hasInsertedActorStyles=!1,this.options={autoInject:t,showBranding:i,id:n,isEmailRequired:r,isNameRequired:s,showEmail:o,showName:a,useSentryUser:c,colorScheme:d,themeDark:{...aa.dark,...u},themeLight:{...aa.light,...l},buttonLabel:f,cancelButtonLabel:p,submitButtonLabel:m,formTitle:_,emailLabel:g,emailPlaceholder:S,messageLabel:b,messagePlaceholder:y,nameLabel:T,namePlaceholder:v,isRequiredLabel:I,successMessageText:M,onFormClose:O,onFormOpen:w,onSubmitError:R,onSubmitSuccess:L}}setupOnce(){if(bs())try{this._cleanupWidgetIfExists();const{autoInject:t}=this.options;if(!t)return;this._createWidget(this.options)}catch(t){ot&&h.error(t)}}openDialog(){this._widget||this._createWidget({...this.options,shouldCreateActor:!1}),this._widget&&this._widget.openDialog()}closeDialog(){this._widget&&this._widget.closeDialog()}attachTo(t,n){try{const r=ca(this.options,n||{});return this._ensureShadowHost(r,({shadow:s})=>{const i=typeof t=="string"?Xn.querySelector(t):typeof t.addEventListener=="function"?t:null;if(!i)return ot&&h.error("[Feedback] Unable to attach to target element"),null;const o=da({shadow:s,options:r,attachTo:i});return this._widgets.add(o),this._widget||(this._widget=o),o})}catch(r){return ot&&h.error(r),null}}createWidget(t){try{return this._createWidget(ca(this.options,t||{}))}catch(n){return ot&&h.error(n),null}}removeWidget(t){if(!t)return!1;try{if(this._widgets.has(t))return t.removeActor(),t.removeDialog(),this._widgets.delete(t),this._widget===t&&(this._widget=null),!0}catch(n){ot&&h.error(n)}return!1}getWidget(){return this._widget}remove(){this._host&&this._host.remove(),this._initialize()}_initialize(){this._host=null,this._shadow=null,this._widget=null,this._widgets=new Set,this._hasInsertedActorStyles=!1}_cleanupWidgetIfExists(){this._host&&this.remove();const t=Xn.querySelector(`#${this.options.id}`);t&&t.remove()}_createWidget(t){return this._ensureShadowHost(t,({shadow:n})=>{const r=da({shadow:n,options:t});return!this._hasInsertedActorStyles&&r.actor&&(n.appendChild(Qb(Xn)),this._hasInsertedActorStyles=!0),this._widgets.add(r),this._widget||(this._widget=r),r})}_ensureShadowHost(t,n){let r=!1;if(!this._shadow||!this._host){const{id:i,colorScheme:o,themeLight:a,themeDark:c}=t,{shadow:u,host:l}=nE({id:i,colorScheme:o,themeLight:a,themeDark:c});this._shadow=u,this._host=l,r=!0}this._host.dataset.sentryFeedbackColorscheme=t.colorScheme;const s=n({shadow:this._shadow,host:this._host});return r&&Xn.body.appendChild(this._host),s}}zr.__initStatic();const Tl="CaptureConsole",mE=((e={})=>{const t=e.levels||rr;return{name:Tl,setupOnce(){},setup(n){"console"in A&&La(({args:r,level:s})=>{x()!==n||!t.includes(s)||_E(r,s)})}}}),gE=mE;Z(Tl,gE);function _E(e,t){const n={level:ja(t),extra:{arguments:e}};_t(r=>{if(r.addEventProcessor(o=>(o.logger="console",dt(o,{handled:!1,type:"console"}),o)),t==="assert"&&e[0]===!1){const o=`Assertion failed: ${nr(e.slice(1)," ")||"console.assert"}`;r.setExtra("arguments",e.slice(1)),Is(o,n);return}const s=e.find(o=>o instanceof Error);if(t==="error"&&s){Jt(s,n);return}const i=nr(e," ");Is(i,n)})}const vl="Debug",yE=((e={})=>{const t={debugger:!1,stringify:!1,...e};return{name:vl,setupOnce(){},setup(n){n.on&&n.on("beforeSendEvent",(r,s)=>{if(t.debugger)debugger;we(()=>{t.stringify?(console.log(JSON.stringify(r,null,2)),s&&Object.keys(s).length&&console.log(JSON.stringify(s,null,2))):(console.log(r),s&&Object.keys(s).length&&console.log(s))})})}}}),SE=yE;Z(vl,SE);const Yt=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,Il="Dedupe",bE=(()=>{let e;return{name:Il,setupOnce(){},processEvent(t){if(t.type)return t;try{if(TE(t,e))return Yt&&h.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}return e=t}}}),EE=bE;Z(Il,EE);function TE(e,t){return t?!!(vE(e,t)||IE(e,t)):!1}function vE(e,t){const n=e.message,r=t.message;return!(!n&&!r||n&&!r||!n&&r||n!==r||!kl(e,t)||!wl(e,t))}function IE(e,t){const n=fa(t),r=fa(e);return!(!n||!r||n.type!==r.type||n.value!==r.value||!kl(e,t)||!wl(e,t))}function wl(e,t){let n=pa(e),r=pa(t);if(!n&&!r)return!0;
360if(n&&!r||!n&&r||(n=n,r=r,r.length!==n.length))return!1;for(let s=0;s<r.length;s++){const i=r[s],o=n[s];if(i.filename!==o.filename||i.lineno!==o.lineno||i.colno!==o.colno||i.function!==o.function)return!1}return!0}function kl(e,t){let n=e.fingerprint,r=t.fingerprint;if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;n=n,r=r;try{return n.join("")===r.join("")}catch{return!1}}function fa(e){return e.exception&&e.exception.values&&e.exception.values[0]}function pa(e){const t=e.exception;if(t)try{return t.values[0].stacktrace.frames}catch{return}}const Cl="ExtraErrorData",wE=((e={})=>{const t=e.depth||3,n=e.captureErrorCause||!1;return{name:Cl,setupOnce(){},processEvent(r,s){return CE(r,s,t,n)}}}),kE=wE;Z(Cl,kE);function CE(e,t={},n,r){if(!t.originalException||!Dt(t.originalException))return e;const s=t.originalException.name||t.originalException.constructor.name,i=RE(t.originalException,r);if(i){const o={...e.contexts},a=Te(i,n);return lt(a)&&(Ze(a,"__sentry_skip_normalization__",!0),o[s]=a),{...e,contexts:o}}return e}function RE(e,t){try{const n=["name","message","stack","line","column","fileName","lineNumber","columnNumber","toJSON"],r={};for(const s of Object.keys(e)){if(n.indexOf(s)!==-1)continue;const i=e[s];r[s]=Dt(i)?i.toString():i}if(t&&e.cause!==void 0&&(r.cause=Dt(e.cause)?e.cause.toString():e.cause),typeof e.toJSON=="function"){const s=e.toJSON();for(const i of Object.keys(s)){const o=s[i];r[i]=Dt(o)?o.toString():o}}return r}catch(n){Yt&&h.error("Unable to extract extra data from the Error object:",n)}return null}const xE=A,Rl="ReportingObserver",ha=new WeakMap,ME=((e={})=>{const t=e.types||["crash","deprecation","intervention"];function n(r){if(ha.has(x()))for(const s of r)_t(i=>{i.setExtra("url",s.url);const o=`ReportingObserver [${s.type}]`;let a="No details available";if(s.body){const c={};for(const u in s.body)c[u]=s.body[u];if(i.setExtra("body",c),s.type==="crash"){const u=s.body;a=[u.crashId||"",u.reason||""].join(" ").trim()||a}else a=s.body.message||a}Is(`${o}: ${a}`)})}return{name:Rl,setupOnce(){if(!wd())return;new xE.ReportingObserver(n,{buffered:!0,types:t}).observe()},setup(r){ha.set(r,!0)}}}),AE=ME;Z(Rl,AE);const xl="RewriteFrames",OE=((e={})=>{const t=e.root,n=e.prefix||"app:///",r=e.iteratee||(o=>{if(!o.filename)return o;const a=/^[a-zA-Z]:\\/.test(o.filename)||o.filename.includes("\\")&&!o.filename.includes("/"),c=/^\//.test(o.filename);if(a||c){const u=a?o.filename.replace(/^[a-zA-Z]:/,"").replace(/\\/g,"/"):o.filename,l=t?Yd(t,u):Vd(u);o.filename=`${n}${l}`}return o});function s(o){try{return{...o,exception:{...o.exception,values:o.exception.values.map(a=>({...a,...a.stacktrace&&{stacktrace:i(a.stacktrace)}}))}}}catch{return o}}function i(o){return{...o,frames:o&&o.frames&&o.frames.map(a=>r(a))}}return{name:xl,setupOnce(){},processEvent(o){let a=o;return o.exception&&Array.isArray(o.exception.values)&&(a=s(a)),a}}}),NE=OE;Z(xl,NE);const Ml="SessionTiming",DE=(()=>{const e=Date.now();return{name:Ml,setupOnce(){},processEvent(t){const n=Date.now();return{...t,extra:{...t.extra,"session:start":e,"session:duration":n-e,"session:end":n}}}}}),LE=DE;Z(Ml,LE);const Al="HttpClient",PE=((e={})=>{const t={failedRequestStatusCodes:[[500,599]],failedRequestTargets:[/.*/],...e};return{name:Al,setupOnce(){},setup(n){GE(n,t),qE(n,t)}}}),$E=PE;Z(Al,$E);function FE(e,t,n,r){if(Nl(e,n.status,n.url)){const s=YE(t,r);let i,o,a,c;Ll()&&([{headers:i,cookies:a},{headers:o,cookies:c}]=[{cookieHeader:"Cookie",obj:s},{cookieHeader:"Set-Cookie",obj:n}].map(({cookieHeader:l,obj:d})=>{const f=UE(d.headers);let p;try{const m=f[l]||f[l.toLowerCase()]||void 0;m&&(p=Ol(m))}catch{Yt&&h.log(`Could not extract cookies from header ${l}`)}return{headers:f,cookies:p}}));const u=Dl({url:s.url,method:s.method,status:n.status,requestHeaders:i,responseHeaders:o,requestCookies:a,responseCookies:c});xr(u)}}function BE(e,t,n,r){if(Nl(e,t.status,t.responseURL)){let s,i,o;if(Ll()){try{const c=t.getResponseHeader("Set-Cookie")||t.getResponseHeader("set-cookie")||void 0;c&&(i=Ol(c))}catch{Yt&&h.log("Could not extract cookies from response headers")}try{o=WE(t)}catch{Yt&&h.log("Could not extract headers from response")}s=r}const a=Dl({url:t.responseURL,method:n,status:t.status,requestHeaders:s,responseHeaders:o,responseCookies:i}
360);xr(a)}}function HE(e){if(e){const t=e["Content-Length"]||e["content-length"];if(t)return parseInt(t,10)}}function Ol(e){return e.split("; ").reduce((t,n)=>{const[r,s]=n.split("=");return t[r]=s,t},{})}function UE(e){const t={};return e.forEach((n,r)=>{t[r]=n}),t}function WE(e){const t=e.getAllResponseHeaders();return t?t.split(`\r
361`).reduce((n,r)=>{const[s,i]=r.split(": ");return n[s]=i,n},{}):{}}function jE(e,t){return e.some(n=>typeof n=="string"?t.includes(n):n.test(t))}function zE(e,t){return e.some(n=>typeof n=="number"?n===t:t>=n[0]&&t<=n[1])}function GE(e,t){Ba()&&wr(n=>{if(x()!==e)return;const{response:r,args:s}=n,[i,o]=s;r&&FE(t,i,r,o)})}function qE(e,t){"XMLHttpRequest"in A&&kr(n=>{if(x()!==e)return;const r=n.xhr,s=r[Pe];if(!s)return;const{method:i,request_headers:o}=s;try{BE(t,r,i,o)}catch(a){Yt&&h.warn("Error while extracting response event form XHR response",a)}})}function Nl(e,t,n){return zE(e.failedRequestStatusCodes,t)&&jE(e.failedRequestTargets,n)&&!Mc(n,x())}function Dl(e){const t=`HTTP Client Error with status code: ${e.status}`,n={message:t,exception:{values:[{type:"Error",value:t}]},request:{url:e.url,method:e.method,headers:e.requestHeaders,cookies:e.requestCookies},contexts:{response:{status_code:e.status,headers:e.responseHeaders,cookies:e.responseCookies,body_size:HE(e.responseHeaders)}}};return dt(n,{type:"http.client",handled:!1}),n}function YE(e,t){return!t&&e instanceof Request||e instanceof Request&&e.bodyUsed?e:new Request(e,t)}function Ll(){const e=x();return e?!!e.getOptions().sendDefaultPii:!1}const ds=A,VE=7,Pl="ContextLines",KE=((e={})=>{const t=e.frameContextLines!=null?e.frameContextLines:VE;return{name:Pl,setupOnce(){},processEvent(n){return JE(n,t)}}}),XE=KE;Z(Pl,XE);function JE(e,t){const n=ds.document,r=ds.location&&Xd(ds.location.href);if(!n||!r)return e;const s=e.exception&&e.exception.values;if(!s||!s.length)return e;const i=n.documentElement.innerHTML;if(!i)return e;const o=["<!DOCTYPE html>","<html>",...i.split(`
362`),"</html>"];return s.forEach(a=>{const c=a.stacktrace;c&&c.frames&&(c.frames=c.frames.map(u=>ZE(u,o,r,t)))}),e}function ZE(e,t,n,r){return e.filename!==n||!e.lineno||!t.length||Sd(t,e,r),e}function En(e){return new Promise((t,n)=>{e.oncomplete=e.onsuccess=()=>t(e.result),e.onabort=e.onerror=()=>n(e.error)})}function QE(e,t){const n=indexedDB.open(e);n.onupgradeneeded=()=>n.result.createObjectStore(t);const r=En(n);return s=>r.then(i=>s(i.transaction(t,"readwrite").objectStore(t)))}function $l(e){return En(e.getAllKeys())}function eT(e,t,n){return e(r=>$l(r).then(s=>{if(!(s.length>=n))return r.put(t,Math.max(...s,0)+1),En(r.transaction)}))}function tT(e){return e(t=>$l(t).then(n=>{if(n.length!==0)return En(t.get(n[0])).then(r=>(t.delete(n[0]),En(t.transaction).then(()=>r)))}))}function nT(e){let t;function n(){return t==null&&(t=QE(e.dbName||"sentry-offline",e.storeName||"queue")),t}return{insert:async r=>{try{const s=await Ka(r,e.textEncoder);await eT(n(),s,e.maxQueueSize||30)}catch{}},pop:async()=>{try{const r=await tT(n());if(r)return cf(r,e.textEncoder||new TextEncoder,e.textDecoder||new TextDecoder)}catch{}}}}function rT(e){return t=>e({...t,createStore:nT})}function Tv(e){return rT(Fp(e))}const ma=1e6,tr=String(0),sT="main";let Fl="",Bl="",Hl="",Us=C.navigator&&C.navigator.userAgent||"",Ul="";const iT=C.navigator&&C.navigator.language||C.navigator&&C.navigator.languages&&C.navigator.languages[0]||"";function oT(e){return typeof e=="object"&&e!==null&&"getHighEntropyValues"in e}const ga=C.navigator&&C.navigator.userAgentData;oT(ga)&&ga.getHighEntropyValues(["architecture","model","platform","platformVersion","fullVersionList"]).then(e=>{if(Fl=e.platform||"",Hl=e.architecture||"",Ul=e.model||"",Bl=e.platformVersion||"",e.fullVersionList&&e.fullVersionList.length>0){const t=e.fullVersionList[e.fullVersionList.length-1];Us=`${t.brand} ${t.version}`}}).catch(e=>{});function aT(e){return!("thread_metadata"in e)}function cT(e){return aT(e)?dT(e):e}function uT(e){const t=e&&e.contexts&&e.contexts.trace&&e.contexts.trace.trace_id;return typeof t=="string"&&t.length!==32&&F&&h.log(`[Profiling] Invalid traceId: ${t} on profiled event`),typeof t!="string"?"":t}function lT(e,t,n,r){if(r.type!=="transaction")throw new TypeError("Profiling events may only be attached to transactions, this should never occur.");if(n==null)throw new TypeError(`Cannot construct profiling event envelope without a valid profile. Got ${n} instead.`);const s=uT(r),i=cT(n),o=t||(typeof r.start_timestamp=="number"?r.start_timestamp*1e3:Date.now()),a=typeof r.timestamp=="number"?r.timestamp*1e3:Date.now();return{event_id:e,timestamp:new Date(o).toISOString(),platform:"javascript",version:"1",release:r.release||"",environment:r.environment||wn,runtime:{name:"javascript",version:C.navigator.userAgent},os:{name:Fl,version:Bl,build_number:Us},device:{locale:iT,model:Ul,manufacturer:Us,architecture:Hl,is_emulator:!1},debug_meta:{images:hT(n.resources)},profile:i,transactions:[{name:r.transaction||"",id:r.event_id||W(),trace_id:s,active_thread_id:tr,relative_start_ns:"0",relative_end_ns:((a-o)*1e6).toFixed(0)}]}}function Wl(e){return e.op==="pageload"}function dT(e){let t,n=0;const r={samples:[],stacks:[],frames:[],thread_metadata:{[tr]:{name:sT}}};if(!e.samples.length)return r;const s=e.samples[0].timestamp,i=typeof performance.timeOrigin=="number"?performance.timeOrigin:ue||0,o=i-(ue||i);for(let a=0;a<e.samples.length;a++){const c=e.samples[a];if(c.stackId===void 0){t===void 0&&(t=n,r.stacks[t]=[],n++),r.samples[a]={elapsed_since_start_ns:((c.timestamp+o-s)*ma).toFixed(0),stack_id:t,thread_id:tr};continue}let u=e.stacks[c.stackId];const l=[];for(;u;){l.push(u.frameId);const f=e.frames[u.frameId];r.frames[u.frameId]===void 0&&(r.frames[u.frameId]={function:f.name,abs_path:typeof f.resourceId=="number"?e.resources[f.resourceId]:void 0,lineno:f.line,colno:f.column}),u=u.parentId===void 0?void 0:e.stacks[u.parentId]}const d={elapsed_since_start_ns:((c.timestamp+o-s)*ma).toFixed(0),stack_id:n,thread_id:tr};r.stacks[n]=l,r.samples[a]=d,n++}return r}function fT(e,t){if(!t.length)return e;for(const n of t)e[1].push([{type:"profile"},n]);return e}function pT(e){const t=[];return Bt(e,(n,r)=>{if(r==="transaction")for(let s=1;s<n.length;s++){const i=n[s];
362i&&i.contexts&&i.contexts.profile&&i.contexts.profile.profile_id&&t.push(n[s])}}),t}const _a=new WeakMap;function hT(e){const t=A._sentryDebugIds;if(!t)return[];const n=x(),r=n&&n.getOptions(),s=r&&r.stackParser;if(!s)return[];let i;const o=_a.get(s);o?i=o:(i=new Map,_a.set(s,i));const a=Object.keys(t).reduce((u,l)=>{let d;const f=i.get(l);f?d=f:(d=s(l),i.set(l,d));for(let p=d.length-1;p>=0;p--){const m=d[p],_=m&&m.filename;if(m&&_){u[_]=t[l];break}}return u},{}),c=[];for(const u of e)u&&a[u]&&c.push({type:"sourcemap",code_file:u,debug_id:a[u]});return c}function mT(e){return typeof e!="number"&&typeof e!="boolean"||typeof e=="number"&&isNaN(e)?(F&&h.warn(`[Profiling] Invalid sample rate. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(e)} of type ${JSON.stringify(typeof e)}.`),!1):e===!0||e===!1?!0:e<0||e>1?(F&&h.warn(`[Profiling] Invalid sample rate. Sample rate must be between 0 and 1. Got ${e}.`),!1):!0}function gT(e){return e.samples.length<2?(F&&h.log("[Profiling] Discarding profile because it contains less than 2 samples"),!1):e.frames.length?!0:(F&&h.log("[Profiling] Discarding profile because it contains no frames"),!1)}let jl=!1;const zl=3e4;function _T(e){return typeof e=="function"}function yT(){const e=C.Profiler;if(!_T(e)){F&&h.log("[Profiling] Profiling is not supported by this browser, Profiler interface missing on window object.");return}const t=10,n=Math.floor(zl/t);try{return new e({sampleInterval:t,maxBufferSize:n})}catch{F&&(h.log("[Profiling] Failed to initialize the Profiling constructor, this is likely due to a missing 'Document-Policy': 'js-profiling' header."),h.log("[Profiling] Disabling profiling for current user session.")),jl=!0}}function Ws(e){if(jl)return F&&h.log("[Profiling] Profiling has been disabled for the duration of the current user session."),!1;if(!e.isRecording())return F&&h.log("[Profiling] Discarding profile because transaction was not sampled."),!1;const t=x(),n=t&&t.getOptions();if(!n)return F&&h.log("[Profiling] Profiling disabled, no options found."),!1;const r=n.profilesSampleRate;return mT(r)?r?(r===!0?!0:Math.random()<r)?!0:(F&&h.log(`[Profiling] Discarding profile because it's not included in the random sample (sampling rate = ${Number(r)})`),!1):(F&&h.log("[Profiling] Discarding profile because a negative sampling decision was inherited or profileSampleRate is set to 0"),!1):(F&&h.warn("[Profiling] Discarding profile because of invalid sample rate."),!1)}function ST(e,t,n,r){return gT(n)?lT(e,t,n,r):null}const ct=new Map;function bT(){return ct.size}function ET(e){const t=ct.get(e);return t&&ct.delete(e),t}function TT(e,t){if(ct.set(e,t),ct.size>30){const n=ct.keys().next().value;ct.delete(n)}}function vv(e){return e?Ws(e)?js(e):e:(F&&h.log("[Profiling] Transaction is undefined, skipping profiling"),e)}function js(e){let t;Wl(e)&&(t=tt()*1e3);const n=yT();if(!n)return e;F&&h.log(`[Profiling] started profiling transaction: ${j(e).description}`);const r=W();async function s(){return!e||!n?null:n.stop().then(c=>(i&&(C.clearTimeout(i),i=void 0),F&&h.log(`[Profiling] stopped profiling of transaction: ${j(e).description}`),c?(TT(r,c),null):(F&&h.log(`[Profiling] profiler returned null profile for: ${j(e).description}`,"this may indicate an overlapping transaction or a call to stopProfiling with a profile title that was never started"),null))).catch(c=>(F&&h.log("[Profiling] error while stopping profiler:",c),null))}let i=C.setTimeout(()=>{F&&h.log("[Profiling] max profile duration elapsed, stopping profiling for:",j(e).description),s()},zl);const o=e.end.bind(e);function a(){return e?(s().then(()=>{e.setContext("profile",{profile_id:r,start_timestamp:t}),o()},()=>{o()}),e):o()}return e.end=a,e}const Gl="BrowserProfiling",vT=(()=>({name:Gl,setupOnce(){},setup(e){const n=ne().getTransaction();if(n&&Wl(n)&&Ws(n)&&js(n),typeof e.on!="function"){h.warn("[Profiling] Client does not support hooks, profiling will be disabled");return}e.on("startTransaction",r=>{Ws(r)&&js(r)}),e.on("beforeEnvelope",r=>{if(!bT())return;const s=pT(r);if(!s.length)return;const i=[];for(const o of s){const a=o&&o.contexts,c=a&&a.profile&&a.profile.profile_id,u=a&&a.profile&&a.profile.start_timestamp;if(typeof c!="string"){F&&h.log("[Profiling] cannot find profile for a transaction without a profile context");continue}if(!c){F&&h.log("[Profiling] cannot find profile for a transaction without a profile context");continue}a&&a.profile&&delete a.profile;const l=ET(c);if(!l){F&&h.log(`[Profiling] Could not retrieve profile for transaction: ${c}`);continue}const d=ST(c,u,l,o);d&&i.push(d)}fT(r,i)})}})),IT=vT,Iv=Z(Gl,IT);let ql={};C.Sentry&&C.Sentry.Integrations&&(ql=C.Sentry.Integrations);const wv={...ql,...Ch,...e_},Yl=["activate","mount","update"],wT=/(?:^|[-_])(\w)/g,kT=e=>e.replace(wT,t=>t.toUpperCase()).replace(/[-_]/g,""),CT="<Root>",fs="<Anonymous>",RT=(e,t)=>e.repeat?e.repeat(t):e,mn=(e,t)=>{if(!e)return fs;if(e.$root===e)return CT;if(!e.$options)return fs;const n=e.$options;let r=n.name||n._componentTag;const s=n.__file;if(!r&&s){const i=s.match(/([^/\\]+)\.vue$/);i&&(r=i[1])}return(r?`<${kT(r)}>`:fs)+(s&&t!==!1?` at ${s}`:"")},xT=e=>{if(e&&(e._isVue||e.__isVue)&&e.$parent){const t=[];let n=0;for(;e;){if(t.length>0){const s=t[t.length-1];if(s.constructor===e.constructor){n++,e=e.$parent;continue}else n>0&&(t[t.length-1]=[s,n],n=0)}t.push(e),e=e.$parent}return`
363
364found in
365
366${t.map((s,i)=>`${(i===0?"--->
366 ":RT(" ",5+i*2))+(Array.isArray(s)?`${mn(s[0])}... (${s[1]} recursive calls)`:mn(s))}`).join(`
367`)}`}return`
368
369(found in ${mn(e)})`},MT=(e,t)=>{const{errorHandler:n,warnHandler:r,silent:s}=e.config;e.config.errorHandler=(i,o,a)=>{const c=mn(o,!1),u=o?xT(o):"",l={componentName:c,lifecycleHook:a,trace:u};if(t.attachProps&&o&&(o.$options&&o.$options.propsData?l.propsData=o.$options.propsData:o.$props&&(l.propsData=o.$props)),setTimeout(()=>{Jt(i,{captureContext:{contexts:{vue:l}},mechanism:{handled:!1}})}),typeof n=="function"&&n.call(e,i,o,a),t.logErrors){const d=typeof console<"u",f=`Error in ${a}: "${i&&i.toString()}"`;r?r.call(null,f,o,u):d&&!s&&we(()=>{console.error(`[Vue warn]: ${f}${u}`)})}}},AT=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,ya="ui.vue",OT={activate:["activated","deactivated"],create:["beforeCreate","created"],unmount:["beforeUnmount","unmounted"],destroy:["beforeDestroy","destroyed"],mount:["beforeMount","mounted"],update:["beforeUpdate","updated"]};function NT(){return ne().getTransaction()}function DT(e,t,n){e.$_sentryRootSpanTimer&&clearTimeout(e.$_sentryRootSpanTimer),e.$_sentryRootSpanTimer=setTimeout(()=>{e.$root&&e.$root.$_sentryRootSpan&&(e.$root.$_sentryRootSpan.end(t),e.$root.$_sentryRootSpan=void 0)},n)}const LT=e=>{const t=(e.hooks||[]).concat(Yl).filter((r,s,i)=>i.indexOf(r)===s),n={};for(const r of t){const s=OT[r];if(!s){AT&&h.warn(`Unknown hook: ${r}`);continue}for(const i of s)n[i]=function(){const o=this.$root===this;
369o&&Ut()&&(this.$_sentryRootSpan=this.$_sentryRootSpan||cr({name:"Application Render",op:`${ya}.render`,origin:"auto.ui.vue"}));const a=mn(this,!1),c=Array.isArray(e.trackComponents)?e.trackComponents.indexOf(a)>-1:e.trackComponents;if(!(!o&&!c))if(this.$_sentrySpans=this.$_sentrySpans||{},i==s[0]){if(this.$root&&this.$root.$_sentryRootSpan||Ut()){const l=this.$_sentrySpans[r];l&&l.end(),this.$_sentrySpans[r]=cr({name:`Vue <${a}>`,op:`${ya}.${r}`,origin:"auto.ui.vue"})}}else{const u=this.$_sentrySpans[r];if(!u)return;u.end(),DT(this,tt(),e.timeout)}}}return n},PT=A,$T={Vue:PT.Vue,attachProps:!0,logErrors:!0,hooks:Yl,timeout:2e3,trackComponents:!1},Vl="Vue",FT=((e={})=>({name:Vl,setupOnce(){},setup(t){BT(t,e)}})),Kl=FT,kv=Z(Vl,Kl);function BT(e,t){const n={...$T,...e.getOptions(),...t};if(!n.Vue&&!n.app){we(()=>{console.warn("[@sentry/vue]: Misconfigured SDK. Vue specific errors will not be captured.\nUpdate your `Sentry.init` call with an appropriate config option:\n`app` (Application Instance - Vue 3) or `Vue` (Vue Constructor - Vue 2).")});return}n.app?Ks(n.app).forEach(s=>Sa(s,n)):n.Vue&&Sa(n.Vue,n)}const Sa=(e,t)=>{const n=e;(n._instance&&n._instance.isMounted)===!0&&we(()=>{console.warn("[@sentry/vue]: Misconfigured SDK. Vue app is already mounted. Make sure to call `app.mount()` after `Sentry.init()`.")}),MT(e,t),yt(t)&&e.mixin(LT({...t,...t.tracingOptions}))};function Cv(e={}){const t={_metadata:{sdk:{name:"sentry.javascript.vue",packages:[{name:"npm:@sentry/vue",version:gn}],version:gn}},defaultIntegrations:[...Iu(),Kl()],...e};Zg(t)}function Rv(e,t={}){return(n,r=!0,s=!0)=>{r&&C&&C.location&&n({name:C.location.pathname,op:"pageload",attributes:{[$e]:"auto.pageload.vue",[le]:"url"}}),Xl(e,{routeLabel:t.routeLabel||"name",instrumentNavigation:s,instrumentPageLoad:r},n)}}function Xl(e,t,n){e.onError(r=>Jt(r,{mechanism:{handled:!1}})),e.beforeEach((r,s,i)=>{const o=s.name==null&&s.matched.length===0,a={[$e]:"auto.navigation.vue"};for(const l of Object.keys(r.params))a[`params.${l}`]=r.params[l];for(const l of Object.keys(r.query)){const d=r.query[l];d&&(a[`query.${l}`]=d)}let c=r.path,u="url";if(r.name&&t.routeLabel!=="path"?(c=r.name.toString(),u="custom"):r.matched[0]&&r.matched[0].path&&(c=r.matched[0].path,u="route"),t.instrumentPageLoad&&o){const l=NT();l&&((j(l).data||{})[le]!=="custom"&&(l.updateName(c),l.setAttribute(le,u)),l.setAttributes({...a,[$e]:"auto.pageload.vue"}))}t.instrumentNavigation&&!o&&(a[le]=u,n({name:c,op:"navigation",attributes:a})),i&&i()})}function xv(e={}){if(!e.router)return bo(e);const t=bo({...e,instrumentNavigation:!1}),{router:n,instrumentNavigation:r=!0,instrumentPageLoad:s=!0,routeLabel:i="name"}=e;return{...t,afterAllSetup(o){t.afterAllSetup(o),Xl(n,{routeLabel:i,instrumentNavigation:r,instrumentPageLoad:s},c=>{su(o,c)})}}}export{Sg as Breadcrumbs,zm as BrowserClient,Iv as BrowserProfilingIntegration,lv as BrowserTracing,Rg as Dedupe,zr as Feedback,ph as FunctionToString,Ng as GlobalHandlers,Hg as HttpContext,ac as Hub,nh as InboundFilters,wv as Integrations,zg as LinkedErrors,cv as ModuleMetadata,Wr as Replay,bv as ReplayCanvas,gn as SDK_VERSION,Hn as SEMANTIC_ATTRIBUTE_SENTRY_OP,$e as SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,Rt as SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE,le as SEMANTIC_ATTRIBUTE_SENTRY_SOURCE,Fe as Scope,Yg as TryCatch,kv as VueIntegration,C as WINDOW,Qe as addBreadcrumb,wp as addEventProcessor,_f as addGlobalEventProcessor,iv as addIntegration,yc as addTracingExtensions,MT as attachErrorHandler,uu as breadcrumbsIntegration,vu as browserApiErrorsIntegration,IT as browserProfilingIntegration,xv as browserTracingIntegration,gE as captureConsoleIntegration,xr as captureEvent,Jt as captureException,Is as captureMessage,Xi as captureSession,_v as captureUserFeedback,sg as chromeStackLineParser,XT as close,HT as configureScope,XE as contextLinesIntegration,sv as continueTrace,LT as createTracingMixins,Rc as createTransport,Wm as createUserFeedbackEnvelope,SE as debugIntegration,EE as dedupeIntegration,Jg as defaultIntegrations,pr as defaultRequestInstrumentationOptions,gg as defaultStackLineParsers,_g as defaultStackParser,rc as endSession,Fm as eventFromException,Bm as eventFromMessage,ou as exceptionFromError,kE as extraErrorDataIntegration,QT as extractTraceparentData,Ev as feedbackIntegration,KT as flush,hv as forceLoad,Pc as functionToStringIntegration,cg as geckoStackLineParser,Ut as getActiveSpan,Ue as getActiveTransaction,x as getClient,z as getCurrentHub,ne as getCurrentScope,Iu as getDefaultIntegrations,ws as getHubFromCarrier,Sv as getReplay,uc as getSpanStatusFromHttpCode,mu as globalHandlersIntegration,$E as httpClientIntegration,Su as httpContextIntegration,Dc as inbou
369ndFiltersIntegration,Cv as init,nu as instrumentOutgoingRequests,ZT as isInitialized,JT as lastEventId,Eu as linkedErrorsIntegration,Tv as makeBrowserOfflineTransport,Ym as makeFetchTransport,Qi as makeMain,ov as makeMultiplexedTransport,Km as makeXHRTransport,uv as metrics,Zp as moduleMetadataIntegration,mv as onLoad,vv as onProfilingStartRouteTransaction,dv as opera10StackLineParser,fv as opera11StackLineParser,av as parameterize,$b as replayCanvasIntegration,yv as replayIntegration,AE as reportingObserverIntegration,NE as rewriteFramesIntegration,Zb as sendFeedback,LE as sessionTimingIntegration,Af as setContext,Np as setCurrentClient,WT as setExtra,UT as setExtras,si as setHttpStatus,Qf as setMeasurement,zT as setTag,jT as setTags,GT as setUser,pv as showReportDialog,ev as spanStatusfromHttpCode,su as startBrowserTracingNavigationSpan,Rm as startBrowserTracingPageLoadSpan,cr as startInactiveSpan,Ki as startSession,nv as startSpan,rv as startSpanManual,VT as startTransaction,tv as trace,Kl as vueIntegration,Rv as vueRouterInstrumentation,dg as winjsStackLineParser,YT as withActiveSpan,qT as withIsolationScope,_t as withScope,gv as wrap};

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.