PageSourceSearch

https://account.ghost.org/assets/sentry-Cfp-Q2My.js

js ghost.org collected 2026-10-01 06:43:41 UTC 421,749 bytes, 507 lines download raw bytes

1
2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="3767d2a9-391c-58c2-89d9-d5a796a98b76")}catch(e){}}();
3var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),s=(e,n)=>{let r={};for(var i in e)t(r,i,{get:e[i],enumerable:!0});return n||t(r,Symbol.toStringTag,{value:`Module`}),r},c=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},l=(n,r,o)=>(o=n==null?{}:e(i(n)),c(r||!n||!n.__esModule||!a.call(n,`default`)?t(o,`default`,{value:n,enumerable:!0}):o,n));(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),t.credentials=e.crossOrigin===`use-credentials`?`include`:e.crossOrigin===`anonymous`?`omit`:`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();var u=o(((e,t)=>{t.exports=function(e){try{return JSON.parse(e)}catch{return null}}})),d={BadRequestError:{statusCode:400,level:`normal`,message:`The request could not be understood.`},IncorrectUsageError:{statusCode:400,level:`critical`,message:`We detected a misuse. Please read the stack trace.`},InternalServerError:{statusCode:500,level:`critical`,message:`The server has encountered an error.`},ValidationError:{statusCode:422,level:`normal`,message:`The request failed validation.`}},f=class extends Error{constructor(e){super(e),this.name=`FrontendGhostError`}};function p(){return typeof window<`u`&&typeof window.crypto?.randomUUID==`function`?window.crypto.randomUUID():`frontend-${Date.now()}-${Math.random().toString(16).slice(2)}`}function m(e,t){if(!t?.stack)return;let n=t.stack.split(`
4`);e.stack=[`${e.name}: ${e.message}`,...n.slice(1)].join(`
5`)}function h(e,t={}){let n=d[e]||d.InternalServerError,r=new f(t.message||n.message);return r.name=t.errorType||e,r.errorType=t.errorType||e,r.statusCode=t.statusCode||n.statusCode,r.level=t.level||n.level,r.id=t.id||p(),r.context=t.context,r.help=t.help,r.errorDetails=t.errorDetails,r.code=t.code||null,r.property=t.property||null,r.redirect=t.redirect||null,r.hideStack=t.hideStack||!1,r.isGhostError=!0,t.originalError&&(r.originalError=t.originalError,m(r,t.originalError)),r}function g(e){return!!(e&&typeof e==`object`&&e.isGhostError)}function _(e){return g(e)&&e.errorType===`ValidationError`}function v(e){return h(`BadRequestError`,e)}function y(e){return h(`IncorrectUsageError`,e)}function b(e){return h(`InternalServerError`,e)}function x(e){return h(`ValidationError`,e)}var S=typeof __SENTRY_DEBUG__>`u`||__SENTRY_DEBUG__,C=globalThis,w=`11.0.0`;function T(){return E(C),C}function E(e){let t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||`11.0.0`,t[w]=t[`11.0.0`]||{}}function D(e,t,n=C){let r=n.__SENTRY__=n.__SENTRY__||{},i=r[w]=r[`11.0.0`]||{};return i[e]||(i[e]=t())}var ee=[`debug`,`info`,`warn`,`error`,`log`,`assert`,`trace`],te=`Sentry Logger `,ne={};function re(e){if(!(`console`in C))return e();let t=C.console,n={},r=Object.keys(ne);r.forEach(e=>{let r=ne[e];n[e]=t[e],t[e]=r});try{return e()}finally{r.forEach(e=>{t[e]=n[e]})}}function ie(){ue().enabled=!0}function ae(){ue().enabled=!1}function O(){return ue().enabled}function oe(...e){le(`log`,...e)}function se(...e){le(`warn`,...e)}function ce(...e){le(`error`,...e)}function le(e,...t){S&&O()&&re(()=>{C.console[e](`${te}[${e}]:`,...t)})}function ue(){return S?D(`loggerSettings`,()=>({enabled:!1})):{enabled:!1}}var k={enable:ie,disable:ae,isEnabled:O,log:oe,warn:se,error:ce},de=50,fe=/\(error: (.*)\)/,pe=/captureMessage|captureException/;function me(...e){let t=e.sort((e,t)=>
5e[0]-t[0]).map(e=>e[1]);return(e,n=0,r=0)=>{let i=[],a=e.split(`
6`);for(let e=n;e<a.length;e++){let n=a[e];n.length>1024&&(n=n.slice(0,1024));let o=fe.test(n)?n.replace(fe,`$1`):n;if(!o.includes(`Error: `)){for(let e of t){let t=e(o);if(t){i.push(t);break}}if(i.length>=de+r)break}}return ge(i.slice(r))}}function he(e){return Array.isArray(e)?me(...e):e}function ge(e){if(!e.length)return[];let t=Array.from(e);return/sentryWrapped/.test(_e(t).function||``)&&t.pop(),t.reverse(),pe.test(_e(t).function||``)&&(t.pop(),pe.test(_e(t).function||``)&&t.pop()),t.slice(0,de).map(e=>({...e,filename:e.filename||_e(t).filename,function:e.function||`?`}))}function _e(e){return e[e.length-1]||{}}var ve=`<anonymous>`;function A(e){try{return!e||typeof e!=`function`?ve:e.name||ve}catch{return ve}}function ye(e){let t=e.exception;if(t){let e=[];try{return t.values.forEach(t=>{t.stacktrace.frames&&e.push(...t.stacktrace.frames)}),e}catch{return}}}function be(e){let t=e?.startsWith(`file://`)?e.slice(7):e;return t?.match(/\/[A-Z]:/)&&(t=t.slice(1)),t}var xe={},Se={};function Ce(e,t){return xe[e]=xe[e]||[],xe[e].push(t),()=>{let n=xe[e];if(n){let e=n.indexOf(t);e!==-1&&n.splice(e,1)}}}function we(e,t){if(!Se[e]){Se[e]=!0;try{t()}catch(t){S&&k.error(`Error while instrumenting ${e}`,t)}}}function Te(e,t){let n=e&&xe[e];if(n)for(let r of n)try{r(t)}catch(t){S&&k.error(`Error while triggering instrumentation handler.
7Type: ${e}
8Name: ${A(r)}
9Error:`,t)}}var Ee=null;function De(e){let t=`error`;Ce(t,e),we(t,Oe)}function Oe(){Ee=C.onerror,C.onerror=function(e,t,n,r,i){return Te(`error`,{column:r,error:i,line:n,msg:e,url:t}),Ee?Ee.apply(this,arguments):!1},C.onerror.__SENTRY_INSTRUMENTED__=!0}var ke=null;function Ae(e){let t=`unhandledrejection`;Ce(t,e),we(t,je)}function je(){ke=C.onunhandledrejection,C.onunhandledrejection=function(e){return Te(`unhandledrejection`,e),!ke||ke.apply(this,arguments)},C.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}var Me=Object.prototype.toString;function Ne(e){switch(Me.call(e)){case`[object Error]`:case`[object Exception]`:case`[object DOMException]`:case`[object WebAssembly.Exception]`:return!0;default:return Ke(e,Error)}}function Pe(e,t){return Me.call(e)===`[object ${t}]`}function Fe(e){return Pe(e,`ErrorEvent`)}function Ie(e){return Pe(e,`DOMError`)}function Le(e){return Pe(e,`DOMException`)}function Re(e){return Pe(e,`String`)}function ze(e){return typeof e==`object`&&!!e&&`__sentry_template_string__`in e&&`__sentry_template_values__`in e}function Be(e){return e===null||ze(e)||typeof e!=`object`&&typeof e!=`function`}function Ve(e){return Pe(e,`Object`)}function He(e){return typeof e==`object`&&!!e}function Ue(e){return typeof Event<`u`&&Ke(e,Event)}function We(e){return Pe(e,`RegExp`)}function Ge(e){return!!(e?.then&&typeof e.then==`function`)}function Ke(e,t){try{return e instanceof t}catch{return!1}}function qe(e){return typeof Request<`u`&&Ke(e,Request)}function Je(e,t,n){if(!(t in e))return;let r=e[t];if(typeof r!=`function`)return;let i=n(r);typeof i==`function`&&Xe(i,r);try{e[t]=i}catch{S&&k.log(`Failed to replace method "${t}" in object`,e)}}function Ye(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch{S&&k.log(`Failed to add non-enumerable property "${String(t)}" to object`,e)}}function Xe(e,t){try{e.prototype=t.prototype=t.prototype||{},Ye(e,`__sentry_original__`,t)}catch{}}function Ze(e){return e.__sentry_original__}function Qe(e){if(Ne(e))return{message:e.message,name:e.name,stack:e.stack,...$e(e)};if(Ue(e)){let{type:t,target:n,currentTarget:r,detail:i}=e;return{type:t,target:n,currentTarget:r,...i?{detail:i}:{},...$e(e)}}return e}function $e(e){return He(e)?Object.fromEntries(Object.entries(e)):{}}function et(e){let t=Object.keys(Qe(e));return t.sort(),t[0]?t.join(`, `):`[object has no keys]`}var tt;function nt(e){if(tt!==void 0)return tt?tt(e):e();let t=Symbol.for(`__SENTRY_SAFE_RANDOM_ID_WRAPPER__`),n=C;return t in n&&typeof n[t]==`function`?(tt=n[t],tt(e)):(tt=null,e())}function rt(){return nt(()=>Math.random())}function it(){return nt(()=>Date.now())}var at=Symbol.for(`sentry.skipNormalization`),ot=Symbol.for(`sentry.overrideNormalizationDepth`);function st(e){Ye(e,at,!0)}function ct(e){return!!e[at]}function lt(e){let t=e[ot];return typeof t==`number`?t:void 0}var ut;function dt(e){ut=e}function ft(e,t=100,n=1/0){try{return mt(``,e,t,n)}catch(e){return{ERROR:`**non-serializable** (${e})`}}}function pt(e,t=3,n=102400){let r=ft(e,t);return vt(r)>n?pt(e,t-1,n):r}function mt(e,t,n=1/0,r=1/0,i=yt()){let[a,o]=i;
9if(t==null||[`boolean`,`string`].includes(typeof t)||typeof t==`number`&&Number.isFinite(t))return t;let s=ht(e,t);if(!s.startsWith(`[object `))return s;if(ct(t))return t;let c=lt(t),l=c===void 0?n:c;if(l===0)return s.replace(`object `,``);if(a(t))return`[Circular ~]`;let u=t;if(u&&typeof u.toJSON==`function`)try{return mt(``,u.toJSON(),l-1,r,i)}catch{}let d=Array.isArray(t)?[]:{},f=0,p=Qe(t);for(let e in p){if(!Object.prototype.hasOwnProperty.call(p,e))continue;if(f>=r){d[e]=`[MaxProperties ~]`;break}let t=p[e];d[e]=mt(e,t,l-1,r,i),f++}return o(t),d}function ht(e,t){try{if(ut){let e=ut(t);if(e)return e}return typeof global<`u`&&t===global?`[Global]`:typeof t==`number`&&!Number.isFinite(t)?`[${t}]`:typeof t==`function`?`[Function: ${A(t)}]`:typeof t==`symbol`?`[${String(t)}]`:typeof t==`bigint`?`[BigInt: ${String(t)}]`:`[object ${gt(t)}]`}catch(e){return`**non-serializable** (${e})`}}function gt(e){let t=Object.getPrototypeOf(e);return t?.constructor?t.constructor.name:`null prototype`}function _t(e){return~-encodeURI(e).split(/%..|./).length}function vt(e){return _t(JSON.stringify(e))}function yt(){let e=new WeakSet;function t(t){return e.has(t)?!0:(e.add(t),!1)}function n(t){e.delete(t)}return[t,n]}function bt(e,t=0){return typeof e!=`string`||t===0||e.length<=t?e:`${e.slice(0,t)}...`}function xt(e,t){let n=e,r=n.length;if(r<=150)return n;t>r&&(t=r);let i=Math.max(t-60,0);i<5&&(i=0);let a=Math.min(i+140,r);return a>r-5&&(a=r),a===r&&(i=Math.max(a-140,0)),n=n.slice(i,a),i>0&&(n=`'{snip} ${n}`),a<r&&(n+=` {snip}`),n}function St(e,t){if(!Array.isArray(e))return``;let n=[];for(let t=0;t<e.length;t++){let r=e[t];Be(r)?n.push(String(r)):r instanceof Error?n.push(r.message?`${r.name}: ${r.message}`:r.name):n.push(ht(void 0,r))}return n.join(t)}function Ct(e,t,n=!1){return Re(e)?We(t)?t.test(e):Re(t)?n?e===t:e.includes(t):typeof t==`function`&&t(e):!1}function wt(e,t=[],n=!1){for(let r of t)if(Ct(e,r,n))return!0;return!1}function Tt(){let e=C;return e.crypto||e.msCrypto}var Et;function Dt(){return rt()*16}function Ot(e=Tt()){try{if(e?.randomUUID)return nt(()=>e.randomUUID()).replace(/-/g,``)}catch{}return Et||=`10000000100040008000100000000000`,Et.replace(/[018]/g,e=>(e^(Dt()&15)>>e/4).toString(16))}function kt(e){return e.exception?.values?.[0]}function At(e){let{message:t,event_id:n}=e;if(t)return t;let r=kt(e);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||`<unknown>`:n||`<unknown>`}function jt(e,t,n){let r=e.exception=e.exception||{},i=r.values=r.values||[],a=i[0]=i[0]||{};a.value||=t||``,a.type||=n||`Error`}function Mt(e,t){let n=kt(e);n&&Pt(n,t)}function Nt(e,t){let n=e.exception?.values,r=n?.find(e=>e.mechanism?.exception_id===0)??n?.[0];r&&Pt(r,t)}function Pt(e,t){let n={type:`generic`,handled:!0},r=e.mechanism;e.mechanism={...n,...r,...t},t&&`data`in t&&(e.mechanism.data={...r?.data,...t.data})}function Ft(e,t,n=5){if(t.lineno===void 0)return;let r=e.length,i=Math.max(Math.min(r-1,t.lineno-1),0);t.pre_context=e.slice(Math.max(0,i-n),i).map(e=>xt(e,0)),t.context_line=xt(e[Math.min(r-1,i)],t.colno||0),t.post_context=e.slice(Math.min(i+1,r),i+1+n).map(e=>xt(e,0))}function It(e){if(Lt(e))return!0;try{Ye(e,`__sentry_captured__`,!0)}catch{}return!1}function Lt(e){try{return e.__sentry_captured__}catch{}}var Rt=1e3;function zt(){return it()/Rt}function Bt(){let{performance:e}=C;if(!e?.now||!e.timeOrigin)return zt;let t=e.timeOrigin;return()=>(t+nt(()=>e.now()))/Rt}var Vt;function Ht(){return(Vt??=Bt())()}var Ut=null;function Wt(){let{performance:e}=C;if(!e?.now)return;let t=nt(()=>e.now()),n=it(),r=e.timeOrigin;return typeof r==`number`&&Math.abs(r+t-n)<3e5?r:n-t}function Gt(){return Ut===null&&(Ut=Wt()),Ut}function Kt(e){let t=Ht(),n={sid:Ot(),init:!0,timestamp:t,started:t,duration:0,status:`ok`,errors:0,ignoreDuration:!1,toJSON:()=>Yt(n)};return e&&qt(n,e),n}function qt(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||Ht(),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:Ot()),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{let t=e.timestamp-e.started;e.duration=t>=0?t: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),t
9ypeof t.errors==`number`&&(e.errors=t.errors),t.status&&(e.status=t.status)}function Jt(e,t){let n={};t?n={status:t}:e.status===`ok`&&(n={status:`exited`}),qt(e,n)}function Yt(e){return{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}}}function Xt(e,t,n=2){if(!t||typeof t!=`object`||n<=0)return t;if(e&&Object.keys(t).length===0)return e;let r={...e};for(let e in t)Object.prototype.hasOwnProperty.call(t,e)&&(r[e]=Xt(r[e],t[e],n-1));return r}function Zt(){return Ot()}function Qt(){return Ot().substring(16)}var $t=100,en=class e{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._attributes={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},Ye(this,`refs`,{}),this._propagationContext={traceId:Zt(),sampleRand:rt()}}clone(){let t=new e;return t._breadcrumbs=[...this._breadcrumbs],t._tags={...this._tags},t._attributes={...this._attributes},t._extra={...this._extra},t._contexts={...this._contexts},this._contexts.flags&&(t._contexts.flags={values:[...this._contexts.flags.values]}),t._user=this._user,t._level=this._level,t._session=this._session,t._transactionName=this._transactionName,t._fingerprint=this._fingerprint,t._eventProcessors=[...this._eventProcessors],t._attachments=[...this._attachments],t._sdkProcessingMetadata={...this._sdkProcessingMetadata},t._propagationContext={...this._propagationContext},t._client=this._client,t._lastEventId=this._lastEventId,t._conversationId=this._conversationId,t.refs={...this.refs},t}setClient(e){this._client=e}setLastEventId(e){this._lastEventId=e}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&qt(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}setConversationId(e){return this._conversationId=e||void 0,this._notifyScopeListeners(),this}setTags(e){return this._tags={...this._tags,...e},this._notifyScopeListeners(),this}setTag(e,t){return this.setTags({[e]:t})}setAttributes(e){return this._attributes={...this._attributes,...e},this._notifyScopeListeners(),this}setAttribute(e,t){return this.setAttributes({[e]:t})}removeAttribute(e){return e in this._attributes&&(delete this._attributes[e],this._notifyScopeListeners()),this}setExtras(e){return this._extra={...this._extra,...e},this._notifyScopeListeners(),this}setExtra(e,t){return this._extra={...this._extra,[e]:t},this._notifyScopeListeners(),this}setFingerprint(e){return this._fingerprint=e,this._notifyScopeListeners(),this}setLevel(e){return this._level=e,this._notifyScopeListeners(),this}setTransactionName(e){return this._transactionName=e,this._notifyScopeListeners(),this}setContext(e,t){return t===null?delete this._contexts[e]:this._contexts[e]=t,this._notifyScopeListeners(),this}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(t){if(!t)return this;let n=typeof t==`function`?t(this):t,{tags:r,attributes:i,extra:a,user:o,contexts:s,level:c,fingerprint:l=[],propagationContext:u,conversationId:d}=(n instanceof e?n.getScopeData():Ve(n)?t:void 0)||{};return this._tags={...this._tags,...r},this._attributes={...this._attributes,...i},this._extra={...this._extra,...a},this._contexts={...this._contexts,...s},o&&Object.keys(o).length&&(this._user=o),c&&(this._level=c),l.length&&(this._fingerprint=l),u&&(this._propagationContext=u),d&&(this._conversationId=d),this}addBreadcrumb(e,t){let n=typeof t==`number`?t:$t;if(n<=0)return this;let r={timestamp:zt(),...e,message:e.message?bt(e.message,2048):e.message};return this._breadcrumbs.push(r),this._breadcrumbs.length>n&&(this._breadcrumbs=this._breadcrumbs.slice(-n)),this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(e){return this._attachments.push(e),this}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,attributes:this._attributes,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,conversationId:this._conversationId}}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata=Xt(this._sdkProcessingMetadata,e,2),this}setPropagationContext(e){return this._propagationContext=e,this}getPropagationContext(){return this._propagationContext}captureException(e,t){let n=t?.event_id||Ot();if(!this._client)return S&&k.warn(`No client configured on scope - will not capture exception!`),n;let r=Error(`Sentry syntheticException`);return this._client.captureException(e,{originalException:e,syntheticException:r,...t,event_id:n},this),n}captureMessage(e,t,n){let r=n?.event_id||Ot();if(!this._client)return S&&k.warn(`No client configured on scope - will not capture message!`),r;let i=n?.syntheticException??Error(e);return this._client.captureMessage(e,t,{originalException:e,syntheticException:i,...n,event_id:r},this),r}captureEvent(e,t){let n=e.event_id||t?.event_id||Ot();return this._client?(this._client.captureEvent(e,{...t,event_id:n},this),n):(S&&k.warn(`No client configured on scope - will not capture event!`),n)}_notifyScopeListeners(){this._notifyingListeners||=(this._notifyingListeners=!0,this._scopeListeners.forEac
9h(e=>{e(this)}),!1)}};function tn(){return D(`defaultCurrentScope`,()=>new en)}function nn(){return D(`defaultIsolationScope`,()=>new en)}var rn=`__SENTRY_SUPPRESS_TRACING__`,an=e=>e instanceof Promise&&!e[on],on=Symbol(`chained PromiseLike`),sn=(e,t,n)=>{let r=e.then(e=>(t(e),e),e=>{throw n(e),e});return an(r)&&an(e)?r:cn(e,r)},cn=(e,t)=>{if(!t)return e;let n=!1;for(let r in e){if(r in t)continue;n=!0;let i=e[r];typeof i==`function`?Object.defineProperty(t,r,{value:(...t)=>i.apply(e,t),enumerable:!0,configurable:!0,writable:!0}):t[r]=i}return n&&Object.assign(t,{[on]:!0}),t},ln=class{constructor(e,t){let n;n=e||new en;let r;r=t||new en,this._stack=[{scope:n}],this._isolationScope=r}withScope(e){let t=this._pushScope(),n;try{n=e(t)}catch(e){throw this._popScope(),e}return Ge(n)?sn(n,()=>this._popScope(),()=>this._popScope()):(this._popScope(),n)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){let e=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:e}),e}_popScope(){return this._stack.length<=1?!1:!!this._stack.pop()}};function un(){let e=E(T());return e.stack=e.stack||new ln(tn(),nn())}function dn(e){return un().withScope(e)}function fn(e,t){let n=un();return n.withScope(()=>(n.getStackTop().scope=e,t(e)))}function pn(e){return un().withScope(()=>e(un().getIsolationScope()))}function mn(){return{suppressTracing:hn,withIsolationScope:pn,withScope:dn,withSetScope:fn,withSetIsolationScope:(e,t)=>pn(t),getCurrentScope:()=>un().getScope(),getIsolationScope:()=>un().getIsolationScope()}}function hn(e){return dn(t=>{t.setSDKProcessingMetadata({[rn]:!0});let n=e();return t.setSDKProcessingMetadata({[rn]:void 0}),n})}function gn(e){let t=E(e);return t.acs?t.acs:mn()}function _n(e){return typeof e==`object`&&!!e&&!Array.isArray(e)&&Object.keys(e).includes(`value`)}function vn(e,t){let{value:n,unit:r}=_n(e)?e:{value:e,unit:void 0},i=Sn(n),a=r&&typeof r==`string`?{unit:r}:{};if(i)return{...i,...a};if(!t||t===`skip-undefined`&&n===void 0)return;let o=``;try{o=JSON.stringify(n)??``}catch{}return{value:o,type:`string`,...a}}function yn(e,t=!1){let n={};for(let[r,i]of Object.entries(e??{})){let e=vn(i,t);e&&(n[r]=e)}return n}function bn(e){if(!e)return 0;let t=0;for(let[n,r]of Object.entries(e)){t+=n.length*2,t+=r.type.length*2,t+=(r.unit?.length??0)*2;let e=r.value;Array.isArray(e)?t+=xn(e[0])*e.length:Be(e)?t+=xn(e):t+=100}return t}function xn(e){return typeof e==`string`?e.length*2:typeof e==`boolean`?4:typeof e==`number`?8:0}function Sn(e){if(Array.isArray(e))return{value:e,type:`array`};let t=typeof e==`string`?`string`:typeof e==`boolean`?`boolean`:typeof e==`number`&&!Number.isNaN(e)?Number.isInteger(e)?`integer`:`double`:null;if(t)return{value:e,type:t}}function Cn(){return E(T()).externalPropagationContextProvider?.()}function wn(){return E(T()).externalPropagationContextProvider!==void 0}function j(){return gn(T()).getCurrentScope()}function M(){return gn(T()).getIsolationScope()}function Tn(){return D(`globalScope`,()=>new en)}function En(...e){let t=gn(T());if(e.length===2){let[n,r]=e;return n?t.withSetScope(n,r):t.withScope(r)}return t.withScope(e[0])}function Dn(...e){let t=gn(T());if(e.length===2){let[n,r]=e;return n?t.withSetIsolationScope(n,r):t.withIsolationScope(r)}return t.withIsolationScope(e[0])}function N(){return j().getClient()}function On(e){let t=Cn();if(t)return{trace_id:t.traceId,span_id:t.spanId};let{traceId:n,parentSpanId:r,propagationSpanId:i}=e.getPropagationContext(),a={trace_id:n,span_id:i||Qt()};return r&&(a.parent_span_id=r),a}var kn=`browser.bfcache.frame`,An=`browser.bfcache.not_restored_reason_count`,jn=`browser.bfcache.outcome`,Mn=`browser.bfcache.reason`,Nn=`browser.navigation.id`,Pn=`browser.navigation.type`,Fn=`browser.paint.type`,In=`code.file.path`,Ln=`code.function.name`,Rn=`db.operation.name`,zn=`db.system.name`,Bn=`graphql.document`,Vn=`graphql.operation.name`,Hn=`graphql.operation.type`,Un=`http.request.method`,Wn=`http.request.same_origin`,Gn=`http.response.body.size`,Kn=`http.response.size`,qn=`http.response.status_code`,Jn=`http.route`,Yn=`network.connection.effective_type`,Xn=`
9network.connection.rtt`,Zn=`network.connection.type`,Qn=`router.navigation.route.id`,$n=`sentry.idle_span_finish_reason`,er=`sentry.op`,tr=`sentry.origin`,nr=`sentry.replay_id`,rr=`sentry.sdk.name`,ir=`sentry.sdk.version`,ar=`sentry.segment.id`,or=`sentry.segment.name`,sr=`sentry.segment.name.source`,cr=`sentry.trace_lifecycle`,lr=`sentry.transaction`,ur=`server.address`,dr=`server.port`,fr=`ui.component_name`,pr=`url.domain`,mr=`url.fragment`,hr=`url.full`,gr=`url.path`,_r=`url.query`,vr=`url.scheme`,yr=`url.template`,br=`user_agent.original`,xr=`sentry.sample_rate`,Sr=`sentry.previous_trace_sample_rate`,Cr=`sentry.op`,wr=`sentry.origin`,Tr=`sentry.idle_span_finish_reason`,Er=`sentry.measurement_unit`,Dr=`sentry.measurement_value`,Or=`sentry.release`,kr=`sentry.environment`,Ar=`sentry.sdk.integrations`,jr=`user.id`,Mr=`user.email`,Nr=`user.ip_address`,Pr=`user.name`,Fr=`sentry.custom_span_name`,Ir=`sentry.profile_id`,Lr=`sentry.exclusive_time`,Rr=`sentry.link.type`,zr=`gen_ai.conversation.id`,Br=[`ok`,`deadline_exceeded`,`unauthenticated`,`permission_denied`,`not_found`,`resource_exhausted`,`invalid_argument`,`unimplemented`,`unavailable`,`internal_error`,`unknown_error`,`cancelled`,`already_exists`,`failed_precondition`,`aborted`,`out_of_range`,`data_loss`];function Vr(e){return e!==`ok`&&Br.includes(e)}function Hr(e){if(e<400&&e>=100)return{code:1};if(e>=400&&e<500)switch(e){case 401:return{code:2,message:`unauthenticated`};case 403:return{code:2,message:`permission_denied`};case 404:return{code:2,message:`not_found`};case 409:return{code:2,message:`already_exists`};case 413:return{code:2,message:`failed_precondition`};case 429:return{code:2,message:`resource_exhausted`};case 499:return{code:2,message:`cancelled`};default:return{code:2,message:`invalid_argument`}}if(e>=500&&e<600)switch(e){case 501:return{code:2,message:`unimplemented`};case 503:return{code:2,message:`unavailable`};case 504:return{code:2,message:`deadline_exceeded`};default:return{code:2,message:`internal_error`}}return{code:2,message:`internal_error`}}function Ur(e,t){e.setAttribute(`http.response.status_code`,t);let n=Hr(t);n.message!==`unknown_error`&&e.setStatus(n)}function Wr(e){try{let t=C.WeakRef;if(typeof t==`function`)return new t(e)}catch{}return e}function Gr(e){if(e){if(typeof e==`object`&&`deref`in e&&typeof e.deref==`function`)try{return e.deref()}catch{return}return e}}var Kr=`_sentryScope`,qr=`_sentryIsolationScope`,Jr=Symbol.for(`sentry.tracerProviderSpan`);function Yr(e,t,n){e&&(Ye(e,qr,Wr(n)),Ye(e,Kr,t))}function Xr(e){let t=e;return{scope:t[Kr],isolationScope:Gr(t[qr])}}function Zr(e){return e[Jr]===!0}var Qr=`sentry-`;function $r(e){let t=ti(e);if(!t)return;let n=Object.entries(t).reduce((e,[t,n])=>{if(t.startsWith(`sentry-`)){let r=t.slice(7);e[r]=n}return e},{});if(Object.keys(n).length>0)return n}function ei(e){if(e)return ri(Object.entries(e).reduce((e,[t,n])=>(n&&(e[`${Qr}${t}`]=n),e),{}))}function ti(e){if(e&&(Re(e)||Array.isArray(e)))return Array.isArray(e)?e.reduce((e,t)=>{let n=ni(t);return Object.entries(n).forEach(([t,n])=>{e[t]=n}),e},{}):ni(e)}function ni(e){return e.split(`,`).map(e=>{let t=e.indexOf(`=`);return t===-1?[]:[e.slice(0,t),e.slice(t+1)].map(e=>{try{return decodeURIComponent(e.trim())}catch{return}})}).reduce((e,[t,n])=>(t&&n&&(e[t]=n),e),{})}function ri(e){if(Object.keys(e).length!==0)return Object.entries(e).reduce((e,[t,n],r)=>{let i=`${encodeURIComponent(t)}=${encodeURIComponent(n)}`,a=r===0?i:`${e},${i}`;return a.length>8192?(S&&k.warn(`Not adding key: ${t} with val: ${n} to baggage header due to exceeding baggage size limits.`),e):a},``)}var ii=/^o(\d+)\./,ai=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)((?:\[[:.%\w]+\]|[\w.-]+))(?::(\d+))?\/(.+)/;function oi(e){return e===`http`||e===`https`}function si(e,t=!1){let{host:n,path:r,pass:i,port:a,projectId:o,protocol:s,publicKey:c}=e;return`${s}://${c}${t&&i?`:${i}`:``}@${n}${a?`:${a}`:``}/${r&&`${r}/`}${o}`}function ci(e){let t=ai.exec(e);if(!t){re(()=>{console.error(`Invalid Sentry Dsn: ${e}`)});return}let[n,r,i=``,a=``,o=``,s=``]=t.slice(1),c=``,l=s,u=l.split(`/`);if(u.length>1&&(c=u.slice(0,-1).join(`/`),l=u.pop()),l){let e=l.match(/^\d+/);e&&(l=e[0])}return li({host:a,pass:i,path:c,projectId:l,port:o,protocol:n,publicKey:r})}function li(e){return{protocol:e.protocol,publicKey:e.publicKey||``,pass:e.pass||``,host:e.host,port:e.port||``,path:e.path||``,projectId:e.projectId}}function ui(e){if(!S)return!0;let{port:t,projectId:n,protocol:r}=e;return[`protocol`,`publicKey`,`host`,`projectId`].find(t=>!e[t]&&(k.error(`Invalid Sentry Dsn: ${t} missing`),!0))?!1:n.match(/^\d+$/)?oi(r)?t&&isNaN(parseInt(t,10))?(k.error(`Invalid Sentry Dsn: Invalid port ${t}`),!1):!0:(k.error(`Invalid Sentry Dsn: Invalid protocol ${r}`),!1):(k.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),!1)}function di(e){return e.match(ii)?.[1]}function fi(e){let t=e.getOptions(),{host:n}=e.getDsn()||{},r;return t.orgId?r=String(t.orgId):n&&(r=di(n)),r}function pi(e){let t=typeof e==`string`?ci(e):li(e);if(t&&ui(t))return t}function mi(e){if(typeof e==`boolean`)return Number(e);let t=typeof e==`string`?parseFloat(e):e;if(!(typeof t!=`number`||isNaN(t)||t<0||t>1))return t}var hi=RegExp(`^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$`);function gi(e){if(!e)return;let t=e.match(hi);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 _i(e,t){let n=gi(e),r=$r(t);if(!n?.traceId)return{traceId:Zt(),sampleRand:rt()};let i=bi(n,r);r&&(r.sample_rand=i.toString());let{traceId:a,parentSpanId:o,parentSampled:s}=n;return{traceId:a,parentSpanId:o,sampled:s,dsc:r||{},sampleRand:i}}function vi(e=Zt(),t=Qt(),n){let r=``;return n!==void 0&&(r=n?`-1`:`-0`),`${e}-${t}${r}`}function yi(e=Zt(),t=Qt(),n){return`00-${e}-${t}-${n?`01`:`00`}`}function bi(e,t){let n=mi(t?.sample_rand);if(n!==void 0)return n;let r=mi(t?.sample_rate);return r&&e?.parentSampled!==void 0?e.parentSampled?rt()*r:r+rt()*(1-r):rt()}function xi(e,t){let n=fi(e);return t&&n&&t!==n?(k.log(`Won't continue trace because org IDs don't match (incoming baggage: ${t}, SDK options: ${n})`),!1):e.getOptions().strictTraceContinuation&&(t&&!n||!t&&n)?(k.log(`Starting a new trace because strict trace continuation is enabled but one org ID is missing (incoming baggage: ${t}, Sentry client: ${n})`),!1):!0}var Si=`span`;function Ci(e,t){t?e.refs[Si]=Wr(t):delete e.refs[Si]}function wi(e){return Gr(e.refs[Si])}function Ti(e){let{spanId:t,traceId:n}=e.spanContext(),{data:r,op:i,parent_span_id:a,status:o,origin:s,links:c}=Ni(e);return{parent_span_id:a,span_id:t,trace_id:n,data:r,op:i,status:o,origin:s,links:c}}function Ei(e){let{spanId:t,traceId:n,isRemote:r}=e.spanContext(),i=r?t:Ni(e).parent_span_id,a=Xr(e).scope;return{parent_span_id:i,span_id:r?a?.getPropagationContext().propagationSpanId||Qt():t,trace_id:n}}function Di(e){let{traceId:t,spanId:n}=e.spanContext();return vi(t,n,Ri(e))}function Oi(e){let{traceId:t,spanId:n}=e.spanContext();return yi(t,n,Ri(e))}function ki(e){if(e&&e.length>0)return e.map(({context:{spanId:e,traceId:t,traceFlags:n,...r},attributes:i})=>({span_id:e,trace_id:t,sampled:n===1,attributes:i,...r}))}function Ai(e){if(e?.length)return e.map(({context:{spanId:e,traceId:t,traceFlags:n},attributes:r})=>({span_id:e,trace_id:t,sampled:n===1,attributes:r}))}function ji(e){return typeof e==`number`?Mi(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?Mi(e.getTime()):Ht()}function Mi(e){return e>9999999999?e/1e3:e}function Ni(e){if(Li(e))return e.getStaticSpanJSON();let{spanId:t,traceId:n}=e.spanContext();if(Ii(e)){let{attributes:r,startTime:i,name:a,endTime:o,status:s,links:c}=e;return{span_id:t,trace_id:n,data:r,description:a,parent_span_id:Pi(e),start_timestamp:ji(i),timestamp:ji(o)||void 0,status:zi(s),op:r[Cr],origin:r[wr],links:ki(c)}}return{span_id:t,trace_id:n,start_timestamp:0,status:`ok`,data:{}}}function P(e){if(Li(e))return e.getSpanJSON();let{spanId:t,traceId:n}=e.spanContext();if(Ii(e)){let{attributes:r,startTime:i,name:a,endTime:o,status:s,links:c}=e;return{name:a,span_id:t,trace_id:n,parent_span_id:Pi(e),start_timestamp:ji(i),end_timestamp:ji(o)||void 0,is_segment:Yi(e),status:Bi(s),attributes:Vi(r,s),links:Ai(c)}}return{span_id:t,trace_id:n,start_timestamp:0,name:``,status:`ok`,is_segment:Yi(e),attributes:{}}}function Pi(e){return`parentSpanId`in e?e.parentSpanId:`parentSpanContext`in e?e.parentSpanContext?.spanId:void 0}function Fi(e){return{...e,end_timestamp:e.end_timestamp??e.start_timestamp,attributes:yn(e.attributes),links:e.links?.map(e=>({...e,attributes:yn(e.attributes)}))}}function Ii(e){let t=e;return!!t.attributes&&!!t.startTime&&!!t.name&&!!t.endTime&&!!t.status}function Li(e){return typeof e.getSpanJSON==`function`}function Ri(e){let{traceFlags:t}=e.spanContext();return t===1}function zi(e){return!e||e.code===0||e.code===1?`ok`:e.message&&Vr(e.message)?e.message:`internal_error`}function Bi(e){return!e||e.code===1||e.code===0||e.message===`cancelled`?`ok`:`error`}function Vi(e,t){let n=Bi(t)===`error`?t?.message:void 0;return{...n&&{"sentry.status.message":n},...e}}var Hi=`_sentryChildSpans`,Ui=`_sentryRootSpan`;function Wi(e,t){let n=e[Ui]||e;Ye(t,Ui,n),t.setAttribute(sr,void 0),Ri(e)&&(e.isRecording()||n.isRecording())&&(e[Hi]?e[Hi].add(t):Ye(e,Hi,new Set([t])))}function Gi(e,t){e[Hi]&&e[Hi].delete(t)}function Ki(e){let t=new Set;function n(e){if(!t.has(e)&&Ri(e)){t.add(e);let r=e[Hi]?Array.from(e[Hi]):[];for(let e of r)n(e)}}return n(e),Array.from(t)}var qi=Ji;function Ji(e){return e[Ui]||e}function Yi(e){return e===Ji(e)}function F(e){let t=gn(T());return t.getActiveSpan?t.getActiveSpan(e):wi(e||j())}function Xi(e,t){e.updateName(t),e.setAttributes({[Fr]:t}),Zi(e,`custom`)}function Zi(e,t){Yi(e)&&e.setAttribute(sr,t)}var Qi=!1;
9function $i(){if(Qi)return;function e(){let e=F(),t=e&&qi(e);if(t){let e=`internal_error`;S&&k.log(`[Tracing] Root span: ${e} -> Global error occurred`),t.setStatus({code:2,message:e})}}Qi=!0,De(e),Ae(e)}function ea(e){if(typeof __SENTRY_TRACING__==`boolean`&&!__SENTRY_TRACING__)return!1;let t=e||N()?.getOptions();return!!t&&(t.tracesSampleRate!=null||!!t.tracesSampler)}function ta(e){k.log(`Ignoring span ${e.op} - ${e.description} because it matches \`ignoreSpans\`.`)}function na(e,t){if(!t?.length)return!1;for(let n of t){if(aa(n)){if(e.description&&Ct(e.description,n))return S&&ta(e),!0;continue}let t=!!n.attributes&&Object.keys(n.attributes).length>0;if(!n.name&&!n.op&&!t)continue;let r=!n.name||e.description&&Ct(e.description,n.name),i=!n.op||e.op&&Ct(e.op,n.op),a=!n.attributes||Object.entries(n.attributes).every(([t,n])=>ra(e.attributes?.[t],n));if(r&&i&&a)return S&&ta(e),!0}return!1}function ra(e,t){return typeof e==`string`&&(typeof t==`string`||t instanceof RegExp)?Ct(e,t):Array.isArray(e)&&Array.isArray(t)?e.length===t.length&&e.every((e,n)=>e===t[n]):e===t}function ia(e,t){let n=t.parent_span_id,r=t.span_id;if(n)for(let t of e)t.parent_span_id===r&&(t.parent_span_id=n)}function aa(e){return typeof e==`string`||e instanceof RegExp}var oa=[];function sa(e){let t={};return e.forEach(e=>{let{name:n}=e,r=t[n];r&&!r.isDefaultInstance&&e.isDefaultInstance||(t[n]=e)}),Object.values(t)}function ca(e){let t=e.defaultIntegrations||[],n=e.integrations;t.forEach(e=>{e.isDefaultInstance=!0});let r;if(Array.isArray(n))r=[...t,...n];else if(typeof n==`function`){let e=n(t);r=Array.isArray(e)?e:[e]}else r=t;return sa(r)}function la(e,t){let n={};return t.forEach(t=>{t?.beforeSetup&&t.beforeSetup(e)}),t.forEach(t=>{t&&da(e,t,n)}),n}function ua(e,t){for(let n of t)n?.afterAllSetup&&n.afterAllSetup(e)}function da(e,t,n){if(n[t.name]){S&&k.log(`Integration skipped because it was already installed: ${t.name}`);return}if(n[t.name]=t,!oa.includes(t.name)&&typeof t.setupOnce==`function`&&(t.setupOnce(),oa.push(t.name)),t.setup&&typeof t.setup==`function`&&t.setup(e),typeof t.preprocessEvent==`function`){let n=t.preprocessEvent.bind(t);e.on(`preprocessEvent`,(t,r)=>n(t,r,e))}if(typeof t.processEvent==`function`){let n=t.processEvent.bind(t),r=Object.assign((t,r)=>n(t,r,e),{id:t.name});e.addEventProcessor(r)}[`processSpan`,`processSegmentSpan`].forEach(n=>{let r=t[n];typeof r==`function`&&e.on(n,n=>r.call(t,n,e))}),S&&k.log(`Integration installed: ${t.name}`)}function fa(e){let t=N();if(!t){S&&k.warn(`Cannot add integration "${e.name}" because no SDK Client is available.`);return}t.addIntegration(e)}function I(e){return e}var pa=`production`,ma=Symbol.for(`sentry.nonRecordingSpan`),ha=class{constructor(e={}){this._traceId=e.traceId||Zt(),this._spanId=e.spanId||Qt(),this.dropReason=e.dropReason,Ye(this,ma,!0)}spanContext(){return{spanId:this._spanId,traceId:this._traceId,traceFlags:0}}end(e){}setAttribute(e,t){return this}setAttributes(e){return this}setStatus(e){return this}updateName(e){return this}isRecording(){return!1}addEvent(e,t,n){return this}addLink(e){return this}addLinks(e){return this}recordException(e,t){}};function ga(e){return!!e&&e[ma]===!0}var _a=`_frozenDsc`;function va(e,t){Ye(e,_a,t)}function ya(e,t){let n=t.getOptions(),{publicKey:r}=t.getDsn()||{},i={environment:n.environment||`production`,release:n.release,public_key:r,trace_id:e,org_id:fi(t)};return t.emit(`createDsc`,i),i}function ba(e,t){if(Cn())return;let n=t.getPropagationContext();return n.dsc||ya(n.traceId,e)}function xa(e){let t=N();if(!t)return{};let n=qi(e),r=Ni(n),i=r.data,a=n.spanContext().traceState,o=a?.get(`sentry.sample_rate`)??i[`sentry.sample_rate`]??i[`sentry.previous_trace_sample_rate`];function s(e){return(typeof o==`number`||typeof o==`string`)&&(e.sample_rate=`${o}`),e}let c=n[_a];if(c)return s(c);let l=ga(n),u=l&&n.dropReason===`ignored`;if(l&&(!ea(t.getOptions())||u)){let e=Xr(n).scope,r=e&&ba(t,e);if(r){let e={...r};return u&&(e.sampled=`false`),s(e)}}let d=a?.get(`sentry.dsc`),f=d&&$r(d);if(f)return s(f);let p=ya(e.spanContext().traceId,t),m=i[sr],h=r.description;return m!==`url`&&h&&(p.transaction=h),ea()&&(p.sampled=String(Ri(n)),p.sample_rand=a?.get(`sentry.sample_rand`)??Xr(n).scope?.getPropagationContext().sampleRand.toString()),s(p),t.emit(`createDsc`,p,n),p}function Sa(e){return ei(xa(e))}function Ca(e,t){let{fingerprint:n,breadcrumbs:r,sdkProcessingMetadata:i}=t;Da(e,t),ja(e,n),Oa(e,r),ka(e,i)}function wa(e,t){let{extra:n,tags:r,attributes:i,user:a,contexts:o,level:s,sdkProcessingMetadata:c,breadcrumbs:l,fingerprint:u,eventProcessors:d,attachments:f,propagationContext:p,transactionName:m}=t;
9Ta(e,`extra`,n),Ta(e,`tags`,r),Ta(e,`attributes`,i),Ta(e,`user`,a),Ta(e,`contexts`,o),e.sdkProcessingMetadata=Xt(e.sdkProcessingMetadata,c,2),s&&(e.level=s),m&&(e.transactionName=m),l.length&&(e.breadcrumbs=[...e.breadcrumbs,...l]),u.length&&(e.fingerprint=[...e.fingerprint,...u]),d.length&&(e.eventProcessors=[...e.eventProcessors,...d]),f.length&&(e.attachments=[...e.attachments,...f]),e.propagationContext={...e.propagationContext,...p}}function Ta(e,t,n){e[t]=Xt(e[t],n,1)}function Ea(e,t){let n=Tn().getScopeData();return e&&wa(n,e.getScopeData()),t&&wa(n,t.getScopeData()),n}function Da(e,t){let{extra:n,tags:r,user:i,contexts:a,level:o,transactionName:s}=t;Object.keys(n).length&&(e.extra={...n,...e.extra}),Object.keys(r).length&&(e.tags={...r,...e.tags}),Object.keys(i).length&&(e.user={...i,...e.user}),Object.keys(a).length&&(e.contexts={...a,...e.contexts}),o&&(e.level=o),s&&e.type!==`transaction`&&(e.transaction=s)}function Oa(e,t){let n=[...e.breadcrumbs||[],...t];e.breadcrumbs=n.length?n:void 0}function ka(e,t){e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...t}}function Aa(e,t){e.contexts={trace:Ei(t),...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:xa(t),...e.sdkProcessingMetadata};let n=Ni(qi(t)).description;n&&!e.transaction&&e.type===`transaction`&&(e.transaction=n)}function ja(e,t){e.fingerprint=e.fingerprint?Array.isArray(e.fingerprint)?e.fingerprint:[e.fingerprint]:[],t&&(e.fingerprint=e.fingerprint.concat(t)),e.fingerprint.length||delete e.fingerprint}var Ma=Symbol.for(`SentryCallbackError`);function Na(e,t,n){let r;try{r=t()}catch(t){return Pa(e,t,n)}return Ge(r)?r.then(void 0,t=>Pa(e,t,n)):r}function Pa(e,t,n){return S&&k.error(e,t),n(t)}function Fa(e){return Ye(e,`_static`,!0),e}function Ia(e){return e}function La(e){return!!e&&typeof e==`function`&&`_static`in e&&!!e._static}var Ra=!1;function za(e,t){return Na(S?"The `beforeSendSpan` callback threw an error, sending the span unmodified:":``,()=>t(e),()=>e)||(Ra||=(re(()=>{console.warn("[Sentry] Returning null from `beforeSendSpan` is disallowed. To drop certain spans, configure the respective integrations directly or use `ignoreSpans`.")}),!0),e)}function Ba(e){return Fi({trace_id:e.trace_id,span_id:e.span_id,parent_span_id:e.parent_span_id,name:e.description||``,start_timestamp:e.start_timestamp,end_timestamp:e.timestamp,status:!e.status||e.status===`ok`||e.status===`cancelled`?`ok`:`error`,is_segment:!1,attributes:{...e.data},links:e.links})}function Va(e){let t={},{response:n,profile:r,cloud_resource:i,culture:a,state:o}=e;if(n&&(n.status_code!=null&&(t[`http.response.status_code`]=n.status_code),n.body_size!=null&&(t[`http.response.body.size`]=n.body_size)),r&&(r.profile_id&&(t[`sentry.profile_id`]=r.profile_id),r.profiler_id&&(t[`sentry.profiler_id`]=r.profiler_id)),i)for(let[e,n]of Object.entries(i))n!=null&&(t[e]=n);a&&(a.locale&&(t[`culture.locale`]=a.locale),a.timezone&&(t[`culture.timezone`]=a.timezone)),o?.state&&typeof o.state.type==`string`&&(t[`state.type`]=o.state.type);let s=e.angular;if(s){let e=s.version;(typeof e==`string`||typeof e==`number`)&&(t[`angular.version`]=e)}let c=e.react;if(c){let e=c.version;(typeof e==`string`||typeof e==`number`)&&(t[`react.version`]=e)}return t}function Ha(e,t){let n=P(e),r=Ji(e),i=P(r),{isolationScope:a,scope:o}=Xr(e),s=Ea(a,o);qa(n,i,t,s),t.emit(`preprocessSpan`,n),n.is_segment&&(Ua(n,s),Ga(n,t),t.emit(`processSegmentSpan`,n)),t.emit(`processSpan`,n);let{beforeSendSpan:c,traceLifecycle:l}=t.getOptions();return{...Fi(l!==`static`&&c&&!La(c)?za(n,c):n),_segmentSpan:r}}function Ua(e,t){Wa(e,Va(t.contexts))}function Wa(e,t){let n=e.attributes??={};Object.entries(t).forEach(([e,t])=>{t!=null&&!(e in n)&&(n[e]=t)})}function Ga(e,t){let n=t.getIntegrationNames();n.length&&Wa(e,{[Ar]:n})}function Ka(e,t,n,r=!0){let i=t.getSdkMetadata(),{release:a,environment:o}=t.getOptions();return{[cr]:`stream`,[or]:e.name,[ar]:e.span_id,[rr]:i?.sdk?.name,[ir]:i?.sdk?.version,[Or]:a,[kr]:o||`production`,[jr]:n.user?.id,[Mr]:n.user?.email,[Nr]:n.user?.ip_address,[Pr]:n.user?.username,...r?n.attributes:void 0}}function qa(e,t,n,r){Wa(e,Ka(t,n,r))}function Ja(e,t,n){let r=Ni(e),i=P(Ji(e)),{isolationScope:a,scope:o}=Xr(e),s=Ka(i,t,Ea(a,o),!1);
9return Object.entries(s).forEach(([e,t])=>{t!=null&&!(e in r.data)&&(r.data[e]=t)}),Ba(za(r,n))}function L(e){return e.getOptions().traceLifecycle===`stream`}function Ya(e){return typeof e==`object`&&typeof e.unref==`function`&&e.unref(),e}function Xa(e,t=[]){return[e,t]}function Za(e,t){let[n,r]=e;return[n,[...r,t]]}function Qa(e,t){let n=e[1];for(let e of n){let n=e[0].type;if(t(e,n))return!0}return!1}function $a(e,t){return Qa(e,(e,n)=>t.includes(n))}function eo(e){let t=E(C);return t.encodePolyfill?t.encodePolyfill(e):new TextEncoder().encode(e)}function to(e){let t=E(C);return t.decodePolyfill?t.decodePolyfill(e):new TextDecoder().decode(e)}function no(e){let[t,n]=e,r=JSON.stringify(t);function i(e){typeof r==`string`?r=typeof e==`string`?r+e:[eo(r),e]:r.push(typeof e==`string`?eo(e):e)}for(let e of n){let[t,n]=e;if(i(`
10${JSON.stringify(t)}
11`),typeof n==`string`||n instanceof Uint8Array)i(n);else{let e;try{e=JSON.stringify(n)}catch{e=JSON.stringify(ft(n))}i(e)}}return typeof r==`string`?r:ro(r)}function ro(e){let t=e.reduce((e,t)=>e+t.length,0),n=new Uint8Array(t),r=0;for(let t of e)n.set(t,r),r+=t.length;return n}function io(e){let t=typeof e==`string`?eo(e):e;function n(e){let n=t.subarray(0,e);return t=t.subarray(e+1),n}function r(){let e=t.indexOf(10);return e<0&&(e=t.length),JSON.parse(to(n(e)))}let i=r(),a=[];for(;t.length;){let e=r(),t=typeof e.length==`number`?e.length:void 0;a.push([e,t?n(t):r()])}return[i,a]}function ao(e){let t=typeof e.data==`string`?eo(e.data):e.data;return[{type:`attachment`,length:t.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType},t]}var oo={sessions:`session`,event:`error`,client_report:`internal`,user_report:`default`,profile_chunk:`profile`,replay_event:`replay`,replay_recording:`replay`,check_in:`monitor`,raw_security:`security`,log:`log_item`,trace_metric:`metric`};function so(e){return e in oo}function co(e){return so(e)?oo[e]:e}function lo(e){if(!e?.sdk)return;let{name:t,version:n}=e.sdk;return{name:t,version:n}}function uo(e,t,n,r){let i=e.sdkProcessingMetadata?.dynamicSamplingContext;return{event_id:e.event_id,sent_at:new Date(it()).toISOString(),...t&&{sdk:t},...!!n&&r&&{dsn:si(r)},...i&&{trace:i}}}function fo(e){return e===`replay_event`?`replay`:e||`error`}function po(){return typeof __SENTRY_BROWSER_BUNDLE__<`u`&&!!__SENTRY_BROWSER_BUNDLE__}function mo(){return`npm`}function ho(){return!po()&&Object.prototype.toString.call(typeof process<`u`?process:0)===`[object process]`}function go(){return typeof window<`u`&&(!ho()||_o())}function _o(){return C.process?.type===`renderer`}function vo(e,t,n){let r=n.getOptions(),i=n.getDsn(),a=r.tunnel,o=lo(r._metadata);return Xa({sent_at:new Date(it()).toISOString(),...bo(t)&&{trace:t},...o&&{sdk:o},...!!a&&i&&{dsn:si(i)}},[yo(e,n)])}function yo(e,t){let n=t.getDataCollectionOptions().userInfo?`auto`:`never`;return[{type:`span`,item_count:e.length,content_type:`application/vnd.sentry.items.span.v2+json`},{version:2,ingest_settings:go()?{infer_ip:n,infer_user_agent:n}:void 0,items:e}]}function bo(e){return!!e.trace_id&&!!e.public_key}function xo(e){let t=156;if(t+=e.name.length*2,t+=bn(e.attributes),e.links&&e.links.length>0){let n=e.links[0]?.attributes,r=100+(n?bn(n):0);t+=r*e.links.length}return t}var So=1e3,Co=5e6,wo=class{constructor(e,t){this._traceBuckets=new Map,this._client=e;let{maxSpanLimit:n,flushInterval:r,maxTraceWeightInBytes:i}=t??{};this._maxSpanLimit=n&&n>0&&n<=So?n:So,this._flushInterval=r&&r>0?r:5e3,this._maxTraceWeight=i&&i>0?i:Co,this._client.on(`flush`,()=>{this.drain()}),this._client.on(`close`,()=>{this._traceBuckets.forEach(e=>{clearTimeout(e.timeout)}),this._traceBuckets.clear()})}add(e){let t=e.trace_id,n=this._traceBuckets.get(t);n||(n={spans:new Set,size:0,timeout:Ya(setTimeout(()=>{this.flush(t)},this._flushInterval))},this._traceBuckets.set(t,n)),n.spans.add(e),n.size+=xo(e),(n.spans.size>=this._maxSpanLimit||n.size>=this._maxTraceWeight)&&this.flush(t)}drain(){this._traceBuckets.size&&(S&&k.log(`Flushing span tree map with ${this._traceBuckets.size}
11 traces`),this._traceBuckets.forEach((e,t)=>{this.flush(t)}))}flush(e){let t=this._traceBuckets.get(e);if(!t)return;if(!t.spans.size){this._removeTrace(e);return}let n=Array.from(t.spans),r=n[0]?._segmentSpan;if(!r){S&&k.warn(`No segment span reference found on span JSON, cannot compute DSC`),this._removeTrace(e);return}let i=xa(r),a=n.map(e=>{let{_segmentSpan:t,...n}=e;return n}),o=vo(a,i,this._client);S&&k.log(`Sending span envelope for trace ${e} with ${a.length} spans`),this._client.sendEnvelope(o).then(null,e=>{S&&k.error(`Error while sending streamed span envelope:`,e)}),this._removeTrace(e)}_removeTrace(e){let t=this._traceBuckets.get(e);t&&clearTimeout(t.timeout),this._traceBuckets.delete(e)}},To=`SpanStreaming`,Eo=I((e={})=>{let t=e.flushOnSegmentEnd??!0;return{name:To,setup(e){if(!L(e)){S&&k.log('[SpanStreaming] `traceLifecycle` is "static", skipping setup.');return}let n=new wo(e);e.on(`afterSpanEnd`,t=>{Ri(t)&&n.add(Ha(t,e))}),e.on(`flushTraceSpans`,e=>{n.flush(e)}),t&&e.on(`afterSegmentSpanEnd`,e=>{let t=e.spanContext().traceId;Ya(setTimeout(()=>{n.flush(t)},500))})}}});function Do(e,t,n=()=>{},r=()=>{}){let i;try{i=e()}catch(e){throw t(e),n(),e}return Oo(i,t,n,r)}function Oo(e,t,n,r){return Ge(e)?sn(e,e=>{n(),r(e)},e=>{t(e),n()}):(n(),r(e),e)}var ko=new WeakMap;function Ao(e){return Be(e)?void 0:e}function jo(e,t){let n=Ao(e);n&&Ri(t)&&!ko.has(n)&&ko.set(n,Ei(t))}function Mo(e,t,n){let r=Ao(t.originalException),i=r&&ko.get(r);if(!i)return;let a=e.contexts?.trace;(a?.trace_id??(n&&On(n).trace_id))===i.trace_id&&(e.contexts={...e.contexts,trace:{...a,...i}})}function No(e){if(!S)return;let{description:t=`< unknown name >`,op:n=`< unknown op >`,parent_span_id:r}=Ni(e),{spanId:i}=e.spanContext(),a=Ri(e),o=qi(e),s=o===e,c=`[Tracing] Starting ${a?`sampled`:`unsampled`} ${s?`root `:``}span`,l=[`op: ${n}`,`name: ${t}`,`ID: ${i}`];if(r&&l.push(`parent ID: ${r}`),!s){let{op:e,description:t}=Ni(o);l.push(`root ID: ${o.spanContext().spanId}`),e&&l.push(`root op: ${e}`),t&&l.push(`root description: ${t}`)}k.log(`${c}
12  ${l.join(`
13  `)}`)}function Po(e){if(!S)return;let{description:t=`< unknown name >`,op:n=`< unknown op >`}=Ni(e),{spanId:r}=e.spanContext(),i=`[Tracing] Finishing "${n}" ${qi(e)===e?`root `:``}span "${t}" with ID ${r}`;k.log(i)}
13function Fo(e,t,n){if(!ea(e))return[!1];let r=Io(e,t);if(!r)return[!1,void 0,void 0,`callback_error`];let[i,a]=r,o=mi(i);if(o===void 0)return S&&k.warn(`[Tracing] Discarding root span because of invalid sample rate. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(i)} of type ${JSON.stringify(typeof i)}.`),[!1];if(!o)return S&&k.log(`[Tracing] Discarding transaction because ${typeof e.tracesSampler==`function`?`tracesSampler returned 0 or false`:`a negative sampling decision was inherited or tracesSampleRate is set to 0`}`),[!1,o,a];let s=n<o;return s||S&&k.log(`[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ${Number(i)})`),[s,o,a]}function Io(e,t){let{tracesSampler:n,tracesSampleRate:r}=e;if(typeof n==`function`){let e=Na(S?"The `tracesSampler` callback threw an error, falling back to the parent sampling decision or `tracesSampleRate`:":``,()=>[n({...t,inheritOrSampleWith:e=>typeof t.parentSampleRate==`number`?t.parentSampleRate:typeof t.parentSampled==`boolean`?Number(t.parentSampled):e}),!0],()=>void 0);if(e)return e}if(t.parentSampled!==void 0)return[t.parentSampled];if(r!==void 0)return[r,!0]}function Lo(e,t,n,r=F()){let i=r&&qi(r);i&&(S&&k.log(`[Measurement] Setting measurement on root span: ${e} = ${t} ${n}`),i.addEvent(e,{[Dr]:t,[Er]:n}))}function Ro(e){if(!e||e.length===0)return;let t={};return e.forEach(e=>{let n=e.attributes||{},r=n[Er],i=n[Dr];typeof r==`string`&&typeof i==`number`&&(t[e.name]={value:i,unit:r})}),t}function zo(){return E(T()).segmentSpanCaptureStrategy}var Bo=1e3,Vo=class{constructor(e={}){this._traceId=e.traceId||Zt(),this._spanId=e.spanId||Qt(),this._startTime=e.startTimestamp||Ht(),this._links=e.links,this._attributes={},this.setAttributes({[wr]:`manual`,[Cr]:e.op,...e.attributes}),this._name=e.name,e.parentSpanId&&(this._parentSpanId=e.parentSpanId),`sampled`in e&&(this._sampled=e.sampled),this._events=[],this._isStandaloneSpan=e.isStandalone}addLink(e){return this._frozen||(this._links?this._links.push(e):this._links=[e]),this}addLinks(e){return this._frozen||(this._links?this._links.push(...e):this._links=e),this}recordException(e,t){}spanContext(){let{_spanId:e,_traceId:t,_sampled:n}=this;return{spanId:e,traceId:t,traceFlags:+!!n}}setAttribute(e,t){return this._frozen?this:e===`sentry.segment.name.source`&&t!==void 0&&!Yi(this)?(S&&k.warn(`[Tracing] Ignoring name source on a child span: this attribute is only valid on the root span.`),this):(t===void 0?delete this._attributes[e]:this._attributes[e]=t,this)}setAttributes(e){return Object.keys(e).forEach(t=>this.setAttribute(t,e[t])),this}updateStartTime(e){this._frozen||(this._startTime=ji(e))}setStatus(e){return this._frozen||(this._status=e),this}updateName(e){return this._frozen?this:(this._name=e,Zi(this,`custom`),this)}end(e){this._endTime||(this._endTime=ji(e),Po(this),this._onSpanEnded(),this._frozen=Zr(this))}getStaticSpanJSON(){return{data:this._attributes,description:this._name,op:this._attributes[Cr],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:zi(this._status),timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[wr],profile_id:this._attributes[Ir],exclusive_time:this._attributes[Lr],measurements:Ro(this._events),links:ki(this._links)}}getSpanJSON(){return{name:this._name??``,span_id:this._spanId,trace_id:this._traceId,parent_span_id:this._parentSpanId,start_timestamp:this._startTime,end_timestamp:this._endTime,is_segment:Yi(this),status:Bi(this._status),attributes:Vi(this._attributes,this._status),links:Ai(this._links)}}isRecording(){return!this._endTime&&!!this._sampled}addEvent(e,t,n){if(this._frozen)return this;S&&k.log(`[Tracing] Adding an event to span:`,e);let r=Ho(t)?t:n||Ht(),i=Ho(t)?{}:t||{},a={name:e,time:ji(r),attributes:i};return this._events.push(a),this}isStandaloneSpan(){return!!this._isStandaloneSpan}_onSpanEnded(){let e=N();if(e?.emit(`spanEnd`,this),this._isStandaloneSpan){if(!e)return;if(this._sampled){Go(this,e);return}S&&k.log(`[Tracing] Discarding standalone span because its trace was not chosen to be sampled.`),e.recordDroppedEvent(`sample_rate`,`span`);return}e?.emit(`afterSpanEnd`,this);let t=qi(this);if(t!==this){let e=zo();if(e){let n=Xr(this).scope||j();e.onChildSpanEnded(this,t,e=>this._convertSpanToTransaction(e),n)}return}if(e&&L(e)){e.emit(`afterSegmentSpanEnd`,this);return}let n=Xr(this).scope||j(),r=zo();if(r)r.onSegmentSpanEnded(e=>this._convertSpanToTransaction(e),n);else{let e=this._convertSpanToTransaction();e&&n.captureEvent(e)}}_convertSpanToTransaction(e={}){if(!Uo(Ni(this)))return;this._name||=(S&&k.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),`<unlabeled transaction>`);let{scope:t,isolationScope:n}=Xr(this),r=t?.getScopeData().sdkProcessingMetadata?.normalizedRequest;if(this._sampled!==!0)return;e.onSpanCaptured?.(this);let i=[];for(let t of Ki(this)){if(t===this||Wo(t)||e.isSpanAlreadyCaptured?.(t))continue;let n=Ni(t);Uo(n)&&(e.onSpanCaptured?.(t),i.push(n))}let a=this._attributes[sr];delete this._attributes[Fr];let o=!1;
13i.forEach(e=>{delete e.data[Fr],e.op?.startsWith(`gen_ai.`)&&(o=!0)});let s={contexts:{trace:Ti(this)},spans:i.length>Bo?i.sort((e,t)=>e.start_timestamp-t.start_timestamp).slice(0,Bo):i,start_timestamp:this._startTime,timestamp:this._endTime,transaction:this._name,type:`transaction`,sdkProcessingMetadata:{capturedSpanScope:t,capturedSpanIsolationScope:n,dynamicSamplingContext:xa(this),hasGenAiSpans:o},request:r,...a&&{transaction_info:{source:a}}},c=Ro(this._events);return c&&Object.keys(c).length&&(S&&k.log(`[Measurements] Adding measurements to transaction event`,JSON.stringify(c,void 0,2)),s.measurements=c),s}};function Ho(e){return e&&typeof e==`number`||e instanceof Date||Array.isArray(e)}function Uo(e){return!!e.start_timestamp&&!!e.timestamp&&!!e.span_id&&!!e.trace_id}function Wo(e){return e instanceof Vo&&e.isStandaloneSpan()}function Go(e,t){let{beforeSendSpan:n,traceLifecycle:r}=t.getOptions();if(r===`static`&&La(n)){let r=Ja(e,t,n),i=xa(e);t.sendEnvelope(vo([r],i,t));return}let{_segmentSpan:i,...a}=Ha(e,t),o=xa(i);t.sendEnvelope(vo([a],o,t))}function Ko(e,t){let n=ns(e),{forceTransaction:r,parentSpan:i,scope:a}=e,o=a?.clone();return En(o,()=>ss(i)(()=>{let o=j(),s=os(a??o,i),c=N(),l=e.onlyIfParent&&!s?es(o,c):ts({parentSpan:s,spanArguments:n,forceTransaction:r,scope:o});return us(l,!ls(l)||!s,()=>t(l),()=>l.end())}))}function qo(e,t){let n=ns(e),{forceTransaction:r,parentSpan:i,scope:a}=e,o=a?.clone();return En(o,()=>ss(i)(()=>{let o=j(),s=os(a??o,i),c=e.onlyIfParent&&!s?es(o,N()):ts({parentSpan:s,spanArguments:n,forceTransaction:r,scope:o});return us(c,!ls(c)||!s,()=>t(c,()=>c.end()))}))}function Jo(e){let t=ns(e),{forceTransaction:n,parentSpan:r,scope:i}=e;return(i?e=>En(i,e):r===void 0?e=>e():e=>Xo(r,e))(()=>{let a=j(),o=os(i??a,r),s=N();return e.onlyIfParent&&!o?es(a,s):ts({parentSpan:o,spanArguments:t,forceTransaction:n,scope:a})})}var Yo=(e,t)=>{let n=gn(T());if(n.continueTrace)return n.continueTrace(e,t);let{sentryTrace:r,baggage:i}=e,a=N(),o=$r(i);return a&&!xi(a,o?.org_id)?$o(t):En(e=>{let n=_i(r,i);return e.setPropagationContext(n),Xo(null,t)})};function Xo(e,t){let n=rs();return n.withActiveSpan?n.withActiveSpan(e,t):En(n=>(Ci(n,e||void 0),t(n)))}function Zo(e){let t=rs();return t.suppressTracing?t.suppressTracing(e):En(t=>(t.setSDKProcessingMetadata({[rn]:!0}),e()))}function Qo(e=j()){let t=rs();return t.isTracingSuppressed?t.isTracingSuppressed(e):e.getScopeData().sdkProcessingMetadata[rn]===!0}function $o(e){let t=rs();return t.startNewTrace?t.startNewTrace(e):Xo(null,()=>En(t=>(t.setPropagationContext({traceId:Zt(),sampleRand:rt()}),S&&k.log(`Starting a new trace with id ${t.getPropagationContext().traceId}`),e())))}function es(e,t){t?.recordDroppedEvent(`no_parent_span`,`span`);let n=new ha({traceId:e.getPropagationContext().traceId});return Yr(n,e,M()),n}function ts({parentSpan:e,spanArguments:t,forceTransaction:n,scope:r}){let i=M(),a={scope:r,parentSpan:e};N()?.emit(`prepareSpanScope`,a);let{scope:o,parentSpan:s}=a;if(!ea()){let e=o.getPropagationContext(),t=new ha({traceId:s?s.spanContext().traceId:e.traceId});return s&&!n&&Wi(s,t),Yr(t,o,i),t}let c=N();if(cs(c,t)){Qo(o)||c?.recordDroppedEvent(`ignored`,`span`);let e=new ha({dropReason:`ignored`,traceId:s?.spanContext().traceId??o.getPropagationContext().traceId});return s&&!n&&Wi(s,e),Yr(e,o,i),e}let l;if(s&&!n)l=as(s,o,t,i),Wi(s,l);else if(s){let e=xa(s),{traceId:n,spanId:r}=s.spanContext(),a=Ri(s);l=is({traceId:n,parentSpanId:r,...t},o,i,a),va(l,e)}else{let{traceId:e,dsc:n,parentSpanId:r,sampled:a,sampleRand:s}=o.getPropagationContext();if(l=is({traceId:e,parentSpanId:r,...t},o,i,a),n){let e=Object.keys(n).length===0&&s!==void 0?{sample_rand:s.toString()}:n;va(l,e)}}return No(l),l}function ns(e){let t={isStandalone:e.experimental?.standalone,...e};if(e.op&&(t.attributes={[Cr]:e.op,...e.attributes}),e.startTime){let n={...t};return n.startTimestamp=ji(e.startTime),delete n.startTime,n}return t}function rs(){return gn(T())}function is(e,t,n,r){let i=N(),a=i?.getOptions()||{},{name:o=``}=e,s={spanAttributes:{...e.attributes},spanName:o,parentSampled:r};i?.emit(`beforeSampling`,s,{decision:!1});let c=s.parentSampled??r,l=s.spanAttributes,u=t.getPropagationContext(),d=Qo(t),[f,p,m,h]=d?[!1]:Fo(a,{name:o,parentSampled:c,attributes:l,normalizedRequest:n.getScopeData().sdkProcessingMetadata.normalizedRequest,parentSampleRate:mi(u.dsc?.sample_rate)},u.sampleRand),g=new Vo({...e,attributes:{[sr]:`custom`,[xr]:p!==void 0&&m?p:void 0,...l},sampled:f});return!f&&i&&!d&&(S&&k.log(`[Tracing] Discarding root span because its trace was not chosen to be sampled.`),i.recordDroppedEvent(h||`sample_rate`,L(i)?`span`:`transaction`)),Yr(g,t,n),i&&i.emit(`spanStart`,g),g}function as(e,t,n,r){let{spanId:i,traceId:a}=e.spanContext(),o=Qo(t),s=!o&&Ri(e),c=s?new Vo({...n,parentSpanId:i,traceId:a,sampled:s}):new ha({traceId:a});Wi(e,c),Yr(c,t,r);let l=N();return l?(L(l)&&ga(c)&&(ga(e)&&e.dropReason?(c.dropReason=e.dropReason,l.recordDroppedEvent(e.dropReason,`span`)):o||(c.dropReason=`sample_rate`,l.recordDroppedEvent(`sample_rate`,`span`))),l.emit(`spanStart`,c),c):c}function os(e,t){if(t)return t;if(t===null)return;let n=F(e);if(!n)return;let r=N();return(r?r.getOptions():{}).parentSpanIsAlwaysRootSpan?qi(n):n}function ss(e){return e===void 0?e=>e():t=>Xo(e,t)}function cs(e,t){let n=e?.getOptions().ignoreSpans;return!e||!L(e)||!n?.length?!1:na({description:t.name||``,op:t.attributes?.[`sentry.op`]||t.op,attributes:t.attributes},n)}function ls(e){return ga(e)&&e.dropReason===`ignored`}function us(e,t,n,r){return(t?t=>Xo(e,()=>{let n=j(),r=Xr(e).scope;return r&&n.setPropagationContext(r.getPropagationContext()),Yr(e,n,M()),t()}):e=>e())(()=>Do(()=>n(),t=>{jo(t,e);let{status:n}=Ni(e);e.isRecording()&&n===`ok`&&e.setStatus({code:2,message:`internal_error`})},r))}var ds=new WeakSet;function fs(e=N()){e&&!ds.has(e)&&L(e)&&(ds.add(e),e.addIntegration(Eo()))}function ps(e,t){return fs(),Ko(e,t)}function ms(e,t){return fs(),qo(e,t)}function hs(e){return fs(),Jo(e)}var gs={idleTimeout:1e3,finalTimeout:3e4,childSpanTimeout:15e3},_s=`heartbeatFailed`,vs=`idleTimeout`,ys=`finalTimeout`,bs=`externalFinish`;function xs(e,t={}){let n=N();fs(n);let r=new Map,i=!1,a,o,s=bs,c=!t.disableAutoFinish,l=[],{idleTimeout:u=gs.idleTimeout,finalTimeout:d=gs.finalTimeout,childSpanTimeout:f=gs.childSpanTimeout,trimIdleSpanEndTimestamp:p=!0}=t,m=j();if(!n||!ea()){let e=new ha({traceId:m.getPropagationContext().traceId});return Yr(e,m,M()),e}let h=F(),g=Jo(e);
13Ci(j(),g),S&&k.log(`[Tracing] Started span is an idle span`),g.end=new Proxy(g.end,{apply(e,t,r){if(n.emit(`beforeIdleSpanEnd`,g),ga(t))return;let[i,...a]=r,o=ji(i||Ht()),s=Ki(g).filter(e=>e!==g),c=Ni(g);if(!s.length||!p)return w(o),Reflect.apply(e,t,[o,...a]);let l=n.getOptions().ignoreSpans,u=s?.reduce((e,t)=>{let n=Ni(t);return!n.timestamp||l&&na({description:n.description,op:n.op,attributes:n.data},l)?e:e?Math.max(e,n.timestamp):n.timestamp},void 0),f=c.start_timestamp,m=Math.min(f?f+d/1e3:1/0,Math.max(f||-1/0,Math.min(o,u||1/0)));return w(m),Reflect.apply(e,t,[m,...a])}});function _(){a&&=(clearTimeout(a),void 0)}function v(){o&&=(clearTimeout(o),void 0)}function y(e){_(),a=setTimeout(()=>{!i&&r.size===0&&c&&(s=vs,g.end(e))},u)}function b(e){v(),o=setTimeout(()=>{!i&&c&&(s=_s,g.end(e))},f)}function x(e){_(),r.set(e,!0),b(Ht()+f/1e3)}function C(e){r.has(e)&&r.delete(e),r.size===0&&(y(Ht()+u/1e3),v())}function w(e){i=!0,r.clear(),l.forEach(e=>e()),Ci(m,h);let t=Ni(g),{start_timestamp:n}=t;if(!n)return;t.data[`sentry.idle_span_finish_reason`]||g.setAttribute(Tr,s);let a=t.status;(!a||a===`unknown`)&&g.setStatus({code:1}),k.log(`[Tracing] Idle span "${t.op}" finished`);let o=Ki(g).filter(e=>e!==g),c=0;o.forEach(t=>{t.isRecording()&&(t.setStatus({code:2,message:`cancelled`}),t.end(e),S&&k.log(`[Tracing] Cancelling span since span ended early`,JSON.stringify(t,void 0,2)));let{timestamp:n=0,start_timestamp:r=0}=Ni(t),i=r<=e,a=(d+u)/1e3,o=n-r<=a;if(S){let e=JSON.stringify(t,void 0,2);i?o||k.log(`[Tracing] Discarding span since it finished after idle span final timeout`,e):k.log(`[Tracing] Discarding span since it happened after idle span was finished`,e)}(!o||!i)&&(Gi(g,t),c++)}),c>0&&g.setAttribute(`sentry.idle_span_discarded_spans`,c)}return l.push(n.on(`spanStart`,e=>{i||e===g||P(e).end_timestamp||e instanceof Vo&&e.isStandaloneSpan()||Ki(g).includes(e)&&x(e.spanContext().spanId)})),l.push(n.on(`spanEnd`,e=>{i||C(e.spanContext().spanId)})),l.push(n.on(`idleSpanEnableAutoFinish`,e=>{e===g&&(c=!0,y(),r.size&&b())})),t.disableAutoFinish||y(),setTimeout(()=>{i||(g.setStatus({code:2,message:`deadline_exceeded`}),s=ys,g.end())},d),g}function Ss(e,t,n){let r,i,a,o=n?.maxWait?Math.max(n.maxWait,t):0,s=n?.setTimeoutImpl||setTimeout;function c(){return l(),r=e(),r}function l(){i!==void 0&&clearTimeout(i),a!==void 0&&clearTimeout(a),i=a=void 0}function u(){return i!==void 0||a!==void 0?c():r}function d(){return i&&clearTimeout(i),i=s(c,t),o&&a===void 0&&(a=s(c,o)),r}return d.cancel=l,d.flush=u,d}var Cs=[`addListener`,`on`,`once`,`prependListener`,`prependOnceListener`,`addEventListener`],ws=[`removeListener`,`off`,`removeEventListener`],Ts=Symbol(`SentryScopeBoundListeners`),Es;function Ds(e){return Es!==void 0&&(e===Es||e.listener===Es)}function Os(e,t=j()){let n=e;if(Fs(n))return e;Ps(n);for(let e of Cs)typeof n[e]==`function`&&(n[e]=js(n,n[e],t));for(let e of ws)typeof n[e]==`function`&&(n[e]=Ms(n,n[e]));return typeof n.removeAllListeners==`function`&&(n.removeAllListeners=Ns(n,n.removeAllListeners)),e}function ks(e,t){return function(...n){return En(t,()=>e.apply(this,n))}}function As(e){return typeof e==`function`}function js(e,t,n){return function(...r){let i=r[0],a=r[1],o=r.slice(2);if(!As(a)||Ds(a))return t.apply(this,r);let s=Fs(e)||Ps(e),c=s.get(i);c||(c=new WeakMap,s.set(i,c));let l=c.get(a);l||(l=ks(a,n),c.set(a,l));let u=Es;Es=l;try{return t.call(this,i,l,...o)}finally{Es=u}}}function Ms(e,t){return function(...n){let r=n[0],i=n[1],a=n.slice(2),o=As(i)?Fs(e)?.get(r)?.get(i):void 0;return o?t.call(this,r,o,...a):t.apply(this,n)}}function Ns(e,t){return function(...n){let r=Fs(e);if(r){if(n.length===0)Ps(e);else{let e=n[0];r.delete(e)}}return t.apply(this,n)}}function Ps(e){let t=new Map;return e[Ts]=t,t}function Fs(e){return e[Ts]}var Is=`pageload`,Ls=`navigation`,Rs=`navigation.redirect`,zs=`resource.other`,Bs=`browser.paint`,Vs=`browser.unload_event`,Hs=`browser.redirect`,Us=`browser.dom_content_loaded_event`,Ws=`browser.load_event`,Gs=`browser.connect`,Ks=`browser.tls_ssl`,qs=`browser.cache`,Js=`browser.dns`,Ys=`browser.request`,Xs=`browser.response`,Zs=`ui.long_task`,Qs=`ui.long_animation_frame`,$s=`ui.interaction.click`,ec=`ui.interaction.hover`,tc=`ui.interaction.drag`,nc=`ui.interaction.press`,rc=`ui.webvital.lcp`,ic=`ui.webvital.cls`,ac=`ui.action.click`,oc=`http.client`,sc=`http.client.stream`,cc=`Pageload`,lc=`Navigation`,uc=`Main UI thread blocked`,dc=`Click`,fc=`Hover`,pc=`Drag`,mc=`Key press`,hc={[qs]:`Cache lookup`,[Js]:`DNS lookup`,[Gs]:`Connect`,[Ks]:`TLS handshake`,[Hs]:`Redirect`,[Ys]:`Request`,[Xs]:`Response`,[Vs]:`Unload event`,[Us]:`DOMContentLoaded event`,[Ws]:`Load event`};function gc(e,t){if(!t)return e;let n=e.sdk||{};return e.sdk={...n,name:n.name||t.name,version:n.version||t.version,integrations:[...e.sdk?.integrations||[],...t.integrations||[]],packages:[...e.sdk?.packages||[],...t.packages||[]],settings:e.sdk?.settings||t.settings?{...e.sdk?.settings,...t.settings}:void 0},e}function _c(e,t,n,r){let i=lo(n);return Xa({sent_at:new Date(it()).toISOString(),...i&&{sdk:i},...!!r&&t&&{dsn:si(t)}},[`aggregates`in e?[{type:`sessions`},e]:[{type:`session`},e.toJSON()]])}function vc(e,t,n,r){let i=lo(n),a=e.type&&e.type!==`replay_event`?e.type:`event`;gc(e,n?.sdk);let o=uo(e,i,r,t);return delete e.sdkProcessingMetadata,Xa(o,[[{type:a},e]])}var yc=0,bc=1,xc=2;function Sc(e){return new wc(t=>{t(e)})}function Cc(e){return new wc((t,n)=>{n(e)})}var wc=class e{constructor(e){this._state=yc,this._handlers=[],this._runExecutor(e)}then(t,n){return new e((e,r)=>{this._handlers.push([!1,n=>
13{if(!t)e(n);else try{e(t(n))}catch(e){r(e)}},t=>{if(!n)r(t);else try{e(n(t))}catch(e){r(e)}}]),this._executeHandlers()})}catch(e){return this.then(e=>e,e)}finally(t){return new e((e,n)=>{let r,i;return this.then(e=>{i=!1,r=e,t&&t()},e=>{i=!0,r=e,t&&t()}).then(()=>{if(i){n(r);return}e(r)})})}_executeHandlers(){if(this._state===yc)return;let e=this._handlers.slice();this._handlers=[],e.forEach(e=>{e[0]||=(this._state===bc&&e[1](this._value),this._state===xc&&e[2](this._value),!0)})}_runExecutor(e){let t=(e,t)=>{if(this._state===yc){if(Ge(t)){t.then(n,r);return}this._state=e,this._value=t,this._executeHandlers()}},n=e=>{t(bc,e)},r=e=>{t(xc,e)};try{e(n,r)}catch(e){r(e)}}};function Tc(e,t,n,r=0,i){try{let a=Ec(t,n,e,r,i);return Ge(a)?a:Sc(a)}catch(e){return Cc(e)}}function Ec(e,t,n,r,i){let a=n[r];if(!e||!a)return e;let o=`Event processor "${a.id||`?`}"`,s=!1,c=Na(S?`${o} threw an error, dropping event:`:``,()=>a({...e},t),()=>(s=!0,null));return S&&c===null&&k.log(`${o} dropped event`),Ge(c)?c.then(e=>e?Ec(e,t,n,r+1,i):(i?.(s?`callback_error`:`event_processor`),null)):c?Ec(c,t,n,r+1,i):(i?.(s?`callback_error`:`event_processor`),null)}var Dc,Oc,kc,Ac;function jc(e){let t=C._sentryDebugIds,n=C._debugIds;if(!t&&!n)return{};let r=t?Object.keys(t):[],i=n?Object.keys(n):[];if(Ac&&r.length===Oc&&i.length===kc)return Ac;Oc=r.length,kc=i.length,Ac={},Dc||={};let a=(t,n)=>{for(let r of t){let t=n[r],i=Dc?.[r];if(i&&Ac&&t)Ac[i[0]]=t,Dc&&(Dc[r]=[i[0],t]);else if(t){let n=e(r);for(let e=n.length-1;e>=0;e--){let i=n[e]?.filename;if(i&&Ac&&Dc){Ac[i]=t,Dc[r]=[i,t];break}}}}};return t&&a(r,t),n&&a(i,n),Ac}function Mc(e,t){let n=jc(e);if(!n)return[];let r=[];for(let e of t){let t=be(e);t&&n[t]&&r.push({type:`sourcemap`,code_file:e,debug_id:n[t]})}return r}function Nc(e,t,n,r,i,a){let{normalizeDepth:o=3,normalizeMaxBreadth:s=1e3}=e,c={...t,event_id:t.event_id||n.event_id||Ot(),timestamp:t.timestamp||zt()},l=n.integrations||e.integrations.map(e=>e.name);Pc(c,e),Lc(c,l),i&&i.emit(`applyFrameMetadata`,t),t.type===void 0&&Fc(c,e.stackParser);let u=zc(r,n.captureContext);n.mechanism&&Nt(c,n.mechanism);let d=i?i.getEventProcessors():[],f=Ea(a,u),p=[...n.attachments||[],...f.attachments];p.length&&(n.attachments=p),Ca(c,f);let m=F(u);m&&Aa(c,m),Mo(c,n,u);let h=[...d,...f.eventProcessors];return(n.data&&n.data.__sentry__===!0?Sc(c):Tc(h,c,n,0,e=>{i&&(i.recordDroppedEvent(e,fo(t.type)),t.type===`transaction`&&i.recordDroppedEvent(e,`span`,1+(t.spans||[]).length))})).then(e=>e?(Ic(e),typeof o==`number`&&o>0?Rc(e,o,s):e):null)}function Pc(e,t){let{environment:n,release:r,dist:i,maxValueLength:a}=t;e.environment=e.environment||n||`production`,!e.release&&r&&(e.release=r),!e.dist&&i&&(e.dist=i);let o=e.request;o?.url&&a&&(o.url=bt(o.url,a)),a&&e.exception?.values?.forEach(e=>{e.value&&=bt(e.value,a)})}function Fc(e,t){let n=jc(t);e.exception?.values?.forEach(e=>{e.stacktrace?.frames?.forEach(e=>{e.filename&&(e.debug_id=n[e.filename])})})}function Ic(e){let t={};if(e.exception?.values?.forEach(e=>{e.stacktrace?.frames?.forEach(e=>{e.debug_id&&(e.abs_path?t[e.abs_path]=e.debug_id:e.filename&&(t[e.filename]=e.debug_id),delete e.debug_id)})}),Object.keys(t).length===0)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];let n=e.debug_meta.images;Object.entries(t).forEach(([e,t])=>{n.push({type:`sourcemap`,code_file:e,debug_id:t})})}function Lc(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}function Rc(e,t,n){if(!e)return null;let r={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(e=>({...e,...e.data&&{data:ft(e.data,t,n)}}))},...e.user&&{user:ft(e.user,t,n)},...e.contexts&&{contexts:ft(e.contexts,t,n)},...e.extra&&{extra:ft(e.extra,t,n)}};return e.contexts?.trace&&r.contexts&&(r.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(r.contexts.trace.data=ft(e.contexts.trace.data,t,n))),e.spans&&(r.spans=e.spans.map(e=>({...e,...e.data&&{data:ft(e.data,t,n)}}))),e.contexts?.flags&&r.contexts&&(r.contexts.flags=ft(e.contexts.flags,3,n)),r}function zc(e,t){if(!t)return e;let n=e?e.clone():new en;return n.update(t),n}function Bc(e){if(e)return Vc(e)||Uc(e)?{captureContext:e}:e}function Vc(e){return e instanceof en||typeof e==`function`}var Hc=[`user`,`level`,`extra`,`contexts`,`tags`,`fingerprint`,`propagationContext`];function Uc(e){return Object.keys(e).some(e=>Hc.includes(e))}function Wc(e,t){return j().captureException(e,Bc(t))}function Gc(e,t){let n=typeof t==`string`?t:void 0,r=typeof t==`string`?void 0:{captureContext:t};return j().captureMessage(e,n,r)}function Kc(e,t){return j().captureEvent(e,t)}function qc(e,t){M().setContext(e,t)}
13function Jc(e){M().setExtras(e)}function Yc(e,t){M().setExtra(e,t)}function Xc(e){M().setTags(e)}function Zc(e,t){M().setTag(e,t)}function Qc(e){M().setAttributes(e)}function $c(e,t){M().setAttribute(e,t)}function el(e){M().setUser(e)}function tl(e){M().setConversationId(e)}function nl(){return M().lastEventId()}async function rl(e){let t=N();return t?t.flush(e):(S&&k.warn(`Cannot flush events. No client defined.`),Promise.resolve(!1))}async function il(e){let t=N();return t?t.close(e):(S&&k.warn(`Cannot flush events and disable SDK. No client defined.`),Promise.resolve(!1))}function al(){return!!N()}function ol(){let e=N();return e?.getOptions().enabled!==!1&&!!e?.getTransport()}function sl(e){M().addEventProcessor(e)}function cl(e){let t=M(),{user:n}=Ea(t,j()),{userAgent:r}=C.navigator||{},i=Kt({user:n,...r&&{userAgent:r},...e}),a=t.getSession();return a?.status===`ok`&&qt(a,{status:`exited`}),ll(),t.setSession(i),i}function ll(){let e=M(),t=j().getSession()||e.getSession();t&&Jt(t),ul(),e.setSession()}function ul(){let e=M(),t=N(),n=e.getSession();n&&t&&t.captureSession(n)}function dl(e=!1){if(e){ll();return}ul()}function fl(e){let t=e.protocol?`${e.protocol}:`:``,n=e.port?`:${e.port}`:``;return`${t}//${e.host}${n}${e.path?`/${e.path}`:``}/api/`}function pl(e){return`${fl(e)}${e.projectId}/envelope/`}function ml(e,t){let n={sentry_version:`7`};return e.publicKey&&(n.sentry_key=e.publicKey),t&&(n.sentry_client=`${t.name}/${t.version}`),new URLSearchParams(n).toString()}function hl(e,t,n){return t||`${pl(e)}?${ml(e,n)}`}function gl(e,t){let n=pi(e);if(!n)return``;let r=`${fl(n)}embed/error-page/`,i=`dsn=${si(n)}`;for(let e in t)if(e!==`dsn`&&e!==`onClose`){if(e===`user`){let e=t.user;if(!e)continue;e.name&&(i+=`&name=${encodeURIComponent(e.name)}`),e.email&&(i+=`&email=${encodeURIComponent(e.email)}`)}else i+=`&${encodeURIComponent(e)}=${encodeURIComponent(t[e])}`}return`${r}?${i}`}var _l=`sentry.timestamp.sequence`,vl=0,yl;function bl(e){let t=Math.floor(e*1e3);yl!==void 0&&t!==yl&&(vl=0);let n=vl;return vl++,yl=t,{key:_l,value:{value:n,type:`integer`}}}function xl(e,t){return t?En(t,()=>{let n=F(),r=n?Ei(n):On(t);return[n?xa(n):ba(e,t),r]}):[void 0,void 0]}var Sl={trace:1,debug:5,info:9,warn:13,error:17,fatal:21};function Cl(e,t){let n=t?`auto`:`never`;return[{type:`log`,item_count:e.length,content_type:`application/vnd.sentry.items.log+json`},{version:2,...go()&&{ingest_settings:{infer_ip:n,infer_user_agent:n}},items:e}]}function wl(e,t,n,r,i){let a={};return t?.sdk&&(a.sdk={name:t.sdk.name,version:t.sdk.version}),n&&r&&(a.dsn=si(r)),Xa(a,[Cl(e,i)])}var Tl=100;function El(e,t,n,r=!0){n&&(!e[t]||r)&&(e[t]=n)}function Dl(e,t){let n=jl(),r=Al(e);r===void 0?n.set(e,[t]):r.length>=Tl?(kl(e,r),n.set(e,[t])):n.set(e,[...r,t])}function Ol(e,t=j(),n=Dl){let r=t?.getClient()??N();if(!r){S&&k.warn(`No client available to capture log.`);return}let{release:i,environment:a,beforeSendLog:o}=r.getOptions(),[,s]=xl(r,t),c={...e.attributes},{user:{id:l,email:u,username:d},attributes:f}=Ea(M(),t);El(c,`user.id`,l,!1),El(c,`user.email`,u,!1),El(c,`user.name`,d,!1),El(c,`sentry.release`,i),El(c,`sentry.environment`,a);let{name:p,version:m}=r.getSdkMetadata()?.sdk??{};El(c,`sentry.sdk.name`,p),El(c,`sentry.sdk.version`,m);let h=r.getIntegrationByName(`Replay`),g=h?.getReplayId(!0);El(c,`sentry.replay_id`,g),g&&h?.getRecordingMode()===`buffer`&&El(c,`sentry._internal.replay_is_buffering`,!0);let _=e.message;if(ze(_)){let{__sentry_template_string__:e,__sentry_template_values__:t=[]}=_;t?.length&&(c[`sentry.message.template`]=e),t.forEach((e,t)=>{c[`sentry.message.parameter.${t}`]=e})}El(c,`sentry.trace.parent_span_id`,F(t)?.spanContext().spanId);let v={...e,attributes:c};r.emit(`beforeCaptureLog`,v);let y=o?Na(S?"The `beforeSendLog` callback threw an error, dropping the log:":``,()=>re(()=>o(v)),()=>Ma):v;if(y===Ma){r.recordDroppedEvent(`callback_error`,`log_item`,1);return}if(!y){r.recordDroppedEvent(`before_send`,`log_item`,1),S&&k.warn(`beforeSendLog returned null, log will not be captured.`);return}let{level:b,message:x,attributes:C={},severityNumber:w}=y,T=Ht(),E=bl(T);n(r,{timestamp:T,level:b,body:Nl(String(x)),trace_id:s?.trace_id,severity_number:w??Sl[b],attributes:Ml({...yn(f),...yn(C,!0),[E.key]:E.value})}),r.emit(`afterCaptureLog`,y)}function kl(e,t){let n=t??Al(e)??[];if(n.length===0)return;let r=e.getOptions(),i=wl(n,r._metadata,r.tunnel,e.getDsn(),e.getDataCollectionOptions().userInfo);jl().set(e,[]),e.emit(`flushLogs`),e.sendEnvelope(i)}function Al(e){return jl().get(e)}function jl(){return D(`clientToLogBufferMap`,()=>new WeakMap)}function Ml(e){let t={};for(let[n,r]of Object.entries(e)){let e=Nl(n);t[e]=r.type===`string`?{...r,value:Nl(r.value)}:r}return t}function Nl(e){let t=Object(e),n=t.isWellFormed,r=t.toWellFormed;return typeof n==`function`&&typeof r==`function`?n.call(e)?e:r.call(e):e}function Pl(e,t){let n=t?`auto`:`never`;return[{type:`trace_metric`,item_count:e.length,content_type:`application/vnd.sentry.items.trace-metric+json`},{version:2,...go()&&{ingest_settings:{infer_ip:n,infer_user_agent:n}},items:e}]}function Fl(e,t,n,r,i){let a={};return t?.sdk&&(a.sdk={name:t.sdk.name,version:t.sdk.version}),n&&r&&(a.dsn=si(r)),Xa(a,[Pl(e,i)])}var Il=1e3;function Ll(e,t,n,r=!0){n&&(r||!(t in e))&&(e[t]=n)}function Rl(e,t){let n=Wl(),r=Ul(e);r===void 0?n.set(e,[t]):r.length>=Il?(Hl(e,r),n.set(e,[t])):n.set(e,[...r,t])}function zl(e,t,n){let{release:r,environment:i}=t.getOptions(),a={...e.attributes};Ll(a,`user.id`,n.id,!1),Ll(a,`user.email`,n.email,!1),Ll(a,`user.name`,n.username,!1),Ll(a,`sentry.release`,r),Ll(a,`sentry.environment`,i);let{name:o,version:s}=t.getSdkMetadata()?.sdk??{};Ll(a,`sentry.sdk.name`,o),Ll(a,`sentry.sdk.version`,s);let c=t.getIntegrationByName(`Replay`),l=c?.getReplayId(!0);return Ll(a,`sentry.replay_id`,l),l&&c?.getRecordingMode()===`buffer`&&Ll(a,`sentry._internal.replay_is_buffering`,!0),{...e,attributes:a}}function Bl(e,t,n,r){let[,i]=xl(t,n),a=F(n),o=a?a.spanContext().traceId:i?.trace_id,s=a?a.spanContext().spanId:void 0,c=Ht(),l=bl(c);return{timestamp:c,trace_id:o??``,span_id:s,name:e.name,type:e.type,unit:e.unit,value:e.value,attributes:{...yn(r),...yn(e.attributes,`skip-undefined`),[l.key]:l.value}}}function Vl(e,t){let n=t?.scope??j(),r=t?.captureSerializedMetric??Rl,i=n?.getClient()??N();if(!i){S&&k.warn(`No client available to capture metric.`);return}let{beforeSendMetric:a}=i.getOptions(),{user:o,attributes:s}=Ea(M(),n),c=zl(e,i,o);i.emit(`processMetric`,c);let l=a?Na(S?"The `beforeSendMetric` callback threw an error, dropping the metric:":``,()=>a(c),()=>Ma):c;if(l===Ma){i.recordDroppedEvent(`callback_error`,`metric`,1);return}if(!l){i.recordDroppedEvent(`before_send`,`metric`,1),S&&k.log("`beforeSendMetric` returned `null`, will not send metric.");return}let u=Bl(l,i,n,s);S&&k.log(`[Metric]`,u),r(i,u),i.emit(`afterCaptureMetric`,l)}function Hl(e,t){let n=t??Ul(e)??[];if(n.length===0)return;let r=e.getOptions(),i=Fl(n,r._metadata,r.tunnel,e.getDsn(),e.getDataCollectionOptions().userInfo);Wl().set(e,[]),e.emit(`flushMetrics`),e.sendEnvelope(i)}function Ul(e){return Wl().get(e)}function Wl(){return D(`clientToMetricBufferMap`,()=>new WeakMap)}function Gl(e,t){if(e.type!==`transaction`||!e.spans?.length||!e.sdkProcessingMetadata?.hasGenAiSpans||L(t))return;let n=[],r=[];for(let t of e.spans)t.op?.startsWith(`gen_ai.`)?n.push(Ba(t)):r.push(t);if(n.length!==0)return e.spans=r,yo(n,t)}var Kl=Symbol.for(`SentryBufferFullError`);function ql(e=100){let t=new Set;function n(){return t.size<e}function r(e){t.delete(e)}function i(e){if(!n())return Cc(Kl);let i=e();return t.add(i),i.then(()=>r(i),()=>r(i)),i}function a(e){if(!t.size)return Sc(!0);let n=Promise.allSettled(Array.from(t)).then(()=>!0);if(!e)return n;let r=[n,new Promise(t=>Ya(setTimeout(()=>t(!1),e)))];return Promise.race(r)}return{get $(){return Array.from(t)},add:i,drain:a}}var Jl=6e4;function Yl(e,t=it()){let n=parseInt(`${e}`,10);if(!isNaN(n))return n*1e3;let r=Date.parse(`${e}`);return isNaN(r)?Jl:r-t}function Xl(e,t){return e[t]||e.all||0}function Zl(e,t,n=it()){return Xl(e,t)>n}function Ql(e,{statusCode:t,headers:n},r=it()){let i={...e},a=n?.[`x-sentry-rate-limits`],o=n?.[`retry-after`];if(a)for(let e of a.trim().split(`,`)){let[t,n,,,a]=e.split(`:`,5),o=parseInt(t,10),s=(isNaN(o)?60:o)*1e3;if(!n)i.all=r+s;else for(let e of n.split(`;`))e===`metric_bucket`?(!a||a.split(`;`).includes(`custom`))&&(i[e]=r+s):i[e]=r+s}else o?i.all=r+Yl(o,r):t===429&&(i.all=r+6e4);return i}function $l(e,t,n=ql(e.bufferSize||64)){let r={},i=e=>n.drain(e);function a(i){let a=[];if(Qa(i,(t,n)=>{let i=co(n);Zl(r,i)?e.recordDroppedEvent(`ratelimit_backoff`,i):a.push(t)}),a.length===0)return Promise.resolve({});let o=Xa(i[0],a),s=t=>{if($a(o,[`client_report`])){S&&k.warn(`Dropping client report. Will not send outcomes (reason: ${t}).`);return}Qa(o,(n,r)=>{e.recordDroppedEvent(t,co(r))})};return n.add(()=>t({body:no(o)}).then(e=>e.statusCode===413?(S&&k.error(`Sentry responded with status code 413. Envelope was discarded due to exceeding size limits.`),s(`send_error`),e):(S&&e.statusCode!==void 0&&(e.statusCode<200||e.statusCode>=300)&&k.warn(`Sentry responded with status code ${e.statusCode} to sent event.`),r=Ql(r,e),e),e=>{throw s(`network_error`),S&&k.error(`Encountered error running transport request:`,e),e})).then(e=>e,e=>
13{if(e===Kl)return S&&k.error(`Skipped sending event because buffer is full.`),s(`queue_overflow`),Promise.resolve({});throw e})}return{send:a,flush:i}}function eu(e,t,n){let r=[{type:`client_report`},{timestamp:n||zt(),discarded_events:e}];return Xa(t?{dsn:t}:{},[r])}function tu(e){let t=[];e.message&&t.push(e.message);try{let n=e.exception.values[e.exception.values.length-1];n?.value&&(t.push(n.value),n.type&&t.push(`${n.type}: ${n.value}`))}catch{}return t}function nu(e){let{trace_id:t,parent_span_id:n,span_id:r,status:i,origin:a,data:o,op:s}=e.contexts?.trace??{};return{data:o??{},description:e.transaction,op:s,parent_span_id:n,span_id:r??``,start_timestamp:e.start_timestamp??0,status:i??`ok`,timestamp:e.timestamp,trace_id:t??``,origin:a,profile_id:o?.[Ir],exclusive_time:o?.[Lr],measurements:e.measurements,is_segment:!0}}function ru(e){return{type:`transaction`,timestamp:e.timestamp,start_timestamp:e.start_timestamp,transaction:e.description,contexts:{trace:{trace_id:e.trace_id,span_id:e.span_id,parent_span_id:e.parent_span_id,op:e.op,status:e.status,origin:e.origin,data:{...e.data,...e.profile_id&&{"sentry.profile_id":e.profile_id},...e.exclusive_time&&{"sentry.exclusive_time":e.exclusive_time}}}},measurements:e.measurements}}function iu(e){e.traceLifecycle===`stream`&&(e.beforeSendTransaction||e.ignoreTransactions?.length)&&re(()=>{console.warn("[Sentry] `beforeSendTransaction` and `ignoreTransactions` are ignored with `traceLifecycle: 'stream'` (enabled by default). Use `beforeSendSpan` and `ignoreSpans` instead, or set `traceLifecycle: 'static'`.")})}var au={userInfo:!0,cookies:!0,httpHeaders:{request:!0,response:!0},httpBodies:[`incomingRequest`,`outgoingRequest`,`incomingResponse`,`outgoingResponse`],urlQueryParams:!0,graphQL:{document:!0,variables:!0},genAI:{inputs:!0,outputs:!0},databaseQueryData:!0,queues:!0,stackFrameVariables:!0,frameContextLines:5};function ou(e){return typeof e==`boolean`||`allow`in e||`deny`in e}function su(e){return e===void 0?{...au.httpHeaders}:ou(e)?{request:e,response:e}:{request:e.request??au.httpHeaders.request,response:e.response??au.httpHeaders.response}}function cu(e){let t=e.dataCollection??{};return{userInfo:t.userInfo??au.userInfo,cookies:t.cookies??au.cookies,httpHeaders:su(t.httpHeaders),httpBodies:t.httpBodies??au.httpBodies,urlQueryParams:t.urlQueryParams??au.urlQueryParams,graphQL:{document:t.graphQL?.document??au.graphQL.document,variables:t.graphQL?.variables??au.graphQL.variables},genAI:{inputs:t.genAI?.inputs??au.genAI.inputs,outputs:t.genAI?.outputs??au.genAI.outputs},databaseQueryData:t.databaseQueryData??au.databaseQueryData,queues:t.queues??au.queues,stackFrameVariables:t.stackFrame
13Variables??au.stackFrameVariables,frameContextLines:t.frameContextLines??au.frameContextLines}}var lu=`Not capturing exception because it's already been captured.`,uu=`Discarded session because of missing or non-string release`,du=Symbol.for(`SentryInternalError`),fu=Symbol.for(`SentryDoNotSendEventError`),pu=5e3;function mu(e){return{message:e,[du]:!0}}function hu(e){return{message:e,[fu]:!0}}function gu(e){return He(e)&&du in e}function _u(e){return He(e)&&fu in e}function vu(e,t,n,r,i){let a=0,o,s=!1;e.on(n,()=>{a=0,clearTimeout(o),s=!1}),e.on(t,t=>{if(a+=r(t),a>=8e5)i(e);else if(!s){let t=e.getOptions()._flushInterval??pu;t>0&&(s=!0,o=Ya(setTimeout(()=>{i(e)},t)))}}),e.on(`flush`,()=>{i(e)})}var yu=class{constructor(e){this._options={attachStacktrace:!0,...e,traceLifecycle:e.traceLifecycle===`static`?`static`:`stream`},this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],this._promiseBuffer=ql(e.transportOptions?.bufferSize??64),this._dataCollection=cu(e),this._unhandledSessionStatus=`crashed`,e.dsn?this._dsn=pi(e.dsn):S&&k.warn(`No DSN provided, client will not send events.`);let{beforeSendSpan:t,traceLifecycle:n}=this._options;if(S&&t&&La(t)!==(n===`static`)&&re(()=>{console.warn(`Ignoring \`beforeSendSpan\`: ${n===`static`?`wrap it with`:`remove`} \`Sentry.withStaticSpan\` to use it with \`traceLifecycle: "${n}"\`.`)}),this._dsn){let t=hl(this._dsn,e.tunnel,e._metadata?e._metadata.sdk:void 0);this._transport=e.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...e.transportOptions,url:t})}vu(this,`afterCaptureLog`,`flushLogs`,Tu,kl),vu(this,`afterCaptureMetric`,`flushMetrics`,wu,Hl)}captureException(e,t,n){let r=Ot();if(It(e))return S&&k.log(lu),r;let i={event_id:r,...t};return this._process(()=>this.eventFromException(e,i).then(e=>this._captureEvent(e,i,n)).then(e=>e),`error`),i.event_id}captureMessage(e,t,n,r){let i={event_id:Ot(),...n},a=ze(e)?e:String(e),o=Be(e),s=o?this.eventFromMessage(a,t,i):this.eventFromException(e,i);return this._process(()=>s.then(e=>this._captureEvent(e,i,r)),o?`unknown`:`error`),i.event_id}captureEvent(e,t,n){let r=Ot();if(t?.originalException&&It(t.originalException))return S&&k.log(lu),r;let i={event_id:r,...t},a=e.sdkProcessingMetadata||{},o=a.capturedSpanScope,s=a.capturedSpanIsolationScope,c=fo(e.type);return this._process(()=>this._captureEvent(e,i,o||n,s),c),i.event_id}captureSession(e){this.sendSession(e),qt(e,{init:!1})}getDsn(){return this._dsn}getOptions(){return this._options}getDataCollectionOptions(){return this._dataCollection}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}async flush(e){let t=this._transport;if(this.emit(`flush`),!t)return!0;let n=await this._isClientDoneProcessing(e),r=await t.flush(e);return n&&r}async close(e){let t=await this.flush(e);return this.getOptions().enabled=!1,this.emit(`close`),t}getEventProcessors(){return this._eventProcessors}addEventProcessor(e){this._eventProcessors.push(e)}init(){(this._isEnabled()||this._options.integrations.some(({name:e})=>e.startsWith(`Spotlight`)))&&(this._setupIntegrations(),iu(this._options))}getIntegrationByName(e){return this._integrations[e]}getIntegrationNames(){return Object.keys(this._integrations)}addIntegration(e){let t=this._integrations[e.name];!t&&e.beforeSetup&&e.beforeSetup(this),da(this,e,this._integrations),t||ua(this,[e])}sendEvent(e,t={}){this.emit(`beforeSendEvent`,e,t);let n=Gl(e,this),r=vc(e,this._dsn,this._options._metadata,this._options.tunnel);for(let e of t.attachments||[])r=Za(r,ao(e));n&&(r=Za(r,n)),this.sendEnvelope(r).then(t=>this.emit(`afterSendEvent`,e,t))}sendSession(e){let{release:t,environment:n=pa}=this._options;if(`aggregates`in e){let r=e.attrs||{};if(!r.release&&!t){S&&k.warn(uu);return}r.release=r.release||t,r.environment=r.environment||n,e.attrs=r}else{if(!e.release&&!t){S&&k.warn(uu);return}e.release=e.release||t,e.environment=e.environment||n}this.emit(`beforeSendSession`,e);let r=_c(e,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(r)}recordDroppedEvent(e,t,n=1){if(this._options.sendClientReports){let r=`${e}:${t}`;S&&k.log(`Recording outcome: "${r}"${n>1?` (${n} times)`:``}`),this._outcomes[r]=(this._outcomes[r]||0)+n}}on(e,t){let n=this._hooks[e]=this._hooks[e]||new Set,r=(...e)=>t(...e);return n.add(r),()=>{n.delete(r)}}emit(e,...t){let n=this._hooks[e];
13n&&n.forEach(e=>e(...t))}async sendEnvelope(e){if(this.emit(`beforeEnvelope`,e),this._isEnabled()&&this._transport)try{let t=await this._transport.send(e);return this.emit(`afterEnvelope`,e),t}catch(e){return S&&k.error(`Error while sending envelope:`,e),{}}return S&&k.error(`Transport disabled`),{}}registerCleanup(e){}dispose(){}_setupIntegrations(){let{integrations:e}=this._options;this._integrations=la(this,e),ua(this,e)}_updateSessionFromEvent(e,t){let n=t.level===`fatal`,r=!1,i=t.exception?.values;if(i){r=!0,n=!1;for(let e of i)if(e.mechanism?.handled===!1){n=!0;break}}let a=e.status===`ok`;(a&&e.errors===0||a&&n)&&(qt(e,{...n&&{status:this._unhandledSessionStatus},errors:e.errors||Number(r||n)}),this.captureSession(e))}async _isClientDoneProcessing(e){let t=0;for(;!e||t<e;){if(await new Promise(e=>setTimeout(e,1)),!this._numProcessing)return!0;t++}return!1}_isEnabled(){return this.getOptions().enabled!==!1&&this._transport!==void 0}_prepareEvent(e,t,n,r){let i=this.getOptions(),a=this.getIntegrationNames();return!t.integrations&&a.length&&(t.integrations=a),this.emit(`preprocessEvent`,e,t),e.type||r.setLastEventId(e.event_id||t.event_id),Nc(i,e,t,n,this,r).then(e=>e===null?e:(this.emit(`postprocessEvent`,e,t),e.contexts={trace:{...e.contexts?.trace,...On(n)},...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:ba(this,n),...e.sdkProcessingMetadata},e))}_captureEvent(e,t={},n=j(),r=M()){return S&&Su(e)&&k.log(`Captured error event \`${tu(e)[0]||`<unknown>`}\``),this._processEvent(e,t,n,r).then(e=>e.event_id,e=>{S&&(_u(e)?k.log(e.message):gu(e)?k.warn(e.message):k.warn(e))})}_processEvent(e,t,n,r){let i=this.getOptions(),{sampleRate:a}=i,o=Cu(e),s=Su(e),c=`before send for type \`${e.type||`error`}\``,l=`before_send`,u=a===void 0?void 0:mi(a),d=fo(e.type);return this._prepareEvent(e,t,n,r).then(e=>{if(e===null)throw hu("An event processor returned `null`, will not send event.");return t.data?.__sentry__===!0?e:bu(xu(this,i,e,t,()=>{l=`callback_error`}),c)}).then(i=>{if(i===null){if(this.recordDroppedEvent(l,d),o){let t=e.spans||[];this.recordDroppedEvent(l,`span`,1+t.length)}throw hu(`${c} ${l===`callback_error`?`threw an error`:"returned `null`"}, will not send event.`)}let f=n.getSession()||r.getSession();if(s&&f&&this._updateSessionFromEvent(f,i),s&&typeof u==`number`&&rt()>u)throw this.recordDroppedEvent(`sample_rate`,`error`),hu(`Discarding event because it's not included in the random sample (sampling rate = ${a})`);if(o){let e=(i.sdkProcessingMetadata?.spanCountBeforeProcessing||0)-(i.spans?i.spans.length:0);e>0&&this.recordDroppedEvent(`before_send`,`span`,e)}let p=i.transaction_info;return o&&p&&i.transaction!==e.transaction&&(i.transaction_info={...p,source:`custom`}),this.sendEvent(i,t),i}).then(null,e=>{throw _u(e)||gu(e)?e:(this.captureException(e,{mechanism:{handled:!1,type:`internal`},data:{__sentry__:!0},originalException:e}),mu(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.
14Reason: ${e}`))})}_process(e,t){this._numProcessing++,this._promiseBuffer.add(e).then(e=>(this._numProcessing--,e),e=>(this._numProcessing--,e===Kl&&this.recordDroppedEvent(`queue_overflow`,t),e))}_clearOutcomes(){let e=this._outcomes;return this._outcomes={},Object.entries(e).map(([e,t])=>{let[n,r]=e.split(`:`);return{reason:n,category:r,quantity:t}})}_flushOutcomes(){S&&k.log(`Flushing outcomes...`);let e=this._clearOutcomes();if(e.length===0){S&&k.log(`No outcomes to send`);return}if(!this._dsn){S&&k.log(`No dsn provided, will not send outcomes`);return}S&&k.log(`Sending outcomes:`,e);let t=eu(e,this._options.tunnel&&si(this._dsn));this.sendEnvelope(t)}};function bu(e,t){let n=`${t} must return \`null\` or a valid event.`;if(Ge(e))return e.then(e=>{if(!Ve(e)&&e!==null)throw mu(n);return e},e=>{throw mu(`${t} rejected with ${e}`)});if(!Ve(e)&&e!==null)throw mu(n);return e}function xu(e,t,n,r,i){let{beforeSend:a,ignoreSpans:o,beforeSendTransaction:s}=t,c=La(t.beforeSendSpan)&&t.beforeSendSpan,l=n;if(Su(l)&&a){let e=l;return Na(S?"The `beforeSend` callback threw an error, dropping the event:":``,()=>a(e,r),()=>(i(),null))}if(Cu(l)){if(c||o){let t=nu(l);if(o?.length&&na({description:t.description,op:t.op,attributes:t.data},o))return null;if(c&&(l=Xt(n,ru(za(t,c)))),l.spans){let t=[],n=l.spans;for(let e of n){if(o?.length&&na({description:e.description,op:e.op,attributes:e.data},o)){ia(n,e);continue}c?t.push(za(e,c)):t.push(e)}let r=l.spans.length-t.length;r&&e.recordDroppedEvent(`before_send`,`span`,r),l.spans=t}}if(s){if(l.spans){let e=l.spans.length;l.sdkProcessingMetadata={...n.sdkProcessingMetadata,spanCountBeforeProcessing:e}}return Na(S?"The `beforeSendTransaction` callback threw an error, dropping the event:":``,()=>s(l,r),()=>(i(),null))}}return l}function Su(e){return e.type===void 0}function Cu(e){return e.type===`transaction`}function wu(e){let t=0;return e.name&&(t+=e.name.length*2),t+=8,t+Eu(e.attributes)}function Tu(e){let t=0;return e.message&&(t+=e.message.length*2),t+Eu(e.attributes)}function Eu(e){if(!e)return 0;let t=0;
14return Object.values(e).forEach(e=>{Array.isArray(e)?t+=e.length*Du(e[0]):Be(e)?t+=Du(e):t+=100}),t}function Du(e){return typeof e==`string`?e.length*2:typeof e==`number`?8:typeof e==`boolean`?4:0}function Ou(e,t){t.debug===!0&&(S?k.enable():re(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})),j().update(t.initialScope);let n=new e(t);return ku(n),n.init(),n}function ku(e){j().setClient(e)}var Au=5e3,ju=36e5;function Mu(e){function t(...e){S&&k.log(`[Offline]:`,...e)}return n=>{let r=e(n);if(!n.createStore)throw Error("No `createStore` function was provided");let i=n.createStore(n),a=Au,o;function s(e,t,r){return $a(e,[`client_report`])?!1:!n.shouldStore||n.shouldStore(e,t,r)}function c(e){o&&clearTimeout(o),o=Ya(setTimeout(async()=>{o=void 0;let e=await i.shift();e&&(t(`Attempting to send previously queued event`),e[0].sent_at=new Date(it()).toISOString(),u(e,!0).catch(e=>{t(`Failed to retry sending`,e)}))},e))}function l(){o||(c(a),a=Math.min(a*2,ju))}async function u(e,o=!1){if(!o&&$a(e,[`replay_event`,`replay_recording`]))return await i.push(e),c(100),{};try{if(n.shouldSend){let t=n.shouldSend(e);if((Ge(t)?await t:t)===!1)throw Error("Envelope not sent because `shouldSend` callback returned false")}let t=await r.send(e),i=100;if(t){if(t.headers?.[`retry-after`])i=Yl(t.headers[`retry-after`]);else if(t.headers?.[`x-sentry-rate-limits`])i=6e4;else if((t.statusCode||0)>=400)return t}return c(i),a=Au,t}catch(n){let r=s(e,n,a);if(Ge(r)?await r:r)return o?await i.unshift(e):await i.push(e),l(),t(`Error sending. Event queued.`,n),{};throw n}}return n.flushAtStartup&&l(),{send:u,flush:e=>(e===void 0&&(a=Au,c(100)),r.flush(e))}}}var Nu=`MULTIPLEXED_TRANSPORT_EXTRA_KEY`;function Pu(e,t){let n;return Qa(e,(e,r)=>(t.includes(r)&&(n=Array.isArray(e)?e[1]:void 0),!!n)),n}function Fu(e,t){return n=>{let r=e(n);return{...r,send:async e=>{let n=Pu(e,[`event`,`transaction`,`profile`,`replay_event`]);return n&&(n.release=t),r.send(e)}}}}function Iu(e,t){return Xa(t?{...e[0],dsn:t}:e[0],e[1])}function Lu(e,t){return n=>{let r=e(n),i=new Map,a=t||(e=>{let t=e.getEvent();return t?.extra?.MULTIPLEXED_TRANSPORT_EXTRA_KEY&&Array.isArray(t.extra.MULTIPLEXED_TRANSPORT_EXTRA_KEY)?t.extra.MULTIPLEXED_TRANSPORT_EXTRA_KEY:[]});function o(t,r){let a=r?`${t}:${r}`:t,o=i.get(a);if(!o){let s=ci(t);if(!s)return;let c=hl(s,n.tunnel);o=r?Fu(e,r)({...n,url:c}):e({...n,url:c}),i.set(a,o)}return[t,o]}async function s(e){function t(t){return Pu(e,t?.length?t:[`event`])}let n=a({envelope:e,getEvent:t}).map(e=>typeof e==`string`?o(e,void 0):o(e.dsn,e.release)).filter(e=>!!e),i=n.length?n:[[``,r]];return(await Promise.all(i.map(([t,n])=>n.send(Iu(e,t)))))[0]}async function c(e){let t=[...i.values(),r];return(await Promise.all(t.map(t=>t.flush(e)))).every(e=>e)}return{send:s,flush:c}}}var Ru=`[Filtered]`,zu=[`auth`,`token`,`secret`,`session`,`password`,`passwd`,`pwd`,`key`,`jwt`,`bearer`,`sso`,`saml`,`csrf`,`xsrf`,`credentials`,`sid`,`identity`,`set-cookie`,`cookie`],Bu=[`.sid`,`sessid`,`remember`,`oidc`,`pkce`,`nonce`,`__secure-`,`__host-`,`awsalb`,`awselb`,`akamai`,`__stripe`,`cognito`,`firebase`,`supabase`,`sb-`,`mfa`,`2fa`];function Vu(e,t){return t.some(t=>e.includes(t))}function Hu(e,t,n){if(t===!1)return!0;let r=e.toLowerCase();if(Vu(r,n==null?zu:[...zu,...n]))return!0;if(t===!0)return!1;let i=(`deny`in t?t.deny:t.allow).some(e=>r.includes(e.toLowerCase()));return`deny`in t?i:!i}function Uu(e,t,n){if(t===!1)return{};let r={};for(let i of Object.keys(e))r[i]=Hu(i,t,n)?Ru:e[i];return r}function Wu(e,t){return(Array.isArray(e)?e:[e]).flatMap(e=>typeof e==`string`?t===`set-cookie`?[e.split(`;`)[0]]:e.split(`;`):[]).map(e=>e.trim()).filter(e=>e!==``&&e!==`=`).map(e=>{let t=e.indexOf(`=`);return t===-1?[``,e]:[e.slice(0,t).trim(),e.slice(t+1).trim()]})}function Gu(e){let t={};for(let[n,r]of e)t[n]===void 0&&(t[n]=n===``?Ru:Ku(r));return t}function Ku(e){let t=e.length>1&&e.startsWith(`"`)&&e.endsWith(`"`)?e.slice(1,-1):e;try{return t.indexOf(`%`)===-1?t:decodeURIComponent(t)}catch{return t}}function qu(e,t,n){return t===!1?{}:Uu(Gu(Wu(e,n)),t,Bu)}function Ju(e,t){if(e&&t!==!1)return e.split(`&`).map(e=>{let n=e.indexOf(`=`),r=n===-1?e:e.slice(0,n),i=new URLSearchParams(`${r}=`).keys().next().value;return i!==void 0&&Hu(i,t)?`${r}=${Ru}`:e}).join(`&`)}function Yu(e,t){let n=e.indexOf(`#`),r=n===-1?e.length:n,i=e.indexOf(`?`);if(i===-1||i>r)return e;let a=e.slice(0,i),o=e.slice(i+1,r),s=e.slice(r),c=Ju(o,t);return c?`${a}?${c}${s}`:`${a}${s}`}function Xu(e){return(e??N())?.getDataCollectionOptions().urlQueryParams??!0}function Zu(e,t){return e===void 0?void 0:Yu(e,Xu(t))}function Qu(e,t){return e?Ju(e,Xu(t)):void 0}var $u=`thismessage:/`;function ed(e){return`isRelative`in e}function td(e,t){let n=e.indexOf(`://`)<=0&&e.indexOf(`//`)!==0,r=t??(n?$u:void 0);try{if(`canParse`in URL&&!URL.canParse(e,r))return;let t=new URL(e,r);return n?{isRelative:n,pathname:t.pathname,search:t.search,hash:t.hash}:t}catch{}}
14function nd(e){if(ed(e))return e.pathname;let t=new URL(e);return t.search=``,t.hash=``,[`80`,`443`].includes(t.port)&&(t.port=``),t.password&&=`%filtered%`,t.username&&=`%filtered%`,t.toString()}function rd(e){return e?.replace(/^\?/,``)||void 0}function id(e){return e?.replace(/^#/,``)||void 0}function ad(e,t){try{return new URL(e,t).hostname||void 0}catch{return}}function od(e){if(!e)return{};let t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};let 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}}function sd(e){return e.split(/[?#]/,1)[0]}function cd(e,t=!0){if(e.startsWith(`data:`)){let n=e.match(/^data:([^;,]+)/),r=n?n[1]:`text/plain`,i=e.includes(`;base64,`),a=e.indexOf(`,`),o=``;if(t&&a!==-1){let t=e.slice(a+1);o=t.length>10?`${t.slice(0,10)}... [truncated]`:t}return`data:${r}${i?`,base64`:``}${o?`,${o}`:``}`}return e}function ld(e,t){let n=t?.getDsn(),r=t?.getOptions().tunnel;return dd(e,n)||ud(e,r)}function ud(e,t){return t?pd(e)===pd(t):!1}function dd(e,t){let n=td(e);return!n||ed(n)||!t?!1:fd(n.hostname,t.host)&&/(^|&|\?)sentry_key=/.test(n.search)}function fd(e,t){return e===t||t.length>0&&e.endsWith(`.${t}`)}function pd(e){return e[e.length-1]===`/`?e.slice(0,-1):e}function md(e,...t){let 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}var hd=md;function gd(e){`aggregates`in e?e.attrs?.ip_address===void 0&&(e.attrs={...e.attrs,ip_address:`{{auto}}`}):e.ipAddress===void 0&&(e.ipAddress=`{{auto}}`)}function _d(e,t,n=[t],r=`npm`){let i=(e._metadata=e._metadata||{}).sdk=e._metadata.sdk||{};i.name||(i.name=`sentry.javascript.${t}`,i.packages=n.map(e=>({name:`${r}:@sentry/${e}`,version:w})),i.version=w)}function vd(e={}){let t=e.client||N();if(!ol()||!t)return{};let n=gn(T());if(n.getTraceData)return n.getTraceData(e);let r=e.scope||j(),i=e.span||F(),a=ga(i)&&!ea(t.getOptions());if(!i&&wn())return{};let o=i&&!a?Di(i):yd(r),s=ei(i?xa(i):ba(t,r));if(!hi.test(o))return k.warn(`Invalid sentry-trace data. Cannot generate trace data`),{};let c={"sentry-trace":o,baggage:s};return e.propagateTraceparent&&(c.traceparent=i&&!a?Oi(i):bd(r)),c}function yd(e){let{traceId:t,sampled:n,propagationSpanId:r}=e.getPropagationContext();return vi(t,r,n)}function bd(e){let{traceId:t,sampled:n,propagationSpanId:r}=e.getPropagationContext();return yi(t,r,n)}var xd=new WeakMap;function Sd(e){let t=`${e.flags.replace(/[gy]/g,``)}${e.ignoreCase?``:`i`}`;if(t===e.flags)return e;let n=xd.get(e);if(n)return n;let r=new RegExp(e.source,t);return xd.set(e,r),r}function Cd(e,t,n=!1){let r=e.toLowerCase();for(let i of t)if(Re(i)){let e=i.toLowerCase();if(n?r===e:r.includes(e))return!0}else if(We(i)&&Sd(i).test(e))return!0;return!1}var wd=100;function Td(e,t){let n=N(),r=M();if(!n)return;let{beforeBreadcrumb:i=null,maxBreadcrumbs:a=wd}=n.getOptions();if(a<=0)return;let o={timestamp:zt(),...e},s=i?Na(S?"The `beforeBreadcrumb` callback threw an error, dropping the breadcrumb:":``,()=>re(()=>i(o,t)),()=>null):o;s!==null&&(n.emit&&n.emit(`beforeAddBreadcrumb`,s,t),r.addBreadcrumb(s,a))}var Ed=`FunctionToString`,Dd=new WeakMap,Od=I((()=>({name:Ed,setupOnce(){let e=Function.prototype.toString;try{Function.prototype.toString=function(...t){let n=Ze(this),r;try{Dd.has(N())&&n!==void 0&&(r=n)}catch{}return e.apply(r??this,t)}}catch{}},setup(e){Dd.set(e,!0)}}))),kd=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/,/^Can't find variable: gmo$/,/^undefined is not an object \(evaluating 'a\.[A-Z]'\)$/,/can't redefine non-configurable property "solana"/,/vv\(\)\.getRestrictions is not a function/,/Can't find variable: _AutofillCallbackHandler/,/Object Not Found Matching Id:\d+, MethodName:simulateEvent/,/Java exception was raised during method invocation$/,/Java object is gone$/],Ad=`EventFilters`,jd=I((e={})=>{let t;return{name:Ad,setup(n){t=Md(e,n.getOptions())},processEvent(n,r,i){return t||=Md(e,i.getOptions()),Nd(n,t)?null:n}}});function Md(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:kd],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[]]}}function Nd(e,t){if(!e.type){if(Pd(e,t.ignoreErrors))return S&&k.warn(`Event dropped due to being matched by \`ignoreErrors\` option.
15Event: ${At(e)}`),!0;if(Bd(e))return S&&k.warn(`Event dropped due to not having an error message, error type or stacktrace.
16Event: ${At(e)}`),!0;if(Id(e,t.denyUrls))return S&&k.warn(`Event dropped due to being matched by \`denyUrls\` option.
17Event: ${At(e)}.
18Url: ${zd(e)}`),!0;if(!Ld(e,t.allowUrls))return S&&k.warn(`Event dropped due to not being matched by \`allowUrls\` option.
19Event: ${At(e)}.
20Url: ${zd(e)}`),!0}else if(e.type===`transaction`&&Fd(e,t.ignoreTransactions))return S&&k.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.
21Event: ${At(e)}`),!0;return!1}function Pd(e,t){return t?.length?tu(e).some(e=>wt(e,t)):!1}function Fd(e,t){if(!t?.length)return!1;let n=e.transaction;return n?wt(n,t):!1}function Id(e,t){if(!t?.length)return!1;let n=zd(e);return n?wt(n,t):!1}function Ld(e,t){if(!t?.length)return!0;let n=zd(e);return!n||wt(n,t)}function Rd(e=[]){for(let t=e.length-1;t>=0;t--){let n=e[t];if(n&&n.filename!==`<anonymous>`&&n.filename!==`[native code]`)return n.filename||null}return null}function zd(e){try{let t=[...e.exception?.values??[]].reverse().find(e=>e.mechanism?.parent_id===void 0&&e.stacktrace?.frames?.length)?.stacktrace?.frames;return t?Rd(t):null}catch{return S&&k.error(`Cannot extract url for event ${At(e)}`),null}}function Bd(e){return e.exception?.values?.length?!e.message&&!e.exception.values.some(e=>e.stacktrace||e.type&&e.type!==`Error`||e.value):!1}function Vd(e,t,n,r,i,a){if(!i.exception?.values||!a||!Ne(a.originalException))return;let o=i.exception.values.length>0?i.exception.values[i.exception.values.length-1]:void 0;o&&(i.exception.values=Hd(e,t,r,a.originalException,n,i.exception.values,o,0))}
21function Hd(e,t,n,r,i,a,o,s){if(a.length>=n+1)return a;let c=[...a];if(Ne(r[i])){Wd(o,s,r);let a=e(t,r[i]),l=c.length;Gd(a,i,l,s),c=Hd(e,t,n,r[i],i,[a,...c],a,l)}return Ud(r)&&r.errors.forEach((a,l)=>{if(Ne(a)){Wd(o,s,r);let u=e(t,a),d=c.length;Gd(u,`errors[${l}]`,d,s),c=Hd(e,t,n,a,i,[u,...c],u,d)}}),c}function Ud(e){return Array.isArray(e.errors)}function Wd(e,t,n){e.mechanism={handled:!0,type:`auto.core.linked_errors`,...Ud(n)&&{is_exception_group:!0},...e.mechanism,exception_id:t}}function Gd(e,t,n,r){e.mechanism={handled:!0,...e.mechanism,type:`chained`,source:t,exception_id:n,parent_id:r}}function Kd(e){return Ne(e)&&`__sentry_fetch_url_host__`in e&&typeof e.__sentry_fetch_url_host__==`string`}function qd(e){return Kd(e)?`${e.message} (${e.__sentry_fetch_url_host__})`:e.message}var Jd=new Map,Yd=new Set;function Xd(e){if(C._sentryModuleMetadata)for(let t of Object.keys(C._sentryModuleMetadata)){let n=C._sentryModuleMetadata[t];if(Yd.has(t))continue;Yd.add(t);let r=e(t);for(let e of r.reverse())if(e.filename){Jd.set(e.filename,n);break}}}function Zd(e,t){return Xd(e),Jd.get(t)}function Qd(e,t){t.exception?.values?.forEach(t=>{t.stacktrace?.frames?.forEach(t=>{if(!t.filename||t.module_metadata)return;let n=Zd(e,t.filename);n&&(t.module_metadata=n)})})}function $d(e){e.exception?.values?.forEach(e=>{e.stacktrace?.frames?.forEach(e=>{delete e.module_metadata})})}var ef=I(()=>({name:`ModuleMetadata`,setup(e){e.on(`beforeEnvelope`,e=>{Qa(e,(e,t)=>{if(t===`event`){let t=Array.isArray(e)?e[1]:void 0;t&&($d(t),e[1]=t)}})}),e.on(`applyFrameMetadata`,t=>{if(t.type)return;let n=e.getOptions().stackParser;Qd(n,t)})}})),tf=new Set([]);function nf(e){let t=`console`,n=Ce(t,e);return we(t,of),n}function rf(e){for(let t of e)tf.add(t);return()=>{for(let t of e)tf.delete(t)}}var af=new Set;function of(){`console`in C&&ee.forEach(function(e){!af.has(e)&&e in C.console&&(af.add(e),Je(C.console,e,function(t){return ne[e]=t,function(...t){let n=t[0],r=ne[e],i=tf.size&&typeof n==`string`&&wt(n,tf);i||Te(`console`,{args:t,level:e}),(!i||S&&k.isEnabled())&&r?.apply(C.console,t)}}))})}function sf(e){return e===`warn`?`warning`:[`fatal`,`error`,`warning`,`log`,`info`,`debug`].includes(e)?e:`log`}var cf=`CaptureConsole`,lf=I(((e={})=>{let t=e.levels||ee,n=e.handled??!0;return{name:cf,setup(e){`console`in C&&nf(({args:r,level:i})=>{N()===e&&t.includes(i)&&uf(r,i,n)})}}}));function uf(e,t,n){let r=sf(t),i=Error(),a={level:sf(t),extra:{arguments:e}};En(o=>{if(o.addEventProcessor(e=>(e.logger=`console`,Mt(e,{handled:n,type:`auto.core.capture_console`}),e)),t===`assert`){if(!e[0]){let t=`Assertion failed: ${St(e.slice(1),` `)||`console.assert`}`;o.setExtra(`arguments`,e.slice(1)),o.captureMessage(t,r,{captureContext:a,syntheticException:i})}return}let s=e.find(e=>e instanceof Error);if(s){Wc(s,a);return}let c=St(e,` `);o.captureMessage(c,r,{captureContext:a,syntheticException:i})})}var df=`Dedupe`,ff=I((()=>{let e;return{name:df,processEvent(t){if(t.type)return t;try{if(pf(t,e))return S&&k.warn(`Event dropped due to being a duplicate of previously captured event.`),null}catch{}return e=t}}}));function pf(e,t){return t?!!(mf(e,t)||hf(e,t)):!1}function mf(e,t){let n=e.message,r=t.message;return!(!n&&!r||n&&!r||!n&&r||n!==r||!_f(e,t)||!gf(e,t))}function hf(e,t){let n=vf(t),r=vf(e);return!(!n||!r||n.type!==r.type||n.value!==r.value||!_f(e,t)||!gf(e,t))}function gf(e,t){let n=ye(e),r=ye(t);if(!n||!r)return!n&&!r;if(r.length!==n.length)return!1;for(let e=0;e<r.length;e++){let t=r[e],i=n[e];if(t.filename!==i.filename||t.lineno!==i.lineno||t.colno!==i.colno||t.function!==i.function)return!1}return!0}function _f(e,t){let n=e.fingerprint,r=t.fingerprint;if(!n||!r)return!n&&!r;try{return n.join(``)===r.join(``)}catch{return!1}}function vf(e){return e.exception?.values?.[0]}var yf=`ExtraErrorData`,bf=I(((e={})=>{let{depth:t=3,captureErrorCause:n=!0}=e;return{name:yf,processEvent(e,r,i){let{maxValueLength:a}=i.getOptions();return xf(e,r,t,n,a)}}}));function xf(e,t={},n,r,i){if(!t.originalException||!Ne(t.originalException))return e;let a=t.originalException.name||t.originalException.constructor.name,o=Sf(t.originalException,r,i);if(o){let t={...e.contexts},r=ft(o,n);return Ve(r)&&(st(r),t[a]=r),{...e,contexts:t}}return e}function Sf(e,t,n){try{let r=[`name`,`message`,`stack`,`line`,`column`,`fileName`,`lineNumber`,`columnNumber`,`toJSON`],i={};for(let t of Object.keys(e)){if(r.indexOf(t)!==-1)continue;let a=e[t];i[t]=Ne(a)||typeof a==`string`?n?bt(`${a}`,n):`${a}`:a}if(t&&e.cause!==void 0&&(i.cause=Ne(e.cause)?{[e.cause.name||e.cause.constructor.name]:Sf(e.cause,!1,n)}:e.cause),typeof e.toJSON==`function`){let t=e.toJSON();for(let e of Object.keys(t)){let n=t[e];i[e]=Ne(n)?n.toString():n}}return i}catch(e){S&&k.error(`Unable to extract extra data from the Error object:`,e)}return null}function Cf(e,t){let n=0;for(let t=e.length-1;t>=0;t--){let r=e[t];r===`.`?e.splice(t,1):r===`..`?(e.splice(t,1),n++):n&&(e.splice(t,1),n--)}if(t)for(;n--;)e.unshift(`..`);return e}var wf=/^(\S+:\\|\/?)([\s\S]*?)((?:\.{1,2}|[^/\\]+?|)(\.[^./\\]*|))(?:[/\\]*)$/;function Tf(e){let t=e.length>1024?`<truncated>${e.slice(-1024)}`:e,n=wf.exec(t);return n?n.slice(1):[]}function Ef(...e){let t=``,n=!1;for(let r=e.length-1;r>=-1&&!n;r--){let i=r>=0?e[r]:`/`;i&&(t=`${i}/${t}`,n=i.charAt(0)===`/`)}return t=Cf(t.split(`/`).filter(e=>!!e),!n).join(`/`),(n?`/`:``)+t||`.`}function Df(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 Of(e,t){e=Ef(e).slice(1),t=Ef(t).slice(1);let n=Df(e.split(`/`)),r=Df(t.split(`/`)),i=Math.min(n.length,r.length),a=i;for(let e=0;e<i;e++)if(n[e]!==r[e]){a=e;break}let o=[];for(let e=a;
21e<n.length;e++)o.push(`..`);return o=o.concat(r.slice(a)),o.join(`/`)}function kf(e,t){let n=Tf(e)[2]||``;return t&&n.slice(t.length*-1)===t&&(n=n.slice(0,n.length-t.length)),n}var Af=`RewriteFrames`,jf=I((e={})=>{let t=e.root,n=e.prefix||`app:///`,r=`window`in C&&!!C.window,i=e.iteratee||Mf({isBrowser:r,root:t,prefix:n});function a(e){try{return{...e,exception:{...e.exception,values:e.exception.values.map(e=>({...e,...e.stacktrace&&{stacktrace:o(e.stacktrace)}}))}}}catch{return e}}function o(e){return{...e,frames:e?.frames?.map(e=>i(e))}}return{name:Af,processEvent(e){let t=e;return e.exception&&Array.isArray(e.exception.values)&&(t=a(t)),t}}});function Mf({isBrowser:e,root:t,prefix:n}){return r=>{if(!r.filename)return r;let i=/^[a-zA-Z]:\\/.test(r.filename)||r.filename.includes(`\\`)&&!r.filename.includes(`/`),a=/^\//.test(r.filename);if(e){if(t){let e=r.filename;e.indexOf(t)===0&&(r.filename=e.replace(t,n))}}else if(i||a){let e=i?r.filename.replace(/^[a-zA-Z]:/,``).replace(/\\/g,`/`):r.filename;r.filename=`${n}${t?Of(t,e):kf(e)}`}return r}}var Nf=[`reauthenticate`,`signInAnonymously`,`signInWithOAuth`,`signInWithIdToken`,`signInWithOtp`,`signInWithPassword`,`signInWithSSO`,`signOut`,`signUp`,`verifyOtp`],Pf=[`createUser`,`deleteUser`,`listUsers`,`getUserById`,`updateUserById`,`inviteUserByEmail`],Ff={eq:`eq`,neq:`neq`,gt:`gt`,gte:`gte`,lt:`lt`,lte:`lte`,like:`like`,"like(all)":`likeAllOf`,"like(any)":`likeAnyOf`,ilike:`ilike`,"ilike(all)":`ilikeAllOf`,"ilike(any)":`ilikeAnyOf`,is:`is`,in:`in`,cs:`contains`,cd:`containedBy`,sr:`rangeGt`,nxl:`rangeGte`,sl:`rangeLt`,nxr:`rangeLte`,adj:`rangeAdjacent`,ov:`overlaps`,fts:``,plfts:`plain`,phfts:`phrase`,wfts:`websearch`,not:`not`},If=[`select`,`insert`,`upsert`,`update`,`delete`];function Lf(e){try{e.__SENTRY_INSTRUMENTED__=!0}catch{}}function Rf(e){try{return e.__SENTRY_INSTRUMENTED__}catch{return!1}}function zf(e,t){if(Object.keys(t).length>0)return t;if(Array.isArray(e)&&e.length>0)return e}function Bf(e,t){return zf(e,t)!==void 0}function Vf(e,t){if(!e)return;if(typeof e.get==`function`)return e.get(t)??void 0;let n=e,r=t.toLowerCase(),i=Object.keys(n).find(e=>e.toLowerCase()===r);return i===void 0?void 0:n[i]}function Hf(e,t={}){switch(e){case`GET`:case`QUERY`:return`select`;case`POST`:return Vf(t,`Prefer`)?.includes(`resolution=`)?`upsert`:`insert`;case`PATCH`:return`update`;case`DELETE`:return`delete`;default:return`<unknown-op>`}}function Uf(e,t){if(t===``||t===`*`)return`select(*)`;if(e===`select`)return`select(${t})`;if(e===`or`||e.endsWith(`.or`))return`${e}${t}`;let[n,...r]=t.split(`.`),i;return i=n?.startsWith(`fts`)?`textSearch`:n?.startsWith(`plfts`)?`textSearch[plain]`:n?.startsWith(`phfts`)?`textSearch[phrase]`:n?.startsWith(`wfts`)?`textSearch[websearch]`:n&&Ff[n]||`filter`,`${i}(${e}, ${r.join(`.`)})`}function Wf(e,t=!1){return new Proxy(e,{apply(n,r,i){let a=`auth${t?`.admin`:``}.${e.name}`,o=N();return qo({name:o&&L(o)?a:`auth ${t?`(admin) `:``}${e.name}`,attributes:{[wr]:`auto.db.supabase`,[er]:`db`,[zn]:`postgresql`,[Rn]:a}},e=>Reflect.apply(n,r,i).then(t=>(He(t)&&`error`in t&&t.error?(e.setStatus({code:2}),Wc(t.error,{mechanism:{handled:!1,type:`auto.db.supabase.auth`}})):e.setStatus({code:1}),e.end(),t)).catch(t=>{throw e.setStatus({code:2}),e.end(),Wc(t,{mechanism:{handled:!1,type:`auto.db.supabase.auth`}}),t}).then(...i))}})}function Gf(e){let t=e.auth;if(t&&!Rf(e.auth)){for(let n of Nf){let r=t[n];r&&typeof e.auth[n]==`function`&&(e.auth[n]=Wf(r))}for(let n of Pf){let r=t.admin[n];r&&typeof e.auth.admin[n]==`function`&&(e.auth.admin[n]=Wf(r,!0))}Lf(e.auth)}}function Kf(e,t){Rf(e.prototype.from)||(e.prototype.from=new Proxy(e.prototype.from,{apply(e,n,r){let i=Reflect.apply(e,n,r),a=i.constructor;return Jf(a,t),i}}),Lf(e.prototype.from))}function qf(e,t){Rf(e.prototype.then)||(e.prototype.then=new Proxy(e.prototype.then,{apply(e,n,r){let i=If,a=n,o=Hf(a.method,a.headers);if(!i.includes(o)||!a?.url?.pathname||typeof a.url.pathname!=`string`)return Reflect.apply(e,n,r);let s=a.url.pathname.split(`/`),c=s.length>0?s[s.length-1]:``,l=[];
21for(let[e,t]of a.url.searchParams.entries())l.push(Uf(e,t));let u=Object.create(null);if(Ve(a.body))for(let[e,t]of Object.entries(a.body))u[e]=t;let d=N(),f=t.sendOperationData??d?.getDataCollectionOptions().databaseQueryData===!0,p=zf(a.body,u),m=o===`select`?``:`${o}${Bf(a.body,u)?`(...) `:``}`,h=f?l.join(` `):l.length>0?`[redacted]`:``,g=[m.trimEnd(),h].filter(Boolean).join(` `),_=g?`${g} from(${c})`:`from(${c})`,v=d&&L(d)?`${o}${c?` ${c}`:``}`:_,y={"db.table":c,"db.schema":a.schema,"db.url":a.url.origin,"db.sdk":Vf(a.headers,`X-Client-Info`),[zn]:`postgresql`,[Rn]:o,[wr]:`auto.db.supabase`,[er]:`db`};return l.length&&f&&(y[`db.query`]=l),p!==void 0&&f&&(y[`db.body`]=p),qo({name:v,attributes:y},t=>Reflect.apply(e,n,[]).then(e=>{if(t&&(e&&typeof e==`object`&&`status`in e&&Ur(t,e.status||500),t.end()),e?.error){let t=Error(e.error.message);e.error.code&&(t.code=e.error.code),e.error.details&&(t.details=e.error.details);let n={};l.length&&f&&(n.query=l),p!==void 0&&f&&(n.body=p),Wc(t,e=>(e.addEventProcessor(e=>(Mt(e,{handled:!1,type:`auto.db.supabase.postgres`}),e)),e.setContext(`supabase`,n),e))}let n={type:`supabase`,category:`db.${o}`,message:_},r={};return l.length&&f&&(r.query=l),p!==void 0&&f&&(r.body=p),Object.keys(r).length&&(n.data=r),Td(n),e},e=>{throw t&&(Ur(t,500),t.end()),e}).then(...r))}}),Lf(e.prototype.then))}function Jf(e,t){for(let n of If)Rf(e.prototype[n])||(e.prototype[n]=new Proxy(e.prototype[n],{apply(e,r,i){let a=Reflect.apply(e,r,i
21),o=a.constructor;return S&&k.log(`Instrumenting ${n} operation's PostgRESTFilterBuilder`),qf(o,t),a}}),Lf(e.prototype[n]))}var Yf=(e,t={})=>{if(!e){S&&k.warn(`Supabase integration was not installed because no Supabase client was provided.`);return}Kf(e.constructor===Function?e:e.constructor,t),Gf(e)},Xf=`Supabase`,Zf=((e,t)=>({setupOnce(){Yf(e,t)},name:Xf})),Qf=I(e=>Zf(e.supabaseClient,{sendOperationData:e.sendOperationData})),$f=10,ep=`ZodErrors`;function tp(e){return Ne(e)&&e.name===`ZodError`&&Array.isArray(e.issues)}function np(e){return{...e,path:`path`in e&&Array.isArray(e.path)?e.path.join(`.`):void 0,keys:`keys`in e?JSON.stringify(e.keys):void 0,unionErrors:`unionErrors`in e?JSON.stringify(e.unionErrors):void 0}}function rp(e){return e.map(e=>typeof e==`number`?`<array>`:e).join(`.`)}function ip(e){let t=new Set;for(let n of e.issues){let e=rp(n.path);e.length>0&&t.add(e)}let n=Array.from(t);if(n.length===0){let t=`variable`;if(e.issues.length>0){let n=e.issues[0];n!==void 0&&`expected`in n&&typeof n.expected==`string`&&(t=n.expected)}return`Failed to validate ${t}`}return`Failed to validate keys: ${bt(n.join(`, `),100)}`}function ap(e,t=!1,n,r){if(!n.exception?.values||!r.originalException||!tp(r.originalException)||r.originalException.issues.length===0)return n;try{let i=(t?r.originalException.issues:r.originalException.issues.slice(0,e)).map(np);return t&&(Array.isArray(r.attachments)||(r.attachments=[]),r.attachments.push({filename:`zod_issues.json`,data:JSON.stringify({issues:i})})),{...n,exception:{...n.exception,values:[{...n.exception.values[0],value:ip(r.originalException)},...n.exception.values.slice(1)]},extra:{...n.extra,"zoderror.issues":i.slice(0,e)}}}catch(e){return{...n,extra:{...n.extra,"zoderrors sentry integration parse error":{message:`an exception was thrown while processing ZodError within applyZodErrorsToEvent()`,error:e instanceof Error?`${e.name}: ${e.message}
22${e.stack}`:`unknown`}}}}}var op=I(((e={})=>{let t=e.limit??$f;return{name:ep,processEvent(n,r){return ap(t,e.saveZodIssuesAsAttachment,n,r)}}})),sp=I(e=>{let t=e.ignoreSentryInternalFrames??!1;return{name:`ThirdPartyErrorsFilter`,setup(e){e.on(`beforeEnvelope`,e=>{Qa(e,(e,t)=>{if(t===`event`){let t=Array.isArray(e)?e[1]:void 0;t&&($d(t),e[1]=t)}})}),e.on(`applyFrameMetadata`,t=>{if(t.type)return;let n=e.getOptions().stackParser;Qd(n,t)})},preprocessEvent(e){t&&(C._sentryWrappedDepth??0)>0&&(e.sdkProcessingMetadata={...e.sdkProcessingMetadata,insideSentryWrapped:!0})},processEvent(n){let r=t?n.sdkProcessingMetadata?.insideSentryWrapped===!0&&n.exception?.values?.length===1:!1,i=lp(n,t,r);if(i&&i[e.behaviour===`drop-error-if-contains-third-party-frames`||e.behaviour===`apply-tag-if-contains-third-party-frames`?`some`:`every`](t=>!t.some(t=>e.filterKeys.includes(t)))){if(e.behaviour===`drop-error-if-contains-third-party-frames`||e.behaviour===`drop-error-if-exclusively-contains-third-party-frames`)return null;n.tags={...n.tags,third_party_code:!0}}return n}}});function cp(e,t,n){if(t!==0)return!1;if(n&&up(e)||e.function===`sentryWrapped`)return!0;if(!e.context_line||!e.filename||!e.filename.includes(`sentry`)||!e.filename.includes(`helpers`)||!e.context_line.includes(pp))return!1;if(e.pre_context){let t=e.pre_context.length;for(let n=0;n<t;n++)if(e.pre_context[n]?.includes(fp))return!0}return!1}function lp(e,t,n){let r=ye(e);if(r)return r.filter((e,r)=>!e.filename||e.lineno==null&&e.colno==null&&e.instruction_addr==null?!1:!t||!cp(e,r,!!n)).map(e=>e.module_metadata?Object.keys(e.module_metadata).filter(e=>e.startsWith(dp)).map(e=>e.slice(dp.length)):[])}function up(e){return!e.context_line&&!e.pre_context&&!!e.function&&e.function.length<=2}var dp=`_sentryBundlerPluginAppKey:`,fp=`Attempt to invoke user-land function`,pp=`fn.apply(this, wrappedArguments)`,mp=`Console`,hp=I((e={})=>{let t=new Set(e.levels||ee);return{name:mp,setup(n){let r=nf(({args:e,level:r})=>{N()===n&&t.has(r)&&gp(r,e)});if(n.registerCleanup(r),e.filter){let t=rf(e.filter);n.registerCleanup(t)}}}});function gp(e,t){let n={category:`console`,data:{arguments:t,logger:`console`},level:sf(e),message:_p(t)};if(e===`assert`){if(t[0]===!1){let e=t.slice(1);n.message=e.length>0?`Assertion failed: ${_p(e)}`:`Assertion failed`,n.data.arguments=e}else return}Td(n,{input:t,level:e})}function _p(e){return`util`in C&&typeof C.util.format==`function`?C.util.format(...e):St(e,` `)}var vp=`flag.evaluation.`;function yp(e){if(e.type)return e;let t=j().getScopeData().contexts.flags,n=t?t.values:[];return n.length?(e.contexts===void 0&&(e.contexts={}),e.contexts.flags={values:[...n]},e):e}function bp(e,t,n=100){let r=j().getScopeData().contexts;r.flags||={values:[]};let i=r.flags.values;xp(i,e,t,n)}function xp(e,t,n,r){if(typeof n!=`boolean`)return;if(e.length>
22r){S&&k.error(`[Feature Flags] insertToFlagBuffer called on a buffer larger than maxSize=${r}`);return}let i=e.findIndex(e=>e.flag===t);i!==-1&&e.splice(i,1),e.length===r&&e.shift(),e.push({flag:t,result:n})}function Sp(e,t,n=10){if(typeof t!=`boolean`)return;let r=F();if(!r)return;let i=Ni(r).data;if(`${vp}${e}`in i){r.setAttribute(`${vp}${e}`,t);return}Object.keys(i).filter(e=>e.startsWith(vp)).length<n&&r.setAttribute(`${vp}${e}`,t)}var Cp=I(()=>({name:`FeatureFlags`,processEvent(e,t,n){return yp(e)},addFeatureFlag(e,t){bp(e,t),Sp(e,t)}})),wp=I(({growthbookClass:e})=>({name:`GrowthBook`,setupOnce(){let t=e.prototype;typeof t.isOn==`function`&&Je(t,`isOn`,Tp),typeof t.getFeatureValue==`function`&&Je(t,`getFeatureValue`,Tp)},processEvent(e,t,n){return yp(e)}}));function Tp(e){return function(...t){let n=t[0],r=e.apply(this,t);return typeof n==`string`&&typeof r==`boolean`&&(bp(n,r),Sp(n,r)),r}}var Ep=`ConversationId`,Dp=I((()=>({name:Ep,setup(e){e.on(`spanStart`,e=>{let t=j().getScopeData(),n=M().getScopeData(),r=t.conversationId||n.conversationId;if(r){let{op:t,data:n,description:i}=Ni(e);if(!t?.startsWith(`gen_ai.`)&&!n[`ai.operationId`]&&!i?.startsWith(`ai.`))return;e.setAttribute(zr,r)}})}})));function Op(e,t,n,r,i){if(!e.fetchData)return;let{method:a,url:o}=e.fetchData,s=ea()&&t(o);if(e.endTimestamp){let t=e.fetchData.__span;if(!t)return;let n=r[t];n&&(s&&(jp(n,e),kp(n,e,i)),delete r[t]);return}let{spanOrigin:c=`auto.http.browser`,propagateTraceparent:l=!1,urlBase:u}=i??{},d=N(),f=!!F(),p=f||!!d&&L(d),m=s&&p?Jo(Fp(o,a,c,d,u)):new ha,h=ls(m)&&f?void 0:m;if(s&&!p&&d?.recordDroppedEvent(`no_parent_span`,`span`),e.fetchData.__span=m.spanContext().spanId,r[m.spanContext().spanId]=m,n(e.fetchData.url)){let t=e.args[0],n={...e.args[1]||{}},r=Ap(t,n,ea()&&p?h:void 0,l);r&&(e.args[1]=n,n.headers=r)}if(d){let t={input:e.args,response:e.response,startTimestamp:e.startTimestamp,endTimestamp:e.endTimestamp};d.emit(`beforeOutgoingRequestSpan`,m,t)}return m}function kp(e,t,n){n?.onRequestSpanEnd?.(e,{headers:t.response?.headers,error:t.error})}function Ap(e,t,n,r){let i=vd({span:n,propagateTraceparent:r}),a=i[`sentry-trace`],o=i.baggage,s=i.traceparent;if(!a)return;let c=t.headers||(qe(e)?e.headers:void 0);if(!c)return{"sentry-trace":a,...o&&{baggage:o},...s&&{traceparent:s}};if(Np(c)){let e=new Headers(c);if(e.get(`sentry-trace`)||e.set(`sentry-trace`,a),r&&s&&!e.get(`traceparent`)&&e.set(`traceparent`,s),o){let t=e.get(`baggage`);t?Mp(t)||e.set(`baggage`,`${t},${o}`):e.set(`baggage`,o)}return e}if(Pp(c)){let e=[...c];e.find(e=>e[0]===`sentry-trace`)||e.push([`sentry-trace`,a]),r&&s&&!e.find(e=>e[0]===`traceparent`)&&e.push([`traceparent`,s]);let t=c.find(e=>e[0]===`baggage`&&typeof e[1]==`string`&&Mp(e[1]));return o&&!t&&e.push([`baggage`,o]),e}{let e=`sentry-trace`in c?c[`sentry-trace`]:void 0,t=`traceparent`in c?c.traceparent:void 0,n=`baggage`in c?c.baggage:void 0,i=n?Array.isArray(n)?[...n]:[n]:[],l=n&&(Array.isArray(n)?n.find(e=>Mp(e)):Mp(n));o&&!l&&i.push(o);let u=Object.assign({},c,{"sentry-trace":e??a,...i.length>0&&{baggage:i.join(`,`)}});return r&&s&&!t&&(u.traceparent=s),u}}function jp(e,t){if(t.response){Ur(e,t.response.status);let n=t.response?.headers?.get(`content-length`);if(n){let t=parseInt(n);t>0&&e.setAttribute(Gn,t)}}else t.error&&e.setStatus({code:2,message:`internal_error`});e.end()}function Mp(e){return typeof e==`string`&&e.split(`,`).some(e=>e.trim().startsWith(Qr))}function Np(e){return typeof Headers<`u`&&Ke(e,Headers)}function Pp(e){return Array.isArray(e)?e.every(e=>Array.isArray(e)&&e.length===2&&typeof e[0]==`string`):!1}function Fp(e,t,n,r,i){let a=!!r&&L(r),o=ad(e,i);if(e.startsWith(`data:`)){let i=cd(e);return{name:a?t:`${t} ${i}`,attributes:Ip(e,void 0,t,n,r,o)}}let s=td(e),c=s?nd(s):e;return{name:a?o?`${t} ${o}`:t:`${t} ${c}`,attributes:Ip(e,s,t,n,r,o)}}function Ip(e,t,n,r,i,a){let o={[hr]:Zu(cd(e),i),type:`fetch`,[Un]:n,[wr]:r,[er]:oc,[pr]:a};return t&&(ed(t)||(o[hr]=Zu(cd(t.href),i),o[ur]=t.hostname,o[dr]=t.port?Number(t.port):void 0),o[_r]=Qu(rd(t.search),i),o[mr]=id(t.hash)),o}var Lp=C;function Rp(){if(!(`fetch`in Lp))return!1;
22try{return new Headers,new Request(`data:,`),new Response,!0}catch{return!1}}function zp(e){return e&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function Bp(){if(typeof EdgeRuntime==`string`)return!0;if(!Rp())return!1;if(zp(Lp.fetch))return!0;let e=!1,t=Lp.document;if(t&&typeof t.createElement==`function`)try{let n=t.createElement(`iframe`);n.hidden=!0,t.head.appendChild(n),n.contentWindow?.fetch&&(e=zp(n.contentWindow.fetch)),t.head.removeChild(n)}catch(e){S&&k.warn(`Could not create sandbox iframe for pure fetch check, bailing to window.fetch: `,e)}return e}function Vp(e){let t=`fetch`,n=Ce(t,e);return we(t,()=>Up()),n}function Hp(e){let t=`fetch-body-resolved`,n=Ce(t,e);return we(t,()=>Up(Gp)),n}function Up(e){(!go()||Bp())&&Je(C,`fetch`,function(t){return new Proxy(t,{apply(t,n,r){let i=Error(),{method:a,url:o}=Jp(r),s={args:r,fetchData:{method:a,url:o},startTimestamp:Ht()*1e3,virtualError:i,headers:Yp(r)};return e||Te(`fetch`,{...s}),Reflect.apply(t,C,r).then(async t=>(e?e(t):Te(`fetch`,{...s,endTimestamp:Ht()*1e3,response:t}),t),e=>{Te(`fetch`,{...s,endTimestamp:Ht()*1e3,error:e}),Ne(e)&&e.stack===void 0&&(e.stack=i.stack,Ye(e,`framesToPop`,1));let t=N()?.getOptions().enhanceFetchErrorMessages??`always`;if(t!==!1&&Ne(e)&&e.name===`TypeError`&&(e.message===`Failed to fetch`||e.message===`Load failed`||e.message===`NetworkError when attempting to fetch resource.`))try{let n=new URL(s.fetchData.url).host;t===`always`?e.message=`${e.message} (${n})`:Ye(e,`__sentry_fetch_url_host__`,n)}catch{}throw e})}})})}async function Wp(e,t){if(e?.body){let n=e.body,r=n.getReader(),i=setTimeout(()=>{n.cancel().then(null,()=>{})},9e4),a=!0;for(;a;){let e;try{e=setTimeout(()=>{n.cancel().then(null,()=>{})},5e3);let{done:i}=await r.read();clearTimeout(e),i&&(t(),a=!1)}catch{a=!1}finally{clearTimeout(e)}}clearTimeout(i),r.releaseLock(),n.cancel().then(null,()=>{})}}function Gp(e){let t;try{t=e.clone()}catch{return}Wp(t,()=>{Te(`fetch-body-resolved`,{endTimestamp:Ht()*1e3,response:e})})}function Kp(e,t){return He(e)&&!!e[t]}function qp(e){return typeof e==`string`?e:e?Kp(e,`url`)?e.url:e.toString?e.toString():``:``}function Jp(e){if(e.length===0)return{method:`GET`,url:``};if(e.length===2){let[t,n]=e;return{url:qp(t),method:Kp(n,`method`)?String(n.method).toUpperCase():qe(t)&&Kp(t,`method`)?String(t.method).toUpperCase():`GET`}}let t=e[0];return{url:qp(t),method:Kp(t,`method`)?String(t.method).toUpperCase():`GET`}}function Yp(e){let[t,n]=e;try{if(typeof n==`object`&&n&&`headers`in n&&n.headers)return new Headers(n.headers);if(qe(t))return new Headers(t.headers)}catch{}}function Xp(e){if(e!==void 0){if(e>=400&&e<500)return`warning`;if(e>=500)return`error`}}var Zp=class{constructor(e){this._maxSize=e,this._cache=new Map}get size(){return this._cache.size}get(e){let t=this._cache.get(e);if(t!==void 0)return this._cache.delete(e),this._cache.set(e,t),t}set(e,t){if(this._cache.size>=this._maxSize){let e=this._cache.keys().next().value;this._cache.delete(e)}this._cache.set(e,t)}remove(e){let t=this._cache.get(e);return t&&this._cache.delete(e),t}clear(){this._cache.clear()}keys(){return Array.from(this._cache.keys())}values(){let e=[];return this._cache.forEach(t=>e.push(t)),e}};function Qp(e,t={},n=j()){let{message:r,name:i,email:a,url:o,source:s,associatedEventId:c,tags:l}=e,u={contexts:{feedback:{contact_email:a,name:i,message:r,url:o,source:s,associated_event_id:c}},type:`feedback`,level:`info`,tags:l},d=n?.getClient()||N();return d&&d.emit(`beforeSendFeedback`,u,t),n.captureEvent(u,t)}var $p=s({debug:()=>nm,error:()=>am,fatal:()=>om,fmt:()=>hd,info:()=>rm,trace:()=>tm,warn:()=>im});function em(e,t,n,r,i){Ol({level:e,message:t,attributes:n,severityNumber:i},r)}function tm(e,t,{scope:n}={}){em(`trace`,e,t,n)}function nm(e,t,{scope:n}={}){em(`debug`,e,t,n)}function rm(e,t,{scope:n}={}){em(`info`,e,t,n)}function im(e,t,{scope:n}={}){em(`warn`,e,t,n)}function am(e,t,{scope:n}={}){em(`error`,e,t,n)}function om(e,t,{scope:n}={}){em(`fatal`,e,t,n)}function sm(e,t,n){return`util`in C&&typeof C.util.format==`function`?C.util.format(...e):cm(e,t,n)}function cm(e,t,n){return e.map(e=>Be(e)?String(e):JSON.stringify(ft(e,t,n))).join(` `)}function lm(e){return/%[sdifocO]/.test(e)}function um(e,t){let n={};return n[`sentry.message.template`]=`${e} ${Array(t.length).fill(`{}`).join(` `)}`,t.forEach((e,t)=>{n[`sentry.message.parameter.${t}`]=e}),n}var dm=`ConsoleLogs`,fm={[wr]:`auto.log.console`},pm=I(((e={})=>{let t=e.levels||ee;return{name:dm,setup(e){let{normalizeDepth:n=3,normalizeMaxBreadth:r=1e3}=e.getOptions(),i=nf(({args:i,level:a})=>{if(N()!==e||!t.includes(a))return;let o=i[0],s=i.slice(1);if(a===`assert`){o||Ol({level:`error`,message:s.length>0?`Assertion failed: ${sm(s,n,r)}`:`Assertion failed`,attributes:fm});return}let c=a===`log`,l={...fm};if(Ve(o)){Object.assign(l,ft(o,n,r));let e=typeof i[1]==`string`?2:1;i.slice(e).forEach((e,t)=>{l[`sentry.message.parameter.${t}`]=ft(e,n,r)})}else if(s.length>0&&typeof o==`string`&&!lm(o)){let e=um(o,s);for(let[t,i]of Object.entries(e))l[t]=t.startsWith(`sentry.message.parameter.`)?ft(i,n,r):i}Ol({level:c?`info`:a,message:sm(i,n,r),severityNumber:c?10:void 0,attributes:l})});e.registerCleanup(i)}}})),mm=s({count:()=>gm,distribution:()=>vm,gauge:()=>_m});function hm(e,t,n,r){Vl({type:e,name:t,value:n,unit:r?.unit,attributes:r?.attributes},{scope:r?.scope})}function gm(e,t=1,n){hm(`counter`,e,t,n)}function _m(e,t,n){hm(`gauge`,e,t,n)}function vm(e,t,n){hm(`distribution`,e,t,n)}var ym=[`trace`,`debug`,`info`,`warn`,`error`,`fatal`];function bm(e={}){let t=new Set(e.levels??ym),n=e.client;return{log(e){let{type:r,level:i,message:a,args:o,tag:s,date:c,...l}=e,u=n||N();if(!u)return;let d=Cm(r,i);if(!t.has(d))return;let{normalizeDepth:f=3,normalizeMaxBreadth:p=1e3}=u.getOptions(),m={};for(let[e,t]of Object.entries(l))m[e]=ft(t,f,p);m[`sentry.origin`]=`auto.log.consola`,s&&(m[`consola.tag`]=s),r&&(m[`consola.type`]=r),i!=null&&typeof i==`number`&&(m[`consola.level`]=i);let h=Tm(wm(o,f,p),f,p);h?.attributes&&Object.assign(m,h.attributes),Ol({level:d,message:h?.message||a||o&&sm(o,f,p)||``,attributes:m})}}}var xm={silent:`trace`,fatal:`fatal`,error:`error`,warn:`warn`,log:`info`,info:`info`,success:`info`,fail:`error`,ready:`info`,start:`info`,box:`info`,debug:`debug`,trace:`trace`,verbose:`debug`,critical:`fatal`,notice:`info`},Sm={0:`fatal`,1:`warn`,2:`info`,3:`info`,4:`debug`,5:`trace`};function Cm(e,t){if(e===`verbose`)return`debug`;if(e===`silent`)return`trace`;if(e){let t=xm[e];if(t)return t}if(typeof t==`number`){let e=Sm[t];if(e)return e}return`info`}function wm(e,t,n){if(!e?.length)return{message:``};let r=sm(e,t,n),i=e[0];if(Ve(i)){let t=typeof e[1]==`string`?2:1;return{message:r,attributes:i,messageParameters:e.slice(t)}}{let t=e.slice(1),n=t.length>0&&typeof i==`string`&&!lm(i);return{message:r,messageTemplate:n?i:void 0,messageParameters:n?t:void 0}}}function Tm(e,t,n){let{message:r,attributes:i,messageTemplate:a,messageParameters:o}=e,s={};if(a&&o){let e=um(a,o);for(let[r,i]of Object.entries(e))s[r]=r.startsWith(`sentry.message.parameter.`)?ft(i,t,n):i}else o&&o.length>0&&o.forEach((e,r)=>{s[`sentry.message.parameter.${r}`]=ft(e,t,n)});return{message:r,attributes:{...ft(i,t,n),...s}}}var Em=C,R=Em.document,Dm=Em.navigator,Om=`Report a Bug`,km=`Cancel`,Am=`Send Bug Report`,jm=`Confirm`,Mm=`Report a Bug`,Nm=`[email protected]`,Pm=`Email`,Fm=`What's the bug? What did you expect?`,Im=`Description`,Lm=`Your Name`,Rm=`Name`,zm=`Thank you for your report!`,Bm=`(required)`,Vm=`Add a screenshot`,Hm
22=`Remove screenshot`,Um=`Highlight`,Wm=`Hide`,Gm=`Remove`,Km=`Unable to submit feedback with empty message`,qm=`No client setup, cannot send feedback.`,Jm=`Unable to determine if Feedback was correctly sent.`,Ym=`Unable to send feedback. This could be because this domain is not in your list of allowed domains.`,Xm=`Unable to send feedback. This could be because of network issues, or because you are using an ad-blocker.`,Zm=`widget`,Qm=`api`,$m=5e3,eh={ERROR_EMPTY_MESSAGE:Km,ERROR_NO_CLIENT:qm,ERROR_TIMEOUT:Jm,ERROR_FORBIDDEN:Ym,ERROR_GENERIC:Xm};function th(e,t){return t?.[e]??eh[e]}function nh(e,t){return Error(th(e,t))}var rh=(e,t={includeReplay:!0})=>{let n=t.errorMessages;if(!e.message)throw nh(`ERROR_EMPTY_MESSAGE`,n);let r=N();if(!r)throw nh(`ERROR_NO_CLIENT`,n);e.tags&&Object.keys(e.tags).length&&j().setTags(e.tags);let i=Qp({source:Qm,url:ih(),...e},t);return new Promise((e,t)=>{let a=setTimeout(()=>{o(),t(nh(`ERROR_TIMEOUT`,n))},3e4),o=r.on(`afterSendEvent`,(r,s)=>{if(r.event_id===i)return clearTimeout(a),o(),s?.statusCode&&s.statusCode>=200&&s.statusCode<300?e(i):s?.statusCode===403?t(nh(`ERROR_FORBIDDEN`,n)):t(nh(`ERROR_GENERIC`,n))})})};function ih(){try{return Em.document.location.href}catch{return``}}var ah=typeof __SENTRY_DEBUG__>`u`||__SENTRY_DEBUG__;function oh(){return!(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(Dm.userAgent)||/Macintosh/i.test(Dm.userAgent)&&Dm.maxTouchPoints&&Dm.maxTouchPoints>1||!isSecureContext)}function sh(e,t){return{...e,...t,tags:{...e.tags,...t.tags},onFormOpen:()=>{t.onFormOpen?.(),e.onFormOpen?.()},onFormClose:()=>{t.onFormClose?.(),e.onFormClose?.()},onSubmitSuccess:(n,r)=>{t.onSubmitSuccess?.(n,r),e.onSubmitSuccess?.(n,r)},onSubmitError:n=>{t.onSubmitError?.(n),e.onSubmitError?.(n)},onFormSubmitted:()=>{t.onFormSubmitted?.(),e.onFormSubmitted?.()},themeDark:{...e.themeDark,...t.themeDark},themeLight:{...e.themeLight,...t.themeLight}}}function ch(e){let t=R.createElement(`style`);return t.textContent=`
23.widget__actor {
24  position: fixed;
25  z-index: var(--z-index);
26  margin: var(--page-margin);
27  inset: var(--actor-inset);
28
29  display: flex;
30  align-items: center;
31  gap: 8px;
32  padding: 16px;
33
34  font-family: inherit;
35  font-size: var(--font-size);
36  font-weight: 600;
37  line-height: 1.14em;
38  text-decoration: none;
39
40  background: var(--actor-background, var(--background));
41  border-radius: var(--actor-border-radius, 1.7em/50%);
42  border: var(--actor-border, var(--border));
43  box-shadow: var(--actor-box-shadow, var(--box-shadow));
44  color: var(--actor-color, var(--foreground));
45  fill: var(--actor-color, var(--foreground));
46  cursor: pointer;
47  opacity: 1;
48  transition: transform 0.2s ease-in-out;
49  transform: translate(0, 0) scale(1);
50}
51.widget__actor[aria-hidden="true"] {
52  opacity: 0;
53  pointer-events: none;
54  visibility: hidden;
55  transform: translate(0, 16px) scale(0.98);
56}
57
58.widget__actor:hover {
59  background: var(--actor-hover-background, var(--background));
60  filter: var(--interactive-filter);
61}
62
63.widget__actor svg {
64  width: 1.14em;
65  height: 1.14em;
66}
67
68@media (max-width: 600px) {
69  .widget__actor span {
70    display: none;
71  }
72}
73`,e&&t.setAttribute(`nonce`,e),t}function lh(e,t){return Object.entries(t).forEach(([t,n])=>{e.setAttributeNS(null,t,n)}),e}var uh=20,dh=`http://www.w3.org/2000/svg`;function fh(){let e=e=>Em.document.createElementNS(dh,e),t=lh(e(`svg`),{width:`${uh}`,height:`${uh}`,viewBox:`0 0 ${uh} ${uh}`,fill:`var(--actor-color, var(--foreground))`}),n=lh(e(`g`),{clipPath:`url(#clip0_57_80)`}),r=lh(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.4556 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);let i=e(`defs`),a=lh(e(`clipPath`),{id:`clip0_57_80`}),o=lh(e(`rect`),{width:`${uh}`,height:`${uh}`,fill:`white`});return a.appendChild(o),i.appendChild(a),t.appendChild(i).appendChild(a).appendChild(o),t}function ph({triggerLabel:e,triggerAriaLabel:t,shadow:n,styleNonce:r}){let i=R.createElement(`button`);if(i.type=`button`,i.className=`widget__actor`,i.ariaHidden=`false`,i.ariaLabel=t||e||Om,i.appendChild(fh()),e){let t=R.createElement(`span`);t.appendChild(R.createTextNode(e)),i.appendChild(t)}let a=ch(r);return{el:i,appendToDom(){n.appendChild(a),n.appendChild(i)},removeFromDom(){i.remove(),a.remove()},show(){i.ariaHidden=`false`},hide(){i.ariaHidden=`true`}}}var mh=`rgba(88, 74, 192, 1)`,hh={foreground:`#2b2233`,background:`#ffffff`,accentForeground:`white`,accentBackground:mh,successColor:`#268d75`,errorColor:`#df3338`,border:`1.5px solid rgba(41, 35, 47, 0.13)`,boxShadow:`0px 4px 24px 0px rgba(43, 34, 51, 0.12)`,outline:`1px auto var(--accent-background)`,interactiveFilter:`brightness(95%)`},gh={foreground:`#ebe6ef`,background:`#29232f`,accentForeground:`white`,accentBackgroun
73d:mh,successColor:`#2da98c`,errorColor:`#f55459`,border:`1.5px solid rgba(235, 230, 239, 0.15)`,boxShadow:`0px 4px 24px 0px rgba(43, 34, 51, 0.12)`,outline:`1px auto var(--accent-background)`,interactiveFilter:`brightness(150%)`};function _h(e){return`
74  --foreground: ${e.foreground};
75  --background: ${e.background};
76  --accent-foreground: ${e.accentForeground};
77  --accent-background: ${e.accentBackground};
78  --success-color: ${e.successColor};
79  --error-color: ${e.errorColor};
80  --border: ${e.border};
81  --box-shadow: ${e.boxShadow};
82  --outline: ${e.outline};
83  --interactive-filter: ${e.interactiveFilter};
84  `}function vh({colorScheme:e,themeDark:t,themeLight:n,styleNonce:r}){let i=R.createElement(`style`);return i.textContent=`
85:host {
86  --font-family: system-ui, 'Helvetica Neue', Arial, sans-serif;
87  --font-size: 14px;
88  --z-index: 100000;
89
90  --page-margin: 16px;
91  --inset: auto 0 0 auto;
92  --actor-inset: var(--inset);
93
94  font-family: var(--font-family);
95  font-size: var(--font-size);
96
97  ${e===`system`?``:`color-scheme: only ${e};`}
98
99  ${_h(e===`dark`?{...gh,...t}:{...hh,...n})}
100}
101
102${e===`system`?`
103@media (prefers-color-scheme: dark) {
104  :host {
105    color-scheme: only dark;
106
107    ${_h({...gh,...t})}
108  }
109}`:``}
110`,r&&i.setAttribute(`nonce`,r),i}var yh=({lazyLoadIntegration:e,getModalIntegration:t,getScreenshotIntegration:n})=>(({id:r=`sentry-feedback`,autoInject:i=!0,showBranding:a=!0,isEmailRequired:o=!1,isNameRequired:s=!1,showEmail:c=!0,showName:l=!0,enableScreenshot:u=!0,useSentryUser:d={email:`email`,name:`username`},tags:f,styleNonce:p,scriptNonce:m,colorScheme:h=`system`,themeLight:g={},themeDark:_={},addScreenshotButtonLabel:v=Vm,cancelButtonLabel:y=km,confirmButtonLabel:b=jm,emailLabel:x=Pm,emailPlaceholder:S=Nm,formTitle:C=Mm,isRequiredLabel:w=Bm,messageLabel:T=Im,messagePlaceholder:E=Fm,nameLabel:D=Rm,namePlaceholder:ee=Lm,removeScreenshotButtonLabel:te=Hm,submitButtonLabel:ne=Am,successMessageText:re=zm,triggerLabel:ie=Om,triggerAriaLabel:ae=``,highlightToolText:O=Um,hideToolText:oe=Wm,removeHighlightText:se=Gm,errorEmptyMessageText:ce=Km,errorNoClientText:le=qm,errorTimeoutText:ue=Jm,errorForbiddenText:de=Ym,errorGenericText:fe=Xm,onFormOpen:pe,onFormClose:me,onSubmitSuccess:he,onSubmitError:ge,onFormSubmitted:_e}={})=>{let ve={id:r,autoInject:i,showBranding:a,isEmailRequired:o,isNameRequired:s,showEmail:c,showName:l,enableScreenshot:u,useSentryUser:d,tags:f,styleNonce:p,scriptNonce:m,colorScheme:h,themeDark:_,themeLight:g,triggerLabel:ie,triggerAriaLabel:ae,cancelButtonLabel:y,submitButtonLabel:ne,confirmButtonLabel:b,formTitle:C,emailLabel:x,emailPlaceholder:S,messageLabel:T,messagePlaceholder:E,nameLabel:D,namePlaceholder:ee,successMessageText:re,isRequiredLabel:w,addScreenshotButtonLabel:v,removeScreenshotButtonLabel:te,highlightToolText:O,hideToolText:oe,removeHighlightText:se,errorEmptyMessageText:ce,errorNoClientText:le,errorTimeoutText:ue,errorForbiddenText:de,errorGenericText:fe,onFormClose:me,onFormOpen:pe,onSubmitError:ge,onSubmitSuccess:he,onFormSubmitted:_e},A=null,ye=null,be=[],xe=e=>{if(!A){let t=R.createElement(`div`);t.id=String(e.id),R.body.appendChild(t),A=t.attachShadow({mode:`open`}),ye=vh(e),A.appendChild(ye)}return A},Se=async r=>{let i=r.enableScreenshot&&oh(),a,o;try{a=(t?t():await e(`feedbackModalIntegration`,m))(),fa(a)}catch{throw ah&&k.error("[Feedback] Error when trying to load feedback integrations. Try using `feedbackSyncIntegration` in your `Sentry.init`."),Error(`[Feedback] Missing feedback modal integration!`)}try{let t=i?n?n():await e(`feedbackScreenshotIntegration`,m):void 0;t&&(o=t(),fa(o))}catch{ah&&k.error(`[Feedback] Missing feedback screenshot integration. Proceeding without screenshots.`)}let s={ERROR_EMPTY_MESSAGE:r.errorEmptyMessageText,ERROR_NO_CLIENT:r.errorNoClientText,ERROR_TIMEOUT:r.errorTimeoutText,ERROR_FORBIDDEN:r.errorForbiddenText,ERROR_GENERIC:r.errorGenericText},c=(e,t)=>rh(e,{includeReplay:!0,...t,errorMessages:s}),l=a.createDialog({options:{...r,onFormClose:()=>{l?.close(),r.onFormClose?.()},onFormSubmitted:()=>{l?.close(),r.onFormSubmitted?.()}},screenshotIntegration:o,sendFeedback:c,shadow:xe(r)});return l},Ce=(e,t={})=>{let n=sh(ve,t),r=typeof e==`string`?R.querySelector(e):typeof e.addEventListener==`function`?e:null;if(!r)throw ah&&k.error(`[Feedback] Unable to attach to target element`),Error(`Unable to attach to target element`);let i=null,a=async()=>{i||=await Se({...n,onFormSubmitted:()=>{i?.removeFromDom(),n.onFormSubmitted?.()}}),i.appendToDom(),i.open()};r.addEventListener(`click`,a);let o=()=>{be=be.filter(e=>e!==o),i?.removeFromDom(),i=null,r.removeEventListener(`click`,a)};return be.push(o),o},we=(e={})=>{let t=sh(ve,e),n=xe(t),r=ph({triggerLabel:t.triggerLabel,triggerAriaLabel:t.triggerAriaLabel,shadow:n,styleNonce:p});return Ce(r.el,{...t,onFormOpen(){r.hide()},onFormClose(){r.show()},onFormSubmitted(){r.show()}}),r};return{name:`Feedback`,setupOnce(){go()&&ve.autoInject&&(R.readyState===`loading`?R.addEventListener(`DOMContentLoaded`,()=>we().appendToDom()):we().appendToDom())},attachTo:Ce,createWidget(e={}){let t=we(sh(ve,e));return t.appendToDom(),t},async createForm(e={}){return Se(sh(ve,e))},setTheme(e){if(ve.colorScheme=e,A){let e=vh(ve);ye?A.replaceChild(e,ye):A.prepend(e),ye=e}},remove(){A&&(A.parentElement?.remove(),A=null,ye=null),be.forEach(e
vendor: 8,249 bytes, line 110
110=>e()),be=[]}}});function bh(){return N()?.getIntegrationByName(`Feedback`)}var xh,z,Sh,Ch,wh,Th,Eh,Dh,Oh,kh,Ah,jh,Mh,Nh,Ph={},Fh=[],Ih=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Lh=Array.isArray;function Rh(e,t){for(var n in t)e[n]=t[n];return e}function zh(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function B(e,t,n){var r,i,a,o={};for(a in t)a==`key`?r=t[a]:a==`ref`?i=t[a]:o[a]=t[a];if(arguments.length>2&&(o.children=arguments.length>3?xh.call(arguments,2):n),typeof e==`function`&&e.defaultProps!=null)for(a in e.defaultProps)o[a]===void 0&&(o[a]=e.defaultProps[a]);return Bh(e,o,r,i,null)}function Bh(e,t,n,r,i){var a={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:i??++Sh,__i:-1,__u:0};return i==null&&z.vnode!=null&&z.vnode(a),a}function Vh(e){return e.children}function Hh(e,t){this.props=e,this.context=t}function Uh(e,t){if(t==null)return e.__?Uh(e.__,e.__i+1):null;for(var n;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null)return n.__e;return typeof e.type==`function`?Uh(e):null}function Wh(e){if(e.__P&&e.__d){var t=e.__v,n=t.__e,r=[],i=[],a=Rh({},t);a.__v=t.__v+1,z.vnode&&z.vnode(a),tg(e.__P,a,t,e.__n,e.__P.namespaceURI,32&t.__u?[n]:null,r,n??Uh(t),!!(32&t.__u),i),a.__v=t.__v,a.__.__k[a.__i]=a,rg(r,a,i),t.__e=t.__=null,a.__e!=n&&Gh(a)}}function Gh(e){if((e=e.__)!=null&&e.__c!=null)return e.__e=e.__c.base=null,e.__k.some(function(t){if(t!=null&&t.__e!=null)return e.__e=e.__c.base=t.__e}),Gh(e)}function Kh(e){(!e.__d&&(e.__d=!0)&&Ch.push(e)&&!qh.__r++||wh!=z.debounceRendering)&&((wh=z.debounceRendering)||Th)(qh)}function qh(){try{for(var e,t=1;Ch.length;)Ch.length>t&&Ch.sort(Eh),e=Ch.shift(),t=Ch.length,Wh(e)}finally{Ch.length=qh.__r=0}}function Jh(e,t,n,r,i,a,o,s,c,l,u){var d,f,p,m,h,g,_=r&&r.__k||Fh,v=t.length;for(c=Yh(n,t,_,c,v),d=0;d<v;d++)(p=n.__k[d])!=null&&(f=p.__i!=-1&&_[p.__i]||Ph,p.__i=d,g=tg(e,p,f,i,a,o,s,c,l,u),m=p.__e,p.ref&&f.ref!=p.ref&&(f.ref&&og(f.ref,null,p),u.push(p.ref,p.__c||m,p)),h==null&&m!=null&&(h=m),4&p.__u?(c=Xh(p,c,e),f.__e&&(f.__e=null)):typeof p.type==`function`&&g!==void 0?c=g:m&&(c=m.nextSibling),p.__u&=-7);return n.__e=h,c}function Yh(e,t,n,r,i){var a,o,s,c,l,u=n.length,d=u,f=0;for(e.__k=Array(i),a=0;a<i;a++)(o=t[a])!=null&&typeof o!=`boolean`&&typeof o!=`function`?(typeof o==`string`||typeof o==`number`||typeof o==`bigint`||o.constructor==String?o=e.__k[a]=Bh(null,o,null,null,null):Lh(o)?o=e.__k[a]=Bh(Vh,{children:o},null,null,null):o.constructor===void 0&&o.__b>0?o=e.__k[a]=Bh(o.type,o.props,o.key,o.ref?o.ref:null,o.__v):e.__k[a]=o,c=a+f,o.__=e,o.__b=e.__b+1,s=null,(l=o.__i=Zh(o,n,c,d))!=-1&&(d--,(s=n[l])&&(s.__u|=2)),s==null||s.__v==null?(l==-1&&(i>u?f--:i<u&&f++),typeof o.type!=`function`&&(o.__u|=4)):l!=c&&(l==c-1?f--:l==c+1?f++:(l>c?f--:f++,o.__u|=4))):e.__k[a]=null;if(d)for(a=0;a<u;a++)(s=n[a])!=null&&!(2&s.__u)&&(s.__e==r&&(r=Uh(s)),sg(s,s));return r}function Xh(e,t,n){var r,i;if(typeof e.type==`function`){for(r=e.__k,i=0;r&&i<r.length;i++)r[i]&&(r[i].__=e,t=Xh(r[i],t,n));return t}e.__e!=t&&(t&&e.type&&!t.parentNode&&(t=Uh(e)),t=n.insertBefore(e.__e,t||null));do t&&=t.nextSibling;while(t!=null&&t.nodeType==8);return t}function Zh(e,t,n,r){var i,a,o,s=e.key,c=e.type,l=t[n],u=l!=null&&!(2&l.__u);if(l===null&&s==null||u&&s==l.key&&c==l.type)return n;if(r>+!!u){for(i=n-1,a=n+1;i>=0||a<t.length;)if((l=t[o=i>=0?i--:a++])!=null&&!(2&l.__u)&&s==l.key&&c==l.type)return o}return-1}function Qh(e,t,n){t[0]==`-`?e.setProperty(t,n??``):e[t]=n==null?``:typeof n!=`number`||Ih.test(t)?n:n+`px`}function $h(e,t,n,r,i){var a,o;n:if(t==`style`){if(typeof n==`string`)e.style.cssText=n;else{if(typeof r==`string`&&(e.style.cssText=r=``),r)for(t in r)n&&t in n||Qh(e.style,t,``);if(n)for(t in n)r&&n[t]==r[t]||Qh(e.style,t,n[t])}}else if(t[0]==`o`&&t[1]==`n`)a=t!=(t=t.replace(Ah,`$1`)),o=t.toLowerCase(),t=o in e||t==`onFocusOut`||t==`onFocusIn`?o.slice(2):t.slice(2),e.l||={},e.l[t+a]=n,n?r?n[kh]=r[kh]:(n[kh]=jh,e.addEventListener(t,a?Nh:Mh,a)):e.removeEventListener(t,a?Nh:Mh,a);else{if(i==`http://www.w3.org/2000/svg`)t=t.replace(/xlink(H|:h)/,`h`).replace(/sName$/,`s`);else if(t!=`width`&&t!=`height`&&t!=`href`&&t!=`list`&&t!=`form`&&t!=`tabIndex`&&t!=`download`&&t!=`rowSpan`&&t!=`colSpan`&&t!=`role`&&t!=`popover`&&t in e)try{e[t]=n??``;break n}catch{}typeof n==`function`||(n==null||!1===n&&t[4]!=`-`?e.removeAttribute(t):e.setAttribute(t,t==`popover`&&n==1?``:n))}}function eg(e){return function(t){if(this.l){var n=this.l[t.type+e];if(t[Oh]==null)t[Oh]=jh++;else if(t[Oh]<n[kh])return;return n(z.event?z.event(t):t)}}}function tg(e,t,n,r,i,a,o,s,c,l){var u,d,f,p,m,h,g,_,v,y,b,x,S,C,w,T,E=t.type;if(t.constructor!==void 0)return null;128&n.__u&&(c=!!(32&n.__u),a=[s=t.__e=n.__e]),(u=z.__b)&&u(t);n:if(typeof E==`function`){d=o.length;try{if(v=t.props,y=E.prototype&&E.prototype.render,b=(u=E.contextType)&&r[u.__c],x=u?b?b.props.value:u.__:r,n.__c?_=(f=t.__c=n.__c).__=f.__E:(y?t.__c=f=new E(v,x):(t.__c=f=new Hh(v,x),f.constructor=E,f.render=cg),b&&b.sub(f),f.state||(f.state={}),f.__n=r,p=f.__d=!0,f.__h=[],f._sb=[]),y&&f.__s==null&&(f.__s=f.state),y&&E.getDerivedStateFromProps!=null&&(f.__s==f.state&&(f.__s=Rh({},f.__s)),Rh(f.__s,E.getDerivedStateFromProps(v,f.__s))),m=f.props,h=f.state,f.__v=t,p)y&&E.getDerivedStateFromProps==null&&f.componentWillMount!=null&&f.componentWillMount(),y&&f.componentDidMount!=null&&f.__h.push(f.componentDidMount);else{if(y&&E.getDerivedStateFromProps==null&&v!==m&&f.componentWillReceiveProps!=null&&f.componentWillReceiveProps(v,x),t.__v==n.__v||!f.__e&&f.shouldComponentUpdate!=null&&!1===f.shouldComponentUpdate(v,f.__s,x)){t.__v!=n.__v&&(f.props=v,f.state=f.__s,f.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.some(function(e){e&&(e.__=t)}),Fh.push.apply(f.__h,f._sb),f._sb=[],f.__h.length&&o.push(f),s=Uh(n);break n}f.componentWillUpdate!=null&&f.componentWillUpdate(v,f.__s,x),y&&f.componentDidUpdate!=null&&f.__h.push(function(){f.componentDidUpdate(m,h,g)})}if(f.context=x,f.props=v,f.__P=e,f.__e=!1,S=z.__r,C=0,y)f.state=f.__s,f.__d=!1,S&&S(t),u=f.render(f.props,f.state,f.context),Fh.push.apply(f.__h,f._sb),f._sb=[];else do f.__d=!1,S&&S(t),u=f.render(f.props,f.state,f.context),f.state=f.__s;while(f.__d&&++C<25);f.state=f.__s,f.getChildContext!=null&&(r=Rh(Rh({},r),f.getChildContext())),y&&!p&&f.getSnapshotBeforeUpdate!=null&&(g=f.getSnapshotBeforeUpdate(m,h)),w=u!=null&&u.type===Vh&&u.key==null?ig(u.props.children):u,s=Jh(e,Lh(w)?w:[w],t,n,r,i,a,o,s,c,l),f.base=t.__e,t.__u&=-161,f.__h.length&&o.push(f),_&&(f.__E=f.__=null)}catch(e){if(o.length=d,t.__v=null,c||a!=null){if(e.then){for(t.__u|=c?160:128;s&&s.nodeType==8&&s.nextSibling;)s=s.nextSibling;a!=null&&(a[a.indexOf(s)]=null),t.__e=s}else if(a!=null)for(T=a.length;T--;)zh(a[T])}else t.__e=n.__e;t.__k??=n.__k||[],e.then||ng(t),z.__e(e,t,n)}}else a==null&&t.__v==n.__v?(t.__k=n.__k,t.__e=n.__e):s=t.__e=ag(n.__e,t,n,r,i,a,o,c,l);return(u=z.diffed)&&u(t),128&t.__u?void 0:s}function ng(e){e&&(e.__c&&(e.__c.__e=!0),e.__k&&e.__k.some(ng))}function rg(e,t,n){for(var r=0;r<n.length;r++)og(n[r],n[++r],n[++r]);z.__c&&z.__c(t,e),e.some(function(t){try{e=t.__h,t.__h=[],e.some(function(e){e.call(t)})}catch(e){z.__e(e,t.__v)}})}function ig(e){return typeof e!=`object`||!e||e.__b>0?e:Lh(e)?e.map(ig):e.constructor===void 0?Rh({},e):null}function ag(e,t,n,r,i,a,o,s,c){var l,u,d,f,p,m,h,g=n.props||Ph,_=t.props,v=t.type;if(v==`svg`?i=`http://www.w3.org/2000/svg`:v==`math`?i=`http://www.w3.org/1998/Math/MathML`:i||=`http://www.w3.org/1999/xhtml`,a!=null){for(l=0;l<a.length;l++)if((p=a[l])&&`setAttribute`in p==!!v&&(v?p.localName==v:p.nodeType==3)){e=p,a[l]=null;break}}if(e==null){if(v==null)return document.createTextNode(_);e=document.createElementNS(i,v,_.is&&_),s&&=(z.__m&&z.__m(t,a),!1),a=null}if(v==null)g===_||s&&e.data==_||(e.data=_);else{if(a=v==`textarea`&&_.defaultValue!=null?null:a&&xh.call(e.childNodes),!s&&a!=null)for(g={},l=0;l<e.attributes.length;l++)g[(p=e.attributes[l]).name]=p.value;for(l in g)p=g[l],l==`dangerouslySetInnerHTML`?d=p:l==`children`||l in _||l==`value`&&`defaultValue`in _||l==`checked`&&`defaultChecked`in _||$h(e,l,null,p,i);for(l in _)p=_[l],l==`children`?f=p:l==`dangerouslySetInnerHTML`?u=p:l==`value`?m=p:l==`checked`?h=p:s&&t
vendor: 2,082 bytes, line 110
110ypeof p!=`function`||g[l]===p||$h(e,l,p,g[l],i);if(u)s||d&&(u.__html==d.__html||u.__html==e.innerHTML)||(e.innerHTML=u.__html),t.__k=[];else if(d&&(e.innerHTML=``),Jh(t.type==`template`?e.content:e,Lh(f)?f:[f],t,n,r,v==`foreignObject`?`http://www.w3.org/1999/xhtml`:i,a,o,a?a[0]:n.__k&&Uh(n,0),s,c),a!=null)for(l=a.length;l--;)zh(a[l]);s&&v!=`textarea`||(l=`value`,v==`progress`&&m==null?e.removeAttribute(`value`):m!=null&&(m!==e[l]||v==`progress`&&!m||v==`option`&&m!=g[l])&&$h(e,l,m,g[l],i),l=`checked`,h!=null&&h!=e[l]&&$h(e,l,h,g[l],i))}return e}function og(e,t,n){try{if(typeof e==`function`){var r=typeof e.__u==`function`;r&&e.__u(),r&&t==null||(e.__u=e(t))}else e.current=t}catch(e){z.__e(e,n)}}function sg(e,t,n){var r,i;if(z.unmount&&z.unmount(e),(r=e.ref)&&(r.current&&r.current!=e.__e||og(r,null,t)),(r=e.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(e){z.__e(e,t)}r.base=r.__P=r.__n=null}if(r=e.__k)for(i=0;i<r.length;i++)r[i]&&sg(r[i],t,n||typeof e.type!=`function`);n||zh(e.__e),e.__c=e.__=e.__e=void 0}function cg(e,t,n){return this.constructor(e,n)}function lg(e,t,n){var r,i,a,o;t==document&&(t=document.documentElement),z.__&&z.__(e,t),i=(r=!1)?null:t.__k,a=[],o=[],tg(t,e=t.__k=B(Vh,null,[e]),i||Ph,Ph,t.namespaceURI,i?null:t.firstChild?xh.call(t.childNodes):null,a,i?i.__e:t.firstChild,r,o),rg(a,e,o),e.props.children=null}xh=Fh.slice,z={__e:function(e,t,n,r){for(var i,a,o;t=t.__;)if((i=t.__c)&&!i.__)try{if((a=i.constructor)&&a.getDerivedStateFromError!=null&&(i.setState(a.getDerivedStateFromError(e)),o=i.__d),i.componentDidCatch!=null&&(i.componentDidCatch(e,r||{}),o=i.__d),o)return i.__E=i}catch(t){e=t}throw e}},Sh=0,Hh.prototype.setState=function(e,t){var n=this.__s!=null&&this.__s!=this.state?this.__s:this.__s=Rh({},this.state);typeof e==`function`&&(e=e(Rh({},n),this.props)),e&&Rh(n,e),e!=null&&this.__v&&(t&&this._sb.push(t),Kh(this))},Hh.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),Kh(this))},Hh.prototype.render=Vh,Ch=[],Th=typeof Promise==`function`?Promise.prototype.then.bind(Prom
110ise.resolve()):setTimeout,Eh=function(e,t){return e.__v.__b-t.__v.__b},qh.__r=0,Dh=Math.random().toString(8),Oh=`__d`+Dh,kh=`__a`+Dh,Ah=/(PointerCapture)$|Capture$/i,jh=0,Mh=eg(!1),Nh=eg(!0);var ug,V,dg,fg,pg=0,mg=[],H=z,hg=H.__b,gg=H.__r,_g=H.diffed,vg=H.__c,yg=H.unmount,bg=H.__;function xg(e,t){H.__h&&H.__h(V,e,pg||t),pg=0;var n=V.__H||(V.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function Sg(e){return pg=1,Cg(Bg,e)}function Cg(e,t,n){var r=xg(ug++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):Bg(void 0,t),function(e){var t=r.__N?r.__N[0]:r.__[0],n=r.t(t,e);t!==n&&(r.__N=[n,r.__[1]],r.__c.setState({}))}],r.__c=V,!V.__f)){var i=function(e,t,n){if(!r.__c.__H)return!0;var i=!1,o=r.__c.props!==e;if(r.__c.__H.__.some(function(e){if(e.__N){i=!0;var t=e.__[0];e.__=e.__N,e.__N=void 0,t!==e.__[0]&&(o=!0)}}),a){var s=a.call(this,e,t,n);return i?s||o:s}return!i||o};V.__f=!0;var a=V.shouldComponentUpdate,o=V.componentWillUpdate;V.componentWillUpdate=function(e,t,n){if(this.__e){var r=a;a=void 0,i(e,t,n),a=r}o&&o.call(this,e,t,n)},V.shouldComponentUpdate=i}return r.__N||r.__}function wg(e,t){var n=xg(ug++,3);!H.__s&&zg(n.__H,t)&&(n.__=e,n.u=t,V.__H.__h.push(n))}function Tg(e,t){var n=xg(ug++,4);!H.__s&&zg(n.__H,t)&&(n.__=e,n.u=t,V.__h.push(n))}function Eg(e){return pg=5,Og(function(){return{current:e}},[])}function Dg(e,t,n){pg=6,Tg(function(){if(typeof e==`function`){var n=e(t());return function(){e(null),n&&typeof n==`function`&&n()}}if(e)return e.current=t(),function(){return e.current=null}},n==null?n:n.concat(e))}function Og(e,t){var n=xg(ug++,7);return zg(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function kg(e,t){return pg=8,Og(function(){return e},t)}function Ag(e){var t=V.context[e.__c],n=xg(ug++,9);return n.c=e,t?(n.__??(n.__=!0,t.sub(V)),t.props.value):e.__}function jg(e,t){H.useDebugValue&&H.useDebugValue(t?t(e):e)}function Mg(e){var t=xg(ug++,10),n=Sg();return t.__=e,V.componentDidCatch||(V.componentDidCatch=function(e,r){t.__&&t.__(e,r),n[1](e)}),[n[0],function(){n[1](void 0)}]}function Ng(){var e=xg(ug++,11);if(!e.__){for(var t=V.__v;t!==null&&!t.__m&&t.__!==null;)t=t.__;var n=t.__m||(t.__m=[0,0]);e.__=`P`+n[0]+`-`+n[1]++}return e.__}function Pg(){for(var e;e=mg.shift();){var t=e.__H;if(e.__P&&t)try{t.__h.some(Lg),t.__h.some(Rg),t.__h=[]}catch(n){t.__h=[],H.__e(n,e.__v)}}}H.__b=function(e){V=null,hg&&hg(e)},H.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),bg&&bg(e,t)},H.__r=function(e){gg&&gg(e),ug=0;var t=(V=e.__c).__H;t&&(dg===V?(t.__h=[],V.__h=[],t.__.some(function(e){e.__N&&(e.__=e.__N),e.u=e.__N=void 0})):(t.__h.some(Lg),t.__h.some(Rg),t.__h=[],ug=0)),dg=V},H.diffed=function(e){_g&&_g(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(mg.push(t)!==1&&fg===H.requestAnimationFrame||((fg=H.requestAnimationFrame)||Ig)(Pg)),t.__H.__.some(function(e){e.u&&=(e.__H=e.u,void 0)})),dg=V=null},H.__c=function(e,t){t.some(function(e){try{e.__h.some(Lg),e.__h=e.__h.filter(function(e){return!e.__||Rg(e)})}catch(n){t.some(function(e){e.__h&&=[]}),t=[],H.__e(n,e.__v)}}),vg&&vg(e,t)},H.unmount=function(e){yg&&yg(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.some(function(e){try{Lg(e)}catch(e){t=e}}),n.__H=void 0,t&&H.__e(t,n.__v))};var Fg=typeof requestAnimationFrame==`function`;function Ig(e){var t,n=function(){clearTimeout(r),Fg&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,35);Fg&&(t=requestAnimationFrame(n))}function Lg(e){var t=V,n=e.__c;typeof n==`function`&&(e.__c=void 0,n()),V=t}function Rg(e){var t=V;e.__c=e.__(),V=t}function zg(e,t){return!e||e.length!==t.length||t.some(function(t,n){return t!==e[n]})}function Bg(e,t){return typeof t==`function`?t(e):t}var Vg=Object.defineProperty({__proto__:null,useCallback:kg,useContext:Ag,useDebugValue:jg,useEffect:wg,useErrorBoundary:Mg,useId:Ng,useImperativeHandle:Dg,useLayoutEffect:Tg,useMemo:Og,useReducer:Cg,useRef:Eg,useState:Sg},Symbol.toStringTag,{value:`Module`}),Hg=`http://www.w3.org/2000/svg`;function Ug(){let e=e=>R.createElementNS(Hg,e),t=lh(e(`svg`),{width:`32`,height:`30`,viewBox:`0 0 72 66`,fill:`inherit`}),n=lh(e(`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`});return t.appendChild(n),t}function Wg({options:e}){let t=Og(()=>({__html:Ug().outerHTML}),[]);return B(`h2`,{class:`dialog__header`},B(`span`,{class:`dialog__title`},e.formTitle),e.showBranding?B(`a`,{class:`brand-link`,target:`_blank`,href:`https://sentry.io/welcome/`,title:`Powered by Sentry`,rel:`noopener noreferrer`,dangerouslySetInnerHTML:t}):null)}function Gg(e,t){let n=[];return t.isNameRequired&&!e.name&&n.push(t.nameLabel),t.isEmailRequired&&!e.email&&n.push(t.emailLabel),e.message||n.push(t.messageLabel),n}function Kg(e,t){let n=e.get(t);return typeof n==`string`?n.trim():``}function qg({options:e,defaultEmail:t,defaultName:n,onFormClose:r,onSubmit:i,onSubmitSuccess:a,onSubmitError:o,showEmail
110:s,showName:c,screenshotInput:l}){let{tags:u,addScreenshotButtonLabel:d,removeScreenshotButtonLabel:f,cancelButtonLabel:p,emailLabel:m,emailPlaceholder:h,isEmailRequired:g,isNameRequired:_,messageLabel:v,messagePlaceholder:y,nameLabel:b,namePlaceholder:x,submitButtonLabel:S,isRequiredLabel:C}=e,[w,T]=Sg(!1),[E,D]=Sg(null),[ee,te]=Sg(!1),ne=l?.input,[re,ie]=Sg(null),ae=kg(e=>{ie(e),te(!1)},[]),O=kg(e=>{let t=Gg(e,{emailLabel:m,isEmailRequired:g,isNameRequired:_,messageLabel:v,nameLabel:b});return t.length>0?D(`Please enter in the following required fields: ${t.join(`, `)}`):D(null),t.length===0},[m,g,_,v,b]);return B(`form`,{class:`form`,onSubmit:kg(async e=>{T(!0);try{if(e.preventDefault(),!(e.target instanceof HTMLFormElement))return;let t=new FormData(e.target),n=await(l&&ee?l.value():void 0),r={name:Kg(t,`name`),email:Kg(t,`email`),message:Kg(t,`message`),attachments:n?[n]:void 0};if(!O(r))return;try{a(r,await i({name:r.name,email:r.email,message:r.message,source:Zm,tags:u},{attachments:r.attachments}))}catch(e){ah&&k.error(e);let t=e;D(t.message),o(t)}}finally{T(!1)}},[l&&ee,a,o])},ne&&ee?B(ne,{onError:ae}):null,B(`fieldset`,{class:`form__right`,"data-sentry-feedback":!0,disabled:w},B(`div`,{class:`form__top`},E?B(`div`,{class:`form__error-container`},E):null,c?B(`label`,{for:`name`,class:`form__label`},B(Jg,{label:b,isRequiredLabel:C,isRequired:_}),B(`input`,{class:`form__input`,defaultValue:n,id:`name`,name:`name`,placeholder:x,required:_,type:`text`})):B(`input`,{"aria-hidden":!0,value:n,name:`name`,type:`hidden`}),s?B(`label`,{for:`email`,class:`form__label`},B(Jg,{label:m,isRequiredLabel:C,isRequired:g}),B(`input`,{class:`form__input`,defaultValue:t,id:`email`,name:`email`,placeholder:h,required:g,type:`email`})):B(`input`,{"aria-hidden":!0,value:t,name:`email`,type:`hidden`}),B(`label`,{for:`message`,class:`form__label`},B(Jg,{label:v,isRequiredLabel:C,isRequired:!0}),B(`textarea`,{autoFocus:!0,class:`form__input form__input--textarea`,id:`message`,name:`message`,placeholder:y,required:!0,rows:5})),ne?B(`label`,{for:`screenshot`,class:`form__label`},B(`button`,{class:`btn btn--default`,disabled:w,type:`button`,onClick:()=>{ie(null),te(e=>!e)}},ee?f:d),re?B(`div`,{class:`form__error-container`},re.message):null):null),B(`div`,{class:`btn-group`},B(`button`,{class:`btn btn--primary`,disabled:w,type:`submit`},S),B(`button`,{class:`btn btn--default`,disabled:w,type:`button`,onClick:r},p))))}function Jg({label:e,isRequired:t,isRequiredLabel:n}){return B(`span`,{class:`form__label__text`},e,t&&B(`span`,{class:`form__label__text--required`},n))}var Yg=16,Xg=17,Zg=`http://www.w3.org/2000/svg`;function Qg(){let e=e=>Em.document.createElementNS(Zg,e),t=lh(e(`svg`),{width:`${Yg}`,height:`${Xg}`,viewBox:`0 0 ${Yg} ${Xg}`,fill:`inherit`}),n=lh(e(`g`),{clipPath:`url(#clip0_57_156)`}),r=lh(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`}),i=lh(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 
11010.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(i,r);let a=e(`defs`),o=lh(e(`clipPath`),{id:`clip0_57_156`}),s=lh(e(`rect`),{width:`${Yg}`,height:`${Yg}`,fill:`white`,transform:`translate(0 0.5)`});return o.appendChild(s),a.appendChild(o),t.appendChild(a).appendChild(o).appendChild(s),t}function $g({open:e,onFormSubmitted:t,...n}){let r=n.options,i=Og(()=>({__html:Qg().outerHTML}),[]),[a,o]=Sg(null),s=kg(()=>{a&&(clearTimeout(a),o(null)),t()},[a]),c=kg((e,r)=>{n.onSubmitSuccess(e,r),o(setTimeout(()=>{t(),o(null)},$m))},[t]);return B(Vh,null,a?B(`div`,{class:`success__position`,onClick:s},B(`div`,{class:`success__content`},r.successMessageText,B(`span`,{class:`success__icon`,dangerouslySetInnerHTML:i}))):B(`dialog`,{class:`dialog`,onClick:r.onFormClose,open:e},B(`div`,{class:`dialog__position`},B(`div`,{class:`dialog__content`,onClick:e=>{e.stopPropagation()}},B(Wg,{options:r}),B(qg,{...n,onSubmitSuccess:c})))))}var e_=`
111.dialog {
112  position: fixed;
113  z-index: var(--z-index);
114  margin: 0;
115  inset: 0;
116
117  display: flex;
118  align-items: center;
119  justify-content: center;
120  padding: 0;
121  height: 100vh;
122  width: 100vw;
123
124  color: var(--dialog-color, var(--foreground));
125  fill: var(--dialog-color, var(--foreground));
126  line-height: 1.75em;
127
128  background-color: rgba(0, 0, 0, 0.05);
129  border: none;
130  inset: 0;
131  opacity: 1;
132  transition: opacity 0.2s ease-in-out;
133}
134
135.dialog__position {
136  position: fixed;
137  z-index: var(--z-index);
138  inset: var(--dialog-inset);
139  padding: var(--page-margin);
140  display: flex;
141  max-height: calc(100vh - (2 * var(--page-margin)));
142}
143@media (max-width: 600px) {
144  .dialog__position {
145    inset: var(--page-margin);
146    padding: 0;
147  }
148}
149
150.dialog__position:has(.editor) {
151  inset: var(--page-margin);
152  padding: 0;
153}
154
155.dialog:not([open]) {
156  opacity: 0;
157  pointer-events: none;
158  visibility: hidden;
159}
160.dialog:not([open]) .dialog__content {
161  transform: translate(0, -16px) scale(0.98);
162}
163
164.dialog__content {
165  display: flex;
166  flex-direction: column;
167  gap: 16px;
168  padding: var(--dialog-padding, 24px);
169  max-width: 100%;
170  width: 100%;
171  max-height: 100%;
172  overflow: auto;
173
174  background: var(--dialog-background, var(--background));
175  border-radius: var(--dialog-border-radius, 20px);
176  border: var(--dialog-border, var(--border));
177  box-shadow: var(--dialog-box-shadow, var(--box-shadow));
178  transform: translate(0, 0) scale(1);
179  transition: transform 0.2s ease-in-out;
180}
181
182`,t_=`
183.dialog__header {
184  display: flex;
185  gap: 4px;
186  justify-content: space-between;
187  font-weight: var(--dialog-header-weight, 600);
188  margin: 0;
189}
190.dialog__title {
191  align-self: center;
192  width: var(--form-width, 272px);
193}
194
195@media (max-width: 600px) {
196  .dialog__title {
197    width: auto;
198  }
199}
200
201.dialog__position:has(.editor) .dialog__title {
202  width: auto;
203}
204
205
206.brand-link {
207  display: inline-flex;
208}
209.brand-link:focus-visible {
210  outline: var(--outline);
211}
212`,n_=`
213.form {
214  display: flex;
215  overflow: auto;
216  flex-direction: row;
217  gap: 16px;
218  flex: 1 0;
219}
220
221.form fieldset {
222  border: none;
223  margin: 0;
224  padding: 0;
225}
226
227.form__right {
228  flex: 0 0 auto;
229  display: flex;
230  overflow: auto;
231  flex-direction: column;
232  justify-content: space-between;
233  gap: 20px;
234  width: var(--form-width, 100%);
235}
236
237.dialog__position:has(.editor) .form__right {
238  width: var(--form-width, 272px);
239}
240
241.form__top {
242  display: flex;
243  flex-direction: column;
244  gap: 8px;
245}
246
247.form__error-container {
248  color: var(--error-color);
249  fill: var(--error-color);
250  width: 0;
251  min-width: 100%;
252  overflow-wrap: break-word;
253}
254
255.form__label {
256  display: flex;
257  flex-direction: column;
258  gap: 4px;
259  margin: 0px;
260}
261
262.form__label__text {
263  display: flex;
264  gap: 4px;
265  align-items: center;
266}
267
268.form__label__text--required {
269  font-size: 0.85em;
270}
271
272.form__input {
273  font-family: inherit;
274  line-height: inherit;
275  background: transparent;
276  box-sizing: border-box;
277  border: var(--input-border, var(--border));
278  border-radius: var(--input-border-radius, 6px);
279  color: var(--input-color, inherit);
280  fill: var(--input-color, inherit);
281  font-size: var(--input-font-size, inherit);
282  font-weight: var(--input-font-weight, 500);
283  padding: 6px 12px;
284}
285
286.form__input::placeholder {
287  opacity: 0.65;
288  color: var(--input-placeholder-color, inherit);
289  filter: var(--interactive-filter);
290}
291
292.form__input:focus-visible {
293  outline: var(--input-focus-outline, var(--outline));
294}
295
296.form__input--textarea {
297  font-family: inherit;
298  resize: vertical;
299}
300
301.error {
302  color: var(--error-color);
303  fill: var(--error-color);
304}
305`,r_=`
306.btn-group {
307  display: grid;
308  gap: 8px;
309}
310
311.btn {
312  line-height: inherit;
313  border: var(--button-border, var(--border));
314  border-radius: var(--button-border-radius, 6px);
315  cursor: pointer;
316  font-family: inherit;
317  font-size: var(--button-font-size, inherit);
318  font-weight: var(--button-font-weight, 600);
319  padding: var(--button-padding, 6px 16px);
320}
321.btn[disabled] {
322  opacity: 0.6;
323  pointer-events: none;
324}
325
326.btn--primary {
327  color: var(--button-primary-color, var(--accent-foreground));
328  fill: var(--button-primary-color, var(--accent-foreground));
329  background: var(--button-primary-background, var(--accent-background));
330  border: var(--button-primary-border, var(--border));
331  border-radius: var(--button-primary-border-radius, 6px);
332  font-weight: var(--button-primary-font-weight, 500);
333}
334.btn--primary:hover {
335  color: var(--button-primary-hover-color, var(--accent-foreground));
336  fill: var(--button-primary-hover-color, var(--accent-foreground));
337  background: var(--button-primary-hover-background, var(--accent-background));
338  filter: var(--interactive-filter);
339}
340.btn--primary:focus-visible {
341  background: var(--button-primary-hover-background, var(--accent-background));
342  filter: var(--interactive-filter);
343  outline: var(--button-primary-focus-outline, var(--outline));
344}
345
346.btn--default {
347  color: var(--button-color, var(--foreground));
348  fill: var(--button-color, var(--foreground));
349  background: var(--button-background, var(--background));
350  border: var(--button-border, var(--border));
351  border-radius: var(--button-border-radius, 6px);
352  font-weight: var(--button-font-weight, 500);
353}
354.btn--default:hover {
355  color: var(--button-color, var(--foreground));
356  fill: var(--button-color, var(--foreground));
357  background: var(--button-hover-background, var(--background));
358  filter: var(--interactive-filter);
359}
360.btn--default:focus-visible {
361  background: var(--button-hover-background, var(--background));
362  filter: var(--interactive-filter);
363  outline: var(--button-focus-outline, var(--outline));
364}
365`,i_=`
366.success__position {
367  position: fixed;
368  inset: var(--dialog-inset);
369  padding: var(--page-margin);
370  z-index: var(--z-index);
371}
372.success__content {
373  background: var(--success-background, var(--background));
374  border: var(--success-border, var(--border));
375  border-radius: var(--success-border-radius, 1.7em/50%);
376  box-shadow: var(--success-box-shadow, var(--box-shadow));
377  font-weight: var(--success-font-weight, 600);
378  color: var(--success-color);
379  fill: var(--success-color);
380  padding: 12px 24px;
381  line-height: 1.75em;
382
383  display: grid;
384  align-items: center;
385  grid-auto-flow: column;
386  gap: 6px;
387  cursor: default;
388}
389
390.success__icon {
391  display: flex;
392}
393`;function a_(e){let t=R.createElement(`style`);return t.textContent=`
394:host {
395  --dialog-inset: var(--inset);
396}
397
398${e_}
399${t_}
400${n_}
401${r_}
402${i_}
403`,e&&t.setAttribute(`nonce`,e),t}function o_(){let e=j().getUser(),t=M().getUser(),n=Tn().getUser();return e&&Object.keys(e).length?e:t&&Object.keys(t).length?t:n}var s_=(()=>({name:`FeedbackModal`,setupOnce(){},createDialog:({options:e,screenshotIntegration:t,sendFeedback:n,shadow:r})=>{let i=r,a=e.useSentryUser,o=o_(),s=R.createElement(`div`),c=a_(e.styleNonce),l=``,u={get el(){return s},appendToDom(){!i.contains(c)&&!i.contains(s)&&(i.appendChild(c),i.appendChild(s))},removeFromDom(){s.remove(),c.remove(),R.body.style.overflow=l},open(){f(!0),e.onFormOpen?.(),N()?.emit(`openFeedbackWidget`),l=R.body.style.overflow,R.body.style.overflow=`hidden`},close(){f(!1),R.body.style.overflow=l}},d=t?.createInput({h:B,hooks:Vg,dialog:u,options:e}),f=t=>{lg(B($g,{options:e,screenshotInput:d,showName:e.showName||e.isNameRequired,showEmail:e.showEmail||e.isEmailRequired,defaultName:String(a&&o?.[a.name]||``),defaultEmail:String(a&&o?.[a.email]||``),onFormClose:()=>{f(!1),e.onFormClose?.()},onSubmit:n,onSubmitSuccess:(t,n)=>{f(!1),e.onSubmitSuccess?.(t,n)},onSubmitError:t=>{e.onSubmitError?.(t)},onFormSubmitted:()=>{e.onFormSubmitted?.()},open:t}),s)};return u}}));function c_({h:e}){return function(){return e(`svg`,{"data-test-id":`icon-close`,viewBox:`0 0 16 16`,fill:`#2B2233`,height:`25px`,width:`25px`},e(`circle`,{r:`7`,cx:`8`,cy:`8`,fill:`white`}),e(`path`,{strokeWidth:`1.5`,d:`M8,16a8,8,0,1,1,8-8A8,8,0,0,1,8,16ZM8,1.53A6.47,6.47,0,1,0,14.47,8,6.47,6.47,0,0,0,8,1.53Z`}),e(`path`,{strokeWidth:`1.5`,d:`M5.34,11.41a.71.71,0,0,1-.53-.22.74.74,0,0,1,0-1.06l5.32-5.32a.75.75,0,0,1,1.06,1.06L5.87,11.19A.74.74,0,0,1,5.34,11.41Z`}),e(`path`,{strokeWidth:`1.5`,d:`M10.66,11.41a.74.74,0,0,1-.53-.22L4.81,5.87A.75.75,0,0,1,5.87,4.81l5.32,5.32a.74.74,0,0,1,0,1.06A.71.71,0,0,1,10.66,11.41Z`}))}}function l_(e){let t=R.createElement(`style`),n=`#1A141F`,r=`#302735`;return t.textContent=`
404.editor {
405  display: flex;
406  flex-grow: 1;
407  flex-direction: column;
408}
409
410.editor__image-container {
411  justify-items: center;
412  padding: 15px;
413  position: relative;
414  height: 100%;
415  border-radius: var(--menu-border-radius, 6px);
416
417  background-color: ${n};
418  background-image: repeating-linear-gradient(
419      -145deg,
420      transparent,
421      transparent 8px,
422      ${n} 8px,
423      ${n} 11px
424    ),
425    repeating-linear-gradient(
426      -45deg,
427      transparent,
428      transparent 15px,
429      ${r} 15px,
430      ${r} 16px
431    );
432}
433
434.editor__canvas-container {
435  width: 100%;
436  height: 100%;
437  position: relative;
438  display: flex;
439  align-items: center;
440  justify-content: center;
441}
442
443.editor__canvas-container > * {
444  object-fit: contain;
445  position: absolute;
446}
447
448.editor__tool-container {
449  padding-top: 8px;
450  display: flex;
451  justify-content: center;
452}
453
454.editor__tool-bar {
455  display: flex;
456  gap: 8px;
457}
458
459.editor__tool {
460  display: flex;
461  padding: 8px 12px;
462  justify-content: center;
463  align-items: center;
464  border: var(--button-border, var(--border));
465  border-radius: var(--button-border-radius, 6px);
466  background: var(--button-background, var(--background));
467  color: var(--button-color, var(--foreground));
468}
469
470.editor__tool--active {
471  background: var(--button-primary-background, var(--accent-background));
472  color: var(--button-primary-color, var(--accent-foreground));
473}
474
475.editor__rect {
476  position: absolute;
477  z-index: 2;
478}
479
480.editor__rect button {
481  opacity: 0;
482  position: absolute;
483  top: -12px;
484  right: -12px;
485  cursor: pointer;
486  padding: 0;
487  z-index: 3;
488  border: none;
489  background: none;
490}
491
492.editor__rect:hover button {
493  opacity: 1;
494}
495`,e&&t.setAttribute(`nonce`,e),t}function u_({h:e}){return function({action:t,setAction:n,options:r}){return e(`div`,{class:`editor__tool-container`},e(`div`,{class:`editor__tool-bar`},e(`button`,{type:`button`,class:`editor__tool ${t===`highlight`?`editor__tool--active`:``}`,onClick:()=>{n(t===`highlight`?``:`highlight`)}},r.highlightToolText),e(`button`,{type:`button`,class:`editor__tool ${t===`hide`?`editor__tool--active`:``}`,onClick:()=>{n(t===`hide`?``:`hide`)}},r.hideToolText)))}}function d_({hooks:e}){function t(){let[t,n]=e.useState(Em.devicePixelRatio??1);return e.useEffect(()=>{let e=()=>{n(Em.devicePixelRatio)},t=matchMedia(`(resolution: ${Em.devicePixelRatio}dppx)`);return t.addEventListener(`change`,e),()=>{t.removeEventListener(`change`,e)}},[]),t}return function({onBeforeScreenshot:n,onScreenshot:r,onAfterScreenshot:i,onError:a}){let o=t();e.useEffect(()=>{(async()=>{n();let e=await Dm.mediaDevices.getDisplayMedia({video:{width:Em.innerWidth*o,height:Em.innerHe
495ight*o},audio:!1,monitorTypeSurfaces:`exclude`,preferCurrentTab:!0,selfBrowserSurface:`include`,surfaceSwitching:`exclude`}),t=R.createElement(`video`);await new Promise((n,i)=>{t.srcObject=e,t.onloadedmetadata=()=>{r(t,o),e.getTracks().forEach(e=>e.stop()),n()},t.play().catch(i)}),i()})().catch(a)},[])}}function f_(e,t,n){switch(e.type){case`highlight`:t.shadowColor=`rgba(0, 0, 0, 0.7)`,t.shadowBlur=50,t.fillStyle=n,t.fillRect(e.x-1,e.y-1,e.w+2,e.h+2),t.clearRect(e.x,e.y,e.w,e.h);break;case`hide`:t.fillStyle=`rgb(0, 0, 0)`,t.fillRect(e.x,e.y,e.w,e.h)}}function p_(e,t,n){if(!e)return;let r=e.getContext(`2d`,t);r&&n(e,r)}function m_(e,t){p_(e,{alpha:!0},(e,n)=>{n.drawImage(t,0,0,t.width,t.height,0,0,e.width,e.height)})}function h_(e,t,n){p_(e,{alpha:!0},(e,r)=>{n.length&&(r.fillStyle=`rgba(0, 0, 0, 0.25)`,r.fillRect(0,0,e.width,e.height)),n.forEach(e=>{f_(e,r,t)})})}function g_({h:e,hooks:t,outputBuffer:n,dialog:r,options:i}){let a=d_({hooks:t}),o=u_({h:e}),s=c_({h:e}),c={__html:l_(i.styleNonce).innerText},l=r.el.style,u=({screenshot:r})=>{let[a,l]=t.useState(`highlight`),[u,d]=t.useState([]),f=t.useRef(null),p=t.useRef(null),m=t.useRef(null),h=t.useRef(null),[g,_]=t.useState(1),v=t.useMemo(()=>{let e=R.getElementById(i.id);if(!e)return`white`;let t=getComputedStyle(e);return t.getPropertyValue(`--button-primary-background`)||t.getPropertyValue(`--accent-background`)},[i.id]);t.useLayoutEffect(()=>{let e=()=>{let t=f.current;t&&(p_(r.canvas,{alpha:!1},e=>{let n=Math.min(t.clientWidth/e.width,t.clientHeight/e.height);_(n)}),(t.clientHeight===0||t.clientWidth===0)&&setTimeout(e,0))};return e(),Em.addEventListener(`resize`,e),()=>{Em.removeEventListener(`resize`,e)}},[r]);let y=t.useCallback((e,t)=>{p_(e,{alpha:!0},(e,n)=>{n.scale(t,t),e.width=r.canvas.width,e.height=r.canvas.height})},[r]);t.useEffect(()=>{y(p.current,r.dpi),m_(p.current,r.canvas)},[r]),t.useEffect(()=>{y(m.current,r.dpi),p_(m.current,{alpha:!0},(e,t)=>{t.clearRect(0,0,e.width,e.height)}),h_(m.current,v,u)},[u,v]),t.useEffect(()=>{y(n,r.dpi),m_(n,r.canvas),p_(R.createElement(`canvas`),{alpha:!0},(e,t)=>{t.scale(r.dpi,r.dpi),e.width=r.canvas.width,e.height=r.canvas.height,h_(e,v,u),m_(n,e)})},[u,r,v]);let b=e=>{if(!a||!h.current)return;let t=h.current.getBoundingClientRect(),n={type:a,x:e.offsetX/g,y:e.offsetY/g},r=(e,n)=>{let r=(n.clientX-t.x)/g,i=(n.clientY-t.y)/g;return{type:e.type,x:Math.min(e.x,r),y:Math.min(e.y,i),w:Math.abs(r-e.x),h:Math.abs(i-e.y)}},i=e=>{p_(m.current,{alpha:!0},(e,t)=>{t.clearRect(0,0,e.width,e.height)}),h_(m.current,v,[...u,r(n,e)])},o=e=>{let t=r(n,e);t.w*g>=1&&t.h*g>=1&&d(e=>[...e,t]),R.removeEventListener(`mousemove`,i),R.removeEventListener(`mouseup`,o)};R.addEventListener(`mousemove`,i),R.addEventListener(`mouseup`,o)},x=t.useCallback(e=>t=>{t.preventDefault(),t.stopPropagation(),d(t=>{let n=[...t];return n.splice(e,1),n})},[]),S={width:`${r.canvas.width*g}px`,height:`${r.canvas.height*g}px`},C=e=>{e.stopPropagation()};return e(`div`,{class:`editor`},e(`style`,{nonce:i.styleNonce,dangerouslySetInnerHTML:c}),e(`div`,{class:`editor__image-container`},e(`div`,{class:`editor__canvas-container`,ref:f},e(`canvas`,{ref:p,id:`background`,style:S}),e(`canvas`,{ref:m,id:`foreground`,style:S}),e(`div`,{ref:h,onMouseDown:b,style:S},u.map((t,n)=>
495e(`div`,{key:n,class:`editor__rect`,style:{top:`${t.y*g}px`,left:`${t.x*g}px`,width:`${t.w*g}px`,height:`${t.h*g}px`}},e(`button`,{"aria-label":i.removeHighlightText,onClick:x(n),onMouseDown:C,onMouseUp:C,type:`button`},e(s,null))))))),e(o,{options:i,action:a,setAction:l}))};return function({onError:r}){let[i,o]=t.useState();return a({onBeforeScreenshot:t.useCallback(()=>{l.display=`none`},[]),onScreenshot:t.useCallback((e,t)=>{p_(R.createElement(`canvas`),{alpha:!1},(n,r)=>{r.scale(t,t),n.width=e.videoWidth,n.height=e.videoHeight,r.drawImage(e,0,0,n.width,n.height),o({canvas:n,dpi:t})}),n.width=e.videoWidth,n.height=e.videoHeight},[]),onAfterScreenshot:t.useCallback(()=>{l.display=`block`},[]),onError:t.useCallback(e=>{l.display=`block`,r(e)},[])}),i?e(u,{screenshot:i}):e(`div`,null)}}var __=(()=>({name:`FeedbackScreenshot`,setupOnce(){},createInput:({h:e,hooks:t,dialog:n,options:r})=>{let i=R.createElement(`canvas`);return{input:g_({h:e,hooks:t,outputBuffer:i,dialog:n,options:r}),value:async()=>{let e=await new Promise(e=>{i.toBlob(e,`image/png`)});if(e)return{data:new Uint8Array(await e.arrayBuffer()),filename:`screenshot.png`,contentType:`application/png`}}}}})),v_=-1,y_=()=>v_,b_=e=>{addEventListener(`pageshow`,t=>{t.persisted&&(v_=t.timeStamp,e(t))},!0)},x_=(e,t,n,r)=>{let i,a;return o=>{t.value>=0&&(o||r)&&(a=t.value-(i??0),(a||i===void 0)&&(i=t.value,t.delta=a,t.rating=((e,t)=>e>t[1]?`poor`:e>t[0]?`needs-improvement`:`good`)(t.value,n),e(t)))}},S_=e=>{requestAnimationFrame(()=>requestAnimationFrame(()=>e()))},C_=()=>{let e=performance.getEntriesByType(`navigation`)[0];if(e&&e.responseStart>0&&e.responseStart<performance.now())return e},w_=()=>C_()?.activationStart??0,T_=-1,E_=new Set,D_=()=>document.visibilityState!==`hidden`||document.prerendering?1/0:0,O_=e=>{if(document.visibilityState===`hidden`){if(e.type===`visibilitychange`)for(let e of E_)e();isFinite(T_)||(T_=e.type===`visibilitychange`?e.timeStamp:0,removeEventListener(`prerenderingchange`,O_,!0))}},k_=(e=!1)=>{if(e&&(T_=1/0),T_<0){let e=w_();T_=(document.prerendering?void 0:globalThis.performance.getEntriesByType(`visibility-state`).find(t=>t.name===`hidden`&&t.startTime>=e)?.startTime)??D_(),addEventListener(`visibilitychange`,O_,!0),addEventListener(`prerenderingchange`,O_,!0),b_(()=>{setTimeout(()=>{T_=D_()})})}return{get firstHiddenTime(){return T_},onHidden(e){E_.add(e)}}},A_=(e,t=-1,n,r=0,i,a,o)=>{let s=C_(),c=s?.navigationId||0,l=`navigate`;return n?l=n:y_()>=0?l=`back-forward-cache`:s&&(document.prerendering||w_()>0?l=`prerender`:document.wasDiscarded?l=`restore`:s.type&&(l=s.type.replace(/_/g,`-`))),{name:e,value:t,rating:`good`,delta:0,entries:[],id:`v6-${Date.now()}-${Math.floor(8999999999999*Math.random())+0xe8d4a51000}`,navigationType:l,navigationId:r||c,navigationInteractionId:i,navigationURL:a||s?.name,navigationStartTime:o||0}},j_=new WeakMap;function M_(e,t){let n=j_.get(t);return n||(n=new WeakMap,j_.set(t,n)),n.get(e)||n.set(e,new t),n.get(e)}var N_=class{t;i=0;o=[];h(e){if(e.hadRecentInput)return;let t=this.o[0],n=this.o.at(-1);this.i&&t&&n&&e.startTime-n.startTime<1e3&&e.startTime-t.startTime<5e3?(this.i+=e.value,this.o.push(e)):(this.i=e.value,this.o=[e]),this.t?.(e)}},P_=(e,t,n={})=>{try{let r=e.filter(e=>PerformanceObserver.supportedEntryTypes.includes(e));if(r.length>0){let e=new PerformanceObserver(e=>{queueMicrotask(()=>{let n=e.getEntries();r.length>1&&n.sort((e,t)=>e.startTime+e.duration-(t.startTime+t.duration)),t(n)})});for(let t of r)e.observe({type:t,buffered:!0,...n});return e}}catch{}},F_=e=>globalThis.PerformanceObserver?.supportedEntryTypes?.includes(`soft-navigation`)&&typeof globalThis.PerformanceSoftNavigation?.prototype?.getLargestInteractionContentfulPaint==`function`&&e&&e.reportSoftNavs,I_=(e,t)=>{if(e.set(t.navigationId,t),e.size>2){let t=e.keys().next().value;t!==void 0&&e.delete(t)}},L_=e=>{let t=!1;return()=>{t||=(e(),!0)}},R_=class{l},z_=e=>{document.prerendering?addEventListener(`prerenderingchange`,e,!0):e()},B_=[1800,3e3],V_=(e,t={})=>{let n=F_(t);z_(()=>{let r=M_(t,R_),i=k_(),a,o=A_(`FCP`),s=P_([`paint`],e=>{for(let t of e)t.name===`first-contentful-paint`&&(s.disconnect(),t.startTime<i.firstHiddenTime&&(o.value=Math.max(t.startTime-w_(),0),o.entries.push(t),o.navigationId=t.navigationId||o.navigationId,a(!0)))});s&&(a=x_(e,o,B_,t.reportAllChanges),b_(n=>{o=A_(`FCP`,-1,`back-forward-cache`,o.navigationId,o.navigationInteractionId,o.navigationURL,y_()),a=x_(e,o,B_,t.reportAllChanges),S_(()=>{o.value=performance.now()-n.timeStamp,a(!0)})})),n&&P_([`soft-navigation`],n=>
495{n.forEach(n=>{r.l&&n.navigationId&&I_(r.l,n),o=A_(`FCP`,Math.max((n.presentationTime||n.paintTime||0)-n.startTime,0),`soft-navigation`,n.navigationId,n.interactionId,n.name,n.startTime),a=x_(e,o,B_,t.reportAllChanges),a(!0)})},t)})},H_=[.1,.25],U_=(e,t={})=>{let n=k_();V_(L_(()=>{let r,i=A_(`CLS`,0),a=M_(t,N_),o=(n,o,s,c,l)=>{i=A_(`CLS`,0,n,o,s,c,l),a.i=0,r=x_(e,i,H_,t.reportAllChanges)},s=(e=!1)=>{a.i>i.value&&(i.value=a.i,i.entries=a.o),r(e)},c=e=>{s(!0),o(`soft-navigation`,e.navigationId,e.interactionId,e.name,e.startTime)},l=e=>{for(let t of e)t.entryType===`soft-navigation`?c(t):a.h(t);s()},u=[`layout-shift`];F_(t)&&u.push(`soft-navigation`);let d=P_(u,l);d&&(r=x_(e,i,H_,t.reportAllChanges),n.onHidden(()=>{l(d.takeRecords()),r(!0)}),b_(()=>{o(`back-forward-cache`,i.navigationId,i.navigationInteractionId,i.navigationURL,y_()),S_(r)}),setTimeout(r))}))},W_=0,G_=1/0,K_=0,q_=e=>{for(let t of e)t.interactionId&&(G_=Math.min(G_,t.interactionId),K_=Math.max(K_,t.interactionId),W_=K_?(K_-G_)/7+1:0)},J_,Y_=()=>J_?W_:performance.interactionCount??0,X_=()=>{`interactionCount`in performance||J_||(J_=P_([`event`],q_,{durationThreshold:0}))},Z_=class{u=0;v=[];m=new Map;p;T;_(){return Y_()-this.u}M(){this.u=Y_(),this.v.length=0,this.m.clear()}L(e){let t=this._(),n=Math.min(this.v.length-1,Math.floor(t/50));return!t||n!==-1||e!==`soft-navigation`&&e!==`back-forward-cache`?this.v[n]:{P:8,id:-1,entries:[]}}h(e){if(this.p?.(e),!e.interactionId)return;let t=this.v.at(-1),n=this.m.get(e.interactionId);if(n||this.v.length<10||e.duration>t.P){if(n?e.duration>n.P?(n.entries=[e],n.P=e.duration):e.duration===n.P&&e.startTime===n.entries[0].startTime&&n.entries.push(e):(n={id:e.interactionId,entries:[e],P:e.duration},this.m.set(n.id,n),this.v.push(n)),this.v.sort((e,t)=>t.P-e.P),this.v.length>10){let e=this.v.splice(10);for(let t of e)this.m.delete(t.id)}this.T?.(n)}}},Q_=e=>{let t=`requestIdleCallback`in globalThis?1e3:0,n=globalThis.requestIdleCallback||setTimeout,r=globalThis.cancelIdleCallback||clearTimeout;if(document.visibilityState===`hidden`)e();else{let i=L_(e),a=-1,o=()=>{r(a),i()};addEventListener(`visibilitychange`,o,{once:!0,capture:!0}),a=n(()=>{removeEventListener(`visibilitychange`,o,{capture:!0}),i()},{timeout:t})}},$_=[200,500],ev=(e,t={})=>{if(!globalThis.PerformanceEventTiming||!(`interactionId`in PerformanceEventTiming.prototype))return;let n=k_();z_(()=>{X_();let r,i=A_(`INP`),a=M_(t,Z_),o=(n,o,s,c,l)=>{a.M(),i=A_(`INP`,-1,n,o,s,c,l),r=x_(e,i,$_,t.reportAllChanges)},s=()=>{let e=a.L(i.navigationType);e&&e.P!==i.value&&(i.value=e.P,i.entries=e.entries,r())},c=e=>{s(),r(!0),o(`soft-navigation`,e.navigationId,e.interactionId,e.name,e.startTime)},l=(e,t=!1)=>{Q_(()=>{for(let t of e)t.entryType===`soft-navigation`?c(t):a.h(t);s(),t&&r(!0)})},u=[`event`,`first-input`];F_(t)&&u.push(`soft-navigation`);let d=P_(u,l,{...t,durationThreshold:t.durationThreshold??40});r=x_(e,i,$_,t.reportAllChanges),d&&(n.onHidden(()=>{l(d.takeRecords(),!0)}),b_(()=>{o(`back-forward-cache`,i.navigationId,i.navigationInteractionId,i.navigationURL,y_())}))})},tv=class{p;l;h(e){this.p?.(e)}},nv=[2500,4e3],rv=(e,t={})=>{let n=!1,r=F_(t);z_(()=>{let i,a=k_(),o=A_(`LCP`),s=M_(t,tv),c=(r,s,c,l,u)=>{o=A_(`LCP`,-1,r,s,c,l,u),i=x_(e,o,nv,t.reportAllChanges),n=!1,r===`soft-navigation`&&(a=k_(!0))},l=e=>{s.l&&e.navigationId&&I_(s.l,e),n||i(!0),c(`soft-navigation`,e.navigationId,e.interactionId,e.name,e.startTime);let t=e.getLargestInteractionContentfulPaint?.();t&&u([t])},u=e=>{t.reportAllChanges||r||(e=e.slice(-1));for(let t of e){if(!t)continue;if(t.entryType===`soft-navigation`){l(t);continue}let e=0,n=[],r=t.startTime;if(t.entryType===`largest-contentful-paint`)e=Math.max(t.startTime-w_(),0),s.h(t),n=[t];else if(t.entryType===`interaction-contentful-paint`){let i=t;if(!o.navigationId||`interactionId`in i&&i.interactionId!=o.navigationInteractionId)continue;r=i.largestContentfulPaint?.renderTime||0,e=Math.max(r-t.startTime,0),i.largestContentfulPaint&&(s.h(i.largestContentfulPaint),n=[i.largestContentfulPaint])}r<a.firstHiddenTime&&(o.value=e,o.entries=n,i())}},d=[`largest-contentful-paint`];r&&d.push(`interaction-contentful-paint`,`soft-navigation`);let f=P_(d,u);if(f){i=x_(e,o,nv,t.reportAllChanges);let a=[`keydown`,`click`,`visibilitychange`],s=e=>{if(e.isTrusted&&!n){let e=o.id;Q_(()=>
495{if(!n){if(!r){f.disconnect();for(let e of a)removeEventListener(e,s,{capture:!0})}e===o.id&&(n=!0,i(!0))}})}};for(let e of a)addEventListener(e,s,{capture:!0});b_(r=>{c(`back-forward-cache`,o.navigationId,o.navigationInteractionId,o.navigationURL,y_()),i=x_(e,o,nv,t.reportAllChanges),S_(()=>{o.value=performance.now()-r.timeStamp,n=!0,i(!0)})})}})},iv=[800,1800],av=e=>{document.prerendering?z_(()=>av(e)):document.readyState===`complete`?setTimeout(e):addEventListener(`load`,()=>av(e),!0)},ov=(e,t={})=>{let n=F_(t),r=A_(`TTFB`),i=x_(e,r,iv,t.reportAllChanges);av(()=>{let a=C_();if(a){let o=a.responseStart;r.value=Math.max(o-w_(),0),r.entries=[a],i(!0),b_(()=>{r=A_(`TTFB`,0,`back-forward-cache`,r.navigationId,r.navigationInteractionId,r.navigationURL,y_()),i=x_(e,r,iv,t.reportAllChanges),i(!0)}),n&&P_([`soft-navigation`],n=>{n.forEach(n=>{n.navigationId&&(r=A_(`TTFB`,0,`soft-navigation`,n.navigationId,n.interactionId,n.name,n.startTime),r.entries=[n],i=x_(e,r,iv,t.reportAllChanges),i(!0))})},t)}})},sv=typeof __SENTRY_DEBUG__>`u`||__SENTRY_DEBUG__,cv={},lv={},uv,dv,fv,pv,mv,hv={},gv=!1,_v=!1;function vv(){gv=!0}function yv(){_v=!0}function bv(e,t=!1){return Nv(`cls`,e,Ov,uv,t)}function xv(e,t=!1){return Nv(`lcp`,e,kv,dv,t)}function Sv(e){return Nv(`ttfb`,e,Av,fv)}function Cv(e){return Nv(`fcp`,e,jv,mv)}function wv(e){return Nv(`inp`,e,Mv,pv)}function Tv(e,t){return Fv(e,t),lv[e]||(Pv(e),lv[e]=!0),Iv(e,t)}function Ev(e,t){let n=cv[e];
495if(n?.length)for(let r of n)try{r(t)}catch(t){sv&&k.error(`Error while triggering instrumentation handler.
496Type: ${e}
497Name: ${A(r)}
498Error:`,t)}}function Dv(e){return t=>{(_v||t.navigationType!==`back-forward-cache`)&&e(t)}}function Ov(){return U_(Dv(e=>{Ev(`cls`,{metric:e}),uv=e}),{reportAllChanges:!gv&&!_v,reportSoftNavs:gv})}function kv(){return rv(Dv(e=>{Ev(`lcp`,{metric:e}),dv=e}),{reportAllChanges:!gv&&!_v,reportSoftNavs:gv})}function Av(){return ov(Dv(e=>{Ev(`ttfb`,{metric:e}),fv=e}))}function jv(){return V_(Dv(e=>{Ev(`fcp`,{metric:e}),mv=e}))}function Mv(){return ev(Dv(e=>{Ev(`inp`,{metric:e}),pv=e}),{reportSoftNavs:gv})}function Nv(e,t,n,r,i=!1){return Fv(e,t),lv[e]||(lv[e]=!0,Promise.resolve().then(()=>{hv[e]=n()})),r&&t({metric:r}),Iv(e,t,i)}function Pv(e){let t={type:e,buffered:!0};e===`event`&&(t.durationThreshold=0);try{PerformanceObserver.supportedEntryTypes.includes(e)&&new PerformanceObserver(t=>{Promise.resolve().then(()=>{Ev(e,{entries:t.getEntries()})})}).observe(t)}catch{}}function Fv(e,t){cv[e]=cv[e]||[],cv[e].push(t)}function Iv(e,t,n=!1){return()=>{n&&hv[e]?.();let r=cv[e];if(!r)return;let i=r.indexOf(t);i!==-1&&r.splice(i,1)}}function Lv(e){return`duration`in e}var U=C,Rv=5,zv=5,Bv,Vv,Hv,Uv=new Zp(Rv),Wv=new Zp(Rv),Gv=!1;function Kv(e,t){return Math.abs(e-t)<=zv}function qv(){try{return PerformanceObserver.supportedEntryTypes.includes(`soft-navigation`)&&typeof U.PerformanceSoftNavigation?.prototype?.getLargestInteractionContentfulPaint==`function`}catch{return!1}}function Jv(e){if(Gv||!qv())return;Gv=!0;let t=e=>{e.isTrusted&&(Hv=e.timeStamp)};U.addEventListener(`click`,t,{capture:!0,passive:!0}),U.addEventListener(`keydown`,t,{capture:!0,passive:!0}),e.on(`spanStart`,e=>{if(P(e).attributes?.[`sentry.op`]!==`navigation`)return;Bv=void 0;let t=Hv;if(t!=null){if(Vv?.interactionTimestamp===t){Uv.set(Vv.interactionId,e),Vv=void 0;return}Bv={span:e,interactionTimestamp:t}}});let n=({entries:e})=>{for(let t of e){if(!Lv(t)||!t.interactionId)continue;let e=Bv;if(e&&Kv(t.startTime,e.interactionTimestamp)){Uv.set(t.interactionId,e.span),Bv=void 0;continue}Uv.get(t.interactionId)||Hv!=null&&Kv(t.startTime,Hv)&&(Vv={interactionId:t.interactionId,interactionTimestamp:Hv})}};Tv(`event`,n),Tv(`first-input`,n),Tv(`soft-navigation`,({entries:e})=>{for(let t of e){let e=Uv.get(t.interactionId);if(!e){sv&&k.log(`[SoftNav] No navigation span found for soft navigation ${t.navigationId}`,t);continue}Wv.set(t.navigationId,e),e.setAttribute(Nn,t.navigationId)}})}function Yv(e){return e.navigationType===`soft-navigation`?Wv.get(e.navigationId)||(e.navigationInteractionId==null?void 0:Uv.get(e.navigationInteractionId)):void 0}function Xv(e){return typeof e==`number`&&isFinite(e)}function Zv(e,t,n,{...r}){let i=Ni(e).start_timestamp;return i&&i>t&&typeof e.updateStartTime==`function`&&e.updateStartTime(t),Xo(e,()=>{let e=hs({startTime:t,...r});return e&&e.end(n),e})}function Qv(){return U.addEventListener&&U.performance}function W(e){return e/1e3}function $v(e){let t=`unknown`,n=`unknown`,r=``;for(let i of e){if(i===`/`){[t,n]=e.split(`/`);break}if(!isNaN(Number(i))){t=r===`h`?`http`:r,n=e.split(r)[1];break}r+=i}return r===e&&(t=r),{name:t,version:n}}function ey(e){try{return PerformanceObserver.supportedEntryTypes.includes(e)}catch{return!1}}function ty(e){return e&&((Gt()||performance.timeOrigin)+e)/1e3}function ny(e){let t={};if(e.nextHopProtocol!=null){let{name:n,version:r}=$v(e.nextHopProtocol);t[`network.protocol.version`]=r,t[`network.protocol.name`]=n}return Gt()||Qv()?.timeOrigin?ry({...t,"http.request.redirect_start":ty(e.redirectStart),"http.request.redirect_end":ty(e.redirectEnd),"http.request.worker_start":ty(e.workerStart),"http.request.fetch_start":ty(e.fetchStart),"http.request.domain_lookup_start":ty(e.domainLookupStart),"http.request.domain_lookup_end":ty(e.domainLookupEnd),"http.request.connect_start":ty(e.connectStart),"http.request.secure_connection_start":ty(e.secureConnectionStart),"http.request.connection_end":ty(e.connectEnd),"http.request.request_start":ty(e.requestStart),"http.request.response_start":ty(e.responseStart),"http.request.response_end":ty(e.responseEnd),"http.request.time_to_first_byte":e.responseStart==null?void 0:e.responseStart/1e3}):t}function ry(e){return Object.fromEntries(Object.entries(e).filter(([,e])=>e!=null))}var iy=2147483647,ay=0;function oy(){Tv(`longtask`,({entries:e})=>{let t=F();if(!t)return;let{attributes:n,start_timestamp:r}=P(t);for(let i of e){let e=W(Gt()+i.startTime),a=W(i.duration);n[`sentry.op`]===`navigation`&&r&&e<r||Zv(t,e,e+a,{name:uc,op:Zs,attributes:{[wr]:`auto.ui.browser.metrics`}})}})}function sy(){new PerformanceObserver(e=>{let t=F();if(t)for(let n of e.getEntries()){if(!n.scripts[0])continue;let e=W(Gt()+n.startTime),{start_timestamp:r,attributes:{[er]:i}}=P(t);if(i===`navigation`&&r&&e<r)continue;let a=W(n.duration),o={[wr]:`auto.ui.browser.metrics`},{invoker:s,invokerType:c,sourceURL:l,sourceFunctionName:u,sourceCharPosition:d}=n.scripts[0];o[`browser.script.invoker`]=s,o[`browser.script.invoker_type`]=c,l&&(o[In]=l),u&&(o[Ln]=u),d!==-1&&(o[`browser.script.source_char_position`]=d),Zv(t,e,e+a,{name:uc,op:Qs,attributes:o})}}).observe({type:`long-animation-frame`,buffered:!0})}function cy(e,t){let n=Qv(),r=Gt();if(!n?.getEntries||!r)return;let{spanStreamingEnabled:i,ignoreResourceSpans:a}=t,o=W(r),s=n.getEntries(),{attributes:c,start_timestamp:l}=P(e);
498s.slice(ay).forEach(t=>{let n=W(t.startTime),r=W(Math.max(0,t.duration));if(!(c[`sentry.op`]===`navigation`&&l&&o+n<l))switch(t.entryType){case`navigation`:uy(e,t,o,i);break;case`paint`:ly(e,t,n,r,o);break;case`resource`:hy(e,t,t.name,n,r,o,a,i)}}),ay=Math.max(s.length-1,0),gy(e,i)}function ly(e,t,n,r,i){let a=i+n;Zv(e,a,a+r,{name:t.name,attributes:{[er]:Bs,[wr]:`auto.resource.browser.metrics`,[Fn]:t.name}})}function uy(e,t,n,r){fy(e,t,`unloadEvent`,n,r),fy(e,t,`redirect`,n,r),fy(e,t,`domContentLoadedEvent`,n,r),fy(e,t,`loadEvent`,n,r),fy(e,t,`connect`,n,r),fy(e,t,`secureConnection`,n,r),fy(e,t,`fetch`,n,r),fy(e,t,`domainLookup`,n,r),my(e,t,n,r)}var dy={secureConnection:Ks,fetch:qs,domainLookup:Js,unloadEvent:Vs,redirect:Hs,connect:Gs,domContentLoadedEvent:Us,loadEvent:Ws};function fy(e,t,n,r,i){let a=t[py(n)],o=t[`${n}Start`];if(!o||!a)return;let s=dy[n];Zv(e,r+W(o),r+W(a),{name:i?hc[s]:t.name,attributes:{[er]:s,[wr]:`auto.ui.browser.metrics`,[hr]:Zu(t.name),...n===`redirect`&&t.redirectCount!=null?{"http.redirect_count":t.redirectCount}:{}}})}function py(e){return e===`secureConnection`?`connectEnd`:e===`fetch`?`domainLookupStart`:`${e}End`}function my(e,t,n,r){let i=n+W(t.requestStart),a=n+W(t.responseEnd),o=n+W(t.responseStart);if(t.responseEnd){let n=Zu(t.name);Zv(e,i,a,{name:r?hc[Ys]:t.name,attributes:{[er]:Ys,[wr]:`auto.ui.browser.metrics`,[hr]:n}}),Zv(e,o,a,{name:r?hc[Xs]:t.name,attributes:{[er]:Xs,[wr]:`auto.ui.browser.metrics`,[hr]:n}})}}function hy(e,t,n,r,i,a,o,s){if(t.initiatorType===`xmlhttprequest`||t.initiatorType===`fetch`)return;let c=t.initiatorType?`resource.${t.initiatorType}`:zs;if(o?.includes(c))return;let l={[wr]:`auto.resource.browser.metrics`},u=od(n);u.protocol&&(l[vr]=u.protocol.split(`:`).pop());let d=u.host?.replace(/^.*@/,``);d&&(l[ur]=d);let f=d?.replace(/:\d+$/,``);f&&(l[pr]=f),l[Wn]=n.includes(U.location.origin),l[hr]=Zu(n),_y(t,l,[[`responseStatus`,qn],[`transferSize`,Kn],[`encodedBodySize`,Gn],[`decodedBodySize`,`http.response.body.decoded_size`],[`renderBlockingStatus`,`resource.render_blocking_status`],[`deliveryType`,`http.response_delivery_type`]]);let p={...l,...ny(t)},m=a+r;Zv(e,m,m+i,{name:s?f||`Resource`:n.replace(U.location.origin,``),op:c,attributes:p})}function gy(e,t){let n=U.navigator;if(!n)return;let r=n.connection;r&&(r.effectiveType&&e.setAttribute(t?Yn:`effectiveConnectionType`,r.effectiveType),r.type&&e.setAttribute(t?Zn:`connectionType`,r.type),Xv(r.rtt)&&(t?e.setAttribute(Xn,r.rtt):P(e).attributes[`sentry.op`]===`pageload`&&Lo(`connection.rtt`,r.rtt,`millisecond`))),Xv(n.deviceMemory)&&(t?e.setAttribute(`device.memory.estimated_capacity`,n.deviceMemory):e.setAttribute(`deviceMemory`,`${n.deviceMemory} GB`)),Xv(n.hardwareConcurrency)&&(t?e.setAttribute(`device.processor_count`,n.hardwareConcurrency):e.setAttribute(`hardwareConcurrency`,String(n.hardwareConcurrency)))}function _y(e,t,n){n.forEach(([n,r])=>{let i=e[n];i!=null&&(typeof i==`number`&&i<iy||typeof i==`string`)&&(t[r]=i)})}var vy=80,yy={};try{typeof Node<`u`&&(yy.parentNode=Object.getOwnPropertyDescriptor(Node.prototype,`parentNode`).get),typeof Element<`u`&&(yy.tagName=Object.getOwnPropertyDescriptor(Element.prototype,`tagName`).get,yy.id=Object.getOwnPropertyDescriptor(Element.prototype,`id`).get,yy.className=Object.getOwnPropertyDescriptor(Element.prototype,`className`).get,yy.getAttribute=Element.prototype.getAttribute),typeof HTMLElement<`u`&&(yy.dataset=Object.getOwnPropertyDescriptor(HTMLElement.prototype,`dataset`).get)}catch{}function by(e,t,n){let r=yy[t];if(r)try{return r.call(e,n)}catch{}let i=e[t];return typeof i==`function`?i.call(e,n):i}function xy(e,t={}){if(!e)return`<unknown>`;try{let n=e,r=[],i=0,a=0,o,s=Array.isArray(t)?t:t.keyAttrs,c=!Array.isArray(t)&&t.maxStringLength||vy;for(;n&&i++<5&&(o=Sy(n,s),!(o===`html`||i>1&&a+r.length*3+o.length>=c));)r.push(o),a+=o.length,n=by(n,`parentNode`);return r.reverse().join(` > `)}catch{return`<unknown>`}}function Sy(e,t){let n=[],r=by(e,`tagName`);if(!r)return``;if(typeof HTMLElement<`u`&&e instanceof HTMLElement){let t=by(e,`dataset`);if(t){if(t.sentryComponent)return t.sentryComponent;if(t.sentryElement)return t.sentryElement}}n.push(r.toLowerCase());let i=t?.length?t.filter(t=>by(e,`getAttribute`,t)).map(t=>[t,by(e,`getAttribute`,t)]):null;
498if(i?.length)i.forEach(e=>{n.push(`[${e[0]}="${e[1]}"]`)});else{let t=by(e,`id`);t&&n.push(`#${t}`);let r=by(e,`className`);if(r&&Re(r)){let e=r.split(/\s+/);for(let t of e)n.push(`.${t}`)}}for(let t of[`aria-label`,`type`,`name`,`title`,`alt`]){let r=by(e,`getAttribute`,t);r&&n.push(`[${t}="${r}"]`)}return n.join(``)}function Cy(e){return e!=null&&e>0&&e<=6e4}function wy(e,t,n){U.document&&U.addEventListener(e,t,n)}function Ty(e,t,n){U.document&&U.removeEventListener(e,t,n)}var Ey=(e=!0)=>{let t=U.performance?.getEntriesByType?.(`navigation`)[0];if(!e||t&&t.responseStart>0&&t.responseStart<performance.now())return t},Dy=()=>Ey()?.activationStart??0,Oy=e=>{wy(`visibilitychange`,t=>{U.document?.visibilityState===`hidden`&&e(t)},{capture:!0})},ky=-1,Ay=new Set,jy=()=>U.document?.visibilityState===`hidden`&&!U.document?.prerendering?0:1/0,My=e=>{if(U.document?.visibilityState===`hidden`&&ky>-1){if(e.type===`visibilitychange`)for(let e of Ay)e();isFinite(ky)||(ky=e.type===`visibilitychange`?e.timeStamp:0,Ty(`prerenderingchange`,My,!0))}},Ny=()=>{if(U.document&&ky<0){let e=Dy();ky=(U.document.prerendering?void 0:globalThis.performance.getEntriesByType(`visibility-state`).filter(t=>t.name===`hidden`&&t.startTime>e)[0]?.startTime)??jy(),wy(`visibilitychange`,My,!0),wy(`prerenderingchange`,My,!0)}return{get firstHiddenTime(){return ky},onHidden(e){Ay.add(e)}}},Py=e=>{let t=U.requestIdleCallback||U.setTimeout;if(U.document?.visibilityState===`hidden`)e();else{let n=!1,r=()=>{n||=(e(),!0)};wy(`visibilitychange`,r,{once:!0,capture:!0}),t(()=>{r(),Ty(`visibilitychange`,r,{capture:!0})})}},Fy={},Iy,Ly,Ry;function zy({trackCls:e,trackLcp:t}){if(Qv()&&Gt()){let n=t?Vy():void 0,r=e?By():void 0,i=Hy(),a=Uy(),o=Wy();return()=>{i(),a(),o(),n?.(),r?.()}}return()=>void 0}function By(){return bv(({metric:e})=>{let t=e.entries[e.entries.length-1];t&&(Fy.cls={value:e.value,unit:``},Ly=t)},!0)}function Vy(){return xv(({metric:e})=>{let t=e.entries[e.entries.length-1];t&&Cy(e.value)&&(Fy.lcp={value:e.value,unit:`millisecond`},Iy=t)},!0)}function Hy(){return Sv(({metric:e})=>{Ry=e.navigationType,e.entries[e.entries.length-1]&&(Fy.ttfb={value:e.value,unit:`millisecond`})})}function Uy(){return Cv(({metric:e})=>{Ry=e.navigationType,Fy.fcp={value:e.value,unit:`millisecond`}})}function Wy(){return Tv(`paint`,({entries:e})=>{let t=Ny();for(let n of e)n.name===`first-paint`&&n.startTime<t.firstHiddenTime&&(Fy.fp={value:n.startTime,unit:`millisecond`})})}function Gy(e,t){let n=Gt();if(!Qv()?.getEntries||!n){Ky();return}let{spanStreamingEnabled:r,recordClsOnPageloadSpan:i,recordLcpOnPageloadSpan:a}=t,o=W(n);if(P(e).attributes[`sentry.op`]===`pageload`){if(Yy(Fy),Jy(Fy),r){let t=(t,n,r)=>{let i=r??`browser.web_vital.${t}.value`;e.setAttribute(i,n),sv&&k.log(`Setting web vital attribute`,{[i]:n},`on pageload span`)};[`ttfb`,`fp`,`fcp`].forEach(e=>{Fy[e]&&t(e,Fy[e].value)}),Fy[`ttfb.requestTime`]&&t(`ttfb.requestTime`,Fy[`ttfb.requestTime`].value,`browser.web_vital.ttfb.request_time`)}else i||delete Fy.cls,a||delete Fy.lcp,Object.entries(Fy).forEach(([t,n])=>{Lo(t,n.value,n.unit,e)}),qy(e,t);Ry&&e.setAttribute(Pn,Ry),e.setAttribute(r?`browser.performance.time_origin`:`performance.timeOrigin`,o),e.setAttribute(r?`browser.performance.navigation.activation_start`:`performance.activationStart`,Dy())}Ky()}function Ky(){Iy=void 0,Ly=void 0,Ry=void 0,Fy={}}function qy(e,t){Iy&&t.recordLcpOnPageloadSpan&&(Iy.element&&e.setAttribute(`lcp.element`,xy(Iy.element)),Iy.id&&e.setAttribute(`lcp.id`,Iy.id),Iy.url&&e.setAttribute(`lcp.url`,Iy.url.trim().slice(0,200)),Iy.loadTime!=null&&e.setAttribute(`lcp.loadTime`,Iy.loadTime),Iy.renderTime!=null&&e.setAttribute(`lcp.renderTime`,Iy.renderTime),e.setAttribute(`lcp.size`,Iy.size)),Ly?.sources&&t.recordClsOnPageloadSpan&&Ly.sources.forEach((t,n)=>e.setAttribute(`cls.source.${n+1}`,xy(t.node)))}function Jy(e){let t=e.fp;t&&(t.value=Math.max(t.value-Dy(),0))}function Yy(e){let t=Ey(!1);if(!t)return;let{responseStart:n,requestStart:r}=t;r<=n&&(e[`ttfb.requestTime`]={value:n-r,unit:`millisecond`})}var Xy=`ElementTiming`,Zy=I((()=>({name:Xy,setup(){Qv()&&Gt()&&Tv(`element`,({entries:e})=>{for(let t of e){let e=t;if(!e.identifier)continue;let n=e.identifier,r=e.name,i=e.renderTime,a=e.loadTime,o={"sentry.origin":`auto.ui.browser.element_timing`,"ui.element.i
498dentifier":n};r&&(o[`ui.element.paint_type`]=r),e.id&&(o[`ui.element.id`]=e.id),e.element&&(o[`ui.element.type`]=e.element.tagName.toLowerCase()),e.url&&(o[`ui.element.url`]=e.url),e.naturalWidth&&(o[`ui.element.width`]=e.naturalWidth),e.naturalHeight&&(o[`ui.element.height`]=e.naturalHeight),i>0&&vm(`ui.element.render_time`,i,{unit:`millisecond`,attributes:o}),a>0&&vm(`ui.element.load_time`,a,{unit:`millisecond`,attributes:o})}})}}))),Qy=[],$y=new Map,eb=new Map,tb={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 nb(e){return e==null?void 0:$y.get(e)}function rb(){let e=Object.keys(tb);go()&&e.forEach(e=>{U.addEventListener(e,t,{capture:!0,passive:!0})});function t(e){let t=e.target;if(!t)return;let n=xy(t),r=Math.round(e.timeStamp);if(n&&n!==`<unknown>`&&!eb.has(r)&&(eb.set(r,n),eb.size>50)){let e=eb.keys().next().value;e!==void 0&&eb.delete(e)}}function n(e){let t=Math.round(e.startTime),n=eb.get(t);if(!n)for(let e=-5;e<=5;e++){let r=eb.get(t+e);if(r){n=r;break}}return n||`<unknown>`}let r=({entries:e})=>{let t=F(),r=t&&qi(t);e.forEach(e=>{if(!Lv(e))return;let t=e.interactionId;if(t==null||$y.has(t))return;let i=e.target?xy(e.target):n(e);if(Qy.length>10){let e=Qy.shift();$y.delete(e)}Qy.push(t),$y.set(t,{span:r,elementName:i})})};Tv(`event`,r),Tv(`first-input`,r)}var ib=/Googlebot|Google-InspectionTool|Storebot-Google|Bingbot|Slurp|DuckDuckBot|Baiduspider|YandexBot|Facebot|facebookexternalhit|LinkedInBot|Twitterbot|Applebot/i;function ab(){let e=U.navigator;return e?.userAgent?ib.test(e.userAgent):!1}function ob(e,t=5){if(!C.HTMLElement)return null;let n=e;for(let e=0;e<t;e++){if(!n)return null;if(n instanceof HTMLElement){if(n.dataset.sentryComponent)return n.dataset.sentryComponent;if(n.dataset.sentryElement)return n.dataset.sentryElement}n=n.parentNode}return null}var sb=`Interactions`,cb=I(((e={})=>({name:sb,setup(t){if(ab())return;let n={name:void 0,source:void 0,routeId:void 0,urlTemplate:void 0,httpRoute:void 0,urlPath:void 0,urlFull:void 0},r;function i(e){let{name:t,attributes:r}=P(e);n.name=t,n.source=r[`sentry.source`]||r[`sentry.segment.name.source`],n.routeId=r[Qn],n.urlTemplate=r[yr],n.httpRoute=r[Jn],n.urlPath=r[gr],n.urlFull=r[hr]}t.on(`spanStart`,e=>{lb(e)&&(r=e,i(e))}),t.on(`spanEnd`,e=>{e===r&&(r=void 0,i(e))}),ub(t,n,()=>r,e),db(t)}})));function lb(e){if(qi(e)!==e)return!1;let t=P(e).attributes[er];return t===`pageload`||t===`navigation`}function ub(e,t,n,r){if(!U.document)return;let i;addEventListener(`click`,()=>{if(n()){sv&&k.warn(`[Tracing] Did not create ui.action.click span because a pageload or navigation span is in progress.`);return}if(i&&=(i.setAttribute($n,`interactionInterrupted`),i.end(),void 0),!t.name){sv&&k.warn(`[Tracing] Did not create ui.action.click span because the latest route name is missing.`);return}let a=L(e),o=t.routeId||t.urlTemplate||t.httpRoute,s=o||`Click`,c=!o||t.routeId?`custom`:`route`;i=xs({name:a?s:t.name,attributes:{[er]:ac,[sr]:a?c:t.source||`url`,[tr]:`auto.browser.interactions`,...a&&{"sentry.segment.name":s},...t.routeId&&{"router.navigation.route.id":t.routeId},...t.urlTemplate&&{"url.template":t.urlTemplate},...t.httpRoute&&{"http.route":t.httpRoute},...t.urlPath&&{"url.path":t.urlPath},...t.urlFull&&{"url.full":Zu(t.urlFull)}}},r)},{capture:!0})}function db(e){Tv(`event`,({entries:t})=>{let n=F();if(n){for(let r of t)if(r.name===`click`){let t=W(Gt()+r.startTime),i=W(r.duration),a=xy(r.target),o=ob(r.target),s={name:L(e)?o||`Click`:a,startTime:t,attributes:{[er]:$s,[tr]:`auto.browser.interactions`,...a&&a!==`<unknown>`&&{"browser.web_vital.inp.target":a}}};o&&(s.attributes[fr]=o),Zv(n,t,t+i,s)}}})}function fb(){try{return U.document?.location.href??``}catch{return``}}var pb=`UserTiming`,mb=I(((e={})=>({name:pb,setup(t){let n=Qv(),r=Gt();if(!n?.getEntries||!r)return;let i=W(r),a=0;t.on(`beforeIdleSpanEnd`,t=>{let{attributes:r,start_timestamp:o}=P(t),s=r[er];if(s!==`pageload`&&s!==`navigation`)return;let c=W(Ey(!1)?.requestStart??0),l=n.getEntries();for(let n of l.slice(a)){if(n.entryType!==`mark`&&n.entryType!==`measure`)continue;let r=W(n.startTime),a=i+r;s===`navigation`&&o&&a<o||hb(t,n,r,W(Math.max(0,n.duration)),i,c,e.ignore??[])}a=l.length})}})));function hb(e,t,n,r,i,a,o){if(gb(t)||wt(t.name,o))return;let s=i+Math.max(n,a),c=i+n,l=c+r,u={[tr]:`auto.browser.user_timing.${t.entryType}`};s!==c&&(u[`sentry.browser.measure_happened_before_request`]=!0,u[`sentry.browser.measure_start_time`]=s),_b(u,t),s<=l&&Zv(e,s,l,{name:t.name,op:t.entryType,attributes:u})}function gb(e){if(e.entryType===`measure`)try{return e.detail.devtools.track===`Components ⚛`}catch{return}}function _b(e,t){try{let n=t.detail;if(!n)return;if(typeof n==`object`){for(let[t,r]of Object.entries(n))if(r&&Be(r))e[`sentry.browser.measure.detail.${t}`]=r;else if(r!==void 0)try{e[`sentry.browser.measure.detail.${t}`]=JSON.stringify(r)}catch{}return}if(Be(n)){e[`sentry.browser.measure.detail`]=n;return}try{e[`sentry.browser.measure.detail`]=JSON.stringify(n)}catch{}}catch{}}function vb(e){let{name:t,op:n,origin:r,metricName:i,value:a,attributes:o,parentSpan:s,startTime:c,endTime:l,standalone:u,softNavigationId:d,navigationType:f}=e,p=s&&qi(s),m=p?P(p).name:j().getScopeData().transactionName,h={[wr]:r,[Cr]:n,[Lr]:0,[`browser.web_vital.${i}.value`]:a,[lr]:m,[or]:m,[br]:U.navigator?.userAgent,...o};s&&P(s).attributes[`sentry.op`]===`pageload`&&(h[`sentry.pageload.span_id`]=s.spanContext().spanId),d!=null&&(h[Nn]=d),f&&(h[Pn]=f),u&&Object.assign(h,yb());let g=hs({name:t,attributes:h,startTime:c,parentSpan:s,experimental:u?{standalone:!0}:void 0});g&&g.end(l??c)}function yb(){let e=N()?.getIntegrationByName(`Replay`),t=e?.getReplayId(!0);return t?{[nr]:t,"sentry._internal.replay_is_buffering":e.getRecordingMode()===`buffer`||void 0}:{}}function bb(e,t){let n,r=!1;function i(){!r&&n&&t(n),r=!0}Oy(()=>{i()});let a=e.on(`beforeStartNavigationSpan`,(e,t)=>{t?.isRedirect||(i(),a(),o())}),o=e.on(`afterStartPageLoadSpan`,e=>{n=e,o()})}var xb={click:$s,hover:ec,drag:tc,press:nc},Sb={click:dc,hover:fc,drag:pc,press:mc};function Cb(e,t,n){let r;e.on(`afterStartPageLoadSpan`,e=>{r=e});let i;e.on(`spanStart`,e=>{let t=P(e).attributes;t?.[`sentry.op`]===`navigation`&&t[`browser.navigation.type`]===`back-forward-cache`&&(i=e)}),t(({metric:e})=>{let t=Yv(e);
498if(e.navigationType===`soft-navigation`){t?n(e,t,e.navigationId):sv&&k.log(`[SoftNav] Dropping ${e.name} for uncorrelated soft navigation ${e.navigationId}`);return}if(e.navigationType===`back-forward-cache`){n(e,i,void 0);return}n(e,r,void 0)})}function wb(e,t=!1){if(!ey(`largest-contentful-paint`))return;if(t){Cb(e,xv,(e,t,n)=>{let r=e.entries[e.entries.length-1];Tb(e.value,r,t,n,e.navigationType,e.navigationStartTime)});return}let n=0,r,i,a=xv(({metric:e})=>{i=e.navigationType;let t=e.entries[e.entries.length-1];t&&Cy(e.value)&&(n=e.value,r=t)},!0);bb(e,e=>{Tb(n,r,e,void 0,i),a()})}function Tb(e,t,n,r,i,a){if(!Cy(e))return;sv&&k.log(`Sending LCP span (${e})`);let o=Gt()||0,s=W(o+(a||0)),c=t?W(o+t.startTime):s+W(e),l=t?xy(t.element):void 0,u=t?.element?ob(t.element):null,d=N(),f=d&&L(d)?u||`Largest contentful paint`:l??`Largest contentful paint`,p={};l&&(p[`browser.web_vital.lcp.element`]=l),u&&(p[fr]=u),t?.id&&(p[`browser.web_vital.lcp.id`]=t.id),t?.url&&(p[`browser.web_vital.lcp.url`]=t.url),t?.loadTime!=null&&(p[`browser.web_vital.lcp.load_time`]=t.loadTime),t?.renderTime!=null&&(p[`browser.web_vital.lcp.render_time`]=t.renderTime),t?.size!=null&&(p[`browser.web_vital.lcp.size`]=t.size),vb({name:f,op:rc,origin:`auto.http.browser.lcp`,metricName:`lcp`,value:e,attributes:p,parentSpan:n,startTime:s,endTime:c,softNavigationId:r,navigationType:i})}
498function Eb(e,t=!1){if(!ey(`layout-shift`))return;if(t){Cb(e,bv,(e,t,n)=>{let r=e.entries[e.entries.length-1];Db(e.value,r,t,n,e.navigationType,e.navigationStartTime)});return}let n=0,r,i,a=bv(({metric:e})=>{i=e.navigationType;let t=e.entries[e.entries.length-1];t&&(n=e.value,r=t)},!0);bb(e,e=>{Db(n,r,e,void 0,i),a()})}function Db(e,t,n,r,i,a){sv&&k.log(`Sending CLS span (${e})`);let o=Gt(),s=t?.startTime??a??0,c=o?W(o+s):Ht(),l=t?.sources[0]?.node,u=t?xy(l):void 0,d=l?ob(l):null,f=N(),p=f&&L(f)?d||`Layout shift`:u??`Layout shift`,m={};d&&(m[fr]=d),t?.sources&&t.sources.forEach((e,t)=>{m[`browser.web_vital.cls.source.${t+1}`]=xy(e.node)}),vb({name:p,op:ic,origin:`auto.http.browser.cls`,metricName:`cls`,value:e,attributes:m,parentSpan:n,startTime:c,softNavigationId:r,navigationType:i})}function Ob(e,t=!1){if(!Qv()||!Gt())return;let n=!L(e);if(t){Cb(e,wv,(e,t,r)=>{kb(e)&&jb(e.value,Ab(e),n,t,r,e)});return}wv(({metric:e})=>{kb(e)&&jb(e.value,Ab(e),n,void 0,void 0,e)})}function kb(e){return e.value!=null&&W(e.value)<=60}function Ab(e){return e.entries.find(t=>t.duration===e.value&&tb[t.name])}function jb(e,t,n=!1,r,i,a){sv&&k.log(`Sending INP span (${e})`);let o=W(Gt()+(t?.startTime??a?.navigationStartTime??0)),s=W(e),c=t&&tb[t.name],l=c||`click`,u=t&&nb(t.interactionId),d=F(),f=d?qi(d):void 0,p=r||u?.span||f,m=u?.elementName||(t?xy(t.target):void 0),h=t?.target?ob(t.target):null,g=N(),_=!!g&&L(g),v=Sb[l],y=_?h||v:m??`Interaction to next paint`,b={[Lr]:t?.duration??e};m&&m!==`<unknown>`&&(b[`browser.web_vital.inp.target`]=m),c&&(b[`browser.web_vital.inp.interaction_type`]=c),h&&(b[fr]=h),vb({name:y,op:xb[l],origin:`auto.http.browser.inp`,metricName:`inp`,value:e,attributes:b,startTime:o,endTime:o+s,navigationType:a?.navigationType,parentSpan:p,standalone:n,softNavigationId:i})}var Mb=1e3,Nb,Pb,Fb;function Ib(e){Ce(`dom`,e),we(`dom`,Lb)}function Lb(){if(!U.document)return;let e=Te.bind(null,`dom`),t=Bb(e,!0);U.document.addEventListener(`click`,t,!1),U.document.addEventListener(`keypress`,t,!1),[`EventTarget`,`Node`].forEach(t=>{let n=U[t]?.prototype;n?.hasOwnProperty?.(`addEventListener`)&&(Je(n,`addEventListener`,function(t){return function(n,r,i){if(n===`click`||n==`keypress`)try{let r=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},a=r[n]=r[n]||{refCount:0};if(!a.handler){let r=Bb(e);a.handler=r,t.call(this,n,r,i)}a.refCount++}catch{}return t.call(this,n,r,i)}}),Je(n,`removeEventListener`,function(e){return function(t,n,r){if(t===`click`||t==`keypress`)try{let n=this.__sentry_instrumentation_handlers__||{},i=n[t];i&&(i.refCount--,i.refCount<=0&&(e.call(this,t,i.handler,r),i.handler=void 0,delete n[t]),Object.keys(n).length===0&&delete this.__sentry_instrumentation_handlers__)}catch{}return e.call(this,t,n,r)}}))})}function Rb(e){if(e.type!==Pb)return!1;try{if(!e.target||e.target._sentryId!==Fb)return!1}catch{}return!0}function zb(e,t){return e===`keypress`?!t?.tagName||!(t.tagName===`INPUT`||t.tagName===`TEXTAREA`||t.isContentEditable):!1}function Bb(e,t=!1){return n=>{if(!n||n._sentryCaptured)return;let r=Vb(n);if(zb(n.type,r))return;Ye(n,`_sentryCaptured`,!0),r&&!r._sentryId&&Ye(r,`_sentryId`,Ot());let i=n.type===`keypress`?`input`:n.type;Rb(n)||(e({event:n,name:i,global:t}),Pb=n.type,Fb=r?r._sentryId:void 0),clearTimeout(Nb),Nb=U.setTimeout(()=>{Fb=void 0,Pb=void 0},Mb)}}function Vb(e){try{return e.target}catch{return null}}var Hb;function Ub(){return`history`in U&&!!U.history}function Wb(e){let t=`history`;Ce(t,e),we(t,Gb)}function Gb(){if(U.addEventListener(`popstate`,()=>{let e=U.location.href,t=Hb;Hb=e,t!==e&&Te(`history`,{from:t,to:e})}),!Ub())return;function e(e){return function(...t){let n=t.length>2?t[2]:void 0;if(n){let r=Hb,i=Kb(String(n));if(Hb=i,r===i)return e.apply(this,t);Te(`history`,{from:r,to:i})}return e.apply(this,t)}}Je(U.history,`pushState`,e),Je(U.history,`replaceState`,e)}function Kb(e){try{return new URL(e,U.location.origin).toString()}catch{return e}}var qb={};function Jb(e){let t=qb[e];if(t)return t;let n=U[e];if(zp(n))return qb[e]=n.bind(U);let r=U.document;if(r&&typeof r.createElement==`function`)try{let t=r.createElement(`iframe`);t.hidden=!0,r.head.appendChild(t);let i=t.contentWindow;i?.[e]&&(n=i[e]),r.head.removeChild(t)}catch(t){sv&&k.warn(`Could not create sandbox iframe for ${e} check, bailing to window.${e}: `,t)}return n&&(qb[e]=n.bind(U))}function Yb(e){qb[e]=void 0}function Xb(...e){return Jb(`setTimeout`)(...e)}var Zb=`__sentry_xhr_v3__`;function Qb(e){Ce(`xhr`,e),we(`xhr`,$b)}function $b(){if(!U.XMLHttpRequest)return;let e=XMLHttpRequest.prototype;e.open=new Proxy(e.open,{apply(e,t,n){let r=Error(),i=Ht()*1e3,a=Re(n[0])?n[0].toUpperCase():void 0,o=ex(n[1]);if(!a||!o)return e.apply(t,n);t[Zb]={method:a,url:o,request_headers:{}}
498,a===`POST`&&o.match(/sentry_key/)&&(t.__sentry_own_request__=!0);let s=()=>{let e=t[Zb];if(e&&t.readyState===4){try{e.status_code=t.status}catch{}Te(`xhr`,{endTimestamp:Ht()*1e3,startTimestamp:i,xhr:t,virtualError:r}),r=void 0,t.removeEventListener(`readystatechange`,s)}};return`onreadystatechange`in t&&typeof t.onreadystatechange==`function`?t.onreadystatechange=new Proxy(t.onreadystatechange,{apply(e,t,n){return s(),e.apply(t,n)}}):t.addEventListener(`readystatechange`,s),t.setRequestHeader=new Proxy(t.setRequestHeader,{apply(e,t,n){let[r,i]=n,a=t[Zb];return a&&Re(r)&&Re(i)&&(a.request_headers[r.toLowerCase()]=i),e.apply(t,n)}}),e.apply(t,n)}}),e.send=new Proxy(e.send,{apply(e,t,n){let r=t[Zb];return r?(n[0]!==void 0&&(r.body=n[0]),Te(`xhr`,{startTimestamp:Ht()*1e3,xhr:t}),e.apply(t,n)):e.apply(t,n)}})}function ex(e){if(Re(e))return e;try{return e.toString()}catch{}}var tx=Symbol.for(`sentry__originalRequestBody`);function nx(e){return new URLSearchParams(e).toString()}function rx(e,t=k){try{if(typeof e==`string`)return[e];if(e instanceof URLSearchParams)return[e.toString()];if(e instanceof FormData)return[nx(e)];if(!e)return[void 0]}catch(n){return sv&&t.error(n,`Failed to serialize body`,e),[void 0,`BODY_PARSE_ERROR`]}return sv&&t.log(`Skipping network body because of body type`,e),[void 0,`UNPARSEABLE_BODY_TYPE`]}function ix(e=[]){if(e.length>=2&&e[1]&&typeof e[1]==`object`&&`body`in e[1])return e[1].body;if(e.length>=1&&e[0]instanceof Request){let t=e[0][tx];return t===void 0?void 0:t}}function ax(e){let t;try{t=e.getAllResponseHeaders()}catch(t){return sv&&k.error(t,`Failed to get xhr response headers`,e),{}}return t?t.split(`\r
499`).reduce((e,t)=>{let[n,r]=t.split(`: `);return r&&(e[n.toLowerCase()]=r),e},{}):{}}function ox(e){if(typeof Element>`u`)return!1;try{return e instanceof Element}catch{return!1}}function sx(e){try{return new URL(e,U.location.origin).toString()}catch{return e}}var G=C,cx=0,lx=[];function ux(e){if(cx>0)return!0;let t=e?lx.findIndex(t=>fx(t,e)):-1;return t!==-1&&(lx.splice(t,1),!0)}function dx(e){lx.push(e),setTimeout(()=>{let t=lx.indexOf(e);t!==-1&&lx.splice(t,1)})}function fx(e,t){return e.msg===t.msg&&e.url===t.url&&e.line===t.line&&e.column===t.column}function px(){cx++,setTimeout(()=>{cx--})}function mx(e,t={}){function n(e){return typeof e==`function`}if(!n(e))return e;try{if(Object.prototype.hasOwnProperty.call(e,`__sentry_wrapped__`)){let t=e.__sentry_wrapped__;return typeof t==`function`?t:e}if(Ze(e))return e}catch{return e}let r=function(...n){C._sentryWrappedDepth=(C._sentryWrappedDepth||0)+1;try{let r=n.map(e=>mx(e,t));return e.apply(this,r)}catch(e){throw px(),En(r=>{r.addEventProcessor(e=>(t.mechanism&&(jt(e,void 0,void 0),Mt(e,t.mechanism)),e.extra={...e.extra,arguments:n},e)),Wc(e)}),e}finally{C._sentryWrappedDepth=(C._sentryWrappedDepth||0)-1}};try{for(let t in e)Object.prototype.hasOwnProperty.call(e,t)&&(r[t]=e[t])}catch{}Xe(r,e),Ye(e,`__sentry_wrapped__`,r);try{Object.getOwnPropertyDescriptor(r,`name`).configurable&&Object.defineProperty(r,"name",{get(){return e.name}})}catch{}return r}function hx(){let e=fb(),{referrer:t}=G.document||{},{userAgent:n}=G.navigator||{};return{url:e,headers:{...t&&{Referer:t},...n&&{"User-Agent":n}}}}var gx=[`replayIntegration`,`replayCanvasIntegration`,`feedbackIntegration`,`feedbackModalIntegration`,`feedbackScreenshotIntegration`,`captureConsoleIntegration`,`contextLinesIntegration`,`linkedErrorsIntegration`,`dedupeIntegration`,`extraErrorDataIntegration`,`graphqlClientIntegration`,`httpClientIntegration`,`reportingObserverIntegration`,`rewriteFramesIntegration`,`browserProfilingIntegration`,`userTimingIntegration`,`interactionsIntegration`,`moduleMetadataIntegration`],_x={replayCanvasIntegration:`replay-canvas`,feedbackModalIntegration:`feedback-modal`,feedbackScreenshotIntegration:`feedback-screenshot`};function vx(e){return _x[e]||e.replace(`Integration`,``).toLowerCase()}var yx=G;async function bx(e,t){let n=gx.includes(e)?vx(e):void 0,r=yx.Sentry=yx.Sentry||{};if(!n)throw Error(`Cannot lazy load integration: ${e}`);let i=r[e];if(typeof i==`function`&&!(`_isShim`in i))return i;let a=xx(n),o=G.document.createElement(`script`);o.src=a,o.crossOrigin=`anonymous`,o.referrerPolicy=`strict-origin`,t&&o.setAttribute(`nonce`,t);let s=new Promise((e,t)=>
499{o.addEventListener(`load`,()=>e()),o.addEventListener(`error`,t)}),c=G.document.currentScript,l=G.document.body||G.document.head||c?.parentElement;if(l)l.appendChild(o);else throw Error(`Could not find parent element to insert lazy-loaded ${e} script`);try{await s}catch{throw Error(`Error when loading integration: ${e}`)}let u=r[e];if(typeof u!=`function`)throw Error(`Could not load integration: ${e}`);return u}function xx(e){let t=N()?.getOptions()?.cdnBaseUrl||`https://browser.sentry-cdn.com`;return new URL(`/${w}/${e}.min.js`,t).toString()}var Sx=yh({lazyLoadIntegration:bx}),Cx=yh({getModalIntegration:()=>s_,getScreenshotIntegration:()=>__});function wx(e,t){let n=Dx(e,t),r={type:Mx(t),value:Nx(t)};return n.length&&(r.stacktrace={frames:n}),r.type===void 0&&r.value===``&&(r.value=`Unrecoverable error caught`),r}function Tx(e,t,n,r){let i=N()?.getOptions().normalizeDepth,a=Bx(t),o={__serialized__:pt(t,i)};if(a)return{exception:{values:[wx(e,a)]},extra:o};let s={exception:{values:[{type:Ue(t)?t.constructor.name:r?`UnhandledRejection`:`Error`,value:Rx(t,{isUnhandledRejection:r})}]},extra:o};if(n){let t=Dx(e,n);t.length&&(s.exception.values[0].stacktrace={frames:t})}return s}function Ex(e,t){return{exception:{values:[wx(e,t)]}}}function Dx(e,t){let n=t.stacktrace||t.stack||``,r=kx(t),i=Ax(t);try{return e(n,r,i)}catch{}return[]}var Ox=/Minified React error #\d+;/i;function kx(e){return e&&Ox.test(e.message)?1:0}function Ax(e){return typeof e.framesToPop==`number`?e.framesToPop:0}function jx(e){return typeof WebAssembly<`u`&&WebAssembly.Exception!==void 0&&e instanceof WebAssembly.Exception}function Mx(e){let t=e?.name;return!t&&jx(e)?e.message&&Array.isArray(e.message)&&e.message.length==2?e.message[0]:`WebAssembly.Exception`:t}function Nx(e){let t=e?.message;return jx(e)?Array.isArray(e.message)&&e.message.length==2?e.message[1]:`wasm exception`:t?t.error&&typeof t.error.message==`string`?qd(t.error):qd(e):`No error message`}function Px(e,t,n,r){let i=Ix(e,t,n?.syntheticException||void 0,r);return Mt(i),i.level=`error`,n?.event_id&&(i.event_id=n.event_id),Sc(i)}function Fx(e,t,n=`info`,r,i){let a=Lx(e,t,r?.syntheticException||void 0,i);return a.level=n,r?.event_id&&(a.event_id=r.event_id),Sc(a)}function Ix(e,t,n,r,i){let a;if(Fe(t)&&t.error)return Ex(e,t.error);if(Ie(t)||Le(t)){let i=t;if(`stack`in t){a=Ex(e,t);let i=a.exception?.values?.[0];if(r&&n&&i&&!i.stacktrace){let t=Dx(e,n);t.length&&(i.stacktrace={frames:t},Mt(a,{synthetic:!0}))}}else{let t=i.name||(Ie(i)?`DOMError`:`DOMException`),o=i.message?`${t}: ${i.message}`:t;a=Lx(e,o,n,r),jt(a,o)}return a}if(Ne(t))return Ex(e,t);if(Ve(t)||Ue(t))return a=Tx(e,t,n,i),Mt(a,{synthetic:!0}),a;let o=String(t);return a=Lx(e,o,n,r),jt(a,o,void 0),Mt(a,{synthetic:!0}),a}function Lx(e,t,n,r){let i={};if(r&&n){let r=Dx(e,n);r.length&&(i.exception={values:[{value:t,stacktrace:{frames:r}}]}),Mt(i,{synthetic:!0})}if(ze(t)){let{__sentry_template_string__:e,__sentry_template_values__:n}=t;return i.logentry={message:e,params:n},i}return i.message=t,i}function Rx(e,{isUnhandledRejection:t}){let n=et(e),r=t?`promise rejection`:`exception`;return Fe(e)?`Event \`ErrorEvent\` captured as ${r} with message \`${e.message}\``:Ue(e)?`Event \`${zx(e)}\` (type=${e.type}) captured as ${r}`:`Object captured as ${r} with keys: ${n}`}function zx(e){try{let t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch{}}function Bx(e){return Object.values(e).find(Ne)}var Vx=class extends yu{constructor(e){let t=Hx(e);_d(t,`browser`,[`browser`],G.SENTRY_SDK_SOURCE||mo()),super(t),this._unhandledSessionStatus=`unhandled`;let{userInfo:n}=this.getDataCollectionOptions();t._metadata?.sdk&&(t._metadata.sdk.settings={infer_ip:n?`auto`:`never`,...t._metadata.sdk.settings});let{sendClientReports:r}=this._options;G.document&&G.document.addEventListener(`visibilitychange`,()=>{G.document.visibilityState===`hidden`&&(r&&this._flushOutcomes(),queueMicrotask(()=>{this.flush()}))}),n&&this.on(`beforeSendSession`,gd)}eventFromException(e,t){return Px(this._options.stackParser,e,t,this._options.attachStacktrace)}eventFromMessage(e,t=`info`,n){return Fx(this._options.stackParser,e,t,n,this._options.attachStacktrace)}_prepareEvent(e,t,n,r){return e.platform=e.platform||`javascript`,super._prepareEvent(e,t,n,r)}};function Hx(e){return{release:typeof __SENTRY_RELEASE__==`string`?__SENTRY_RELEASE__:G.SENTRY_RELEASE?.id,sendClientReports:!0,parentSpanIsAlwaysRootSpan:!0,...e}}var Ux=40;function Wx(e,t=Jb(`fetch`)){let n=0,r=0;async function i(i){let a=i.body.length;n+=a,r++;let o={body:i.body,method:`POST`,referrerPolicy:`strict-origin`,headers:e.headers,keepalive:n<=6e4&&r<15,...e.fetchOptions};try{let n=await t(e.url,o);return{statusCode:n.status,headers:{"x-sentry-rate-limits":n.headers.get(`X-Sentry-Rate-Limits`),"retry-after":n.headers.get(`Retry-After`)}}}catch(e){throw Yb(`fetch`),e}finally{n-=a,r--}}
499return $l(e,i,ql(e.bufferSize||Ux))}var K=typeof __SENTRY_DEBUG__>`u`||__SENTRY_DEBUG__;function Gx(){let e=N();if(!e){K&&k.warn(`No Sentry client available, profiling is not started`);return}if(!e.getIntegrationByName(`BrowserProfiling`)){K&&k.warn(`BrowserProfiling integration is not available`);return}e.emit(`startUIProfiler`)}function Kx(){let e=N();if(!e){K&&k.warn(`No Sentry client available, profiling is not started`);return}if(!e.getIntegrationByName(`BrowserProfiling`)){K&&k.warn(`ProfilingIntegration is not available`);return}e.emit(`stopUIProfiler`)}var qx={startProfiler:Gx,stopProfiler:Kx},Jx=10,Yx=20,Xx=30,Zx=40,Qx=50;function $x(e,t,n,r){let i={filename:e,function:t===`<anonymous>`?`?`:t,in_app:!0};return n!==void 0&&(i.lineno=n),r!==void 0&&(i.colno=r),i}var eS=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,tS=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,nS=/\((\S*)(?::(\d+))(?::(\d+))\)/,rS=/at (.+?) ?\(data:(.+?),/,iS=[Xx,e=>{let t=e.match(rS);if(t)return{filename:`<data:${t[2]}>`,function:t[1]};let n=eS.exec(e);if(n){let[,e,t,r]=n;return $x(e,`?`,+t,+r)}let r=tS.exec(e);if(r){if(r[2]?.indexOf(`eval`)===0){let e=nS.exec(r[2]);e&&(r[2]=e[1],r[3]=e[2],r[4]=e[3])}let[e,t]=gS(r[1]||`?`,r[2]);return $x(t,e,r[3]?+r[3]:void 0,r[4]?+r[4]:void 0)}}],aS=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,oS=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,sS=[Qx,e=>{let t=aS.exec(e);if(t){if(t[3]&&t[3].indexOf(` > eval`)>-1){let e=oS.exec(t[3]);e&&(t[1]=t[1]||`eval`,t[3]=e[1],t[4]=e[2],t[5]=``)}let e=t[3],n=t[1]||`?`;return[n,e]=gS(n,e),$x(e,n,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}}],cS=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i,lS=[Zx,e=>{let t=cS.exec(e);return t?$x(t[2],t[1]||`?`,+t[3],t[4]?+t[4]:void 0):void 0}],uS=/ line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i,dS=[Jx,e=>{let t=uS.exec(e);return t?$x(t[2],t[3]||`?`,+t[1]):void 0}],fS=/ line (\d+), column (\d+)\s*(?:in (?:<anonymous function: ([^>]+)>|([^)]+))\(.*\))? in (.*):\s*$/i,pS=[Yx,e=>{let t=fS.exec(e);return t?$x(t[5],t[3]||t[4]||`?`,+t[1],+t[2]):void 0}],mS=[iS,sS],hS=me(...mS),gS=(e,t)=>{let n=e.indexOf(`safari-extension`)!==-1,r=e.indexOf(`safari-web-extension`)!==-1;return n||r?[e.indexOf(`@`)===-1?`?`:e.split(`@`)[0],n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]};function _S(e,{metadata:t,tunnel:n,dsn:r}){return Xa({event_id:e.event_id,sent_at:new Date().toISOString(),...t?.sdk&&{sdk:{name:t.sdk.name,version:t.sdk.version}},...!!n&&!!r&&{dsn:si(r)}},[vS(e)])}function vS(e){return[{type:`user_report`},e]}var yS=1024,bS=`Breadcrumbs`,xS=I(((e={})=>{let t={dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:bS,setup(e){t.dom&&Ib(CS(e,t.dom)),t.xhr&&Qb(wS(e)),t.fetch&&Vp(TS(e)),t.history&&Wb(ES(e)),t.sentry&&e.on(`beforeSendEvent`,SS(e))}}}));function SS(e){return function(t){N()===e&&Td({category:`sentry.${t.type===`transaction`?`transaction`:`event`}`,event_id:t.event_id,level:t.level,message:At(t)},{event:t})}}function CS(e,t){return function(n){if(N()!==e)return;let r,i,a=typeof t==`object`?t.serializeAttribute:void 0,o=typeof t==`object`&&typeof t.maxStringLength==`number`?t.maxStringLength:void 0;o&&o>yS&&(K&&k.warn(`\`dom.maxStringLength\` cannot exceed ${yS}, but a value of ${o} was configured. Sentry will use ${yS} instead.`),o=yS),typeof a==`string`&&(a=[a]);try{let e=n.event,t=DS(e)?e.target:e;r=xy(t,{keyAttrs:a,maxStringLength:o}),i=ob(t)}catch{r=`<unknown>`}if(r.length===0)return;let s={category:`ui.${n.name}`,message:r};i&&(s.data={"ui.component_name":i}),Td(s,{event:n.event,name:n.name,global:n.global})}}function wS(e){return function(t){if(N()!==e)return;let{startTimestamp:n,endTimestamp:r}=t,i=t.xhr[Zb];if(!n||!r||!i)return;let{method:a,url:o,status_code:s,body:c}=i,l={method:a,url:o,status_code:s},u={xhr:t.xhr,input:c,startTimestamp:n,endTimestamp:r},d={category:`xhr`,data:l,type:`http`,level:Xp(s)};e.emit(`beforeOutgoingRequestBreadcrumb`,d,u),Td(d,u)}}function TS(e){return function(t){if(N()!==e)return;let{startTimestamp:n,endTimestamp:r}=t;
499if(r&&!(t.fetchData.url.match(/sentry_key/)&&t.fetchData.method===`POST`)){if(t.error){let i={data:t.error,input:t.args,startTimestamp:n,endTimestamp:r},a={category:`fetch`,data:t.fetchData,level:`error`,type:`http`};e.emit(`beforeOutgoingRequestBreadcrumb`,a,i),Td(a,i)}else{let i=t.response,a={...t.fetchData,status_code:i?.status},o={input:t.args,response:i,startTimestamp:n,endTimestamp:r},s={category:`fetch`,data:a,type:`http`,level:Xp(a.status_code)};e.emit(`beforeOutgoingRequestBreadcrumb`,s,o),Td(s,o)}}}}function ES(e){return function(t){if(N()!==e)return;let n=t.from,r=t.to,i=od(G.location.href),a=n?od(n):void 0,o=od(r);a?.path||(a=i),i.protocol===o.protocol&&i.host===o.host&&(r=o.relative),i.protocol===a.protocol&&i.host===a.host&&(n=a.relative),Td({category:`navigation`,data:{from:n,to:r}})}}function DS(e){return!!e&&!!e.target}var OS=`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`.split(`,`),kS=`BrowserApiErrors`,AS=I(((e={})=>{let t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,unregisterOriginalCallbacks:!1,...e};return{name:kS,setupOnce(){t.setTimeout&&Je(G,`setTimeout`,jS),t.setInterval&&Je(G,`setInterval`,jS),t.requestAnimationFrame&&Je(G,`requestAnimationFrame`,MS),t.XMLHttpRequest&&`XMLHttpRequest`in G&&Je(XMLHttpRequest.prototype,`send`,NS);let e=t.eventTarget;e&&(Array.isArray(e)?e:OS).forEach(e=>PS(e,t))}}}));function jS(e){return function(...t){let n=t[0];return t[0]=mx(n,{mechanism:{handled:!1,type:`auto.browser.browserapierrors.${A(e)}`}}),e.apply(this,t)}}function MS(e){return function(t){return e.apply(this,[mx(t,{mechanism:{data:{handler:A(e)},handled:!1,type:`auto.browser.browserapierrors.requestAnimationFrame`}})])}}function NS(e){return function(...t){let n=this;return[`onload`,`onerror`,`onprogress`,`onreadystatechange`].forEach(e=>{e in n&&typeof n[e]==`function`&&Je(n,e,function(t){let n={mechanism:{data:{handler:A(t)},handled:!1,type:`auto.browser.browserapierrors.xhr.${e}`}},r=Ze(t);return r&&(n.mechanism.data.handler=A(r)),mx(t,n)})}),e.apply(this,t)}}function PS(e,t){let n=G[e]?.prototype;n?.hasOwnProperty?.(`addEventListener`)&&(Je(n,`addEventListener`,function(n){return function(r,i,a){try{FS(i)&&(i.handleEvent=mx(i.handleEvent,{mechanism:{data:{handler:A(i),target:e},handled:!1,type:`auto.browser.browserapierrors.handleEvent`}}))}catch{}return t.unregisterOriginalCallbacks&&IS(this,r,i),n.apply(this,[r,mx(i,{mechanism:{data:{handler:A(i),target:e},handled:!1,type:`auto.browser.browserapierrors.addEventListener`}}),a])}}),Je(n,`removeEventListener`,function(e){return function(t,n,r){try{if(Object.prototype.hasOwnProperty.call(n,`__sentry_wrapped__`)){let i=n.__sentry_wrapped__;i&&e.call(this,t,i,r)}}catch{}return e.call(this,t,n,r)}}))}function FS(e){return typeof e.handleEvent==`function`}function IS(e,t,n){e&&typeof e==`object`&&`removeEventListener`in e&&typeof e.removeEventListener==`function`&&e.removeEventListener(t,n)}var LS=I((e={})=>{let t=e.lifecycle??`page`;return{name:`BrowserSession`,setupOnce(){if(G.document===void 0){K&&k.warn("Using the `browserSessionIntegration` in non-browser environments is not supported.");return}cl({ignoreDuration:!0});let e=!1;Py(()=>{e||=(dl(),!0)});let n=M(),r=n.getUser();n.addScopeListener(t=>{let n=t.getUser();(r?.id!==n?.id||r?.ip_address!==n?.ip_address)&&(r=n,e&&dl())}),t===`route`&&Wb(({from:t,to:n})=>{t!==n&&(cl({ignoreDuration:!0}),dl(),e=!0)})}}}),RS=`CultureContext`,zS=I((()=>({name:RS,preprocessEvent(e){let t=BS();t&&(e.contexts={...e.contexts,culture:{...t,...e.contexts?.culture}})},processSegmentSpan(e){let t=BS();t&&Wa(e,{"culture.locale":t.locale,"culture.timezone":t.timezone,"culture.calendar":t.calendar})}})));function BS(){try{let e=G.Intl;if(!e)return;let t=e.DateTimeFormat().resolvedOptions();return{locale:t.locale,timezone:t.timeZone,calendar:t.calendar}}catch{return}}var VS=`GlobalHandlers`,HS=I(((e={})=>{let t={onerror:!0,onunhandledrejection:!0,...e};return{name:VS,setupOnce(){Error.stackTraceLimit=50},setup(e){t.onerror&&(US(e),JS(`onerror`)),t.onunhandledrejection&&(WS(e),JS(`onunhandledrejection`))}}}));function US(e){De(t=>{let{stackParser:n,attachStacktrace:r}=YS();if(N()!==e||ux(t))return;let{msg:i,url:a,line:o,column:s,error:c}=t,l=qS(Ix(n,c||i,void 0,r,!1),a,o,s);l.level=`error`,Kc(l,{originalException:c,mechanism:{handled:!1,type:`auto.browser.global_handlers.onerror`}})})}function WS(e){Ae(t=>{let{stackParser:n,attachStacktrace:r}=YS();if(N()!==e||ux())return;let i=GS(t),a=Be(i)?KS(i):Ix(n,i,void 0,r,!0);a.level=`error`,Kc(a,{originalException:i,mechanism:{handled:!1,type:`auto.browser.global_handlers.onunhandledrejection`}})})}function GS(e){if(Be(e))return e;try{if(`reason`in e)return e.reason;if(`detail`in e&&`reason`in e.detail)return e.detail.reason}catch{}return e}function KS(e){return{exception:{values:[{type:`UnhandledRejection`,value:`Non-Error promise rejection captured with value: ${String(e)}`}]}}}function qS(e,t,n,r){let i=e.exception=e.exception||{},a=i.values=i.values||[],o=a[0]=a[0]||{},s=o.stacktrace=o.stacktrace||{},c=s.frames=s.frames||[];
499return c.length===0&&c.push({colno:r,lineno:n,filename:XS(t)??fb(),function:`?`,in_app:!0}),e}function JS(e){K&&k.log(`Global Handler attached: ${e}`)}function YS(){return N()?.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}function XS(e){if(Re(e)&&e.length!==0)return e.startsWith(`data:`)?`<${cd(e,!1)}>`:e}var ZS=I(()=>({name:`HttpContext`,preprocessEvent(e,t,n){if(!G.navigator&&!G.location&&!G.document)return;let{url:r,headers:i}=hx(),a=n.getDataCollectionOptions().httpHeaders.request,o=Object.entries(e.request?.headers??{}).filter(([e])=>!(e in i)),s={...Uu(i,a),...Object.fromEntries(o)};e.request={url:r,...e.request,...Object.keys(s).length>0?{headers:s}:{headers:void 0}}},processSpan(e,t){if(!G.navigator&&!G.location&&!G.document)return;let n=hx(),r=Uu(n.headers,t.getDataCollectionOptions().httpHeaders.request),i=r.Referer,{hostname:a,protocol:o}=G.location||{};Wa(e,{[br]:r[`User-Agent`],"sentry.is_localhost":o===`file:`||a===`localhost`||a===`127.0.0.1`||a===`[::1]`||!!a?.endsWith(`.localhost`),...e.is_segment&&{"url.full":e.attributes?.[`sentry.op`]===`http.client`?void 0:Zu(n.url),"http.request.header.referer":i?[i]:void 0}})}})),QS=`cause`,$S=5,eC=`LinkedErrors`,tC=I(((e={})=>{let t=e.limit||$S,n=e.key||QS;return{name:eC,preprocessEvent(e,r,i){Vd(wx,i.getOptions().stackParser,n,t,e,r)}}})),nC=/^HTML(\w*)Element$/;function rC(e){if(typeof window<`u`&&e===window)return`[Window]`;if(typeof document<`u`&&e===document)return`[Document]`;if(ox(e)){let t=iC(e);if(nC.test(t))return`[HTMLElement: ${xy(e)}]`}}function iC(e){let t=Object.getPrototypeOf(e);return t?.constructor?t.constructor.name:`null prototype`}function aC(){return oC()?(K&&re(()=>{console.error(`[Sentry] You cannot use Sentry.init() in a browser extension, see: https://docs.sentry.io/platforms/javascript/best-practices/browser-extensions/`)}),!0):!1}function oC(){if(G.window===void 0)return!1;let e=G;if(e.nw||!(e.chrome||e.browser)?.runtime?.id)return!1;let t=fb();return!(G===G.top&&/^(?:chrome-extension|moz-extension|ms-browser-extension|safari-web-extension):\/\//.test(t))}function sC(e){return[jd(),Od(),Dp(),AS(),xS(),hp(),HS(),tC(),ff(),ZS(),zS(),LS()]}function cC(e={}){let t=!e.skipBrowserExtensionCheck&&aC(),n=e.defaultIntegrations==null?sC():e.defaultIntegrations,r=ca({integrations:e.integrations,defaultIntegrations:n}),i={...e,enabled:!t&&e.enabled,stackParser:he(e.stackParser||hS),integrations:r,transport:e.transport||Wx};return dt(rC),Ou(Vx,i)}function lC(){}function uC(e){e()}function dC(e={}){let t=G.document,n=t?.head||t?.body;if(!n){K&&k.error(`[showReportDialog] Global document not defined`);return}let r=j(),i=N()?.getDsn();if(!i){K&&k.error(`[showReportDialog] DSN not configured`);return}let a={...e,user:{...r.getUser(),...e.user},eventId:e.eventId||nl()},o=G.document.createElement(`script`);o.async=!0,o.crossOrigin=`anonymous`,o.src=gl(i,a);let{onLoad:s,onClose:c}=a;if(s&&(o.onload=s),c){let e=t=>{if(t.data===`__sentry_reportdialog_closed__`)try{c()}finally{G.removeEventListener(`message`,e)}};G.addEventListener(`message`,e)}n.appendChild(o)}var fC=C;function pC(){return`ReportingObserver`in fC}var mC=`ReportingObserver`,hC=new WeakMap,gC=I(((e={})=>{let t=e.types||[`crash`,`deprecation`,`intervention`];function n(e){if(hC.has(N()))for(let t of e)En(e=>{e.setExtra(`url`,t.url);let n=`ReportingObserver [${t.type}]`,r=`No details available`;if(t.body){let n={};for(let e in t.body)n[e]=t.body[e];if(e.setExtra(`body`,n),t.type===`crash`){let e=t.body;r=[e.crashId||``,e.reason||``].join(` `).trim()||r}else r=t.body.message||r}Gc(`${n}: ${r}`)})}return{name:mC,setupOnce(){pC()&&new fC.ReportingObserver(n,{buffered:!0,types:t}).observe()},setup(e){hC.set(e,!0)}}})),_C=`HttpClient`,vC=I(((e={})=>{let t={failedRequestStatusCodes:[[500,599]],failedRequestTargets:[/.*/],...e};return{name:_C,setup(e){EC(e,t),DC(e,t)}}}));function yC(e,t,n,r,i){if(OC(e,n.status,n.url)){let e=AC(t,r),a,o,s,c,l=jC();if(l.requestHeaders!==!1&&(a=Uu(SC(e.headers),l.requestHeaders)),l.responseHeaders!==!1&&(o=Uu(SC(n.headers),l.responseHeaders)),l.cookies!==!1){let t=e.headers.get(`Cookie`)||void 0;t&&(s=qu(t,l.cookies,`cookie`));let r=n.headers.get(`Set-Cookie`)||void 0;r&&(c=qu(r,l.cookies,`set-cookie`))}Kc(kC({url:e.url,method:e.method,status:n.status,requestHeaders:a,responseHeaders:o,requestCookies:s,responseCookies:c,error:i,type:`fetch`}))}}function bC(e,t,n,r,i){if(OC(e,t.status,t.responseURL)){let e,a,o,s=jC();if(s.cookies!==!1)try{let e=t.getResponseHeader(`Set-Cookie`)||t.getResponseHeader(`set-cookie`)||void 0;e&&(a=qu(e,s.cookies,`set-cookie`))}catch{}if(s.responseHeaders!==!1)try{o=Uu(CC(t),s.responseHeaders)}catch{}s.requestHeaders!==!1&&(e=Uu(r,s.requestHeaders)),Kc(kC({url:t.responseURL,method:n,status:t.status,requestHeaders:e,responseHeaders:o,responseCookies:a,error:i,type:`xhr`}))}}
499function xC(e){if(e){let t=e[`Content-Length`]||e[`content-length`];if(t)return parseInt(t,10)}}function SC(e){let t={};return e.forEach((e,n)=>{t[n]=e}),t}function CC(e){let t=e.getAllResponseHeaders();return t?t.split(`\r
500`).reduce((e,t)=>{let[n,r]=t.split(`: `);return n&&r&&(e[n]=r),e},{}):{}}function wC(e,t){return e.some(e=>typeof e==`string`?t.includes(e):e.test(t))}function TC(e,t){return e.some(e=>typeof e==`number`?e===t:t>=e[0]&&t<=e[1])}function EC(e,t){Vp(n=>{if(N()!==e)return;let{response:r,args:i,error:a,virtualError:o}=n,[s,c]=i;r&&yC(t,s,r,c,a||o)})}function DC(e,t){`XMLHttpRequest`in C&&Qb(n=>{if(N()!==e)return;let{error:r,virtualError:i}=n,a=n.xhr,o=a[Zb];if(!o)return;let{method:s,request_headers:c}=o;try{bC(t,a,s,c,r||i)}catch(e){K&&k.warn(`Error while extracting response event form XHR response`,e)}})}function OC(e,t,n){return TC(e.failedRequestStatusCodes,t)&&wC(e.failedRequestTargets,n)&&!ld(n,N())}function kC(e){let t=N(),n=t&&e.error&&e.error instanceof Error?e.error.stack:void 0,r=n&&t?t.getOptions().stackParser(n,0,1):void 0,i=`HTTP Client Error with status code: ${e.status}`,a={message:i,exception:{values:[{type:`Error`,value:i,stacktrace:r?{frames:r}:void 0}]},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:xC(e.responseHeaders)}}};return Mt(a,{type:`auto.http.client.${e.type}`,handled:!1}),a}function AC(e,t){return!t&&e instanceof Request||e instanceof Request&&e.bodyUsed?e:new Request(e,t)}function jC(){let e=N();if(!e)return{cookies:!1,requestHeaders:!1,responseHeaders:!1};let{cookies:t,httpHeaders:n}=e.getDataCollectionOptions();return{cookies:t,requestHeaders:n.request,responseHeaders:n.response}}var MC=C,NC=5,PC=`ContextLines`,FC=I(((e={})=>({name:PC,processEvent(t,n,r){return IC(t,e.frameContextLines??r?.getDataCollectionOptions().frameContextLines??NC)}})));function IC(e,t){let n=MC.document,r=MC.location&&sd(MC.location.href);if(!n||!r)return e;let i=e.exception?.values;if(!i?.length)return e;let a=n.documentElement.innerHTML;if(!a)return e;let o=[`<!DOCTYPE html>`,`<html>`,...a.split(`
501`),`</html>`];return i.forEach(e=>{let n=e.stacktrace;n?.frames&&(n.frames=n.frames.map(e=>LC(e,o,r,t)))}),e}function LC(e,t,n,r){return e.filename!==n||!e.lineno||!t.length||Ft(t,e,r),e}var RC=`GraphQLClient`,zC=(e=>({name:RC,setup(t){BC(t,e),VC(t,e)}}));function BC(e,t){e.on(`beforeOutgoingRequestSpan`,(n,r)=>{let i=P(n).attributes;if(i[`sentry.op`]!==`http.client`)return;let a=i[hr],o=i[`http.request.method`]||i[`http.method`];if(!Re(a)||!Re(o))return;let{endpoints:s}=t,c=wt(a,s),l=WC(r);if(c&&l){let t=JC(l);if(t){L(e)||n.updateName(`${o} ${a} (${UC(t)})`);let{operationName:r,operationType:i}=HC(t);n.setAttribute(Vn,r),n.setAttribute(Hn,i),KC(t)&&e.getDataCollectionOptions().graphQL.document===!0&&n.setAttribute(Bn,t.query),qC(t)&&(n.setAttribute(`graphql.persisted_query.hash.sha256`,t.extensions.persistedQuery.sha256Hash),n.setAttribute(`graphql.persisted_query.version`,t.extensions.persistedQuery.version))}}})}function VC(e,t){e.on(`beforeOutgoingRequestBreadcrumb`,(n,r)=>{let{category:i,type:a,data:o}=n;if(a===`http`&&(i===`fetch`||i===`xhr`)){let n=o?.url,{endpoints:i}=t,a=wt(n,i),s=WC(r);if(a&&o&&s){let t=JC(s);!o.graphql&&t&&(o[`graphql.operation`]=UC(t),KC(t)&&e.getDataCollectionOptions().graphQL.document===!0&&(o[Bn]=t.query),qC(t)&&(o[`graphql.persisted_query.hash.sha256`]=t.extensions.persistedQuery.sha256Hash,o[`graphql.persisted_query.version`]=t.extensions.persistedQuery.version))}}})}function HC(e){if(qC(e))return{operationName:e.operationName,operationType:void 0};if(KC(e)){let{query:t,operationName:n}=e,{operationName:r=n,operationType:i}=GC(t);return{operationName:r,operationType:i}}return{operationName:void 0,operationType:void 0}}function UC(e){if(qC(e))return`persisted ${e.operationName}`;if(KC(e)){let{operationName:t,operationType:n}=HC(e);return t?`${n} ${t}`:`${n}`}return`unknown`}function WC(e){let t=`xhr`in e,n;if(t){let t=e.xhr[Zb];n=t&&rx(t.body)[0]}else n=rx(ix(e.input))[0];return n}function GC(e){let t=/^(?:\s*)(query|mutation|subscription)(?:\s*)(\w+)(?:\s*)[{(]/,n=/^(?:\s*)(query|mutation|subscription)(?:\s*)[{(]/,r=e.match(t);if(r)return{operationType:r[1],operationName:r[2]};let i=e.match(n);return i?{operationType:i[1],operationName:void 0}:{operationType:void 0,operationName:void 0}}function KC(e){return He(e)&&typeof e.query==`string`}
501function qC(e){return He(e)&&typeof e.operationName==`string`&&He(e.extensions)&&He(e.extensions.persistedQuery)&&typeof e.extensions.persistedQuery.sha256Hash==`string`&&typeof e.extensions.persistedQuery.version==`number`}function JC(e){try{let t=JSON.parse(e);return KC(t)||qC(t)?t:void 0}catch{return}}var YC=I(zC),XC=I((e={})=>{let t=[`script`];function n(r,i,a=0){if(!r)return;let o=`shadowRoot`in r&&r.shadowRoot?r.shadowRoot.children:r.children;for(let r of o){if(!(r instanceof HTMLElement))continue;let o=ob(r,1)||void 0,s=r.tagName.toLowerCase();if(t.includes(s))continue;let c=e.onElement?.({element:r,componentName:o,tagName:s,depth:a})||{};if(c===`skip`)continue;if(c===`children`){n(r,i,a+1);continue}let{x:l,y:u,width:d,height:f}=r.getBoundingClientRect(),p={identifier:r.id||void 0,type:o||s,visible:!0,alpha:1,height:f,width:d,x:l,y:u,...c};p.children=[],n(r,p.children,a+1),i.push(p)}}return{name:`ViewHierarchy`,processEvent:(t,r)=>{if(t.type!==void 0||e.shouldAttach?.(t,r)===!1)return t;let i={rendering_system:`DOM`,positioning:`absolute`,windows:[]};n(e.rootElement?.()||G.document.body,i.windows);let a={filename:`view-hierarchy.json`,attachmentType:`event.view_hierarchy`,contentType:`application/json`,data:JSON.stringify(i)};return r.attachments=r.attachments||[],r.attachments.push(a),t}}}),q=C,ZC=`sentryReplaySession`,QC=`replay_event`,$C=`Unable to send Replay`,ew=3e5,tw=9e5,nw=5e3,rw=5500,iw=6e4,aw=5e3,ow=3,sw=15e4,cw=5e3,lw=3e3,uw=300,dw=2e7,fw=4999,pw=5e4,mw=36e5,hw=`sentry.segment.name.source`,gw=Object.defineProperty,_w=(e,t,n)=>t in e?gw(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,vw=(e,t,n)=>_w(e,typeof t==`symbol`?t:t+``,n),yw=(e=>(e[e.Document=0]=`Document`,e[e.DocumentType=1]=`DocumentType`,e[e.Element=2]=`Element`,e[e.Text=3]=`Text`,e[e.CDATA=4]=`CDATA`,e[e.Comment=5]=`Comment`,e))(yw||{});function bw(e){return e.nodeType===e.ELEMENT_NODE}function xw(e){return e?.host?.shadowRoot===e}function Sw(e){return Object.prototype.toString.call(e)===`[object ShadowRoot]`}function Cw(e){return e.includes(` background-clip: text;`)&&!e.includes(` -webkit-background-clip: text;`)&&(e=e.replace(/\sbackground-clip:\s*text;/g,` -webkit-background-clip: text; background-clip: text;`)),e}function ww(e){let{cssText:t}=e;if(t.split(`"`).length<3)return t;let 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 Tw(e){try{let t=e.rules||e.cssRules;return t?Cw(Array.from(t,Dw).join(``)):null}catch{return null}}function Ew(e){let t=``;for(let n=0;n<e.style.length;n++){let r=e.style,i=r[n],a=r.getPropertyPriority(i);t+=`${i}:${r.getPropertyValue(i)}${a?` !important`:``};`}return`${e.selectorText} { ${t} }`}function Dw(e){let t;if(kw(e))try{t=Tw(e.styleSheet)||ww(e)}catch{}else if(Aw(e)){let t=e.cssText,n=e.selectorText.includes(`:`),r=typeof e.style.all==`string`&&e.style.all;if(r&&(t=Ew(e)),n&&(t=Ow(t)),n||r)return t}return t||e.cssText}function Ow(e){return e.replace(/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm,`$1\\$2`)}function kw(e){return`styleSheet`in e}function Aw(e){return`selectorText`in e}var jw=class{constructor(){vw(this,`idNodeMap`,new Map),vw(this,`nodeMetaMap`,new WeakMap)}getId(e){return e?this.getMeta(e)?.id??-1:-1}getNode(e){return this.idNodeMap.get(e)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(e){return this.nodeMetaMap.get(e)||null}removeNodeFromMap(e){let t=this.getId(e);this.idNodeMap.delete(t),e.childNodes&&e.childNodes.forEach(e=>this.removeNodeFromMap(e))}has(e){return this.idNodeMap.has(e)}hasNode(e){return this.nodeMetaMap.has(e)}add(e,t){let n=t.id;this.idNodeMap.set(n,e),this.nodeMetaMap.set(e,t)}replace(e,t){let n=this.getNode(e);if(n){let e=this.nodeMetaMap.get(n);e&&this.nodeMetaMap.set(t,e)}this.idNodeMap.set(e,t)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}};function Mw(){return new jw}function Nw({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 Pw({isMasked:e,element:t,value:n,maskInputFn:r}){let i=n||``;return e?(r&&(i=r(i,t)),`*`.repeat(i.length)):i}function Fw(e){return e.toLowerCase()}function Iw(e){return e.toUpperCase()}var Lw=`__rrweb_original__`;function Rw(e){let t=e.getContext(`2d`);if(!t)return!0;for(let n=0;n<e.width;n+=50)for(let r=0;r<e.height;r+=50){let i=t.getImageData,a=Lw in i?i[Lw]:i;
501if(new Uint32Array(a.call(t,n,r,Math.min(50,e.width-n),Math.min(50,e.height-r)).data.buffer).some(e=>e!==0))return!1}return!0}function zw(e){let t=e.type;return e.hasAttribute(`data-rr-is-password`)?`password`:t?Fw(t):null}function Bw(e,t,n){return t===`INPUT`&&(n===`radio`||n===`checkbox`)?e.getAttribute(`value`)||``:e.value}function Vw(e,t){let n;try{n=new URL(e,t??window.location.href)}catch{return null}return n.pathname.match(/\.([0-9a-z]+)(?:$)/i)?.[1]??null}var Hw={};function Uw(e){let t=Hw[e];if(t)return t;let n=window.document,r=window[e];if(n&&typeof n.createElement==`function`)try{let t=n.createElement(`iframe`);t.hidden=!0,n.head.appendChild(t);let i=t.contentWindow;i&&i[e]&&(r=i[e]),n.head.removeChild(t)}catch{}return Hw[e]=r.bind(window)}function Ww(...e){return Uw(`setTimeout`)(...e)}function Gw(...e){return Uw(`clearTimeout`)(...e)}function Kw(e){try{return e.contentDocument}catch{}}function qw(e){try{return e.contentWindow}catch{}}var Jw=1,Yw=RegExp(`[^a-z0-9-_:]`),Xw=-2;function Zw(){return Jw++}function Qw(e){if(e instanceof HTMLFormElement)return`form`;let t=Fw(e.tagName);return Yw.test(t)?`div`:t}function $w(e){let t=``;return t=e.indexOf(`//`)>-1?e.split(`/`).slice(0,3).join(`/`):e.split(`/`)[0],t=t.split(`?`)[0],t}var eT,tT,nT=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,rT=/^(?:[a-z+]+:)?\/\//i,iT=/^www\..*/i,aT=/^(data:)([^,]*),(.*)/i;function oT(e,t){if(!e||t.size===0)return e;try{let n=e.split(`;`),r=[];for(let e of n){if(e=e.trim(),!e)continue;let n=e.indexOf(`:`);if(n===-1){r.push(e);continue}let i=e.slice(0,n).trim();t.has(i)||r.push(e)}return r.join(`; `)+(r.length>0&&e.endsWith(`;`)?`;`:``)}catch(t){return console.warn(`Error filtering CSS properties:`,t),e}}function sT(e,t){return(e||``).replace(nT,(e,n,r,i,a,o)=>{let s=r||a||o,c=n||i||``;if(!s)return e;if(rT.test(s)||iT.test(s)||aT.test(s))return`url(${c}${s}${c})`;if(s[0]===`/`)return`url(${c}${$w(t)+s}${c})`;let l=t.split(`/`),u=s.split(`/`);l.pop();for(let e of u)if(e===`.`)continue;else e===`..`?l.pop():l.push(e);return`url(${c}${l.join(`/`)}${c})`})}var cT=/^[^ \t\n\r\u000c]+/,lT=/^[, \t\n\r\u000c]+/;function uT(e,t){if(t.trim()===``)return t;let n=0;function r(e){let r,i=e.exec(t.substring(n));return i?(r=i[0],n+=r.length,r):``}let i=[];for(;r(lT),!(n>=t.length);){let a=r(cT);if(a.slice(-1)===`,`)a=fT(e,a.substring(0,a.length-1)),i.push(a);else{let r=``;a=fT(e,a);let o=!1;for(;;){let e=t.charAt(n);if(e===``){i.push((a+r).trim());break}if(o)e===`)`&&(o=!1);else{if(e===`,`){n+=1,i.push((a+r).trim());break}e===`(`&&(o=!0)}r+=e,n+=1}}}return i.join(`, `)}var dT=new WeakMap;function fT(e,t){return!t||t.trim()===``?t:mT(e,t)}function pT(e){return!!(e.tagName===`svg`||e.ownerSVGElement)}function mT(e,t){let n=dT.get(e);if(n||(n=e.createElement(`a`),dT.set(e,n)),!t)t=``;else if(t.startsWith(`blob:`)||t.startsWith(`data:`))return t;return n.setAttribute(`href`,t),n.href}function hT(e,t,n,r,i,a,o){if(!r)return r;if(n===`src`||n===`href`&&(t!==`use`||r[0]!==`#`)||n===`xlink:href`&&r[0]!==`#`||n===`background`&&(t===`table`||t===`td`||t===`th`))return fT(e,r);if(n===`srcset`)return uT(e,r);if(n===`style`){let t=sT(r,mT(e));return o&&o.size>0&&(t=oT(t,o)),t}return t===`object`&&n===`data`?fT(e,r):typeof a==`function`?a(n,r,i):r}function gT(e,t,n){return(e===`video`||e===`audio`)&&t===`autoplay`}function _T(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 n=e.classList.length;n--;){let r=e.classList[n];if(t.test(r))return!0}if(n)return e.matches(n)}catch{}return!1}function vT(e,t){for(let n=e.classList.length;n--;){let r=e.classList[n];if(t.test(r))return!0}return!1}function yT(e,t,n=1/0,r=0){return!e||e.nodeType!==e.ELEMENT_NODE||r>n?-1:t(e)?r:yT(e.parentNode,t,n,r+1)}function bT(e,t){return n=>{let r=n;if(r===null)return!1;try{if(e){if(typeof e==`string`){if(r.matches(`.${e}`))return!0}else if(vT(r,e))return!0}return!!(t&&r.matches(t))}catch{return!1}}}function xT(e,t,n,r,i,a){try{let o=e.nodeType===e.ELEMENT_NODE?e:e.parentElement;if(o===null)return!1;if(o.tagName===`INPUT`){let e=o.getAttribute(`autocomplete`);if([`current-password`,`new-password`,`cc-number`,`cc-exp`,`cc-exp-month`,`cc-exp-year`,`cc-csc`].includes(e))return!0}let s=-1,c=-1;if(a){if(c=yT(o,bT(r,i)),c<0)return!0;s=yT(o,bT(t,n),c>=0?c:1/0)}else{if(s=yT(o,bT(t,n)),s<0)return!1;c=yT(o,bT(r,i),s>=0?s:1/0)}return s>=0?c>=0?s<=c:!0:c>=0?!1:!!a}catch{}return!!a}function ST(e,t,n){let r=qw(e);if(!r)return;let i=!1,a;try{a=r.document.readyState}catch{return}if(a!==`complete`){let r=Ww(()=>{i||=(t(),!0)},n);e.addEventListener(`load`,()=>{Gw(r),i=!0,t()});return}let o=`about:blank`;if(r.location.href!==o||e.src===o||e.src===``)return Ww(t,0),e.addEventListener(`load`,t);e.addEventListener(`load`,t)}function CT(e,t,n){let r=!1,i;try{i=e.sheet}catch{i=null}if(i)return;let a=Ww(()=>{r||=(t(),!0)},n);e.addEventListener(`load`,()=>{Gw(a),r=!0,t()})}function wT(e,t){let{doc:n,mirror:r,blockClass:i,blockSelector:a,unblockSelector:o,maskAllText:s,maskAttributeFn:c,maskTextClass:l,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:f,inlineStylesheet:p,maskInputOptions:m={}
501,maskTextFn:h,maskInputFn:g,dataURLOptions:_={},inlineImages:v,recordCanvas:y,keepIframeSrcFn:b,newlyAddedElement:x=!1,ignoreCSSAttributes:S}=t,C=TT(n,r);switch(e.nodeType){case e.DOCUMENT_NODE:return e.compatMode===`CSS1Compat`?{type:yw.Document,childNodes:[]}:{type:yw.Document,childNodes:[],compatMode:e.compatMode};case e.DOCUMENT_TYPE_NODE:return{type:yw.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:C};case e.ELEMENT_NODE:return DT(e,{doc:n,blockClass:i,blockSelector:a,unblockSelector:o,inlineStylesheet:p,maskAttributeFn:c,maskInputOptions:m,maskInputFn:g,dataURLOptions:_,inlineImages:v,recordCanvas:y,keepIframeSrcFn:b,newlyAddedElement:x,rootId:C,maskTextClass:l,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:f,ignoreCSSAttributes:S});case e.TEXT_NODE:return ET(e,{doc:n,maskAllText:s,maskTextClass:l,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:f,maskTextFn:h,maskInputOptions:m,maskInputFn:g,rootId:C});case e.CDATA_SECTION_NODE:return{type:yw.CDATA,textContent:``,rootId:C};case e.COMMENT_NODE:return{type:yw.Comment,textContent:e.textContent||``,rootId:C};default:return!1}}function TT(e,t){if(!t.hasNode(e))return;let n=t.getId(e);return n===1?void 0:n}function ET(e,t){let{maskAllText:n,maskTextClass:r,unmaskTextClass:i,maskTextSelector:a,unmaskTextSelector:o,maskTextFn:s,maskInputOptions:c,maskInputFn:l,rootId:u}=t,d=e.parentNode&&e.parentNode.tagName,f=e.textContent,p=d===`STYLE`||void 0,m=d===`SCRIPT`||void 0,h=d===`TEXTAREA`||void 0;if(p&&f){try{e.nextSibling||e.previousSibling||e.parentNode.sheet?.cssRules&&(f=Tw(e.parentNode.sheet))}catch(t){console.warn(`Cannot get CSS styles from text's parentNode. Error: ${t}`,e)}f=sT(f,mT(t.doc))}m&&(f=`SCRIPT_PLACEHOLDER`);let g=xT(e,r,a,i,o,n);return!p&&!m&&!h&&f&&g&&(f=s?s(f,e.parentElement):f.replace(/[\S]/g,`*`)),h&&f&&(c.textarea||g)&&(f=l?l(f,e.parentNode):f.replace(/[\S]/g,`*`)),d===`OPTION`&&f&&(f=Pw({isMasked:xT(e,r,a,i,o,Nw({type:null,tagName:d,maskInputOptions:c})),element:e,value:f,maskInputFn:l})),{type:yw.Text,textContent:f||``,isStyle:p,rootId:u}}function DT(e,t){let{doc:n,blockClass:r,blockSelector:i,unblockSelector:a,inlineStylesheet:o,maskInputOptions:s={},maskAttributeFn:c,maskInputFn:l,dataURLOptions:u={},inlineImages:d,recordCanvas:f,keepIframeSrcFn:p,newlyAddedElement:m=!1,rootId:h,maskTextClass:g,unmaskTextClass:_,maskTextSelector:v,unmaskTextSelector:y,ignoreCSSAttributes:b}=t,x=_T(e,r,i,a),S=Qw(e),C={},w=e.attributes.length;for(let t=0;t<w;t++){let r=e.attributes[t];r.name&&!gT(S,r.name,r.value)&&(C[r.name]=hT(n,S,Fw(r.name),r.value,e,c,b))}if(S===`link`&&o){let t=Array.from(n.styleSheets).find(t=>t.href===e.href),r=null;t&&(r=Tw(t)),r&&(C.rel=null,C.href=null,C.crossorigin=null,C._cssText=sT(r,t.href))}if(S===`style`&&e.sheet&&!(e.innerText||e.textContent||``).trim().length){let t=Tw(e.sheet);t&&(C._cssText=sT(t,mT(n)))}if(S===`input`||S===`textarea`||S===`select`||S===`option`){let t=e,n=zw(t),r=Bw(t,Iw(S),n),i=t.checked;if(n!==`submit`&&n!==`button`&&r){let e=xT(t,g,v,_,y,Nw({type:n,tagName:Iw(S),maskInputOptions:s}));C.value=Pw({isMasked:e,element:t,value:r,maskInputFn:l})}i&&(C.checked=i)}if(S===`option`&&(e.selected&&!s.select?C.selected=!0:delete C.selected),S===`canvas`&&f){if(e.__context===`2d`)Rw(e)||(C.rr_dataURL=e.toDataURL(u.type,u.quality));else if(!(`__context`in e)){let t=e.toDataURL(u.type,u.quality),r=n.createElement(`canvas`);r.width=e.width,r.height=e.height,t!==r.toDataURL(u.type,u.quality)&&(C.rr_dataURL=t)}}if(S===`img`&&d){eT||(eT=n.createElement(`canvas`),tT=eT.getContext(`2d`));let t=e,r=t.currentSrc||t.getAttribute(`src`)||`<unknown-src>`,i=t.crossOrigin,a=()=>{t.removeEventListener(`load`,a);try{eT.width=t.naturalWidth,eT.height=t.naturalHeight,tT.drawImage(t,0,0),C.rr_dataURL=eT.toDataURL(u.type,u.quality)}catch(e){if(t.crossOrigin!==`anonymous`){t.crossOrigin=`anonymous`,t.complete&&t.naturalWidth!==0?a():t.addEventListener(`load`,a);return}console.warn(`Cannot inline img src=${r}! Error: ${e}`)}t.crossOrigin===`anonymous`&&(i?C.crossOrigin=i:t.removeAttribute(`crossorigin`))};
501t.complete&&t.naturalWidth!==0?a():t.addEventListener(`load`,a)}if((S===`audio`||S===`video`)&&(C.rr_mediaState=e.paused?`paused`:`played`,C.rr_mediaCurrentTime=e.currentTime),m||(e.scrollLeft&&(C.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(C.rr_scrollTop=e.scrollTop)),x){let{width:t,height:n}=e.getBoundingClientRect();C={class:C.class,rr_width:`${t}px`,rr_height:`${n}px`}}S===`iframe`&&!p(C.src)&&(!x&&!Kw(e)&&(C.rr_src=C.src),delete C.src);let T;try{customElements.get(S)&&(T=!0)}catch{}return{type:yw.Element,tagName:S,attributes:C,childNodes:[],isSVG:pT(e)||void 0,needBlock:x,rootId:h,isCustom:T}}function J(e){return e==null?``:e.toLowerCase()}function OT(e,t){return!!(t.comment&&e.type===yw.Comment||e.type===yw.Element&&(t.script&&(e.tagName===`script`||e.tagName===`link`&&(e.attributes.rel===`preload`||e.attributes.rel===`modulepreload`)||e.tagName===`link`&&e.attributes.rel===`prefetch`&&typeof e.attributes.href==`string`&&Vw(e.attributes.href)===`js`)||t.headFavicon&&(e.tagName===`link`&&e.attributes.rel===`shortcut icon`||e.tagName===`meta`&&(J(e.attributes.name).match(/^msapplication-tile(image|color)$/)||J(e.attributes.name)===`application-name`||J(e.attributes.rel)===`icon`||J(e.attributes.rel)===`apple-touch-icon`||J(e.attributes.rel)===`shortcut icon`))||e.tagName===`meta`&&(t.headMetaDescKeywords&&J(e.attributes.name).match(/^description|keywords$/)||t.headMetaSocial&&(J(e.attributes.property).match(/^(og|twitter|fb):/)||J(e.attributes.name).match(/^(og|twitter):/)||J(e.attributes.name)===`pinterest`)||t.headMetaRobots&&(J(e.attributes.name)===`robots`||J(e.attributes.name)===`googlebot`||J(e.attributes.name)===`bingbot`)||t.headMetaHttpEquiv&&e.attributes[`http-equiv`]!==void 0||t.headMetaAuthorship&&(J(e.attributes.name)===`author`||J(e.attributes.name)===`generator`||J(e.attributes.name)===`framework`||J(e.attributes.name)===`publisher`||J(e.attributes.name)===`progid`||J(e.attributes.property).match(/^article:/)||J(e.attributes.property).match(/^product:/))||t.headMetaVerification&&(J(e.attributes.name)===`google-site-verification`||J(e.attributes.name)===`yandex-verification`||J(e.attributes.name)===`csrf-token`||J(e.attributes.name)===`p:domain_verify`||J(e.attributes.name)===`verify-v1`||J(e.attributes.name)===`verification`||J(e.attributes.name)===`shopify-checkout-api-token`))))}function kT(e,t){let{doc:n,mirror:r,blockClass:i,blockSelector:a,unblockSelector:o,maskAllText:s,maskTextClass:c,unmaskTextClass:l,maskTextSelector:u,unmaskTextSelector:d,skipChild:f=!1,inlineStylesheet:p=!0,maskInputOptions:m={},maskAttributeFn:h,maskTextFn:g,maskInputFn:_,slimDOMOptions:v,dataURLOptions:y={},inlineImages:b=!1,recordCanvas:x=!1,onSerialize:S,onIframeLoad:C,iframeLoadTimeout:w=5e3,onBlockedImageLoad:T,onStylesheetLoad:E,stylesheetLoadTimeout:D=5e3,keepIframeSrcFn:ee=()=>!1,newlyAddedElement:te=!1,ignoreCSSAttributes:ne}=t,{preserveWhiteSpace:re=!0}=t,ie=wT(e,{doc:n,mirror:r,blockClass:i,blockSelector:a,maskAllText:s,unblockSelector:o,maskTextClass:c,unmaskTextClass:l,maskTextSelector:u,unmaskTextSelector:d,inlineStylesheet:p,maskInputOptions:m,maskAttributeFn:h,maskTextFn:g,maskInputFn:_,dataURLOptions:y,inlineImages:b,recordCanvas:x,keepIframeSrcFn:ee,newlyAddedElement:te,ignoreCSSAttributes:ne});if(!ie)return console.warn(e,`not serialized`),null;let ae;ae=r.hasNode(e)?r.getId(e):OT(ie,v)||!re&&ie.type===yw.Text&&!ie.isStyle&&!ie.textContent.trim().length?Xw:Zw();let O=Object.assign(ie,{id:ae});if(r.add(e,O),ae===Xw)return null;S&&S(e);let oe=!f;if(O.type===yw.Element){oe&&=!O.needBlock;let t=e.shadowRoot;t&&Sw(t)&&(O.isShadowHost=!0)}if((O.type===yw.Document||O.type===yw.Element)&&oe){v.headWhitespace&&O.type===yw.Element&&O.tagName===`head`&&(re=!1);let t={doc:n,mirror:r,blockClass:i,blockSelector:a,maskAllText:s,unblockSelector:o,maskTextClass:c,unmaskTextClass:l,maskTextSelector:u,unmaskTextSelector:d,skipChild:f,inlineStylesheet:p,maskInputOptions:m,maskAttributeFn:h,maskTextFn:g,maskInputFn:_,slimDOMOptions:v,dataURLOptions:y,inlineImages:b,recordCanvas:x,preserveWhiteSpace:re,onSerialize:S,onIframeLoad:C,iframeLoadTimeout:w,onBlockedImageLoad:T,onStylesheetLoad:E,stylesheetLoadTimeout:D,keepIframeSrcFn:ee,ignoreCSSAttributes:ne},te=e.childNodes?Array.from(e.childNodes):[];for(let e of te){let n=kT(e,t);n&&O.childNodes.push(n)}if(bw(e)&&e.shadowRoot)for(let n of Array.from(e.shadowRoot.childNodes)){let r=kT(n,t);r&&(Sw(e.shadowRoot)&&(r.isShadow=!0),O.childNodes.push(r))}}if(e.parentNode&&xw(e.parentNode)&&Sw(e.parentNode)&&(O.isShadow=!0),O.type===yw.Element&&O.tagName===`iframe`&&!O.needBlock&&ST(e,()=>{let t=Kw(e);if(t&&C){let n=kT(t,{doc:t,mirror:r,blockClass:i,blockSelector:a,unblockSelector:o,maskAllText:s,maskTextClass:c,unmaskTextClass:l,maskTextSelector:u,unmaskTextSelector:d,skipChild:!1,inlineStylesheet:p,maskInputOptions:m,maskAttributeFn:h,maskTextFn:g,maskInputFn:_,slimDOMOptions:v,dataURLOptions:y,inlineImages:b,recordCanvas:x,preserveWhiteSpace:re,onSerialize:S,onIframeLoad:C,iframeLoadTimeout:w,onStylesheetLoad:E,stylesheetLoadTimeout:D,keepIframeSrcFn:ee,ignoreCSSAttributes:ne});n&&C(e,n)}},w),O.type===yw.Element&&O.tagName===`img`&&!e.complete&&O.needBlock){let t=e,n=()=>
501{if(t.isConnected&&!t.complete&&T)try{let e=t.getBoundingClientRect();e.width>0&&e.height>0&&T(t,O,e)}catch{}t.removeEventListener(`load`,n)};t.isConnected&&t.addEventListener(`load`,n)}return O.type===yw.Element&&O.tagName===`link`&&typeof O.attributes.rel==`string`&&(O.attributes.rel===`stylesheet`||O.attributes.rel===`preload`&&typeof O.attributes.href==`string`&&Vw(O.attributes.href)===`css`)&&CT(e,()=>{if(E){let t=kT(e,{doc:n,mirror:r,blockClass:i,blockSelector:a,unblockSelector:o,maskAllText:s,maskTextClass:c,unmaskTextClass:l,maskTextSelector:u,unmaskTextSelector:d,skipChild:!1,inlineStylesheet:p,maskInputOptions:m,maskAttributeFn:h,maskTextFn:g,maskInputFn:_,slimDOMOptions:v,dataURLOptions:y,inlineImages:b,recordCanvas:x,preserveWhiteSpace:re,onSerialize:S,onIframeLoad:C,iframeLoadTimeout:w,onStylesheetLoad:E,stylesheetLoadTimeout:D,keepIframeSrcFn:ee,ignoreCSSAttributes:ne});t&&E(e,t)}},D),O.type===yw.Element&&delete O.needBlock,O}function AT(e,t){let{mirror:n=new jw,blockClass:r=`rr-block`,blockSelector:i=null,unblockSelector:a=null,maskAllText:o=!1,maskTextClass:s=`rr-mask`,unmaskTextClass:c=null,maskTextSelector:l=null,unmaskTextSelector:u=null,inlineStylesheet:d=!0,inlineImages:f=!1,recordCanvas:p=!1,maskAllInputs:m=!1,maskAttributeFn:h,maskTextFn:g,maskInputFn:_,slimDOM:v=!1,dataURLOptions:y,preserveWhiteSpace:b,onSerialize:x,onIframeLoad:S,iframeLoadTimeout:C,onBlockedImageLoad:w,onStylesheetLoad:T,stylesheetLoadTimeout:E,keepIframeSrcFn:D=()=>!1,ignoreCSSAttributes:ee=new Set([])}=t||{};return kT(e,{doc:e,mirror:n,blockClass:r,blockSelector:i,unblockSelector:a,maskAllText:o,maskTextClass:s,unmaskTextClass:c,maskTextSelector:l,unmaskTextSelector:u,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:h,maskTextFn:g,maskInputFn:_,slimDOMOptions:v===!0||v===`all`?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:v===`all`,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:v===!1?{}:v,dataURLOptions:y,inlineImages:f,recordCanvas:p,preserveWhiteSpace:b,onSerialize:x,onIframeLoad:S,iframeLoadTimeout:C,onBlockedImageLoad:w,onStylesheetLoad:T,stylesheetLoadTimeout:E,keepIframeSrcFn:D,newlyAddedElement:!1,ignoreCSSAttributes:ee})}function jT(e,t,n=document){let r={capture:!0,passive:!0};return n.addEventListener(e,t,r),()=>n.removeEventListener(e,t,r)}var MT=`Please stop import mirror directly. Instead of that,\r
502now you can use replayer.getMirror() to access the mirror instance of a replayer,\r
503or you can use record.mirror to access the mirror instance during recording.`,NT={map:{},getId(){return console.error(MT),-1},getNode(){return console.error(MT),null},removeNodeFromMap(){console.error(MT)},has(){return console.error(MT),!1},reset(){console.error(MT)}};typeof window<`u`&&window.Proxy&&window.Reflect&&(NT=new Proxy(NT,{get(e,t,n){return t===`map`&&console.error(MT),Reflect.get(e,t,n)}}));function PT(e,t,n={}){let r=null,i=0;return function(...a){let o=Date.now();!i&&n.leading===!1&&(i=o);let s=t-(o-i),c=this;s<=0||s>t?(r&&=(oE(r),null),i=o,e.apply(c,a)):!r&&n.trailing!==!1&&(r=aE(()=>{i=n.leading===!1?0:Date.now(),r=null,e.apply(c,a)},s))}}function FT(e,t,n,r,i=window){let a=i.Object.getOwnPropertyDescriptor(e,t);return i.Object.defineProperty(e,t,r?n:{set(e){aE(()=>{n.set.call(this,e)},0),a&&a.set&&a.set.call(this,e)}}),()=>FT(e,t,a||{},!0)}function IT(e,t,n){try{if(!(t in e))return()=>{};let r=e[t],i=n(r);return typeof i==`function`&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:r}})),e[t]=i,()=>{e[t]=r}}catch{return()=>{}}}var LT=Date.now;/[1-9][0-9]{12}/.test(Date.now().toString())||(LT=()=>new Date().getTime());function RT(e){let t=e.document;return{left:t.scrollingElement?t.scrollingElement.scrollLeft:e.pageXOffset===void 0?t?.documentElement.scrollLeft||t?.body?.parentElement?.scrollLeft||t?.body?.scrollLeft||0:e.pageXOffset,top:t.scrollingElement?t.scrollingElement.scrollTop:e.pageYOffset===void 0?t?.documentElement.scrollTop||t?.body?.parentElement?.scrollTop||t?.body?.scrollTop||0:e.pageYOffset}}function zT(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function BT(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function VT(e){if(!e)return null;
503try{return e.nodeType===e.ELEMENT_NODE?e:e.parentElement}catch{return null}}function HT(e,t,n,r,i){if(!e)return!1;let a=VT(e);if(!a)return!1;let o=bT(t,n);if(!i){let e=r&&a.matches(r);return o(a)&&!e}let s=yT(a,o),c=-1;return s<0?!1:(r&&(c=yT(a,bT(null,r))),s>-1&&c<0||s<c)}function UT(e,t){return t.getId(e)!==-1}function WT(e,t){return t.getId(e)===Xw}function GT(e,t){if(xw(e))return!1;let n=t.getId(e);return t.has(n)?e.parentNode&&e.parentNode.nodeType===e.DOCUMENT_NODE?!1:!e.parentNode||GT(e.parentNode,t):!0}function KT(e){return!!e.changedTouches}function qT(e=window){`NodeList`in e&&!e.NodeList.prototype.forEach&&(e.NodeList.prototype.forEach=Array.prototype.forEach),`DOMTokenList`in e&&!e.DOMTokenList.prototype.forEach&&(e.DOMTokenList.prototype.forEach=Array.prototype.forEach),Node.prototype.contains||(Node.prototype.contains=(...e)=>{let t=e[0];if(!(0 in e))throw TypeError(`1 argument is required`);do if(this===t)return!0;while(t&&=t.parentNode);return!1})}function JT(e,t){return!!(e.nodeName===`IFRAME`&&t.getMeta(e))}function YT(e,t){return!!(e.nodeName===`LINK`&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&e.getAttribute(`rel`)===`stylesheet`&&t.getMeta(e))}function XT(e){return!!e?.shadowRoot}var ZT=class{constructor(){this.id=1,this.styleIDMap=new WeakMap,this.idStyleMap=new Map}getId(e){return this.styleIDMap.get(e)??-1}has(e){return this.styleIDMap.has(e)}add(e,t){if(this.has(e))return this.getId(e);let n;return n=t===void 0?this.id++:t,this.styleIDMap.set(e,n),this.idStyleMap.set(n,e),n}getStyle(e){return this.idStyleMap.get(e)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}};function QT(e){let t=null;return e.getRootNode?.()?.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&e.getRootNode().host&&(t=e.getRootNode().host),t}function $T(e){let t=e,n;for(;n=QT(t);)t=n;return t}function eE(e){let t=e.ownerDocument;if(!t)return!1;let n=$T(e);return t.contains(n)}function tE(e){let t=e.ownerDocument;return t?t.contains(e)||eE(e):!1}var nE={};function rE(e){let t=nE[e];if(t)return t;let n=window.document,r=window[e];if(n&&typeof n.createElement==`function`)try{let t=n.createElement(`iframe`);t.hidden=!0,n.head.appendChild(t);let i=t.contentWindow;i&&i[e]&&(r=i[e]),n.head.removeChild(t)}catch{}return nE[e]=r.bind(window)}function iE(...e){return rE(`requestAnimationFrame`)(...e)}function aE(...e){return rE(`setTimeout`)(...e)}function oE(...e){return rE(`clearTimeout`)(...e)}var Y=(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))(Y||{}),X=(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))(X||{}),sE=(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))(sE||{}),cE=(e=>(e[e.Mouse=0]=`Mouse`,e[e.Pen=1]=`Pen`,e[e.Touch=2]=`Touch`,e))(cE||{}),lE=(e=>(e[e.Play=0]=`Play`,e[e.Pause=1]=`Pause`,e[e.Seeked=2]=`Seeked`,e[e.VolumeChange=3]=`VolumeChange`,e[e.RateChange=4]=`RateChange`,e))(lE||{}),uE;function dE(e){uE=e}function fE(){uE=void 0}for(var Z=e=>uE?((...t)=>{try{return e(...t)}catch(e){if(uE&&uE(e)===!0)return()=>{};throw e}}):e,pE=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/`,mE=typeof Uint8Array>`u`?[]:new Uint8Array(256),hE=0;hE<pE.length;hE++)mE[pE.charCodeAt(hE)]=hE;var gE=class{reset(){}freeze(){}unfreeze(){}lock(){}unlock(){}snapshot(){}addWindow(){}addShadowRoot(){}resetShadowRoots(){}};function _E(e){try{return e.contentDocument}catch{}}function vE(e){try{return e.contentWindow}catch{}}var yE=class{constructor(e){this.doc=e,this.unattachedDoc=null}parse(e){return this.parseWithConstructableStylesheet(e)||this.parseWithDetachedElement(e)}parseWithConstructableStylesheet(e){if(typeof CSSStyleSheet>`u`||typeof CSSStyleSheet.prototype.replaceSync!=`function`)return null;try{let t=new CSSStyleSheet;t.replaceSync(`x { ${e} }`);let n=t.cssRules[0];
503return!n||n.type!==CSSRule.STYLE_RULE?null:n.style}catch{return null}}parseWithDetachedElement(e){let t=this.getUnattachedDoc().createElement(`span`);return t.setAttribute(`style`,e),t.style}getUnattachedDoc(){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch{this.unattachedDoc=this.doc}return this.unattachedDoc}};function bE(e){return`__ln`in e}var xE=class{constructor(){this.length=0,this.head=null,this.tail=null}get(e){if(e>=this.length)throw Error(`Position outside of list range`);let t=this.head;for(let n=0;n<e;n++)t=t?.next||null;return t}addNode(e){let t={value:e,previous:null,next:null};if(e.__ln=t,e.previousSibling&&bE(e.previousSibling)){let n=e.previousSibling.__ln.next;t.next=n,t.previous=e.previousSibling.__ln,e.previousSibling.__ln.next=t,n&&(n.previous=t)}else if(e.nextSibling&&bE(e.nextSibling)&&e.nextSibling.__ln.previous){let n=e.nextSibling.__ln.previous;t.previous=n,t.next=e.nextSibling.__ln,e.nextSibling.__ln.previous=t,n&&(n.next=t)}else this.head&&(this.head.previous=t),t.next=this.head,this.head=t;t.next===null&&(this.tail=t),this.length++}removeNode(e){let t=e.__ln;this.head&&(t.previous?(t.previous.next=t.next,t.next?t.next.previous=t.previous:this.tail=t.previous):(this.head=t.next,this.head?this.head.previous=null:this.tail=null),e.__ln&&delete e.__ln,this.length--)}},SE=(e,t)=>`${e}@${t}`,CE=class{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=e=>{e.forEach(this.processMutation),this.emit()},this.emit=()=>{if(this.frozen||this.locked)return;let e=[],t=new Set,n=new xE,r=e=>{let t=e,n=Xw;for(;n===Xw;)t&&=t.nextSibling,n=t&&this.mirror.getId(t);return n},i=i=>{if(!i.parentNode||!tE(i))return;let a=xw(i.parentNode)?this.mirror.getId(QT(i)):this.mirror.getId(i.parentNode),o=r(i);if(a===-1||o===-1)return n.addNode(i);let s=kT(i,{doc:this.doc,mirror:this.mirror,blockClass:this.blockClass,blockSelector:this.blockSelector,maskAllText:this.maskAllText,unblockSelector:this.unblockSelector,maskTextClass:this.maskTextClass,unmaskTextClass:this.unmaskTextClass,maskTextSelector:this.maskTextSelector,unmaskTextSelector:this.unmaskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:this.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:e=>{JT(e,this.mirror)&&!HT(e,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&this.iframeManager.addIframe(e),YT(e,this.mirror)&&this.stylesheetManager.trackLinkElement(e),XT(i)&&this.shadowDomManager.addShadowRoot(i.shadowRoot,this.doc)},onIframeLoad:(e,t)=>{if(HT(e,this.blockClass,this.blockSelector,this.unblockSelector,!1))return;this.iframeManager.attachIframe(e,t);let n=vE(e);n&&this.canvasManager.addWindow(n),this.shadowDomManager.observeAttachShadow(e)},onStylesheetLoad:(e,t)=>{this.stylesheetManager.attachLinkElement(e,t)},onBlockedImageLoad:(e,t,{width:n,height:r})=>{this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:t.id,attributes:{style:{width:`${n}px`,height:`${r}px`}}}]})},ignoreCSSAttributes:this.ignoreCSSAttributes});s&&(e.push({parentId:a,nextId:o,node:s}),t.add(s.id))};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(let e of this.movedSet)(!TE(this.removes,e,this.mirror)||this.movedSet.has(e.parentNode))&&i(e);for(let e of this.addedSet)!DE(this.droppedSet,e)&&!TE(this.removes,e,this.mirror)||DE(this.movedSet,e)?i(e):this.droppedSet.add(e);let a=null;for(;n.length;){let e=null;if(a){let t=this.mirror.getId(a.value.parentNode),n=r(a.value);t!==-1&&n!==-1&&(e=a)}if(!e){let t=n.tail;for(;t;){let n=t;if(t=t.previous,n){let t=this.mirror.getId(n.value.parentNode);if(r(n.value)===-1)continue;if(t!==-1){e=n;break}{let t=n.value;if(t.parentNode&&t.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE){let r=t.parentNode.host;if(this.mirror.getId(r)!==-1){e=n;break}}}}}}if(!e){for(;n.head;)n.removeNode(n.head.value);break}a=e.previous,n.removeNode(e.value),i(e.value)}let o={texts:this.texts.map(e=>
503({id:this.mirror.getId(e.node),value:e.value})).filter(e=>!t.has(e.id)).filter(e=>this.mirror.has(e.id)),attributes:this.attributes.map(e=>{let{attributes:t}=e;if(typeof t.style==`string`){let n=JSON.stringify(e.styleDiff),r=JSON.stringify(e._unchangedStyles);n.length<t.style.length&&(n+r).split(`var(`).length===t.style.split(`var(`).length&&(t.style=e.styleDiff)}return{id:this.mirror.getId(e.node),attributes:t}}).filter(e=>!t.has(e.id)).filter(e=>this.mirror.has(e.id)),removes:this.removes,adds:e};(o.texts.length||o.attributes.length||o.removes.length||o.adds.length)&&(this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.movedMap={},this.mutationCb(o))},this.processMutation=e=>{if(!WT(e.target,this.mirror))switch(e.type){case`characterData`:{let t=e.target.textContent;!HT(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&t!==e.oldValue&&this.texts.push({value:xT(e.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,this.maskAllText)&&t?this.maskTextFn?this.maskTextFn(t,VT(e.target)):t.replace(/[\S]/g,`*`):t,node:e.target});break}case`attributes`:{let t=e.target,n=e.attributeName,r=e.target.getAttribute(n);if(n===`value`){let n=zw(t),i=t.tagName;r=Bw(t,i,n);let a=Nw({maskInputOptions:this.maskInputOptions,tagName:i,type:n});r=Pw({isMasked:xT(e.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,a),element:t,value:r,maskInputFn:this.maskInputFn})}if(HT(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||r===e.oldValue)return;let i=this.attributeMap.get(e.target);if(t.tagName===`IFRAME`&&n===`src`&&!this.keepIframeSrcFn(r)){if(!_E(t))n=`rr_src`;else return}if(i||(i={node:e.target,attributes:{},styleDiff:{},_unchangedStyles:{}}
503,this.attributes.push(i),this.attributeMap.set(e.target,i)),n===`type`&&t.tagName===`INPUT`&&(e.oldValue||``).toLowerCase()===`password`&&t.setAttribute(`data-rr-is-password`,`true`),!gT(t.tagName,n)&&(i.attributes[n]=hT(this.doc,Fw(t.tagName),Fw(n),r,t,this.maskAttributeFn),n===`style`)){let n=e.oldValue?this.styleDeclarationParser.parse(e.oldValue):null;for(let e of Array.from(t.style)){let r=t.style.getPropertyValue(e),a=t.style.getPropertyPriority(e);r!==(n?.getPropertyValue(e)||``)||a!==(n?.getPropertyPriority(e)||``)?a===``?i.styleDiff[e]=r:i.styleDiff[e]=[r,a]:i._unchangedStyles[e]=[r,a]}if(n)for(let e of Array.from(n))t.style.getPropertyValue(e)===``&&(i.styleDiff[e]=!1)}break}case`childList`:if(HT(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!0))return;e.addedNodes.forEach(t=>this.genAdds(t,e.target)),e.removedNodes.forEach(t=>{let n=this.mirror.getId(t),r=xw(e.target)?this.mirror.getId(e.target.host):this.mirror.getId(e.target);HT(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||WT(t,this.mirror)||!UT(t,this.mirror)||(this.addedSet.has(t)?(wE(this.addedSet,t),this.droppedSet.add(t)):this.addedSet.has(e.target)&&n===-1||GT(e.target,this.mirror)||(this.movedSet.has(t)&&this.movedMap[SE(n,r)]?wE(this.movedSet,t):this.removes.push({parentId:r,id:n,isShadow:xw(e.target)&&Sw(e.target)?!0:void 0})),this.mapRemoves.push(t))})}},this.genAdds=(e,t)=>{if(!this.processedNodeManager.inOtherBuffer(e,this)&&!(this.addedSet.has(e)||this.movedSet.has(e))){if(this.mirror.hasNode(e)){if(WT(e,this.mirror))return;this.movedSet.add(e);let n=null;t&&this.mirror.hasNode(t)&&(n=this.mirror.getId(t)),n&&n!==-1&&(this.movedMap[SE(this.mirror.getId(e),n)]=!0)}else this.addedSet.add(e),this.droppedSet.delete(e);HT(e,this.blockClass,this.blockSelector,this.unblockSelector,!1)||(e.childNodes&&e.childNodes.forEach(e=>this.genAdds(e)),XT(e)&&e.shadowRoot.childNodes.forEach(t=>{this.processedNodeManager.add(t,this),this.genAdds(t,e)}))}}}init(e){`mutationCb.blockClass.blockSelector.unblockSelector.maskAllText.maskTextClass.unmaskTextClass.maskTextSelector.unmaskTextSelector.inlineStylesheet.maskInputOptions.maskAttributeFn.maskTextFn.maskInputFn.keepIframeSrcFn.recordCanvas.inlineImages.slimDOMOptions.dataURLOptions.doc.mirror.iframeManager.stylesheetManager.shadowDomManager.canvasManager.processedNodeManager.ignoreCSSAttributes`.split(`.`).forEach(t=>{this[t]=e[t]}),this.styleDeclarationParser=new yE(this.doc)}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 wE(e,t){e.delete(t),t.childNodes?.forEach(t=>wE(e,t))}function TE(e,t,n){return e.length!==0&&EE(e,t,n)}function EE(e,t,n){let r=t.parentNode;for(;r;){let t=n.getId(r);if(e.some(e=>e.id===t))return!0;r=r.parentNode}return!1}function DE(e,t){return e.size!==0&&OE(e,t)}function OE(e,t){let{parentNode:n}=t;return n?e.has(n)?!0:OE(e,n):!1}var kE=[];function AE(e){try{if(`composedPath`in e){let t=e.composedPath();if(t.length)return t[0]}else if(`path`in e&&e.path.length)return e.path[0]}catch{}return e&&e.target}function jE(e,t){let n=new CE;kE.push(n),n.init(e);let r=window.MutationObserver||window.__rrMutationObserver,i=window?.Zone?.__symbol__?.(`MutationObserver`);i&&window[i]&&(r=window[i]);let a=new r(Z(t=>{e.onMutation&&e.onMutation(t)===!1||n.processMutations.bind(n)(t)}));return a.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),a}function ME({mousemoveCb:e,sampling:t,doc:n,mirror:r}){if(t.mousemove===!1)return()=>{};let i=typeof t.mousemove==`number`?t.mousemove:50,a=typeof t.mousemoveCallback==`number`?t.mousemoveCallback:500,o=[],s,c=PT(Z(t=>{let n=Date.now()-s;e(o.map(e=>(e.timeOffset-=n,e)),t),o=[],s=null}),a),l=Z(PT(Z(e=>{let t=AE(e),{clientX:n,clientY:i}=KT(e)?e.changedTouches[0]:e;s||=LT(),o.push({x:n,y:i,id:r.getId(t),timeOffset:LT()-s}),c(typeof DragEvent<`u`&&e instanceof DragEvent?X.Drag:e instanceof MouseEvent?X.MouseMove:X.TouchMove)}),i,{trailing:!1})),u=[jT(`mousemove`,l,n),jT(`touchmove`,l,n),jT(`drag`,l,n)];return Z(()=>
503{u.forEach(e=>e())})}function NE({mouseInteractionCb:e,doc:t,mirror:n,blockClass:r,blockSelector:i,unblockSelector:a,sampling:o}){if(o.mouseInteraction===!1)return()=>{};let s=o.mouseInteraction===!0||o.mouseInteraction===void 0?{}:o.mouseInteraction,c=[],l=null,u=t=>o=>{let s=AE(o);if(HT(s,r,i,a,!0))return;let c=null,u=t;if(`pointerType`in o){switch(o.pointerType){case`mouse`:c=cE.Mouse;break;case`touch`:c=cE.Touch;break;case`pen`:c=cE.Pen}c===cE.Touch?sE[t]===sE.MouseDown?u=`TouchStart`:sE[t]===sE.MouseUp&&(u=`TouchEnd`):cE.Pen}else KT(o)&&(c=cE.Touch);c===null?sE[t]===sE.Click&&(c=l,l=null):(l=c,(u.startsWith(`Touch`)&&c===cE.Touch||u.startsWith(`Mouse`)&&c===cE.Mouse)&&(c=null));let d=KT(o)?o.changedTouches[0]:o;if(!d)return;let f=n.getId(s),{clientX:p,clientY:m}=d;Z(e)({type:sE[u],id:f,x:p,y:m,...c!==null&&{pointerType:c}})};return Object.keys(sE).filter(e=>Number.isNaN(Number(e))&&!e.endsWith(`_Departed`)&&s[e]!==!1).forEach(e=>{let n=Fw(e),r=u(e);if(window.PointerEvent)switch(sE[e]){case sE.MouseDown:case sE.MouseUp:n=n.replace(`mouse`,`pointer`);break;case sE.TouchStart:case sE.TouchEnd:return}c.push(jT(n,r,t))}),Z(()=>{c.forEach(e=>e())})}function PE({scrollCb:e,doc:t,mirror:n,blockClass:r,blockSelector:i,unblockSelector:a,sampling:o}){return jT(`scroll`,Z(PT(Z(o=>{let s=AE(o);if(!s||HT(s,r,i,a,!0))return;let c=n.getId(s);if(s===t&&t.defaultView){let n=RT(t.defaultView);e({id:c,x:n.left,y:n.top})}else e({id:c,x:s.scrollLeft,y:s.scrollTop})}),o.scroll||100)),t)}function FE({viewportResizeCb:e},{win:t}){let n=-1,r=-1;return jT(`resize`,Z(PT(Z(()=>{let t=zT(),i=BT();(n!==t||r!==i)&&(e({width:Number(i),height:Number(t)}),n=t,r=i)}),200)),t)}var IE=[`INPUT`,`TEXTAREA`,`SELECT`],LE=new WeakMap;function RE({inputCb:e,doc:t,mirror:n,blockClass:r,blockSelector:i,unblockSelector:a,ignoreClass:o,ignoreSelector:s,maskInputOptions:c,maskInputFn:l,sampling:u,userTriggeredOnInput:d,maskTextClass:f,unmaskTextClass:p,maskTextSelector:m,unmaskTextSelector:h}){function g(e){let n=AE(e),u=e.isTrusted,g=n&&Iw(n.tagName);if(g===`OPTION`&&(n=n.parentElement),!n||!g||IE.indexOf(g)<0||HT(n,r,i,a,!0))return;let v=n;if(v.classList.contains(o)||s&&v.matches(s))return;let y=zw(n),b=Bw(v,g,y),x=!1,S=Nw({maskInputOptions:c,tagName:g,type:y}),C=xT(n,f,m,p,h,S);(y===`radio`||y===`checkbox`)&&(x=n.checked),b=Pw({isMasked:C,element:n,value:b,maskInputFn:l}),_(n,d?{text:b,isChecked:x,userTriggered:u}:{text:b,isChecked:x});let w=n.name;y===`radio`&&w&&x&&t.querySelectorAll(`input[type="radio"][name="${w}"]`).forEach(e=>{if(e!==n){let t=Pw({isMasked:C,element:e,value:Bw(e,g,y),maskInputFn:l});_(e,d?{text:t,isChecked:!x,userTriggered:!1}:{text:t,isChecked:!x})}})}function _(t,r){let i=LE.get(t);if(!i||i.text!==r.text||i.isChecked!==r.isChecked){LE.set(t,r);let i=n.getId(t);Z(e)({...r,id:i})}}let v=(u.input===`last`?[`change`]:[`input`,`change`]).map(e=>jT(e,Z(g),t)),y=t.defaultView;if(!y)return()=>{v.forEach(e=>e())};let b=y.Object.getOwnPropertyDescriptor(y.HTMLInputElement.prototype,`value`),x=[[y.HTMLInputElement.prototype,`value`],[y.HTMLInputElement.prototype,`checked`],[y.HTMLSelectElement.prototype,`value`],[y.HTMLTextAreaElement.prototype,`value`],[y.HTMLSelectElement.prototype,`selectedIndex`],[y.HTMLOptionElement.prototype,`selected`]];return b&&b.set&&v.push(...x.map(e=>FT(e[0],e[1],{set(){Z(g)({target:this,isTrusted:!1})}},!1,y))),Z(()=>{v.forEach(e=>e())})}function zE(e){let t=[];function n(e,t){if(YE(`CSSGroupingRule`)&&e.parentRule instanceof CSSGroupingRule||YE(`CSSMediaRule`)&&e.parentRule instanceof CSSMediaRule||YE(`CSSSupportsRule`)&&e.parentRule instanceof CSSSupportsRule||YE(`CSSConditionRule`)&&e.parentRule instanceof CSSConditionRule){let n=Array.from(e.parentRule.cssRules).indexOf(e);t.unshift(n)}else if(e.parentStyleSheet){let n=Array.from(e.parentStyleSheet.cssRules).indexOf(e);t.unshift(n)}return t}return n(e,t)}function BE(e,t,n){let r,i;return e?(e.ownerNode?r=t.getId(e.ownerNode):i=n.getId(e),{styleId:i,id:r}):{}}function VE({styleSheetRuleCb:e,mirror:t,stylesheetManager:n},{win:r}){if(!r.CSSStyleSheet||!r.CSSStyleSheet.prototype)return()=>{};let i=r.CSSStyleSheet.prototype.insertRule;r.CSSStyleSheet.prototype.insertRule=new Proxy(i,{apply:Z((r,i,a)=>{let[o,s]=a,{id:c,styleId:l}=BE(i,t,n.styleMirror);return(c&&c!==-1||l&&l!==-1)&&e({id:c,styleId:l,adds:[{rule:o,index:s}]}),r.apply(i,a)})});let a=r.CSSStyleSheet.prototype.deleteRule;r.CSSStyleSheet.prototype.deleteRule=new Proxy(a,{apply:Z((r,i,a)=>{let[o]=a,{id:s,styleId:c}=BE(i,t,n.styleMirror);return(s&&s!==-1||c&&c!==-1)&&e({id:s,styleId:c,removes:[{index:o}]}),r.apply(i,a)})});let o;
503r.CSSStyleSheet.prototype.replace&&(o=r.CSSStyleSheet.prototype.replace,r.CSSStyleSheet.prototype.replace=new Proxy(o,{apply:Z((r,i,a)=>{let[o]=a,{id:s,styleId:c}=BE(i,t,n.styleMirror);return(s&&s!==-1||c&&c!==-1)&&e({id:s,styleId:c,replace:o}),r.apply(i,a)})}));let s;r.CSSStyleSheet.prototype.replaceSync&&(s=r.CSSStyleSheet.prototype.replaceSync,r.CSSStyleSheet.prototype.replaceSync=new Proxy(s,{apply:Z((r,i,a)=>{let[o]=a,{id:s,styleId:c}=BE(i,t,n.styleMirror);return(s&&s!==-1||c&&c!==-1)&&e({id:s,styleId:c,replaceSync:o}),r.apply(i,a)})}));let c={};XE(`CSSGroupingRule`)?c.CSSGroupingRule=r.CSSGroupingRule:(XE(`CSSMediaRule`)&&(c.CSSMediaRule=r.CSSMediaRule),XE(`CSSConditionRule`)&&(c.CSSConditionRule=r.CSSConditionRule),XE(`CSSSupportsRule`)&&(c.CSSSupportsRule=r.CSSSupportsRule));let l={};return Object.entries(c).forEach(([r,i])=>{l[r]={insertRule:i.prototype.insertRule,deleteRule:i.prototype.deleteRule},i.prototype.insertRule=new Proxy(l[r].insertRule,{apply:Z((r,i,a)=>{let[o,s]=a,{id:c,styleId:l}=BE(i.parentStyleSheet,t,n.styleMirror);return(c&&c!==-1||l&&l!==-1)&&e({id:c,styleId:l,adds:[{rule:o,index:[...zE(i),s||0]}]}),r.apply(i,a)})}),i.prototype.deleteRule=new Proxy(l[r].deleteRule,{apply:Z((r,i,a)=>{let[o]=a,{id:s,styleId:c}=BE(i.parentStyleSheet,t,n.styleMirror);return(s&&s!==-1||c&&c!==-1)&&e({id:s,styleId:c,removes:[{index:[...zE(i),o]}]}),r.apply(i,a)})})}),Z(()=>{r.CSSStyleSheet.prototype.insertRule=i,r.CSSStyleSheet.prototype.deleteRule=a,o&&(r.CSSStyleSheet.prototype.replace=o),s&&(r.CSSStyleSheet.prototype.replaceSync=s),Object.entries(c).forEach(([e,t])=>{t.prototype.insertRule=l[e].insertRule,t.prototype.deleteRule=l[e].deleteRule})})}function HE({mirror:e,stylesheetManager:t},n){let r=null;r=n.nodeName===`#document`?e.getId(n):e.getId(n.host);let i=n.nodeName===`#document`?n.defaultView?.Document:n.ownerDocument?.defaultView?.ShadowRoot,a=i?.prototype?Object.getOwnPropertyDescriptor(i?.prototype,`adoptedStyleSheets`):void 0;return r===null||r===-1||!i||!a?()=>{}:(Object.defineProperty(n,"adoptedStyleSheets",{configurable:a.configurable,enumerable:a.enumerable,get(){return a.get?.call(this)},set(e){let n=a.set?.call(this,e);if(r!==null&&r!==-1)try{t.adoptStyleSheets(e,r)}catch{}return n}}),Z(()=>{Object.defineProperty(n,"adoptedStyleSheets",{configurable:a.configurable,enumerable:a.enumerable,get:a.get,set:a.set})}))}function UE({styleDeclarationCb:e,mirror:t,ignoreCSSAttributes:n,stylesheetManager:r},{win:i}){let a=i.CSSStyleDeclaration.prototype.setProperty;i.CSSStyleDeclaration.prototype.setProperty=new Proxy(a,{apply:Z((i,o,s)=>{let[c,l,u]=s;if(n.has(c))return a.apply(o,[c,l,u]);let{id:d,styleId:f}=BE(o.parentRule?.parentStyleSheet,t,r.styleMirror);return(d&&d!==-1||f&&f!==-1)&&e({id:d,styleId:f,set:{property:c,value:l,priority:u},index:zE(o.parentRule)}),i.apply(o,s)})});let o=i.CSSStyleDeclaration.prototype.removeProperty;return i.CSSStyleDeclaration.prototype.removeProperty=new Proxy(o,{apply:Z((i,a,s)=>{let[c]=s;if(n.has(c))return o.apply(a,[c]);let{id:l,styleId:u}=BE(a.parentRule?.parentStyleSheet,t,r.styleMirror);return(l&&l!==-1||u&&u!==-1)&&e({id:l,styleId:u,remove:{property:c},index:zE(a.parentRule)}),i.apply(a,s)})}),Z(()=>{i.CSSStyleDeclaration.prototype.setProperty=a,i.CSSStyleDeclaration.prototype.removeProperty=o})}function WE({mediaInteractionCb:e,blockClass:t,blockSelector:n,unblockSelector:r,mirror:i,sampling:a,doc:o}){let s=Z(o=>PT(Z(a=>{let s=AE(a);if(!s||HT(s,t,n,r,!0))return;let{currentTime:c,volume:l,muted:u,playbackRate:d}=s;e({type:o,id:i.getId(s),currentTime:c,volume:l,muted:u,playbackRate:d})}),a.media||500)),c=[jT(`play`,s(lE.Play),o),jT(`pause`,s(lE.Pause),o),jT(`seeked`,s(lE.Seeked),o),jT(`volumechange`,s(lE.VolumeChange),o),jT(`ratechange`,s(lE.RateChange),o)];return Z(()=>{c.forEach(e=>e())})}function GE({fontCb:e,doc:t}){let n=t.defaultView;if(!n)return()=>{};let r=[],i=new WeakMap,a=n.FontFace;n.FontFace=function(e,t,n){let r=new a(e,t,n);return i.set(r,{family:e,buffer:typeof t!=`string`,descriptors:n,fontSource:typeof t==`string`?t:JSON.stringify(Array.from(new Uint8Array(t)))}),r};let o=IT(t.fonts,`add`,function(t){return function(n){return aE(Z(()=>{let t=i.get(n);t&&(e(t),i.delete(n))}),0),t.apply(this,[n])}});return r.push(()=>{n.FontFace=a}),r.push(o),Z(()=>
503{r.forEach(e=>e())})}function KE(e){let{doc:t,mirror:n,blockClass:r,blockSelector:i,unblockSelector:a,selectionCb:o}=e,s=!0,c=Z(()=>{let e=t.getSelection();if(!e||s&&e?.isCollapsed)return;s=e.isCollapsed||!1;let c=[],l=e.rangeCount||0;for(let t=0;t<l;t++){let{startContainer:o,startOffset:s,endContainer:l,endOffset:u}=e.getRangeAt(t);HT(o,r,i,a,!0)||HT(l,r,i,a,!0)||c.push({start:n.getId(o),startOffset:s,end:n.getId(l),endOffset:u})}o({ranges:c})});return c(),jT(`selectionchange`,c)}function qE({doc:e,customElementCb:t}){let n=e.defaultView;return!n||!n.customElements?()=>{}:IT(n.customElements,`define`,function(e){return function(n,r,i){try{t({define:{name:n}})}catch{}return e.apply(this,[n,r,i])}})}function JE(e,t={}){let n=e.doc.defaultView;if(!n)return()=>{};let r;e.recordDOM&&(r=jE(e,e.doc));let i=ME(e),a=NE(e),o=PE(e),s=FE(e,{win:n}),c=RE(e),l=WE(e),u=()=>{},d=()=>{},f=()=>{},p=()=>{};e.recordDOM&&(u=VE(e,{win:n}),d=HE(e,e.doc),f=UE(e,{win:n}),e.collectFonts&&(p=GE(e)));let m=KE(e),h=qE(e),g=[];for(let t of e.plugins)g.push(t.observer(t.callback,n,t.options));return Z(()=>{kE.forEach(e=>e.reset()),r?.disconnect(),i(),a(),o(),s(),c(),l(),u(),d(),f(),p(),m(),h(),g.forEach(e=>e())})}function YE(e){return window[e]!==void 0}function XE(e){return!!(window[e]!==void 0&&window[e].prototype&&`insertRule`in window[e].prototype&&`deleteRule`in window[e].prototype)}var ZE=class{constructor(e){this.generateIdFn=e,this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap}getId(e,t,n,r){let i=n||this.getIdToRemoteIdMap(e),a=r||this.getRemoteIdToIdMap(e),o=i.get(t);return o||(o=this.generateIdFn(),i.set(t,o),a.set(o,t)),o}getIds(e,t){let n=this.getIdToRemoteIdMap(e),r=this.getRemoteIdToIdMap(e);return t.map(t=>this.getId(e,t,n,r))}
503getRemoteId(e,t,n){let r=n||this.getRemoteIdToIdMap(e);return typeof t==`number`?r.get(t)||-1:t}getRemoteIds(e,t){let n=this.getRemoteIdToIdMap(e);return t.map(t=>this.getRemoteId(e,t,n))}reset(e){if(!e){this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap;return}this.iframeIdToRemoteIdMap.delete(e),this.iframeRemoteIdToIdMap.delete(e)}getIdToRemoteIdMap(e){let t=this.iframeIdToRemoteIdMap.get(e);return t||(t=new Map,this.iframeIdToRemoteIdMap.set(e,t)),t}getRemoteIdToIdMap(e){let t=this.iframeRemoteIdToIdMap.get(e);return t||(t=new Map,this.iframeRemoteIdToIdMap.set(e,t)),t}},QE=class{constructor(){this.crossOriginIframeMirror=new ZE(Zw),this.crossOriginIframeRootIdMap=new WeakMap}addIframe(){}addLoadListener(){}attachIframe(){}},$E=class{constructor(e){this.iframes=new WeakMap,this.crossOriginIframeMap=new WeakMap,this.crossOriginIframeMirror=new ZE(Zw),this.crossOriginIframeRootIdMap=new WeakMap,this.mutationCb=e.mutationCb,this.wrappedEmit=e.wrappedEmit,this.stylesheetManager=e.stylesheetManager,this.recordCrossOriginIframes=e.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new ZE(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=e.mirror,this.recordCrossOriginIframes&&window.addEventListener(`message`,this.handleMessage.bind(this))}addIframe(e){this.iframes.set(e,!0);let t=vE(e);t&&this.crossOriginIframeMap.set(t,e)}addLoadListener(e){this.loadListener=e}attachIframe(e,t){this.mutationCb({adds:[{parentId:this.mirror.getId(e),nextId:null,node:t}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),this.recordCrossOriginIframes&&vE(e)?.addEventListener(`message`,this.handleMessage.bind(this)),this.loadListener?.(e);let n=_E(e);n&&n.adoptedStyleSheets&&n.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(n.adoptedStyleSheets,this.mirror.getId(n))}handleMessage(e){let t=e;if(t.data.type!==`rrweb`||t.origin!==t.data.origin||!e.source)return;let n=this.crossOriginIframeMap.get(e.source);if(!n)return;let r=this.transformCrossOriginEvent(n,t.data.event);r&&this.wrappedEmit(r,t.data.isCheckout)}transformCrossOriginEvent(e,t){switch(t.type){case Y.FullSnapshot:{this.crossOriginIframeMirror.reset(e),this.crossOriginIframeStyleMirror.reset(e),this.replaceIdOnNode(t.data.node,e);let n=t.data.node.id;return this.crossOriginIframeRootIdMap.set(e,n),this.patchRootIdOnNode(t.data.node,n),{timestamp:t.timestamp,type:Y.IncrementalSnapshot,data:{source:X.Mutation,adds:[{parentId:this.mirror.getId(e),nextId:null,node:t.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case Y.Meta:case Y.Load:case Y.DomContentLoaded:return!1;case Y.Plugin:return t;case Y.Custom:return this.replaceIds(t.data.payload,e,[`id`,`parentId`,`previousId`,`nextId`]),t;case Y.IncrementalSnapshot:switch(t.data.source){case X.Mutation:return t.data.adds.forEach(t=>{this.replaceIds(t,e,[`parentId`,`nextId`,`previousId`]),this.replaceIdOnNode(t.node,e);let n=this.crossOriginIframeRootIdMap.get(e);n&&this.patchRootIdOnNode(t.node,n)}),t.data.removes.forEach(t=>{this.replaceIds(t,e,[`parentId`,`id`])}),t.data.attributes.forEach(t=>{this.replaceIds(t,e,[`id`])}),t.data.texts.forEach(t=>{this.replaceIds(t,e,[`id`])}),t;case X.Drag:case X.TouchMove:case X.MouseMove:return t.data.positions.forEach(t=>{this.replaceIds(t,e,[`id`])}),t;case X.ViewportResize:return!1;case X.MediaInteraction:case X.MouseInteraction:case X.Scroll:case X.CanvasMutation:case X.Input:return this.replaceIds(t.data,e,[`id`]),t;case X.StyleSheetRule:case X.StyleDeclaration:return this.replaceIds(t.data,e,[`id`]),this.replaceStyleIds(t.data,e,[`styleId`]),t;case X.Font:return t;case X.Selection:return t.data.ranges.forEach(t=>{this.replaceIds(t,e,[`start`,`end`])}),t;case X.AdoptedStyleSheet:return this.replaceIds(t.data,e,[`id`]),this.replaceStyleIds(t.data,e,[`styleIds`]),t.data.styles?.forEach(t=>{this.replaceStyleIds(t,e,[`styleId`])}),t}}return!1}replace(e,t,n,r){for(let i of r)(Array.isArray(t[i])||typeof t[i]==`number`)&&(t[i]=Array.isArray(t[i])?e.getIds(n,t[i]):e.getId(n,t[i]));return t}replaceIds(e,t,n){return this.replace(this.crossOriginIframeMirror,e,t,n)}replaceStyleIds(e,t,n){return this.replace(this.crossOriginIframeStyleMirror,e,t,n)}replaceIdOnNode(e,t){this.replaceIds(e,t,[`id`,`rootId`]),`childNodes`in e&&e.childNodes.forEac
503h(e=>{this.replaceIdOnNode(e,t)})}patchRootIdOnNode(e,t){e.type!==yw.Document&&!e.rootId&&(e.rootId=t),`childNodes`in e&&e.childNodes.forEach(e=>{this.patchRootIdOnNode(e,t)})}},eD=class{init(){}addShadowRoot(){}observeAttachShadow(){}reset(){}},tD=class{constructor(e){this.shadowDoms=new WeakSet,this.restoreHandlers=[],this.mutationCb=e.mutationCb,this.scrollCb=e.scrollCb,this.bypassOptions=e.bypassOptions,this.mirror=e.mirror,this.init()}init(){this.reset(),this.patchAttachShadow(Element,document)}addShadowRoot(e,t){if(!Sw(e)||this.shadowDoms.has(e))return;this.shadowDoms.add(e),this.bypassOptions.canvasManager.addShadowRoot(e);let n=jE({...this.bypassOptions,doc:t,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this},e);this.restoreHandlers.push(()=>n.disconnect()),this.restoreHandlers.push(PE({...this.bypassOptions,scrollCb:this.scrollCb,doc:e,mirror:this.mirror})),aE(()=>{e.adoptedStyleSheets&&e.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(e.adoptedStyleSheets,this.mirror.getId(e.host)),this.restoreHandlers.push(HE({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},e))},0)}observeAttachShadow(e){let t=_E(e),n=vE(e);t&&n&&this.patchAttachShadow(n.Element,t)}patchAttachShadow(e,t){let n=this;this.restoreHandlers.push(IT(e.prototype,`attachShadow`,function(e){return function(r){let i=e.call(this,r);return this.shadowRoot&&tE(this)&&n.addShadowRoot(this.shadowRoot,t),i}}))}reset(){this.restoreHandlers.forEach(e=>{try{e()}catch{}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet,this.bypassOptions.canvasManager.resetShadowRoots()}},nD=class{constructor(e){this.trackedLinkElements=new WeakSet,this.styleMirror=new ZT,this.mutationCb=e.mutationCb,this.adoptedStyleSheetCb=e.adoptedStyleSheetCb}attachLinkElement(e,t){`_cssText`in t.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:t.id,attributes:t.attributes}]}),this.trackLinkElement(e)}trackLinkElement(e){this.trackedLinkElements.has(e)||(this.trackedLinkElements.add(e),this.trackStylesheetInLinkElement(e))}adoptStyleSheets(e,t){if(e.length===0)return;let n={id:t,styleIds:[]},r=[];for(let t of e){let e;this.styleMirror.has(t)?e=this.styleMirror.getId(t):(e=this.styleMirror.add(t),r.push({styleId:e,rules:Array.from(t.rules||CSSRule,(e,t)=>({rule:Dw(e),index:t}))})),n.styleIds.push(e)}r.length>0&&(n.styles=r),this.adoptedStyleSheetCb(n)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(e){}},rD=class{constructor(){this.nodeMap=new WeakMap,this.active=!1}inOtherBuffer(e,t){let n=this.nodeMap.get(e);return n&&Array.from(n).some(e=>e!==t)}add(e,t){this.active||(this.active=!0,iE(()=>{this.nodeMap=new WeakMap,this.active=!1})),this.nodeMap.set(e,(this.nodeMap.get(e)||new Set).add(t))}destroy(){}},iD,aD;try{if(Array.from([1],e=>e*2)[0]!==2){let e=document.createElement(`iframe`);document.body.appendChild(e),Array.from=e.contentWindow?.Array.from||Array.from,document.body.removeChild(e)}}catch(e){console.debug(`Unable to override Array.from`,e)}var oD=Mw();function sD(e={}){let{emit:t,checkoutEveryNms:n,checkoutEveryNth:r,blockClass:i=`rr-block`,blockSelector:a=null,unblockSelector:o=null,ignoreClass:s=`rr-ignore`,ignoreSelector:c=null,maskAllText:l=!1,maskTextClass:u=`rr-mask`,unmaskTextClass:d=null,maskTextSelector:f=null,unmaskTextSelector:p=null,inlineStylesheet:m=!0,maskAllInputs:h,maskInputOptions:g,slimDOMOptions:_,maskAttributeFn:v,maskInputFn:y,maskTextFn:b,maxCanvasSize:x=null,packFn:S,sampling:C={},dataURLOptions:w={},mousemoveWait:T,recordDOM:E=!0,recordCanvas:D=!1,recordCrossOriginIframes:ee=!1,recordAfter:te=e.recordAfter===`DOMContentLoaded`?e.recordAfter:`load`,userTriggeredOnInput:ne=!1,collectFonts:re=!1,inlineImages:ie=!1,plugins:ae,keepIframeSrcFn:O=()=>!1,ignoreCSSAttributes:oe=new Set([]),errorHandler:se,onMutation:ce,getCanvasManager:le}=e;dE(se);let ue=!ee||window.parent===window,k=!1;if(!ue)try{window.parent.document&&(k=!1)}catch{k=!0}if(ue&&!t)throw Error(`emit function is required`);if(!ue&&!k)return()=>{};
503T!==void 0&&C.mousemove===void 0&&(C.mousemove=T),oD.reset();let de=h===!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}:g===void 0?{}:g,fe=_===!0||_===`all`?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:_===`all`,headMetaDescKeywords:_===`all`}:_||{};qT();let pe,me=0,he=e=>{for(let t of ae||[])t.eventProcessor&&(e=t.eventProcessor(e));return S&&!k&&(e=S(e)),e};iD=(e,i)=>{let a=e;if(a.timestamp=LT(),kE[0]?.isFrozen()&&a.type!==Y.FullSnapshot&&(a.type!==Y.IncrementalSnapshot||a.data.source!==X.Mutation)&&kE.forEach(e=>e.unfreeze()),ue)t?.(he(a),i);else if(k){let e={type:`rrweb`,event:he(a),origin:window.location.origin,isCheckout:i};window.parent.postMessage(e,`*`)}if(a.type===Y.FullSnapshot)pe=a,me=0;else if(a.type===Y.IncrementalSnapshot){if(a.data.source===X.Mutation&&a.data.isAttachIframe)return;me++;let e=r&&me>=r,t=n&&pe&&a.timestamp-pe.timestamp>n;(e||t)&&Ce(!0)}};let ge=e=>{iD({type:Y.IncrementalSnapshot,data:{source:X.Mutation,...e}})},_e=e=>iD({type:Y.IncrementalSnapshot,data:{source:X.Scroll,...e}}),ve=e=>iD({type:Y.IncrementalSnapshot,data:{source:X.CanvasMutation,...e}}),A=new nD({mutationCb:ge,adoptedStyleSheetCb:e=>iD({type:Y.IncrementalSnapshot,data:{source:X.AdoptedStyleSheet,...e}})}),ye=typeof __RRWEB_EXCLUDE_IFRAME__==`boolean`&&__RRWEB_EXCLUDE_IFRAME__?new QE:new $E({mirror:oD,mutationCb:ge,stylesheetManager:A,recordCrossOriginIframes:ee,wrappedEmit:iD});for(let e of ae||[])e.getMirror&&e.getMirror({nodeMirror:oD,crossOriginIframeMirror:ye.crossOriginIframeMirror,crossOriginIframeStyleMirror:ye.crossOriginIframeStyleMirror});let be=new rD,xe=lD(le,{mirror:oD,win:window,mutationCb:e=>iD({type:Y.IncrementalSnapshot,data:{source:X.CanvasMutation,...e}}),recordCanvas:D,blockClass:i,blockSelector:a,unblockSelector:o,maxCanvasSize:x,sampling:C.canvas,dataURLOptions:w,errorHandler:se}),Se=typeof __RRWEB_EXCLUDE_SHADOW_DOM__==`boolean`&&__RRWEB_EXCLUDE_SHADOW_DOM__?new eD:new tD({mutationCb:ge,scrollCb:_e,bypassOptions:{onMutation:ce,blockClass:i,blockSelector:a,unblockSelector:o,maskAllText:l,maskTextClass:u,unmaskTextClass:d,maskTextSelector:f,unmaskTextSelector:p,inlineStylesheet:m,maskInputOptions:de,dataURLOptions:w,maskAttributeFn:v,maskTextFn:b,maskInputFn:y,recordCanvas:D,inlineImages:ie,sampling:C,slimDOMOptions:fe,iframeManager:ye,stylesheetManager:A,canvasManager:xe,keepIframeSrcFn:O,processedNodeManager:be,ignoreCSSAttributes:oe},mirror:oD}),Ce=(e=!1)=>{if(!E)return;iD({type:Y.Meta,data:{href:window.location.href,width:BT(),height:zT()}},e),A.reset(),Se.init(),kE.forEach(e=>e.lock());let t=AT(document,{mirror:oD,blockClass:i,blockSelector:a,unblockSelector:o,maskAllText:l,maskTextClass:u,unmaskTextClass:d,maskTextSelector:f,unmaskTextSelector:p,inlineStylesheet:m,maskAllInputs:de,maskAttributeFn:v,maskInputFn:y,maskTextFn:b,slimDOM:fe,dataURLOptions:w,recordCanvas:D,inlineImages:ie,onSerialize:e=>{JT(e,oD)&&ye.addIframe(e),YT(e,oD)&&A.trackLinkElement(e),XT(e)&&Se.addShadowRoot(e.shadowRoot,document)},onIframeLoad:(e,t)=>{ye.attachIframe(e,t);let n=vE(e);n&&xe.addWindow(n),Se.observeAttachShadow(e)},onStylesheetLoad:(e,t)=>{A.attachLinkElement(e,t)},onBlockedImageLoad:(e,t,{width:n,height:r})=>{ge({adds:[],removes:[],texts:[],attributes:[{id:t.id,attributes:{style:{width:`${n}px`,height:`${r}px`}}}]})},keepIframeSrcFn:O,ignoreCSSAttributes:oe});if(!t)return console.warn(`Failed to snapshot the document`);iD({type:Y.FullSnapshot,data:{node:t,initialOffset:RT(window)}}),kE.forEach(e=>e.unlock()),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&A.adoptStyleSheets(document.adoptedStyleSheets,oD.getId(document))};aD=Ce;try{let e=[],t=e=>Z(JE)({onMutation:ce,mutationCb:ge,mousemoveCb:(e,t)=>iD({type:Y.IncrementalSnapshot,data:{source:t,positions:e}}),mouseInteractionCb:e=>iD({type:Y.IncrementalSnapshot,data:{source:X.MouseInteraction,...e}}),scrollCb:_e,viewportResizeCb:e=>iD({type:Y.IncrementalSnapshot,data:{source:X.ViewportResize,...e}}),inputCb:e=>iD({type:Y.IncrementalSnapshot,data:{source:X.Input,...e}}),mediaInteractionCb:e=>iD({type:Y.IncrementalSnapshot,data:{source:X.MediaInteraction,...e}}),styleSheetRuleCb:e=>iD({type:Y.IncrementalSnapshot,data:{source:X.StyleSheetRule,...e}}),styleDeclarationCb:e=>iD({type:Y.IncrementalSnapshot,data:{source:X.StyleDeclaration,...e}}),canvasMutationCb:ve,fontCb:e=>iD({type:Y.IncrementalSnapshot,data:{source:X.Font,...e}}),selectionCb:e=>{iD({type:Y.IncrementalSnapshot,data:{source:X.Selection,...e}})},customElementCb:e=>{iD({type:Y.IncrementalSnapshot,data:{source:X.CustomElement,...e}})},blockClass:i,ignoreClass:s,ignoreSelector:c,maskAllText:l,maskTextClass:u,unmaskTextClass:d,maskTextSelector:f,unmaskTextSelector:p,maskInputOptions:de,inlineStylesheet:m,sampling:C,recordDOM:E,recordCanvas:D,inlineImages:ie,userTriggeredOnInput:ne,collectFonts:re,doc:e,maskAttributeFn:v,maskInputFn:y,maskTextFn:b,keepIframeSrcFn:O,blockSelector:a,unblockSelector:o,slimDOMOptions:fe,dataURLOptions:w,mirror:oD,iframeManager:ye,stylesheetManager:A,shadowDomManager:Se,processedNodeManager:be,canvasManager:xe,ignoreCSSAttributes:oe,plugins:ae?.filter(e=>e.observer)?.map(e=>({observer:e.observer,options:e.options,callback:t=>iD({type:Y.Plugin,data:{plugin:e.name,payload:t}}
503)}))||[]},{});ye.addLoadListener(n=>{try{e.push(t(n.contentDocument))}catch(e){console.warn(e)}});let n=()=>{Ce(),e.push(t(document))};return document.readyState===`interactive`||document.readyState===`complete`?n():(e.push(jT(`DOMContentLoaded`,()=>{iD({type:Y.DomContentLoaded,data:{}}),te===`DOMContentLoaded`&&n()})),e.push(jT(`load`,()=>{iD({type:Y.Load,data:{}}),te===`load`&&n()},window))),()=>{e.forEach(e=>e()),be.destroy(),aD=void 0,fE()}}catch(e){console.warn(e)}}function cD(e){if(!aD)throw Error(`please take full snapshot after start recording`);aD(e)}sD.mirror=oD,sD.takeFullSnapshot=cD;function lD(e,t){try{return e?e(t):new gE}catch{return console.warn(`Unable to initialize CanvasManager`),new gE}}var uD;(function(e){e[e.NotStarted=0]=`NotStarted`,e[e.Running=1]=`Running`,e[e.Stopped=2]=`Stopped`})(uD||={});var dD=3,fD=5;function pD(e){return e>9999999999?e:e*1e3}function mD(e){return e>9999999999?e/1e3:e}function hD(e,t){t.category!==`sentry.transaction`&&([`ui.click`,`ui.input`].includes(t.category)?e.triggerUserActivity():e.checkAndHandleExpiredSession(),e.addUpdate(()=>(e.throttledAddEvent({type:Y.Custom,timestamp:(t.timestamp||0)*1e3,data:{tag:`breadcrumb`,payload:ft(t,10,1e3)}}),t.category===`console`)))}var gD=`button,a`;function _D(e){return e.closest(gD)||e}function vD(e){let t=yD(e);return!t||!(t instanceof Element)?t:_D(t)}function yD(e){return bD(e)?e.target:e}function bD(e){return He(e)&&`target`in e}var xD;function SD(e){return xD||(xD=[],CD()),xD.push(e),()=>{let t=xD?xD.indexOf(e):-1;t>-1&&xD.splice(t,1)}}function CD(){Je(q,`open`,function(e){return function(...t){if(xD)try{xD.forEach(e=>e())}catch{}return e.apply(q,t)}})}var wD=new Set([X.Mutation,X.StyleSheetRule,X.StyleDeclaration,X.AdoptedStyleSheet,X.CanvasMutation,X.Selection,X.MediaInteraction]);function TD(e,t,n){e.handleClick(t,n)}var ED=class{constructor(e,t,n=hD){this._lastMutation=0,this._lastScroll=0,this._clicks=[],this._timeout=t.timeout/1e3,this._threshold=t.threshold/1e3,this._scrollTimeout=t.scrollTimeout/1e3,this._replay=e,this._ignoreSelector=t.ignoreSelector,this._addBreadcrumbEvent=n}addListeners(){let e=SD(()=>{this._lastMutation=AD()});this._teardown=()=>{e(),this._clicks=[],this._lastMutation=0,this._lastScroll=0}}removeListeners(){this._teardown&&this._teardown(),this._checkClickTimeout&&clearTimeout(this._checkClickTimeout)}handleClick(e,t){if(OD(t,this._ignoreSelector)||!kD(e))return;let n={timestamp:mD(e.timestamp),clickBreadcrumb:e,clickCount:0,node:t};this._clicks.some(e=>e.node===n.node&&Math.abs(e.timestamp-n.timestamp)<1)||(this._clicks.push(n),this._clicks.length===1&&this._scheduleCheckClicks())}registerMutation(e=Date.now()){this._lastMutation=mD(e)}registerScroll(e=Date.now()){this._lastScroll=mD(e)}registerClick(e){let t=_D(e);this._handleMultiClick(t)}_handleMultiClick(e){this._getClicks(e).forEach(e=>{e.clickCount++})}_getClicks(e){return this._clicks.filter(t=>t.node===e)}_checkClicks(){let e=[],t=AD();this._clicks.forEach(n=>{!n.mutationAfter&&this._lastMutation&&(n.mutationAfter=n.timestamp<=this._lastMutation?this._lastMutation-n.timestamp:void 0),!n.scrollAfter&&this._lastScroll&&(n.scrollAfter=n.timestamp<=this._lastScroll?this._lastScroll-n.timestamp:void 0),n.timestamp+this._timeout<=t&&e.push(n)});for(let t of e){let e=this._clicks.indexOf(t);e>-1&&(this._generateBreadcrumbs(t),this._clicks.splice(e,1))}this._clicks.length&&this._scheduleCheckClicks()}_generateBreadcrumbs(e){let t=this._replay,n=e.scrollAfter&&e.scrollAfter<=this._scrollTimeout,r=e.mutationAfter&&e.mutationAfter<=this._threshold,i=!n&&!r,{clickCount:a,clickBreadcrumb:o}=e;if(i){let n=Math.min(e.mutationAfter||this._timeout,this._timeout)*1e3,r=n<this._timeout*1e3?`mutation`:`timeout`,i={type:`default`,message:o.message,timestamp:o.timestamp,category:`ui.slowClickDetected`,data:{...o.data,url:q.location.href,route:t.getCurrentRoute(),timeAfterClickMs:n,endReason:r,clickCount:a||1}};this._addBreadcrumbEvent(t,i);return}if(a>1){let e={type:`default`,message:o.message,timestamp:o.timestamp,category:`ui.multiClick`,data:{...o.data,url:q.location.href,route:t.getCurrentRoute(),clickCount:a,metric:!0}};this._addBreadcrumbEvent(t,e)}}_scheduleCheckClicks(){this._checkClickTimeout&&clearTimeout(this._checkClickTimeout),this._checkClickTimeout=Xb(()=>this._checkClicks(),1e3)}},DD=[`A`,`BUTTON`,`INPUT`];function OD(e,t){return!!(!DD.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))}
503function kD(e){return!!(e.data&&typeof e.data.nodeId==`number`&&e.timestamp)}function AD(){return Date.now()/1e3}function jD(e,t){try{if(!MD(t))return;let{source:n}=t.data;if(wD.has(n)&&e.registerMutation(t.timestamp),n===X.Scroll&&e.registerScroll(t.timestamp),ND(t)){let{type:n,id:r}=t.data,i=sD.mirror.getNode(r);i instanceof HTMLElement&&n===sE.Click&&e.registerClick(i)}}catch{}}function MD(e){return e.type===dD}function ND(e){return e.data.source===X.MouseInteraction}function PD(e){return{timestamp:Date.now()/1e3,type:`default`,...e}}var FD=(e=>(e[e.Document=0]=`Document`,e[e.DocumentType=1]=`DocumentType`,e[e.Element=2]=`Element`,e[e.Text=3]=`Text`,e[e.CDATA=4]=`CDATA`,e[e.Comment=5]=`Comment`,e))(FD||{}),ID=new Set([`id`,`class`,`aria-label`,`role`,`name`,`alt`,`title`,`data-test-id`,`data-testid`,`disabled`,`aria-disabled`,`data-sentry-component`]),LD=new Set([...ID,`data-sentry-element`]);function RD(e){let t={};for(let n in e)if(ID.has(n)){let r=n;(n===`data-testid`||n===`data-test-id`)&&(r=`testId`),t[r]=e[n]}return!t[`data-sentry-component`]&&e[`data-sentry-element`]&&(t[`data-sentry-component`]=e[`data-sentry-element`]),t}var zD=e=>t=>{if(!e.isEnabled())return;let n=VD(t);if(!n)return;let r=t.name===`click`,i=r?t.event:void 0;r&&e.clickDetector&&i?.target&&!i.altKey&&!i.metaKey&&!i.ctrlKey&&!i.shiftKey&&TD(e.clickDetector,n,vD(t.event)),hD(e,n)};function BD(e,t){let n=sD.mirror.getId(e),r=n&&sD.mirror.getNode(n),i=r&&sD.mirror.getMeta(r),a=i&&UD(i)?i:null;return{message:t,data:a?{nodeId:n,node:{id:n,tagName:a.tagName,textContent:Array.from(a.childNodes).map(e=>e.type===FD.Text&&e.textContent).filter(Boolean).map(e=>e.trim()).join(``),attributes:RD(a.attributes)}}:{}}}function VD(e){let{target:t,message:n}=HD(e);return PD({category:`ui.${e.name}`,...BD(t,n)})}function HD(e){let t=e.name===`click`,n,r=null;try{r=t?vD(e.event):yD(e.event),n=xy(r,{maxStringLength:200})||`<unknown>`}catch{n=`<unknown>`}return{target:r,message:n}}function UD(e){return e.type===FD.Element}function WD(e,t){if(!e.isEnabled())return;e.updateUserActivity();let n=GD(t);n&&hD(e,n)}function GD(e){let{metaKey:t,shiftKey:n,ctrlKey:r,altKey:i,key:a,target:o}=e;if(!o||KD(o)||!a)return null;let s=t||r||i,c=a.length===1;if(!s&&c)return null;let l=xy(o,{maxStringLength:200})||`<unknown>`;return PD({category:`ui.keyDown`,message:l,data:{...BD(o,l).data,metaKey:t,shiftKey:n,ctrlKey:r,altKey:i,key:a}})}function KD(e){return e.tagName===`INPUT`||e.tagName===`TEXTAREA`||e.isContentEditable}var qD={resource:eO,paint:QD,navigation:$D};function JD(e,t){return({metric:n})=>void t.replayPerformanceEntries.push(e(n))}function YD(e){return e.map(XD).filter(Boolean)}function XD(e){let t=qD[e.entryType];return t?t(e):null}function ZD(e){return((Gt()||q.performance.timeOrigin)+e)/1e3}function QD(e){let{duration:t,entryType:n,name:r,startTime:i}=e,a=ZD(i);return{type:n,name:r,start:a,end:a+t,data:void 0}}function $D(e){let{entryType:t,name:n,decodedBodySize:r,duration:i,domComplete:a,encodedBodySize:o,domContentLoadedEventStart:s,domContentLoadedEventEnd:c,domInteractive:l,loadEventStart:u,loadEventEnd:d,redirectCount:f,startTime:p,transferSize:m,type:h}=e;return i===0?null:{type:`${t}.${h}`,start:ZD(p),end:ZD(a),name:n,data:{size:m,decodedBodySize:r,encodedBodySize:o,duration:i,domInteractive:l,domContentLoadedEventStart:s,domContentLoadedEventEnd:c,loadEventStart:u,loadEventEnd:d,domComplete:a,redirectCount:f}}}function eO(e){let{entryType:t,initiatorType:n,name:r,responseEnd:i,startTime:a,decodedBodySize:o,encodedBodySize:s,responseStatus:c,transferSize:l}=e;return[`fetch`,`xmlhttprequest`].includes(n)?null:{type:`${t}.${n}`,start:ZD(a),end:ZD(i),name:r,data:{size:l,statusCode:c,decodedBodySize:o,encodedBodySize:s}}}function tO(e){let t=e.entries[e.entries.length-1];return aO(e,`largest-contentful-paint`,t?.element?[t.element]:void 0)}function nO(e){return e.sources!==void 0}function rO(e){let t=[],n=[];for(let r of e.entries)if(nO(r)){let e=[];for(let t of r.sources)if(t.node){n.push(t.node);let r=sD.mirror.getId(t.node);r&&e.push(r)}t.push({value:r.value,nodeIds:e.length?e:void 0})}return aO(e,`cumulative-layout-shift`,n,t)}function iO(e){let t=e.entries[e.entries.length-1];return aO(e,`interaction-to-next-paint`,t?.target?[t.target]:void 0)}function aO(e,t,n,r){let i=e.value,a=e.rating,o=ZD(i);return{type:`web-vital`,name:t,start:o,end:o,data:{value:i,size:i,rating:a,nodeIds:n?n.map(e=>sD.mirror.getId(e)):void 0,attributions:r}}}function oO(e){function t(t){e.performanceEntries.includes(t)||e.performanceEntries.push(t)}function n({entries:e}){e.forEach(t)}let r=[];
503return[`navigation`,`paint`,`resource`].forEach(e=>{r.push(Tv(e,n))}),r.push(xv(JD(tO,e)),bv(JD(rO,e)),wv(JD(iO,e))),()=>{r.forEach(e=>e())}}var Q=typeof __SENTRY_DEBUG__>`u`||__SENTRY_DEBUG__,sO=
vendor: 10,474 bytes, line 503
503`var t=Uint8Array,r=Uint16Array,n=Int32Array,e=new t([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),i=new t([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),s=new t([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),a=function(t,e){for(var i=new r(31),s=0;s<31;++s)i[s]=e+=1<<t[s-1];var a=new n(i[30]);for(s=1;s<30;++s)for(var o=i[s];o<i[s+1];++o)a[o]=o-i[s]<<5|s;return{b:i,r:a}},o=a(e,2),h=o.b,f=o.r;h[28]=258,f[258]=28;for(var l=a(i,0).r,u=new r(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,n,e){for(var i=t.length,s=0,a=new r(n);s<i;++s)t[s]&&++a[t[s]-1];var o,h=new r(n);for(s=1;s<n;++s)h[s]=h[s-1]+a[s-1]<<1;if(e){o=new r(1<<n);var f=15-n;for(s=0;s<i;++s)if(t[s])for(var l=s<<4|t[s],c=n-t[s],v=h[t[s]-1]++<<c,d=v|(1<<c)-1;v<=d;++v)o[u[v]>>f]=l}else for(o=new r(i),s=0;s<i;++s)t[s]&&(o[s]=u[h[t[s]-1]++]>>15-t[s]);return o},p=new t(288);for(c=0;c<144;++c)p[c]=8;for(c=144;c<256;++c)p[c]=9;for(c=256;c<280;++c)p[c]=7;for(c=280;c<288;++c)p[c]=8;var g=new t(32);for(c=0;c<32;++c)g[c]=5;var w=d(p,9,0),y=d(g,5,0),m=function(t){return(t+7)/8|0},b=function(r,n,e){return(null==e||e>r.length)&&(e=r.length),new t(r.subarray(n,e))},M=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],E=function(t,r,n){var e=new Error(r||M[t]);if(e.code=t,Error.captureStackTrace&&Error.captureStackTrace(e,E),!n)throw e;return e},z=function(t,r,n){n<<=7&r;var e=r/8|0;t[e]|=n,t[e+1]|=n>>8},_=function(t,r,n){n<<=7&r;var e=r/8|0;t[e]|=n,t[e+1]|=n>>8,t[e+2]|=n>>16},x=function(n,e){for(var i=[],s=0;s<n.length;++s)n[s]&&i.push({s:s,f:n[s]});var a=i.length,o=i.slice();if(!a)return{t:F,l:0};if(1==a){var h=new t(i[0].s+1);return h[i[0].s]=1,{t:h,l:1}}i.sort(function(t,r){return t.f-r.f}),i.push({s:-1,f:25001});var f=i[0],l=i[1],u=0,c=1,v=2;for(i[0]={s:-1,f:f.f+l.f,l:f,r:l};c!=a-1;)f=i[i[u].f<i[v].f?u++:v++],l=i[u!=c&&i[u].f<i[v].f?u++:v++],i[c++]={s:-1,f:f.f+l.f,l:f,r:l};var d=o[0].s;for(s=1;s<a;++s)o[s].s>d&&(d=o[s].s);var p=new r(d+1),g=A(i[c-1],p,0);if(g>e){s=0;var w=0,y=g-e,m=1<<y;for(o.sort(function(t,r){return p[r.s]-p[t.s]||t.f-r.f});s<a;++s){var b=o[s].s;if(!(p[b]>e))break;w+=m-(1<<g-p[b]),p[b]=e}for(w>>=y;w>0;){var M=o[s].s;p[M]<e?w-=1<<e-p[M]++-1:++s}for(;s>=0&&w;--s){var E=o[s].s;p[E]==e&&(--p[E],++w)}g=e}return{t:new t(p),l:g}},A=function(t,r,n){return-1==t.s?Math.max(A(t.l,r,n+1),A(t.r,r,n+1)):r[t.s]=n},D=function(t){for(var n=t.length;n&&!t[--n];);for(var e=new r(++n),i=0,s=t[0],a=1,o=function(t){e[i++]=t},h=1;h<=n;++h)if(t[h]==s&&h!=n)++a;else{if(!s&&a>2){for(;a>138;a-=138)o(32754);a>2&&(o(a>10?a-11<<5|28690:a-3<<5|12305),a=0)}else if(a>3){for(o(s),--a;a>6;a-=6)o(8304);a>2&&(o(a-3<<5|8208),a=0)}for(;a--;)o(s);a=1,s=t[h]}return{c:e.subarray(0,i),n:n}},T=function(t,r){for(var n=0,e=0;e<r.length;++e)n+=t[e]*r[e];return n},k=function(t,r,n){var e=n.length,i=m(r+2);t[i]=255&e,t[i+1]=e>>8,t[i+2]=255^t[i],t[i+3]=255^t[i+1];for(var s=0;s<e;++s)t[i+s+4]=n[s];return 8*(i+4+e)},U=function(t,n,a,o,h,f,l,u,c,v,m){z(n,m++,a),++h[256];for(var b=x(h,15),M=b.t,E=b.l,A=x(f,15),U=A.t,C=A.l,F=D(M),I=F.c,S=F.n,L=D(U),O=L.c,j=L.n,q=new r(19),B=0;B<I.length;++B)++q[31&I[B]];for(B=0;B<O.length;++B)++q[31&O[B]];for(var G=x(q,7),H=G.t,J=G.l,K=19;K>4&&!H[s[K-1]];--K);var N,P,Q,R,V=v+5<<3,W=T(h,p)+T(f,g)+l,X=T(h,M)+T(f,U)+l+14+3*K+T(q,H)+2*q[16]+3*q[17]+7*q[18];if(c>=0&&V<=W&&V<=X)return k(n,m,t.subarray(c,c+v));if(z(n,m,1+(X<W)),m+=2,X<W){N=d(M,E,0),P=M,Q=d(U,C,0),R=U;var Y=d(H,J,0);z(n,m,S-257),z(n,m+5,j-1),z(n,m+10,K-4),m+=14;for(B=0;B<K;++B)z(n,m+3*B,H[s[B]]);m+=3*K;for(var Z=[I,O],$=0;$<2;++$){var tt=Z[$];for(B=0;B<tt.length;++B){var rt=31&tt[B];z(n,m,Y[rt]),m+=H[rt],rt>15&&(z(n,m,tt[B]>>5&127),m+=tt[B]>>12)}}}else N=w,P=p,Q=y,R=g;for(B=0;B<u;++B){var nt=o[B];if(nt>255){_(n,m,N[(rt=nt>>18&31)+257]),m+=P[rt+257],rt>7&&(z(n,m,nt>>23&31),m+=e[rt]);var et=31&nt;_(n,m,Q[et]),m+=R[et],et>3&&(_(n,m,nt>>5&8191),m+=i[et])}else _(n,m,N[nt]),m+=P[nt]}return _(n,m,N[256]),m+P[256]},C=new n([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),F=new t(0),I=function(){for(var t=new Int32Array(256),r=0;r<256;++r){for(var n=r,e=9;--e;)n=(1&n&&-306674912)^n>>>1;t[r]=n}return t}(),S=function(){var t=1,r=0;return{p:function(n){for(var e=t,i=r,s=0|n.length,a=0;a!=s;){for(var o=Math.min(a+2655,s);a<o;++a)i+=e+=n[a];e=(65535&e)+15*(e>>16),i=(65535&i)+15*(i>>16)}t=e,r=i},d:function(){return(255&(t%=65521))<<24|(65280&t)<<8|(255&(r%=65521))<<8|r>>8}}},L=function(s,a,o,h,u){if(!u&&(u={l:1},a.dictionary)){var c=a.dictionary.subarray(-32768),v=new t(c.length+s.length);v.set(c),v.set(s,c.length),s=v,u.w=c.length}return function(s,a,o,h,u,c){var v=c.z||s.length,d=new t(h+v+5*(1+Math.ceil(v/7e3))+u),p=d.subarray(h,d.length-u),g=c.l,w=7&(c.r||0);if(a){w&&(p[0]=c.r>>3);for(var y=C[a-1],M=y>>13,E=8191&y,z=(1<<o)-1,_=c.p||new r(32768),x=c.h||new r(z+1),A=Math.ceil(o/3),D=2*A,T=function(t){return(s[t]^s[t+1]<<A^s[t+2]<<D)&z},F=new n(25e3),I=new r(288),S=new r(32),L=0,O=0,j=c.i||0,q=0,B=c.w||0,G=0;j+2<v;++j){var H=T(j),J=32767&j,K=x[H];if(_[J]=K,x[H]=J,B<=j){var N=v-j;if((L>7e3||q>24576)&&(N>423||!g)){w=U(s,p,0,F,I,S,O,q,G,j-G,w),q=L=O=0,G=j;for(var P=0;P<286;++P)I[P]=0;for(P=0;P<30;++P)S[P]=0}var Q=2,R=0,V=E,W=J-K&32767;if(N>2&&H==T(j-W))for(var X=Math.min(M,N)-1,Y=Math.min(32767,j),Z=Math.min(258,N);W<=Y&&--V&&J!=K;){if(s[j+Q]==s[j+Q-W]){for(var $=0;$<Z&&s[j+$]==s[j+$-W];++$);if($>Q){if(Q=$,R=W,$>X)break;var tt=Math.min(W,$-2),rt=0;for(P=0;P<tt;++P){var nt=j-W+P&32767,et=nt-_[nt]&32767;et>rt&&(rt=et,K=nt)}}}W+=(J=K)-(K=_[J])&32767}if(R){F[q++]=268435456|f[Q]<<18|l[R];var it=31&f[Q],st=31&l[R];O+=e[it]+i[st],++I[257+it],++S[st],B=j+Q,++L}else F[q++]=s[j],++I[s[j]]}}for(j=Math.max(j,B);j<v;++j)F[q++]=s[j],++I[s[j]];w=U(s,p,g,F,I,S,O,q,G,j-G,w),g||(c.r=7&w|p[w/8|0]<<3,w-=7,c.h=x,c.p=_,c.i=j,c.w=B)}else{for(j=c.w||0;j<v+g;j+=65535){var at=j+65535;at>=v&&(p[w/8|0]=g,at=v),w=k(p,w+1,s.subarray(j,at))}c.i=v}return b(d,0,h+m(w)+u)}(s,null==a.level?6:a.level,null==a.mem?u.l?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(s.length)))):20:12+a.mem,o,h,u)},O=function(t,r,n){for(;n;++r)t[r]=n,n>>>=8},j=function(){function r(r,n){if("function"==typeof r&&(n=r,r={}),this.ondata=n,this.o=r||{},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 r.prototype.p=function(t,r){this.ondata(L(t,this.o,0,0,this.s),r)},r.prototype.push=function(r,n){this.ondata||E(5),this.s.l&&E(4);var e=r.length+this.s.z;if(e>this.b.length){if(e>2*this.b.length-32768){var i=new t(-32768&e);i.set(this.b.subarray(0,this.s.z)),this.b=i}var s=this.b.length-this.s.z;this.b.set(r.subarray(0,s),this.s.z),this.s.z=this.b.length,this.p(this.b,!1),this.b.set(this.b.subarray(-32768)),this.b.set(r.subarray(s),32768),this.s.z=r.length-s+32768,this.s.i=32766,this.s.w=32768}else this.b.set(r,this.s.z),this.s.z+=r.length;this.s.l=1&n,(this.s.z>this.s.w+8191||n)&&(this.p(this.b,n||!1),this.s.w=this.s.i,this.s.i-=2),n&&(this.s=this.o={},this.b=F)},r.prototype.flush=function(r){if(this.ondata||E(5),this.s.l&&E(4),this.p(this.b,!1),this.s.w=this.s.i,this.s.i-=2,r){var n=new t(6);n[0]=this.s.r>>3;var e=k(n,this.s.r,F);this.s.r=0,this.ondata(n.subarray(0,e>>3),!1)}},r}();function q(t,r){r||(r={});var n=function(){var t=-1;return{p:function(r){for(var n=t,e=0;e<r.length;++e)n=I[255&n^r[e]]^n>>>8;t=n},d:function(){return~t}}}(),e=t.length;n.p(t);var i,s=L(t,r,10+((i=r).filename?i.filename.length+1:0),8),a=s.length;return function(t,r){var n=r.filename;if(t[0]=31,t[1]=139,t[2]=8,t[8]=r.level<2?4:9==r.level?2:0,t[9]=3,0!=r.mtime&&O(t,4,Math.floor(new Date(r.mtime||Date.now())/1e3)),n){t[3]=8;for(var e=0;e<=n.length;++e)t[e+10]=n.charCodeAt(e)}}(s,r),O(s,a-8,n.d()),O(s,a-4,e),s}var B=function(){function t(t,r){this.c=S(),this.v=1,j.call(this,t,r)}return t.prototype.push=function(t,r){this.c.p(t),j.prototype.push.call(this,t,r)},t.prototype.p=function(t,r){var n=L(t,this.o,this.v&&(this.o.dictionary?6:2),r&&4,this.s);this.v&&(function(t,r){var n=r.level,e=0==n?0:n<6?1:9==n?3:2;if(t[0]=120,t[1]=e<<6|(r.dictionary&&32),t[1]|=31-(t[0]<<8|t[1])%31,r.dictionary){var i=S();i.p(r.dictionary),O(t,2,i.d())}}(n,this.o),this.v=0),r&&O(n,n.length-4,this.c.d()),this.ondata(n,r)},t.prototype.flush=function(t){j.prototype.flush.call(this,t)},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,r){this.ondata||E(5),this.d&&E(4),this.ondata(K(t),this.d=r||!1)},t}();function K(r,n){if(G)return G.encode(r);for(var e=r.length,i=new t(r.length+(r.length>>1)),s=0,a=function(t){i[s++]=t},o=0;o<e;++o){if(s+5>i.length){var h=new t(s+8+(e-o<<1));h.set(i),i=h}var f=r.charCodeAt(o);f<128||n?a(f):f<2048?(a(192|f>>6),a(128|63&f)):f>55295&&f<57344?(a(240|(f=65536+(1047552&f)|1023&r.charCodeAt(++o))>>18),a(128|f>>12&63),a(128|f>>6&63),a(128|63&f)):(a(224|f>>12),a(128|f>>6&63),a(128|63&f))}return b(i,0,s)}const N=new class{constructor(){this._init()}clear(){this._init()}addEvent(t){if(!t)throw new Error("Adding invalid event");const r=this._hasEvents?",":"";this.stream.push(r+t),this._hasEvents=!0}finish(){this.stream.push("]",!0);const t=function(t){let r=0;for(const n of t)r+=n.length;const n=new Uint8Array(r);for(let r=0,e=0,i=t.length;r<i;r++){const i=t[r];n.set(i,e),e+=i.length}return n}(this._deflatedData);return this._init(),t}_init(){this._hasEvents=!1,this._deflatedData=[],this.deflate=new B,this.deflate.ondata=(t,r)=>{this._deflatedData.push(t)},this.stream=new J((t,r)=>{this.deflate.push(t,r)}),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 r=t.data.method,n=t.data.id,e=t.data.arg;if(r in P&&"function"==typeof P[r])try{const t=P[r](e);postMessage({id:n,method:r,success:!0,response:t})}catch(t){postMessage({id:n,method:r,success:!1,response:t.message}),console.error(t)}}),postMessage({id:void 0,method:"init",success:!0,response:void 0});`;
503function cO(){let e=new Blob([sO],{type:`text/javascript`});return URL.createObjectURL(e)}var lO=[`log`,`warn`,`error`],uO=`[Replay] `;function dO(e,t=`info`){Td({category:`console`,data:{logger:`replay`},level:t,message:`${uO}${e}`},{level:t})}function fO(){let e=!1,t=!1,n={exception:()=>void 0,infoTick:()=>void 0,setConfig:n=>{e=!!n.captureExceptions,t=!!n.traceInternals}};return Q?(lO.forEach(e=>{n[e]=(...n)=>{k[e](uO,...n),t&&dO(n.join(``),sf(e))}}),n.exception=(r,...i)=>{i.length&&n.error&&n.error(...i),k.error(uO,r),e?Wc(r,{mechanism:{handled:!0,type:`auto.function.replay.debug`}}):t&&dO(r,`error`)},n.infoTick=(...e)=>{k.log(uO,...e),t&&setTimeout(()=>dO(e[0]),0)}):lO.forEach(e=>{n[e]=()=>void 0}),n}var $=fO(),pO=class extends Error{constructor(){super(`Event buffer exceeded maximum size of ${dw}.`)}},mO=class extends Error{constructor(){super(`Worker destroyed`)}},hO=class{constructor(){this.events=[],this._totalSize=0,this.hasCheckout=!1,this.waitForCheckout=!1}get hasEvents(){return this.events.length>0}get type(){return`sync`}destroy(){this.events=[]}async addEvent(e){let t=JSON.stringify(e).length;if(this._totalSize+=t,this._totalSize>dw)throw new pO;this.events.push(e)}finish(){return new Promise(e=>{let t=this.events;this.clear(),e(JSON.stringify(t))})}clear(){this.events=[],this._totalSize=0,this.hasCheckout=!1}getEarliestTimestamp(){let e=null;for(let{timestamp:t}of this.events)(e===null||t<e)&&(e=t);return e===null?e:pD(e)}},gO=class{constructor(e){this._onMessage=({data:e})=>{let t=e;if(typeof t.id!=`number`)return;let n=this._pending.get(t.id);if(n&&n.method===t.method){if(this._pending.delete(t.id),!t.success){Q&&$.error(`Error in compression worker: `,t.response),n.reject(Error(`Error in compression worker`));return}n.resolve(t.response)}},this._worker=e,this._id=0,this._pending=new Map,this._worker.addEventListener(`message`,this._onMessage)}ensureReady(){return this._ensureReadyPromise||=new Promise((e,t)=>{this._worker.addEventListener(`message`,({data:n})=>{n.success?e():(Q&&$.warn(`Received worker message with unsuccessful status`,n),t(Error(`Received worker message with unsuccessful status`)))},{once:!0}),this._worker.addEventListener(`error`,e=>{Q&&$.warn(`Failed to load Replay compression worker`,e),t(Error(`Failed to load Replay compression worker: ${e instanceof ErrorEvent&&e.message?e.message:`Unknown error. This can happen due to CSP policy restrictions, network issues, or the worker script failing to load.`}`))},{once:!0})}),this._ensureReadyPromise}destroy(){Q&&$.log(`Destroying compression worker`),this._worker.removeEventListener(`message`,this._onMessage),this._pending.forEach(e=>e.reject(new mO)),this._pending.clear(),this._worker.terminate()}postMessage(e,t){let n=this._getAndIncrementId();return new Promise((r,i)=>{this._pending.set(n,{method:e,resolve:r,reject:i});try{this._worker.postMessage({id:n,method:e,arg:t})}catch(e){this._pending.delete(n),i(e)}})}_getAndIncrementId(){return this._id++}},_O=class{constructor(e){this._worker=new gO(e),this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this.waitForCheckout=!1}get hasEvents(){return!!this._earliestTimestamp}get type(){return`worker`}ensureReady(){return this._worker.ensureReady()}destroy(){this._worker.destroy()}addEvent(e){let t=pD(e.timestamp);(!this._earliestTimestamp||t<this._earliestTimestamp)&&(this._earliestTimestamp=t);let n=JSON.stringify(e);return this._totalSize+=n.length,this._totalSize>dw?Promise.reject(new pO):this._sendEventToWorker(n)}finish(){return this._finishRequest()}clear(){this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this._worker.postMessage(`clear`).then(null,e=>{Q&&$.exception(e,`Sending "clear" message to worker failed`,e)})}getEarliestTimestamp(){return this._earliestTimestamp}_sendEventToWorker(e){return this._worker.postMessage(`addEvent`,e)}async _finishRequest(){let e=await this._worker.postMessage(`finish`);return this._earliestTimestamp=null,this._totalSize=0,e}},vO=class{constructor(e){this._fallback=new hO,this._compression=new _O(e),this._used=this._fallback,this._ensureWorkerIsLoadedProm
503ise=this._ensureWorkerIsLoaded()}get waitForCheckout(){return this._used.waitForCheckout}get type(){return this._used.type}get hasEvents(){return this._used.hasEvents}get hasCheckout(){return this._used.hasCheckout}set hasCheckout(e){this._used.hasCheckout=e}set waitForCheckout(e){this._used.waitForCheckout=e}destroy(){this._fallback.destroy(),this._compression.destroy()}clear(){return this._used.clear()}getEarliestTimestamp(){return this._used.getEarliestTimestamp()}addEvent(e){return this._used.addEvent(e)}async finish(){return await this.ensureWorkerIsLoaded(),this._used.finish()}ensureWorkerIsLoaded(){return this._ensureWorkerIsLoadedPromise}async _ensureWorkerIsLoaded(){try{await this._compression.ensureReady()}catch(e){Q&&$.exception(e,`Failed to load the compression worker, falling back to simple buffer`);return}await this._switchToCompressionWorker()}async _switchToCompressionWorker(){let{events:e,hasCheckout:t,waitForCheckout:n}=this._fallback,r=[];for(let t of e)r.push(this._compression.addEvent(t));this._compression.hasCheckout=t,this._compression.waitForCheckout=n,this._used=this._compression;try{await Promise.all(r),this._fallback.clear()}catch(e){if(e instanceof mO)return;Q&&$.exception(e,`Failed to add events when switching buffers.`)}}};function yO({useCompression:e,workerUrl:t}){if(e&&window.Worker){let e=bO(t);if(e)return e}return Q&&$.log(`Using simple buffer`),new hO}function bO(e){try{let t=e||xO();return t?(Q&&$.log(`Using compression worker${e?` from ${e}`:``}`),new vO(new Worker(t))):void 0}catch(e){Q&&$.exception(e,`Failed to create compression worker`)}}function xO(){return typeof __SENTRY_EXCLUDE_REPLAY_WORKER__>`u`||!__SENTRY_EXCLUDE_REPLAY_WORKER__?cO():``}function SO(){try{return`sessionStorage`in q&&!!q.sessionStorage}catch{return!1}}function CO(e){wO(),e.session=void 0}function wO(){if(SO())try{q.sessionStorage.removeItem(ZC)}catch{}}function TO(e){return e!==void 0&&Math.random()<e}function EO(e){if(SO())try{q.sessionStorage.setItem(ZC,JSON.stringify(e))}catch{}}function DO(e){let t=Date.now();return{id:e.id||Ot(),started:e.started||t,lastActivity:e.lastActivity||t,segmentId:e.segmentId||0,sampled:e.sampled,previousSessionId:e.previousSessionId,dirty:e.dirty||!1}}function OO(e,t){return TO(e)?`session`:t?`buffer`:!1}function kO({sessionSampleRate:e,allowBuffering:t,stickySession:n=!1},{previousSessionId:r}={}){let i=DO({sampled:OO(e,t),previousSessionId:r});return n&&EO(i),i}function AO(){if(!SO())return null;try{let e=q.sessionStorage.getItem(ZC);if(!e)return null;let t=JSON.parse(e);return Q&&$.infoTick(`Loading existing session`),DO(t)}catch{return null}}function jO(e,t,n=+new Date){return e===null||t===void 0||t<0||t!==0&&e+t<=n}function MO(e,{maxReplayDuration:t,sessionIdleExpire:n,targetTime:r=Date.now()}){return jO(e.started,t,r)||jO(e.lastActivity,n,r)}function NO(e,{sessionIdleExpire:t,maxReplayDuration:n}){return!(!MO(e,{sessionIdleExpire:t,maxReplayDuration:n})||e.sampled===`buffer`&&e.segmentId===0)}function PO({sessionIdleExpire:e,maxReplayDuration:t,previousSessionId:n},r){let i=r.stickySession&&AO();return i?NO(i,{sessionIdleExpire:e,maxReplayDuration:t})?(Q&&$.infoTick(`Session in sessionStorage is expired, creating new one...`),kO(r,{previousSessionId:i.id})):i:(Q&&$.infoTick(`Creating new session`),kO(r,{previousSessionId:n}))}function FO(e){return e.type===Y.Custom}function IO(e,t,n){return zO(e,t)?(RO(e,t,n),!0):!1}function LO(e,t,n){return zO(e,t)?RO(e,t,n):Promise.resolve(null)}async function RO(e,t,n){let{eventBuffer:r}=e;if(!r||r.waitForCheckout&&!n)return null;let i=e.recordingMode===`buffer`;try{n&&i&&r.clear(),n&&(r.hasCheckout=!0,r.waitForCheckout=!1);let a=BO(t,e.getOptions().beforeAddRecordingEvent);return a?await r.addEvent(a):void 0}catch(t){if(!e.isEnabled())return e.handleException(t),null;let n=t&&t instanceof pO,a=n?`eventBufferOverflow`:`eventBufferError`,o=N();if(o){let e=n?`buffer_overflow`:`internal_sdk_error`;o.recordDroppedEvent(e,`replay`)}if(n&&i)return r.clear(),r.waitForCheckout=!0,null;e.handleException(t),await e.stop({reason:a})}}
503function zO(e,t){if(!e.eventBuffer||e.isPaused()||!e.isEnabled())return!1;let n=pD(t.timestamp);return n+e.timeouts.sessionIdlePause<Date.now()?!1:n>e.getContext().initialTimestamp+e.getOptions().maxReplayDuration?(Q&&$.infoTick(`Skipping event with timestamp ${n} because it is after maxReplayDuration`),!1):!0}function BO(e,t){try{if(typeof t==`function`&&FO(e))return t(e)}catch(e){return Q&&$.exception(e,"An error occurred in the `beforeAddRecordingEvent` callback, skipping the event..."),null}return e}var VO=100;function HO(e,t,n){let r=e.getContext();t&&r.traceIds.size<VO&&r.traceIds.add(t),n&&r.segmentNames.size<VO&&r.segmentNames.add(n)}function UO(e){return t=>{e.isEnabled()&&HO(e,t.trace_id,t.name||void 0)}}function WO(e){return!e.type}function GO(e){return e.type===`transaction`}function KO(e){return e.type===`replay_event`}function qO(e){return e.type===`feedback`}function JO(e){return(t,n)=>{if(!e.isEnabled()||!WO(t)&&!GO(t))return;let r=n.statusCode;if(!(!r||r<200||r>=300)){if(GO(t)){YO(e,t);return}XO(e,t)}}}function YO(e,t){HO(e,t.contexts?.trace?.trace_id,t.transaction)}function XO(e,t){let n=e.getContext();if(t.event_id&&n.errorIds.size<100&&n.errorIds.add(t.event_id),e.recordingMode!==`buffer`||!t.tags?.replayId)return;let{beforeErrorSampling:r}=e.getOptions();(typeof r!=`function`||r(t))&&Xb(async()=>{try{await e.sendBufferedReplayOrFlush()}catch(t){e.handleException(t)}})}function ZO(e){return t=>{e.isEnabled()&&WO(t)&&QO(e,t)}}function QO(e,t){let n=t.exception?.values?.[0]?.value;typeof n==`string`&&(n.match(/(reactjs\.org\/docs\/error-decoder\.html\?invariant=|react\.dev\/errors\/)(418|419|422|423|425)/)||n.match(/(does not match server-rendered HTML|Hydration failed because)/i))&&hD(e,PD({category:`replay.hydrate-error`,data:{url:fb()}}))}function $O(e){let t=N();t&&t.on(`beforeAddBreadcrumb`,t=>ek(e,t))}function ek(e,t){if(!e.isEnabled()||!rk(t))return;let n=tk(t);n&&hD(e,n)}function tk(e){return!rk(e)||[`fetch`,`xhr`,`sentry.event`,`sentry.transaction`].includes(e.category)||e.category.startsWith(`ui.`)?null:e.category===`console`?nk(e):PD(e)}function nk(e){let t=e.data?.arguments;if(!Array.isArray(t)||t.length===0)return PD(e);let n=!1,r=t.map(e=>{if(!e)return e;if(typeof e==`string`)return e.length>cw?(n=!0,`${e.slice(0,cw)}\u2026`):e;if(typeof e==`object`)try{let t=ft(e,7);return JSON.stringify(t).length>cw?(n=!0,`${JSON.stringify(t,null,2).slice(0,cw)}\u2026`):t}catch{}return e});return PD({...e,data:{...e.data,arguments:r,...n?{_meta:{warnings:[`CONSOLE_ARG_TRUNCATED`]}}:{}}})}function rk(e){return!!e.category}function ik(e,t){return e.type||!e.exception?.values?.length?!1:!!t.originalException?.__rrweb__}function ak(){let e=j().getPropagationContext().dsc;e&&delete e.replay_id;let t=F();if(t){let e=xa(t);delete e.replay_id}}function ok(e){let t=j().getPropagationContext().dsc;t&&(t.replay_id=e);let n=F();if(n){let t=xa(n);t.replay_id=e}}function sk(e,t){e.triggerUserActivity(),e.addUpdate(()=>!t.timestamp||(e.throttledAddEvent({type:Y.Custom,timestamp:t.timestamp*1e3,data:{tag:`breadcrumb`,payload:{timestamp:t.timestamp,type:`default`,category:`sentry.feedback`,data:{feedbackId:t.event_id}}}}),!1))}function ck(e,t){return e.recordingMode!==`buffer`||t.message===$C||!t.exception||t.type?!1:TO(e.getOptions().errorSampleRate)}function lk(e){return Object.assign((t,n)=>{if(e.session&&NO(e.session,{maxReplayDuration:e.getOptions().maxReplayDuration,sessionIdleExpire:e.timeouts.sessionIdleExpire})&&ak(),!e.isEnabled()||e.isPaused())return t;if(KO(t))return delete t.breadcrumbs,t;if(!WO(t)&&!GO(t)&&!qO(t))return t;if(!e.checkAndHandleExpiredSession())return ak(),t;if(qO(t)){let n=e.getSessionId(),r=t.contexts.feedback.replay_id;return r&&r!==n?t:(e.flush(),t.contexts.feedback.replay_id=n,sk(e,t),t)}if(ik(t,n)&&!e.getOptions()._experiments.captureExceptions)return Q&&$.log(`Ignoring error from rrweb internals`,t),null;let r=ck(e,t);if((r||e.recordingMode===`session`)&&(t.tags={...t.tags,replayId:e.getSessionId()}),r&&e.recordingMode===`buffer`&&e.session?.sampled===`buffer`){let t=e.session;t.dirty=!0,e.getOptions().stickySession&&EO(t)}
503return t},{id:`Replay`})}function uk(e,t){return t.map(({type:t,start:n,end:r,name:i,data:a})=>{let o=e.throttledAddEvent({type:Y.Custom,timestamp:n,data:{tag:`performanceSpan`,payload:{op:t,description:i,startTimestamp:n,endTimestamp:r,data:a}}});return typeof o==`string`?Promise.resolve(null):o})}function dk(e){let{from:t,to:n}=e,r=Date.now()/1e3;return{type:`navigation.push`,start:r,end:r,name:n,data:{previous:t}}}function fk(e){return t=>{if(!e.isEnabled())return;let n=dk(t);n!==null&&(e.getContext().urls.push(n.name),e.triggerUserActivity(),e.addUpdate(()=>(uk(e,[n]),!1)))}}function pk(e,t){return Q&&e.getOptions()._experiments.traceInternals?!1:ld(t,N())}function mk(e,t){e.isEnabled()&&t!==null&&(pk(e,t.name)||e.addUpdate(()=>(uk(e,[t]),!0)))}function hk(e){if(!e)return;let t=new TextEncoder;try{if(typeof e==`string`)return t.encode(e).length;if(e instanceof URLSearchParams)return t.encode(e.toString()).length;if(e instanceof FormData){let n=nx(e);return t.encode(n).length}if(e instanceof Blob)return e.size;if(e instanceof ArrayBuffer)return e.byteLength}catch{}}function gk(e){if(!e)return;let t=parseInt(e,10);return isNaN(t)?void 0:t}function _k(e,t){if(!e)return{headers:{},size:void 0,_meta:{warnings:[t]}};let n={...e._meta};return n.warnings=[...n.warnings||[],t],e._meta=n,e}function vk(e,t){if(!t)return null;let{startTimestamp:n,endTimestamp:r,url:i,method:a,statusCode:o,request:s,response:c}=t;return{type:e,start:n/1e3,end:r/1e3,name:i,data:{method:a,statusCode:o,request:s,response:c}}}function yk(e){return{headers:{},size:e,_meta:{warnings:[`URL_SKIPPED`]}}}function bk(e,t,n){if(!t&&Object.keys(e).length===0)return;if(!t)return{headers:e};if(!n)return{headers:e,size:t};let r={headers:e,size:t},{body:i,warnings:a}=Sk(n);return r.body=i,a?.length&&(r._meta={warnings:a}),r}function xk(e,t){return Object.entries(e).reduce((n,[r,i])=>{let a=r.toLowerCase();return t.includes(a)&&e[r]&&(n[a]=i),n},{})}function Sk(e){if(!e||typeof e!=`string`)return{body:e};let t=e.length>sw,n=Ck(e);if(t){let t=e.slice(0,sw);return n?{body:t,warnings:[`MAYBE_JSON_TRUNCATED`]}:{body:`${t}\u2026`,warnings:[`TEXT_TRUNCATED`]}}if(n)try{return{body:JSON.parse(e)}}catch{}return{body:e}}function Ck(e){let t=e[0],n=e[e.length-1];return t===`[`&&n===`]`||t===`{`&&n===`}`}function wk(e,t){return wt(Tk(e),t)}function Tk(e,t=q.document.baseURI){if(e.startsWith(`http://`)||e.startsWith(`https://`)||e.startsWith(q.location.origin))return e;let n=new URL(e,t);if(n.origin!==new URL(t).origin)return e;let r=n.href;return!e.endsWith(`/`)&&r.endsWith(`/`)?r.slice(0,-1):r}async function Ek(e,t,n){try{let r=vk(`resource.fetch`,await Ok(e,t,n));mk(n.replay,r)}catch(e){Q&&$.exception(e,`Failed to capture fetch breadcrumb`)}}function Dk(e,t){let{input:n,response:r}=t,i=hk(n?ix(n):void 0),a=r?gk(r.headers.get(`content-length`)):void 0;i!==void 0&&(e.data.request_body_size=i),a!==void 0&&(e.data.response_body_size=a)}async function Ok(e,t,n){let r=Date.now(),{startTimestamp:i=r,endTimestamp:a=r}=t,{url:o,method:s,status_code:c=0,request_body_size:l,response_body_size:u}=e.data,d=wk(o,n.networkDetailAllowUrls)&&!wk(o,n.networkDetailDenyUrls);return{startTimestamp:i,endTimestamp:a,url:o,method:s,statusCode:c,request:d?kk(n,t.input,l):yk(l),response:await Ak(d,n,t.response,u)}}function kk({networkCaptureBodies:e,networkRequestHeaders:t},n,r){let i=n?Pk(n,t):{};if(!e)return bk(i,r,void 0);let[a,o]=rx(ix(n),$),s=bk(i,r,a);return o?_k(s,o):s}async function Ak(e,{networkCaptureBodies:t,networkResponseHeaders:n},r,i){if(!e&&i!==void 0)return yk(i);let a=r?Nk(r.headers,n):{};if(!r||!t&&i!==void 0)return bk(a,i,void 0);let[o,s]=await Mk(r),c=jk(o,{networkCaptureBodies:t,responseBodySize:i,captureDetails:e,headers:a});return s?_k(c,s):c}function jk(e,{networkCaptureBodies:t,responseBodySize:n,captureDetails:r,headers:i}){try{let a=e?.length&&n===void 0?hk(e):n;return r?t?bk(i,a,e):bk(i,a,void 0):yk(a)}catch(e){return Q&&$.exception(e,`Failed to serialize response body`),bk(i,n,void 0)}}async function Mk(e){let t=Ik(e);if(!t)return[void 0,`BODY_PARSE_ERROR`];try{return[await Lk(t)]}catch(e){return e instanceof Error&&e.message.indexOf(`Timeout`)>-1?(Q&&$.warn(`Parsing text body from response timed out`),[void 0,`BODY_PARSE_TIMEOUT`]):(Q&&$.exception(e,`Failed to get text body from response`),[void 0,`BODY_PARSE_ERROR`])}}function Nk(e,t){let n={};return t.forEach(t=>{e.get(t)&&(n[t]=e.get(t))}),n}function Pk(e,t){return e.length===1&&typeof e[0]!=`string`?Fk(e[0],t):e.length===2?Fk(e[1],t):{}}function Fk(e,t){if(!e)return{};let n=e.headers;return n?n instanceof Headers?Nk(n,t):Array.isArray(n)?{}:xk(n,t):{}}function Ik(e){try{return e.clone()}catch(e){Q&&$.exception(e,`Failed to clone response body`)}}function Lk(e){return new Promise((t,n)=>{let r=Xb(()=>n(Error(`Timeout while trying to read response body`)),500);Rk(e).then(e=>t(e),e=>n(e)).finally(()=>clearTimeout(r))})}async function Rk(e){return e.text()}
503async function zk(e,t,n){try{let r=vk(`resource.xhr`,Vk(e,t,n));mk(n.replay,r)}catch(e){Q&&$.exception(e,`Failed to capture xhr breadcrumb`)}}function Bk(e,t){let{xhr:n,input:r}=t;if(!n)return;let i=hk(r),a=n.getResponseHeader(`content-length`)?gk(n.getResponseHeader(`content-length`)):Wk(n.response,n.responseType);i!==void 0&&(e.data.request_body_size=i),a!==void 0&&(e.data.response_body_size=a)}function Vk(e,t,n){let r=Date.now(),{startTimestamp:i=r,endTimestamp:a=r,input:o,xhr:s}=t,{url:c,method:l,status_code:u=0,request_body_size:d,response_body_size:f}=e.data;if(!c)return null;if(!s||!wk(c,n.networkDetailAllowUrls)||wk(c,n.networkDetailDenyUrls))return{startTimestamp:i,endTimestamp:a,url:c,method:l,statusCode:u,request:yk(d),response:yk(f)};let p=s[Zb],m=p?xk(p.request_headers,n.networkRequestHeaders):{},h=xk(ax(s),n.networkResponseHeaders),[g,_]=n.networkCaptureBodies?rx(o,$):[void 0],[v,y]=n.networkCaptureBodies?Hk(s):[void 0],b=bk(m,d,g),x=bk(h,f,v);return{startTimestamp:i,endTimestamp:a,url:c,method:l,statusCode:u,request:_?_k(b,_):b,response:y?_k(x,y):x}}function Hk(e){let t=[];try{return[e.responseText]}catch(e){t.push(e)}try{return Uk(e.response,e.responseType)}catch(e){t.push(e)}return Q&&$.warn(`Failed to get xhr response body`,...t),[void 0]}function Uk(e,t){try{if(typeof e==`string`)return[e];if(e instanceof Document)return[e.body.outerHTML];if(t===`json`&&He(e))return[JSON.stringify(e)];if(!e)return[void 0]}catch(t){return Q&&$.exception(t,`Failed to serialize body`,e),[void 0,`BODY_PARSE_ERROR`]}return Q&&$.log(`Skipping network body because of body type`,e),[void 0,`UNPARSEABLE_BODY_TYPE`]}function Wk(e,t){try{return hk(t===`json`&&He(e)?JSON.stringify(e):e)}catch{return}}function Gk(e){let t=N();try{let{networkDetailAllowUrls:n,networkDetailDenyUrls:r,networkCaptureBodies:i,networkRequestHeaders:a,networkResponseHeaders:o}=e.getOptions(),s={replay:e,networkDetailAllowUrls:n,networkDetailDenyUrls:r,networkCaptureBodies:i,networkRequestHeaders:a,networkResponseHeaders:o};t&&t.on(`beforeAddBreadcrumb`,(e,t)=>Kk(s,e,t))}catch{}}function Kk(e,t,n){if(t.data)try{qk(t)&&Yk(n)&&(Bk(t,n),zk(t,n,e)),Jk(t)&&Xk(n)&&(Dk(t,n),Ek(t,n,e))}catch(e){Q&&$.exception(e,`Error when enriching network breadcrumb`)}}function qk(e){return e.category===`xhr`}function Jk(e){return e.category===`fetch`}function Yk(e){return e?.xhr}function Xk(e){return e?.input!==void 0}function Zk(e){let t=N();if(Ib(zD(e)),Wb(fk(e)),$O(e),Gk(e),sl(lk(e)),t){t.on(`beforeSendEvent`,ZO(e)),t.on(`afterSendEvent`,JO(e)),t.on(`createDsc`,t=>{let n=e.getSessionId();n&&e.isEnabled()&&e.recordingMode===`session`&&e.checkAndHandleExpiredSession()&&(t.replay_id=n)}),t.on(`processSegmentSpan`,UO(e)),t.on(`spanStart`,t=>{e.lastActiveSpan=t}),t.on(`spanEnd`,t=>{e.lastActiveSpan=t});let n;t.on(`beforeSendFeedback`,async(t,r)=>{let i=t.contexts?.feedback;if(!r?.includeReplay||!i)return;if(i.source===`widget`&&n){i.replay_id=n,n=void 0;return}let a=e.getSessionId();e.isEnabled()&&a&&(i.source===`api`&&await e.sendBufferedReplayOrFlush(),i.replay_id=a)}),t.on(`openFeedbackWidget`,async()=>{n=void 0,await e.sendBufferedReplayOrFlush(),n=e.isEnabled()?e.getSessionId():void 0})}}async function Qk(e){try{return await Promise.all(uk(e,[$k(q.performance.memory)]))}catch{return[]}}function $k(e){let{jsHeapSizeLimit:t,totalJSHeapSize:n,usedJSHeapSize:r}=e,i=Date.now()/1e3;return{type:`memory`,name:`memory`,start:i,end:i,data:{memory:{jsHeapSizeLimit:t,totalJSHeapSize:n,usedJSHeapSize:r}}}}function eA(e,t,n){return Ss(e,t,{...n,setTimeoutImpl:Xb})}var tA=C.navigator;function nA(){return/iPhone|iPad|iPod/i.test(tA?.userAgent??``)||/Macintosh/i.test(tA?.userAgent??``)&&tA?.maxTouchPoints&&tA?.maxTouchPoints>1?{sampling:{mousemove:!1}}:{}}function rA(e){let t=!1;return(n,r)=>{try{if(!e.checkAndHandleExpiredSession()){Q&&$.warn(`Received replay event after session expired.`);return}let i=r||!t;t=!0,iA(n),e.clickDetector&&jD(e.clickDetector,n),e.addUpdate(()=>{if(e.recordingMode===`buffer`&&i&&e.setInitialState(),!IO(e,n,i))return!0;if(!i)return!1;let t=e.session;if(oA(e,i),e.recordingMode===`buffer`&&t&&e.eventBuffer&&!t.dirty){let n=e.eventBuffer.getEarliestTimestamp();n&&(Q&&$.log(`Updating session start time to earliest event in buffer to ${new Date(n)}`),t.started=n,e.getOptions().stickySession&&EO(t))}return t?.previousSessionId||e.recordingMode===`session`&&e.flush(),!0})}catch(t){e.handleException(t)}}}function iA(e){let t=e.data;if(e.type===Y.IncrementalSnapshot&&t&&typeof t==`object`&&`source`in t&&t.source===X.Mutation&&`attributes`in t&&Array.isArray(t.attributes))for(let e of t.attributes){let t=sD.mirror.getNode(e.id),n=t&&sD.mirror.getMeta(t);if(!t||n?.type!==FD.Element)continue;let r={...n.attributes},i=!1;for(let[t,n]of Object.entries(e.attributes))LD.has(t)&&(n===null?delete r[t]:r[t]=n,i=!0);i&&sD.mirror.add(t,{...n,attributes:r})}}function aA(e){let t=e.getOptions();return{type:Y.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 oA(e,t){t&&e.session?.segmentId===0&&IO(e,aA(e),!1)}function sA(e){if(!e)return null;
503try{return e.nodeType===e.ELEMENT_NODE?e:e.parentElement}catch{return null}}function cA(e,t,n,r){return Xa(uo(e,lo(e),r,n),[[{type:`replay_event`},e],[{type:`replay_recording`,length:typeof t==`string`?new TextEncoder().encode(t).length:t.length},t]])}function lA({recordingData:e,headers:t}){let n,r=`${JSON.stringify(t)}
504`;if(typeof e==`string`)n=`${r}${e}`;else{let t=new TextEncoder().encode(r);n=new Uint8Array(t.length+e.length),n.set(t),n.set(e,t.length)}return n}async function uA({client:e,scope:t,replayId:n,event:r}){let i={event_id:n,integrations:typeof e._integrations==`object`&&e._integrations!==null&&!Array.isArray(e._integrations)?Object.keys(e._integrations):void 0};e.emit(`preprocessEvent`,r,i);let a=await Nc(e.getOptions(),r,i,t,e,M());if(!a)return null;e.emit(`postprocessEvent`,a,i),a.platform=a.platform||`javascript`;let{name:o,version:s,settings:c}=e.getSdkMetadata()?.sdk||{};return a.sdk={...a.sdk,name:o||`sentry.javascript.unknown`,version:s||`0.0.0`,settings:c},a}async function dA({recordingData:e,replayId:t,segmentId:n,eventContext:r,timestamp:i,session:a}){let o=lA({recordingData:e,headers:{segment_id:n}}),{urls:s,errorIds:c,traceIds:l,segmentNames:u,initialTimestamp:d}=r,f=N(),p=j(),m=f?.getTransport(),h=f?.getDsn();if(!f||!m||!h||!a.sampled)return Promise.resolve({});let g=await uA({scope:p,client:f,replayId:t,event:{type:QC,replay_start_timestamp:d/1e3,timestamp:i/1e3,error_ids:c,trace_ids:l,segment_names:u,urls:s,replay_id:t,segment_id:n,replay_type:a.sampled}});if(!g)return Q&&$.log("An event processor returned `null`, will not send event."),Promise.resolve({});delete g.sdkProcessingMetadata;let _=cA(g,o,h,f.getOptions().tunnel),v;try{v=await m.send(_)}catch(e){let t=Error($C);try{t.cause=e}catch{}throw t}let y=Ql({},v);if(Zl(y,`replay`))throw new pA(y);if(typeof v.statusCode==`number`&&(v.statusCode<200||v.statusCode>=300))throw new fA(v.statusCode);return v}var fA=class extends Error{constructor(e){super(`Transport returned status code ${e}`)}},pA=class extends Error{constructor(e){super(`Rate limit hit`),this.rateLimits=e}},mA=class extends Error{constructor(){super(`Session is too long, not sending replay`)}};async function hA(e,t={count:0,interval:aw}){let{recordingData:n,onError:r}=e;if(n.length)try{return await dA(e),!0}catch(n){if(n instanceof fA||n instanceof pA)throw n;if(qc(`Replays`,{_retryCount:t.count}),r&&r(n),t.count>=ow){let e=Error(`${$C} - max retries exceeded`);try{e.cause=n}catch{}throw e}return t.interval*=++t.count,new Promise((n,r)=>{Xb(async()=>{try{await hA(e,t),n(!0)}catch(e){r(e)}},t.interval)})}}var gA=`__THROTTLED`,_A=`__SKIPPED`;function vA(e,t,n){let r=new Map,i=e=>{let t=e-n;r.forEach((e,n)=>{n<t&&r.delete(n)})},a=()=>[...r.values()].reduce((e,t)=>e+t,0),o=!1;return(...n)=>{let s=Math.floor(Date.now()/1e3);if(i(s),a()>=t){let e=o;return o=!0,e?_A:gA}o=!1;let c=r.get(s)||0;return r.set(s,c+1),e(...n)}}var yA=class{constructor({options:e,recordingOptions:t}){this.eventBuffer=null,this.performanceEntries=[],this.replayPerformanceEntries=[],this.recordingMode=`session`,this.timeouts={sessionIdlePause:ew,sessionIdleExpire:tw},this._lastActivity=Date.now(),this._isEnabled=!1,this._isPaused=!1,this._requiresManualStart=!1,this._hasInitializedCoreListeners=!1,this._context={errorIds:new Set,traceIds:new Set,segmentNames:new Set,urls:[],initialTimestamp:Date.now(),initialUrl:``},this._recordingOptions=t,this._options=e,this._debouncedFlush=eA(()=>this._flush(),this._options.flushMinDelay,{maxWait:this._options.flushMaxDelay}),this._throttledAddEvent=vA((e,t)=>LO(this,e,t),300,5);let{slowClickTimeout:n,slowClickIgnoreSelectors:r}=this.getOptions(),i=n?{threshold:Math.min(lw,n),timeout:n,scrollTimeout:uw,ignoreSelector:r?r.join(`,`):``}:void 0;if(i&&(this.clickDetector=new ED(this,i)),Q){let t=e._experiments;$.setConfig({captureExceptions:!!t.captureExceptions,traceInternals:!!t.traceInternals})}this._handleVisibilityChange=()=>{q.document.visibilityState===`visible`?this._doChangeToForegroundTasks():this._doChangeToBackgroundTasks()},this._handleWindowBlur=()=>{let e=PD({category:`ui.blur`});
504this._doChangeToBackgroundTasks(e)},this._handleWindowFocus=()=>{let e=PD({category:`ui.focus`});this._doChangeToForegroundTasks(e)},this._handleKeyboardEvent=e=>{WD(this,e)}}getContext(){return this._context}isEnabled(){return this._isEnabled}isPaused(){return this._isPaused}isRecordingCanvas(){return!!this._canvas}getOptions(){return this._options}handleException(e){Q&&$.exception(e),this._options.onError&&this._options.onError(e)}initializeSampling(e){let{errorSampleRate:t,sessionSampleRate:n}=this._options,r=t<=0&&n<=0;if(this._requiresManualStart=r,!r){if(this._initializeSessionForSampling(e),!this.session){Q&&$.exception(Error(`Unable to initialize and create session`));return}this.session.sampled!==!1&&(this.recordingMode=this.session.sampled===`buffer`&&this.session.segmentId===0?`buffer`:`session`,Q&&$.infoTick(`Starting replay in ${this.recordingMode} mode`),this._initializeRecording())}}start(){if(this._isEnabled&&this.recordingMode===`session`){Q&&$.log(`Recording is already in progress`);return}if(this._isEnabled&&this.recordingMode===`buffer`){Q&&$.log("Buffering is in progress, call `flush()` to save the replay");return}Q&&$.infoTick(`Starting replay in session mode`),this._updateUserActivity();let e=PO({maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire},{stickySession:this._options.stickySession,sessionSampleRate:1,allowBuffering:!1});this.session=e,this.recordingMode=`session`,this._initializeRecording()}startBuffering(){if(this._isEnabled){Q&&$.log("Buffering is in progress, call `flush()` to save the replay");return}Q&&$.infoTick(`Starting replay in buffer mode`);let e=PO({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration},{stickySession:this._options.stickySession,sessionSampleRate:0,allowBuffering:!0});this.session=e,this.recordingMode=`buffer`,this._initializeRecording()}startRecording(){try{let e=this._canvas;this._stopRecording=sD({...this._recordingOptions,...this.recordingMode===`buffer`?{checkoutEveryNms:iw}:this._options._experiments.continuousCheckout&&{checkoutEveryNms:Math.max(36e4,this._options._experiments.continuousCheckout)},emit:rA(this),...nA(),onMutation:this._onMutationHandler.bind(this),...e?{recordCanvas:e.recordCanvas,getCanvasManager:e.getCanvasManager,sampling:e.sampling,dataURLOptions:e.dataURLOptions}:{}})}catch(e){this.handleException(e)}}stopRecording(){try{return this._stopRecording&&=(this._stopRecording(),void 0),!0}catch(e){return this.handleException(e),!1}}async stop({forceFlush:e=!1,reason:t}={}){if(!this._isEnabled)return;this._isEnabled=!1,this.recordingMode=`buffer`;let n=t??`manual`;N()?.emit(`replayEnd`,{sessionId:this.session?.id,reason:n});try{Q&&$.log(`Stopping Replay triggered by ${n}`),ak(),this._removeListeners(),this.stopRecording(),this._debouncedFlush.cancel(),e&&await this._flush({force:!0}),this.eventBuffer?.destroy(),this.eventBuffer=null,CO(this)}catch(e){this.handleException(e)}}pause(){this._isPaused||(this._isPaused=!0,this.stopRecording(),Q&&$.log(`Pausing replay`))}resume(){this._isPaused&&this._checkSession()&&(this._isPaused=!1,this.startRecording(),Q&&$.log(`Resuming replay`))}async sendBufferedReplayOrFlush({continueRecording:e=!0}={}){if(this.recordingMode===`session`)return this.flushImmediate();let t=Date.now();Q&&$.log(`Converting buffer to session`),await this.flushImmediate();let n=this.stopRecording();e&&n&&this.recordingMode!==`session`&&(this.recordingMode=`session`,this.session&&(this.session.dirty=!1,this._updateUserActivity(t),this._updateSessionActivity(t),this._maybeSaveSession(),ok(this.session.id)),this.startRecording())}addUpdate(e){let t=e();this.recordingMode!==`buffer`&&this._isEnabled&&t!==!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(e){if(!(e&&this.session?.sampled===!1))return this.session?.id}
504checkAndHandleExpiredSession(){if(this._lastActivity&&jO(this._lastActivity,this.timeouts.sessionIdlePause)&&this.session?.sampled===`session`){this.pause();return}return!!this._checkSession()}setInitialState(){let e=`${q.location.pathname}${q.location.hash}${q.location.search}`,t=`${q.location.origin}${e}`;this.performanceEntries=[],this.replayPerformanceEntries=[],this._clearContext(),this._context.initialUrl=t,this._context.initialTimestamp=Date.now(),this._context.urls.push(t)}throttledAddEvent(e,t){let n=this._throttledAddEvent(e,t);if(n===gA){let e=PD({category:`replay.throttled`});this.addUpdate(()=>!IO(this,{type:fD,timestamp:e.timestamp||0,data:{tag:`breadcrumb`,payload:e,metric:!0}}))}return n}getCurrentRoute(){let e=this.lastActiveSpan||F(),t=e&&qi(e);if(!t)return;let n=P(t),r=n.attributes[hw];if(r&&[`route`,`custom`].includes(r))return n.name}_initializeRecording(){this.setInitialState(),this._updateSessionActivity(),this.eventBuffer=yO({useCompression:this._options.useCompression,workerUrl:this._options.workerUrl}),this._removeListeners(),this._addListeners(),this._isEnabled=!0,this._isPaused=!1,this.session&&N()?.emit(`replayStart`,{sessionId:this.session.id,recordingMode:this.recordingMode}),this.startRecording(),this.recordingMode===`session`&&this.session&&ok(this.session.id)}_initializeSessionForSampling(e){let t=this._options.errorSampleRate>0,n=PO({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration,previousSessionId:e},{stickySession:this._options.stickySession,sessionSampleRate:this._options.sessionSampleRate,allowBuffering:t});this.session=n}_checkSession(){if(!this.session)return!1;let e=this.session;return!NO(e,{sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration})||(this._refreshSession(e),!1)}async _refreshSession(e){this._isEnabled&&(await this.stop({reason:`sessionExpired`}),this.initializeSampling(e.id))}_addListeners(){try{q.document.addEventListener(`visibilitychange`,this._handleVisibilityChange),q.addEventListener(`blur`,this._handleWindowBlur),q.addEventListener(`focus`,this._handleWindowFocus),q.addEventListener(`keydown`,this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.addListeners(),this._hasInitializedCoreListeners||=(Zk(this),!0)}catch(e){this.handleException(e)}this._performanceCleanupCallback=oO(this)}_removeListeners(){try{q.document.removeEventListener(`visibilitychange`,this._handleVisibilityChange),q.removeEventListener(`blur`,this._handleWindowBlur),q.removeEventListener(`focus`,this._handleWindowFocus),q.removeEventListener(`keydown`,this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.removeListeners(),this._performanceCleanupCallback&&this._performanceCleanupCallback()}catch(e){this.handleException(e)}}_doChangeToBackgroundTasks(e){if(this.session){if(NO(this.session,{maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire})){ak();return}e&&this._createCustomBreadcrumb(e),this.conditionalFlush()}}_doChangeToForegroundTasks(e){if(this.session){if(!this.checkAndHandleExpiredSession()){Q&&$.log(`Document has become active, but session has expired`);return}e&&this._createCustomBreadcrumb(e)}}_updateUserActivity(e=Date.now()){this._lastActivity=e}_updateSessionActivity(e=Date.now()){this.session&&(this.session.lastActivity=e,this._maybeSaveSession())}_createCustomBreadcrumb(e){this.addUpdate(()=>{this.throttledAddEvent({type:Y.Custom,timestamp:e.timestamp||0,data:{tag:`breadcrumb`,payload:e}})})}_addPerformanceEntries(){let e=YD(this.performanceEntries).concat(this.replayPerformanceEntries);if(this.performanceEntries=[],this.replayPerformanceEntries=[],this._requiresManualStart){let t=this._context.initialTimestamp/1e3;e=e.filter(e=>e.start>=t)}return Promise.all(uk(this,e))}_clearContext(){this._context.errorIds.clear(),this._context.traceIds.clear(),this._context.segmentNames.clear(),this._context.urls=[]}_updateInitialTimestampFromEventBuffer(){let{session:e,eventBuffer:t}=this;if(!e||!t||this._requiresManualStart||e.segmentId)return;let n=t.getEarliestTimestamp();
504n&&n<this._context.initialTimestamp&&(this._context.initialTimestamp=n)}_popEventContext(){let e={initialTimestamp:this._context.initialTimestamp,initialUrl:this._context.initialUrl,errorIds:Array.from(this._context.errorIds),traceIds:Array.from(this._context.traceIds),segmentNames:Array.from(this._context.segmentNames),urls:this._context.urls};return this._clearContext(),e}async _runFlush(){let e=this.getSessionId();if(!this.session||!this.eventBuffer||!e){Q&&$.error(`No session or eventBuffer found to flush.`);return}if(await this._addPerformanceEntries(),this.eventBuffer?.hasEvents&&(await Qk(this),this.eventBuffer&&e===this.getSessionId()))try{this._updateInitialTimestampFromEventBuffer();let t=Date.now();if(t-this._context.initialTimestamp>this._options.maxReplayDuration+3e4)throw new mA;let n=this._popEventContext(),r=this.session.segmentId++;this._maybeSaveSession(),await hA({replayId:e,recordingData:await this.eventBuffer.finish(),segmentId:r,eventContext:n,session:this.session,timestamp:t,onError:e=>this.handleException(e)})}catch(e){this.handleException(e),this.stop({reason:`sendError`});let t=N();if(t){let n;n=e instanceof pA?`ratelimit_backoff`:e instanceof mA?`invalid`:`send_error`,t.recordDroppedEvent(n,`replay`)}}}async _flush({force:e=!1}={}){if(!this._isEnabled&&!e)return;if(!this.checkAndHandleExpiredSession()){Q&&$.error(`Attempting to finish replay event after session expired.`);return}if(!this.session)return;let t=this.session.started,n=Date.now()-t;this._debouncedFlush.cancel();let r=n<this._options.minReplayDuration,i=n>this._options.maxReplayDuration+5e3;if(r||i){Q&&$.log(`Session duration (${Math.floor(n/1e3)}s) is too ${r?`short`:`long`}, not sending replay.`),r&&this._debouncedFlush();return}let a=this.eventBuffer;a&&this.session.segmentId===0&&!a.hasCheckout&&Q&&$.log(`Flushing initial segment without checkout.`);let o=!!this._flushLock;this._flushLock||=this._runFlush();try{await this._flushLock}catch(e){this.handleException(e)}finally{this._flushLock=void 0,o&&this._debouncedFlush()}}_maybeSaveSession(){this.session&&this._options.stickySession&&EO(this.session)}_onMutationHandler(e){let{ignoreMutations:t}=this._options._experiments;if(t?.length&&e.some(e=>{let n=sA(e.target),r=t.join(`,`);return n?.matches(r)}))return!1;let n=e.length,r=this._options.mutationLimit,i=this._options.mutationBreadcrumbLimit,a=r&&n>r;if(n>i||a){let e=PD({category:`replay.mutations`,data:{count:n,limit:a}});this._createCustomBreadcrumb(e)}return!a||(this.stop({reason:`mutationLimit`,forceFlush:this.recordingMode===`session`}),!1)}};function bA(e,t){return[...e,...t].join(`,`)}function xA({mask:e,unmask:t,block:n,unblock:r,ignore:i}){return{maskTextSelector:bA(e,[`.sentry-mask`,`[data-sentry-mask]`]),unmaskTextSelector:bA(t,[]),blockSelector:bA(n,[`.sentry-block`,`[data-sentry-block]`,`base`,`iframe[srcdoc]:not([src])`]),unblockSelector:bA(r,[]),ignoreSelector:bA(i,[`.sentry-ignore`,`[data-sentry-ignore]`,`input[type="file"]`])}}function SA({el:e,key:t,maskAttributes:n,maskAllText:r,privacyOptions:i,value:a}){if(i.unmaskTextSelector&&e.matches(i.unmaskTextSelector))return a;let o=n.includes(t),s=r&&t===`value`&&e.tagName===`INPUT`&&[`submit`,`button`].includes(e.getAttribute(`type`)||``);return o||s?a.replace(/[\S]/g,`*`):a}var CA=`img,image,svg,video,object,picture,embed,map,audio,link[rel="icon"],link[rel="apple-touch-icon"]`,wA=[`content-length`,`content-type`,`accept`],TA=Symbol.for(`sentry__originalRequestBody`),EA=!1,DA=!1;function OA(){if(typeof Request>`u`||DA)return;let e=Request;try{let t=function(t,n){let r=new e(t,n);return n?.body!=null&&(r[TA]=n.body),r};t.prototype=e.prototype,C.Request=t,DA=!0}catch{}}var kA=(e=>new AA(e)),AA=class{constructor({flushMinDelay:e=nw,flushMaxDelay:t=rw,minReplayDuration:n=fw,maxReplayDuration:r=mw,stickySession:i=!0,useCompression:a=!0,workerUrl:o,_experiments:s={},maskAllText:c=!0,maskAllInputs:l=!0,blockAllMedia:u=!0,mutationBreadcrumbLimit:d=750,mutationLimit:f=1e4,slowClickTimeout:p=7e3,slowClickIgnoreSelectors:m=[],networkDetailAllowUrls:h=[],networkDetailDenyUrls:g=[],networkCaptureBodies:_=!0,networkRequestHeaders:v=[],networkResponseHeaders:y=[],mask:b=[],maskAttributes:x=[`title`,`placeholder`,`aria-label`],unmask:S=[],block:C=[],unblock:w=[],ignore:T=[],maskFn:E,beforeAddRecordingEvent:D,beforeErrorSampling:ee,onError:te,attachRawBodyFromRequest:ne=!1}={}){this.name=`Replay`;let re=xA({mask:b,unmask:S,block:C,unblock:w,ignore:T});if(this._recordingOptions={maskAllInputs:l,maskAllText:c,maskInputOptions:{password:!0},maskTextFn:E,maskInputFn:E,maskAttributeFn:(e,t,n)=>SA({maskAttributes:x,maskAllText:c,privacyOptions:re,key:e,value:t,el:n}),...re,slimDOMOptions:`all`,inlineStylesheet:!0,inlineImages:!1,collectFonts:!0,errorHandler:e=>{try{e.__rrweb__=!0}catch{}},recordCrossOriginIframes:!!s.recordCrossOriginIframes},this._initialOptions={flushMinDelay:e,flushMaxDelay:t,minReplayDuration:Math.min(n,pw),maxReplayDuration:Math.min(r,mw),stickySession:i,useCompression:a,workerUrl:o,blockAllMedia:u,maskAllInputs:l,maskAllText:c,mutationBreadcrumbLimit:d,mutationLimit:f,slowClickTimeout:p,slowClickIgnoreSelectors:m,networkDetailAllowUrls:h,networkDetailDenyUrls:g,networkCaptureBodies:_,networkRequestHeaders:MA(v),networkResponseHeaders:MA(y),beforeAddRecordingEvent:D,beforeErrorSampling:ee,onError:te,attachRawBodyFromRequest:ne,_experiments:s},this._initialOptions.blockAllMedia&&(this._recordingOptions.blockSelector=this._recordingOptions.blockSelector?`${this._recordingOptions.blockSelector},${CA}`:CA,this._recordingOptions.ignoreCSSAttributes=new Set([`background-image`])),this._isInitialized&&go())throw Error(`Multiple Sentry Session Replay instances are not supported`);this._isInitialized=!0}get _isInitialized(){return EA}set _isInitialized(e){EA=e}afterAllSetup(e){go()&&!this._replay&&(this._initialOptions.attachRawBodyFromRequest&&OA(),this._setup(e),this._initialize(e))}start(){this._replay&&this._replay.start()}
504startBuffering(){this._replay&&this._replay.startBuffering()}stop(e){return this._replay?this._replay.stop({forceFlush:e?.flush??this._replay.recordingMode===`session`,reason:`manual`}):Promise.resolve()}flush(e){return this._replay?this._replay.isEnabled()?this._replay.sendBufferedReplayOrFlush(e):(this._replay.start(),Promise.resolve()):Promise.resolve()}getReplayId(e){if(this._replay?.isEnabled())return this._replay.getSessionId(e)}getRecordingMode(){if(this._replay?.isEnabled())return this._replay.recordingMode}processSpan(e){let t=this.getReplayId(!0);t&&(Wa(e,{"sentry.replay_id":t}),this.getRecordingMode()===`buffer`&&Wa(e,{"sentry._internal.replay_is_buffering":!0}))}_initialize(e){this._replay&&(this._maybeLoadFromReplayCanvasIntegration(e),this._replay.initializeSampling())}_setup(e){let t=jA(this._initialOptions,e);this._replay=new yA({options:t,recordingOptions:this._recordingOptions})}_maybeLoadFromReplayCanvasIntegration(e){try{let t=e.getIntegrationByName(`ReplayCanvas`);if(!t)return;this._replay._canvas=t.getOptions()}catch{}}};function jA(e,t){let n=t.getOptions(),r={sessionSampleRate:0,errorSampleRate:0,...e},i=mi(n.replaysSessionSampleRate),a=mi(n.replaysOnErrorSampleRate);return i==null&&a==null&&re(()=>{console.warn("Replay is disabled because neither `replaysSessionSampleRate` nor `replaysOnErrorSampleRate` are set.")}),i!=null&&(r.sessionSampleRate=i),a!=null&&(r.errorSampleRate=a),r}function MA(e){return[...wA,...e.map(e=>e.toLowerCase())]}function NA(){return N()?.getIntegrationByName(`Replay`)}var PA=Object.defineProperty,FA=(e,t,n)=>t in e?PA(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,IA=(e,t,n)=>FA(e,typeof t==`symbol`?t:t+``,n),LA=class{constructor(){IA(this,`idNodeMap`,new Map),IA(this,`nodeMetaMap`,new WeakMap)}getId(e){return e?this.getMeta(e)?.id??-1:-1}getNode(e){return this.idNodeMap.get(e)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(e){return this.nodeMetaMap.get(e)||null}removeNodeFromMap(e){let t=this.getId(e);this.idNodeMap.delete(t),e.childNodes&&e.childNodes.forEach(e=>this.removeNodeFromMap(e))}has(e){return this.idNodeMap.has(e)}hasNode(e){return this.nodeMetaMap.has(e)}add(e,t){let n=t.id;this.idNodeMap.set(n,e),this.nodeMetaMap.set(e,t)}replace(e,t){let n=this.getNode(e);if(n){let e=this.nodeMetaMap.get(n);e&&this.nodeMetaMap.set(t,e)}this.idNodeMap.set(e,t)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}};function RA(){return new LA}function zA(e,t){for(let n=e.classList.length;n--;){let r=e.classList[n];if(t.test(r))return!0}return!1}function BA(e,t,n=1/0,r=0){return!e||e.nodeType!==e.ELEMENT_NODE||r>n?-1:t(e)?r:BA(e.parentNode,t,n,r+1)}function VA(e,t){return n=>{let r=n;if(r===null)return!1;try{if(e){if(typeof e==`string`){if(r.matches(`.${e}`))return!0}else if(zA(r,e))return!0}return!!(t&&r.matches(t))}catch{return!1}}}var HA=`Please stop import mirror directly. Instead of that,\r
505now you can use replayer.getMirror() to access the mirror instance of a replayer,\r
506or you can use record.mirror to access the mirror instance during recording.`,UA={map:{},getId(){return console.error(HA),-1},getNode(){return console.error(HA),null},removeNodeFromMap(){console.error(HA)},has(){return console.error(HA),!1},reset(){console.error(HA)}};typeof window<`u`&&window.Proxy&&window.Reflect&&(UA=new Proxy(UA,{get(e,t,n){return t===`map`&&console.error(HA),Reflect.get(e,t,n)}}));function WA(e,t,n,r,i=window){let a=i.Object.getOwnPropertyDescriptor(e,t);return i.Object.defineProperty(e,t,r?n:{set(e){ZA(()=>{n.set.call(this,e)},0),a&&a.set&&a.set.call(this,e)}}),()=>WA(e,t,a||{},!0)}function GA(e,t,n){try{if(!(t in e))return()=>{};let r=e[t],i=n(r);return typeof i==`function`&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:r}})),e[t]=i,()=>{e[t]=r}}catch{return()=>{}}}Date.now().toString();function KA(e){if(!e)return null;try{return e.nodeType===e.ELEMENT_NODE?e:e.parentElement}catch{return null}}function qA(e,t,n,r,i){if(!e)return!1;let a=KA(e);if(!a)return!1;let o=VA(t,n);if(!i){let e=r&&a.matches(r);return o(a)&&!e}let s=BA(a,o),c=-1;return s<0?!1:(r&&(c=BA(a,VA(null,r))),s>-1&&c<0||s<c)}var JA={};function YA(e){let t=JA[e];if(t)return t;let n=window.document,r=window[e];if(n&&typeof n.createElement==`function`)try{let t=n.createElement(`iframe`);t.hidden=!0,n.head.appendChild(t);let i=t.contentWindow;i&&i[e]&&(r=i[e]),n.head.removeChild(t)}catch{}return JA[e]=r.bind(window)}function XA(...e){return YA(`requestAnimationFrame`)(...e)}function ZA(...e){return YA(`setTimeout`)(...e)}var QA=(e=>(e[e[`2D`]=0]=`2D`,e[e.WebGL=1]=`WebGL`,e[e.WebGL2=2]=`WebGL2`,e))(QA||{}),$A;function ej(e){$A=e}for(var tj=e=>$A?((...t)=>{try{return e(...t)}catch(e){if($A&&$A(e)===!0)return()=>{};throw e}}):e,nj=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789
506+/`,rj=typeof Uint8Array>`u`?[]:new Uint8Array(256),ij=0;ij<nj.length;ij++)rj[nj.charCodeAt(ij)]=ij;var aj=function(e){var t=new Uint8Array(e),n,r=t.length,i=``;for(n=0;n<r;n+=3)i+=nj[t[n]>>2],i+=nj[(t[n]&3)<<4|t[n+1]>>4],i+=nj[(t[n+1]&15)<<2|t[n+2]>>6],i+=nj[t[n+2]&63];return r%3==2?i=i.substring(0,i.length-1)+`=`:r%3==1&&(i=i.substring(0,i.length-2)+`==`),i},oj=new Map;function sj(e,t){let n=oj.get(e);return n||(n=new Map,oj.set(e,n)),n.has(t)||n.set(t,[]),n.get(t)}var cj=(e,t,n)=>{if(!e||!(dj(e,t)||typeof e==`object`))return;let r=e.constructor.name,i=sj(n,r),a=i.indexOf(e);return a===-1&&(a=i.length,i.push(e)),a};function lj(e,t,n){if(e instanceof Array)return e.map(e=>lj(e,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)return{rr_type:e.constructor.name,base64:aj(e)};if(e instanceof DataView)return{rr_type:e.constructor.name,args:[lj(e.buffer,t,n),e.byteOffset,e.byteLength]};if(e instanceof HTMLImageElement){let t=e.constructor.name,{src:n}=e;return{rr_type:t,src:n}}return e instanceof HTMLCanvasElement?{rr_type:`HTMLImageElement`,src:e.toDataURL()}:e instanceof ImageData?{rr_type:e.constructor.name,args:[lj(e.data,t,n),e.width,e.height]}:dj(e,t)||typeof e==`object`?{rr_type:e.constructor.name,index:cj(e,t,n)}:e}var uj=(e,t,n)=>e.map(e=>lj(e,t,n)),dj=(e,t)=>!![`WebGLActiveInfo`,`WebGLBuffer`,`WebGLFramebuffer`,`WebGLProgram`,`WebGLRenderbuffer`,`WebGLShader`,`WebGLShaderPrecisionFormat`,`WebGLTexture`,`WebGLUniformLocation`,`WebGLVertexArrayObject`,`WebGLVertexArrayObjectOES`].filter(e=>typeof t[e]==`function`).find(n=>e instanceof t[n]);function fj(e,t,n,r,i){let a=[],o=Object.getOwnPropertyNames(t.CanvasRenderingContext2D.prototype);for(let s of o)try{if(typeof t.CanvasRenderingContext2D.prototype[s]!=`function`)continue;let o=GA(t.CanvasRenderingContext2D.prototype,s,function(a){return function(...o){return qA(this.canvas,n,r,i,!0)||ZA(()=>{let n=uj(o,t,this);e(this.canvas,{type:QA[`2D`],property:s,args:n})},0),a.apply(this,o)}});a.push(o)}catch{let n=WA(t.CanvasRenderingContext2D.prototype,s,{set(t){e(this.canvas,{type:QA[`2D`],property:s,args:[t],setter:!0})}});a.push(n)}return()=>{a.forEach(e=>e())}}function pj(e){return e===`experimental-webgl`?`webgl`:e}function mj(e,t,n,r,i){let a=[];try{let o=GA(e.HTMLCanvasElement.prototype,`getContext`,function(e){return function(a,...o){if(!qA(this,t,n,r,!0)){let e=pj(a);if(`__context`in this||(this.__context=e),i&&[`webgl`,`webgl2`].includes(e)){if(o[0]&&typeof o[0]==`object`){let e=o[0];e.preserveDrawingBuffer||=!0}else o.splice(0,1,{preserveDrawingBuffer:!0})}}return e.apply(this,[a,...o])}});a.push(o)}catch{console.error(`failed to patch HTMLCanvasElement.prototype.getContext`)}return()=>{a.forEach(e=>e())}}function hj(e,t,n,r,i,a,o,s){let c=[],l=Object.getOwnPropertyNames(e);for(let o of l)if(![`isContextLost`,`canvas`,`drawingBufferWidth`,`drawingBufferHeight`].includes(o))try{if(typeof e[o]!=`function`)continue;let l=GA(e,o,function(e){return function(...c){let l=e.apply(this,c);if(cj(l,s,this),`tagName`in this.canvas&&!qA(this.canvas,r,i,a,!0)){let e=uj(c,s,this),r={type:t,property:o,args:e};n(this.canvas,r)}return l}});c.push(l)}catch{let r=WA(e,o,{set(e){n(this.canvas,{type:t,property:o,args:[e],setter:!0})}});c.push(r)}return c}function gj(e,t,n,r,i,a){let o=[];return o.push(...hj(t.WebGLRenderingContext.prototype,QA.WebGL,e,n,r,i,a,t)),t.WebGL2RenderingContext!==void 0&&o.push(...hj(t.WebGL2RenderingContext.prototype,QA.WebGL2,e,n,r,i,a,t)),()=>{o.forEach(e=>e())}}var _j=`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;
506if("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 vj(){let e=new Blob([_j]);return URL.createObjectURL(e)}var yj=class{constructor(e){this.pendingCanvasMutations=new Map,this.rafStamps={latestId:0,invokeId:null},this.shadowDoms=new Set,this.windowsSet=new WeakSet,this.windows=[],this.restoreHandlers=[],this.frozen=!1,this.locked=!1,this.snapshotInProgressMap=new Map,this.worker=null,this.lastSnapshotTime=0,this.processMutation=(e,t)=>{(this.rafStamps.invokeId&&this.rafStamps.latestId!==this.rafStamps.invokeId||!this.rafStamps.invokeId)&&(this.rafStamps.invokeId=this.rafStamps.latestId),this.pendingCanvasMutations.has(e)||this.pendingCanvasMutations.set(e,[]),this.pendingCanvasMutations.get(e).push(t)};let{enableManualSnapshot:t,sampling:n=`all`,win:r,recordCanvas:i,errorHandler:a}=e;e.sampling=n,this.mutationCb=e.mutationCb,this.mirror=e.mirror,this.options=e,a&&ej(a),(i&&typeof n==`number`||t)&&(this.worker=this.initFPSWorker()),this.addWindow(r),!t&&tj(()=>{i&&n===`all`&&(this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher()),i&&typeof n==`number`&&this.initCanvasFPSObserver()})()}reset(){this.pendingCanvasMutations.clear(),this.restoreHandlers.forEach(e=>{try{e()}catch{}}),this.restoreHandlers=[],this.windowsSet=new WeakSet,this.windows=[],this.shadowDoms=new Set,this.worker?.terminate(),this.worker=null,this.snapshotInProgressMap=new Map}freeze(){this.frozen=!0}unfreeze(){this.frozen=!1}lock(){this.locked=!0}unlock(){this.locked=!1}addWindow(e){let{sampling:t=`all`,blockClass:n,blockSelector:r,unblockSelector:i,recordCanvas:a,enableManualSnapshot:o}=this.options;if(!this.windowsSet.has(e)){if(o){this.windowsSet.add(e),this.windows.push(new WeakRef(e));return}tj(()=>{if(a&&t===`all`&&this.initCanvasMutationObserver(e,n,r,i),a&&typeof t==`number`){let t=mj(e,n,r,i,!0);this.restoreHandlers.push(()=>{t()})}})(),this.windowsSet.add(e),this.windows.push(new WeakRef(e))}}addShadowRoot(e){this.shadowDoms.add(new WeakRef(e))}resetShadowRoots(){this.shadowDoms=new Set}snapshot(e,t){if(t?.skipRequestAnimationFrame){this.takeSnapshot(performance.now(),!0,e);return}XA(t=>this.takeSnapshot(t,!0,e))}initFPSWorker(){let e=new Worker(vj());return e.onmessage=e=>{let t=e.data,{id:n}=t;if(this.snapshotInProgressMap.set(n,!1),!(`base64`in t))return;let{base64:r,type:i,width:a,height:o}=t;this.mutationCb({id:n,type:QA[`2D`],commands:[{property:`clearRect`,args:[0,0,a,o]},{property:`drawImage`,args:[{rr_type:`ImageBitmap`,args:[{rr_type:`Blob`,data:[{rr_type:`ArrayBuffer`,base64:r}],type:i}]},0,0,a,o]}]})},e}initCanvasFPSObserver(){let e;if(!this.windows.length&&!this.shadowDoms.size)return;let t=n=>{this.takeSnapshot(n,!1),e=XA(t)};e=XA(t),this.restoreHandlers.push(()=>{e&&cancelAnimationFrame(e)})}initCanvasMutationObserver(e,t,n,r){let i=mj(e,t,n,r,!1),a=fj(this.processMutation.bind(this),e,t,n,r),o=gj(this.processMutation.bind(this),e,t,n,r,this.mirror);this.restoreHandlers.push(()=>{i(),a(),o()})}getCanvasElements(e,t,n){let r=[],i=i=>{i.querySelectorAll(`canvas`).forEach(i=>{qA(i,e,t,n,!0)||r.push(i)})};for(let e of this.windows){let t=e.deref(),n;try{n=t&&t.document}catch{}n&&i(n)}for(let e of this.shadowDoms){let t=e.deref();t&&i(t)}return r}takeSnapshot(e,t,n){let{sampling:r,blockClass:i,blockSelector:a,unblockSelector:o,dataURLOptions:s,maxCanvasSize:c}=this.options,l=1e3/(r===`all`?2:r||2);return this.lastSnapshotTime&&e-this.lastSnapshotTime<l?!1:(this.lastSnapshotTime=e,(n?[n]:this.getCanvasElements(i,a,o)).forEac
506h(e=>{let n=this.mirror.getId(e);if(this.mirror.hasNode(e)&&e.width&&e.height&&!this.snapshotInProgressMap.get(n)){if(this.snapshotInProgressMap.set(n,!0),!t&&[`webgl`,`webgl2`].includes(e.__context)){let t=e.getContext(e.__context);t?.getContextAttributes()?.preserveDrawingBuffer===!1&&t.clear(t.COLOR_BUFFER_BIT)}createImageBitmap(e).then(t=>{this.worker?.postMessage({id:n,bitmap:t,width:e.width,height:e.height,dataURLOptions:s,maxCanvasSize:c},[t])}).catch(e=>{tj(()=>{throw this.snapshotInProgressMap.delete(n),e})()})}}),!0)}startPendingCanvasMutationFlusher(){XA(()=>this.flushPendingCanvasMutations())}startRAFTimestamping(){let e=t=>{this.rafStamps.latestId=t,XA(e)};XA(e)}flushPendingCanvasMutations(){this.pendingCanvasMutations.forEach((e,t)=>{let n=this.mirror.getId(t);this.flushPendingCanvasMutationFor(t,n)}),XA(()=>this.flushPendingCanvasMutations())}flushPendingCanvasMutationFor(e,t){if(this.frozen||this.locked)return;let n=this.pendingCanvasMutations.get(e);if(!n||t===-1)return;let r=n.map(e=>{let{type:t,...n}=e;return n}),{type:i}=n[0];this.mutationCb({id:t,type:i,commands:r}),this.pendingCanvasMutations.delete(e)}};try{if(Array.from([1],e=>e*2)[0]!==2){let e=document.createElement(`iframe`);document.body.appendChild(e),Array.from=e.contentWindow?.Array.from||Array.from,document.body.removeChild(e)}}catch(e){console.debug(`Unable to override Array.from`,e)}RA();var bj;(function(e){e[e.NotStarted=0]=`NotStarted`,e[e.Running=1]=`Running`,e[e.Stopped=2]=`Stopped`})(bj||={});var xj={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}}},Sj=`ReplayCanvas`,Cj=1280,wj=I(((e={})=>{let[t,n]=e.maxCanvasSize||[],r={quality:e.quality||`medium`,enableManualSnapshot:e.enableManualSnapshot,maxCanvasSize:[t?Math.min(t,Cj):Cj,n?Math.min(n,Cj):Cj]},i,a,o=new Promise(e=>a=e);return{name:Sj,getOptions(){let{quality:e,enableManualSnapshot:t,maxCanvasSize:n}=r;return{enableManualSnapshot:t,recordCanvas:!0,getCanvasManager:e=>{let r=new yj({...e,enableManualSnapshot:t,maxCanvasSize:n,errorHandler:e=>{try{typeof e==`object`&&(e.__rrweb__=!0)}catch{}}});return i=r,a(r),r},...xj[e]||xj.medium}},async snapshot(e,t){(i||await o).snapshot(e,t)}}}));function Tj(e){return e.split(`,`).some(e=>e.trim().startsWith(`sentry-`))}function Ej(e){try{return new URL(e,G.location.origin).href}catch{return}}function Dj(e){return e.entryType===`resource`&&`initiatorType`in e&&typeof e.nextHopProtocol==`string`&&(e.initiatorType===`fetch`||e.initiatorType===`xmlhttprequest`)}function Oj(e){try{return new Headers(e)}catch{return}}var kj={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0};function Aj(e,t){let{traceFetch:n,traceXHR:r,shouldCreateSpanForRequest:i,enableHTTPTimings:a,tracePropagationTargets:o,onRequestSpanStart:s,onRequestSpanEnd:c}
506={...kj,...t},l=typeof i==`function`?i:e=>!0,u=e=>Nj(e,o),d={},f=e.getOptions().propagateTraceparent;n&&Vp(t=>{let n=Op(t,l,u,d,{propagateTraceparent:f,onRequestSpanEnd:c,urlBase:G.location?.origin});if(n){let r=Ej(t.fetchData.url),i=r?od(r).host?.replace(/^.*@/,``):void 0,o=r?cd(r):void 0;n.setAttributes({[hr]:Zu(o),[ur]:i}),a&&Mj(n,e),s?.(n,{headers:t.headers})}}),r&&Qb(t=>{let n=Pj(t,l,u,d,f,c);n&&(a&&Mj(n,e),s?.(n,{headers:Oj(t.xhr.__sentry_xhr_v3__?.request_headers)}))})}var jj=300;function Mj(e,t){let n=P(e).attributes[hr];if(!n||typeof n!=`string`)return;let r=()=>void setTimeout(i);if(L(t)){let t=e.end.bind(e);e.end=e=>{let n=e??Ht(),a=!1,o=()=>{a||(a=!0,setTimeout(i),t(n),clearTimeout(s))};r=o;let s=setTimeout(o,jj)}}let i=Tv(`resource`,({entries:t})=>{t.forEach(t=>{Dj(t)&&t.name.endsWith(n)&&(e.setAttributes(ny(t)),r())})})}function Nj(e,t){let n=fb();if(n){let r,i;try{r=new URL(e,n),i=new URL(n).origin}catch{return!1}let a=r.origin===i;return t?Cd(r.toString(),t)||a&&Cd(r.pathname,t):a}{let n=!!e.match(/^\/(?!\/)/);return t?Cd(e,t):n}}function Pj(e,t,n,r,i,a){let o=e.xhr,s=o?.[Zb];if(!o||o.__sentry_own_request__||!s)return;let{url:c,method:l}=s,u=ea()&&t(c);if(e.endTimestamp){let t=o.__sentry_xhr_span_id__;if(!t)return;let n=r[t];n&&(u&&s.status_code!==void 0&&(Ur(n,s.status_code),n.end(),a?.(n,{headers:Oj(ax(o)),error:e.error})),delete r[t]);return}let d=Ej(c),f=od(d||c),p=d?cd(d):void 0,m=cd(sd(c)),h=N(),g=!!F(),_=g||!!h&&L(h),v=f?.host?.replace(/^.*@/,``),y=ad(d||c),b=y?`${l} ${y}`:l,x=u&&_?hs({name:h&&L(h)?b:`${l} ${m}`,attributes:{type:`xhr`,[Un]:l,[hr]:Zu(p),[ur]:v,[pr]:y,[wr]:`auto.http.browser`,[er]:oc,[_r]:Qu(rd(f?.search)),[mr]:id(f?.hash)}}):new ha,S=ls(x)&&g?void 0:x;return u&&!_&&h?.recordDroppedEvent(`no_parent_span`,`span`),o.__sentry_xhr_span_id__=x.spanContext().spanId,r[o.__sentry_xhr_span_id__]=x,n(c)&&Fj(o,ea()&&_?S:void 0,i),h&&h.emit(`beforeOutgoingRequestSpan`,x,e),x}function Fj(e,t,n){let{"sentry-trace":r,baggage:i,traceparent:a}=vd({span:t,propagateTraceparent:n});r&&Ij(e,r,i,a)}function Ij(e,t,n,r){let i=e.__sentry_xhr_v3__?.request_headers;if(!i?.[`sentry-trace`]&&e.setRequestHeader)try{if(e.setRequestHeader(`sentry-trace`,t),r&&!i?.traceparent&&e.setRequestHeader(`traceparent`,r),n){let t=i?.baggage;(!t||!Tj(t))&&e.setRequestHeader(`baggage`,n)}}catch{}}var Lj=`WebVitals`,Rj=I((e={})=>{let{ignore:t=[],softNavigations:n=!0,bfcacheNavigations:r=!0}=e,i=new Set(t);return{name:Lj,setup(e){let t=L(e),a=n&&t&&qv(),o=r&&t,s=a||o;a&&(vv(),Jv(e)),o&&yv();let c=!t&&!i.has(`cls`),l=!t&&!i.has(`lcp`),u=zy({trackCls:c,trackLcp:l,client:e}),d=new WeakSet;e.on(`afterStartPageLoadSpan`,e=>{d.add(e)}),e.on(`spanEnd`,e=>{d.delete(e)&&(u(),Gy(e,{recordClsOnPageloadSpan:c,recordLcpOnPageloadSpan:l,spanStreamingEnabled:t}))}),t&&(i.has(`lcp`)||wb(e,s),i.has(`cls`)||Eb(e,s)),i.has(`inp`)||Ob(e,s)},afterAllSetup(){i.has(`inp`)||rb()}}});function zj(){G.document?G.document.addEventListener(`visibilitychange`,()=>{let e=F();if(!e)return;let t=qi(e);if(G.document.hidden&&t){let e=`cancelled`,{attributes:{[er]:n},status:r}=P(t);K&&k.log(`[Tracing] Transaction: ${e} -> since tab moved to the background, op: ${n}`),r===`ok`&&t.setStatus({code:2,message:e}),t.setAttribute(`sentry.cancellation_reason`,`document.hidden`),t.end()}}):K&&k.warn(`[Tracing] Could not set up background tab detection due to lack of global document`)}var Bj=`sentry_previous_trace`,Vj=`sentry.previous_trace`;function Hj(e,{linkPreviousTrace:t,consistentTraceSampling:n}){let r=t===`session-storage`,i=r?Gj():void 0;e.on(`spanStart`,e=>{if(qi(e)!==e)return;let t=j().getPropagationContext();i=Uj(i,e,t),r&&Wj(i)});let a=!0;n&&e.on(`beforeSampling`,e=>{if(!i)return;let t=j(),n=t.getPropagationContext();if(a&&n.parentSpanId){a=!1;return}t.setPropagationContext({...n,dsc:{...n.dsc,sample_rate:String(i.sampleRate),sampled:String(Kj(i.spanContext))},sampleRand:i.sampleRand}),e.parentSampled=Kj(i.spanContext),e.parentSampleRate=i.sampleRate,e.spanAttributes={...e.spanAttributes,[Sr]:i.sampleRate}})}function Uj(e,t,n){let r=P(t);function i(){try{let e=Number(r.attributes[`sentry.sample_rate`]??n.dsc?.sample_rate);return Number.isNaN(e)?0:e}catch{return 0}}let a={spanContext:t.spanContext(),startTimestamp:r.start_timestamp,sampleRate:i(),sampleRand:n.sampleRand};if(!e)return a;let o=e.spanContext;return o.traceId===r.trace_id?e:(Date.now()/1e3-e.startTimestamp<=3600&&(K&&k.log(`Adding previous_trace \`${JSON.stringify(o)}\` link to span \`${JSON.stringify({op:r.attributes[er],...t.spanContext()})}\``),t.addLink({context:o,attributes:{[Rr]:`previous_trace`}}),t.setAttribute(Vj,`${o.traceId}-${o.spanId}-${+!!Kj(o)}`)),a)}function Wj(e){try{G.sessionStorage.setItem(Bj,JSON.stringify(e))}catch(e){K&&k.warn(`Could not store previous trace in sessionStorage`,e)}}function Gj(){try{let e=G.sessionStorage?.getItem(Bj);return JSON.parse(e)}catch{return}}function Kj(e){return e.traceFlags===1}var qj=`BrowserTracing`,Jj={...gs,instrumentNavigation:!0,instrumentBfcacheRestore:!0,instrumentPageLoad:!0,markBackgroun
506dSpan:!0,enableLongTask:!0,enableLongAnimationFrame:!0,enableInp:!0,ignoreResourceSpans:[],detectRedirects:!0,linkPreviousTrace:`in-memory`,consistentTraceSampling:!1,enableReportPageLoaded:!1,...kj},Yj=((e={})=>{`enableElementTiming`in e&&re(()=>{console.warn("[Sentry] `enableElementTiming` is deprecated and no longer has any effect. Use the standalone `elementTimingIntegration` instead.")});let t=G.document,{enableInp:n,enableLongTask:r,enableLongAnimationFrame:i,webVitals:a,beforeStartSpan:o,idleTimeout:s,finalTimeout:c,childSpanTimeout:l,markBackgroundSpan:u,traceFetch:d,traceXHR:f,shouldCreateSpanForRequest:p,enableHTTPTimings:m,ignoreResourceSpans:h,instrumentPageLoad:g,instrumentNavigation:_,instrumentBfcacheRestore:v,detectRedirects:y,linkPreviousTrace:b,consistentTraceSampling:x,enableReportPageLoaded:S,onRequestSpanStart:w,onRequestSpanEnd:T}={...Jj,...e},E=ab(),D,ee;function te(e,n,r=!0,i){let a=n.op===`pageload`,u=n.name,d=o?o(n):n,f=td(i||fb()),p={...f?.pathname&&{"url.path":f.pathname},...f&&!ed(f)&&{"url.full":Zu(f.href)},...d.attributes};if(u!==d.name&&(p[sr]=`custom`),d.attributes=p,!r){let e=zt();hs({...d,startTime:e}).end(e);return}let m=xs(d,{idleTimeout:s,finalTimeout:c,childSpanTimeout:l,disableAutoFinish:a,trimIdleSpanEndTimestamp:!S});a&&S&&(ee=m),nM(e,m);function h(){t&&[`interactive`,`complete`].includes(t.readyState)&&(e.emit(`idleSpanEnableAutoFinish`,m),t.removeEventListener(`readystatechange`,h))}a&&!S&&t&&(t.addEventListener(`readystatechange`,h),h())}return{name:qj,setup(e){if(E){K&&k.log(`[Tracing] Skipping browserTracingIntegration setup for bot user agent.`);return}if($i(),i&&C.PerformanceObserver&&PerformanceObserver.supportedEntryTypes?.includes(`long-animation-frame`)?sy():r&&oy(),y&&t){let e=()=>{D=Ht()};addEventListener(`click`,e,{capture:!0}),addEventListener(`keydown`,e,{capture:!0,passive:!0})}function n(){let t=tM(e);t&&!P(t).end_timestamp&&(K&&k.log(`[Tracing] Finishing current active span with op: ${P(t).attributes[`sentry.op`]}`),t.setAttribute($n,`cancelled`),t.end())}e.on(`beforeIdleSpanEnd`,t=>{if(tM(e)!==t)return;cy(t,{ignoreResourceSpans:h,spanStreamingEnabled:L(e)}),nM(e,void 0);let n=j(),r=n.getPropagationContext();n.setPropagationContext({...r,traceId:t.spanContext().traceId,sampled:Ri(t),dsc:xa(t)}),ee===t&&(ee=void 0)}),e.on(`startNavigationSpan`,(t,r)=>{if(N()!==e)return;if(r?.isRedirect){K&&k.warn(`[Tracing] Detected redirect, navigation span will not be the root span, but a child span.`),te(e,{op:Rs,...t},!1,r.url);return}D=void 0,n();let i=j();i.setPropagationContext({traceId:Zt(),sampleRand:Math.random(),propagationSpanId:ea()?void 0:Qt()}),i.setSDKProcessingMetadata({normalizedRequest:void 0}),te(e,{op:Ls,...t,parentSpan:null},!0,r?.url)}),e.on(`startPageLoadSpan`,(t,r={})=>{if(N()!==e)return;n();let i=_i(r.sentryTrace||Qj(`sentry-trace`)||$j(`sentry-trace`),r.baggage||Qj(`baggage`)||$j(`baggage`)),a=j();a.setPropagationContext(i),ea()||(a.getPropagationContext().propagationSpanId=Qt()),a.setSDKProcessingMetadata({normalizedRequest:hx()}),te(e,{op:Is,...t})}),e.on(`endPageloadSpan`,()=>{S&&ee&&(ee.setAttribute($n,`reportPageLoaded`),ee.end())}),G.addEventListener?.(`pagehide`,()=>{let t=tM(e);t&&!P(t).end_timestamp&&(t.setAttribute($n,`documentHidden`),t.end()),e.flush()})},afterAllSetup(e){if(E)return;if(fs(e),e.addIntegration&&!e.getIntegrationByName?.(`WebVitals`)){let t=a?.ignore??[];e.addIntegration(Rj({...a,ignore:n||t.includes(`inp`)?t:[...t,`inp`]}))}let t=fb();b!==`off`&&Hj(e,{linkPreviousTrace:b,consistentTraceSampling:x}),G.location&&(g&&Xj(e,{name:L(e)?cc:G.location.pathname,attributes:{[sr]:`url`,[tr]:`auto.pageload.browser`}}),_&&Wb(({to:n,from:r})=>{if(r===void 0&&t!==void 0&&t.indexOf(n)!==-1){t=void 0;return}t=void 0;let i=td(n),a=tM(e),o=a&&y&&iM(a,D);Zj(e,{name:L(e)?lc:i?.pathname||G.location.pathname,attributes:{[sr]:`url`,[tr]:`auto.navigation.browser`}},{url:n,isRedirect:o})}),v&&G.addEventListener?.(`pageshow`,n=>{n.persisted&&(t=void 0,Zj(e,{name:L(e)?lc:G.location?.pathname||`/`,attributes:{[sr]:`url`,[tr]:`auto.navigation.browser.bfcache`,[Pn]:`back-forward-cache`}},{url:G.location?.href}))})),u&&zj(),Aj(e,{traceFetch:d,traceXHR:f,tracePropagationTargets:e.getOptions().tracePropagationTargets,shouldCreateSpanForRequest:p,enableHTTPTimings:m,onRequestSpanStart:w,onRequestSpanEnd:T})}}});function Xj(e,t,n){let r=t.name===cc;j().setTransactionName(r?G.location?.pathname:t.name);let i=Gt(),a={...t,startTime:t.startTime??(i?i/1e3:void 0)};e.emit(`startPageLoadSpan`,a,n);let o=tM(e);return o&&e.emit(`afterStartPageLoadSpan`,o),o}function Zj(e,t,n){let{url:r,isRedirect:i}=n||{};e.emit(`beforeStartNavigationSpan`,t,{isRedirect:i,url:r}),e.emit(`startNavigationSpan`,t,{isRedirect:i,url:r});let a=j(),o=t.name===lc;return a.setTransactionName(o?r&&td(r)?.pathname||G.location?.pathname:t.name),r&&!i&&a.setSDKProcessingMetadata({normalizedRequest:{...hx(),url:r}}),tM(e)}function Qj(e){return(G.document?.querySelector(`meta[name=${e}]`))?.getAttribute(`content`)||void 0}function $j(e){return(G.performance?.getEntriesByType?.(`navigation`)[0])?.serverTiming?.find(t=>t.name===e)?.description}var eM=`_sentry_idleSpan`;function tM(e){return e[eM]}function nM(e,t){Ye(e,eM,t)}var rM=1.5;function iM(e,t){let n=P(e),r=zt();return!(r-n.start_timestamp>rM||t&&r-t<=rM)}function aM(e=N()){e?.emit(`endPageloadSpan`)}function oM(e){let t=F();if(t===e)return;let n=j();
506e.end=new Proxy(e.end,{apply(e,r,i){return Ci(n,t),Reflect.apply(e,r,i)}}),Ci(n,e)}var sM=new WeakMap,cM=new WeakMap,lM=9e4,uM=[`text/event-stream`,`application/x-ndjson`,`application/stream+json`],dM=I(()=>({name:`FetchStreamPerformance`,setup(e){Hp(e=>{if(e.response){let t=sM.get(e.response);if(t&&e.endTimestamp){t.end(e.endTimestamp);let n=cM.get(e.response);n&&clearTimeout(n)}}}),Vp(t=>{if(t.endTimestamp&&t.response){let n=t.response.headers?.get(`content-type`)||``;if(t.response.headers?.get(`content-length`)||!uM.some(e=>n.startsWith(e)))return;let r=t.fetchData?.url||``,i=t.fetchData?.method||`GET`,a=td(r),o=r.startsWith(`data:`)?cd(r):a?nd(a):r,s=ad(r,G.location?.origin),c=s?`${i} ${s}`:i,l=hs({name:L(e)?c:`${i} ${o}`,startTime:t.endTimestamp,attributes:{[hr]:Zu(cd(r)),[pr]:s,[Un]:i,type:`fetch`,[er]:sc,[wr]:`auto.http.browser.stream`}});sM.set(t.response,l);let u=setTimeout(()=>{l.isRecording()&&l.end()},lM);cM.set(t.response,u)}})}})),fM=`BfcacheMetrics`,pM=I((e={})=>{let t=_M(e.maxReasons);return{name:fM,setupOnce(){if(!G.addEventListener||!G.performance?.getEntriesByType){K&&k.log(`[${fM}] Browser APIs unavailable, skipping instrumentation.`);return}function e(e){let n=gM();if(e.persisted){mM(`hit`,0,n);return}let r=G.performance.getEntriesByType(`navigation`)[0];if(r?.type!==`back_forward`)return;let i=vM(r.notRestoredReasons,t);mM(`miss`,i.length,n),typeof r.duration==`number`&&r.duration>0&&vm(`browser.bfcache.reload.duration`,r.duration,{unit:`millisecond`,attributes:bM({[or]:n})}
506),i.forEach(e=>hM(e,n))}G.addEventListener(`pageshow`,e,!0)}}});function mM(e,t,n){gm(`browser.bfcache.navigation`,1,{attributes:bM({[jn]:e,[An]:t||void 0,[or]:n})})}function hM({reason:e,frame:t},n){gm(`browser.bfcache.not_restored`,1,{attributes:bM({[Mn]:e,[kn]:t,[or]:n})})}function gM(){return j().getScopeData().transactionName||G.location?.pathname}function _M(e){return e==null?1/0:e<1?(K&&k.warn(`[${fM}] \`maxReasons\` must be at least 1, got ${e}. Using 1 instead.`),1):e}function vM(e,t){let n=[];return!e||t<=0||yM(e,`top`,n,t),n}function yM(e,t,n,r){n.length>=r||(e.reasons?.forEach(e=>{if(n.length>=r)return;let i=typeof e==`string`?e:e.reason;i&&n.push({reason:i,frame:t})}),e.children?.forEach(e=>{yM(e,`child`,n,r)}))}function bM(e){return e[tr]=`auto.browser.bfcache`,e}function xM(e){return new Promise((t,n)=>{e.oncomplete=e.onsuccess=()=>t(e.result),e.onabort=e.onerror=()=>n(e.error)})}function SM(e,t){let n=indexedDB.open(e);n.onupgradeneeded=()=>n.result.createObjectStore(t);let r=xM(n);return e=>r.then(n=>e(n.transaction(t,`readwrite`).objectStore(t)))}function CM(e){return xM(e.getAllKeys())}function wM(e,t,n){return e(e=>CM(e).then(r=>{if(!(r.length>=n))return e.put(t,Math.max(...r,0)+1),xM(e.transaction)}))}function TM(e,t,n){return e(e=>CM(e).then(r=>{if(!(r.length>=n))return e.put(t,Math.min(...r,0)-1),xM(e.transaction)}))}function EM(e){return e(e=>CM(e).then(t=>{let n=t[0];if(n!=null)return xM(e.get(n)).then(t=>(e.delete(n),xM(e.transaction).then(()=>t)))}))}function DM(e){let t;function n(){return t??=SM(e.dbName||`sentry-offline`,e.storeName||`queue`),t}return{push:async t=>{try{let r=no(t);await wM(n(),r,e.maxQueueSize||30)}catch{}},unshift:async t=>{try{let r=no(t);await TM(n(),r,e.maxQueueSize||30)}catch{}},shift:async()=>{try{let e=await EM(n());if(e)return io(e)}catch{}}}}function OM(e){return t=>{let n=e({...t,createStore:DM});return G.addEventListener(`online`,async e=>{await n.flush()}),n}}function kM(e=Wx){return OM(Mu(e))}var AM=`window`in C&&C.window===C&&typeof importScripts>`u`,jM=`0`,MM=AM?`main`:`worker`;function NM(e,t,n){if(e==null)throw TypeError(`Cannot construct profiling event envelope without a valid profile. Got ${e} instead.`);let r=FM(e),i=t.getOptions(),a=t.getSdkMetadata?.()?.sdk;return{chunk_id:Ot(),client_sdk:{name:a?.name??`sentry.javascript.browser`,version:a?.version??`0.0.0`},profiler_id:n||Ot(),platform:`javascript`,version:`2`,release:i.release??``,environment:i.environment??`production`,debug_meta:{images:IM(e.resources)},profile:r}}function PM(e){try{if(!e||typeof e!=`object`)return{reason:`chunk is not an object`};let t=e=>typeof e==`string`&&/^[a-f0-9]{32}$/.test(e);if(!t(e.profiler_id))return{reason:`missing or invalid profiler_id`};if(!t(e.chunk_id))return{reason:`missing or invalid chunk_id`};if(!e.client_sdk)return{reason:`missing client_sdk metadata`};let n=e.profile;return n?!Array.isArray(n.frames)||!n.frames.length?{reason:`profile has no frames`}:!Array.isArray(n.stacks)||!n.stacks.length?{reason:`profile has no stacks`}:!Array.isArray(n.samples)||!n.samples.length?{reason:`profile has no samples`}:{valid:!0}:{reason:`missing profile data`}}catch(e){return{reason:`unknown validation error: ${e}`}}}function FM(e){let t=[];for(let n=0;n<e.frames.length;n++){let r=e.frames[n];r&&(t[n]={function:r.name,abs_path:typeof r.resourceId==`number`?e.resources[r.resourceId]:void 0,lineno:r.line,colno:r.column})}let n=[];for(let t=0;t<e.stacks.length;t++){let r=e.stacks[t];if(!r)continue;let i=[],a=r;for(;a;)i.push(a.frameId),a=a.parentId===void 0?void 0:e.stacks[a.parentId];n[t]=i}let r=Gt(),i=typeof performance.timeOrigin==`number`?performance.timeOrigin:r||0,a=i-(r||i),o=[];for(let t=0;t<e.samples.length;t++){let n=e.samples[t];if(!n)continue;let r=(i+(n.timestamp-a))/1e3;o[t]={stack_id:n.stackId??0,thread_id:jM,timestamp:r}}return{frames:t,stacks:n,samples:o,thread_metadata:{[jM]:{name:MM}}}}function IM(e){let t=N()?.getOptions()?.stackParser;return t?Mc(t,e):[]}function LM(e){return typeof e!=`number`&&typeof e!=`boolean`||typeof e==`number`&&isNaN(e)?(K&&k.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?(K&&k.warn(`[Profiling] Invalid sample rate. Sample rate must be between 0 and 1. Got ${e}.`),!1):!0}var RM=!1,zM=3e4;function BM(e){return typeof e==`function`}
506function VM(){let e=G.Profiler;if(!BM(e)){K&&k.log(`[Profiling] Profiling is not supported by this browser, Profiler interface missing on window object.`);return}let t=Math.floor(zM/10);try{return new e({sampleInterval:10,maxBufferSize:t})}catch{K&&(k.log(`[Profiling] Failed to initialize the Profiling constructor, this is likely due to a missing 'Document-Policy': 'js-profiling' header.`),k.log(`[Profiling] Disabling profiling for current user session.`)),RM=!0}}function HM(e){if(RM)return K&&k.log(`[Profiling] Profiling has been disabled for the duration of the current user session as the JS Profiler could not be started.`),!1;if(e.profileLifecycle!==`trace`&&e.profileLifecycle!==`manual`)return K&&k.warn("[Profiling] Session not sampled. Invalid `profileLifecycle` option."),!1;let t=e.profileSessionSampleRate;return LM(t)?t?Math.random()<=t:(K&&k.log(`[Profiling] Discarding profile because profileSessionSampleRate is not defined or set to 0`),!1):(K&&k.warn(`[Profiling] Discarding profile because of invalid profileSessionSampleRate.`),!1)}function UM(e){e.setAttribute(`thread.id`,jM),e.setAttribute(`thread.name`,MM)}var WM=6e4,GM=3e5,KM=class{constructor(){this._client=void 0,this._profiler=void 0,this._chunkTimer=void 0,this._profilerId=void 0,this._isRunning=!1,this._sessionSampled=!1,this._lifecycleMode=void 0,this._activeRootSpanIds=new Set,this._rootSpanTimeouts=new Map}initialize(e){let t=e.getOptions().profileLifecycle,n=HM(e.getOptions());K&&k.log(`[Profiling] Initializing profiler (lifecycle='${t}').`),n||K&&k.log(`[Profiling] Session not sampled. Skipping lifecycle profiler initialization.`),this._profilerId=Ot(),this._client=e,this._sessionSampled=n,this._lifecycleMode=t,t===`trace`&&this._setupTraceLifecycleListeners(e),e.on(`spanStart`,e=>{this._isRunning&&UM(e)})}start(){if(this._lifecycleMode===`trace`){K&&k.warn('[Profiling] `profileLifecycle` is set to "trace". Calls to `uiProfiler.start()` are ignored in trace mode.');return}if(this._isRunning){K&&k.warn("[Profiling] Profile session is already running, `uiProfiler.start()` is a no-op.");return}if(!this._sessionSampled){K&&k.warn("[Profiling] Session is not sampled, `uiProfiler.start()` is a no-op.");return}this._beginProfiling()}stop(){if(this._lifecycleMode===`trace`){K&&k.warn('[Profiling] `profileLifecycle` is set to "trace". Calls to `uiProfiler.stop()` are ignored in trace mode.');return}if(!this._isRunning){K&&k.warn("[Profiling] Profiler is not running, `uiProfiler.stop()` is a no-op.");return}this._endProfiling()}notifyRootSpanActive(e){if(this._lifecycleMode!==`trace`||!this._sessionSampled)return;let t=e.spanContext().spanId;if(!t||this._activeRootSpanIds.has(t))return;this._registerTraceRootSpan(t);let n=this._activeRootSpanIds.size;n===1&&(K&&k.log(`[Profiling] Detected already active root span during setup. Active root spans now:`,n),this._beginProfiling()),this._isRunning&&UM(e)}_beginProfiling(){if(!this._isRunning){if(this._isRunning=!0,K&&k.log(`[Profiling] Started profiling with profiler ID:`,this._profilerId),Tn().setContext(`profile`,{profiler_id:this._profilerId}),this._startProfilerInstance(),!this._profiler){K&&k.log(`[Profiling] Failed to start JS Profiler; stopping.`),this._resetProfilerInfo();return}this._startPeriodicChunking()}}_endProfiling(){this._isRunning&&(this._isRunning=!1,this._chunkTimer&&=(clearTimeout(this._chunkTimer),void 0),this._clearAllRootSpanTimeouts(),this._collectCurrentChunk().catch(e=>{K&&k.error("[Profiling] Failed to collect current profile chunk on `stop()`:",e)}),this._lifecycleMode===`manual`&&Tn().setContext(`profile`,{}))}_setupTraceLifecycleListeners(e){e.on(`spanStart`,e=>{if(!this._sessionSampled){K&&k.log(`[Profiling] Span not profiled because of negative sampling decision for user session.`);return}if(e!==qi(e))return;if(!e.isRecording()){K&&k.log(`[Profiling] Discarding profile because root span was not sampled.`);return}let t=e.spanContext().spanId;if(!t||this._activeRootSpanIds.has(t))return;this._registerTraceRootSpan(t);let n=this._activeRootSpanIds.size;n===1&&(K&&k.log(`[Profiling] Root span ${t} started. Profiling active while there are active root spans (count=${n}).`),this._beginProfiling())}),e.on(`spanEnd`,e=>
506{if(!this._sessionSampled)return;let t=e.spanContext().spanId;if(!t||!this._activeRootSpanIds.has(t))return;this._activeRootSpanIds.delete(t);let n=this._activeRootSpanIds.size;K&&k.log(`[Profiling] Root span with ID ${t} ended. Will continue profiling for as long as there are active root spans (currently: ${n}).`),n===0&&(this._collectCurrentChunk().catch(e=>{K&&k.error("[Profiling] Failed to collect current profile chunk on last `spanEnd`:",e)}),this._endProfiling())})}_resetProfilerInfo(){this._isRunning=!1,Tn().setContext(`profile`,{})}_clearAllRootSpanTimeouts(){this._rootSpanTimeouts.forEach(e=>clearTimeout(e)),this._rootSpanTimeouts.clear()}_registerTraceRootSpan(e){this._activeRootSpanIds.add(e);let t=setTimeout(()=>this._onRootSpanTimeout(e),GM);this._rootSpanTimeouts.set(e,t)}_startProfilerInstance(){if(this._profiler?.stopped===!1)return;let e=VM();if(!e){K&&k.log(`[Profiling] Failed to start JS Profiler.`);return}this._profiler=e}_startPeriodicChunking(){this._isRunning&&(this._chunkTimer=setTimeout(()=>{if(this._collectCurrentChunk().catch(e=>{K&&k.error(`[Profiling] Failed to collect current profile chunk during periodic chunking:`,e)}),this._isRunning){if(this._startProfilerInstance(),!this._profiler){this._resetProfilerInfo();return}this._startPeriodicChunking()}},WM))}_onRootSpanTimeout(e){this._rootSpanTimeouts.has(e)&&(this._rootSpanTimeouts.delete(e),this._activeRootSpanIds.has(e)&&(K&&k.log(`[Profiling] Reached 5-minute timeout for root span ${e}. You likely started a manual root span that never called \`.end()\`.`),this._activeRootSpanIds.delete(e),this._activeRootSpanIds.size===0&&this._endProfiling()))}async _collectCurrentChunk(){let e=this._profiler;if(this._profiler=void 0,e)try{let t=NM(await e.stop(),this._client,this._profilerId),n=PM(t);if(`reason`in n){K&&k.log(`[Profiling] Discarding invalid profile chunk (this is probably a bug in the SDK):`,n.reason);return}this._sendProfileChunk(t),K&&k.log(`[Profiling] Collected browser profile chunk.`)}catch(e){K&&k.log(`[Profiling] Error while stopping JS Profiler for chunk:`,e)}}_sendProfileChunk(e){let t=this._client,n=lo(t.getSdkMetadata?.()),r=t.getDsn(),i=t.getOptions().tunnel,a=Xa({event_id:Ot(),sent_at:new Date().toISOString(),...n&&{sdk:n},...!!i&&r&&{dsn:si(r)}},[[{type:`profile_chunk`,platform:`javascript`},e]]);t.sendEnvelope(a).then(null,e=>{K&&k.error(`Error while sending profile chunk envelope:`,e)})}},qM=`BrowserProfiling`,JM=I((()=>({name:qM,setup(e){let t=e.getOptions(),n=new KM;t.profileLifecycle||=`manual`;let r=F(),i=r&&qi(r),a=t.profileLifecycle;if(e.on(`startUIProfiler`,()=>n.start()),e.on(`stopUIProfiler`,()=>n.stop()),a===`manual`)n.initialize(e);else if(a===`trace`){if(!ea(t)){K&&k.warn("[Profiling] `profileLifecycle` is 'trace' but tracing is disabled. Set a `tracesSampleRate` or `tracesSampler` to enable span tracing.");return}n.initialize(e),i&&n.notifyRootSpanActive(i),G.setTimeout(()=>{let e=F(),t=e&&qi(e);t&&n.notifyRootSpanActive(t)},0)}}}))),YM=`SpotlightBrowser`,XM=[{op:$s,name:`#sentry-spotlight`},{op:$s,attributes:{"browser.web_vital.inp.target":`#sentry-spotlight`}}],ZM=((e={})=>{let t=e.sidecarUrl||`http://localhost:8969/stream`;return{name:YM,setup:()=>{K&&k.log(`Using Sidecar URL`,t)},beforeSetup(e){let t=e.getOptions();t.ignoreSpans=[...t.ignoreSpans||[],...XM]},afterAllSetup:e=>{QM(e,t)}}});function QM(e,t){let n=Jb(`fetch`),r=0;e.on(`beforeEnvelope`,e=>{if(r>3){k.warn(`[Spotlight] Disabled Sentry -> Spotlight integration due to too many failed requests:`,r);return}n(t,{method:`POST`,body:no(e),headers:{"Content-Type":`application/x-sentry-envelope`},mode:`cors`}).then(e=>{e.status>=200&&e.status<400&&(r=0)},e=>{r++,k.error(`Sentry SDK can't connect to Sidecar is it running? See: https://spotlightjs.com/sidecar/npx/`,e)})})}var $M=I(ZM),eN=I(()=>({name:`LaunchDarkly`,processEvent(e,t,n){return yp(e)}}));function tN(){return{name:`sentry-flag-auditor`,type:`flag-used`,synchronous:!0,method:(e,t,n)=>{bp(e,t.value),Sp(e,t.value)}}}var nN=I(()=>({name:`OpenFeature`,processEvent(e,t,n){return yp(e)}})),rN=class{after(e,t){bp(t.flagKey,t.value),Sp(t.flagKey,t.value)}error(e,t,n){bp(e.flagKey,e.defaultValue),Sp(e.flagKey,e.defaultValue)}},iN=I(({featureFlagClientClass:e})=>({name:`Unleash`,setupOnce(){let t=e.prototype;Je(t,`isEnabled`,aN)},processEvent(e,t,n){return yp(e)}}));function aN(e){return function(...t){let n=t[0],r=e.apply(this,t);return typeof n==`string`&&typeof r==`boolean`?(bp(n,r),Sp(n,r)):K&&k.error(`[Feature Flags] UnleashClient.isEnabled does not match expected signature. arg0: ${n} (${typeof n}), result: ${r} (${typeof r})`),r}}var oN=(({growthbookClass:e})=>wp({growthbookClass:e})),sN=I(({featureFlagClient:e})=>
506({name:`Statsig`,setup(t){e.on(`gate_evaluation`,e=>{bp(e.gate.name,e.gate.value),Sp(e.gate.name,e.gate.value)})},processEvent(e,t,n){return yp(e)}}));async function cN(){let e=N();if(!e)return`no-client-active`;if(!e.getDsn())return`no-dsn-configured`;let t=e.getOptions().tunnel||`https://o447951.ingest.sentry.io/api/4509632503087104/envelope/?sentry_version=7&sentry_key=c1dfb07d783ad5325c245c1fd3725390&sentry_client=sentry.javascript.browser%2F1.33.7`;try{await Zo(()=>fetch(t,{body:`{}`,method:`POST`,mode:`cors`,credentials:`omit`}))}catch{return`sentry-unreachable`}}var lN=`WebWorker`,uN=20,dN=I(({worker:e})=>({name:lN,setupOnce:()=>{(Array.isArray(e)?e:[e]).forEach(e=>fN(e))},addWorker:e=>fN(e)}));function fN(e){let t=[];e.addEventListener(`error`,({message:e,filename:n,lineno:r,colno:i})=>{let a=t.findIndex(t=>t.message===e&&t.url===n&&t.lineno===r&&t.colno===i);a!==-1&&(t.splice(0,a+1),dx({msg:e,url:n,line:r,column:i}))}),e.addEventListener(`message`,e=>{if(_N(e.data)){if(e.stopImmediatePropagation(),e.data._sentryDebugIds&&(K&&k.log(`Sentry debugId web worker message received`,e.data),G._sentryDebugIds={...e.data._sentryDebugIds,...G._sentryDebugIds}),e.data._sentryModuleMetadata&&(K&&k.log(`Sentry module metadata web worker message received`,e.data),G._sentryModuleMetadata={...e.data._sentryModuleMetadata,...G._sentryModuleMetadata}),e.data._sentryWasmImages){K&&k.log(`Sentry WASM images web worker message received`,e.data);let t=G._sentryWasmImages||[],n=e.data._sentryWasmImages.filter(e=>Ve(e)&&typeof e.code_file==`string`&&!t.some(t=>t.code_file===e.code_file));G._sentryWasmImages=[...t,...n]}if(e.data._sentryWorkerError){K&&k.log(`Sentry worker error message received`,e.data._sentryWorkerError);let{kind:n,message:r,url:i,lineno:a,colno:o}=e.data._sentryWorkerError;n===`error`&&t.push({message:r,url:i,lineno:a,colno:o})>uN&&t.shift(),pN(e.data._sentryWorkerError)}}})}function pN(e){let{reason:t,kind:n,name:r,filename:i,url:a,lineno:o,colno:s,plainError:c}=e,l=n!==`error`,u=c&&Ve(t)?gN(t):t;r&&Ne(u)&&u.name!==r&&Ye(u,`name`,r);let d=N();if(!d)return;let{stackParser:f,attachStacktrace:p}=d.getOptions(),m=l&&Be(u)?KS(u):Ix(f,u,void 0,p,l);l||qS(m,a||i,o,s),m.level=`error`,i&&(m.contexts={...m.contexts,worker:{filename:i}}),Kc(m,{originalException:u,mechanism:{handled:!1,type:l?`auto.browser.web_worker.onunhandledrejection`:`auto.browser.web_worker.onerror`}}),K&&k.log(`Captured worker ${l?`unhandled rejection`:`error`}`,u)}function mN({self:e}){Error.stackTraceLimit=50,e.postMessage({_sentryMessage:!0,_sentryDebugIds:e._sentryDebugIds??void 0,_sentryModuleMetadata:e._sentryModuleMetadata??void 0});let t=t=>{let{reason:n}=t;K&&k.log(`[Sentry Worker] Forwarding ${t.kind} to parent`,t),hN(e,{...t,filename:e.location?.href,name:Ne(n)?Mx(n):void 0})};e.addEventListener(`error`,e=>{let{error:n,message:r,filename:i,lineno:a,colno:o}=e;t({kind:`error`,reason:n??r,message:r,url:i,lineno:a,colno:o})}),e.addEventListener(`unhandledrejection`,e=>{t({kind:`unhandledrejection`,reason:GS(e)})}),K&&k.log(`[Sentry Worker] Registered worker with error and unhandled rejection handling`)}function hN(e,t){try{e.postMessage({_sentryMessage:!0,_sentryWorkerError:t});return}catch{}let{reason:n}=t,r=Ne(n),i=r?{message:Nx(n),stack:n.stack}:ft(n);try{e.postMessage({_sentryMessage:!0,_sentryWorkerError:{...t,reason:i,plainError:r}})}catch{}}function gN(e){let t=Error(String(e.message));return t.stack=typeof e.stack==`string`?e.stack:void 0,t}function _N(e){if(!Ve(e)||e._sentryMessage!==!0)return!1;
506let t=`_sentryDebugIds`in e,n=`_sentryModuleMetadata`in e,r=`_sentryWorkerError`in e,i=`_sentryWasmImages`in e;return!(!t&&!n&&!r&&!i||t&&!(Ve(e._sentryDebugIds)||e._sentryDebugIds===void 0)||n&&!(Ve(e._sentryModuleMetadata)||e._sentryModuleMetadata===void 0)||r&&!Ve(e._sentryWorkerError)||i&&(!Array.isArray(e._sentryWasmImages)||!e._sentryWasmImages.every(e=>Ve(e)&&typeof e.code_file==`string`)))}var vN=s({BrowserClient:()=>Vx,MULTIPLEXED_TRANSPORT_EXTRA_KEY:()=>Nu,OpenFeatureIntegrationHook:()=>rN,SDK_VERSION:()=>w,SEMANTIC_ATTRIBUTE_SENTRY_OP:()=>Cr,SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN:()=>wr,SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE:()=>xr,Scope:()=>en,WINDOW:()=>G,addBreadcrumb:()=>Td,addEventProcessor:()=>sl,addIntegration:()=>fa,bfcacheMetricsIntegration:()=>pM,bindScopeToEmitter:()=>Os,breadcrumbsIntegration:()=>xS,browserApiErrorsIntegration:()=>AS,browserProfilingIntegration:()=>JM,browserSessionIntegration:()=>LS,browserTracingIntegration:()=>Yj,buildLaunchDarklyFlagUsedHandler:()=>tN,captureConsoleIntegration:()=>lf,captureEvent:()=>Kc,captureException:()=>Wc,captureFeedback:()=>Qp,captureMessage:()=>Gc,captureSession:()=>dl,chromeStackLineParser:()=>iS,close:()=>il,consoleIntegration:()=>hp,consoleLoggingIntegration:()=>pm,contextLinesIntegration:()=>FC,continueTrace:()=>Yo,createConsolaReporter:()=>bm,createTransport:()=>$l,createUserFeedbackEnvelope:()=>_S,cultureContextIntegration:()=>zS,dedupeIntegration:()=>ff,defaultRequestInstrumentationOptions:()=>kj,defaultStackLineParsers:()=>mS,defaultStackParser:()=>hS,diagnoseSdkConnectivity:()=>cN,elementTimingIntegration:()=>Zy,endSession:()=>ll,eventFiltersIntegration:()=>jd,eventFromException:()=>Px,eventFromMessage:()=>Fx,exceptionFromError:()=>wx,extraErrorDataIntegration:()=>bf,featureFlagsIntegration:()=>Cp,feedbackAsyncIntegration:()=>Sx,feedbackIntegration:()=>Cx,feedbackSyncIntegration:()=>Cx,fetchStreamPerformanceIntegration:()=>dM,flush:()=>rl,forceLoad:()=>lC,functionToStringIntegration:()=>Od,geckoStackLineParser:()=>sS,getAbsoluteUrl:()=>sx,getActiveSpan:()=>F,getClient:()=>N,getCurrentScope:()=>j,getDefaultIntegrations:()=>sC,getFeedback:()=>bh,getGlobalScope:()=>Tn,getIsolationScope:()=>M,getReplay:()=>NA,getRootSpan:()=>qi,getSpanDescendants:()=>Ki,getSpanStatusFromHttpCode:()=>Hr,getTraceData:()=>vd,globalHandlersIntegration:()=>HS,graphqlClientIntegration:()=>YC,growthbookIntegration:()=>oN,httpClientIntegration:()=>vC,httpContextIntegration:()=>ZS,init:()=>cC,instrumentOutgoingRequests:()=>Aj,instrumentSupabaseClient:()=>Yf,interactionsIntegration:()=>cb,isBotUserAgent:()=>ab,isEnabled:()=>ol,isInitialized:()=>al,lastEventId:()=>nl,launchDarklyIntegration:()=>eN,lazyLoadIntegration:()=>bx,linkedErrorsIntegration:()=>tC,logger:()=>$p,makeBrowserOfflineTransport:()=>kM,makeFetchTransport:()=>Wx,makeMultiplexedTransport:()=>Lu,metrics:()=>mm,moduleMetadataIntegration:()=>ef,normalizeStringifyValue:()=>rC,onLoad:()=>uC,openFeatureIntegration:()=>nN,opera10StackLineParser:()=>dS,opera11StackLineParser:()=>pS,parameterize:()=>md,registerSpanErrorInstrumentation:()=>$i,registerWebWorker:()=>mN,replayCanvasIntegration:()=>wj,replayIntegration:()=>kA,reportPageLoaded:()=>aM,reportingObserverIntegration:()=>gC,rewriteFramesIntegration:()=>jf,sendFeedback:()=>rh,setActiveSpanInBrowser:()=>oM,setAttribute:()=>$c,setAttributes:()=>Qc,setContext:()=>qc,setConversationId:()=>tl,setCurrentClient:()=>ku,setExtra:()=>Yc,setExtras:()=>Jc,setHttpStatus:()=>Ur,setMeasurement:()=>Lo,setTag:()=>Zc,setTags:()=>Xc,setUser:()=>el,showReportDialog:()=>dC,spanStreamingIntegration:()=>Eo,spanToBaggageHeader:()=>Sa,spanToJSON:()=>P,spanToStaticSpanJSON:()=>Ni,spanToTraceHeader:()=>Di,spotlightBrowserIntegration:()=>$M,startBrowserTracingNavigationSpan:()=>Zj,startBrowserTracingPageLoadSpan:()=>Xj,startInactiveSpan:()=>hs,startNewTrace:()=>$o,startSession:()=>cl,startSpan:()=>ps,startSpanManual:()=>ms,statsigIntegration:()=>sN,supabaseIntegration:()=>Qf,suppressTracing:()=>Zo,thirdPartyErrorFilterIntegration:()=>sp,uiProfiler:()=>qx,unleashIntegration:()=>iN,updateSpanName:()=>Xi,userTimingIntegration:()=>mb,viewHierarchyIntegration:()=>XC,webVitalsIntegration:()=>Rj,webWorkerIntegration:()=>dN,winjsStackLineParser:()=>lS,withActiveSpan:()=>Xo,withIsolationScope:()=>Dn,withScope:()=>En,withStaticSpan:()=>Fa,withStreamedSpan:()=>Ia,zodErrorsIntegration:()=>op});function yN(e,t){}function bN(e,t){}function xN(e){}async function SN(e){try{let t=await window.crypto.subtle.digest(`SHA-256`,new TextEncoder().encode(e.trim().toLowerCase())),n=Array.from(new Uint8Array(t)).map(e=>e.toString(16).padStart(2,`0`)).join(``);return n.length===64?n:null}catch{return null}}async function CN(e){}var wN=`https://[email protected]/5956789`,TN=[/extensions\//i,/chrome:\/\//i,/chrome-extension:\/\//i,/moz-extension:\/\//i,/safari-web-extension:\/\//i,/webkit-masked-url:\/\/hidden\//i],EN=[/Invalid call to runtime\.sendMessage\(\)\. Tab not found\./i,/^WKWebView API client did not respond to this postMessage$/i,/^Error invoking post(?:Event)?: Method not found$/i
506];function DN(e,t){let n=e.exception?.values?.map(e=>`${e.type??``} ${e.value??``}`.trim()).filter(Boolean).join(` `);return e.message||n||String(t?.originalException??``)}function ON(e){return e.exception?.values?.flatMap(e=>e.stacktrace?.frames??[])??[]}function kN(e,t){return ON(e).some(e=>{let n=e.filename??e.abs_path??``;return t.some(e=>e.test(n))})}function AN(e,t){let n=DN(e,t);return!!(EN.some(e=>e.test(n))||kN(e,TN)||/Cannot read properties of undefined \(reading 'addListener'\)/i.test(n)&&kN(e,[/^blob:https:\/\/account\.ghost\.org\//i])||/SecurityError/i.test(n)&&/Blocked a frame with origin "https:\/\/account\.ghost\.org"/i.test(n)&&ON(e).some(e=>e.function===`sn.onIframeLoad`))}function jN({environment:e,release:t,section:n}){vN!==void 0&&cC({dsn:wN,environment:e,release:t??void 0,tracesSampleRate:e===`production`?.2:1,initialScope:{tags:{section:n,app:`account`}},replaysSessionSampleRate:0,replaysOnErrorSampleRate:1,integrations:[kA({maskAllText:!0,blockAllMedia:!0})],denyUrls:TN,beforeSend(e,t){return AN(e,t)?null:e}})}export{_,CN as a,l as b,Kc as c,En as d,v as f,g,x as h,SN as i,Wc as l,b as m,bN as n,xN as o,y as p,yN as r,Td as s,jN as t,Gc as u,u as v,o as y};
507//# debugId=3767d2a9-391c-58c2-89d9-d5a796a98b76

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.