PageSourceSearch

https://metrikia.io/assets/vendor-sentry-BvBcAg-a.js

js metrikia.io collected 2026-10-02 01:03:26 UTC 323,150 bytes, 494 lines download raw bytes

1import{n as e,r as t}from"./rolldown-runtime-QTnfLwEv.js";import{S as n}from"./vendor-react-cIENq15p.js";var r=typeof __SENTRY_DEBUG__>`u`||__SENTRY_DEBUG__,i=globalThis,a=`10.70.0`;function o(){return s(i),i}function s(e){let t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||`10.70.0`,t[a]=t[`10.70.0`]||{}}function c(e,t,n=i){let r=n.__SENTRY__=n.__SENTRY__||{},o=r[a]=r[`10.70.0`]||{};return o[e]||(o[e]=t())}var l=[`debug`,`info`,`warn`,`error`,`log`,`assert`,`trace`],u=`Sentry Logger `,d={};function f(e){if(!(`console`in i))return e();let t=i.console,n={},r=Object.keys(d);r.forEach(e=>{let r=d[e];n[e]=t[e],t[e]=r});try{return e()}finally{r.forEach(e=>{t[e]=n[e]})}}function p(){b().enabled=!0}function m(){b().enabled=!1}function h(){return b().enabled}function g(...e){y(`log`,...e)}function _(...e){y(`warn`,...e)}function v(...e){y(`error`,...e)}function y(e,...t){r&&h()&&f(()=>{i.console[e](`${u}[${e}]:`,...t)})}function b(){return r?c(`loggerSettings`,()=>({enabled:!1})):{enabled:!1}}var x={enable:p,disable:m,isEnabled:h,log:g,warn:_,error:v},S=50,C=/\(error: (.*)\)/,w=/captureMessage|captureException/;function T(...e){let t=e.sort((e,t)=>e[0]-t[0]).map(e=>e[1]);return(e,n=0,r=0)=>{let i=[],a=e.split(`
2`);for(let e=n;e<a.length;e++){let n=a[e];n.length>1024&&(n=n.slice(0,1024));let o=C.test(n)?n.replace(C,`$1`):n;if(!o.includes(`Error: `)){for(let e of t){let t=e(o);if(t){i.push(t);break}}if(i.length>=S+r)break}}return te(i.slice(r))}}function ee(e){return Array.isArray(e)?T(...e):e}function te(e){if(!e.length)return[];let t=Array.from(e);return/sentryWrapped/.test(ne(t).function||``)&&t.pop(),t.reverse(),w.test(ne(t).function||``)&&(t.pop(),w.test(ne(t).function||``)&&t.pop()),t.slice(0,S).map(e=>({...e,filename:e.filename||ne(t).filename,function:e.function||`?`}))}function ne(e){return e[e.length-1]||{}}var re=`<anonymous>`;function E(e){try{return!e||typeof e!=`function`?re:e.name||re}catch{return re}}function ie(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}}}var D={},ae={};function O(e,t){return D[e]=D[e]||[],D[e].push(t),()=>{let n=D[e];if(n){let e=n.indexOf(t);e!==-1&&n.splice(e,1)}}}function oe(e,t){if(!ae[e]){ae[e]=!0;try{t()}catch(t){r&&x.error(`Error while instrumenting ${e}`,t)}}}function se(e,t){let n=e&&D[e];if(n)for(let i of n)try{i(t)}catch(t){r&&x.error(`Error while triggering instrumentation handler.
3Type: ${e}
4Name: ${E(i)}
5Error:`,t)}}var ce=null;function le(e){let t=`error`;O(t,e),oe(t,ue)}function ue(){ce=i.onerror,i.onerror=function(e,t,n,r,i){return se(`error`,{column:r,error:i,line:n,msg:e,url:t}),ce?ce.apply(this,arguments):!1},i.onerror.__SENTRY_INSTRUMENTED__=!0}var de=null;function fe(e){let t=`unhandledrejection`;O(t,e),oe(t,pe)}function pe(){de=i.onunhandledrejection,i.onunhandledrejection=function(e){return se(`unhandledrejection`,e),!de||de.apply(this,arguments)},i.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}var me=Object.prototype.toString;function he(e){switch(me.call(e)){case`[object Error]`:case`[object Exception]`:case`[object DOMException]`:case`[object WebAssembly.Exception]`:return!0;default:return De(e,Error)}}function ge(e,t){return me.call(e)===`[object ${t}]`}function _e(e){return ge(e,`ErrorEvent`)}function ve(e){return ge(e,`DOMError`)}function ye(e){return ge(e,`DOMException`)}function k(e){return ge(e,`String`)}function be(e){return typeof e==`object`&&!!e&&`__sentry_template_string__`in e&&`__sentry_template_values__`in e}function xe(e){return e===null||be(e)||typeof e!=`object`&&typeof e!=`function`}function Se(e){return ge(e,`Object`)}function Ce(e){return typeof e==`object`&&!!e}function we(e){return typeof Event<`u`&&De(e,Event)}function Te(e){return ge(e,`RegExp`)}function Ee(e){return!!(e?.then&&typeof e.then==`function`)}function De(e,t){try{return e instanceof t}catch{return!1}}function Oe(e){return typeof Request<`u`&&De(e,Request)}function ke(e,t,n){if(!(t in e))return;let i=e[t];if(typeof i!=`function`)return;let a=n(i);typeof a==`function`&&je(a,i);try{e[t]=a}catch{r&&x.log(`Failed to replace method "${t}" in object`,e)}}function Ae(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch{r&&x.log(`Failed to add non-enumerable property "${String(t)}" to object`,e)}}function je(e,t){try{e.prototype=t.prototype=t.prototype||{},Ae(e,`__sentry_original__`,t)}catch{}}function Me(e){return e.__sentry_original__}function Ne(e){if(he(e))return{message:e.message,name:e.name,stack:e.stack,...Pe(e)};
5if(we(e)){let{type:t,target:n,currentTarget:r,detail:i}=e;return{type:t,target:n,currentTarget:r,...i?{detail:i}:{},...Pe(e)}}return e}function Pe(e){return Ce(e)?Object.fromEntries(Object.entries(e)):{}}function Fe(e){let t=Object.keys(Ne(e));return t.sort(),t[0]?t.join(`, `):`[object has no keys]`}var Ie;function Le(e){if(Ie!==void 0)return Ie?Ie(e):e();let t=Symbol.for(`__SENTRY_SAFE_RANDOM_ID_WRAPPER__`),n=i;return t in n&&typeof n[t]==`function`?(Ie=n[t],Ie(e)):(Ie=null,e())}function Re(){return Le(()=>Math.random())}function ze(){return Le(()=>Date.now())}var Be=Symbol.for(`sentry.skipNormalization`),Ve=Symbol.for(`sentry.overrideNormalizationDepth`);function He(e){return!!e[Be]}function Ue(e){let t=e[Ve];return typeof t==`number`?t:void 0}var We;function Ge(e){We=e}function Ke(e,t=100,n=1/0){try{return Je(``,e,t,n)}catch(e){return{ERROR:`**non-serializable** (${e})`}}}function qe(e,t=3,n=100*1024){let r=Ke(e,t);return Qe(r)>n?qe(e,t-1,n):r}function Je(e,t,n=1/0,r=1/0,i=$e()){let[a,o]=i;if(t==null||[`boolean`,`string`].includes(typeof t)||typeof t==`number`&&Number.isFinite(t))return t;let s=Ye(e,t);if(!s.startsWith(`[object `))return s;if(He(t))return t;let c=Ue(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 Je(``,u.toJSON(),l-1,r,i)}catch{}let d=Array.isArray(t)?[]:{},f=0,p=Ne(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]=Je(e,t,l-1,r,i),f++}return o(t),d}function Ye(e,t){try{if(We){let e=We(t);if(e)return e}return typeof global<`u`&&t===global?`[Global]`:typeof t==`number`&&!Number.isFinite(t)?`[${t}]`:typeof t==`function`?`[Function: ${E(t)}]`:typeof t==`symbol`?`[${String(t)}]`:typeof t==`bigint`?`[BigInt: ${String(t)}]`:`[object ${Xe(t)}]`}catch(e){return`**non-serializable** (${e})`}}function Xe(e){let t=Object.getPrototypeOf(e);return t?.constructor?t.constructor.name:`null prototype`}function Ze(e){return~-encodeURI(e).split(/%..|./).length}function Qe(e){return Ze(JSON.stringify(e))}function $e(){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 et(e,t=0){return typeof e!=`string`||t===0||e.length<=t?e:`${e.slice(0,t)}...`}function tt(e,t){if(!Array.isArray(e))return``;let n=[];for(let t=0;t<e.length;t++){let r=e[t];xe(r)?n.push(String(r)):r instanceof Error?n.push(r.message?`${r.name}: ${r.message}`:r.name):n.push(Ye(void 0,r))}return n.join(t)}function nt(e,t,n=!1){return k(e)?Te(t)?t.test(e):k(t)?n?e===t:e.includes(t):typeof t==`function`&&t(e):!1}function rt(e,t=[],n=!1){for(let r of t)if(nt(e,r,n))return!0;return!1}function it(){let e=i;return e.crypto||e.msCrypto}var at;function ot(){return Re()*16}function st(e=it()){try{if(e?.randomUUID)return Le(()=>e.randomUUID()).replace(/-/g,``)}catch{}return at||(at=`10000000100040008000100000000000`),at.replace(/[018]/g,e=>(e^(ot()&15)>>e/4).toString(16))}function ct(e){return e.exception?.values?.[0]}function lt(e){let{message:t,event_id:n}=e;if(t)return t;let r=ct(e);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||`<unknown>`:n||`<unknown>`}function ut(e,t,n){let r=e.exception=e.exception||{},i=r.values=r.values||[],a=i[0]=i[0]||{};a.value||(a.value=t||``),a.type||(a.type=n||`Error`)}function dt(e,t){let n=ct(e);if(!n)return;let r={type:`generic`,handled:!0},i=n.mechanism;if(n.mechanism={...r,...i,...t},t&&`data`in t){let e={...i?.data,...t.data};n.mechanism.data=e}}function ft(e){if(pt(e))return!0;try{Ae(e,`__sentry_captured__`,!0)}catch{}return!1}function pt(e){try{return e.__sentry_captured__}catch{}}var mt=1e3;function ht(){return ze()/mt}function gt(){let{performance:e}=i;if(!e?.now||!e.timeOrigin)return ht;let t=e.timeOrigin;return()=>(t+Le(()=>e.now()))/mt}var _t;function A(){return(_t??(_t=gt()))()}var vt=null;function yt(){let{performance:e}=i;if(!e?.now)return;let t=3e5,n=Le(()=>e.now()),r=ze(),a=e.timeOrigin;if(typeof a==`number`&&Math.abs(a+n-r)<t)return a;let o=e.timing?.navigationStart;return typeof o==`number`&&Math.abs(o+n-r)<t?o:r-n}function bt(){return vt===null&&(vt=yt()),vt}
5function xt(e){let t=A(),n={sid:st(),init:!0,timestamp:t,started:t,duration:0,status:`ok`,errors:0,ignoreDuration:!1,toJSON:()=>wt(n)};return e&&St(n,e),n}function St(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||A(),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:st()),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),typeof t.errors==`number`&&(e.errors=t.errors),t.status&&(e.status=t.status)}function Ct(e,t){let n={};t?n={status:t}:e.status===`ok`&&(n={status:`exited`}),St(e,n)}function wt(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 Tt(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]=Tt(r[e],t[e],n-1));return r}function Et(){return st()}function Dt(){return st().substring(16)}function Ot(e){try{let t=i.WeakRef;if(typeof t==`function`)return new t(e)}catch{}return e}function kt(e){if(e){if(typeof e==`object`&&`deref`in e&&typeof e.deref==`function`)try{return e.deref()}catch{return}return e}}var At=`_sentrySpan`;function jt(e,t){t?Ae(e,At,Ot(t)):delete e[At]}function Mt(e){return kt(e[At])}var Nt=100,Pt=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={},this._propagationContext={traceId:Et(),sampleRand:Re()}}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,jt(t,Mt(this)),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&&St(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():Se(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}clear(){return this._breadcrumbs=[],this._tags={},this._attributes={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._session=void 0,this._conversationId=void 0,jt(this,void 0),this._attachments=[],this.setPropagationContext({traceId:Et(),sampleRand:Re()}),this._notifyScopeListeners(),this}addBreadcrumb(e,t){let n=typeof t==`number`?t:Nt;if(n<=0)return this;let r={timestamp:ht(),...e,message:e.message?et(e.message,2048):e.message};return this._breadcrumbs.push(r),this._breadcrumbs.length>n&&(this._breadcrumbs=this._breadcrumbs.slice(-n),this._client?.recordDroppedEvent(`buffer_overflow`,`log_item`)),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,span:Mt(this),conversationId:this._conversationId}}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata=Tt(this._sdkProcessingMetadata,e,2),this}setPropagationContext(e){return this._propagationContext=e,this}getPropagationContext(){return this._propagationContext}captureException(e,t){let n=t?.event_id||st();if(!this._client)return r&&x.warn(`No client configured on scope - will not capture exception!`),n;let i=Error(`Sentry syntheticException`);return this._client.captureException(e,{originalException:e,syntheticException:i,...t,event_id:n},this),n}captureMessage(e,t,n){let i=n?.event_id||st();if(!this._client)return r&&x.warn(`No client configured on scope - will not capture message!`),i;let a=n?.syntheticException??Error(e);return this._client.captureMessage(e,t,{originalException:e,syntheticException:a,...n,event_id:i},this),i}captureEvent(e,t){let n=e.event_id||t?.event_id||st();return this._client?(this._client.captureEvent(e,{...t,event_id:n},this),n):(r&&x.warn(`No client configured on scope - will not capture event!`),n)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEac
5h(e=>{e(this)}),this._notifyingListeners=!1)}};function Ft(){return c(`defaultCurrentScope`,()=>new Pt)}function It(){return c(`defaultIsolationScope`,()=>new Pt)}var Lt=e=>e instanceof Promise&&!e[Rt],Rt=Symbol(`chained PromiseLike`),zt=(e,t,n)=>{let r=e.then(e=>(t(e),e),e=>{throw n(e),e});return Lt(r)&&Lt(e)?r:Bt(e,r)},Bt=(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,{[Rt]:!0}),t},Vt=class{constructor(e,t){let n;n=e||new Pt;let r;r=t||new Pt,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 Ee(n)?zt(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 Ht(){let e=s(o());return e.stack=e.stack||new Vt(Ft(),It())}function Ut(e){return Ht().withScope(e)}function Wt(e,t){let n=Ht();return n.withScope(()=>(n.getStackTop().scope=e,t(e)))}function Gt(e){return Ht().withScope(()=>e(Ht().getIsolationScope()))}function Kt(){return{withIsolationScope:Gt,withScope:Ut,withSetScope:Wt,withSetIsolationScope:(e,t)=>Gt(t),getCurrentScope:()=>Ht().getScope(),getIsolationScope:()=>Ht().getIsolationScope()}}function qt(e){let t=s(e);return t.acs?t.acs:Kt()}function Jt(e){return typeof e==`object`&&!!e&&!Array.isArray(e)&&Object.keys(e).includes(`value`)}function Yt(e,t){let{value:n,unit:r}=Jt(e)?e:{value:e,unit:void 0},i=Zt(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 Xt(e,t=!1){let n={};for(let[r,i]of Object.entries(e??{})){let e=Yt(i,t);e&&(n[r]=e)}return n}function Zt(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}}var Qt;function $t(){return Qt?.()}function en(){return Qt!==void 0}function j(){return qt(o()).getCurrentScope()}function M(){return qt(o()).getIsolationScope()}function tn(){return c(`globalScope`,()=>new Pt)}function nn(...e){let t=qt(o());if(e.length===2){let[n,r]=e;return n?t.withSetScope(n,r):t.withScope(r)}return t.withScope(e[0])}function N(){return j().getClient()}function rn(e){let t=$t();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||Dt()};return r&&(a.parent_span_id=r),a}var an=`sentry.source`,on=`sentry.sample_rate`,sn=`sentry.previous_trace_sample_rate`,cn=`sentry.op`,P=`sentry.origin`,ln=`sentry.idle_span_finish_reason`,un=`sentry.measurement_unit`,dn=`sentry.measurement_value`,fn=`sentry.custom_span_name`,pn=`sentry.profile_id`,mn=`sentry.exclusive_time`,hn=`sentry.link.type`,gn=`gen_ai.conversation.id`;function _n(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 vn(e,t){e.setAttribute(`http.response.status_code`,t);let n=_n(t);n.message!==`unknown_error`&&e.setStatus(n)}var yn=`_sentryScope`,bn=`_sentryIsolationScope`,xn=Symbol.for(`sentry.otelSourceInference`),Sn=Symbol.for(`sentry.otelSourceExplicitlySet`),Cn=Symbol.for(`sentry.tracerProviderSpan`);function wn(e,t,n){e&&(Ae(e,bn,Ot(n)),Ae(e,yn,t))}function Tn(e){let t=e;return{scope:t[yn],isolationScope:kt(t[bn])}}function En(e){return e[xn]===!0}function Dn(e){Ae(e,Sn,!0)}function On(e){return e[Cn]===!0}var kn=`sentry-`;function An(e){let t=Mn(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 jn(e){if(e)return Pn(Object.entries(e).reduce((e,[t,n])=>(n&&(e[`${kn}${t}`]=n),e),{}))}function Mn(e){if(!(!e||!k(e)&&!Array.isArray(e)))return Array.isArray(e)?e.reduce((e,t)=>
5{let n=Nn(t);return Object.entries(n).forEach(([t,n])=>{e[t]=n}),e},{}):Nn(e)}function Nn(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 Pn(e){if(Object.keys(e).length!==0)return Object.entries(e).reduce((e,[t,n],i)=>{let a=`${encodeURIComponent(t)}=${encodeURIComponent(n)}`,o=i===0?a:`${e},${a}`;return o.length>8192?(r&&x.warn(`Not adding key: ${t} with val: ${n} to baggage header due to exceeding baggage size limits.`),e):o},``)}var Fn=/^o(\d+)\./,In=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)((?:\[[:.%\w]+\]|[\w.-]+))(?::(\d+))?\/(.+)/;function Ln(e){return e===`http`||e===`https`}function Rn(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 zn(e){let t=In.exec(e);if(!t){f(()=>{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 Bn({host:a,pass:i,path:c,projectId:l,port:o,protocol:n,publicKey:r})}function Bn(e){return{protocol:e.protocol,publicKey:e.publicKey||``,pass:e.pass||``,host:e.host,port:e.port||``,path:e.path||``,projectId:e.projectId}}function Vn(e){if(!r)return!0;let{port:t,projectId:n,protocol:i}=e;return[`protocol`,`publicKey`,`host`,`projectId`].find(t=>e[t]?!1:(x.error(`Invalid Sentry Dsn: ${t} missing`),!0))?!1:n.match(/^\d+$/)?Ln(i)?t&&isNaN(parseInt(t,10))?(x.error(`Invalid Sentry Dsn: Invalid port ${t}`),!1):!0:(x.error(`Invalid Sentry Dsn: Invalid protocol ${i}`),!1):(x.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),!1)}function Hn(e){return e.match(Fn)?.[1]}function Un(e){let t=e.getOptions(),{host:n}=e.getDsn()||{},r;return t.orgId?r=String(t.orgId):n&&(r=Hn(n)),r}function Wn(e){let t=typeof e==`string`?zn(e):Bn(e);if(!(!t||!Vn(t)))return t}function Gn(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 Kn=RegExp(`^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$`);function qn(e){if(!e)return;let t=e.match(Kn);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 Jn(e,t){let n=qn(e),r=An(t);if(!n?.traceId)return{traceId:Et(),sampleRand:Re()};let i=Zn(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 Yn(e=Et(),t=Dt(),n){let r=``;return n!==void 0&&(r=n?`-1`:`-0`),`${e}-${t}${r}`}function Xn(e=Et(),t=Dt(),n){return`00-${e}-${t}-${n?`01`:`00`}`}function Zn(e,t){let n=Gn(t?.sample_rand);if(n!==void 0)return n;let r=Gn(t?.sample_rate);return r&&e?.parentSampled!==void 0?e.parentSampled?Re()*r:r+Re()*(1-r):Re()}var Qn=!1;function $n(e){let{spanId:t,traceId:n}=e.spanContext(),{data:r,op:i,parent_span_id:a,status:o,origin:s,links:c}=F(e);return{parent_span_id:a,span_id:t,trace_id:n,data:r,op:i,status:o,origin:s,links:c}}function er(e){let{spanId:t,traceId:n,isRemote:r}=e.spanContext(),i=r?t:F(e).parent_span_id,a=Tn(e).scope;return{parent_span_id:i,span_id:r?a?.getPropagationContext().propagationSpanId||Dt():t,trace_id:n}}function tr(e){let{traceId:t,spanId:n}=e.spanContext();return Yn(t,n,fr(e))}function nr(e){let{traceId:t,spanId:n}=e.spanContext();return Xn(t,n,fr(e))}function rr(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 ir(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 ar(e){return typeof e==`number`?or(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?or(e.getTime()):A()}function or(e){return e>9999999999?e/1e3:e}function F(e){if(dr(e))return e.getSpanJSON();let{spanId:t,traceId:n}=e.spanContext();if(ur(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:cr(e),start_timestamp:ar(i),timestamp:ar(o)||void 0,status:pr(s),op:r[cn],origin:r[P],links:rr(c)}}return{span_id:t,trace_id:n,start_timestamp:0,data:{}}}function sr(e){if(dr(e))return e.getStreamedSpanJSON();let{spanId:t,traceId:n}=e.spanContext();if(ur(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:cr(e),start_timestamp:ar(i),end_timestamp:ar(o),is_segment:e===Sr(e),status:mr(s),attributes:hr(r,
5s),links:ir(c)}}return{span_id:t,trace_id:n,start_timestamp:0,name:``,end_timestamp:0,status:`ok`,is_segment:e===Sr(e)}}function cr(e){return`parentSpanId`in e?e.parentSpanId:`parentSpanContext`in e?e.parentSpanContext?.spanId:void 0}function lr(e){return{...e,attributes:Xt(e.attributes),links:e.links?.map(e=>({...e,attributes:Xt(e.attributes)}))}}function ur(e){let t=e;return!!t.attributes&&!!t.startTime&&!!t.name&&!!t.endTime&&!!t.status}function dr(e){return typeof e.getSpanJSON==`function`}function fr(e){let{traceFlags:t}=e.spanContext();return t===1}function pr(e){if(!(!e||e.code===0))return e.code===1?`ok`:e.message||`internal_error`}function mr(e){return!e||e.code===1||e.code===0||e.message===`cancelled`?`ok`:`error`}function hr(e,t){let n=mr(t)===`error`?t?.message:void 0;return{...n&&{"sentry.status.message":n},...e}}var gr=`_sentryChildSpans`,_r=`_sentryRootSpan`;function vr(e,t){Ae(t,_r,e[_r]||e),e[gr]?e[gr].add(t):Ae(e,gr,new Set([t]))}function yr(e,t){e[gr]&&e[gr].delete(t)}function br(e){let t=new Set;function n(e){if(!t.has(e)&&fr(e)){t.add(e);let r=e[gr]?Array.from(e[gr]):[];for(let e of r)n(e)}}return n(e),Array.from(t)}var xr=Sr;function Sr(e){return e[_r]||e}function Cr(){let e=qt(o());return e.getActiveSpan?e.getActiveSpan():Mt(j())}function wr(){Qn||(f(()=>{console.warn("[Sentry] Returning null from `beforeSendSpan` is disallowed. To drop certain spans, configure the respective integrations directly or use `ignoreSpans`.")}),Qn=!0)}var Tr=!1;function Er(){if(Tr)return;function e(){let e=Cr(),t=e&&xr(e);if(t){let e=`internal_error`;r&&x.log(`[Tracing] Root span: ${e} -> Global error occurred`),t.setStatus({code:2,message:e})}}Tr=!0,le(e),fe(e)}function Dr(e){if(typeof __SENTRY_TRACING__==`boolean`&&!__SENTRY_TRACING__)return!1;let t=e||N()?.getOptions();return!!t&&(t.tracesSampleRate!=null||!!t.tracesSampler)}function Or(e){x.log(`Ignoring span ${e.op} - ${e.description} because it matches \`ignoreSpans\`.`)}function kr(e,t){if(!t?.length)return!1;for(let n of t){if(Mr(n)){if(e.description&&nt(e.description,n))return r&&Or(e),!0;continue}let t=!!n.attributes&&Object.keys(n.attributes).length>0;if(!n.name&&!n.op&&!t)continue;let i=!n.name||e.description&&nt(e.description,n.name),a=!n.op||e.op&&nt(e.op,n.op),o=!n.attributes||Object.entries(n.attributes).every(([t,n])=>Ar(e.attributes?.[t],n));if(i&&a&&o)return r&&Or(e),!0}return!1}function Ar(e,t){return typeof e==`string`&&(typeof t==`string`||t instanceof RegExp)?nt(e,t):Array.isArray(e)&&Array.isArray(t)?e.length===t.length&&e.every((e,n)=>e===t[n]):e===t}function jr(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 Mr(e){return typeof e==`string`||e instanceof RegExp}var Nr=Symbol.for(`sentry.nonRecordingSpan`),Pr=class{constructor(e={}){this._traceId=e.traceId||Et(),this._spanId=e.spanId||Dt(),this.dropReason=e.dropReason,Ae(this,Nr,!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 Fr(e){return!!e&&e[Nr]===!0}var Ir=`production`,Lr=`_frozenDsc`;function Rr(e,t){Ae(e,Lr,t)}function zr(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:Un(t)};return t.emit(`createDsc`,i),i}function Br(e,t){let n=t.getPropagationContext();return n.dsc||zr(n.traceId,e)}function Vr(e){let t=N();if(!t)return{};let n=xr(e),r=F(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[Lr];if(c)return s(c);let l=Fr(n),u=l&&n.dropReason===`ignored`;if(l&&(!Dr(t.getOptions())||u)){let e=Tn(n).scope;if(e){let n={...Br(t,e)};return u&&(n.sampled=`false`),s(n)}}let d=a?.get(`sentry.dsc`),f=d&&An(d);if(f)return s(f);let p=zr(e.spanContext().traceId,t),m=i[`sentry.source`]??i[`sentry.segment.name.source`],h=r.description;return m!==`url`&&h&&(p.transaction=h),Dr()&&(p.sampled=String(fr(n)),p.sample_rand=a?.get(`sentry.sample_rand`)??Tn(n).scope?.getPropagationContext().sampleRand.toString()),s(p),t.emit(`createDsc`,p,n),p}
5function Hr(e){return!!e&&typeof e==`function`&&`_streamed`in e&&!!e._streamed}function Ur(e,t=[]){return[e,t]}function Wr(e,t){let[n,r]=e;return[n,[...r,t]]}function Gr(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 Kr(e,t){return Gr(e,(e,n)=>t.includes(n))}function qr(e){let t=s(i);return t.encodePolyfill?t.encodePolyfill(e):new TextEncoder().encode(e)}function Jr(e){let[t,n]=e,r=JSON.stringify(t);function i(e){typeof r==`string`?r=typeof e==`string`?r+e:[qr(r),e]:r.push(typeof e==`string`?qr(e):e)}for(let e of n){let[t,n]=e;if(i(`
6${JSON.stringify(t)}
7`),typeof n==`string`||n instanceof Uint8Array)i(n);else{let e;try{e=JSON.stringify(n)}catch{e=JSON.stringify(Ke(n))}i(e)}}return typeof r==`string`?r:Yr(r)}function Yr(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 Xr(e){return[{type:`span`},e]}function Zr(e){let t=typeof e.data==`string`?qr(e.data):e.data;return[{type:`attachment`,length:t.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType},t]}var Qr={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 $r(e){return e in Qr}function ei(e){return $r(e)?Qr[e]:e}function ti(e){if(!e?.sdk)return;let{name:t,version:n}=e.sdk;return{name:t,version:n}}function ni(e,t,n,r){let i=e.sdkProcessingMetadata?.dynamicSamplingContext;return{event_id:e.event_id,sent_at:new Date(ze()).toISOString(),...t&&{sdk:t},...!!n&&r&&{dsn:Rn(r)},...i&&{trace:i}}}function ri(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 ii(e,t,n,r){let i=ti(n);return Ur({sent_at:new Date(ze()).toISOString(),...i&&{sdk:i},...!!r&&t&&{dsn:Rn(t)}},[`aggregates`in e?[{type:`sessions`},e]:[{type:`session`},e.toJSON()]])}function ai(e,t,n,r){let i=ti(n),a=e.type&&e.type!==`replay_event`?e.type:`event`;ri(e,n?.sdk);let o=ni(e,i,r,t);return delete e.sdkProcessingMetadata,Ur(o,[[{type:a},e]])}function oi(e,t){function n(e){return!!e.trace_id&&!!e.public_key}let r=Vr(e[0]),i=t?.getDsn(),a=t?.getOptions().tunnel,o={sent_at:new Date(ze()).toISOString(),...n(r)&&{trace:r},...!!a&&i&&{dsn:Rn(i)}},{beforeSendSpan:s,ignoreSpans:c}=t?.getOptions()||{},l=c?.length?e.filter(e=>{let t=F(e);return!kr({description:t.description,op:t.op,attributes:t.data},c)}):e,u=e.length-l.length;u&&t?.recordDroppedEvent(`before_send`,`span`,u);let d=s?e=>{let t=F(e);return(Hr(s)?t:s(t))||(wr(),t)}:F,f=[];for(let e of l){let t=d(e);t&&f.push(Xr(t))}return Ur(o,f)}function si(e){if(!r)return;let{description:t=`< unknown name >`,op:n=`< unknown op >`,parent_span_id:i}=F(e),{spanId:a}=e.spanContext(),o=fr(e),s=xr(e),c=s===e,l=`[Tracing] Starting ${o?`sampled`:`unsampled`} ${c?`root `:``}span`,u=[`op: ${n}`,`name: ${t}`,`ID: ${a}`];if(i&&u.push(`parent ID: ${i}`),!c){let{op:e,description:t}=F(s);u.push(`root ID: ${s.spanContext().spanId}`),e&&u.push(`root op: ${e}`),t&&u.push(`root description: ${t}`)}x.log(`${l}
8  ${u.join(`
9  `)}`)}function ci(e){if(!r)return;let{description:t=`< unknown name >`,op:n=`< unknown op >`}=F(e),{spanId:i}=e.spanContext(),a=`[Tracing] Finishing "${n}" ${xr(e)===e?`root `:``}span "${t}" with ID ${i}`;x.log(a)}function li(e,t,n,i=Cr()){let a=i&&xr(i);a&&(r&&x.log(`[Measurement] Setting measurement on root span: ${e} = ${t} ${n}`),a.addEvent(e,{[dn]:t,[un]:n}))}function ui(e){if(!e||e.length===0)return;let t={};return e.forEach(e=>{let n=e.attributes||{},r=n[un],i=n[dn];typeof r==`string`&&typeof i==`number`&&(t[e.name]={value:i,unit:r})}),t}function di(){return s(o()).segmentSpanCaptureStrategy}function fi(e){return e.getOptions().traceLifecycle===`stream`}var pi=1e3,mi=class{constructor(e={}){this._traceId=e.traceId||Et(),this._spanId=e.spanId||Dt(),this._startTime=e.startTimestamp||A(),this._links=e.links,this._attributes={},this.setAttributes({[P]:`manual`,[cn]:e.op,...e.attributes}),this._name=e.name,e.parentSpanId&&(this._parentSpanId=e.parentSpanId),`sampled`in e&&(this._sampled=e.sampled),e.endTimestamp&&(this._endTime=e.endTimestamp),this._events=[],this._isStandaloneSpan=e.isStandalone,this._endTime&&this._onSpanEnded()}
9addLink(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:(t===void 0?delete this._attributes[e]:this._attributes[e]=t,e===`sentry.source`&&t!==void 0&&En(this)&&Dn(this),this)}setAttributes(e){return Object.keys(e).forEach(t=>this.setAttribute(t,e[t])),this}updateStartTime(e){this._frozen||(this._startTime=ar(e))}setStatus(e){return this._frozen||(this._status=e),this}updateName(e){return this._frozen?this:(this._name=e,En(this)||this.setAttribute(an,`custom`),this)}end(e){if(this._endTime){this._frozen=On(this);return}this._endTime=ar(e),ci(this),this._onSpanEnded(),this._frozen=On(this)}getSpanJSON(){return{data:this._attributes,description:this._name,op:this._attributes[cn],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:pr(this._status),timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[P],profile_id:this._attributes[pn],exclusive_time:this._attributes[mn],measurements:ui(this._events),is_segment:this._isStandaloneSpan&&xr(this)===this||void 0,segment_id:this._isStandaloneSpan?xr(this).spanContext().spanId:void 0,links:rr(this._links)}}getStreamedSpanJSON(){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??this._startTime,is_segment:this._isStandaloneSpan||this===xr(this),status:mr(this._status),attributes:hr(this._attributes,this._status),links:ir(this._links)}}isRecording(){return!this._endTime&&!!this._sampled}addEvent(e,t,n){if(this._frozen)return this;r&&x.log(`[Tracing] Adding an event to span:`,e);let i=hi(t)?t:n||A(),a=hi(t)?{}:t||{},o={name:e,time:ar(i),attributes:a};return this._events.push(o),this}isStandaloneSpan(){return!!this._isStandaloneSpan}_onSpanEnded(){let e=N();e&&(e.emit(`spanEnd`,this),this._isStandaloneSpan||e.emit(`afterSpanEnd`,this));let t=xr(this),n=this._isStandaloneSpan||this===t;if(this._isStandaloneSpan){this._sampled?vi(oi([this],e)):(r&&x.log(`[Tracing] Discarding standalone span because its trace was not chosen to be sampled.`),e&&e.recordDroppedEvent(`sample_rate`,`span`));return}if(!n){let e=di();if(e){let n=Tn(this).scope||j();e.onChildSpanEnded(this,t,e=>this._convertSpanToTransaction(e),n)}return}if(e&&fi(e)){e.emit(`afterSegmentSpanEnd`,this);return}let i=Tn(this).scope||j(),a=di();if(a)a.onSegmentSpanEnded(e=>this._convertSpanToTransaction(e),i);else{let e=this._convertSpanToTransaction();e&&i.captureEvent(e)}}_convertSpanToTransaction(e={}){if(!gi(F(this)))return;this._name||(r&&x.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),this._name=`<unlabeled transaction>`);let{scope:t,isolationScope:n}=Tn(this),i=t?.getScopeData().sdkProcessingMetadata?.normalizedRequest;if(this._sampled!==!0)return;e.onSpanCaptured?.(this);let a=[];for(let t of br(this)){if(t===this||_i(t)||e.isSpanAlreadyCaptured?.(t))continue;let n=F(t);gi(n)&&(e.onSpanCaptured?.(t),a.push(n))}let o=this._attributes[an];delete this._attributes[fn];let s=!1;a.forEach(e=>{delete e.data[fn],e.op?.startsWith(`gen_ai.`)&&(s=!0)});let c={contexts:{trace:$n(this)},spans:a.length>pi?a.sort((e,t)=>e.start_timestamp-t.start_timestamp).slice(0,pi):a,start_timestamp:this._startTime,timestamp:this._endTime,transaction:this._name,type:`transaction`,sdkProcessingMetadata:{capturedSpanScope:t,capturedSpanIsolationScope:n,dynamicSamplingContext:Vr(this),hasGenAiSpans:s},request:i,...o&&{transaction_info:{source:o}}},l=ui(this._events);return l&&Object.keys(l).length&&(r&&x.log(`[Measurements] Adding measurements to transaction event`,JSON.stringify(l,void 0,2)),c.measurements=l),c}};function hi(e){return e&&typeof e==`number`||e instanceof Date||Array.isArray(e)}function gi(e){return!!e.start_timestamp&&!!e.timestamp&&!!e.span_id&&!!e.trace_id}function _i(e){return e instanceof mi&&e.isStandaloneSpan()}function vi(e){let t=N();if(!t)return;let n=e[1];if(!n||n.length===0){t.recordDroppedEvent(`before_send`,`span`);return}t.sendEnvelope(e)}function yi(e,t,n){if(!Dr(e))return[!1];let i,a;typeof e.tracesSampler==`function`?(a=e.tracesSampler({...t,inheritOrSampleWith:e=>typeof t.parentSampleRate==`number`?t.parentSampleRate:typeof t.parentSampled==`boolean`?Number(t.parentSampled):e}),i=!0):t.parentSampled===void 0?e.tracesSampleRate!==void 0&&(a=e.tracesSampleRate,i=!0):a=t.parentSampled;let o=Gn(a);if(o===void 0)return r&&x.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(a)} of type ${JSON.stringify(typeof a)}.`),[!1];if(!o)return r&&x.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,i];let s=n<o;return s||r&&x.log(`[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ${Number(a)})`),[s,o,i]}var bi=`__SENTRY_SUPPRESS_TRACING__`;function xi(e){let t=Oi();return t.startInactiveSpan?t.startInactiveSpan(e):Si(e)}function Si(e){let t=Di(e),{forceTransaction:n,parentSpan:r}=e;return(e.scope?t=>nn(e.scope,t):r===void 0?e=>e():e=>Ci(r,e))(()=>{let i=j(),a=ji(i,r),o=N();return e.onlyIfParent&&!a?Ti(i,o):Ei({parentSpan:a,spanArguments:t,forceTransaction:n,scope:i})})}function Ci(e,t){let n=Oi();return n.withActiveSpan?n.withActiveSpan(e,t):nn(n=>(jt(n,e||void 0),t(n)))}function wi(e=j()){let t=Oi();return t.isTracingSuppressed?t.isTracingSuppressed(e):e.getScopeData().sdkProcessingMetadata[bi]===!0}function Ti(e,t){t?.recordDroppedEvent(`no_parent_span`,`span`);let n=new Pr({traceId:e.getPropagationContext().traceId});return wn(n,e,M()),n}function Ei({parentSpan:e,spanArguments:t,forceTransaction:n,scope:r}){let i=M();if(!Dr()){let t={...i.getPropagationContext(),...r.getPropagationContext()},a=new Pr({traceId:e?e.spanContext().traceId:t.traceId});return e&&!n&&vr(e,a),wn(a,r,i),a}let a=N();if(Mi(a,t)){wi(r)||a?.recordDroppedEvent(`ignored`,`span`);
9let t=new Pr({dropReason:`ignored`,traceId:e?.spanContext().traceId??r.getPropagationContext().traceId});return e&&!n&&vr(e,t),wn(t,r,i),t}let o;if(e&&!n)o=Ai(e,r,t,i),vr(e,o);else if(e){let n=Vr(e),{traceId:a,spanId:s}=e.spanContext(),c=fr(e);o=ki({traceId:a,parentSpanId:s,...t},r,i,c),Rr(o,n)}else{let{traceId:e,dsc:n,parentSpanId:a,sampled:s}={...i.getPropagationContext(),...r.getPropagationContext()};o=ki({traceId:e,parentSpanId:a,...t},r,i,s),n&&Rr(o,n)}return si(o),o}function Di(e){let t={isStandalone:(e.experimental||{}).standalone,...e};if(e.startTime){let n={...t};return n.startTimestamp=ar(e.startTime),delete n.startTime,n}return t}function Oi(){return qt(o())}function ki(e,t,n,i){let a=N(),o=a?.getOptions()||{},{name:s=``}=e,c={spanAttributes:{...e.attributes},spanName:s,parentSampled:i};a?.emit(`beforeSampling`,c,{decision:!1});let l=c.parentSampled??i,u=c.spanAttributes,d=t.getPropagationContext(),f=wi(t),[p,m,h]=f?[!1]:yi(o,{name:s,parentSampled:l,attributes:u,normalizedRequest:n.getScopeData().sdkProcessingMetadata.normalizedRequest,parentSampleRate:Gn(d.dsc?.sample_rate)},d.sampleRand),g=new mi({...e,attributes:{[an]:`custom`,[on]:m!==void 0&&h?m:void 0,...u},sampled:p});return!p&&a&&!f&&(r&&x.log(`[Tracing] Discarding root span because its trace was not chosen to be sampled.`),a.recordDroppedEvent(`sample_rate`,fi(a)?`span`:`transaction`)),wn(g,t,n),a&&a.emit(`spanStart`,g),g}function Ai(e,t,n,r){let{spanId:i,traceId:a}=e.spanContext(),o=wi(t),s=!o&&fr(e),c=s?new mi({...n,parentSpanId:i,traceId:a,sampled:s}):new Pr({traceId:a});vr(e,c),wn(c,t,r);let l=N();return l?(fi(l)&&Fr(c)&&(Fr(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),n.endTimestamp&&(l.emit(`spanEnd`,c),l.emit(`afterSpanEnd`,c)),c):c}function ji(e,t){if(t)return t;if(t===null)return;let n=Mt(e);if(!n)return;let r=N();return(r?r.getOptions():{}).parentSpanIsAlwaysRootSpan?xr(n):n}function Mi(e,t){let n=e?.getOptions().ignoreSpans;return!e||!fi(e)||!n?.length?!1:kr({description:t.name||``,op:t.attributes?.[`sentry.op`]||t.op,attributes:t.attributes},n)}function Ni(e){return Fr(e)&&e.dropReason===`ignored`}var Pi={idleTimeout:1e3,finalTimeout:3e4,childSpanTimeout:15e3},Fi=`heartbeatFailed`,Ii=`idleTimeout`,Li=`finalTimeout`,Ri=`externalFinish`;function zi(e,t={}){let n=new Map,i=!1,a,o=Ri,s=!t.disableAutoFinish,c=[],{idleTimeout:l=Pi.idleTimeout,finalTimeout:u=Pi.finalTimeout,childSpanTimeout:d=Pi.childSpanTimeout,beforeSpanEnd:f,trimIdleSpanEndTimestamp:p=!0}=t,m=N(),h=j();if(!m||!Dr()){let e=new Pr({traceId:h.getPropagationContext().traceId});return wn(e,h,M()),e}let g=Cr(),_=Bi(e);_.end=new Proxy(_.end,{apply(e,t,n){if(f&&f(_),Fr(t))return;let[r,...i]=n,a=ar(r||A()),o=br(_).filter(e=>e!==_),s=F(_);if(!o.length||!p)return w(a),Reflect.apply(e,t,[a,...i]);let c=m.getOptions().ignoreSpans,l=o?.reduce((e,t)=>{let n=F(t);return!n.timestamp||c&&kr({description:n.description,op:n.op,attributes:n.data},c)?e:e?Math.max(e,n.timestamp):n.timestamp},void 0),d=s.start_timestamp,h=Math.min(d?d+u/1e3:1/0,Math.max(d||-1/0,Math.min(a,l||1/0)));return w(h),Reflect.apply(e,t,[h,...i])}});function v(){a&&(clearTimeout(a),a=void 0)}function y(e){v(),a=setTimeout(()=>{!i&&n.size===0&&s&&(o=Ii,_.end(e))},l)}function b(e){a=setTimeout(()=>{!i&&s&&(o=Fi,_.end(e))},d)}function S(e){v(),n.set(e,!0),b(A()+d/1e3)}function C(e){n.has(e)&&n.delete(e),n.size===0&&y(A()+l/1e3)}function w(e){i=!0,n.clear(),c.forEach(e=>e()),jt(h,g);let t=F(_),{start_timestamp:a}=t;if(!a)return;t.data[`sentry.idle_span_finish_reason`]||_.setAttribute(ln,o);let s=t.status;(!s||s===`unknown`)&&_.setStatus({code:1}),x.log(`[Tracing] Idle span "${t.op}" finished`);let d=br(_).filter(e=>e!==_),f=0;d.forEach(t=>{t.isRecording()&&(t.setStatus({code:2,message:`cancelled`}),t.end(e),r&&x.log(`[Tracing] Cancelling span since span ended early`,JSON.stringify(t,void 0,2)));let{timestamp:n=0,start_timestamp:i=0}=F(t),a=i<=e,o=(u+l)/1e3,s=n-i<=o;if(r){let e=JSON.stringify(t,void 0,2);a?s||x.log(`[Tracing] Discarding span since it finished after idle span final timeout`,e):x.log(`[Tracing] Discarding span since it happened after idle span was finished`,e)}(!s||!a)&&(yr(_,t),f++)}),f>0&&_.setAttribute(`sentry.idle_span_discarded_spans`,f)}return c.push(m.on(`spanStart`,e=>{i||e===_||F(e).timestamp||e instanceof mi&&e.isStandaloneSpan()||br(_).includes(e)&&S(e.spanContext().spanId)})),c.push(m.on(`spanEnd`,e=>
9{i||C(e.spanContext().spanId)})),c.push(m.on(`idleSpanEnableAutoFinish`,e=>{e===_&&(s=!0,y(),n.size&&b())})),t.disableAutoFinish||y(),setTimeout(()=>{i||(_.setStatus({code:2,message:`deadline_exceeded`}),o=Li,_.end())},u),_}function Bi(e){let t=xi(e);return jt(j(),t),r&&x.log(`[Tracing] Started span is an idle span`),t}function Vi(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}function Hi(e,t){let{fingerprint:n,span:r,breadcrumbs:i,sdkProcessingMetadata:a}=t;Ki(e,t),r&&Yi(e,r),Xi(e,n),qi(e,i),Ji(e,a)}function Ui(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,span:h}=t;Wi(e,`extra`,n),Wi(e,`tags`,r),Wi(e,`attributes`,i),Wi(e,`user`,a),Wi(e,`contexts`,o),e.sdkProcessingMetadata=Tt(e.sdkProcessingMetadata,c,2),s&&(e.level=s),m&&(e.transactionName=m),h&&(e.span=h),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 Wi(e,t,n){e[t]=Tt(e[t],n,1)}function Gi(e,t){let n=tn().getScopeData();return e&&Ui(n,e.getScopeData()),t&&Ui(n,t.getScopeData()),n}function Ki(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 qi(e,t){let n=[...e.breadcrumbs||[],...t];e.breadcrumbs=n.length?n:void 0}function Ji(e,t){e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...t}}function Yi(e,t){e.contexts={trace:er(t),...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:Vr(t),...e.sdkProcessingMetadata};let n=F(xr(t)).description;n&&!e.transaction&&e.type===`transaction`&&(e.transaction=n)}function Xi(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 Zi=`http.url`,Qi=`sentry.segment.name`,$i=`sentry.transaction`,ea=`url.full`;function ta(e,t){let n=e.attributes??(e.attributes={});Object.entries(t).forEach(([e,t])=>{t!=null&&!(e in n)&&(n[e]=t)})}var na=0,ra=1,ia=2;function aa(e){return new sa(t=>{t(e)})}function oa(e){return new sa((t,n)=>{n(e)})}var sa=class e{constructor(e){this._state=na,this._handlers=[],this._runExecutor(e)}then(t,n){return new e((e,r)=>{this._handlers.push([!1,n=>{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===na)return;let e=this._handlers.slice();this._handlers=[],e.forEach(e=>{e[0]||(this._state===ra&&e[1](this._value),this._state===ia&&e[2](this._value),e[0]=!0)})}_runExecutor(e){let t=(e,t)=>{if(this._state===na){if(Ee(t)){t.then(n,r);return}this._state=e,this._value=t,this._executeHandlers()}},n=e=>{t(ra,e)},r=e=>{t(ia,e)};try{e(n,r)}catch(e){r(e)}}};function ca(e,t,n,r=0){try{let i=la(t,n,e,r);return Ee(i)?i:aa(i)}catch(e){return oa(e)}}function la(e,t,n,i){let a=n[i];if(!e||!a)return e;let o=a({...e},t);return r&&o===null&&x.log(`Event processor "${a.id||`?`}" dropped event`),Ee(o)?o.then(e=>la(e,t,n,i+1)):la(o,t,n,i+1)}var ua,da,fa,pa;function ma(e){let t=i._sentryDebugIds,n=i._debugIds;if(!t&&!n)return{};let r=t?Object.keys(t):[],a=n?Object.keys(n):[];if(pa&&r.length===da&&a.length===fa)return pa;da=r.length,fa=a.length,pa={},ua||(ua={});let o=(t,n)=>{for(let r of t){let t=n[r],i=ua?.[r];if(i&&pa&&t)pa[i[0]]=t,ua&&(ua[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&&pa&&ua){pa[i]=t,ua[r]=[i,t];break}}}}};return t&&o(r,t),n&&o(a,n),pa}function ha(e,t,n,r,i,a){let{normalizeDepth:o=3,normalizeMaxBreadth:s=1e3}=e,c={...t,event_id:t.event_id||n.event_id||st(),timestamp:t.timestamp||ht(
9)},l=n.integrations||e.integrations.map(e=>e.name);ga(c,e),ya(c,l),i&&i.emit(`applyFrameMetadata`,t),t.type===void 0&&_a(c,e.stackParser);let u=xa(r,n.captureContext);n.mechanism&&dt(c,n.mechanism);let d=i?i.getEventProcessors():[],f=Gi(a,u),p=[...n.attachments||[],...f.attachments];p.length&&(n.attachments=p),Hi(c,f);let m=[...d,...f.eventProcessors];return(n.data&&n.data.__sentry__===!0?aa(c):ca(m,c,n)).then(e=>(e&&va(e),typeof o==`number`&&o>0?ba(e,o,s):e))}function ga(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=et(o.url,a)),a&&e.exception?.values?.forEach(e=>{e.value&&(e.value=et(e.value,a))})}function _a(e,t){let n=ma(t);e.exception?.values?.forEach(e=>{e.stacktrace?.frames?.forEach(e=>{e.filename&&(e.debug_id=n[e.filename])})})}function va(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 ya(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}function ba(e,t,n){if(!e)return null;let r={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(e=>({...e,...e.data&&{data:Ke(e.data,t,n)}}))},...e.user&&{user:Ke(e.user,t,n)},...e.contexts&&{contexts:Ke(e.contexts,t,n)},...e.extra&&{extra:Ke(e.extra,t,n)}};return e.contexts?.trace&&r.contexts&&(r.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(r.contexts.trace.data=Ke(e.contexts.trace.data,t,n))),e.spans&&(r.spans=e.spans.map(e=>({...e,...e.data&&{data:Ke(e.data,t,n)}}))),e.contexts?.flags&&r.contexts&&(r.contexts.flags=Ke(e.contexts.flags,3,n)),r}function xa(e,t){if(!t)return e;let n=e?e.clone():new Pt;return n.update(t),n}function Sa(e){if(e)return Ca(e)||Ta(e)?{captureContext:e}:e}function Ca(e){return e instanceof Pt||typeof e==`function`}var wa=[`user`,`level`,`extra`,`contexts`,`tags`,`fingerprint`,`propagationContext`];function Ta(e){return Object.keys(e).some(e=>wa.includes(e))}function Ea(e,t){return j().captureException(e,Sa(t))}function Da(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 Oa(e,t){return j().captureEvent(e,t)}function ka(e,t){M().setContext(e,t)}function Aa(e){M().setTags(e)}function ja(e){M().setUser(e)}function Ma(){return M().lastEventId()}function Na(){let e=N();return e?.getOptions().enabled!==!1&&!!e?.getTransport()}function Pa(e){M().addEventProcessor(e)}function Fa(e){let t=M(),{user:n}=Gi(t,j()),{userAgent:r}=i.navigator||{},a=xt({user:n,...r&&{userAgent:r},...e}),o=t.getSession();return o?.status===`ok`&&St(o,{status:`exited`}),Ia(),t.setSession(a),a}function Ia(){let e=M(),t=j().getSession()||e.getSession();t&&Ct(t),La(),e.setSession()}function La(){let e=M(),t=N(),n=e.getSession();n&&t&&t.captureSession(n)}function Ra(e=!1){if(e){Ia();return}La()}function za(e){return typeof e==`object`&&typeof e.unref==`function`&&e.unref(),e}function Ba(e){let t=e.protocol?`${e.protocol}:`:``,n=e.port?`:${e.port}`:``;return`${t}//${e.host}${n}${e.path?`/${e.path}`:``}/api/`}function Va(e){return`${Ba(e)}${e.projectId}/envelope/`}function Ha(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 Ua(e,t,n){return t||`${Va(e)}?${Ha(e,n)}`}function Wa(e,t){let n=Wn(e);if(!n)return``;let r=`${Ba(n)}embed/error-page/`,i=`dsn=${Rn(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 Ga=[];function Ka(e){let t={};
9return e.forEach(e=>{let{name:n}=e,r=t[n];r&&!r.isDefaultInstance&&e.isDefaultInstance||(t[n]=e)}),Object.values(t)}function qa(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 Ka(r)}function Ja(e,t){let n={};return t.forEach(t=>{t?.beforeSetup&&t.beforeSetup(e)}),t.forEach(t=>{t&&Xa(e,t,n)}),n}function Ya(e,t){for(let n of t)n?.afterAllSetup&&n.afterAllSetup(e)}function Xa(e,t,n){if(n[t.name]){r&&x.log(`Integration skipped because it was already installed: ${t.name}`);return}if(n[t.name]=t,!Ga.includes(t.name)&&typeof t.setupOnce==`function`&&(t.setupOnce(),Ga.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))}),r&&x.log(`Integration installed: ${t.name}`)}function Za(e){let t=N();if(!t){r&&x.warn(`Cannot add integration "${e.name}" because no SDK Client is available.`);return}t.addIntegration(e)}function Qa(e){return e}var $a=`sentry.timestamp.sequence`,eo=0,to;function no(e){let t=Math.floor(e*1e3);to!==void 0&&t!==to&&(eo=0);let n=eo;return eo++,to=t,{key:$a,value:{value:n,type:`integer`}}}function ro(e,t){return t?nn(t,()=>{let n=Cr(),r=n?er(n):rn(t);return[n?Vr(n):Br(e,t),r]}):[void 0,void 0]}function io(){return typeof __SENTRY_BROWSER_BUNDLE__<`u`&&!!__SENTRY_BROWSER_BUNDLE__}function ao(){return`npm`}function oo(){return!io()&&Object.prototype.toString.call(typeof process<`u`?process:0)===`[object process]`}function so(){return typeof window<`u`&&(!oo()||co())}function co(){return i.process?.type===`renderer`}function lo(e,t){let n=t?`auto`:`never`;return[{type:`log`,item_count:e.length,content_type:`application/vnd.sentry.items.log+json`},{version:2,...so()&&{ingest_settings:{infer_ip:n,infer_user_agent:n}},items:e}]}function uo(e,t,n,r,i){let a={};return t?.sdk&&(a.sdk={name:t.sdk.name,version:t.sdk.version}),n&&r&&(a.dsn=Rn(r)),Ur(a,[lo(e,i)])}function fo(e,t){let n=t??po(e)??[];if(n.length===0)return;let r=e.getOptions(),i=uo(n,r._metadata,r.tunnel,e.getDsn(),e.getDataCollectionOptions().userInfo);mo().set(e,[]),e.emit(`flushLogs`),e.sendEnvelope(i)}function po(e){return mo().get(e)}function mo(){return c(`clientToLogBufferMap`,()=>new WeakMap)}function ho(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,...so()&&{ingest_settings:{infer_ip:n,infer_user_agent:n}},items:e}]}function go(e,t,n,r,i){let a={};return t?.sdk&&(a.sdk={name:t.sdk.name,version:t.sdk.version}),n&&r&&(a.dsn=Rn(r)),Ur(a,[ho(e,i)])}var _o=1e3;function vo(e,t,n,r=!0){n&&(r||!(t in e))&&(e[t]=n)}function yo(e,t){let n=To(),r=wo(e);r===void 0?n.set(e,[t]):r.length>=_o?(Co(e,r),n.set(e,[t])):n.set(e,[...r,t])}function bo(e,t,n){let{release:r,environment:i}=t.getOptions(),a={...e.attributes};vo(a,`user.id`,n.id,!1),vo(a,`user.email`,n.email,!1),vo(a,`user.name`,n.username,!1),vo(a,`sentry.release`,r),vo(a,`sentry.environment`,i);let{name:o,version:s}=t.getSdkMetadata()?.sdk??{};vo(a,`sentry.sdk.name`,o),vo(a,`sentry.sdk.version`,s);let c=t.getIntegrationByName(`Replay`),l=c?.getReplayId(!0);return vo(a,`sentry.replay_id`,l),l&&c?.getRecordingMode()===`buffer`&&vo(a,`sentry._internal.replay_is_buffering`,!0),{...e,attributes:a}}function xo(e,t,n,r){let[,i]=ro(t,n),a=Mt(n),o=a?a.spanContext().traceId:i?.trace_id,s=a?a.spanContext().spanId:void 0,c=A(),l=no(c);return{timestamp:c,trace_id:o??``,span_id:s,name:e.name,type:e.type,unit:e.unit,value:e.value,attributes:{...Xt(r),...Xt(e.attributes,`skip-undefined`),[l.key]:l.value}}}function So(e,t){let n=t?.scope??j(),i=t?.captureSerializedMetric??yo,a=n?.getClient()??N();if(!a){r&&x.warn(`No client available to capture metric.`);return}let{_experiments:o,enableMetrics:s,beforeSendMetric:c}=a.getOptions();if(!(s??o?.enableMetrics??!0)){r&&x.warn(`metrics option not enabled, metric will not be captured.`);return}let{user:l,attributes:u}=Gi(M(),n),d=bo(e,a,l);
9a.emit(`processMetric`,d);let f=c||o?.beforeSendMetric,p=f?f(d):d;if(!p){r&&x.log("`beforeSendMetric` returned `null`, will not send metric.");return}let m=xo(p,a,n,u);r&&x.log(`[Metric]`,m),i(a,m),a.emit(`afterCaptureMetric`,p)}function Co(e,t){let n=t??wo(e)??[];if(n.length===0)return;let r=e.getOptions(),i=go(n,r._metadata,r.tunnel,e.getDsn(),e.getDataCollectionOptions().userInfo);To().set(e,[]),e.emit(`flushMetrics`),e.sendEnvelope(i)}function wo(e){return To().get(e)}function To(){return c(`clientToMetricBufferMap`,()=>new WeakMap)}function Eo(e){return lr({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||e.start_timestamp,status:!e.status||e.status===`ok`||e.status===`cancelled`?`ok`:`error`,is_segment:!1,attributes:{...e.data},links:e.links})}function Do(e,t){if(e.type!==`transaction`||!e.spans?.length||!e.sdkProcessingMetadata?.hasGenAiSpans||t.getOptions().streamGenAiSpans===!1||fi(t))return;let n=[],r=[];for(let t of e.spans)t.op?.startsWith(`gen_ai.`)?n.push(Eo(t)):r.push(t);if(n.length===0)return;e.spans=r;let i=t.getDataCollectionOptions().userInfo?`auto`:`never`;return[{type:`span`,item_count:n.length,content_type:`application/vnd.sentry.items.span.v2+json`},{version:2,...so()&&{ingest_settings:{infer_ip:i,infer_user_agent:i}},items:n}]}var Oo=Symbol.for(`SentryBufferFullError`);function ko(e=100){let t=new Set;function n(){return t.size<e}function r(e){t.delete(e)}function i(e){if(!n())return oa(Oo);let i=e();return t.add(i),i.then(()=>r(i),()=>r(i)),i}function a(e){if(!t.size)return aa(!0);let n=Promise.allSettled(Array.from(t)).then(()=>!0);if(!e)return n;let r=[n,new Promise(t=>za(setTimeout(()=>t(!1),e)))];return Promise.race(r)}return{get $(){return Array.from(t)},add:i,drain:a}}var Ao=60*1e3;function jo(e,t=ze()){let n=parseInt(`${e}`,10);if(!isNaN(n))return n*1e3;let r=Date.parse(`${e}`);return isNaN(r)?Ao:r-t}function Mo(e,t){return e[t]||e.all||0}function No(e,t,n=ze()){return Mo(e,t)>n}function Po(e,{statusCode:t,headers:n},r=ze()){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+jo(o,r):t===429&&(i.all=r+60*1e3);return i}function Fo(e,t,n=ko(e.bufferSize||64)){let i={},a=e=>n.drain(e);function o(a){let o=[];if(Gr(a,(t,n)=>{let r=ei(n);No(i,r)?e.recordDroppedEvent(`ratelimit_backoff`,r):o.push(t)}),o.length===0)return Promise.resolve({});let s=Ur(a[0],o),c=t=>{if(Kr(s,[`client_report`])){r&&x.warn(`Dropping client report. Will not send outcomes (reason: ${t}).`);return}Gr(s,(n,r)=>{e.recordDroppedEvent(t,ei(r))})};return n.add(()=>t({body:Jr(s)}).then(e=>e.statusCode===413?(r&&x.error(`Sentry responded with status code 413. Envelope was discarded due to exceeding size limits.`),c(`send_error`),e):(r&&e.statusCode!==void 0&&(e.statusCode<200||e.statusCode>=300)&&x.warn(`Sentry responded with status code ${e.statusCode} to sent event.`),i=Po(i,e),e),e=>{throw c(`network_error`),r&&x.error(`Encountered error running transport request:`,e),e})).then(e=>e,e=>{if(e===Oo)return r&&x.error(`Skipped sending event because buffer is full.`),c(`queue_overflow`),Promise.resolve({});throw e})}return{send:o,flush:a}}function Io(e,t,n){let r=[{type:`client_report`},{timestamp:n||ht(),discarded_events:e}];return Ur(t?{dsn:t}:{},[r])}function Lo(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 Ro(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,timestamp:e.timestamp,trace_id:t??``,origin:a,profile_id:o?.[pn],exclusive_time:o?.[mn],measurements:e.measurements,is_segment:!0}}function zo(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}}var Bo=[`forwarded`,`-ip`,`remote-`,`via`,`-user`];function Vo(e){return e===!0?{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}
9,databaseQueryData:!0,stackFrameVariables:!0,frameContextLines:7}:{userInfo:!1,cookies:{deny:Bo},httpHeaders:{request:{deny:Bo},response:{deny:Bo}},httpBodies:[],urlQueryParams:{deny:Bo},graphQL:{document:!0,variables:!0},genAI:{inputs:!1,outputs:!1},databaseQueryData:!1,stackFrameVariables:!0,frameContextLines:7}}var Ho={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,stackFrameVariables:!0,frameContextLines:5};function Uo(e){let t=e.dataCollection==null?Vo(e.sendDefaultPii):Ho,n=e.dataCollection??{};return{userInfo:n.userInfo??t.userInfo,cookies:n.cookies??t.cookies,httpHeaders:{request:n.httpHeaders?.request??t.httpHeaders.request,response:n.httpHeaders?.response??t.httpHeaders.response},httpBodies:n.httpBodies??t.httpBodies,urlQueryParams:n.urlQueryParams??n.queryParams??t.urlQueryParams,graphQL:{document:n.graphQL?.document??t.graphQL.document,variables:n.graphQL?.variables??t.graphQL.variables},genAI:{inputs:n.genAI?.inputs??t.genAI.inputs,outputs:n.genAI?.outputs??t.genAI.outputs},databaseQueryData:n.databaseQueryData??t.databaseQueryData,stackFrameVariables:n.stackFrameVariables??t.stackFrameVariables,frameContextLines:n.frameContextLines??t.frameContextLines}}var Wo=`Not capturing exception because it's already been captured.`,Go=`Discarded session because of missing or non-string release`,Ko=Symbol.for(`SentryInternalError`),qo=Symbol.for(`SentryDoNotSendEventError`),Jo=5e3;function Yo(e){return{message:e,[Ko]:!0}}function Xo(e){return{message:e,[qo]:!0}}function Zo(e){return Ce(e)&&Ko in e}function Qo(e){return Ce(e)&&qo in e}function $o(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??Jo;t>0&&(s=!0,o=za(setTimeout(()=>{i(e)},t)))}}),e.on(`flush`,()=>{i(e)})}var es=class{constructor(e){if(this._options=e,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],this._promiseBuffer=ko(e.transportOptions?.bufferSize??64),this._dataCollection=Uo(e),e.dsn?this._dsn=Wn(e.dsn):r&&x.warn(`No DSN provided, client will not send events.`),this._dsn){let t=Ua(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})}this._options.enableLogs=this._options.enableLogs??this._options._experiments?.enableLogs,this._options.enableLogs&&$o(this,`afterCaptureLog`,`flushLogs`,ss,fo),(this._options.enableMetrics??this._options._experiments?.enableMetrics??!0)&&$o(this,`afterCaptureMetric`,`flushMetrics`,os,Co)}captureException(e,t,n){let i=st();if(ft(e))return r&&x.log(Wo),i;let a={event_id:i,...t};return this._process(()=>this.eventFromException(e,a).then(e=>this._captureEvent(e,a,n)).then(e=>e),`error`),a.event_id}captureMessage(e,t,n,r){let i={event_id:st(),...n},a=be(e)?e:String(e),o=xe(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 i=st();if(t?.originalException&&ft(t.originalException))return r&&x.log(Wo),i;let a={event_id:i,...t},o=e.sdkProcessingMetadata||{},s=o.capturedSpanScope,c=o.capturedSpanIsolationScope,l=ts(e.type);return this._process(()=>this._captureEvent(e,a,s||n,c),l),a.event_id}captureSession(e){this.sendSession(e),St(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()}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),Xa(this,e,this._integrations),t||Ya(this,[e])}sendEvent(e,t={}
9){this.emit(`beforeSendEvent`,e,t);let n=Do(e,this),r=ai(e,this._dsn,this._options._metadata,this._options.tunnel);for(let e of t.attachments||[])r=Wr(r,Zr(e));n&&(r=Wr(r,n)),this.sendEnvelope(r).then(t=>this.emit(`afterSendEvent`,e,t))}sendSession(e){let{release:t,environment:n=Ir}=this._options;if(`aggregates`in e){let i=e.attrs||{};if(!i.release&&!t){r&&x.warn(Go);return}i.release=i.release||t,i.environment=i.environment||n,e.attrs=i}else{if(!e.release&&!t){r&&x.warn(Go);return}e.release=e.release||t,e.environment=e.environment||n}this.emit(`beforeSendSession`,e);let i=ii(e,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(i)}recordDroppedEvent(e,t,n=1){if(this._options.sendClientReports){let i=`${e}:${t}`;r&&x.log(`Recording outcome: "${i}"${n>1?` (${n} times)`:``}`),this._outcomes[i]=(this._outcomes[i]||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];n&&n.forEach(e=>e(...t))}async sendEnvelope(e){if(this.emit(`beforeEnvelope`,e),this._isEnabled()&&this._transport)try{return await this._transport.send(e)}catch(e){return r&&x.error(`Error while sending envelope:`,e),{}}return r&&x.error(`Transport disabled`),{}}registerCleanup(e){}dispose(){}_setupIntegrations(){let{integrations:e}=this._options;this._integrations=Ja(this,e),Ya(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)&&(St(e,{...n&&{status:`crashed`},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),ha(i,e,t,n,this,r).then(e=>e===null?e:(this.emit(`postprocessEvent`,e,t),e.contexts={trace:{...e.contexts?.trace,...rn(n)},...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:Br(this,n),...e.sdkProcessingMetadata},e))}_captureEvent(e,t={},n=j(),i=M()){return r&&is(e)&&x.log(`Captured error event \`${Lo(e)[0]||`<unknown>`}\``),this._processEvent(e,t,n,i).then(e=>e.event_id,e=>{r&&(Qo(e)?x.log(e.message):Zo(e)?x.warn(e.message):x.warn(e))})}_processEvent(e,t,n,r){let i=this.getOptions(),{sampleRate:a}=i,o=as(e),s=is(e),c=`before send for type \`${e.type||`error`}\``,l=a===void 0?void 0:Gn(a),u=ts(e.type);return this._prepareEvent(e,t,n,r).then(e=>{if(e===null)throw this.recordDroppedEvent(`event_processor`,u),Xo("An event processor returned `null`, will not send event.");return t.data?.__sentry__===!0?e:ns(rs(this,i,e,t),c)}).then(i=>{if(i===null){if(this.recordDroppedEvent(`before_send`,u),o){let t=1+(e.spans||[]).length;this.recordDroppedEvent(`before_send`,`span`,t)}throw Xo(`${c} returned \`null\`, will not send event.`)}let d=n.getSession()||r.getSession();if(s&&d&&this._updateSessionFromEvent(d,i),s&&typeof l==`number`&&Re()>l)throw this.recordDroppedEvent(`sample_rate`,`error`),Xo(`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 f=i.transaction_info;return o&&f&&i.transaction!==e.transaction&&(i.transaction_info={...f,source:`custom`}),this.sendEvent(i,t),i}).then(null,e=>{throw Qo(e)||Zo(e)?e:(this.captureException(e,{mechanism:{handled:!1,type:`internal`},data:{__sentry__:!0},originalException:e}),Yo(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.
10Reason: ${e}`))})}_process(e,t){this._numProcessing++,this._promiseBuffer.add(e).then(e=>(this._numProcessing--,e),e=>(this._numProcessing--,e===Oo&&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(){r&&x.log(`Flushing outcomes...`);let e=this._clearOutcomes();if(e.length===0){r&&x.log(`No outcomes to send`);return}if(!this._dsn){r&&x.log(`No dsn provided, will not send outcomes`);return}r&&x.log(`Sending outcomes:`,e);let t=Io(e,this._options.tunnel&&Rn(this._dsn));this.sendEnvelope(t)}};
10function ts(e){return e===`replay_event`?`replay`:e||`error`}function ns(e,t){let n=`${t} must return \`null\` or a valid event.`;if(Ee(e))return e.then(e=>{if(!Se(e)&&e!==null)throw Yo(n);return e},e=>{throw Yo(`${t} rejected with ${e}`)});if(!Se(e)&&e!==null)throw Yo(n);return e}function rs(e,t,n,r){let{beforeSend:i,beforeSendTransaction:a,ignoreSpans:o}=t,s=!Hr(t.beforeSendSpan)&&t.beforeSendSpan,c=n;if(is(c)&&i)return i(c,r);if(as(c)){if(s||o){let t=Ro(c);if(o?.length&&kr({description:t.description,op:t.op,attributes:t.data},o))return null;if(s){let e=s(t);e?c=Tt(n,zo(e)):wr()}if(c.spans){let t=[],n=c.spans;for(let e of n){if(o?.length&&kr({description:e.description,op:e.op,attributes:e.data},o)){jr(n,e);continue}if(s){let n=s(e);n?t.push(n):(wr(),t.push(e))}else t.push(e)}let r=c.spans.length-t.length;r&&e.recordDroppedEvent(`before_send`,`span`,r),c.spans=t}}if(a){if(c.spans){let e=c.spans.length;c.sdkProcessingMetadata={...n.sdkProcessingMetadata,spanCountBeforeProcessing:e}}return a(c,r)}}return c}function is(e){return e.type===void 0}function as(e){return e.type===`transaction`}function os(e){let t=0;return e.name&&(t+=e.name.length*2),t+=8,t+cs(e.attributes)}function ss(e){let t=0;return e.message&&(t+=e.message.length*2),t+cs(e.attributes)}function cs(e){if(!e)return 0;let t=0;return Object.values(e).forEach(e=>{Array.isArray(e)?t+=e.length*ls(e[0]):xe(e)?t+=ls(e):t+=100}),t}function ls(e){return typeof e==`string`?e.length*2:typeof e==`number`?8:typeof e==`boolean`?4:0}function us(e,t){t.debug===!0&&(r?x.enable():f(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})),j().update(t.initialScope);let n=new e(t);return ds(n),n.init(),n}function ds(e){j().setClient(e)}var fs=`thismessage:/`;function ps(e){return`isRelative`in e}function ms(e,t){let n=e.indexOf(`://`)<=0&&e.indexOf(`//`)!==0,r=t??(n?fs: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{}}function hs(e){if(ps(e))return e.pathname;let t=new URL(e);return t.search=``,t.hash=``,[`80`,`443`].includes(t.port)&&(t.port=``),t.password&&(t.password=`%filtered%`),t.username&&(t.username=`%filtered%`),t.toString()}function gs(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 _s(e){return e.split(/[?#]/,1)[0]}function vs(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 ys(e,t){let n=t?.getDsn(),r=t?.getOptions().tunnel;return xs(e,n)||bs(e,r)}function bs(e,t){return t?Cs(e)===Cs(t):!1}function xs(e,t){let n=ms(e);return!n||ps(n)||!t?!1:Ss(n.hostname,t.host)&&/(^|&|\?)sentry_key=/.test(n.search)}function Ss(e,t){return e===t||t.length>0&&e.endsWith(`.${t}`)}function Cs(e){return e[e.length-1]===`/`?e.slice(0,-1):e}function ws(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 Ts(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:a})),i.version=a)}function Es(e={}){let t=e.client||N();if(!Na()||!t)return{};let n=qt(o());if(n.getTraceData)return n.getTraceData(e);let r=e.scope||j(),i=e.span||Cr(),a=Fr(i)&&!Dr(t.getOptions());if(!i&&en())return{};let s=i&&!a?tr(i):Ds(r),c=jn(i?Vr(i):Br(t,r));if(!Kn.test(s))return x.warn(`Invalid sentry-trace data. Cannot generate trace data`),{};let l={"sentry-trace":s,baggage:c};return e.propagateTraceparent&&(l.traceparent=i&&!a?nr(i):Os(r)),l}function Ds(e){let{traceId:t,sampled:n,propagationSpanId:r}=e.getPropagationContext();return Yn(t,r,n)}function Os(e){let{traceId:t,sampled:n,propagationSpanId:r}=e.getPropagationContext();return Xn(t,r,n)}var ks=100;function As(e,t){let n=N(),r=M();if(!n)return;let{beforeBreadcrumb:i=null,maxBreadcrumbs:a=ks}=n.getOptions();if(a<=0)return;let o={timestamp:ht(),...e},s=i?f(()=>i(o,t)):o;s!==null&&(n.emit&&n.emit(`beforeAddBreadcrumb`,s,t),r.addBreadcrumb(s,a))}var js=`FunctionToString`,Ms=new WeakMap,Ns=Qa((()=>({name:js,setupOnce(){let e=Function.prototype.toString;try{Function.prototype.toString=function(...t){let n=Me(this),r;try{Ms.has(N())&&n!==void 0&&(r=n)}catch{}return e.apply(r??this,t)}}catch{}},setup(e){Ms.set(e,!0)}}))),Ps=[/^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$/],Fs=`EventFilters`,Is=Qa((e={})=>{let t;return{name:Fs,setup(n){t=Rs(e,n.getOptions())},processEvent(n,r,i){return t||(t=Rs(e,i.getOptions())),zs(n,t)?null:n}}}),Ls=Qa(((e={})=>({...Is(e),name:`InboundFilters`})));function Rs(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:Ps],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[]]}}function zs(e,t){if(!e.type){if(Bs(e,t.ignoreErrors))return r&&x.warn(`Event dropped due to being matched by \`ignoreErrors\` option.
11Event: ${lt(e)}`),!0;if(Ks(e))return r&&x.warn(`Event dropped due to not having an error message, error type or stacktrace.
12Event: ${lt(e)}`),!0;if(Hs(e,t.denyUrls))return r&&x.warn(`Event dropped due to being matched by \`denyUrls\` option.
13Event: ${lt(e)}.
14Url: ${Gs(e)}`),!0;if(!Us(e,t.allowUrls))return r&&x.warn(`Event dropped due to not being matched by \`allowUrls\` option.
15Event: ${lt(e)}.
16Url: ${Gs(e)}`),!0}else if(e.type===`transaction`&&Vs(e,t.ignoreTransactions))return r&&x.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.
17Event: ${lt(e)}`),!0;return!1}function Bs(e,t){return t?.length?Lo(e).some(e=>rt(e,t)):!1}function Vs(e,t){if(!t?.length)return!1;let n=e.transaction;return n?rt(n,t):!1}function Hs(e,t){if(!t?.length)return!1;let n=Gs(e);return n?rt(n,t):!1}function Us(e,t){if(!t?.length)return!0;let n=Gs(e);return!n||rt(n,t)}function Ws(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 Gs(e){try{let t=[...e.exception?.values??[]].reverse().find(e=>e.mechanism?.parent_id===void 0&&e.stacktrace?.frames?.length)?.stacktrace?.frames;return t?Ws(t):null}catch{return r&&x.error(`Cannot extract url for event ${lt(e)}`),null}}function Ks(e){return e.exception?.values?.length?!e.message&&!e.exception.values.some(e=>e.stacktrace||e.type&&e.type!==`Error`||e.value):!1}function qs(e,t,n,r,i,a){if(!i.exception?.values||!a||!he(a.originalException))return;let o=i.exception.values.length>0?i.exception.values[i.exception.values.length-1]:void 0;o&&(i.exception.values=Js(e,t,r,a.originalException,n,i.exception.values,o,0))}
17function Js(e,t,n,r,i,a,o,s){if(a.length>=n+1)return a;let c=[...a];if(he(r[i])){Xs(o,s,r);let a=e(t,r[i]),l=c.length;Zs(a,i,l,s),c=Js(e,t,n,r[i],i,[a,...c],a,l)}return Ys(r)&&r.errors.forEach((a,l)=>{if(he(a)){Xs(o,s,r);let u=e(t,a),d=c.length;Zs(u,`errors[${l}]`,d,s),c=Js(e,t,n,a,i,[u,...c],u,d)}}),c}function Ys(e){return Array.isArray(e.errors)}function Xs(e,t,n){e.mechanism={handled:!0,type:`auto.core.linked_errors`,...Ys(n)&&{is_exception_group:!0},...e.mechanism,exception_id:t}}function Zs(e,t,n,r){e.mechanism={handled:!0,...e.mechanism,type:`chained`,source:t,exception_id:n,parent_id:r}}function Qs(e){return he(e)&&`__sentry_fetch_url_host__`in e&&typeof e.__sentry_fetch_url_host__==`string`}function $s(e){return Qs(e)?`${e.message} (${e.__sentry_fetch_url_host__})`:e.message}var ec=new Set([]);function tc(e){let t=`console`,n=O(t,e);return oe(t,rc),n}var nc=new Set;function rc(){`console`in i&&l.forEach(function(e){nc.has(e)||!(e in i.console)||(nc.add(e),ke(i.console,e,function(t){return d[e]=t,function(...t){let n=t[0],a=d[e],o=ec.size&&typeof n==`string`&&rt(n,ec);o||se(`console`,{args:t,level:e}),(!o||r&&x.isEnabled())&&a?.apply(i.console,t)}}))})}function ic(e){return e===`warn`?`warning`:[`fatal`,`error`,`warning`,`log`,`info`,`debug`].includes(e)?e:`log`}var ac=`Dedupe`,oc=Qa((()=>{let e;return{name:ac,processEvent(t){if(t.type)return t;try{if(sc(t,e))return r&&x.warn(`Event dropped due to being a duplicate of previously captured event.`),null}catch{}return e=t}}}));function sc(e,t){return t?!!(cc(e,t)||lc(e,t)):!1}function cc(e,t){let n=e.message,r=t.message;return!(!n&&!r||n&&!r||!n&&r||n!==r||!dc(e,t)||!uc(e,t))}function lc(e,t){let n=fc(t),r=fc(e);return!(!n||!r||n.type!==r.type||n.value!==r.value||!dc(e,t)||!uc(e,t))}function uc(e,t){let n=ie(e),r=ie(t);if(!n&&!r)return!0;if(n&&!r||!n&&r||(n=n,r=r,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 dc(e,t){let n=e.fingerprint,r=t.fingerprint;if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;n=n,r=r;try{return n.join(``)===r.join(``)}catch{return!1}}function fc(e){return e.exception?.values?.[0]}var pc=`ConversationId`,mc=Qa((()=>({name:pc,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}=F(e);if(!t?.startsWith(`gen_ai.`)&&!n[`ai.operationId`]&&!i?.startsWith(`ai.`))return;e.setAttribute(gn,r)}})}})));function hc(e,t,n,r,i){if(!e.fetchData)return;let{method:a,url:o}=e.fetchData,s=Dr()&&t(o);if(e.endTimestamp){let t=e.fetchData.__span;if(!t)return;let n=r[t];n&&(s&&(vc(n,e),gc(n,e,i)),delete r[t]);return}let{spanOrigin:c=`auto.http.browser`,propagateTraceparent:l=!1}=typeof i==`object`?i:{spanOrigin:i},u=N(),d=!!Cr(),f=d||!!u&&fi(u),p=s&&f?xi(Sc(o,a,c)):new Pr,m=Ni(p)&&d?void 0:p;if(s&&!f&&u?.recordDroppedEvent(`no_parent_span`,`span`),e.fetchData.__span=p.spanContext().spanId,r[p.spanContext().spanId]=p,n(e.fetchData.url)){let t=e.args[0],n={...e.args[1]||{}},r=_c(t,n,Dr()&&f?m:void 0,l);r&&(e.args[1]=n,n.headers=r)}if(u){let t={input:e.args,response:e.response,startTimestamp:e.startTimestamp,endTimestamp:e.endTimestamp};u.emit(`beforeOutgoingRequestSpan`,p,t)}return p}function gc(e,t,n){(typeof n==`object`&&n?n.onRequestSpanEnd:void 0)?.(e,{headers:t.response?.headers,error:t.error})}function _c(e,t,n,r){let i=Es({span:n,propagateTraceparent:r}),a=i[`sentry-trace`],o=i.baggage,s=i.traceparent;if(!a)return;let c=t.headers||(Oe(e)?e.headers:void 0);if(!c)return{"sentry-trace":a,...o&&{baggage:o},...s&&{traceparent:s}};if(bc(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?yc(t)||e.set(`baggage`,`${t},${o}`):e.set(`baggage`,o)}return e}else if(xc(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`&&yc(e[1]));return o&&!t&&e.push([`baggage`,o]),e}else{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=>yc(e)):yc(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 vc(e,t){if(t.response){vn(e,t.response.status);let n=t.response?.headers?.get(`content-length`);if(n){let t=parseInt(n);t>0&&e.setAttribute(`http.response_content_length`,t)}}else t.error&&e.setStatus({code:2,message:`internal_error`});e.end()}function yc(e){return typeof e==`string`&&e.split(`,`).some(e=>e.trim().startsWith(kn))}function bc(e){return typeof Headers<`u`&&De(e,Headers)}function xc(e){return Array.isArray(e)?e.every(e=>Array.isArray(e)&&e.length===2&&typeof e[0]==`string`):!1}function Sc(e,t,n){if(e.startsWith(`data:`))return{name:`${t} ${vs(e)}`,attributes:Cc(e,void 0,t,n)};let r=ms(e);return{name:`${t} ${r?hs(r):e}`,attributes:Cc(e,r,t,n)}}function Cc(e,t,n,r){let i={url:vs(e),type:`fetch`,"http.method":n,[P]:r,[cn]:`http.client`};return t&&(ps(t)||(i[Zi]=vs(t.href),i[ea]=vs(t.href),i[`server.address`]=t.host),t.search&&(i[`http.query`]=t.search),t.hash&&(i[`http.fragment`]=t.hash)),i}function wc(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 Tc=e({count:()=>Dc,distribution:()=>kc,gauge:()=>Oc});function Ec(e,t,n,r){So({type:e,name:t,value:n,unit:r?.unit,attributes:r?.attributes},{scope:r?.scope})}function Dc(e,t=1,n){Ec(`counter`,e,t,n)}
17function Oc(e,t,n){Ec(`gauge`,e,t,n)}function kc(e,t,n){Ec(`distribution`,e,t,n)}function Ac(e){if(e!==void 0){if(e>=400&&e<500)return`warning`;if(e>=500)return`error`}}var jc=i;function Mc(){return`history`in jc&&!!jc.history}function Nc(){if(!(`fetch`in jc))return!1;try{return new Headers,new Request(`data:,`),new Response,!0}catch{return!1}}function Pc(e){return e&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function Fc(){if(typeof EdgeRuntime==`string`)return!0;if(!Nc())return!1;if(Pc(jc.fetch))return!0;let e=!1,t=jc.document;if(t&&typeof t.createElement==`function`)try{let n=t.createElement(`iframe`);n.hidden=!0,t.head.appendChild(n),n.contentWindow?.fetch&&(e=Pc(n.contentWindow.fetch)),t.head.removeChild(n)}catch(e){r&&x.warn(`Could not create sandbox iframe for pure fetch check, bailing to window.fetch: `,e)}return e}function Ic(e,t){let n=`fetch`,r=O(n,e);return oe(n,()=>Rc(void 0,t)),r}function Lc(e){let t=`fetch-body-resolved`,n=O(t,e);return oe(t,()=>Rc(Bc)),n}function Rc(e,t=!1){t&&!Fc()||ke(i,`fetch`,function(t){return function(...n){let r=Error(),{method:a,url:o}=Uc(n),s={args:n,fetchData:{method:a,url:o},startTimestamp:A()*1e3,virtualError:r,headers:Wc(n)};return e||se(`fetch`,{...s}),t.apply(i,n).then(async t=>(e?e(t):se(`fetch`,{...s,endTimestamp:A()*1e3,response:t}),t),e=>{se(`fetch`,{...s,endTimestamp:A()*1e3,error:e}),he(e)&&e.stack===void 0&&(e.stack=r.stack,Ae(e,`framesToPop`,1));let t=N()?.getOptions().enhanceFetchErrorMessages??`always`;if(t!==!1&&he(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})`:Ae(e,`__sentry_fetch_url_host__`,n)}catch{}throw e})}})}async function zc(e,t){if(e?.body){let n=e.body,r=n.getReader(),i=setTimeout(()=>{n.cancel().then(null,()=>{})},90*1e3),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 Bc(e){let t;try{t=e.clone()}catch{return}zc(t,()=>{se(`fetch-body-resolved`,{endTimestamp:A()*1e3,response:e})})}function Vc(e,t){return Ce(e)&&!!e[t]}function Hc(e){return typeof e==`string`?e:e?Vc(e,`url`)?e.url:e.toString?e.toString():``:``}function Uc(e){if(e.length===0)return{method:`GET`,url:``};if(e.length===2){let[t,n]=e;return{url:Hc(t),method:Vc(n,`method`)?String(n.method).toUpperCase():Oe(t)&&Vc(t,`method`)?String(t.method).toUpperCase():`GET`}}let t=e[0];return{url:Hc(t),method:Vc(t,`method`)?String(t.method).toUpperCase():`GET`}}function Wc(e){let[t,n]=e;try{if(typeof n==`object`&&n&&`headers`in n&&n.headers)return new Headers(n.headers);if(Oe(t))return new Headers(t.headers)}catch{}}var Gc=i;function Kc(){try{return Gc.document.location.href}catch{return``}}function qc(e,t=5){if(!Gc.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 Jc=i,I=Jc.document,Yc=Jc.navigator,Xc=`Report a Bug`,Zc=`Cancel`,Qc=`Send Bug Report`,$c=`Confirm`,el=`Report a Bug`,tl=`
17[email protected]`,nl=`Email`,rl=`What's the bug? What did you expect?`,il=`Description`,al=`Your Name`,ol=`Name`,sl=`Thank you for your report!`,cl=`(required)`,ll=`Add a screenshot`,ul=`Remove screenshot`,dl=`Highlight`,fl=`Hide`,pl=`Remove`,ml=`Unable to submit feedback with empty message`,hl=`No client setup, cannot send feedback.`,gl=`Unable to determine if Feedback was correctly sent.`,_l=`Unable to send feedback. This could be because this domain is not in your list of allowed domains.`,vl=`Unable to send feedback. This could be because of network issues, or because you are using an ad-blocker.`,yl=`widget`,bl=`api`,xl=5e3,Sl={ERROR_EMPTY_MESSAGE:ml,ERROR_NO_CLIENT:hl,ERROR_TIMEOUT:gl,ERROR_FORBIDDEN:_l,ERROR_GENERIC:vl};function Cl(e,t){return t?.[e]??Sl[e]}function wl(e,t){return Error(Cl(e,t))}var Tl=(e,t={includeReplay:!0})=>{let n=t.errorMessages;if(!e.message)throw wl(`ERROR_EMPTY_MESSAGE`,n);let r=N();if(!r)throw wl(`ERROR_NO_CLIENT`,n);e.tags&&Object.keys(e.tags).length&&j().setTags(e.tags);let i=wc({source:bl,url:Kc(),...e},t);return new Promise((e,t)=>{let a=setTimeout(()=>{o(),t(Cl(`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(Cl(`ERROR_FORBIDDEN`,n)):t(Cl(`ERROR_GENERIC`,n))})})},El=typeof __SENTRY_DEBUG__>`u`||__SENTRY_DEBUG__;function Dl(){return!(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(Yc.userAgent)||/Macintosh/i.test(Yc.userAgent)&&Yc.maxTouchPoints&&Yc.maxTouchPoints>1||!isSecureContext)}function Ol(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 kl(e){let t=I.createElement(`style`);return t.textContent=`
18.widget__actor {
19  position: fixed;
20  z-index: var(--z-index);
21  margin: var(--page-margin);
22  inset: var(--actor-inset);
23
24  display: flex;
25  align-items: center;
26  gap: 8px;
27  padding: 16px;
28
29  font-family: inherit;
30  font-size: var(--font-size);
31  font-weight: 600;
32  line-height: 1.14em;
33  text-decoration: none;
34
35  background: var(--actor-background, var(--background));
36  border-radius: var(--actor-border-radius, 1.7em/50%);
37  border: var(--actor-border, var(--border));
38  box-shadow: var(--actor-box-shadow, var(--box-shadow));
39  color: var(--actor-color, var(--foreground));
40  fill: var(--actor-color, var(--foreground));
41  cursor: pointer;
42  opacity: 1;
43  transition: transform 0.2s ease-in-out;
44  transform: translate(0, 0) scale(1);
45}
46.widget__actor[aria-hidden="true"] {
47  opacity: 0;
48  pointer-events: none;
49  visibility: hidden;
50  transform: translate(0, 16px) scale(0.98);
51}
52
53.widget__actor:hover {
54  background: var(--actor-hover-background, var(--background));
55  filter: var(--interactive-filter);
56}
57
58.widget__actor svg {
59  width: 1.14em;
60  height: 1.14em;
61}
62
63@media (max-width: 600px) {
64  .widget__actor span {
65    display: none;
66  }
67}
68`,e&&t.setAttribute(`nonce`,e),t}function Al(e,t){return Object.entries(t).forEach(([t,n])=>{e.setAttributeNS(null,t,n)}),e}var jl=20,Ml=`http://www.w3.org/2000/svg`;function Nl(){let e=e=>Jc.document.createElementNS(Ml,e),t=Al(e(`svg`),{width:`${jl}`,height:`${jl}`,viewBox:`0 0 ${jl} ${jl}`,fill:`var(--actor-color, var(--foreground))`}),n=Al(e(`g`),{clipPath:`url(#clip0_57_80)`}),r=Al(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=Al(e(`clipPath`),{id:`clip0_57_80`}),o=Al(e(`rect`),{width:`${jl}`,height:`${jl}`,fill:`white`});return a.appendChild(o),i.appendChild(a),t.appendChild(i).appendChild(a).appendChild(o),t}function Pl({triggerLabel:e,triggerAriaLabel:t,shadow:n,styleNonce:r}){let i=I.createElement(`button`);if(i.type=`button`,i.className=`widget__actor`,i.ariaHidden=`false`,i.ariaLabel=t||e||Xc,i.appendChild(Nl()),e){let t=I.createElement(`span`);t.appendChild(I.createTextNode(e)),i.appendChild(t)}let a=kl(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 Fl=`rgba(88, 74, 192, 1)`,Il={foreground:`#2b2233`,background:`#ffffff`,accentForeground:`white`,accentBackground:Fl,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%)`},Ll={foreground:`#ebe6ef`,background:`#29232f`,accentForeground:`white`,accentBackgroun
68d:Fl,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 Rl(e){return`
69  --foreground: ${e.foreground};
70  --background: ${e.background};
71  --accent-foreground: ${e.accentForeground};
72  --accent-background: ${e.accentBackground};
73  --success-color: ${e.successColor};
74  --error-color: ${e.errorColor};
75  --border: ${e.border};
76  --box-shadow: ${e.boxShadow};
77  --outline: ${e.outline};
78  --interactive-filter: ${e.interactiveFilter};
79  `}function zl({colorScheme:e,themeDark:t,themeLight:n,styleNonce:r}){let i=I.createElement(`style`);return i.textContent=`
80:host {
81  --font-family: system-ui, 'Helvetica Neue', Arial, sans-serif;
82  --font-size: 14px;
83  --z-index: 100000;
84
85  --page-margin: 16px;
86  --inset: auto 0 0 auto;
87  --actor-inset: var(--inset);
88
89  font-family: var(--font-family);
90  font-size: var(--font-size);
91
92  ${e===`system`?``:`color-scheme: only ${e};`}
93
94  ${Rl(e===`dark`?{...Ll,...t}:{...Il,...n})}
95}
96
97${e===`system`?`
98@media (prefers-color-scheme: dark) {
99  :host {
100    color-scheme: only dark;
101
102    ${Rl({...Ll,...t})}
103  }
104}`:``}
105`,r&&i.setAttribute(`nonce`,r),i}var Bl=({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=ll,cancelButtonLabel:y=Zc,confirmButtonLabel:b=$c,emailLabel:S=nl,emailPlaceholder:C=tl,formTitle:w=el,isRequiredLabel:T=cl,messageLabel:ee=il,messagePlaceholder:te=rl,nameLabel:ne=ol,namePlaceholder:re=al,removeScreenshotButtonLabel:E=ul,submitButtonLabel:ie=Qc,successMessageText:D=sl,triggerLabel:ae=Xc,triggerAriaLabel:O=``,highlightToolText:oe=dl,hideToolText:se=fl,removeHighlightText:ce=pl,errorEmptyMessageText:le=ml,errorNoClientText:ue=hl,errorTimeoutText:de=gl,errorForbiddenText:fe=_l,errorGenericText:pe=vl,onFormOpen:me,onFormClose:he,onSubmitSuccess:ge,onSubmitError:_e,onFormSubmitted:ve}={})=>{let ye={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:ae,triggerAriaLabel:O,cancelButtonLabel:y,submitButtonLabel:ie,confirmButtonLabel:b,formTitle:w,emailLabel:S,emailPlaceholder:C,messageLabel:ee,messagePlaceholder:te,nameLabel:ne,namePlaceholder:re,successMessageText:D,isRequiredLabel:T,addScreenshotButtonLabel:v,removeScreenshotButtonLabel:E,highlightToolText:oe,hideToolText:se,removeHighlightText:ce,errorEmptyMessageText:le,errorNoClientText:ue,errorTimeoutText:de,errorForbiddenText:fe,errorGenericText:pe,onFormClose:he,onFormOpen:me,onSubmitError:_e,onSubmitSuccess:ge,onFormSubmitted:ve},k=null,be=null,xe=[],Se=e=>{if(!k){let t=I.createElement(`div`);t.id=String(e.id),I.body.appendChild(t),k=t.attachShadow({mode:`open`}),be=zl(e),k.appendChild(be)}return k},Ce=async r=>{let i=r.enableScreenshot&&Dl(),a,o;try{a=(t?t():await e(`feedbackModalIntegration`,m))(),Za(a)}catch{throw El&&x.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(),Za(o))}catch{El&&x.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)=>Tl(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:Se(r)});return l},we=(e,t={})=>{let n=Ol(ye,t),r=typeof e==`string`?I.querySelector(e):typeof e.addEventListener==`function`?e:null;if(!r)throw El&&x.error(`[Feedback] Unable to attach to target element`),Error(`Unable to attach to target element`);let i=null,a=async()=>{i||(i=await Ce({...n,onFormSubmitted:()=>{i?.removeFromDom(),n.onFormSubmitted?.()}})),i.appendToDom(),i.open()};r.addEventListener(`click`,a);let o=()=>{xe=xe.filter(e=>e!==o),i?.removeFromDom(),i=null,r.removeEventListener(`click`,a)};return xe.push(o),o},Te=(e={})=>{let t=Ol(ye,e),n=Se(t),r=Pl({triggerLabel:t.triggerLabel,triggerAriaLabel:t.triggerAriaLabel,shadow:n,styleNonce:p});return we(r.el,{...t,onFormOpen(){r.hide()},onFormClose(){r.show()},onFormSubmitted(){r.show()}}),r};return{name:`Feedback`,setupOnce(){!so()||!ye.autoInject||(I.readyState===`loading`?I.addEventListener(`DOMContentLoaded`,()=>Te().appendToDom()):Te().appendToDom())},attachTo:we,createWidget(e={}){let t=Te(Ol(ye,e));return t.appendToDom(),t},async createForm(e={}){return Ce(Ol(ye,e))},setTheme(e){if(ye.colorScheme=e,k){let e=zl(ye);be?k.replaceChild(e,be):k.prepend(e),be=e}},remove(){k&&(k.parentElement?.remove(),k=null,be=null),xe.forEach(e
vendor: 5,465 bytes, line 105
105=>e()),xe=[]}}});function Vl(){return N()?.getIntegrationByName(`Feedback`)}var Hl,L,Ul,Wl,Gl,Kl,ql,Jl={},Yl=[],Xl=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Zl=Array.isArray;function Ql(e,t){for(var n in t)e[n]=t[n];return e}function $l(e){var t=e.parentNode;t&&t.removeChild(e)}function R(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?Hl.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 eu(e,o,r,i,null)}function eu(e,t,n,r,i){var a={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:i??++Ul,__i:-1,__u:0};return i==null&&L.vnode!=null&&L.vnode(a),a}function tu(e){return e.children}function nu(e,t){this.props=e,this.context=t}function ru(e,t){if(t==null)return e.__?ru(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`?ru(e):null}function iu(e,t,n){var r,i=e.__v,a=i.__e,o=e.__P;if(o)return(r=Ql({},i)).__v=i.__v+1,L.vnode&&L.vnode(r),gu(o,r,i,e.__n,o.ownerSVGElement!==void 0,32&i.__u?[a]:null,t,a??ru(i),!!(32&i.__u),n),r.__.__k[r.__i]=r,r.__d=void 0,r.__e!=a&&au(r),r}function au(e){var t,n;if((e=e.__)!=null&&e.__c!=null){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null){e.__e=e.__c.base=n.__e;break}return au(e)}}function ou(e){(!e.__d&&(e.__d=!0)&&Wl.push(e)&&!su.__r++||Gl!==L.debounceRendering)&&((Gl=L.debounceRendering)||Kl)(su)}function su(){var e,t,n,r=[],i=[];for(Wl.sort(ql);e=Wl.shift();)e.__d&&(n=Wl.length,t=iu(e,r,i)||t,n===0||Wl.length>n?(_u(r,t,i),i.length=r.length=0,t=void 0,Wl.sort(ql)):t&&L.__c&&L.__c(t,Yl));t&&_u(r,t,i),su.__r=0}function cu(e,t,n,r,i,a,o,s,c,l,u){var d,f,p,m,h,g=r&&r.__k||Yl,_=t.length;for(n.__d=c,lu(n,t,g),c=n.__d,d=0;d<_;d++)(p=n.__k[d])!=null&&typeof p!=`boolean`&&typeof p!=`function`&&(f=p.__i===-1?Jl:g[p.__i]||Jl,p.__i=d,gu(e,p,f,i,a,o,s,c,l,u),m=p.__e,p.ref&&f.ref!=p.ref&&(f.ref&&yu(f.ref,null,p),u.push(p.ref,p.__c||m,p)),h==null&&m!=null&&(h=m),65536&p.__u||f.__k===p.__k?c=uu(p,c,e):typeof p.type==`function`&&p.__d!==void 0?c=p.__d:m&&(c=m.nextSibling),p.__d=void 0,p.__u&=-196609);n.__d=c,n.__e=h}function lu(e,t,n){var r,i,a,o,s,c=t.length,l=n.length,u=l,d=0;for(e.__k=[],r=0;r<c;r++)(i=e.__k[r]=(i=t[r])==null||typeof i==`boolean`||typeof i==`function`?null:typeof i==`string`||typeof i==`number`||typeof i==`bigint`||i.constructor==String?eu(null,i,null,null,i):Zl(i)?eu(tu,{children:i},null,null,null):i.constructor===void 0&&i.__b>0?eu(i.type,i.props,i.key,i.ref?i.ref:null,i.__v):i)==null?(a=n[r])&&a.key==null&&a.__e&&(a.__e==e.__d&&(e.__d=ru(a)),bu(a,a,!1),n[r]=null,u--):(i.__=e,i.__b=e.__b+1,s=du(i,n,o=r+d,u),i.__i=s,a=null,s!==-1&&(u--,(a=n[s])&&(a.__u|=131072)),a==null||a.__v===null?(s==-1&&d--,typeof i.type!=`function`&&(i.__u|=65536)):s!==o&&(s===o+1?d++:s>o?u>c-o?d+=s-o:d--:d=s<o&&s==o-1?s-o:0,s!==r+d&&(i.__u|=65536)));if(u)for(r=0;r<l;r++)(a=n[r])!=null&&!(131072&a.__u)&&(a.__e==e.__d&&(e.__d=ru(a)),bu(a,a))}function uu(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=uu(r[i],t,n));return t}e.__e!=t&&(n.insertBefore(e.__e,t||null),t=e.__e);do t=t&&t.nextSibling;while(t!=null&&t.nodeType===8);return t}function du(e,t,n,r){var i=e.key,a=e.type,o=n-1,s=n+1,c=t[n];if(c===null||c&&i==c.key&&a===c.type)return n;if(r>+(c!=null&&!(131072&c.__u)))for(;o>=0||s<t.length;){if(o>=0){if((c=t[o])&&!(131072&c.__u)&&i==c.key&&a===c.type)return o;o--}if(s<t.length){if((c=t[s])&&!(131072&c.__u)&&i==c.key&&a===c.type)return s;s++}}return-1}function fu(e,t,n){t[0]===`-`?e.setProperty(t,n??``):e[t]=n==null?``:typeof n!=`number`||Xl.test(t)?n:n+`px`}function pu(e,t,n,r,i){var a;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||fu(e.style,t,``);if(n)for(t in n)r&&n[t]===r[t]||fu(e.style,t,n[t])}else if(t[0]===`o`&&t[1]===`n`)a=t!==(t=t.replace(/(PointerCapture)$|Capture$/i,`$1`)),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+a]=n,n?r?n.u=r.u:(n.u=Date.now(),e.addEventListener(t,a?hu:mu,a)):e.removeEventListener(t,a?hu:mu,a);else{if(i)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 in e)try{e[t]=n??``;break n}catch{}typeof n==`function`||(n==null||!1===n&&t[4]!==`-`?e.removeAttribute(t):e.setAttribute(t,n))}}function mu(e){if(this.l){var t=this.l[e.type+!1];if(e.t){if(e.t<=t.u)return}else e.t=Date.now();return t(L.event?L.event(e):e)}}function hu(e){if(this.l)return this.l[e.type+!0](L.event?L.event(e):e)}function gu(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=t.type;if(t.constructor!==void 0)return null;128&n.__u&&(c=!!(32&n.__u),a=[s=t.__e=n.__e]),(u=L.__b)&&u(t);n:if(typeof T==`function`)try{if(_=t.props,v=(u=T.contextType)&&r[u.__c],y=u?v?v.props.value:u.__:r,n.__c?g=(d=t.__c=n.__c).__=d.__E:(`prototype`in T&&T.prototype.render?t.__c=d=new T(_,y):(t.__c=d=new nu(_,y),d.constructor=T,d.render=xu),v&&v.sub(d),d.props=_,d.state||(d.state={}),d.context=y,d.__n=r,f=d.__d=!0,d.__h=[],d._sb=[]),d.__s??(d.__s=d.state),T.getDerivedStateFromProps!=null&&(d.__s==d.state&&(d.__s=Ql({}
vendor: 4,506 bytes, line 105
105,d.__s)),Ql(d.__s,T.getDerivedStateFromProps(_,d.__s))),p=d.props,m=d.state,d.__v=t,f)T.getDerivedStateFromProps==null&&d.componentWillMount!=null&&d.componentWillMount(),d.componentDidMount!=null&&d.__h.push(d.componentDidMount);else{if(T.getDerivedStateFromProps==null&&_!==p&&d.componentWillReceiveProps!=null&&d.componentWillReceiveProps(_,y),!d.__e&&(d.shouldComponentUpdate!=null&&!1===d.shouldComponentUpdate(_,d.__s,y)||t.__v===n.__v)){for(t.__v!==n.__v&&(d.props=_,d.state=d.__s,d.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.forEach(function(e){e&&(e.__=t)}),b=0;b<d._sb.length;b++)d.__h.push(d._sb[b]);d._sb=[],d.__h.length&&o.push(d);break n}d.componentWillUpdate!=null&&d.componentWillUpdate(_,d.__s,y),d.componentDidUpdate!=null&&d.__h.push(function(){d.componentDidUpdate(p,m,h)})}if(d.context=y,d.props=_,d.__P=e,d.__e=!1,x=L.__r,S=0,`prototype`in T&&T.prototype.render){for(d.state=d.__s,d.__d=!1,x&&x(t),u=d.render(d.props,d.state,d.context),C=0;C<d._sb.length;C++)d.__h.push(d._sb[C]);d._sb=[]}else do d.__d=!1,x&&x(t),u=d.render(d.props,d.state,d.context),d.state=d.__s;while(d.__d&&++S<25);d.state=d.__s,d.getChildContext!=null&&(r=Ql(Ql({},r),d.getChildContext())),f||d.getSnapshotBeforeUpdate==null||(h=d.getSnapshotBeforeUpdate(p,m)),cu(e,Zl(w=u!=null&&u.type===tu&&u.key==null?u.props.children:u)?w:[w],t,n,r,i,a,o,s,c,l),d.base=t.__e,t.__u&=-161,d.__h.length&&o.push(d),g&&(d.__E=d.__=null)}catch(e){t.__v=null,c||a!=null?(t.__e=s,t.__u|=c?160:32,a[a.indexOf(s)]=null):(t.__e=n.__e,t.__k=n.__k),L.__e(e,t,n)}else a==null&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=vu(n.__e,t,n,r,i,a,o,c,l);(u=L.diffed)&&u(t)}function _u(e,t,n){for(var r=0;r<n.length;r++)yu(n[r],n[++r],n[++r]);L.__c&&L.__c(t,e),e.some(function(t){try{e=t.__h,t.__h=[],e.some(function(e){e.call(t)})}catch(e){L.__e(e,t.__v)}})}function vu(e,t,n,r,i,a,o,s,c){var l,u,d,f,p,m,h,g=n.props,_=t.props,v=t.type;if(v===`svg`&&(i=!0),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=i?document.createElementNS(`http://www.w3.org/2000/svg`,v):document.createElement(v,_.is&&_),a=null,s=!1}if(v===null)g===_||s&&e.data===_||(e.data=_);else{if(a=a&&Hl.call(e.childNodes),g=n.props||Jl,!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==`children`||(l==`dangerouslySetInnerHTML`?d=p:l===`key`||l in _||pu(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:l===`key`||s&&typeof p!=`function`||g[l]===p||pu(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=``),cu(e,Zl(f)?f:[f],t,n,r,i&&v!==`foreignObject`,a,o,a?a[0]:n.__k&&ru(n,0),s,c),a!=null)for(l=a.length;l--;)a[l]!=null&&$l(a[l]);s||(l=`value`,m!==void 0&&(m!==e[l]||v===`progress`&&!m||v===`option`&&m!==g[l])&&pu(e,l,m,g[l],!1),l=`checked`,h!==void 0&&h!==e[l]&&pu(e,l,h,g[l],!1))}return e}function yu(e,t,n){try{typeof e==`function`?e(t):e.current=t}catch(e){L.__e(e,n)}}function bu(e,t,n){var r,i;if(L.unmount&&L.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||yu(r,null,t)),(r=e.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(e){L.__e(e,t)}r.base=r.__P=null,e.__c=void 0}if(r=e.__k)for(i=0;i<r.length;i++)r[i]&&bu(r[i],t,n||typeof e.type!=`function`);n||e.__e==null||$l(e.__e),e.__=e.__e=e.__d=void 0}function xu(e,t,n){return this.constructor(e,n)}function Su(e,t,n){var r,i,a,o;L.__&&L.__(e,t),i=(r=!1)?null:t.__k,a=[],o=[],gu(t,e=t.__k=R(tu,null,[e]),i||Jl,Jl,t.ownerSVGElement!==void 0,i?null:t.firstChild?Hl.call(t.childNodes):null,a,i?i.__e:t.firstChild,r,o),e.__d=void 0,_u(a,e,o)}Hl=Yl.slice,L={__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}},Ul=0,nu.prototype.setState=function(e,t){var n=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=Ql({},this.state);typeof e==`function`&&(e=e(Ql({},n),this.props)),e&&Ql(n,e),e!=null&&this.__v&&(t&&this._sb.push(t),ou(this))},nu.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),ou(this))},nu.prototype.render=tu,Wl=[],Kl=typeof Promise==`function`?Promise.prototype.then.bind(Prom
vendor: 5,365 bytes, line 105
105ise.resolve()):setTimeout,ql=function(e,t){return e.__v.__b-t.__v.__b},su.__r=0;var Cu,z,wu,Tu,Eu=0,Du=[],Ou=[],B=L,ku=B.__b,Au=B.__r,ju=B.diffed,Mu=B.__c,Nu=B.unmount,Pu=B.__;function Fu(e,t){B.__h&&B.__h(z,e,Eu||t),Eu=0;var n=z.__H||(z.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({__V:Ou}),n.__[e]}function Iu(e){return Eu=1,Lu(ed,e)}function Lu(e,t,n){var r=Fu(Cu++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):ed(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=z,!z.u)){var i=function(e,t,n){if(!r.__c.__H)return!0;var i=r.__c.__H.__.filter(function(e){return!!e.__c});if(i.every(function(e){return!e.__N}))return!a||a.call(this,e,t,n);var o=!1;return i.forEach(function(e){if(e.__N){var t=e.__[0];e.__=e.__N,e.__N=void 0,t!==e.__[0]&&(o=!0)}}),!(!o&&r.__c.props===e)&&(!a||a.call(this,e,t,n))};z.u=!0;var a=z.shouldComponentUpdate,o=z.componentWillUpdate;z.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)},z.shouldComponentUpdate=i}return r.__N||r.__}function Ru(e,t){var n=Fu(Cu++,3);!B.__s&&$u(n.__H,t)&&(n.__=e,n.i=t,z.__H.__h.push(n))}function zu(e,t){var n=Fu(Cu++,4);!B.__s&&$u(n.__H,t)&&(n.__=e,n.i=t,z.__h.push(n))}function Bu(e){return Eu=5,Hu(function(){return{current:e}},[])}function Vu(e,t,n){Eu=6,zu(function(){return typeof e==`function`?(e(t()),function(){return e(null)}):e?(e.current=t(),function(){return e.current=null}):void 0},n==null?n:n.concat(e))}function Hu(e,t){var n=Fu(Cu++,7);return $u(n.__H,t)?(n.__V=e(),n.i=t,n.__h=e,n.__V):n.__}function Uu(e,t){return Eu=8,Hu(function(){return e},t)}function Wu(e){var t=z.context[e.__c],n=Fu(Cu++,9);return n.c=e,t?(n.__??(n.__=!0,t.sub(z)),t.props.value):e.__}function Gu(e,t){B.useDebugValue&&B.useDebugValue(t?t(e):e)}function Ku(e){var t=Fu(Cu++,10),n=Iu();return t.__=e,z.componentDidCatch||(z.componentDidCatch=function(e,r){t.__&&t.__(e,r),n[1](e)}),[n[0],function(){n[1](void 0)}]}function qu(){var e=Fu(Cu++,11);if(!e.__){for(var t=z.__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 Ju(){for(var e;e=Du.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Zu),e.__H.__h.forEach(Qu),e.__H.__h=[]}catch(t){e.__H.__h=[],B.__e(t,e.__v)}}B.__b=function(e){z=null,ku&&ku(e)},B.__=function(e,t){t.__k&&t.__k.__m&&(e.__m=t.__k.__m),Pu&&Pu(e,t)},B.__r=function(e){Au&&Au(e),Cu=0;var t=(z=e.__c).__H;t&&(wu===z?(t.__h=[],z.__h=[],t.__.forEach(function(e){e.__N&&(e.__=e.__N),e.__V=Ou,e.__N=e.i=void 0})):(t.__h.forEach(Zu),t.__h.forEach(Qu),t.__h=[],Cu=0)),wu=z},B.diffed=function(e){ju&&ju(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(Du.push(t)!==1&&Tu===B.requestAnimationFrame||((Tu=B.requestAnimationFrame)||Xu)(Ju)),t.__H.__.forEach(function(e){e.i&&(e.__H=e.i),e.__V!==Ou&&(e.__=e.__V),e.i=void 0,e.__V=Ou})),wu=z=null},B.__c=function(e,t){t.some(function(e){try{e.__h.forEach(Zu),e.__h=e.__h.filter(function(e){return!e.__||Qu(e)})}catch(n){t.some(function(e){e.__h&&(e.__h=[])}),t=[],B.__e(n,e.__v)}}),Mu&&Mu(e,t)},B.unmount=function(e){Nu&&Nu(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(e){try{Zu(e)}catch(e){t=e}}),n.__H=void 0,t&&B.__e(t,n.__v))};var Yu=typeof requestAnimationFrame==`function`;function Xu(e){var t,n=function(){clearTimeout(r),Yu&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);Yu&&(t=requestAnimationFrame(n))}function Zu(e){var t=z,n=e.__c;typeof n==`function`&&(e.__c=void 0,n()),z=t}function Qu(e){var t=z;e.__c=e.__(),z=t}function $u(e,t){return!e||e.length!==t.length||t.some(function(t,n){return t!==e[n]})}function ed(e,t){return typeof t==`function`?t(e):t}var td=Object.defineProperty({__proto__:null,useCallback:Uu,useContext:Wu,useDebugValue:Gu,useEffect:Ru,useErrorBoundary:Ku,useId:qu,useImperativeHandle:Vu,useLayoutEffect:zu,useMemo:Hu,useReducer:Lu,useRef:Bu,useState:Iu},Symbol.toStringTag,{value:`Module`}),nd=`http://www.w3.org/2000/svg`;function rd(){let e=e=>I.createElementNS(nd,e),t=Al(e(`svg`),{width:`32`,height:`30`,viewBox:`0 0 72 66`,fill:`inherit`}),n=Al(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 id({options:e}){let t=Hu(()=>({__html:rd().outerHTML}),[]);return R(`h2`,{class:`dialog__header`},R(`span`,{class:`dialog__title`},e.formTitle),e.showBranding?R(`a`,{class:`brand-link`,target:`_blank`,href:`https://sentry.io/welcome/`,title:`Powered by Sentry`,rel:`noopener noreferrer`,dangerouslySetInnerHTML:t}):null)}function ad(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 od(e,t){let n=e.get(t);return typeof n==`string`?n.trim():``}function sd({options:e,defaultEmail:t,defaultName:n,onFormClose:r,onSubmit:i,onSubmitSuccess:a,onSubmitError:o,showEmail
105: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:S,submitButtonLabel:C,isRequiredLabel:w}=e,[T,ee]=Iu(!1),[te,ne]=Iu(null),[re,E]=Iu(!1),ie=l?.input,[D,ae]=Iu(null),O=Uu(e=>{ae(e),E(!1)},[]),oe=Uu(e=>{let t=ad(e,{emailLabel:m,isEmailRequired:g,isNameRequired:_,messageLabel:v,nameLabel:b});return t.length>0?ne(`Please enter in the following required fields: ${t.join(`, `)}`):ne(null),t.length===0},[m,g,_,v,b]);return R(`form`,{class:`form`,onSubmit:Uu(async e=>{ee(!0);try{if(e.preventDefault(),!(e.target instanceof HTMLFormElement))return;let t=new FormData(e.target),n=await(l&&re?l.value():void 0),r={name:od(t,`name`),email:od(t,`email`),message:od(t,`message`),attachments:n?[n]:void 0};if(!oe(r))return;try{a(r,await i({name:r.name,email:r.email,message:r.message,source:yl,tags:u},{attachments:r.attachments}))}catch(e){El&&x.error(e);let t=e instanceof Error?e:Error(String(e));ne(t.message),o(t)}}finally{ee(!1)}},[l&&re,a,o])},ie&&re?R(ie,{onError:O}):null,R(`fieldset`,{class:`form__right`,"data-sentry-feedback":!0,disabled:T},R(`div`,{class:`form__top`},te?R(`div`,{class:`form__error-container`},te):null,c?R(`label`,{for:`name`,class:`form__label`},R(cd,{label:b,isRequiredLabel:w,isRequired:_}),R(`input`,{class:`form__input`,defaultValue:n,id:`name`,name:`name`,placeholder:S,required:_,type:`text`})):R(`input`,{"aria-hidden":!0,value:n,name:`name`,type:`hidden`}),s?R(`label`,{for:`email`,class:`form__label`},R(cd,{label:m,isRequiredLabel:w,isRequired:g}),R(`input`,{class:`form__input`,defaultValue:t,id:`email`,name:`email`,placeholder:h,required:g,type:`email`})):R(`input`,{"aria-hidden":!0,value:t,name:`email`,type:`hidden`}),R(`label`,{for:`message`,class:`form__label`},R(cd,{label:v,isRequiredLabel:w,isRequired:!0}),R(`textarea`,{autoFocus:!0,class:`form__input form__input--textarea`,id:`message`,name:`message`,placeholder:y,required:!0,rows:5})),ie?R(`label`,{for:`screenshot`,class:`form__label`},R(`button`,{class:`btn btn--default`,disabled:T,type:`button`,onClick:()=>{ae(null),E(e=>!e)}},re?f:d),D?R(`div`,{class:`form__error-container`},D.message):null):null),R(`div`,{class:`btn-group`},R(`button`,{class:`btn btn--primary`,disabled:T,type:`submit`},C),R(`button`,{class:`btn btn--default`,disabled:T,type:`button`,onClick:r},p))))}function cd({label:e,isRequired:t,isRequiredLabel:n}){return R(`span`,{class:`form__label__text`},e,t&&R(`span`,{class:`form__label__text--required`},n))}var ld=16,ud=17,dd=`http://www.w3.org/2000/svg`;function fd(){let e=e=>Jc.document.createElementNS(dd,e),t=Al(e(`svg`),{width:`${ld}`,height:`${ud}`,viewBox:`0 0 ${ld} ${ud}`,fill:`inherit`}),n=Al(e(`g`),{clipPath:`url(#clip0_57_156)`}),r=Al(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=Al(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 
10510.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=Al(e(`clipPath`),{id:`clip0_57_156`}),s=Al(e(`rect`),{width:`${ld}`,height:`${ld}`,fill:`white`,transform:`translate(0 0.5)`});return o.appendChild(s),a.appendChild(o),t.appendChild(a).appendChild(o).appendChild(s),t}function pd({open:e,onFormSubmitted:t,...n}){let r=n.options,i=Hu(()=>({__html:fd().outerHTML}),[]),[a,o]=Iu(null),s=Uu(()=>{a&&(clearTimeout(a),o(null)),t()},[a]),c=Uu((e,r)=>{n.onSubmitSuccess(e,r),o(setTimeout(()=>{t(),o(null)},xl))},[t]);return R(tu,null,a?R(`div`,{class:`success__position`,onClick:s},R(`div`,{class:`success__content`},r.successMessageText,R(`span`,{class:`success__icon`,dangerouslySetInnerHTML:i}))):R(`dialog`,{class:`dialog`,onClick:r.onFormClose,open:e},R(`div`,{class:`dialog__position`},R(`div`,{class:`dialog__content`,onClick:e=>{e.stopPropagation()}},R(id,{options:r}),R(sd,{...n,onSubmitSuccess:c})))))}var md=`
106.dialog {
107  position: fixed;
108  z-index: var(--z-index);
109  margin: 0;
110  inset: 0;
111
112  display: flex;
113  align-items: center;
114  justify-content: center;
115  padding: 0;
116  height: 100vh;
117  width: 100vw;
118
119  color: var(--dialog-color, var(--foreground));
120  fill: var(--dialog-color, var(--foreground));
121  line-height: 1.75em;
122
123  background-color: rgba(0, 0, 0, 0.05);
124  border: none;
125  inset: 0;
126  opacity: 1;
127  transition: opacity 0.2s ease-in-out;
128}
129
130.dialog__position {
131  position: fixed;
132  z-index: var(--z-index);
133  inset: var(--dialog-inset);
134  padding: var(--page-margin);
135  display: flex;
136  max-height: calc(100vh - (2 * var(--page-margin)));
137}
138@media (max-width: 600px) {
139  .dialog__position {
140    inset: var(--page-margin);
141    padding: 0;
142  }
143}
144
145.dialog__position:has(.editor) {
146  inset: var(--page-margin);
147  padding: 0;
148}
149
150.dialog:not([open]) {
151  opacity: 0;
152  pointer-events: none;
153  visibility: hidden;
154}
155.dialog:not([open]) .dialog__content {
156  transform: translate(0, -16px) scale(0.98);
157}
158
159.dialog__content {
160  display: flex;
161  flex-direction: column;
162  gap: 16px;
163  padding: var(--dialog-padding, 24px);
164  max-width: 100%;
165  width: 100%;
166  max-height: 100%;
167  overflow: auto;
168
169  background: var(--dialog-background, var(--background));
170  border-radius: var(--dialog-border-radius, 20px);
171  border: var(--dialog-border, var(--border));
172  box-shadow: var(--dialog-box-shadow, var(--box-shadow));
173  transform: translate(0, 0) scale(1);
174  transition: transform 0.2s ease-in-out;
175}
176
177`,hd=`
178.dialog__header {
179  display: flex;
180  gap: 4px;
181  justify-content: space-between;
182  font-weight: var(--dialog-header-weight, 600);
183  margin: 0;
184}
185.dialog__title {
186  align-self: center;
187  width: var(--form-width, 272px);
188}
189
190@media (max-width: 600px) {
191  .dialog__title {
192    width: auto;
193  }
194}
195
196.dialog__position:has(.editor) .dialog__title {
197  width: auto;
198}
199
200
201.brand-link {
202  display: inline-flex;
203}
204.brand-link:focus-visible {
205  outline: var(--outline);
206}
207`,gd=`
208.form {
209  display: flex;
210  overflow: auto;
211  flex-direction: row;
212  gap: 16px;
213  flex: 1 0;
214}
215
216.form fieldset {
217  border: none;
218  margin: 0;
219  padding: 0;
220}
221
222.form__right {
223  flex: 0 0 auto;
224  display: flex;
225  overflow: auto;
226  flex-direction: column;
227  justify-content: space-between;
228  gap: 20px;
229  width: var(--form-width, 100%);
230}
231
232.dialog__position:has(.editor) .form__right {
233  width: var(--form-width, 272px);
234}
235
236.form__top {
237  display: flex;
238  flex-direction: column;
239  gap: 8px;
240}
241
242.form__error-container {
243  color: var(--error-color);
244  fill: var(--error-color);
245}
246
247.form__label {
248  display: flex;
249  flex-direction: column;
250  gap: 4px;
251  margin: 0px;
252}
253
254.form__label__text {
255  display: flex;
256  gap: 4px;
257  align-items: center;
258}
259
260.form__label__text--required {
261  font-size: 0.85em;
262}
263
264.form__input {
265  font-family: inherit;
266  line-height: inherit;
267  background: transparent;
268  box-sizing: border-box;
269  border: var(--input-border, var(--border));
270  border-radius: var(--input-border-radius, 6px);
271  color: var(--input-color, inherit);
272  fill: var(--input-color, inherit);
273  font-size: var(--input-font-size, inherit);
274  font-weight: var(--input-font-weight, 500);
275  padding: 6px 12px;
276}
277
278.form__input::placeholder {
279  opacity: 0.65;
280  color: var(--input-placeholder-color, inherit);
281  filter: var(--interactive-filter);
282}
283
284.form__input:focus-visible {
285  outline: var(--input-focus-outline, var(--outline));
286}
287
288.form__input--textarea {
289  font-family: inherit;
290  resize: vertical;
291}
292
293.error {
294  color: var(--error-color);
295  fill: var(--error-color);
296}
297`,_d=`
298.btn-group {
299  display: grid;
300  gap: 8px;
301}
302
303.btn {
304  line-height: inherit;
305  border: var(--button-border, var(--border));
306  border-radius: var(--button-border-radius, 6px);
307  cursor: pointer;
308  font-family: inherit;
309  font-size: var(--button-font-size, inherit);
310  font-weight: var(--button-font-weight, 600);
311  padding: var(--button-padding, 6px 16px);
312}
313.btn[disabled] {
314  opacity: 0.6;
315  pointer-events: none;
316}
317
318.btn--primary {
319  color: var(--button-primary-color, var(--accent-foreground));
320  fill: var(--button-primary-color, var(--accent-foreground));
321  background: var(--button-primary-background, var(--accent-background));
322  border: var(--button-primary-border, var(--border));
323  border-radius: var(--button-primary-border-radius, 6px);
324  font-weight: var(--button-primary-font-weight, 500);
325}
326.btn--primary:hover {
327  color: var(--button-primary-hover-color, var(--accent-foreground));
328  fill: var(--button-primary-hover-color, var(--accent-foreground));
329  background: var(--button-primary-hover-background, var(--accent-background));
330  filter: var(--interactive-filter);
331}
332.btn--primary:focus-visible {
333  background: var(--button-primary-hover-background, var(--accent-background));
334  filter: var(--interactive-filter);
335  outline: var(--button-primary-focus-outline, var(--outline));
336}
337
338.btn--default {
339  color: var(--button-color, var(--foreground));
340  fill: var(--button-color, var(--foreground));
341  background: var(--button-background, var(--background));
342  border: var(--button-border, var(--border));
343  border-radius: var(--button-border-radius, 6px);
344  font-weight: var(--button-font-weight, 500);
345}
346.btn--default:hover {
347  color: var(--button-color, var(--foreground));
348  fill: var(--button-color, var(--foreground));
349  background: var(--button-hover-background, var(--background));
350  filter: var(--interactive-filter);
351}
352.btn--default:focus-visible {
353  background: var(--button-hover-background, var(--background));
354  filter: var(--interactive-filter);
355  outline: var(--button-focus-outline, var(--outline));
356}
357`,vd=`
358.success__position {
359  position: fixed;
360  inset: var(--dialog-inset);
361  padding: var(--page-margin);
362  z-index: var(--z-index);
363}
364.success__content {
365  background: var(--success-background, var(--background));
366  border: var(--success-border, var(--border));
367  border-radius: var(--success-border-radius, 1.7em/50%);
368  box-shadow: var(--success-box-shadow, var(--box-shadow));
369  font-weight: var(--success-font-weight, 600);
370  color: var(--success-color);
371  fill: var(--success-color);
372  padding: 12px 24px;
373  line-height: 1.75em;
374
375  display: grid;
376  align-items: center;
377  grid-auto-flow: column;
378  gap: 6px;
379  cursor: default;
380}
381
382.success__icon {
383  display: flex;
384}
385`;function yd(e){let t=I.createElement(`style`);return t.textContent=`
386:host {
387  --dialog-inset: var(--inset);
388}
389
390${md}
391${hd}
392${gd}
393${_d}
394${vd}
395`,e&&t.setAttribute(`nonce`,e),t}function bd(){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 xd=(()=>({name:`FeedbackModal`,setupOnce(){},createDialog:({options:e,screenshotIntegration:t,sendFeedback:n,shadow:r})=>{let i=r,a=e.useSentryUser,o=bd(),s=I.createElement(`div`),c=yd(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(),I.body.style.overflow=l},open(){f(!0),e.onFormOpen?.(),N()?.emit(`openFeedbackWidget`),l=I.body.style.overflow,I.body.style.overflow=`hidden`},close(){f(!1),I.body.style.overflow=l}},d=t?.createInput({h:R,hooks:td,dialog:u,options:e}),f=t=>{Su(R(pd,{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 Sd({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 Cd(e){let t=I.createElement(`style`),n=`#1A141F`,r=`#302735`;return t.textContent=`
396.editor {
397  display: flex;
398  flex-grow: 1;
399  flex-direction: column;
400}
401
402.editor__image-container {
403  justify-items: center;
404  padding: 15px;
405  position: relative;
406  height: 100%;
407  border-radius: var(--menu-border-radius, 6px);
408
409  background-color: ${n};
410  background-image: repeating-linear-gradient(
411      -145deg,
412      transparent,
413      transparent 8px,
414      ${n} 8px,
415      ${n} 11px
416    ),
417    repeating-linear-gradient(
418      -45deg,
419      transparent,
420      transparent 15px,
421      ${r} 15px,
422      ${r} 16px
423    );
424}
425
426.editor__canvas-container {
427  width: 100%;
428  height: 100%;
429  position: relative;
430  display: flex;
431  align-items: center;
432  justify-content: center;
433}
434
435.editor__canvas-container > * {
436  object-fit: contain;
437  position: absolute;
438}
439
440.editor__tool-container {
441  padding-top: 8px;
442  display: flex;
443  justify-content: center;
444}
445
446.editor__tool-bar {
447  display: flex;
448  gap: 8px;
449}
450
451.editor__tool {
452  display: flex;
453  padding: 8px 12px;
454  justify-content: center;
455  align-items: center;
456  border: var(--button-border, var(--border));
457  border-radius: var(--button-border-radius, 6px);
458  background: var(--button-background, var(--background));
459  color: var(--button-color, var(--foreground));
460}
461
462.editor__tool--active {
463  background: var(--button-primary-background, var(--accent-background));
464  color: var(--button-primary-color, var(--accent-foreground));
465}
466
467.editor__rect {
468  position: absolute;
469  z-index: 2;
470}
471
472.editor__rect button {
473  opacity: 0;
474  position: absolute;
475  top: -12px;
476  right: -12px;
477  cursor: pointer;
478  padding: 0;
479  z-index: 3;
480  border: none;
481  background: none;
482}
483
484.editor__rect:hover button {
485  opacity: 1;
486}
487`,e&&t.setAttribute(`nonce`,e),t}function wd({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 Td({hooks:e}){function t(){let[t,n]=e.useState(Jc.devicePixelRatio??1);return e.useEffect(()=>{let e=()=>{n(Jc.devicePixelRatio)},t=matchMedia(`(resolution: ${Jc.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 Yc.mediaDevices.getDisplayMedia({video:{width:Jc.innerWidth*o,height:Jc.innerHeight*o},audio:!1,monitorTypeSurfaces:`exclude`,preferCurrentTab:!0,selfBrowserSurface:`include`,surfaceSwitching:`exclude`}),t=I.createElement(`video`);await new Promise((n,i)=>{t.srcObject=e,t.onloadedmetadata=()=>
487{r(t,o),e.getTracks().forEach(e=>e.stop()),n()},t.play().catch(i)}),i()})().catch(a)},[])}}function Ed(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);break}}function Dd(e,t,n){if(!e)return;let r=e.getContext(`2d`,t);r&&n(e,r)}function Od(e,t){Dd(e,{alpha:!0},(e,n)=>{n.drawImage(t,0,0,t.width,t.height,0,0,e.width,e.height)})}function kd(e,t,n){Dd(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=>{Ed(e,r,t)})})}function Ad({h:e,hooks:t,outputBuffer:n,dialog:r,options:i}){let a=Td({hooks:t}),o=wd({h:e}),s=Sd({h:e}),c={__html:Cd(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=I.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&&(Dd(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(),Jc.addEventListener(`resize`,e),()=>{Jc.removeEventListener(`resize`,e)}},[r]);let y=t.useCallback((e,t)=>{Dd(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),Od(p.current,r.canvas)},[r]),t.useEffect(()=>{y(m.current,r.dpi),Dd(m.current,{alpha:!0},(e,t)=>{t.clearRect(0,0,e.width,e.height)}),kd(m.current,v,u)},[u,v]),t.useEffect(()=>{y(n,r.dpi),Od(n,r.canvas),Dd(I.createElement(`canvas`),{alpha:!0},(e,t)=>{t.scale(r.dpi,r.dpi),e.width=r.canvas.width,e.height=r.canvas.height,kd(e,v,u),Od(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=>{Dd(m.current,{alpha:!0},(e,t)=>{t.clearRect(0,0,e.width,e.height)}),kd(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]),I.removeEventListener(`mousemove`,i),I.removeEventListener(`mouseup`,o)};I.addEventListener(`mousemove`,i),I.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)=>
487e(`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)=>{Dd(I.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 jd=(()=>({name:`FeedbackScreenshot`,setupOnce(){},createInput:({h:e,hooks:t,dialog:n,options:r})=>{let i=I.createElement(`canvas`);return{input:Ad({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=i,Md=0;function Nd(){return Md>0}function Pd(){Md++,setTimeout(()=>{Md--})}function Fd(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(Me(e))return e}catch{return e}let r=function(...n){i._sentryWrappedDepth=(i._sentryWrappedDepth||0)+1;try{let r=n.map(e=>Fd(e,t));return e.apply(this,r)}catch(e){throw Pd(),nn(r=>{r.addEventProcessor(e=>(t.mechanism&&(ut(e,void 0,void 0),dt(e,t.mechanism)),e.extra={...e.extra,arguments:n},e)),Ea(e)}),e}finally{i._sentryWrappedDepth=(i._sentryWrappedDepth||0)-1}};try{for(let t in e)Object.prototype.hasOwnProperty.call(e,t)&&(r[t]=e[t])}catch{}je(r,e),Ae(e,`__sentry_wrapped__`,r);try{Object.getOwnPropertyDescriptor(r,`name`).configurable&&Object.defineProperty(r,"name",{get(){return e.name}})}catch{}return r}function Id(){let e=Kc(),{referrer:t}=V.document||{},{userAgent:n}=V.navigator||{};return{url:e,headers:{...t&&{Referer:t},...n&&{"User-Agent":n}}}}var Ld=Bl({getModalIntegration:()=>xd,getScreenshotIntegration:()=>jd});function Rd(e,t){let n=Vd(e,t),r={type:Kd(t),value:qd(t)};return n.length&&(r.stacktrace={frames:n}),r.type===void 0&&r.value===``&&(r.value=`Unrecoverable error caught`),r}function zd(e,t,n,r){let i=N()?.getOptions().normalizeDepth,a=ef(t),o={__serialized__:qe(t,i)};if(a)return{exception:{values:[Rd(e,a)]},extra:o};let s={exception:{values:[{type:we(t)?t.constructor.name:r?`UnhandledRejection`:`Error`,value:Qd(t,{isUnhandledRejection:r})}]},extra:o};if(n){let t=Vd(e,n);t.length&&(s.exception.values[0].stacktrace={frames:t})}return s}function Bd(e,t){return{exception:{values:[Rd(e,t)]}}}function Vd(e,t){let n=t.stacktrace||t.stack||``,r=Ud(t),i=Wd(t);try{return e(n,r,i)}catch{}return[]}var Hd=/Minified React error #\d+;/i;function Ud(e){return e&&Hd.test(e.message)?1:0}function Wd(e){return typeof e.framesToPop==`number`?e.framesToPop:0}function Gd(e){return typeof WebAssembly<`u`&&WebAssembly.Exception!==void 0&&e instanceof WebAssembly.Exception}function Kd(e){let t=e?.name;return!t&&Gd(e)?e.message&&Array.isArray(e.message)&&e.message.length==2?e.message[0]:`WebAssembly.Exception`:t}function qd(e){let t=e?.message;return Gd(e)?Array.isArray(e.message)&&e.message.length==2?e.message[1]:`wasm exception`:t?t.error&&typeof t.error.message==`string`?$s(t.error):$s(e):`No error message`}function Jd(e,t,n,r){let i=Xd(e,t,n?.syntheticException||void 0,r);return dt(i),i.level=`error`,n?.event_id&&(i.event_id=n.event_id),aa(i)}function Yd(e,t,n=`info`,r,i){let a=Zd(e,t,r?.syntheticException||void 0,i);return a.level=n,r?.event_id&&(a.event_id=r.event_id),aa(a)}function Xd(e,t,n,r,i){let a;if(_e(t)&&t.error)return Bd(e,t.error);if(ve(t)||ye(t)){let i=t;if(`stack`in t){a=Bd(e,t);let i=a.exception?.values?.[0];if(r&&n&&i&&!i.stacktrace){let t=Vd(e,n);t.length&&(i.stacktrace={frames:t},dt(a,{synthetic:!0}))}}else{let t=i.name||(ve(i)?`DOMError`:`DOMException`),o=i.message?`${t}: ${i.message}`:t;a=Zd(e,o,n,r),ut(a,o)}return`code`in i&&(a.tags={...a.tags,"DOMException.code":`${i.code}`}),a}return he(t)?Bd(e,t):Se(t)||we(t)?(a=zd(e,t,n,i),dt(a,{synthetic:!0}),a):(a=Zd(e,t,n,r),ut(a,`${t}`,void 0),dt(a,{synthetic:!0}),a)}function Zd(e,t,n,r){let i={};if(r&&n){let r=Vd(e,n);r.length&&(i.exception={values:[{value:t,stacktrace:{frames:r}}]}),dt(i,{synthetic:!0})}
487if(be(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 Qd(e,{isUnhandledRejection:t}){let n=Fe(e),r=t?`promise rejection`:`exception`;return _e(e)?`Event \`ErrorEvent\` captured as ${r} with message \`${e.message}\``:we(e)?`Event \`${$d(e)}\` (type=${e.type}) captured as ${r}`:`Object captured as ${r} with keys: ${n}`}function $d(e){try{let t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch{}}function ef(e){return Object.values(e).find(he)}var tf=class extends es{constructor(e){let t=nf(e);Ts(t,`browser`,[`browser`],V.SENTRY_SDK_SOURCE||ao()),super(t);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;V.document&&V.document.addEventListener(`visibilitychange`,()=>{V.document.visibilityState===`hidden`&&(r&&this._flushOutcomes(),queueMicrotask(()=>{this.flush()}))}),n&&this.on(`beforeSendSession`,ws)}eventFromException(e,t){return Jd(this._options.stackParser,e,t,this._options.attachStacktrace)}eventFromMessage(e,t=`info`,n){return Yd(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 nf(e){return{release:typeof __SENTRY_RELEASE__==`string`?__SENTRY_RELEASE__:V.SENTRY_RELEASE?.id,sendClientReports:!0,parentSpanIsAlwaysRootSpan:!0,...e}}var rf=typeof __SENTRY_DEBUG__>`u`||__SENTRY_DEBUG__,H=i,af=(e,t)=>e>t[1]?`poor`:e>t[0]?`needs-improvement`:`good`,of=(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=af(t.value,n),e(t)))}},sf=(e=!0)=>{let t=H.performance?.getEntriesByType?.(`navigation`)[0];if(!e||t&&t.responseStart>0&&t.responseStart<performance.now())return t},cf=()=>sf()?.activationStart??0;function lf(e,t,n){H.document&&H.addEventListener(e,t,n)}function uf(e,t,n){H.document&&H.removeEventListener(e,t,n)}var df=-1,ff=new Set,pf=()=>H.document?.visibilityState===`hidden`&&!H.document?.prerendering?0:1/0,mf=e=>{if(gf(e)&&df>-1){if(e.type===`visibilitychange`||e.type===`pagehide`)for(let e of ff)e();isFinite(df)||(df=e.type===`visibilitychange`?e.timeStamp:0,uf(`prerenderingchange`,mf,!0))}},hf=()=>{if(H.document&&df<0){let e=cf();df=(H.document.prerendering?void 0:globalThis.performance.getEntriesByType(`visibility-state`).filter(t=>t.name===`hidden`&&t.startTime>e)[0]?.startTime)??pf(),lf(`visibilitychange`,mf,!0),lf(`pagehide`,mf,!0),lf(`prerenderingchange`,mf,!0)}return{get firstHiddenTime(){return df},onHidden(e){ff.add(e)}}};function gf(e){return e.type===`pagehide`||H.document?.visibilityState===`hidden`}var _f=()=>`v5-${Date.now()}-${Math.floor(Math.random()*8999999999999)+0xe8d4a51000}`,vf=(e,t=-1)=>{let n=sf(),r=`navigate`;return n&&(H.document?.prerendering||cf()>0?r=`prerender`:H.document?.wasDiscarded?r=`restore`:n.type&&(r=n.type.replace(/_/g,`-`))),{name:e,value:t,rating:`good`,delta:0,entries:[],id:_f(),navigationType:r}},yf=new WeakMap;function bf(e,t){try{return yf.get(e)||yf.set(e,new t),yf.get(e)}catch{return new t}}var xf=class{constructor(){this._sessionValue=0,this._sessionEntries=[]}_processEntry(e){if(e.hadRecentInput)return;let t=this._sessionEntries[0],n=this._sessionEntries[this._sessionEntries.length-1];this._sessionValue&&t&&n&&e.startTime-n.startTime<1e3&&e.startTime-t.startTime<5e3?(this._sessionValue+=e.value,this._sessionEntries.push(e)):(this._sessionValue=e.value,this._sessionEntries=[e]),this._onAfterProcessingUnexpectedShift?.(e)}},Sf=(e,t,n={})=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){let r=new PerformanceObserver(e=>{Promise.resolve().then(()=>{t(e.getEntries())})});return r.observe({type:e,buffered:!0,...n}),r}}catch{}},Cf=e=>{let t=!1;return()=>{t||(e(),t=!0)}},wf=e=>{H.document?.prerendering?addEventListener(`prerenderingchange`,()=>e(),!0):e()},Tf=[1800,3e3],Ef=(e,t={})=>{wf(()=>{let n=hf(),r=vf(`FCP`),i,a=Sf(`paint`,e=>{for(let t of e)t.name===`first-contentful-paint`&&(a.disconnect(),t.startTime<n.firstHiddenTime&&(r.value=Math.max(t.startTime-cf(),0),r.entries.push(t),i(!0)))});a&&(i=of(e,r,Tf,t.reportAllChanges))})},Df=[.1,.25],Of=(e,t={})=>{Ef(Cf(()=>{let n=vf(`CLS`,0),r,i=hf(),a=bf(t,xf),o=e=>{for(let t of e)a._processEntry(t);a._sessionValue>
487n.value&&(n.value=a._sessionValue,n.entries=a._sessionEntries,r())},s=Sf(`layout-shift`,o);s&&(r=of(e,n,Df,t.reportAllChanges),i.onHidden(()=>{o(s.takeRecords()),r(!0)}),H?.setTimeout?.(r))}))},kf=0,Af=1/0,jf=0,Mf=e=>{e.forEach(e=>{e.interactionId&&(Af=Math.min(Af,e.interactionId),jf=Math.max(jf,e.interactionId),kf=jf?(jf-Af)/7+1:0)})},Nf,Pf=()=>Nf?kf:performance.interactionCount||0,Ff=()=>{`interactionCount`in performance||Nf||(Nf=Sf(`event`,Mf,{type:`event`,buffered:!0,durationThreshold:0}))},If=10,Lf=0,Rf=()=>Pf()-Lf,zf=class{constructor(){this._longestInteractionList=[],this._longestInteractionMap=new Map}_resetInteractions(){Lf=Pf(),this._longestInteractionList.length=0,this._longestInteractionMap.clear()}_estimateP98LongestInteraction(){let e=Math.min(this._longestInteractionList.length-1,Math.floor(Rf()/50));return this._longestInteractionList[e]}_processEntry(e){if(this._onBeforeProcessingEntry?.(e),!(e.interactionId||e.entryType===`first-input`))return;let t=this._longestInteractionList.at(-1),n=this._longestInteractionMap.get(e.interactionId);if(n||this._longestInteractionList.length<If||e.duration>t._latency){if(n?e.duration>n._latency?(n.entries=[e],n._latency=e.duration):e.duration===n._latency&&e.startTime===n.entries[0].startTime&&n.entries.push(e):(n={id:e.interactionId,entries:[e],_latency:e.duration},this._longestInteractionMap.set(n.id,n),this._longestInteractionList.push(n)),this._longestInteractionList.sort((e,t)=>t._latency-e._latency),this._longestInteractionList.length>If){let e=this._longestInteractionList.splice(If);for(let t of e)this._longestInteractionMap.delete(t.id)}this._onAfterProcessingINPCandidate?.(n)}}},Bf=e=>{let t=H.requestIdleCallback||H.setTimeout;H.document?.visibilityState===`hidden`?e():(e=Cf(e),lf(`visibilitychange`,e,{once:!0,capture:!0}),lf(`pagehide`,e,{once:!0,capture:!0}),t(()=>{e(),uf(`visibilitychange`,e,{capture:!0}),uf(`pagehide`,e,{capture:!0})}))},Vf=[200,500],Hf=40,Uf=(e,t={})=>{if(!(globalThis.PerformanceEventTiming&&`interactionId`in PerformanceEventTiming.prototype))return;let n=hf();wf(()=>{Ff();let r=vf(`INP`),i,a=bf(t,zf),o=e=>{Bf(()=>{for(let t of e)a._processEntry(t);let t=a._estimateP98LongestInteraction();t&&t._latency!==r.value&&(r.value=t._latency,r.entries=t.entries,i())})},s=Sf(`event`,o,{durationThreshold:t.durationThreshold??Hf});i=of(e,r,Vf,t.reportAllChanges),s&&(s.observe({type:`first-input`,buffered:!0}),n.onHidden(()=>{o(s.takeRecords()),i(!0)}))})},Wf=class{_processEntry(e){this._onBeforeProcessingEntry?.(e)}},Gf=[2500,4e3],Kf=(e,t={})=>{wf(()=>{let n=hf(),r=vf(`LCP`),i,a=bf(t,Wf),o=e=>{t.reportAllChanges||(e=e.slice(-1));for(let t of e)a._processEntry(t),t.startTime<n.firstHiddenTime&&(r.value=Math.max(t.startTime-cf(),0),r.entries=[t],i())},s=Sf(`largest-contentful-paint`,o);if(s){i=of(e,r,Gf,t.reportAllChanges);let n=Cf(()=>{o(s.takeRecords()),s.disconnect(),i(!0)}),a=e=>{e.isTrusted&&(Bf(n),uf(e.type,a,{capture:!0}))};for(let e of[`keydown`,`click`,`visibilitychange`])lf(e,a,{capture:!0})}})},qf=[800,1800],Jf=e=>{H.document?.prerendering?wf(()=>Jf(e)):H.document?.readyState===`complete`?setTimeout(e):addEventListener(`load`,()=>Jf(e),!0)},Yf=(e,t={})=>{let n=vf(`TTFB`),r=of(e,n,qf,t.reportAllChanges);Jf(()=>{let e=sf();e&&(n.value=Math.max(e.responseStart-cf(),0),n.entries=[e],r(!0))})},Xf={},Zf={},Qf,$f,ep,tp;function np(e,t=!1){return fp(`cls`,e,cp,Qf,t)}function rp(e,t=!1){return fp(`lcp`,e,lp,$f,t)}function ip(e){return fp(`ttfb`,e,up,ep)}function ap(e){return fp(`inp`,e,dp,tp)}function op(e,t){return mp(e,t),Zf[e]||(pp(e),Zf[e]=!0),hp(e,t)}function sp(e,t){let n=Xf[e];if(n?.length)for(let r of n)try{r(t)}catch(t){rf&&x.error(`Error while triggering instrumentation handler.
488Type: ${e}
489Name: ${E(r)}
490Error:`,t)}}function cp(){return Of(e=>{sp(`cls`,{metric:e}),Qf=e},{reportAllChanges:!0})}function lp(){return Kf(e=>{sp(`lcp`,{metric:e}),$f=e},{reportAllChanges:!0})}function up(){return Yf(e=>{sp(`ttfb`,{metric:e}),ep=e})}function dp(){return Uf(e=>{sp(`inp`,{metric:e}),tp=e})}function fp(e,t,n,r,i=!1){mp(e,t);let a;return Zf[e]||(a=n(),Zf[e]=!0),r&&t({metric:r}),hp(e,t,i?a:void 0)}function pp(e){let t={};e===`event`&&(t.durationThreshold=0),Sf(e,t=>{sp(e,{entries:t})},t)}function mp(e,t){Xf[e]=Xf[e]||[],Xf[e].push(t)}function hp(e,t,n){return()=>{n&&n();let r=Xf[e];if(!r)return;let i=r.indexOf(t);i!==-1&&r.splice(i,1)}}function gp(e){return`duration`in e}var _p=80,vp={};try{typeof Node<`u`&&(vp.parentNode=Object.getOwnPropertyDescriptor(Node.prototype,`parentNode`).get),typeof Element<`u`&&(vp.tagName=Object.getOwnPropertyDescriptor(Element.prototype,`tagName`).get,vp.id=Object.getOwnPropertyDescriptor(Element.prototype,`id`).get,vp.className=Object.getOwnPropertyDescriptor(Element.prototype,`className`).get,vp.getAttribute=Element.prototype.getAttribute),typeof HTMLElement<`u`&&(vp.dataset=Object.getOwnPropertyDescriptor(HTMLElement.prototype,`dataset`).get)}catch{}
490function yp(e,t,n){let r=vp[t];if(r)try{return r.call(e,n)}catch{}let i=e[t];return typeof i==`function`?i.call(e,n):i}function U(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||_p;for(;n&&i++<5&&(o=bp(n,s),!(o===`html`||i>1&&a+r.length*3+o.length>=c));)r.push(o),a+=o.length,n=yp(n,`parentNode`);return r.reverse().join(` > `)}catch{return`<unknown>`}}function bp(e,t){let n=[],r=yp(e,`tagName`);if(!r)return``;if(typeof HTMLElement<`u`&&e instanceof HTMLElement){let t=yp(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=>yp(e,`getAttribute`,t)).map(t=>[t,yp(e,`getAttribute`,t)]):null;if(i?.length)i.forEach(e=>{n.push(`[${e[0]}="${e[1]}"]`)});else{let t=yp(e,`id`);t&&n.push(`#${t}`);let r=yp(e,`className`);if(r&&k(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=yp(e,`getAttribute`,t);r&&n.push(`[${t}="${r}"]`)}return n.join(``)}var xp=e=>{let t=t=>{(t.type===`pagehide`||H.document?.visibilityState===`hidden`)&&e(t)};lf(`visibilitychange`,t,{capture:!0,once:!0}),lf(`pagehide`,t,{capture:!0,once:!0})};function Sp(e){return typeof e==`number`&&isFinite(e)}function Cp(e,t,n,{...r}){let i=F(e).start_timestamp;return i&&i>t&&typeof e.updateStartTime==`function`&&e.updateStartTime(t),Ci(e,()=>{let e=xi({startTime:t,...r});return e&&e.end(n),e})}function wp(e){let t=N();if(!t)return;let{name:n,transaction:r,attributes:i,startTime:a}=e,{release:o,environment:s}=t.getOptions(),{userInfo:c}=t.getDataCollectionOptions(),l=t.getIntegrationByName(`Replay`)?.getReplayId(),u=j(),d=u.getUser(),f=d===void 0?void 0:d.email||d.id||d.ip_address,p;try{p=u.getScopeData().contexts.profile.profile_id}catch{}return xi({name:n,attributes:{release:o,environment:s,user:f||void 0,profile_id:p||void 0,replay_id:l||void 0,transaction:r,"user_agent.original":H.navigator?.userAgent,"client.address":c?`{{auto}}`:void 0,...i},startTime:a,experimental:{standalone:!0}})}function Tp(){return H.addEventListener&&H.performance}function W(e){return e/1e3}function Ep(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 Dp(e){try{return PerformanceObserver.supportedEntryTypes.includes(e)}catch{return!1}}function Op(e,t){let n,r=!1;function i(e){!r&&n&&t(e,n.spanContext().spanId,n),r=!0}xp(()=>{i(`pagehide`)});let a=e.on(`beforeStartNavigationSpan`,(e,t)=>{t?.isRedirect||(i(`navigation`),a(),o())}),o=e.on(`afterStartPageLoadSpan`,e=>{n=e,o()})}function kp(e){let t=0,n;if(!Dp(`layout-shift`))return;let r=np(({metric:e})=>{let r=e.entries[e.entries.length-1];r&&(t=e.value,n=r)},!0);Op(e,(e,i)=>{Ap(t,n,i,e),r()})}function Ap(e,t,n,r){rf&&x.log(`Sending CLS span (${e})`);let i=t?W((bt()||0)+t.startTime):A(),a=j().getScopeData().transactionName,o=t?U(t.sources[0]?.node):`Layout shift`,s={[P]:`auto.http.browser.cls`,[cn]:`ui.webvital.cls`,[mn]:0,"sentry.pageload.span_id":n,"sentry.report_event":r};t?.sources&&t.sources.forEach((e,t)=>{s[`cls.source.${t+1}`]=U(e.node)});let c=wp({name:o,transaction:a,attributes:s,startTime:i});c&&(c.addEvent(`cls`,{[un]:``,[dn]:e}),c.end(i))}function jp(e){return e!=null&&e>0&&e<=6e4}function Mp(e){let t=0,n;if(!Dp(`largest-contentful-paint`))return;let r=rp(({metric:e})=>{let r=e.entries[e.entries.length-1];!r||!jp(e.value)||(t=e.value,n=r)},!0);Op(e,(e,i)=>{Np(t,n,i,e),r()})}function Np(e,t,n,r){if(!jp(e))return;rf&&x.log(`Sending LCP span (${e})`);let i=W((bt()||0)+(t?.startTime||0)),a=j().getScopeData().transactionName,o=t?U(t.element):`Largest contentful paint`,s={[P]:`auto.http.browser.lcp`,[cn]:`ui.webvital.lcp`,[mn]:0,"sentry.pageload.span_id":n,"sentry.report_event":r};t&&(t.element&&(s[`lcp.element`]=U(t.element)),t.id&&(s[`lcp.id`]=t.id),t.url&&(s[`lcp.url`]=t.url),t.loadTime!=null&&(s[`lcp.loadTime`]=t.loadTime),t.renderTime!=null&&(s[`lcp.renderTime`]=t.renderTime),t.size!=null&&(s[`lcp.size`]=t.size));let c=wp({name:o,transaction:a,attributes:s,startTime:i});c&&(c.addEvent(`lcp`,{[un]:`millisecond`,[dn]:e}),c.end(i))}function Pp(e){return e&&((bt()||performance.timeOrigin)+e)/1e3}function Fp(e){let t={};if(e.nextHopProtocol!=null){let{name:n,version:r}=Ep(e.nextHopProtocol);t[`network.protocol.version`]=r,t[`network.protocol.name`]=n}return bt()||Tp()?.timeOrigin?Ip({...t,"http.request.redirect_start":Pp(e.redirectStart),"http.request.redirect_end":Pp(e.redirectEnd),"http.request.worker_start":Pp(e.workerStart),"http.request.fetch_start":Pp(e.fetchStart),"http.request.domain_lookup_start":Pp(e.domainLookupStart),"http.request.domain_lookup_end":Pp(e.domainLookupEnd),"http.request.connect_start":Pp(e.connectStart),"http.request.secure_connection_start":Pp(e.secureConnectionStart),"http.request.connection_end":Pp(e.connectEnd),"http.request.request_start":Pp(e.requestStart),"http.request.response_start":Pp(e.responseStart),"http.request.response_end":Pp(e.responseEnd),"http.request.time_to_first_byte":e.responseStart==null?void 0:e.responseStart/1e3}):t}function Ip(e){return Object.fromEntries(Object.entries(e).filter(([,e])=>e!=null))}var Lp=2147483647,Rp=0,zp={},Bp,Vp;function Hp({recordClsStandaloneSpans:e,recordLcpStandaloneSpans:t,client:n}){let r=Tp();if(r&&bt()){r.mark&&H.performance.mark(`sentry-tracing-init`);let i=t?Mp(n):t===!1?qp():void 0,a=e?kp(n):e===!1?Kp():void 0,o=Jp(),s=Yp();return()=>{o(),s(),i?.(),a?.()}}return()=>void 0}function Up(){op(`longtask`,({entries:e})=>
490{let t=Cr();if(!t)return;let{op:n,start_timestamp:r}=F(t);for(let i of e){let e=W(bt()+i.startTime),a=W(i.duration);n===`navigation`&&r&&e<r||Cp(t,e,e+a,{name:`Main UI thread blocked`,op:`ui.long-task`,attributes:{[P]:`auto.ui.browser.metrics`}})}})}function Wp(){new PerformanceObserver(e=>{let t=Cr();if(t)for(let n of e.getEntries()){if(!n.scripts[0])continue;let e=W(bt()+n.startTime),{start_timestamp:r,op:i}=F(t);if(i===`navigation`&&r&&e<r)continue;let a=W(n.duration),o={[P]:`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[`code.filepath`]=l),u&&(o[`code.function`]=u),d!==-1&&(o[`browser.script.source_char_position`]=d),Cp(t,e,e+a,{name:`Main UI thread blocked`,op:`ui.long-animation-frame`,attributes:o})}}).observe({type:`long-animation-frame`,buffered:!0})}function Gp(){op(`event`,({entries:e})=>{let t=Cr();if(t){for(let n of e)if(n.name===`click`){let e=W(bt()+n.startTime),r=W(n.duration),i={name:U(n.target),op:`ui.interaction.${n.name}`,startTime:e,attributes:{[P]:`auto.ui.browser.metrics`}},a=qc(n.target);a&&(i.attributes[`ui.component_name`]=a),Cp(t,e,e+r,i)}}})}function Kp(){return np(({metric:e})=>{let t=e.entries[e.entries.length-1];t&&(zp.cls={value:e.value,unit:``},Vp=t)},!0)}function qp(){return rp(({metric:e})=>{let t=e.entries[e.entries.length-1];!t||!jp(e.value)||(zp.lcp={value:e.value,unit:`millisecond`},Bp=t)},!0)}function Jp(){return ip(({metric:e})=>{e.entries[e.entries.length-1]&&(zp.ttfb={value:e.value,unit:`millisecond`})})}function Yp(){return op(`paint`,({entries:e})=>{let t=hf();for(let n of e){let e=n.startTime<t.firstHiddenTime;n.name===`first-paint`&&e&&(zp.fp={value:n.startTime,unit:`millisecond`}),n.name===`first-contentful-paint`&&e&&(zp.fcp={value:n.startTime,unit:`millisecond`})}})}function Xp(e,t){let n=Tp(),r=bt();if(!n?.getEntries||!r)return;let{spanStreamingEnabled:i,ignorePerformanceApiSpans:a,ignoreResourceSpans:o}=t,s=W(r),c=n.getEntries(),{op:l,start_timestamp:u}=F(e);c.slice(Rp).forEach(t=>{let n=W(t.startTime),r=W(Math.max(0,t.duration));if(!(l===`navigation`&&u&&s+n<u))switch(t.entryType){case`navigation`:nm(e,t,s);break;case`mark`:case`paint`:case`measure`:em(e,t,n,r,s,a);break;case`resource`:om(e,t,t.name,n,r,s,o);break}}),Rp=Math.max(c.length-1,0),sm(e,i)}function Zp(e,t){let n=bt();if(!Tp()?.getEntries||!n){Qp();return}let{spanStreamingEnabled:r,recordClsOnPageloadSpan:i,recordLcpOnPageloadSpan:a}=t,o=W(n);if(F(e).op===`pageload`){if(um(zp),r){let t=(t,n,r)=>{let i=r??`browser.web_vital.${t}.value`;e.setAttribute(i,n),rf&&x.log(`Setting web vital attribute`,{[i]:n},`on pageload span`)};[`ttfb`,`fp`,`fcp`].forEach(e=>{zp[e]&&t(e,zp[e].value)}),zp[`ttfb.requestTime`]&&t(`ttfb.requestTime`,zp[`ttfb.requestTime`].value,`browser.web_vital.ttfb.request_time`)}else i||delete zp.cls,a||delete zp.lcp,Object.entries(zp).forEach(([t,n])=>{li(t,n.value,n.unit,e)}),cm(e,t);e.setAttribute(r?`browser.performance.time_origin`:`performance.timeOrigin`,o),e.setAttribute(r?`browser.performance.navigation.activation_start`:`performance.activationStart`,cf())}Qp()}function Qp(){Bp=void 0,Vp=void 0,zp={}}function $p(e){if(e?.entryType===`measure`)try{return e.detail.devtools.track===`Components ⚛`}catch{return}}function em(e,t,n,r,i,a){if($p(t)||[`mark`,`measure`].includes(t.entryType)&&rt(t.name,a))return;let o=sf(!1),s=W(o?o.requestStart:0),c=i+Math.max(n,s),l=i+n,u=l+r,d={[P]:`auto.resource.browser.metrics`};c!==l&&(d[`sentry.browser.measure_happened_before_request`]=!0,d[`sentry.browser.measure_start_time`]=c),tm(d,t),c<=u&&Cp(e,c,u,{name:t.name,op:t.entryType,attributes:d})}function tm(e,t){try{let n=t.detail;if(!n)return;if(typeof n==`object`){for(let[t,r]of Object.entries(n))if(r&&xe(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(xe(n)){e[`sentry.browser.measure.detail`]=n;return}try{e[`sentry.browser.measure.detail`]=JSON.stringify(n)}catch{}}catch{}}function nm(e,t,n){[`unloadEvent`,`redirect`,`domContentLoadedEvent`,`loadEvent`,`connect`].forEach(r=>{rm(e,t,r,n)}),rm(e,t,`secureConnection`,n,`TLS/SSL`),rm(e,t,`fetch`,n,`cache`),rm(e,t,`domainLookup`,n,`DNS`),am(e,t,n)}function rm(e,t,n,r,i=n){let a=t[im(n)],o=t[`${n}Start`];!o||!a||Cp(e,r+W(o),r+W(a),{op:`browser.${i}`,name:t.name,attributes:{[P]:`auto.ui.browser.metrics`,...n===`redirect`&&t.redirectCount!=null?{"http.redirect_count":t.redirectCount}:{}}})}function im(e){return e===`secureConnection`?`connectEnd`:e===`fetch`?`domainLookupStart`:`${e}End`}function am(e,t,n){let r=n+W(t.requestStart),i=n+W(t.responseEnd),a=n+W(t.responseStart);t.responseEnd&&(Cp(e,r,i,{op:`browser.request`,name:t.name,attributes:{[P]:`auto.ui.browser.metrics`}}
490),Cp(e,a,i,{op:`browser.response`,name:t.name,attributes:{[P]:`auto.ui.browser.metrics`}}))}function om(e,t,n,r,i,a,o){if(t.initiatorType===`xmlhttprequest`||t.initiatorType===`fetch`)return;let s=t.initiatorType?`resource.${t.initiatorType}`:`resource.other`;if(o?.includes(s))return;let c={[P]:`auto.resource.browser.metrics`},l=gs(n);l.protocol&&(c[`url.scheme`]=l.protocol.split(`:`).pop()),l.host&&(c[`server.address`]=l.host),c[`url.same_origin`]=n.includes(H.location.origin),c[ea]=n,lm(t,c,[[`responseStatus`,`http.response.status_code`],[`transferSize`,`http.response_transfer_size`],[`encodedBodySize`,`http.response_content_length`],[`decodedBodySize`,`http.decoded_response_content_length`],[`renderBlockingStatus`,`resource.render_blocking_status`],[`deliveryType`,`http.response_delivery_type`]]);let u={...c,...Fp(t)},d=a+r;Cp(e,d,d+i,{name:n.replace(H.location.origin,``),op:s,attributes:u})}function sm(e,t){let n=H.navigator;if(!n)return;let r=n.connection;r&&(r.effectiveType&&e.setAttribute(t?`network.connection.effective_type`:`effectiveConnectionType`,r.effectiveType),r.type&&e.setAttribute(t?`network.connection.type`:`connectionType`,r.type),Sp(r.rtt)&&(t?e.setAttribute(`network.connection.rtt`,r.rtt):F(e).op===`pageload`&&li(`connection.rtt`,r.rtt,`millisecond`))),Sp(n.deviceMemory)&&(t?e.setAttribute(`device.memory.estimated_capacity`,n.deviceMemory):e.setAttribute(`deviceMemory`,`${n.deviceMemory} GB`)),Sp(n.hardwareConcurrency)&&(t?e.setAttribute(`device.processor_count`,n.hardwareConcurrency):e.setAttribute(`hardwareConcurrency`,String(n.hardwareConcurrency)))}function cm(e,t){Bp&&t.recordLcpOnPageloadSpan&&(Bp.element&&e.setAttribute(`lcp.element`,U(Bp.element)),Bp.id&&e.setAttribute(`lcp.id`,Bp.id),Bp.url&&e.setAttribute(`lcp.url`,Bp.url.trim().slice(0,200)),Bp.loadTime!=null&&e.setAttribute(`lcp.loadTime`,Bp.loadTime),Bp.renderTime!=null&&e.setAttribute(`lcp.renderTime`,Bp.renderTime),e.setAttribute(`lcp.size`,Bp.size)),Vp?.sources&&t.recordClsOnPageloadSpan&&Vp.sources.forEach((t,n)=>e.setAttribute(`cls.source.${n+1}`,U(t.node)))}function lm(e,t,n){n.forEach(([n,r])=>{let i=e[n];i!=null&&(typeof i==`number`&&i<Lp||typeof i==`string`)&&(t[r]=i)})}function um(e){let t=sf(!1);if(!t)return;let{responseStart:n,requestStart:r}=t;r<=n&&(e[`ttfb.requestTime`]={value:n-r,unit:`millisecond`})}var dm=[],fm=new Map,pm=new Map;function mm(){if(Tp()&&bt()){let e=gm();return()=>{e()}}return()=>void 0}var hm={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 gm(){return ap(_m)}var _m=({metric:e})=>{if(e.value==null)return;let t=W(e.value);if(t>60)return;let n=e.entries.find(t=>t.duration===e.value&&hm[t.name]);if(!n)return;let{interactionId:r}=n,i=hm[n.name],a=W(bt()+n.startTime),o=Cr(),s=o?xr(o):void 0,c=r==null?void 0:fm.get(r),l=c?.span||s,u=l?F(l).description:j().getScopeData().transactionName,d=wp({name:c?.elementName||U(n.target),transaction:u,attributes:{[P]:`auto.http.browser.inp`,[cn]:`ui.interaction.${i}`,[mn]:n.duration},startTime:a});d&&(d.addEvent(`inp`,{[un]:`millisecond`,[dn]:e.value}),d.end(a+t))};function vm(e){return e==null?void 0:fm.get(e)}function ym(){let e=Object.keys(hm);so()&&e.forEach(e=>{H.addEventListener(e,t,{capture:!0,passive:!0})});function t(e){let t=e.target;if(!t)return;let n=U(t),r=Math.round(e.timeStamp);if(pm.set(r,n),pm.size>50){let e=pm.keys().next().value;e!==void 0&&pm.delete(e)}}function n(e){let t=Math.round(e.startTime),n=pm.get(t);if(!n)for(let e=-5;e<=5;e++){let r=pm.get(t+e);if(r){n=r;break}}return n||`<unknown>`}let r=({entries:e})=>{let t=Cr(),r=t&&xr(t);e.forEach(e=>{if(!gp(e))return;let t=e.interactionId;if(t==null||fm.has(t))return;let i=e.target?U(e.target):n(e);if(dm.length>10){let e=dm.shift();fm.delete(e)}dm.push(t),fm.set(t,{span:r,elementName:i})})};op(`event`,r),op(`first-input`,r)}function bm(e){let{name:t,op:n,origin:r,metricName:i,value:a,attributes:o,parentSpan:s,reportEvent:c,startTime:l,endTime:u}=e,d=j().getScopeData().transactionName,f={[P]:r,[cn]:n,[mn]:0,[`browser.web_vital.${i}.value`]:a,[$i]:d,[Qi]:d,"user_agent.original":H.navigator?.userAgent,...o};s&&sr(s).attributes?.[`sentry.op`]===`pageload`&&(f[`sentry.pageload.span_id`]=s.spanContext().spanId),c&&(f[`browser.web_vital.${i}.report_event`]=c);let p=xi({name:t,attributes:f,startTime:l,parentSpan:s});p&&p.end(u??l)}function xm(e){let t=0,n;if(!Dp(`largest-contentful-paint`))return;let r=rp(({metric:e})=>{let r=e.entries[e.entries.length-1];!r||!jp(e.value)||(t=e.value,n=r)},!0);Op(e,(e,i,a)=>{Sm(t,n,a,e),r()})}function Sm(e,t,n,r){if(!jp(e))return;rf&&x.log(`Sending LCP span (${e})`);let i=bt()||0,a=W(i),o=W(i+(t?.startTime||0)),s=t?U(t.element):`Largest contentful paint`,c={};t?.element&&(c[`browser.web_vital.lcp.element`]=U(t.element)),t?.id&&(c[`browser.web_vital.lcp.id`]=t.id),t?.url&&(c[`browser.web_vital.lcp.url`]=t.url),t?.loadTime!=null&&(c[`browser.web_vital.lcp.load_time`]=t.loadTime),t?.renderTime!=null&&(c[`browser.web_vital.lcp.render_time`]=t.renderTime),t?.size!=null&&(c[`browser.web_vital.lcp.size`]=t.size),bm({name:s,op:`ui.webvital.lcp`,origin:`auto.http.browser.lcp`,metricName:`lcp`,value:e,attributes:c,parentSpan:n,reportEvent:r,startTime:a,endTime:o})}function Cm(e){let t=0,n;if(!Dp(`layout-shift`))return;let r=np(({metric:e})=>{let r=e.entries[e.entries.length-1];r&&(t=e.value,n=r)},!0);Op(e,(e,i,a)=>{wm(t,n,a,e),r()})}function wm(e,t,n,r){rf&&x.log(`Sending CLS span (${e})`);let i=t?W((bt()||0)+t.startTime):A(),a=t?U(t.sources[0]?.node):`Layout shift`,o={};
490t?.sources&&t.sources.forEach((e,t)=>{o[`browser.web_vital.cls.source.${t+1}`]=U(e.node)}),bm({name:a,op:`ui.webvital.cls`,origin:`auto.http.browser.cls`,metricName:`cls`,value:e,attributes:o,parentSpan:n,reportEvent:r,startTime:i})}function Tm(){!Tp()||!bt()||ap(({metric:e})=>{if(e.value==null||W(e.value)>60)return;let t=e.entries.find(t=>t.duration===e.value&&hm[t.name]);t&&Em(e.value,t)})}function Em(e,t){rf&&x.log(`Sending INP span (${e})`);let n=W(bt()+t.startTime),r=W(e),i=hm[t.name],a=vm(t.interactionId),o=Cr(),s=o?xr(o):void 0,c=a?.span||s,l=c?sr(c).name:j().getScopeData().transactionName;bm({name:a?.elementName||U(t.target),op:`ui.interaction.${i}`,origin:`auto.http.browser.inp`,metricName:`inp`,value:e,attributes:{[mn]:t.duration,[$i]:l,[Qi]:l},startTime:n,endTime:n+r,parentSpan:c})}var Dm=1e3,Om,km,Am;function jm(e){O(`dom`,e),oe(`dom`,Mm)}function Mm(){if(!H.document)return;let e=se.bind(null,`dom`),t=Fm(e,!0);H.document.addEventListener(`click`,t,!1),H.document.addEventListener(`keypress`,t,!1),[`EventTarget`,`Node`].forEach(t=>{let n=H[t]?.prototype;n?.hasOwnProperty?.(`addEventListener`)&&(ke(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=Fm(e);a.handler=r,t.call(this,n,r,i)}a.refCount++}catch{}return t.call(this,n,r,i)}}),ke(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 Nm(e){if(e.type!==km)return!1;try{if(!e.target||e.target._sentryId!==Am)return!1}catch{}return!0}function Pm(e,t){return e===`keypress`?!t?.tagName||!(t.tagName===`INPUT`||t.tagName===`TEXTAREA`||t.isContentEditable):!1}function Fm(e,t=!1){return n=>{if(!n||n._sentryCaptured)return;let r=Im(n);if(Pm(n.type,r))return;Ae(n,`_sentryCaptured`,!0),r&&!r._sentryId&&Ae(r,`_sentryId`,st());let i=n.type===`keypress`?`input`:n.type;Nm(n)||(e({event:n,name:i,global:t}),km=n.type,Am=r?r._sentryId:void 0),clearTimeout(Om),Om=H.setTimeout(()=>{Am=void 0,km=void 0},Dm)}}function Im(e){try{return e.target}catch{return null}}var Lm;function Rm(e){let t=`history`;O(t,e),oe(t,zm)}function zm(){if(H.addEventListener(`popstate`,()=>{let e=H.location.href,t=Lm;Lm=e,t!==e&&se(`history`,{from:t,to:e})}),!Mc())return;function e(e){return function(...t){let n=t.length>2?t[2]:void 0;if(n){let r=Lm,i=Bm(String(n));if(Lm=i,r===i)return e.apply(this,t);se(`history`,{from:r,to:i})}return e.apply(this,t)}}ke(H.history,`pushState`,e),ke(H.history,`replaceState`,e)}function Bm(e){try{return new URL(e,H.location.origin).toString()}catch{return e}}var Vm={};function Hm(e){let t=Vm[e];if(t)return t;let n=H[e];if(Pc(n))return Vm[e]=n.bind(H);let r=H.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){rf&&x.warn(`Could not create sandbox iframe for ${e} check, bailing to window.${e}: `,t)}return n&&(Vm[e]=n.bind(H))}function Um(e){Vm[e]=void 0}function Wm(...e){return Hm(`setTimeout`)(...e)}var Gm=`__sentry_xhr_v3__`;function Km(e){O(`xhr`,e),oe(`xhr`,qm)}function qm(){if(!H.XMLHttpRequest)return;let e=XMLHttpRequest.prototype;e.open=new Proxy(e.open,{apply(e,t,n){let r=Error(),i=A()*1e3,a=k(n[0])?n[0].toUpperCase():void 0,o=Jm(n[1]);if(!a||!o)return e.apply(t,n);t[Gm]={method:a,url:o,request_headers:{}},a===`POST`&&o.match(/sentry_key/)&&(t.__sentry_own_request__=!0);let s=()=>{let e=t[Gm];if(e&&t.readyState===4){try{e.status_code=t.status}catch{}se(`xhr`,{endTimestamp:A()*1e3,startTimestamp:i,xhr:t,virtualError:r}),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[Gm];return a&&k(r)&&k(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[Gm];return r?(n[0]!==void 0&&(r.body=n[0]),se(`xhr`,{startTimestamp:A()*1e3,xhr:t}),e.apply(t,n)):e.apply(t,n)}})}function Jm(e){if(k(e))return e;try{return e.toString()}catch{}}var Ym=Symbol.for(`sentry__originalRequestBody`);function Xm(e){return new URLSearchParams(e).toString()}function Zm(e,t=x){try{if(typeof e==`string`)return[e];if(e instanceof URLSearchParams)return[e.toString()];if(e instanceof FormData)return[Xm(e)];if(!e)return[void 0]}catch(n){return rf&&t.error(n,`Failed to serialize body`,e),[void 0,`BODY_PARSE_ERROR`]}return rf&&t.log(`Skipping network body because of body type`,e),[void 0,`UNPARSEABLE_BODY_TYPE`]}function Qm(e=[]){if(e.length>
490=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][Ym];return t===void 0?void 0:t}}function $m(e){let t;try{t=e.getAllResponseHeaders()}catch(t){return rf&&x.error(t,`Failed to get xhr response headers`,e),{}}return t?t.split(`\r
491`).reduce((e,t)=>{let[n,r]=t.split(`: `);return r&&(e[n.toLowerCase()]=r),e},{}):{}}function eh(e){if(typeof Element>`u`)return!1;try{return e instanceof Element}catch{return!1}}var th=40;function nh(e,t=Hm(`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 Um(`fetch`),e}finally{n-=a,r--}}return Fo(e,i,ko(e.bufferSize||th))}var rh=typeof __SENTRY_DEBUG__>`u`||__SENTRY_DEBUG__,ih=30,ah=50;function oh(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 sh=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,ch=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,lh=/\((\S*)(?::(\d+))(?::(\d+))\)/,uh=/at (.+?) ?\(data:(.+?),/,dh=[ih,e=>{let t=e.match(uh);if(t)return{filename:`<data:${t[2]}>`,function:t[1]};let n=sh.exec(e);if(n){let[,e,t,r]=n;return oh(e,`?`,+t,+r)}let r=ch.exec(e);if(r){if(r[2]?.indexOf(`eval`)===0){let e=lh.exec(r[2]);e&&(r[2]=e[1],r[3]=e[2],r[4]=e[3])}let[e,t]=hh(r[1]||`?`,r[2]);return oh(t,e,r[3]?+r[3]:void 0,r[4]?+r[4]:void 0)}}],fh=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,ph=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,mh=T(dh,[ah,e=>{let t=fh.exec(e);if(t){if(t[3]&&t[3].indexOf(` > eval`)>-1){let e=ph.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]=hh(n,e),oh(e,n,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}}]),hh=(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]},gh=1024,_h=`Breadcrumbs`,vh=Qa(((e={})=>{let t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:_h,setup(e){t.console&&tc(xh(e)),t.dom&&jm(bh(e,t.dom)),t.xhr&&Km(Sh(e)),t.fetch&&Ic(Ch(e)),t.history&&Rm(wh(e)),t.sentry&&e.on(`beforeSendEvent`,yh(e))}}}));function yh(e){return function(t){N()===e&&As({category:`sentry.${t.type===`transaction`?`transaction`:`event`}`,event_id:t.event_id,level:t.level,message:lt(t)},{event:t})}}function bh(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>gh&&(rh&&x.warn(`\`dom.maxStringLength\` cannot exceed ${gh}, but a value of ${o} was configured. Sentry will use ${gh} instead.`),o=gh),typeof a==`string`&&(a=[a]);try{let e=n.event,t=Th(e)?e.target:e;r=U(t,{keyAttrs:a,maxStringLength:o}),i=qc(t)}catch{r=`<unknown>`}if(r.length===0)return;let s={category:`ui.${n.name}`,message:r};i&&(s.data={"ui.component_name":i}),As(s,{event:n.event,name:n.name,global:n.global})}}function xh(e){return function(t){if(N()!==e)return;let n={category:`console`,data:{arguments:t.args,logger:`console`},level:ic(t.level),message:tt(t.args,` `)};if(t.level===`assert`)if(t.args[0]===!1)n.message=`Assertion failed: ${tt(t.args.slice(1),` `)||`console.assert`}`,n.data.arguments=t.args.slice(1);else return;As(n,{input:t.args,level:t.level})}}function Sh(e){return function(t){if(N()!==e)return;let{startTimestamp:n,endTimestamp:r}=t,i=t.xhr[Gm];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:Ac(s)};e.emit(`beforeOutgoingRequestBreadcrumb`,d,u),As(d,u)}}function Ch(e){return function(t){if(N()!==e)return;let{startTimestamp:n,endTimestamp:r}=t;
491if(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),As(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:Ac(a.status_code)};e.emit(`beforeOutgoingRequestBreadcrumb`,s,o),As(s,o)}}}function wh(e){return function(t){if(N()!==e)return;let n=t.from,r=t.to,i=gs(V.location.href),a=n?gs(n):void 0,o=gs(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),As({category:`navigation`,data:{from:n,to:r}})}}function Th(e){return!!e&&!!e.target}var Eh=`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(`,`),Dh=`BrowserApiErrors`,Oh=Qa(((e={})=>{let t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,unregisterOriginalCallbacks:!1,...e};return{name:Dh,setupOnce(){t.setTimeout&&ke(V,`setTimeout`,kh),t.setInterval&&ke(V,`setInterval`,kh),t.requestAnimationFrame&&ke(V,`requestAnimationFrame`,Ah),t.XMLHttpRequest&&`XMLHttpRequest`in V&&ke(XMLHttpRequest.prototype,`send`,jh);let e=t.eventTarget;e&&(Array.isArray(e)?e:Eh).forEach(e=>Mh(e,t))}}}));function kh(e){return function(...t){let n=t[0];return t[0]=Fd(n,{mechanism:{handled:!1,type:`auto.browser.browserapierrors.${E(e)}`}}),e.apply(this,t)}}function Ah(e){return function(t){return e.apply(this,[Fd(t,{mechanism:{data:{handler:E(e)},handled:!1,type:`auto.browser.browserapierrors.requestAnimationFrame`}})])}}function jh(e){return function(...t){let n=this;return[`onload`,`onerror`,`onprogress`,`onreadystatechange`].forEach(e=>{e in n&&typeof n[e]==`function`&&ke(n,e,function(t){let n={mechanism:{data:{handler:E(t)},handled:!1,type:`auto.browser.browserapierrors.xhr.${e}`}},r=Me(t);return r&&(n.mechanism.data.handler=E(r)),Fd(t,n)})}),e.apply(this,t)}}function Mh(e,t){let n=V[e]?.prototype;n?.hasOwnProperty?.(`addEventListener`)&&(ke(n,`addEventListener`,function(n){return function(r,i,a){try{Nh(i)&&(i.handleEvent=Fd(i.handleEvent,{mechanism:{data:{handler:E(i),target:e},handled:!1,type:`auto.browser.browserapierrors.handleEvent`}}))}catch{}return t.unregisterOriginalCallbacks&&Ph(this,r,i),n.apply(this,[r,Fd(i,{mechanism:{data:{handler:E(i),target:e},handled:!1,type:`auto.browser.browserapierrors.addEventListener`}}),a])}}),ke(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 Nh(e){return typeof e.handleEvent==`function`}function Ph(e,t,n){e&&typeof e==`object`&&`removeEventListener`in e&&typeof e.removeEventListener==`function`&&e.removeEventListener(t,n)}var Fh=Qa((e={})=>{let t=e.lifecycle??`route`;return{name:`BrowserSession`,setupOnce(){if(V.document===void 0){rh&&x.warn("Using the `browserSessionIntegration` in non-browser environments is not supported.");return}Fa({ignoreDuration:!0});let e=!1;Bf(()=>{e||(Ra(),e=!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&&Ra())}),t===`route`&&Rm(({from:t,to:n})=>{t!==n&&(Fa({ignoreDuration:!0}),Ra(),e=!0)})}}}),Ih=`CultureContext`,Lh=Qa((()=>({name:Ih,preprocessEvent(e){let t=Rh();t&&(e.contexts={...e.contexts,culture:{...t,...e.contexts?.culture}})},processSegmentSpan(e){let t=Rh();t&&ta(e,{"culture.locale":t.locale,"culture.timezone":t.timezone,"culture.calendar":t.calendar})}})));function Rh(){try{let e=V.Intl;if(!e)return;let t=e.DateTimeFormat().resolvedOptions();return{locale:t.locale,timezone:t.timeZone,calendar:t.calendar}}catch{return}}var zh=`GlobalHandlers`,Bh=Qa(((e={})=>{let t={onerror:!0,onunhandledrejection:!0,...e};return{name:zh,setupOnce(){Error.stackTraceLimit=50},setup(e){t.onerror&&(Vh(e),Kh(`onerror`)),t.onunhandledrejection&&(Hh(e),Kh(`onunhandledrejection`))}}}));function Vh(e){le(t=>{let{stackParser:n,attachStacktrace:r}=qh();if(N()!==e||Nd())return;let{msg:i,url:a,line:o,column:s,error:c}=t,l=Gh(Xd(n,c||i,void 0,r,!1),a,o,s);l.level=`error`,Oa(l,{originalException:c,mechanism:{handled:!1,type:`auto.browser.global_handlers.onerror`}})})}function Hh(e){fe(t=>{let{stackParser:n,attachStacktrace:r}=qh();if(N()!==e||Nd())return;let i=Uh(t),a=xe(i)?Wh(i):Xd(n,i,void 0,r,!0);a.level=`error`,Oa(a,{originalException:i,mechanism:{handled:!1,type:`auto.browser.global_handlers.onunhandledrejection`}})})}function Uh(e){if(xe(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 Wh(e){return{exception:{values:[{type:`UnhandledRejection`,value:`Non-Error promise rejection captured with value: ${String(e)}`}]}}}function Gh(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||[];
491return c.length===0&&c.push({colno:r,lineno:n,filename:Jh(t)??Kc(),function:`?`,in_app:!0}),e}function Kh(e){rh&&x.log(`Global Handler attached: ${e}`)}function qh(){return N()?.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}function Jh(e){if(!(!k(e)||e.length===0))return e.startsWith(`data:`)?`<${vs(e,!1)}>`:e}var Yh=Qa(()=>({name:`HttpContext`,preprocessEvent(e){if(!V.navigator&&!V.location&&!V.document)return;let t=Id(),n={...t.headers,...e.request?.headers};e.request={...t,...e.request,headers:n}},processSegmentSpan(e){let t=e.attributes?.[cn];if(!V.navigator&&!V.location&&!V.document)return;let n=Id();ta(e,{[ea]:t===`http.client`?void 0:n.url,"http.request.header.user_agent":n.headers[`User-Agent`],"http.request.header.referer":n.headers.Referer})}})),Xh=`cause`,Zh=5,Qh=`LinkedErrors`,$h=Qa(((e={})=>{let t=e.limit||Zh,n=e.key||Xh;return{name:Qh,preprocessEvent(e,r,i){qs(Rd,i.getOptions().stackParser,n,t,e,r)}}})),eg=/^HTML(\w*)Element$/;function tg(e){if(typeof window<`u`&&e===window)return`[Window]`;if(typeof document<`u`&&e===document)return`[Document]`;if(eh(e)){let t=ng(e);if(eg.test(t))return`[HTMLElement: ${U(e)}]`}}function ng(e){let t=Object.getPrototypeOf(e);return t?.constructor?t.constructor.name:`null prototype`}function rg(){return ig()?(rh&&f(()=>{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 ig(){if(V.window===void 0)return!1;let e=V;if(e.nw||!(e.chrome||e.browser)?.runtime?.id)return!1;let t=Kc();return!(V===V.top&&/^(?:chrome-extension|moz-extension|ms-browser-extension|safari-web-extension):\/\//.test(t))}function ag(e){return[Ls(),Ns(),mc(),Oh(),vh(),Bh(),$h(),oc(),Yh(),Lh(),Fh()]}function og(e={}){let t=!e.skipBrowserExtensionCheck&&rg(),n=e.defaultIntegrations==null?ag():e.defaultIntegrations,r={...e,enabled:!t&&e.enabled,stackParser:ee(e.stackParser||mh),integrations:qa({integrations:e.integrations,defaultIntegrations:n}),transport:e.transport||nh};return Ge(tg),us(tf,r)}function sg(e={}){let t=V.document,n=t?.head||t?.body;if(!n){rh&&x.error(`[showReportDialog] Global document not defined`);return}let r=j(),i=N()?.getDsn();if(!i){rh&&x.error(`[showReportDialog] DSN not configured`);return}let a={...e,user:{...r.getUser(),...e.user},eventId:e.eventId||Ma()},o=V.document.createElement(`script`);o.async=!0,o.crossOrigin=`anonymous`,o.src=Wa(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{V.removeEventListener(`message`,e)}};V.addEventListener(`message`,e)}n.appendChild(o)}var G=i,cg=`sentryReplaySession`,lg=`replay_event`,ug=`Unable to send Replay`,dg=3e5,fg=9e5,pg=5e3,mg=5500,hg=6e4,gg=5e3,_g=3,vg=15e4,yg=5e3,bg=3e3,xg=300,Sg=2e7,Cg=4999,wg=5e4,Tg=36e5,Eg=Object.defineProperty,Dg=(e,t,n)=>t in e?Eg(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Og=(e,t,n)=>Dg(e,typeof t==`symbol`?t:t+``,n),K=(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))(K||{});function kg(e){return e.nodeType===e.ELEMENT_NODE}function Ag(e){return e?.host?.shadowRoot===e}function jg(e){return Object.prototype.toString.call(e)===`[object ShadowRoot]`}function Mg(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 Ng(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 Pg(e){try{let t=e.rules||e.cssRules;return t?Mg(Array.from(t,Ig).join(``)):null}catch{return null}}function Fg(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 Ig(e){let t;if(Rg(e))try{t=Pg(e.styleSheet)||Ng(e)}catch{}else if(zg(e)){let t=e.cssText,n=e.selectorText.includes(`:`),r=typeof e.style.all==`string`&&e.style.all;if(r&&(t=Fg(e)),n&&(t=Lg(t)),n||r)return t}return t||e.cssText}function Lg(e){return e.replace(/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm,`$1\\$2`)}function Rg(e){return`styleSheet`in e}function zg(e){return`selectorText`in e}var Bg=class{constructor(){Og(this,`idNodeMap`,new Map),Og(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);
491this.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 Vg(){return new Bg}function Hg({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 Ug({isMasked:e,element:t,value:n,maskInputFn:r}){let i=n||``;return e?(r&&(i=r(i,t)),`*`.repeat(i.length)):i}function Wg(e){return e.toLowerCase()}function Gg(e){return e.toUpperCase()}var Kg=`__rrweb_original__`;function qg(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=Kg in i?i[Kg]:i;if(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 Jg(e){let t=e.type;return e.hasAttribute(`data-rr-is-password`)?`password`:t?Wg(t):null}function Yg(e,t,n){return t===`INPUT`&&(n===`radio`||n===`checkbox`)?e.getAttribute(`value`)||``:e.value}function Xg(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 Zg={};function Qg(e){let t=Zg[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 Zg[e]=r.bind(window)}function $g(...e){return Qg(`setTimeout`)(...e)}function e_(...e){return Qg(`clearTimeout`)(...e)}function t_(e){try{return e.contentDocument}catch{}}function n_(e){try{return e.contentWindow}catch{}}var r_=1,i_=RegExp(`[^a-z0-9-_:]`),a_=-2;function o_(){return r_++}function s_(e){if(e instanceof HTMLFormElement)return`form`;let t=Wg(e.tagName);return i_.test(t)?`div`:t}function c_(e){let t=``;return t=e.indexOf(`//`)>-1?e.split(`/`).slice(0,3).join(`/`):e.split(`/`)[0],t=t.split(`?`)[0],t}var l_,u_,d_=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,f_=/^(?:[a-z+]+:)?\/\//i,p_=/^www\..*/i,m_=/^(data:)([^,]*),(.*)/i;function h_(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 g_(e,t){return(e||``).replace(d_,(e,n,r,i,a,o)=>{let s=r||a||o,c=n||i||``;if(!s)return e;if(f_.test(s)||p_.test(s)||m_.test(s))return`url(${c}${s}${c})`;if(s[0]===`/`)return`url(${c}${c_(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 __=/^[^ \t\n\r\u000c]+/,v_=/^[, \t\n\r\u000c]+/;function y_(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(v_),!(n>=t.length);){let a=r(__);if(a.slice(-1)===`,`)a=x_(e,a.substring(0,a.length-1)),i.push(a);else{let r=``;a=x_(e,a);let o=!1;for(;;){let e=t.charAt(n);if(e===``){i.push((a+r).trim());break}else if(o)e===`)`&&(o=!1);else if(e===`,`){n+=1,i.push((a+r).trim());break}else e===`(`&&(o=!0);r+=e,n+=1}}}return i.join(`, `)}var b_=new WeakMap;function x_(e,t){return!t||t.trim()===``?t:C_(e,t)}function S_(e){return!!(e.tagName===`svg`||e.ownerSVGElement)}function C_(e,t){let n=b_.get(e);if(n||(n=e.createElement(`a`),b_.set(e,n)),!t)t=``;else if(t.startsWith(`blob:`)||t.startsWith(`data:`))return t;return n.setAttribute(`href`,t),n.href}function w_(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 x_(e,r);if(n===`srcset`)return y_(e,r);if(n===`style`){let t=g_(r,C_(e));return o&&o.size>0&&(t=h_(t,o)),t}else if(t===`object`&&n===`data`)return x_(e,r);return typeof a==`function`?a(n,r,i):r}function T_(e,t,n){return(e===`video`||e===`audio`)&&t===`autoplay`}function E_(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 D_(e,t){for(let n=e.classList.length;n--;){let r=e.classList[n];if(t.test(r))return!0}return!1}function O_(e,t,n=1/0,r=0){return!e||e.nodeType!==e.ELEMENT_NODE||r>n?-1:t(e)?r:O_(e.parentNode,t,n,r+1)}function k_(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(D_(r,e))return!0}return!!(t&&r.matches(t))}catch{return!1}}}function A_(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=O_(o,k_(r,i)),c<0)return!0;s=O_(o,k_(t,n),c>=0?c:1/0)}else{if(s=O_(o,k_(t,n)),s<0)return!1;c=O_(o,k_(r,i),s>=0?s:1/0)}return s>=0?c>=0?s<=c:!0:c>=0?!1:!!a}catch{}return!!a}function j_(e,t,n){let r=n_(e);if(!r)return;let i=!1,a;try{a=r.document.readyState}catch{return}if(a!==`complete`){let r=$g(()=>{i||(t(),i=!0)},n);e.addEventListener(`load`,()=>{e_(r),i=!0,t()});return}let o=`about:blank`;if(r.location.href!==o||e.src===o||e.src===``)return $g(t,0),e.addEventListener(`load`,t);e.addEventListener(`load`,t)}function M_(e,t,n){let r=!1,i;try{i=e.sheet}catch{i=null}if(i)return;let a=$g(()=>{r||(t(),r=!0)},n);e.addEventListener(`load`,()=>{e_(a),r=!0,t()})}function N_(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={}
491,maskTextFn:h,maskInputFn:g,dataURLOptions:_={},inlineImages:v,recordCanvas:y,keepIframeSrcFn:b,newlyAddedElement:x=!1,ignoreCSSAttributes:S}=t,C=P_(n,r);switch(e.nodeType){case e.DOCUMENT_NODE:return e.compatMode===`CSS1Compat`?{type:K.Document,childNodes:[]}:{type:K.Document,childNodes:[],compatMode:e.compatMode};case e.DOCUMENT_TYPE_NODE:return{type:K.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:C};case e.ELEMENT_NODE:return I_(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 F_(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:K.CDATA,textContent:``,rootId:C};case e.COMMENT_NODE:return{type:K.Comment,textContent:e.textContent||``,rootId:C};default:return!1}}function P_(e,t){if(!t.hasNode(e))return;let n=t.getId(e);return n===1?void 0:n}function F_(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=Pg(e.parentNode.sheet))}catch(t){console.warn(`Cannot get CSS styles from text's parentNode. Error: ${t}`,e)}f=g_(f,C_(t.doc))}m&&(f=`SCRIPT_PLACEHOLDER`);let g=A_(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=Ug({isMasked:A_(e,r,a,i,o,Hg({type:null,tagName:d,maskInputOptions:c})),element:e,value:f,maskInputFn:l})),{type:K.Text,textContent:f||``,isStyle:p,rootId:u}}function I_(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=E_(e,r,i,a),S=s_(e),C={},w=e.attributes.length;for(let t=0;t<w;t++){let r=e.attributes[t];r.name&&!T_(S,r.name,r.value)&&(C[r.name]=w_(n,S,Wg(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=Pg(t)),r&&(C.rel=null,C.href=null,C.crossorigin=null,C._cssText=g_(r,t.href))}if(S===`style`&&e.sheet&&!(e.innerText||e.textContent||``).trim().length){let t=Pg(e.sheet);t&&(C._cssText=g_(t,C_(n)))}if(S===`input`||S===`textarea`||S===`select`||S===`option`){let t=e,n=Jg(t),r=Yg(t,Gg(S),n),i=t.checked;if(n!==`submit`&&n!==`button`&&r){let e=A_(t,g,v,_,y,Hg({type:n,tagName:Gg(S),maskInputOptions:s}));C.value=Ug({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`)qg(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){l_||(l_=n.createElement(`canvas`),u_=l_.getContext(`2d`));let t=e,r=t.currentSrc||t.getAttribute(`src`)||`<unknown-src>`,i=t.crossOrigin,a=()=>{t.removeEventListener(`load`,a);try{l_.width=t.naturalWidth,l_.height=t.naturalHeight,u_.drawImage(t,0,0),C.rr_dataURL=l_.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}else console.warn(`Cannot inline img src=${r}! Error: ${e}`)}t.crossOrigin===`anonymous`&&(i?C.crossOrigin=i:t.removeAttribute(`crossorigin`))};
491t.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&&!t_(e)&&(C.rr_src=C.src),delete C.src);let T;try{customElements.get(S)&&(T=!0)}catch{}return{type:K.Element,tagName:S,attributes:C,childNodes:[],isSVG:S_(e)||void 0,needBlock:x,rootId:h,isCustom:T}}function q(e){return e==null?``:e.toLowerCase()}function L_(e,t){return!!(t.comment&&e.type===K.Comment||e.type===K.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`&&Xg(e.attributes.href)===`js`)||t.headFavicon&&(e.tagName===`link`&&e.attributes.rel===`shortcut icon`||e.tagName===`meta`&&(q(e.attributes.name).match(/^msapplication-tile(image|color)$/)||q(e.attributes.name)===`application-name`||q(e.attributes.rel)===`icon`||q(e.attributes.rel)===`apple-touch-icon`||q(e.attributes.rel)===`shortcut icon`))||e.tagName===`meta`&&(t.headMetaDescKeywords&&q(e.attributes.name).match(/^description|keywords$/)||t.headMetaSocial&&(q(e.attributes.property).match(/^(og|twitter|fb):/)||q(e.attributes.name).match(/^(og|twitter):/)||q(e.attributes.name)===`pinterest`)||t.headMetaRobots&&(q(e.attributes.name)===`robots`||q(e.attributes.name)===`googlebot`||q(e.attributes.name)===`bingbot`)||t.headMetaHttpEquiv&&e.attributes[`http-equiv`]!==void 0||t.headMetaAuthorship&&(q(e.attributes.name)===`author`||q(e.attributes.name)===`generator`||q(e.attributes.name)===`framework`||q(e.attributes.name)===`publisher`||q(e.attributes.name)===`progid`||q(e.attributes.property).match(/^article:/)||q(e.attributes.property).match(/^product:/))||t.headMetaVerification&&(q(e.attributes.name)===`google-site-verification`||q(e.attributes.name)===`yandex-verification`||q(e.attributes.name)===`csrf-token`||q(e.attributes.name)===`p:domain_verify`||q(e.attributes.name)===`verify-v1`||q(e.attributes.name)===`verification`||q(e.attributes.name)===`shopify-checkout-api-token`))))}function R_(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:ee,stylesheetLoadTimeout:te=5e3,keepIframeSrcFn:ne=()=>!1,newlyAddedElement:re=!1,ignoreCSSAttributes:E}=t,{preserveWhiteSpace:ie=!0}=t,D=N_(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:ne,newlyAddedElement:re,ignoreCSSAttributes:E});if(!D)return console.warn(e,`not serialized`),null;let ae;ae=r.hasNode(e)?r.getId(e):L_(D,v)||!ie&&D.type===K.Text&&!D.isStyle&&!D.textContent.trim().length?a_:o_();let O=Object.assign(D,{id:ae});if(r.add(e,O),ae===a_)return null;S&&S(e);let oe=!f;if(O.type===K.Element){oe=oe&&!O.needBlock;let t=e.shadowRoot;t&&jg(t)&&(O.isShadowHost=!0)}if((O.type===K.Document||O.type===K.Element)&&oe){v.headWhitespace&&O.type===K.Element&&O.tagName===`head`&&(ie=!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:ie,onSerialize:S,onIframeLoad:C,iframeLoadTimeout:w,onBlockedImageLoad:T,onStylesheetLoad:ee,stylesheetLoadTimeout:te,keepIframeSrcFn:ne,ignoreCSSAttributes:E},re=e.childNodes?Array.from(e.childNodes):[];for(let e of re){let n=R_(e,t);n&&O.childNodes.push(n)}if(kg(e)&&e.shadowRoot)for(let n of Array.from(e.shadowRoot.childNodes)){let r=R_(n,t);r&&(jg(e.shadowRoot)&&(r.isShadow=!0),O.childNodes.push(r))}}if(e.parentNode&&Ag(e.parentNode)&&jg(e.parentNode)&&(O.isShadow=!0),O.type===K.Element&&O.tagName===`iframe`&&!O.needBlock&&j_(e,()=>{let t=t_(e);if(t&&C){let n=R_(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:ie,onSerialize:S,onIframeLoad:C,iframeLoadTimeout:w,onStylesheetLoad:ee,stylesheetLoadTimeout:te,keepIframeSrcFn:ne,ignoreCSSAttributes:E});n&&C(e,n)}},w),O.type===K.Element&&O.tagName===`img`&&!e.complete&&O.needBlock){let t=e,n=()=>
491{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===K.Element&&O.tagName===`link`&&typeof O.attributes.rel==`string`&&(O.attributes.rel===`stylesheet`||O.attributes.rel===`preload`&&typeof O.attributes.href==`string`&&Xg(O.attributes.href)===`css`)&&M_(e,()=>{if(ee){let t=R_(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:ie,onSerialize:S,onIframeLoad:C,iframeLoadTimeout:w,onStylesheetLoad:ee,stylesheetLoadTimeout:te,keepIframeSrcFn:ne,ignoreCSSAttributes:E});t&&ee(e,t)}},te),O.type===K.Element&&delete O.needBlock,O}function z_(e,t){let{mirror:n=new Bg,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:ee,keepIframeSrcFn:te=()=>!1,ignoreCSSAttributes:ne=new Set([])}=t||{};return R_(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:ee,keepIframeSrcFn:te,newlyAddedElement:!1,ignoreCSSAttributes:ne})}function B_(e,t,n=document){let r={capture:!0,passive:!0};return n.addEventListener(e,t,r),()=>n.removeEventListener(e,t,r)}var V_=`Please stop import mirror directly. Instead of that,\r
492now you can use replayer.getMirror() to access the mirror instance of a replayer,\r
493or you can use record.mirror to access the mirror instance during recording.`,H_={map:{},getId(){return console.error(V_),-1},getNode(){return console.error(V_),null},removeNodeFromMap(){console.error(V_)},has(){return console.error(V_),!1},reset(){console.error(V_)}};typeof window<`u`&&window.Proxy&&window.Reflect&&(H_=new Proxy(H_,{get(e,t,n){return t===`map`&&console.error(V_),Reflect.get(e,t,n)}}));function U_(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&&(hv(r),r=null),i=o,e.apply(c,a)):!r&&n.trailing!==!1&&(r=mv(()=>{i=n.leading===!1?0:Date.now(),r=null,e.apply(c,a)},s))}}function W_(e,t,n,r,i=window){let a=i.Object.getOwnPropertyDescriptor(e,t);return i.Object.defineProperty(e,t,r?n:{set(e){mv(()=>{n.set.call(this,e)},0),a&&a.set&&a.set.call(this,e)}}),()=>W_(e,t,a||{},!0)}function G_(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 K_=Date.now;/[1-9][0-9]{12}/.test(Date.now().toString())||(K_=()=>new Date().getTime());function q_(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 J_(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function Y_(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function X_(e){if(!e)return null;
493try{return e.nodeType===e.ELEMENT_NODE?e:e.parentElement}catch{return null}}function Z_(e,t,n,r,i){if(!e)return!1;let a=X_(e);if(!a)return!1;let o=k_(t,n);if(!i){let e=r&&a.matches(r);return o(a)&&!e}let s=O_(a,o),c=-1;return s<0?!1:(r&&(c=O_(a,k_(null,r))),s>-1&&c<0||s<c)}function Q_(e,t){return t.getId(e)!==-1}function $_(e,t){return t.getId(e)===a_}function ev(e,t){if(Ag(e))return!1;let n=t.getId(e);return t.has(n)?e.parentNode&&e.parentNode.nodeType===e.DOCUMENT_NODE?!1:!e.parentNode||ev(e.parentNode,t):!0}function tv(e){return!!e.changedTouches}function nv(e=window){`NodeList`in e&&!e.NodeList.prototype.forEach&&(e.NodeList.prototype.forEach=Array.prototype.forEach),`DOMTokenList`in e&&!e.DOMTokenList.prototype.forEach&&(e.DOMTokenList.prototype.forEach=Array.prototype.forEach),Node.prototype.contains||(Node.prototype.contains=(...e)=>{let t=e[0];if(!(0 in e))throw TypeError(`1 argument is required`);do if(this===t)return!0;while(t=t&&t.parentNode);return!1})}function rv(e,t){return!!(e.nodeName===`IFRAME`&&t.getMeta(e))}function iv(e,t){return!!(e.nodeName===`LINK`&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&e.getAttribute(`rel`)===`stylesheet`&&t.getMeta(e))}function av(e){return!!e?.shadowRoot}var ov=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 sv(e){let t=null;return e.getRootNode?.()?.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&e.getRootNode().host&&(t=e.getRootNode().host),t}function cv(e){let t=e,n;for(;n=sv(t);)t=n;return t}function lv(e){let t=e.ownerDocument;if(!t)return!1;let n=cv(e);return t.contains(n)}function uv(e){let t=e.ownerDocument;return t?t.contains(e)||lv(e):!1}var dv={};function fv(e){let t=dv[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 dv[e]=r.bind(window)}function pv(...e){return fv(`requestAnimationFrame`)(...e)}function mv(...e){return fv(`setTimeout`)(...e)}function hv(...e){return fv(`clearTimeout`)(...e)}var J=(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))(J||{}),Y=(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))(Y||{}),gv=(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))(gv||{}),_v=(e=>(e[e.Mouse=0]=`Mouse`,e[e.Pen=1]=`Pen`,e[e.Touch=2]=`Touch`,e))(_v||{}),vv=(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))(vv||{}),yv;function bv(e){yv=e}function xv(){yv=void 0}for(var X=e=>yv?((...t)=>{try{return e(...t)}catch(e){if(yv&&yv(e)===!0)return()=>{};throw e}}):e,Sv=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/`,Cv=typeof Uint8Array>`u`?[]:new Uint8Array(256),wv=0;wv<Sv.length;wv++)Cv[Sv.charCodeAt(wv)]=wv;var Tv=class{reset(){}freeze(){}unfreeze(){}lock(){}unlock(){}snapshot(){}addWindow(){}addShadowRoot(){}resetShadowRoots(){}};function Ev(e){try{return e.contentDocument}catch{}}function Dv(e){try{return e.contentWindow}catch{}}var Ov=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];
493return!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 kv(e){return`__ln`in e}var Av=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&&kv(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&&kv(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--)}},jv=(e,t)=>`${e}@${t}`,Mv=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 Av,r=e=>{let t=e,n=a_;for(;n===a_;)t=t&&t.nextSibling,n=t&&this.mirror.getId(t);return n},i=i=>{if(!i.parentNode||!uv(i))return;let a=Ag(i.parentNode)?this.mirror.getId(sv(i)):this.mirror.getId(i.parentNode),o=r(i);if(a===-1||o===-1)return n.addNode(i);let s=R_(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=>{rv(e,this.mirror)&&!Z_(e,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&this.iframeManager.addIframe(e),iv(e,this.mirror)&&this.stylesheetManager.trackLinkElement(e),av(i)&&this.shadowDomManager.addShadowRoot(i.shadowRoot,this.doc)},onIframeLoad:(e,t)=>{if(Z_(e,this.blockClass,this.blockSelector,this.unblockSelector,!1))return;this.iframeManager.attachIframe(e,t);let n=Dv(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)Pv(this.removes,e,this.mirror)&&!this.movedSet.has(e.parentNode)||i(e);for(let e of this.addedSet)!Iv(this.droppedSet,e)&&!Pv(this.removes,e,this.mirror)||Iv(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}else{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=>
493({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(!$_(e.target,this.mirror))switch(e.type){case`characterData`:{let t=e.target.textContent;!Z_(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&t!==e.oldValue&&this.texts.push({value:A_(e.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,this.maskAllText)&&t?this.maskTextFn?this.maskTextFn(t,X_(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=Jg(t),i=t.tagName;r=Yg(t,i,n);let a=Hg({maskInputOptions:this.maskInputOptions,tagName:i,type:n});r=Ug({isMasked:A_(e.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,a),element:t,value:r,maskInputFn:this.maskInputFn})}if(Z_(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(!Ev(t))n=`rr_src`;else return;if(i||(i={node:e.target,attributes:{},styleDiff:{},_unchangedStyles:{}}
493,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`),!T_(t.tagName,n)&&(i.attributes[n]=w_(this.doc,Wg(t.tagName),Wg(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(Z_(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=Ag(e.target)?this.mirror.getId(e.target.host):this.mirror.getId(e.target);Z_(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||$_(t,this.mirror)||!Q_(t,this.mirror)||(this.addedSet.has(t)?(Nv(this.addedSet,t),this.droppedSet.add(t)):this.addedSet.has(e.target)&&n===-1||ev(e.target,this.mirror)||(this.movedSet.has(t)&&this.movedMap[jv(n,r)]?Nv(this.movedSet,t):this.removes.push({parentId:r,id:n,isShadow:Ag(e.target)&&jg(e.target)?!0:void 0})),this.mapRemoves.push(t))});break}},this.genAdds=(e,t)=>{if(!this.processedNodeManager.inOtherBuffer(e,this)&&!(this.addedSet.has(e)||this.movedSet.has(e))){if(this.mirror.hasNode(e)){if($_(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[jv(this.mirror.getId(e),n)]=!0)}else this.addedSet.add(e),this.droppedSet.delete(e);Z_(e,this.blockClass,this.blockSelector,this.unblockSelector,!1)||(e.childNodes&&e.childNodes.forEach(e=>this.genAdds(e)),av(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 Ov(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 Nv(e,t){e.delete(t),t.childNodes?.forEach(t=>Nv(e,t))}function Pv(e,t,n){return e.length!==0&&Fv(e,t,n)}function Fv(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 Iv(e,t){return e.size!==0&&Lv(e,t)}function Lv(e,t){let{parentNode:n}=t;return n?e.has(n)?!0:Lv(e,n):!1}var Rv=[];function zv(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 Bv(e,t){let n=new Mv;Rv.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(X(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 Vv({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=U_(X(t=>{let n=Date.now()-s;e(o.map(e=>(e.timeOffset-=n,e)),t),o=[],s=null}),a),l=X(U_(X(e=>{let t=zv(e),{clientX:n,clientY:i}=tv(e)?e.changedTouches[0]:e;s||(s=K_()),o.push({x:n,y:i,id:r.getId(t),timeOffset:K_()-s}),c(typeof DragEvent<`u`&&e instanceof DragEvent?Y.Drag:e instanceof MouseEvent?Y.MouseMove:Y.TouchMove)}),i,{trailing:!1})),u=[B_(`mousemove`,l,n),B_(`touchmove`,l,n),B_(`drag`,l,n)];return X(()=>
vendor: 4,630 bytes, line 493
493{u.forEach(e=>e())})}function Hv({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=zv(o);if(Z_(s,r,i,a,!0))return;let c=null,u=t;if(`pointerType`in o){switch(o.pointerType){case`mouse`:c=_v.Mouse;break;case`touch`:c=_v.Touch;break;case`pen`:c=_v.Pen;break}c===_v.Touch?gv[t]===gv.MouseDown?u=`TouchStart`:gv[t]===gv.MouseUp&&(u=`TouchEnd`):_v.Pen}else tv(o)&&(c=_v.Touch);c===null?gv[t]===gv.Click&&(c=l,l=null):(l=c,(u.startsWith(`Touch`)&&c===_v.Touch||u.startsWith(`Mouse`)&&c===_v.Mouse)&&(c=null));let d=tv(o)?o.changedTouches[0]:o;if(!d)return;let f=n.getId(s),{clientX:p,clientY:m}=d;X(e)({type:gv[u],id:f,x:p,y:m,...c!==null&&{pointerType:c}})};return Object.keys(gv).filter(e=>Number.isNaN(Number(e))&&!e.endsWith(`_Departed`)&&s[e]!==!1).forEach(e=>{let n=Wg(e),r=u(e);if(window.PointerEvent)switch(gv[e]){case gv.MouseDown:case gv.MouseUp:n=n.replace(`mouse`,`pointer`);break;case gv.TouchStart:case gv.TouchEnd:return}c.push(B_(n,r,t))}),X(()=>{c.forEach(e=>e())})}function Uv({scrollCb:e,doc:t,mirror:n,blockClass:r,blockSelector:i,unblockSelector:a,sampling:o}){return B_(`scroll`,X(U_(X(o=>{let s=zv(o);if(!s||Z_(s,r,i,a,!0))return;let c=n.getId(s);if(s===t&&t.defaultView){let n=q_(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 Wv({viewportResizeCb:e},{win:t}){let n=-1,r=-1;return B_(`resize`,X(U_(X(()=>{let t=J_(),i=Y_();(n!==t||r!==i)&&(e({width:Number(i),height:Number(t)}),n=t,r=i)}),200)),t)}var Gv=[`INPUT`,`TEXTAREA`,`SELECT`],Kv=new WeakMap;function qv({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=zv(e),u=e.isTrusted,g=n&&Gg(n.tagName);if(g===`OPTION`&&(n=n.parentElement),!n||!g||Gv.indexOf(g)<0||Z_(n,r,i,a,!0))return;let v=n;if(v.classList.contains(o)||s&&v.matches(s))return;let y=Jg(n),b=Yg(v,g,y),x=!1,S=Hg({maskInputOptions:c,tagName:g,type:y}),C=A_(n,f,m,p,h,S);(y===`radio`||y===`checkbox`)&&(x=n.checked),b=Ug({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=Ug({isMasked:C,element:e,value:Yg(e,g,y),maskInputFn:l});_(e,d?{text:t,isChecked:!x,userTriggered:!1}:{text:t,isChecked:!x})}})}function _(t,r){let i=Kv.get(t);if(!i||i.text!==r.text||i.isChecked!==r.isChecked){Kv.set(t,r);let i=n.getId(t);X(e)({...r,id:i})}}let v=(u.input===`last`?[`change`]:[`input`,`change`]).map(e=>B_(e,X(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=>W_(e[0],e[1],{set(){X(g)({target:this,isTrusted:!1})}},!1,y))),X(()=>{v.forEach(e=>e())})}function Jv(e){let t=[];function n(e,t){if(iy(`CSSGroupingRule`)&&e.parentRule instanceof CSSGroupingRule||iy(`CSSMediaRule`)&&e.parentRule instanceof CSSMediaRule||iy(`CSSSupportsRule`)&&e.parentRule instanceof CSSSupportsRule||iy(`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 Yv(e,t,n){let r,i;return e?(e.ownerNode?r=t.getId(e.ownerNode):i=n.getId(e),{styleId:i,id:r}):{}}function Xv({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:X((r,i,a)=>{let[o,s]=a,{id:c,styleId:l}=Yv(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:X((r,i,a)=>{let[o]=a,{id:s,styleId:c}=Yv(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;
vendor: 4,300 bytes, line 493
493r.CSSStyleSheet.prototype.replace&&(o=r.CSSStyleSheet.prototype.replace,r.CSSStyleSheet.prototype.replace=new Proxy(o,{apply:X((r,i,a)=>{let[o]=a,{id:s,styleId:c}=Yv(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:X((r,i,a)=>{let[o]=a,{id:s,styleId:c}=Yv(i,t,n.styleMirror);return(s&&s!==-1||c&&c!==-1)&&e({id:s,styleId:c,replaceSync:o}),r.apply(i,a)})}));let c={};ay(`CSSGroupingRule`)?c.CSSGroupingRule=r.CSSGroupingRule:(ay(`CSSMediaRule`)&&(c.CSSMediaRule=r.CSSMediaRule),ay(`CSSConditionRule`)&&(c.CSSConditionRule=r.CSSConditionRule),ay(`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:X((r,i,a)=>{let[o,s]=a,{id:c,styleId:l}=Yv(i.parentStyleSheet,t,n.styleMirror);return(c&&c!==-1||l&&l!==-1)&&e({id:c,styleId:l,adds:[{rule:o,index:[...Jv(i),s||0]}]}),r.apply(i,a)})}),i.prototype.deleteRule=new Proxy(l[r].deleteRule,{apply:X((r,i,a)=>{let[o]=a,{id:s,styleId:c}=Yv(i.parentStyleSheet,t,n.styleMirror);return(s&&s!==-1||c&&c!==-1)&&e({id:s,styleId:c,removes:[{index:[...Jv(i),o]}]}),r.apply(i,a)})})}),X(()=>{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 Zv({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}}),X(()=>{Object.defineProperty(n,"adoptedStyleSheets",{configurable:a.configurable,enumerable:a.enumerable,get:a.get,set:a.set})}))}function Qv({styleDeclarationCb:e,mirror:t,ignoreCSSAttributes:n,stylesheetManager:r},{win:i}){let a=i.CSSStyleDeclaration.prototype.setProperty;i.CSSStyleDeclaration.prototype.setProperty=new Proxy(a,{apply:X((i,o,s)=>{let[c,l,u]=s;if(n.has(c))return a.apply(o,[c,l,u]);let{id:d,styleId:f}=Yv(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:Jv(o.parentRule)}),i.apply(o,s)})});let o=i.CSSStyleDeclaration.prototype.removeProperty;return i.CSSStyleDeclaration.prototype.removeProperty=new Proxy(o,{apply:X((i,a,s)=>{let[c]=s;if(n.has(c))return o.apply(a,[c]);let{id:l,styleId:u}=Yv(a.parentRule?.parentStyleSheet,t,r.styleMirror);return(l&&l!==-1||u&&u!==-1)&&e({id:l,styleId:u,remove:{property:c},index:Jv(a.parentRule)}),i.apply(a,s)})}),X(()=>{i.CSSStyleDeclaration.prototype.setProperty=a,i.CSSStyleDeclaration.prototype.removeProperty=o})}function $v({mediaInteractionCb:e,blockClass:t,blockSelector:n,unblockSelector:r,mirror:i,sampling:a,doc:o}){let s=X(o=>U_(X(a=>{let s=zv(a);if(!s||Z_(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=[B_(`play`,s(vv.Play),o),B_(`pause`,s(vv.Pause),o),B_(`seeked`,s(vv.Seeked),o),B_(`volumechange`,s(vv.VolumeChange),o),B_(`ratechange`,s(vv.RateChange),o)];return X(()=>{c.forEach(e=>e())})}function ey({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=G_(t.fonts,`add`,function(t){return function(n){return mv(X(()=>{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),X(()=>
493{r.forEach(e=>e())})}function ty(e){let{doc:t,mirror:n,blockClass:r,blockSelector:i,unblockSelector:a,selectionCb:o}=e,s=!0,c=X(()=>{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);Z_(o,r,i,a,!0)||Z_(l,r,i,a,!0)||c.push({start:n.getId(o),startOffset:s,end:n.getId(l),endOffset:u})}o({ranges:c})});return c(),B_(`selectionchange`,c)}function ny({doc:e,customElementCb:t}){let n=e.defaultView;return!n||!n.customElements?()=>{}:G_(n.customElements,`define`,function(e){return function(n,r,i){try{t({define:{name:n}})}catch{}return e.apply(this,[n,r,i])}})}function ry(e,t={}){let n=e.doc.defaultView;if(!n)return()=>{};let r;e.recordDOM&&(r=Bv(e,e.doc));let i=Vv(e),a=Hv(e),o=Uv(e),s=Wv(e,{win:n}),c=qv(e),l=$v(e),u=()=>{},d=()=>{},f=()=>{},p=()=>{};e.recordDOM&&(u=Xv(e,{win:n}),d=Zv(e,e.doc),f=Qv(e,{win:n}),e.collectFonts&&(p=ey(e)));let m=ty(e),h=ny(e),g=[];for(let t of e.plugins)g.push(t.observer(t.callback,n,t.options));return X(()=>{Rv.forEach(e=>e.reset()),r?.disconnect(),i(),a(),o(),s(),c(),l(),u(),d(),f(),p(),m(),h(),g.forEach(e=>e())})}function iy(e){return window[e]!==void 0}function ay(e){return!!(window[e]!==void 0&&window[e].prototype&&`insertRule`in window[e].prototype&&`deleteRule`in window[e].prototype)}var oy=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))}
vendor: 4,366 bytes, line 493
493getRemoteId(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}},sy=class{constructor(){this.crossOriginIframeMirror=new oy(o_),this.crossOriginIframeRootIdMap=new WeakMap}addIframe(){}addLoadListener(){}attachIframe(){}},cy=class{constructor(e){this.iframes=new WeakMap,this.crossOriginIframeMap=new WeakMap,this.crossOriginIframeMirror=new oy(o_),this.crossOriginIframeRootIdMap=new WeakMap,this.mutationCb=e.mutationCb,this.wrappedEmit=e.wrappedEmit,this.stylesheetManager=e.stylesheetManager,this.recordCrossOriginIframes=e.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new oy(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=Dv(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&&Dv(e)?.addEventListener(`message`,this.handleMessage.bind(this)),this.loadListener?.(e);let n=Ev(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 J.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:J.IncrementalSnapshot,data:{source:Y.Mutation,adds:[{parentId:this.mirror.getId(e),nextId:null,node:t.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case J.Meta:case J.Load:case J.DomContentLoaded:return!1;case J.Plugin:return t;case J.Custom:return this.replaceIds(t.data.payload,e,[`id`,`parentId`,`previousId`,`nextId`]),t;case J.IncrementalSnapshot:switch(t.data.source){case Y.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 Y.Drag:case Y.TouchMove:case Y.MouseMove:return t.data.positions.forEach(t=>{this.replaceIds(t,e,[`id`])}),t;case Y.ViewportResize:return!1;case Y.MediaInteraction:case Y.MouseInteraction:case Y.Scroll:case Y.CanvasMutation:case Y.Input:return this.replaceIds(t.data,e,[`id`]),t;case Y.StyleSheetRule:case Y.StyleDeclaration:return this.replaceIds(t.data,e,[`id`]),this.replaceStyleIds(t.data,e,[`styleId`]),t;case Y.Font:return t;case Y.Selection:return t.data.ranges.forEach(t=>{this.replaceIds(t,e,[`start`,`end`])}),t;case Y.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`||(Array.isArray(t[i])?t[i]=e.getIds(n,t[i]):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
493h(e=>{this.replaceIdOnNode(e,t)})}patchRootIdOnNode(e,t){e.type!==K.Document&&!e.rootId&&(e.rootId=t),`childNodes`in e&&e.childNodes.forEach(e=>{this.patchRootIdOnNode(e,t)})}},ly=class{init(){}addShadowRoot(){}observeAttachShadow(){}reset(){}},uy=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(!jg(e)||this.shadowDoms.has(e))return;this.shadowDoms.add(e),this.bypassOptions.canvasManager.addShadowRoot(e);let n=Bv({...this.bypassOptions,doc:t,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this},e);this.restoreHandlers.push(()=>n.disconnect()),this.restoreHandlers.push(Uv({...this.bypassOptions,scrollCb:this.scrollCb,doc:e,mirror:this.mirror})),mv(()=>{e.adoptedStyleSheets&&e.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(e.adoptedStyleSheets,this.mirror.getId(e.host)),this.restoreHandlers.push(Zv({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},e))},0)}observeAttachShadow(e){let t=Ev(e),n=Dv(e);!t||!n||this.patchAttachShadow(n.Element,t)}patchAttachShadow(e,t){let n=this;this.restoreHandlers.push(G_(e.prototype,`attachShadow`,function(e){return function(r){let i=e.call(this,r);return this.shadowRoot&&uv(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()}},dy=class{constructor(e){this.trackedLinkElements=new WeakSet,this.styleMirror=new ov,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:Ig(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){}},fy=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,pv(()=>{this.nodeMap=new WeakMap,this.active=!1})),this.nodeMap.set(e,(this.nodeMap.get(e)||new Set).add(t))}destroy(){}},Z,py;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 my=Vg();function hy(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:ee=!0,recordCanvas:te=!1,recordCrossOriginIframes:ne=!1,recordAfter:re=e.recordAfter===`DOMContentLoaded`?e.recordAfter:`load`,userTriggeredOnInput:E=!1,collectFonts:ie=!1,inlineImages:D=!1,plugins:ae,keepIframeSrcFn:O=()=>!1,ignoreCSSAttributes:oe=new Set([]),errorHandler:se,onMutation:ce,getCanvasManager:le}=e;bv(se);let ue=!ne||window.parent===window,de=!1;if(!ue)try{window.parent.document&&(de=!1)}catch{de=!0}if(ue&&!t)throw Error(`emit function is required`);if(!ue&&!de)return()=>{};
493T!==void 0&&C.mousemove===void 0&&(C.mousemove=T),my.reset();let fe=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,pe=_===!0||_===`all`?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:_===`all`,headMetaDescKeywords:_===`all`}:_||{};nv();let me,he=0,ge=e=>{for(let t of ae||[])t.eventProcessor&&(e=t.eventProcessor(e));return S&&!de&&(e=S(e)),e};Z=(e,i)=>{let a=e;if(a.timestamp=K_(),Rv[0]?.isFrozen()&&a.type!==J.FullSnapshot&&!(a.type===J.IncrementalSnapshot&&a.data.source===Y.Mutation)&&Rv.forEach(e=>e.unfreeze()),ue)t?.(ge(a),i);else if(de){let e={type:`rrweb`,event:ge(a),origin:window.location.origin,isCheckout:i};window.parent.postMessage(e,`*`)}if(a.type===J.FullSnapshot)me=a,he=0;else if(a.type===J.IncrementalSnapshot){if(a.data.source===Y.Mutation&&a.data.isAttachIframe)return;he++;let e=r&&he>=r,t=n&&me&&a.timestamp-me.timestamp>n;(e||t)&&we(!0)}};let _e=e=>{Z({type:J.IncrementalSnapshot,data:{source:Y.Mutation,...e}})},ve=e=>Z({type:J.IncrementalSnapshot,data:{source:Y.Scroll,...e}}),ye=e=>Z({type:J.IncrementalSnapshot,data:{source:Y.CanvasMutation,...e}}),k=new dy({mutationCb:_e,adoptedStyleSheetCb:e=>Z({type:J.IncrementalSnapshot,data:{source:Y.AdoptedStyleSheet,...e}})}),be=typeof __RRWEB_EXCLUDE_IFRAME__==`boolean`&&__RRWEB_EXCLUDE_IFRAME__?new sy:new cy({mirror:my,mutationCb:_e,stylesheetManager:k,recordCrossOriginIframes:ne,wrappedEmit:Z});for(let e of ae||[])e.getMirror&&e.getMirror({nodeMirror:my,crossOriginIframeMirror:be.crossOriginIframeMirror,crossOriginIframeStyleMirror:be.crossOriginIframeStyleMirror});let xe=new fy,Se=_y(le,{mirror:my,win:window,mutationCb:e=>Z({type:J.IncrementalSnapshot,data:{source:Y.CanvasMutation,...e}}),recordCanvas:te,blockClass:i,blockSelector:a,unblockSelector:o,maxCanvasSize:x,sampling:C.canvas,dataURLOptions:w,errorHandler:se}),Ce=typeof __RRWEB_EXCLUDE_SHADOW_DOM__==`boolean`&&__RRWEB_EXCLUDE_SHADOW_DOM__?new ly:new uy({mutationCb:_e,scrollCb:ve,bypassOptions:{onMutation:ce,blockClass:i,blockSelector:a,unblockSelector:o,maskAllText:l,maskTextClass:u,unmaskTextClass:d,maskTextSelector:f,unmaskTextSelector:p,inlineStylesheet:m,maskInputOptions:fe,dataURLOptions:w,maskAttributeFn:v,maskTextFn:b,maskInputFn:y,recordCanvas:te,inlineImages:D,sampling:C,slimDOMOptions:pe,iframeManager:be,stylesheetManager:k,canvasManager:Se,keepIframeSrcFn:O,processedNodeManager:xe,ignoreCSSAttributes:oe},mirror:my}),we=(e=!1)=>{if(!ee)return;Z({type:J.Meta,data:{href:window.location.href,width:Y_(),height:J_()}},e),k.reset(),Ce.init(),Rv.forEach(e=>e.lock());let t=z_(document,{mirror:my,blockClass:i,blockSelector:a,unblockSelector:o,maskAllText:l,maskTextClass:u,unmaskTextClass:d,maskTextSelector:f,unmaskTextSelector:p,inlineStylesheet:m,maskAllInputs:fe,maskAttributeFn:v,maskInputFn:y,maskTextFn:b,slimDOM:pe,dataURLOptions:w,recordCanvas:te,inlineImages:D,onSerialize:e=>{rv(e,my)&&be.addIframe(e),iv(e,my)&&k.trackLinkElement(e),av(e)&&Ce.addShadowRoot(e.shadowRoot,document)},onIframeLoad:(e,t)=>{be.attachIframe(e,t);let n=Dv(e);n&&Se.addWindow(n),Ce.observeAttachShadow(e)},onStylesheetLoad:(e,t)=>{k.attachLinkElement(e,t)},onBlockedImageLoad:(e,t,{width:n,height:r})=>{_e({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`);Z({type:J.FullSnapshot,data:{node:t,initialOffset:q_(window)}}),Rv.forEach(e=>e.unlock()),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&k.adoptStyleSheets(document.adoptedStyleSheets,my.getId(document))};py=we;try{let e=[],t=e=>X(ry)({onMutation:ce,mutationCb:_e,mousemoveCb:(e,t)=>Z({type:J.IncrementalSnapshot,data:{source:t,positions:e}}),mouseInteractionCb:e=>Z({type:J.IncrementalSnapshot,data:{source:Y.MouseInteraction,...e}}),scrollCb:ve,viewportResizeCb:e=>Z({type:J.IncrementalSnapshot,data:{source:Y.ViewportResize,...e}}),inputCb:e=>Z({type:J.IncrementalSnapshot,data:{source:Y.Input,...e}}),mediaInteractionCb:e=>Z({type:J.IncrementalSnapshot,data:{source:Y.MediaInteraction,...e}}),styleSheetRuleCb:e=>Z({type:J.IncrementalSnapshot,data:{source:Y.StyleSheetRule,...e}}),styleDeclarationCb:e=>Z({type:J.IncrementalSnapshot,data:{source:Y.StyleDeclaration,...e}}),canvasMutationCb:ye,fontCb:e=>Z({type:J.IncrementalSnapshot,data:{source:Y.Font,...e}}),selectionCb:e=>{Z({type:J.IncrementalSnapshot,data:{source:Y.Selection,...e}})},customElementCb:e=>{Z({type:J.IncrementalSnapshot,data:{source:Y.CustomElement,...e}})},blockClass:i,ignoreClass:s,ignoreSelector:c,maskAllText:l,maskTextClass:u,unmaskTextClass:d,maskTextSelector:f,unmaskTextSelector:p,maskInputOptions:fe,inlineStylesheet:m,sampling:C,recordDOM:ee,recordCanvas:te,inlineImages:D,userTr
493iggeredOnInput:E,collectFonts:ie,doc:e,maskAttributeFn:v,maskInputFn:y,maskTextFn:b,keepIframeSrcFn:O,blockSelector:a,unblockSelector:o,slimDOMOptions:pe,dataURLOptions:w,mirror:my,iframeManager:be,stylesheetManager:k,shadowDomManager:Ce,processedNodeManager:xe,canvasManager:Se,ignoreCSSAttributes:oe,plugins:ae?.filter(e=>e.observer)?.map(e=>({observer:e.observer,options:e.options,callback:t=>Z({type:J.Plugin,data:{plugin:e.name,payload:t}})}))||[]},{});be.addLoadListener(n=>{try{e.push(t(n.contentDocument))}catch(e){console.warn(e)}});let n=()=>{we(),e.push(t(document))};return document.readyState===`interactive`||document.readyState===`complete`?n():(e.push(B_(`DOMContentLoaded`,()=>{Z({type:J.DomContentLoaded,data:{}}),re===`DOMContentLoaded`&&n()})),e.push(B_(`load`,()=>{Z({type:J.Load,data:{}}),re===`load`&&n()},window))),()=>{e.forEach(e=>e()),xe.destroy(),py=void 0,xv()}}catch(e){console.warn(e)}}function gy(e){if(!py)throw Error(`please take full snapshot after start recording`);py(e)}hy.mirror=my,hy.takeFullSnapshot=gy;function _y(e,t){try{return e?e(t):new Tv}catch{return console.warn(`Unable to initialize CanvasManager`),new Tv}}var vy;(function(e){e[e.NotStarted=0]=`NotStarted`,e[e.Running=1]=`Running`,e[e.Stopped=2]=`Stopped`})(vy||(vy={}));var yy=3,by=5;function xy(e){return e>9999999999?e:e*1e3}function Sy(e){return e>9999999999?e/1e3:e}function Cy(e,t){t.category!==`sentry.transaction`&&([`ui.click`,`ui.input`].includes(t.category)?e.triggerUserActivity():e.checkAndHandleExpiredSession(),e.addUpdate(()=>(e.throttledAddEvent({type:J.Custom,timestamp:(t.timestamp||0)*1e3,data:{tag:`breadcrumb`,payload:Ke(t,10,1e3)}}),t.category===`console`)))}var wy=`button,a`;function Ty(e){return e.closest(wy)||e}function Ey(e){let t=Dy(e);return!t||!(t instanceof Element)?t:Ty(t)}function Dy(e){return Oy(e)?e.target:e}function Oy(e){return Ce(e)&&`target`in e}var ky;function Ay(e){return ky||(ky=[],jy()),ky.push(e),()=>{let t=ky?ky.indexOf(e):-1;t>-1&&ky.splice(t,1)}}function jy(){ke(G,`open`,function(e){return function(...t){if(ky)try{ky.forEach(e=>e())}catch{}return e.apply(G,t)}})}var My=new Set([Y.Mutation,Y.StyleSheetRule,Y.StyleDeclaration,Y.AdoptedStyleSheet,Y.CanvasMutation,Y.Selection,Y.MediaInteraction]);function Ny(e,t,n){e.handleClick(t,n)}var Py=class{constructor(e,t,n=Cy){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=Ay(()=>{this._lastMutation=Ry()});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(Iy(t,this._ignoreSelector)||!Ly(e))return;let n={timestamp:Sy(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=Sy(e)}registerScroll(e=Date.now()){this._lastScroll=Sy(e)}registerClick(e){let t=Ty(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=Ry();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:G.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:G.location.href,route:t.getCurrentRoute(),clickCount:a,metric:!0}};this._addBreadcrumbEvent(t,e)}}_scheduleCheckClicks(){this._checkClickTimeout&&clearTimeout(this._checkClickTimeout),this._checkClickTimeout=Wm(()=>this._checkClicks(),1e3)}},Fy=[`A`,`BUTTON`,`INPUT`];function Iy(e,t){return!!(!Fy.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))}
493function Ly(e){return!!(e.data&&typeof e.data.nodeId==`number`&&e.timestamp)}function Ry(){return Date.now()/1e3}function zy(e,t){try{if(!By(t))return;let{source:n}=t.data;if(My.has(n)&&e.registerMutation(t.timestamp),n===Y.Scroll&&e.registerScroll(t.timestamp),Vy(t)){let{type:n,id:r}=t.data,i=hy.mirror.getNode(r);i instanceof HTMLElement&&n===gv.Click&&e.registerClick(i)}}catch{}}function By(e){return e.type===yy}function Vy(e){return e.data.source===Y.MouseInteraction}function Hy(e){return{timestamp:Date.now()/1e3,type:`default`,...e}}var Uy=(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))(Uy||{}),Wy=new Set([`id`,`class`,`aria-label`,`role`,`name`,`alt`,`title`,`data-test-id`,`data-testid`,`disabled`,`aria-disabled`,`data-sentry-component`]);function Gy(e){let t={};!e[`data-sentry-component`]&&e[`data-sentry-element`]&&(e[`data-sentry-component`]=e[`data-sentry-element`]);for(let n in e)if(Wy.has(n)){let r=n;(n===`data-testid`||n===`data-test-id`)&&(r=`testId`),t[r]=e[n]}return t}var Ky=e=>t=>{if(!e.isEnabled())return;let n=Jy(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&&Ny(e.clickDetector,n,Ey(t.event)),Cy(e,n)};function qy(e,t){let n=hy.mirror.getId(e),r=n&&hy.mirror.getNode(n),i=r&&hy.mirror.getMeta(r),a=i&&Xy(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===Uy.Text&&e.textContent).filter(Boolean).map(e=>e.trim()).join(``),attributes:Gy(a.attributes)}}:{}}}function Jy(e){let{target:t,message:n}=Yy(e);return Hy({category:`ui.${e.name}`,...qy(t,n)})}function Yy(e){let t=e.name===`click`,n,r=null;try{r=t?Ey(e.event):Dy(e.event),n=U(r,{maxStringLength:200})||`<unknown>`}catch{n=`<unknown>`}return{target:r,message:n}}function Xy(e){return e.type===Uy.Element}function Zy(e,t){if(!e.isEnabled())return;e.updateUserActivity();let n=Qy(t);n&&Cy(e,n)}function Qy(e){let{metaKey:t,shiftKey:n,ctrlKey:r,altKey:i,key:a,target:o}=e;if(!o||$y(o)||!a)return null;let s=t||r||i,c=a.length===1;if(!s&&c)return null;let l=U(o,{maxStringLength:200})||`<unknown>`;return Hy({category:`ui.keyDown`,message:l,data:{...qy(o,l).data,metaKey:t,shiftKey:n,ctrlKey:r,altKey:i,key:a}})}function $y(e){return e.tagName===`INPUT`||e.tagName===`TEXTAREA`||e.isContentEditable}var eb={resource:sb,paint:ab,navigation:ob};function tb(e,t){return({metric:n})=>void t.replayPerformanceEntries.push(e(n))}
493function nb(e){return e.map(rb).filter(Boolean)}function rb(e){let t=eb[e.entryType];return t?t(e):null}function ib(e){return((bt()||G.performance.timeOrigin)+e)/1e3}function ab(e){let{duration:t,entryType:n,name:r,startTime:i}=e,a=ib(i);return{type:n,name:r,start:a,end:a+t,data:void 0}}function ob(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:ib(p),end:ib(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 sb(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:ib(a),end:ib(i),name:r,data:{size:l,statusCode:c,decodedBodySize:o,encodedBodySize:s}}}function cb(e){let t=e.entries[e.entries.length-1];return fb(e,`largest-contentful-paint`,t?.element?[t.element]:void 0)}function lb(e){return e.sources!==void 0}function ub(e){let t=[],n=[];for(let r of e.entries)if(lb(r)){let e=[];for(let t of r.sources)if(t.node){n.push(t.node);let r=hy.mirror.getId(t.node);r&&e.push(r)}t.push({value:r.value,nodeIds:e.length?e:void 0})}return fb(e,`cumulative-layout-shift`,n,t)}function db(e){let t=e.entries[e.entries.length-1];return fb(e,`interaction-to-next-paint`,t?.target?[t.target]:void 0)}function fb(e,t,n,r){let i=e.value,a=e.rating,o=ib(i);return{type:`web-vital`,name:t,start:o,end:o,data:{value:i,size:i,rating:a,nodeIds:n?n.map(e=>hy.mirror.getId(e)):void 0,attributions:r}}}function pb(e){function t(t){e.performanceEntries.includes(t)||e.performanceEntries.push(t)}function n({entries:e}){e.forEach(t)}let r=[];return[`navigation`,`paint`,`resource`].forEach(e=>{r.push(op(e,n))}),r.push(rp(tb(cb,e)),np(tb(ub,e)),ap(tb(db,e))),()=>{r.forEach(e=>e())}}var Q=typeof __SENTRY_DEBUG__>`u`||__SENTRY_DEBUG__,mb=
vendor: 10,332 bytes, line 493
493`var t=Uint8Array,n=Uint16Array,r=Int32Array,e=new t([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),i=new t([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),s=new t([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),a=function(t,e){for(var i=new n(31),s=0;s<31;++s)i[s]=e+=1<<t[s-1];var a=new r(i[30]);for(s=1;s<30;++s)for(var o=i[s];o<i[s+1];++o)a[o]=o-i[s]<<5|s;return{b:i,r:a}},o=a(e,2),h=o.b,f=o.r;h[28]=258,f[258]=28;for(var l=a(i,0).r,u=new n(32768),c=0;c<32768;++c){var v=(43690&c)>>1|(21845&c)<<1;v=(61680&(v=(52428&v)>>2|(13107&v)<<2))>>4|(3855&v)<<4,u[c]=((65280&v)>>8|(255&v)<<8)>>1}var d=function(t,r,e){for(var i=t.length,s=0,a=new n(r);s<i;++s)t[s]&&++a[t[s]-1];var o,h=new n(r);for(s=1;s<r;++s)h[s]=h[s-1]+a[s-1]<<1;if(e){o=new n(1<<r);var f=15-r;for(s=0;s<i;++s)if(t[s])for(var l=s<<4|t[s],c=r-t[s],v=h[t[s]-1]++<<c,d=v|(1<<c)-1;v<=d;++v)o[u[v]>>f]=l}else for(o=new n(i),s=0;s<i;++s)t[s]&&(o[s]=u[h[t[s]-1]++]>>15-t[s]);return o},p=new t(288);for(c=0;c<144;++c)p[c]=8;for(c=144;c<256;++c)p[c]=9;for(c=256;c<280;++c)p[c]=7;for(c=280;c<288;++c)p[c]=8;var g=new t(32);for(c=0;c<32;++c)g[c]=5;var w=d(p,9,0),y=d(g,5,0),m=function(t){return(t+7)/8|0},b=function(n,r,e){return(null==e||e>n.length)&&(e=n.length),new t(n.subarray(r,e))},M=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],E=function(t,n,r){var e=new Error(n||M[t]);if(e.code=t,Error.captureStackTrace&&Error.captureStackTrace(e,E),!r)throw e;return e},z=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8},_=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8,t[e+2]|=r>>16},x=function(r,e){for(var i=[],s=0;s<r.length;++s)r[s]&&i.push({s:s,f:r[s]});var a=i.length,o=i.slice();if(!a)return{t:F,l:0};if(1==a){var h=new t(i[0].s+1);return h[i[0].s]=1,{t:h,l:1}}i.sort(function(t,n){return t.f-n.f}),i.push({s:-1,f:25001});var f=i[0],l=i[1],u=0,c=1,v=2;for(i[0]={s:-1,f:f.f+l.f,l:f,r:l};c!=a-1;)f=i[i[u].f<i[v].f?u++:v++],l=i[u!=c&&i[u].f<i[v].f?u++:v++],i[c++]={s:-1,f:f.f+l.f,l:f,r:l};var d=o[0].s;for(s=1;s<a;++s)o[s].s>d&&(d=o[s].s);var p=new n(d+1),g=A(i[c-1],p,0);if(g>e){s=0;var w=0,y=g-e,m=1<<y;for(o.sort(function(t,n){return p[n.s]-p[t.s]||t.f-n.f});s<a;++s){var b=o[s].s;if(!(p[b]>e))break;w+=m-(1<<g-p[b]),p[b]=e}for(w>>=y;w>0;){var M=o[s].s;p[M]<e?w-=1<<e-p[M]++-1:++s}for(;s>=0&&w;--s){var E=o[s].s;p[E]==e&&(--p[E],++w)}g=e}return{t:new t(p),l:g}},A=function(t,n,r){return-1==t.s?Math.max(A(t.l,n,r+1),A(t.r,n,r+1)):n[t.s]=r},D=function(t){for(var r=t.length;r&&!t[--r];);for(var e=new n(++r),i=0,s=t[0],a=1,o=function(t){e[i++]=t},h=1;h<=r;++h)if(t[h]==s&&h!=r)++a;else{if(!s&&a>2){for(;a>138;a-=138)o(32754);a>2&&(o(a>10?a-11<<5|28690:a-3<<5|12305),a=0)}else if(a>3){for(o(s),--a;a>6;a-=6)o(8304);a>2&&(o(a-3<<5|8208),a=0)}for(;a--;)o(s);a=1,s=t[h]}return{c:e.subarray(0,i),n:r}},T=function(t,n){for(var r=0,e=0;e<n.length;++e)r+=t[e]*n[e];return r},k=function(t,n,r){var e=r.length,i=m(n+2);t[i]=255&e,t[i+1]=e>>8,t[i+2]=255^t[i],t[i+3]=255^t[i+1];for(var s=0;s<e;++s)t[i+s+4]=r[s];return 8*(i+4+e)},U=function(t,r,a,o,h,f,l,u,c,v,m){z(r,m++,a),++h[256];for(var b=x(h,15),M=b.t,E=b.l,A=x(f,15),U=A.t,C=A.l,F=D(M),I=F.c,S=F.n,L=D(U),O=L.c,j=L.n,q=new n(19),B=0;B<I.length;++B)++q[31&I[B]];for(B=0;B<O.length;++B)++q[31&O[B]];for(var G=x(q,7),H=G.t,J=G.l,K=19;K>4&&!H[s[K-1]];--K);var N,P,Q,R,V=v+5<<3,W=T(h,p)+T(f,g)+l,X=T(h,M)+T(f,U)+l+14+3*K+T(q,H)+2*q[16]+3*q[17]+7*q[18];if(c>=0&&V<=W&&V<=X)return k(r,m,t.subarray(c,c+v));if(z(r,m,1+(X<W)),m+=2,X<W){N=d(M,E,0),P=M,Q=d(U,C,0),R=U;var Y=d(H,J,0);z(r,m,S-257),z(r,m+5,j-1),z(r,m+10,K-4),m+=14;for(B=0;B<K;++B)z(r,m+3*B,H[s[B]]);m+=3*K;for(var Z=[I,O],$=0;$<2;++$){var tt=Z[$];for(B=0;B<tt.length;++B){var nt=31&tt[B];z(r,m,Y[nt]),m+=H[nt],nt>15&&(z(r,m,tt[B]>>5&127),m+=tt[B]>>12)}}}else N=w,P=p,Q=y,R=g;for(B=0;B<u;++B){var rt=o[B];if(rt>255){_(r,m,N[(nt=rt>>18&31)+257]),m+=P[nt+257],nt>7&&(z(r,m,rt>>23&31),m+=e[nt]);var et=31&rt;_(r,m,Q[et]),m+=R[et],et>3&&(_(r,m,rt>>5&8191),m+=i[et])}else _(r,m,N[rt]),m+=P[rt]}return _(r,m,N[256]),m+P[256]},C=new r([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),F=new t(0),I=function(){for(var t=new Int32Array(256),n=0;n<256;++n){for(var r=n,e=9;--e;)r=(1&r&&-306674912)^r>>>1;t[n]=r}return t}(),S=function(){var t=1,n=0;return{p:function(r){for(var e=t,i=n,s=0|r.length,a=0;a!=s;){for(var o=Math.min(a+2655,s);a<o;++a)i+=e+=r[a];e=(65535&e)+15*(e>>16),i=(65535&i)+15*(i>>16)}t=e,n=i},d:function(){return(255&(t%=65521))<<24|(65280&t)<<8|(255&(n%=65521))<<8|n>>8}}},L=function(s,a,o,h,u){if(!u&&(u={l:1},a.dictionary)){var c=a.dictionary.subarray(-32768),v=new t(c.length+s.length);v.set(c),v.set(s,c.length),s=v,u.w=c.length}return function(s,a,o,h,u,c){var v=c.z||s.length,d=new t(h+v+5*(1+Math.ceil(v/7e3))+u),p=d.subarray(h,d.length-u),g=c.l,w=7&(c.r||0);if(a){w&&(p[0]=c.r>>3);for(var y=C[a-1],M=y>>13,E=8191&y,z=(1<<o)-1,_=c.p||new n(32768),x=c.h||new n(z+1),A=Math.ceil(o/3),D=2*A,T=function(t){return(s[t]^s[t+1]<<A^s[t+2]<<D)&z},F=new r(25e3),I=new n(288),S=new n(32),L=0,O=0,j=c.i||0,q=0,B=c.w||0,G=0;j+2<v;++j){var H=T(j),J=32767&j,K=x[H];if(_[J]=K,x[H]=J,B<=j){var N=v-j;if((L>7e3||q>24576)&&(N>423||!g)){w=U(s,p,0,F,I,S,O,q,G,j-G,w),q=L=O=0,G=j;for(var P=0;P<286;++P)I[P]=0;for(P=0;P<30;++P)S[P]=0}var Q=2,R=0,V=E,W=J-K&32767;if(N>2&&H==T(j-W))for(var X=Math.min(M,N)-1,Y=Math.min(32767,j),Z=Math.min(258,N);W<=Y&&--V&&J!=K;){if(s[j+Q]==s[j+Q-W]){for(var $=0;$<Z&&s[j+$]==s[j+$-W];++$);if($>Q){if(Q=$,R=W,$>X)break;var tt=Math.min(W,$-2),nt=0;for(P=0;P<tt;++P){var rt=j-W+P&32767,et=rt-_[rt]&32767;et>nt&&(nt=et,K=rt)}}}W+=(J=K)-(K=_[J])&32767}if(R){F[q++]=268435456|f[Q]<<18|l[R];var it=31&f[Q],st=31&l[R];O+=e[it]+i[st],++I[257+it],++S[st],B=j+Q,++L}else F[q++]=s[j],++I[s[j]]}}for(j=Math.max(j,B);j<v;++j)F[q++]=s[j],++I[s[j]];w=U(s,p,g,F,I,S,O,q,G,j-G,w),g||(c.r=7&w|p[w/8|0]<<3,w-=7,c.h=x,c.p=_,c.i=j,c.w=B)}else{for(j=c.w||0;j<v+g;j+=65535){var at=j+65535;at>=v&&(p[w/8|0]=g,at=v),w=k(p,w+1,s.subarray(j,at))}c.i=v}return b(d,0,h+m(w)+u)}(s,null==a.level?6:a.level,null==a.mem?u.l?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(s.length)))):20:12+a.mem,o,h,u)},O=function(t,n,r){for(;r;++n)t[n]=r,r>>>=8},j=function(){function n(n,r){if("function"==typeof n&&(r=n,n={}),this.ondata=r,this.o=n||{},this.s={l:0,i:32768,w:32768,z:32768},this.b=new t(98304),this.o.dictionary){var e=this.o.dictionary.subarray(-32768);this.b.set(e,32768-e.length),this.s.i=32768-e.length}}return n.prototype.p=function(t,n){this.ondata(L(t,this.o,0,0,this.s),n)},n.prototype.push=function(n,r){this.ondata||E(5),this.s.l&&E(4);var e=n.length+this.s.z;if(e>this.b.length){if(e>2*this.b.length-32768){var i=new t(-32768&e);i.set(this.b.subarray(0,this.s.z)),this.b=i}var s=this.b.length-this.s.z;this.b.set(n.subarray(0,s),this.s.z),this.s.z=this.b.length,this.p(this.b,!1),this.b.set(this.b.subarray(-32768)),this.b.set(n.subarray(s),32768),this.s.z=n.length-s+32768,this.s.i=32766,this.s.w=32768}else this.b.set(n,this.s.z),this.s.z+=n.length;this.s.l=1&r,(this.s.z>this.s.w+8191||r)&&(this.p(this.b,r||!1),this.s.w=this.s.i,this.s.i-=2)},n.prototype.flush=function(){this.ondata||E(5),this.s.l&&E(4),this.p(this.b,!1),this.s.w=this.s.i,this.s.i-=2},n}();function q(t,n){n||(n={});var r=function(){var t=-1;return{p:function(n){for(var r=t,e=0;e<n.length;++e)r=I[255&r^n[e]]^r>>>8;t=r},d:function(){return~t}}}(),e=t.length;r.p(t);var i,s=L(t,n,10+((i=n).filename?i.filename.length+1:0),8),a=s.length;return function(t,n){var r=n.filename;if(t[0]=31,t[1]=139,t[2]=8,t[8]=n.level<2?4:9==n.level?2:0,t[9]=3,0!=n.mtime&&O(t,4,Math.floor(new Date(n.mtime||Date.now())/1e3)),r){t[3]=8;for(var e=0;e<=r.length;++e)t[e+10]=r.charCodeAt(e)}}(s,n),O(s,a-8,r.d()),O(s,a-4,e),s}var B=function(){function t(t,n){this.c=S(),this.v=1,j.call(this,t,n)}return t.prototype.push=function(t,n){this.c.p(t),j.prototype.push.call(this,t,n)},t.prototype.p=function(t,n){var r=L(t,this.o,this.v&&(this.o.dictionary?6:2),n&&4,this.s);this.v&&(function(t,n){var r=n.level,e=0==r?0:r<6?1:9==r?3:2;if(t[0]=120,t[1]=e<<6|(n.dictionary&&32),t[1]|=31-(t[0]<<8|t[1])%31,n.dictionary){var i=S();i.p(n.dictionary),O(t,2,i.d())}}(r,this.o),this.v=0),n&&O(r,r.length-4,this.c.d()),this.ondata(r,n)},t.prototype.flush=function(){j.prototype.flush.call(this)},t}(),G="undefined"!=typeof TextEncoder&&new TextEncoder,H="undefined"!=typeof TextDecoder&&new TextDecoder;try{H.decode(F,{stream:!0})}catch(t){}var J=function(){function t(t){this.ondata=t}return t.prototype.push=function(t,n){this.ondata||E(5),this.d&&E(4),this.ondata(K(t),this.d=n||!1)},t}();function K(n,r){if(G)return G.encode(n);for(var e=n.length,i=new t(n.length+(n.length>>1)),s=0,a=function(t){i[s++]=t},o=0;o<e;++o){if(s+5>i.length){var h=new t(s+8+(e-o<<1));h.set(i),i=h}var f=n.charCodeAt(o);f<128||r?a(f):f<2048?(a(192|f>>6),a(128|63&f)):f>55295&&f<57344?(a(240|(f=65536+(1047552&f)|1023&n.charCodeAt(++o))>>18),a(128|f>>12&63),a(128|f>>6&63),a(128|63&f)):(a(224|f>>12),a(128|f>>6&63),a(128|63&f))}return b(i,0,s)}const N=new class{constructor(){this._init()}clear(){this._init()}addEvent(t){if(!t)throw new Error("Adding invalid event");const n=this._hasEvents?",":"";this.stream.push(n+t),this._hasEvents=!0}finish(){this.stream.push("]",!0);const t=function(t){let n=0;for(const r of t)n+=r.length;const r=new Uint8Array(n);for(let n=0,e=0,i=t.length;n<i;n++){const i=t[n];r.set(i,e),e+=i.length}return r}(this._deflatedData);return this._init(),t}_init(){this._hasEvents=!1,this._deflatedData=[],this.deflate=new B,this.deflate.ondata=(t,n)=>{this._deflatedData.push(t)},this.stream=new J((t,n)=>{this.deflate.push(t,n)}),this.stream.push("[")}},P={clear:()=>{N.clear()},addEvent:t=>N.addEvent(t),finish:()=>N.finish(),compress:t=>function(t){return q(K(t))}(t)};addEventListener("message",function(t){const n=t.data.method,r=t.data.id,e=t.data.arg;if(n in P&&"function"==typeof P[n])try{const t=P[n](e);postMessage({id:r,method:n,success:!0,response:t})}catch(t){postMessage({id:r,method:n,success:!1,response:t.message}),console.error(t)}}),postMessage({id:void 0,method:"init",success:!0,response:void 0});`;
493function hb(){let e=new Blob([mb],{type:`text/javascript`});return URL.createObjectURL(e)}var gb=[`log`,`warn`,`error`],_b=`[Replay] `;function vb(e,t=`info`){As({category:`console`,data:{logger:`replay`},level:t,message:`${_b}${e}`},{level:t})}function yb(){let e=!1,t=!1,n={exception:()=>void 0,infoTick:()=>void 0,setConfig:n=>{e=!!n.captureExceptions,t=!!n.traceInternals}};return Q?(gb.forEach(e=>{n[e]=(...n)=>{x[e](_b,...n),t&&vb(n.join(``),ic(e))}}),n.exception=(r,...i)=>{i.length&&n.error&&n.error(...i),x.error(_b,r),e?Ea(r,{mechanism:{handled:!0,type:`auto.function.replay.debug`}}):t&&vb(r,`error`)},n.infoTick=(...e)=>{x.log(_b,...e),t&&setTimeout(()=>vb(e[0]),0)}):gb.forEach(e=>{n[e]=()=>void 0}),n}var $=yb(),bb=class extends Error{constructor(){super(`Event buffer exceeded maximum size of ${Sg}.`)}},xb=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>Sg)throw new bb;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:xy(e)}},Sb=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||(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(Error(`Worker destroyed`))),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++}},Cb=class{constructor(e){this._worker=new Sb(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=xy(e.timestamp);(!this._earliestTimestamp||t<this._earliestTimestamp)&&(this._earliestTimestamp=t);let n=JSON.stringify(e);return this._totalSize+=n.length,this._totalSize>Sg?Promise.reject(new bb):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}},wb=class{constructor(e){this._fallback=new xb,this._compression=new Cb(e),this._used=this._fallback,this._ensureWorkerIsLoadedProm
493ise=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){Q&&$.exception(e,`Failed to add events when switching buffers.`)}}};function Tb({useCompression:e,workerUrl:t}){if(e&&window.Worker){let e=Eb(t);if(e)return e}return Q&&$.log(`Using simple buffer`),new xb}function Eb(e){try{let t=e||Db();return t?(Q&&$.log(`Using compression worker${e?` from ${e}`:``}`),new wb(new Worker(t))):void 0}catch(e){Q&&$.exception(e,`Failed to create compression worker`)}}function Db(){return typeof __SENTRY_EXCLUDE_REPLAY_WORKER__>`u`||!__SENTRY_EXCLUDE_REPLAY_WORKER__?hb():``}function Ob(){try{return`sessionStorage`in G&&!!G.sessionStorage}catch{return!1}}function kb(e){Ab(),e.session=void 0}function Ab(){if(Ob())try{G.sessionStorage.removeItem(cg)}catch{}}function jb(e){return e!==void 0&&Math.random()<e}function Mb(e){if(Ob())try{G.sessionStorage.setItem(cg,JSON.stringify(e))}catch{}}function Nb(e){let t=Date.now();return{id:e.id||st(),started:e.started||t,lastActivity:e.lastActivity||t,segmentId:e.segmentId||0,sampled:e.sampled,previousSessionId:e.previousSessionId,dirty:e.dirty||!1}}function Pb(e,t){return jb(e)?`session`:t?`buffer`:!1}function Fb({sessionSampleRate:e,allowBuffering:t,stickySession:n=!1},{previousSessionId:r}={}){let i=Nb({sampled:Pb(e,t),previousSessionId:r});return n&&Mb(i),i}function Ib(){if(!Ob())return null;try{let e=G.sessionStorage.getItem(cg);if(!e)return null;let t=JSON.parse(e);return Q&&$.infoTick(`Loading existing session`),Nb(t)}catch{return null}}function Lb(e,t,n=+new Date){return e===null||t===void 0||t<0||t!==0&&e+t<=n}function Rb(e,{maxReplayDuration:t,sessionIdleExpire:n,targetTime:r=Date.now()}){return Lb(e.started,t,r)||Lb(e.lastActivity,n,r)}function zb(e,{sessionIdleExpire:t,maxReplayDuration:n}){return!(!Rb(e,{sessionIdleExpire:t,maxReplayDuration:n})||e.sampled===`buffer`&&e.segmentId===0)}function Bb({sessionIdleExpire:e,maxReplayDuration:t,previousSessionId:n},r){let i=r.stickySession&&Ib();return i?zb(i,{sessionIdleExpire:e,maxReplayDuration:t})?(Q&&$.infoTick(`Session in sessionStorage is expired, creating new one...`),Fb(r,{previousSessionId:i.id})):i:(Q&&$.infoTick(`Creating new session`),Fb(r,{previousSessionId:n}))}function Vb(e){return e.type===J.Custom}function Hb(e,t,n){return Gb(e,t)?(Wb(e,t,n),!0):!1}function Ub(e,t,n){return Gb(e,t)?Wb(e,t,n):Promise.resolve(null)}async function Wb(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=Kb(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 bb,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})}}
493function Gb(e,t){if(!e.eventBuffer||e.isPaused()||!e.isEnabled())return!1;let n=xy(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 Kb(e,t){try{if(typeof t==`function`&&Vb(e))return t(e)}catch(e){return Q&&$.exception(e,"An error occurred in the `beforeAddRecordingEvent` callback, skipping the event..."),null}return e}var qb=100;function Jb(e,t,n){let r=e.getContext();t&&r.traceIds.size<qb&&r.traceIds.add(t),n&&r.segmentNames.size<qb&&r.segmentNames.add(n)}function Yb(e){return t=>{e.isEnabled()&&Jb(e,t.trace_id,t.name||void 0)}}function Xb(e){return!e.type}function Zb(e){return e.type===`transaction`}function Qb(e){return e.type===`replay_event`}function $b(e){return e.type===`feedback`}function ex(e){return(t,n)=>{if(!e.isEnabled()||!Xb(t)&&!Zb(t))return;let r=n.statusCode;if(!(!r||r<200||r>=300)){if(Zb(t)){tx(e,t);return}nx(e,t)}}}function tx(e,t){Jb(e,t.contexts?.trace?.trace_id,t.transaction)}function nx(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)||Wm(async()=>{try{await e.sendBufferedReplayOrFlush()}catch(t){e.handleException(t)}})}function rx(e){return t=>{!e.isEnabled()||!Xb(t)||ix(e,t)}}function ix(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))&&Cy(e,Hy({category:`replay.hydrate-error`,data:{url:Kc()}}))}function ax(e){let t=N();t&&t.on(`beforeAddBreadcrumb`,t=>ox(e,t))}function ox(e,t){if(!e.isEnabled()||!lx(t))return;let n=sx(t);n&&Cy(e,n)}function sx(e){return!lx(e)||[`fetch`,`xhr`,`sentry.event`,`sentry.transaction`].includes(e.category)||e.category.startsWith(`ui.`)?null:e.category===`console`?cx(e):Hy(e)}function cx(e){let t=e.data?.arguments;if(!Array.isArray(t)||t.length===0)return Hy(e);let n=!1,r=t.map(e=>{if(!e)return e;if(typeof e==`string`)return e.length>yg?(n=!0,`${e.slice(0,yg)}\u2026`):e;if(typeof e==`object`)try{let t=Ke(e,7);return JSON.stringify(t).length>yg?(n=!0,`${JSON.stringify(t,null,2).slice(0,yg)}\u2026`):t}catch{}return e});return Hy({...e,data:{...e.data,arguments:r,...n?{_meta:{warnings:[`CONSOLE_ARG_TRUNCATED`]}}:{}}})}function lx(e){return!!e.category}function ux(e,t){return e.type||!e.exception?.values?.length?!1:!!t.originalException?.__rrweb__}function dx(){let e=j().getPropagationContext().dsc;e&&delete e.replay_id;let t=Cr();if(t){let e=Vr(t);delete e.replay_id}}function fx(e){let t=j().getPropagationContext().dsc;t&&(t.replay_id=e);let n=Cr();if(n){let t=Vr(n);t.replay_id=e}}function px(e,t){e.triggerUserActivity(),e.addUpdate(()=>t.timestamp?(e.throttledAddEvent({type:J.Custom,timestamp:t.timestamp*1e3,data:{tag:`breadcrumb`,payload:{timestamp:t.timestamp,type:`default`,category:`sentry.feedback`,data:{feedbackId:t.event_id}}}}),!1):!0)}function mx(e,t){return e.recordingMode!==`buffer`||t.message===ug||!t.exception||t.type?!1:jb(e.getOptions().errorSampleRate)}function hx(e){return Object.assign((t,n)=>{if(e.session&&zb(e.session,{maxReplayDuration:e.getOptions().maxReplayDuration,sessionIdleExpire:e.timeouts.sessionIdleExpire})&&dx(),!e.isEnabled()||e.isPaused())return t;if(Qb(t))return delete t.breadcrumbs,t;if(!Xb(t)&&!Zb(t)&&!$b(t))return t;if(!e.checkAndHandleExpiredSession())return dx(),t;if($b(t))return e.flush(),t.contexts.feedback.replay_id=e.getSessionId(),px(e,t),t;if(ux(t,n)&&!e.getOptions()._experiments.captureExceptions)return Q&&$.log(`Ignoring error from rrweb internals`,t),null;let r=mx(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&&Mb(t)}return t},{id:`Replay`})}function gx(e,t){return t.map(({type:t,start:n,end:r,name:i,data:a})=>{let o=e.throttledAddEvent({type:J.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 _x(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 vx(e){return t=>{if(!e.isEnabled())return;let n=_x(t);n!==null&&(e.getContext().urls.push(n.name),e.triggerUserActivity(),e.addUpdate(()=>(gx(e,[n]),!1)))}}function yx(e,t){return Q&&e.getOptions()._experiments.traceInternals?!1:ys(t,N())}function bx(e,t){e.isEnabled()&&t!==null&&(yx(e,t.name)||e.addUpdate(()=>(gx(e,[t]),!0)))}function xx(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=Xm(e);return t.encode(n).length}if(e instanceof Blob)return e.size;if(e instanceof ArrayBuffer)return e.byteLength}catch{}}function Sx(e){if(!e)return;let t=parseInt(e,10);return isNaN(t)?void 0:t}function Cx(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 wx(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 Tx(e){return{headers:{},size:e,_meta:{warnings:[`URL_SKIPPED`]}}}function Ex(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}=Ox(n);return r.body=i,a?.length&&(r._meta={warnings:a}),r}function Dx(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 Ox(e){if(!e||typeof e!=`string`)return{body:e};let t=e.length>vg,n=kx(e);if(t){let t=e.slice(0,vg);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 kx(e){let t=e[0],n=e[e.length-1];return t===`[`&&n===`]`||t===`{`&&n===`}`}function Ax(e,t){return rt(jx(e),t)}function jx(e,t=G.document.baseURI){if(e.startsWith(`http://`)||e.startsWith(`https://`)||e.startsWith(G.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}
493async function Mx(e,t,n){try{let r=wx(`resource.fetch`,await Px(e,t,n));bx(n.replay,r)}catch(e){Q&&$.exception(e,`Failed to capture fetch breadcrumb`)}}function Nx(e,t){let{input:n,response:r}=t,i=xx(n?Qm(n):void 0),a=r?Sx(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 Px(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=Ax(o,n.networkDetailAllowUrls)&&!Ax(o,n.networkDetailDenyUrls);return{startTimestamp:i,endTimestamp:a,url:o,method:s,statusCode:c,request:d?Fx(n,t.input,l):Tx(l),response:await Ix(d,n,t.response,u)}}function Fx({networkCaptureBodies:e,networkRequestHeaders:t},n,r){let i=n?Bx(n,t):{};if(!e)return Ex(i,r,void 0);let[a,o]=Zm(Qm(n),$),s=Ex(i,r,a);return o?Cx(s,o):s}async function Ix(e,{networkCaptureBodies:t,networkResponseHeaders:n},r,i){if(!e&&i!==void 0)return Tx(i);let a=r?zx(r.headers,n):{};if(!r||!t&&i!==void 0)return Ex(a,i,void 0);let[o,s]=await Rx(r),c=Lx(o,{networkCaptureBodies:t,responseBodySize:i,captureDetails:e,headers:a});return s?Cx(c,s):c}function Lx(e,{networkCaptureBodies:t,responseBodySize:n,captureDetails:r,headers:i}){try{let a=e?.length&&n===void 0?xx(e):n;return r?t?Ex(i,a,e):Ex(i,a,void 0):Tx(a)}catch(e){return Q&&$.exception(e,`Failed to serialize response body`),Ex(i,n,void 0)}}async function Rx(e){let t=Hx(e);if(!t)return[void 0,`BODY_PARSE_ERROR`];try{return[await Ux(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 zx(e,t){let n={};return t.forEach(t=>{e.get(t)&&(n[t]=e.get(t))}),n}function Bx(e,t){return e.length===1&&typeof e[0]!=`string`?Vx(e[0],t):e.length===2?Vx(e[1],t):{}}function Vx(e,t){if(!e)return{};let n=e.headers;return n?n instanceof Headers?zx(n,t):Array.isArray(n)?{}:Dx(n,t):{}}function Hx(e){try{return e.clone()}catch(e){Q&&$.exception(e,`Failed to clone response body`)}}function Ux(e){return new Promise((t,n)=>{let r=Wm(()=>n(Error(`Timeout while trying to read response body`)),500);Wx(e).then(e=>t(e),e=>n(e)).finally(()=>clearTimeout(r))})}async function Wx(e){return await e.text()}async function Gx(e,t,n){try{let r=wx(`resource.xhr`,qx(e,t,n));bx(n.replay,r)}catch(e){Q&&$.exception(e,`Failed to capture xhr breadcrumb`)}}function Kx(e,t){let{xhr:n,input:r}=t;if(!n)return;let i=xx(r),a=n.getResponseHeader(`content-length`)?Sx(n.getResponseHeader(`content-length`)):Xx(n.response,n.responseType);i!==void 0&&(e.data.request_body_size=i),a!==void 0&&(e.data.response_body_size=a)}function qx(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||!Ax(c,n.networkDetailAllowUrls)||Ax(c,n.networkDetailDenyUrls))return{startTimestamp:i,endTimestamp:a,url:c,method:l,statusCode:u,request:Tx(d),response:Tx(f)};let p=s[Gm],m=p?Dx(p.request_headers,n.networkRequestHeaders):{},h=Dx($m(s),n.networkResponseHeaders),[g,_]=n.networkCaptureBodies?Zm(o,$):[void 0],[v,y]=n.networkCaptureBodies?Jx(s):[void 0],b=Ex(m,d,g),x=Ex(h,f,v);return{startTimestamp:i,endTimestamp:a,url:c,method:l,statusCode:u,request:_?Cx(b,_):b,response:y?Cx(x,y):x}}function Jx(e){let t=[];try{return[e.responseText]}catch(e){t.push(e)}try{return Yx(e.response,e.responseType)}catch(e){t.push(e)}return Q&&$.warn(`Failed to get xhr response body`,...t),[void 0]}function Yx(e,t){try{if(typeof e==`string`)return[e];if(e instanceof Document)return[e.body.outerHTML];if(t===`json`&&Ce(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 Xx(e,t){try{return xx(t===`json`&&Ce(e)?JSON.stringify(e):e)}catch{return}}function Zx(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)=>Qx(s,e,t))}catch{}}
493function Qx(e,t,n){if(t.data)try{$x(t)&&tS(n)&&(Kx(t,n),Gx(t,n,e)),eS(t)&&nS(n)&&(Nx(t,n),Mx(t,n,e))}catch(e){Q&&$.exception(e,`Error when enriching network breadcrumb`)}}function $x(e){return e.category===`xhr`}function eS(e){return e.category===`fetch`}function tS(e){return e?.xhr}function nS(e){return e?.input!==void 0}function rS(e){let t=N();jm(Ky(e)),Rm(vx(e)),ax(e),Zx(e),Pa(hx(e)),t&&(t.on(`beforeSendEvent`,rx(e)),t.on(`afterSendEvent`,ex(e)),t.on(`createDsc`,t=>{let n=e.getSessionId();n&&e.isEnabled()&&e.recordingMode===`session`&&e.checkAndHandleExpiredSession()&&(t.replay_id=n)}),t.on(`processSegmentSpan`,Yb(e)),t.on(`spanStart`,t=>{e.lastActiveSpan=t}),t.on(`spanEnd`,t=>{e.lastActiveSpan=t}),t.on(`beforeSendFeedback`,async(t,n)=>{let r=e.getSessionId();n?.includeReplay&&e.isEnabled()&&r&&t.contexts?.feedback&&(t.contexts.feedback.source===`api`&&await e.sendBufferedReplayOrFlush(),t.contexts.feedback.replay_id=r)}),t.on(`openFeedbackWidget`,async()=>{await e.sendBufferedReplayOrFlush()}))}async function iS(e){try{return Promise.all(gx(e,[aS(G.performance.memory)]))}catch{return[]}}function aS(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 oS(e,t,n){return Vi(e,t,{...n,setTimeoutImpl:Wm})}var sS=i.navigator;function cS(){return/iPhone|iPad|iPod/i.test(sS?.userAgent??``)||/Macintosh/i.test(sS?.userAgent??``)&&sS?.maxTouchPoints&&sS?.maxTouchPoints>1?{sampling:{mousemove:!1}}:{}}function lS(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,uS(n),e.clickDetector&&zy(e.clickDetector,n),e.addUpdate(()=>{if(e.recordingMode===`buffer`&&i&&e.setInitialState(),!Hb(e,n,i))return!0;if(!i)return!1;let t=e.session;if(fS(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&&Mb(t))}return t?.previousSessionId||e.recordingMode===`session`&&e.flush(),!0})}catch(t){e.handleException(t)}}}function uS(e){let t=e.data;if(!(e.type!==J.IncrementalSnapshot||!t||typeof t!=`object`||!(`source`in t)||t.source!==Y.Mutation||!(`attributes`in t)||!Array.isArray(t.attributes)))for(let e of t.attributes){let t=hy.mirror.getNode(e.id),n=t&&hy.mirror.getMeta(t);if(n?.type===Uy.Element)for(let[t,r]of Object.entries(e.attributes))r===null?delete n.attributes[t]:n.attributes[t]=r}}function dS(e){let t=e.getOptions();return{type:J.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 fS(e,t){!t||e.session?.segmentId!==0||Hb(e,dS(e),!1)}function pS(e){if(!e)return null;try{return e.nodeType===e.ELEMENT_NODE?e:e.parentElement}catch{return null}}function mS(e,t,n,r){return Ur(ni(e,ti(e),r,n),[[{type:`replay_event`},e],[{type:`replay_recording`,length:typeof t==`string`?new TextEncoder().encode(t).length:t.length},t]])}function hS({recordingData:e,headers:t}){let n,r=`${JSON.stringify(t)}
494`;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 gS({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 ha(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 _S({recordingData:e,replayId:t,segmentId:n,eventContext:r,timestamp:i,session:a}){let o=hS({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 gS({scope:p,client:f,replayId:t,event:{type:lg,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 f.recordDroppedEvent(`event_processor`,`replay`),Q&&$.log("An event processor returned `null`, will not send event."),Promise.resolve({});delete g.sdkProcessingMetadata;let _=mS(g,o,h,f.getOptions().tunnel),v;try{v=await m.send(_)}catch(e){let t=Error(ug);try{t.cause=e}catch{}throw t}let y=Po({},v);if(No(y,`replay`))throw new yS(y);if(typeof v.statusCode==`number`&&(v.statusCode<200||v.statusCode>=300))throw new vS(v.statusCode);return v}
494var vS=class extends Error{constructor(e){super(`Transport returned status code ${e}`)}},yS=class extends Error{constructor(e){super(`Rate limit hit`),this.rateLimits=e}},bS=class extends Error{constructor(){super(`Session is too long, not sending replay`)}};async function xS(e,t={count:0,interval:gg}){let{recordingData:n,onError:r}=e;if(n.length)try{return await _S(e),!0}catch(n){if(n instanceof vS||n instanceof yS)throw n;if(ka(`Replays`,{_retryCount:t.count}),r&&r(n),t.count>=_g){let e=Error(`${ug} - max retries exceeded`);try{e.cause=n}catch{}throw e}return t.interval*=++t.count,new Promise((n,r)=>{Wm(async()=>{try{await xS(e,t),n(!0)}catch(e){r(e)}},t.interval)})}}var SS=`__THROTTLED`,CS=`__SKIPPED`;function wS(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?CS:SS}o=!1;let c=r.get(s)||0;return r.set(s,c+1),e(...n)}}var TS=class{constructor({options:e,recordingOptions:t}){this.eventBuffer=null,this.performanceEntries=[],this.replayPerformanceEntries=[],this.recordingMode=`session`,this.timeouts={sessionIdlePause:dg,sessionIdleExpire:fg},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=oS(()=>this._flush(),this._options.flushMinDelay,{maxWait:this._options.flushMaxDelay}),this._throttledAddEvent=wS((e,t)=>Ub(this,e,t),300,5);let{slowClickTimeout:n,slowClickIgnoreSelectors:r}=this.getOptions(),i=n?{threshold:Math.min(bg,n),timeout:n,scrollTimeout:xg,ignoreSelector:r?r.join(`,`):``}:void 0;if(i&&(this.clickDetector=new Py(this,i)),Q){let t=e._experiments;$.setConfig({captureExceptions:!!t.captureExceptions,traceInternals:!!t.traceInternals})}this._handleVisibilityChange=()=>{G.document.visibilityState===`visible`?this._doChangeToForegroundTasks():this._doChangeToBackgroundTasks()},this._handleWindowBlur=()=>{let e=Hy({category:`ui.blur`});this._doChangeToBackgroundTasks(e)},this._handleWindowFocus=()=>{let e=Hy({category:`ui.focus`});this._doChangeToForegroundTasks(e)},this._handleKeyboardEvent=e=>{Zy(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=Bb({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=Bb({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=hy({...this._recordingOptions,...this.recordingMode===`buffer`?{checkoutEveryNms:hg}:this._options._experiments.continuousCheckout&&{checkoutEveryNms:Math.max(36e4,this._options._experiments.continuousCheckout)},emit:lS(this),...cS(),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(),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}`),dx(),this._removeListeners(),this.stopRecording(),this._debouncedFlush.cancel(),e&&await this._flush({force:!0}),this.eventBuffer?.destroy(),this.eventBuffer=null,kb(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();
494Q&&$.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(),fx(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}checkAndHandleExpiredSession(){if(this._lastActivity&&Lb(this._lastActivity,this.timeouts.sessionIdlePause)&&this.session?.sampled===`session`){this.pause();return}return!!this._checkSession()}setInitialState(){let e=`${G.location.pathname}${G.location.hash}${G.location.search}`,t=`${G.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===SS){let e=Hy({category:`replay.throttled`});this.addUpdate(()=>!Hb(this,{type:by,timestamp:e.timestamp||0,data:{tag:`breadcrumb`,payload:e,metric:!0}}))}return n}getCurrentRoute(){let e=this.lastActiveSpan||Cr(),t=e&&xr(e),n=(t&&F(t).data||{})[an];if(!(!t||!n||![`route`,`custom`].includes(n)))return F(t).description}_initializeRecording(){this.setInitialState(),this._updateSessionActivity(),this.eventBuffer=Tb({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&&fx(this.session.id)}_initializeSessionForSampling(e){let t=this._options.errorSampleRate>0,n=Bb({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 zb(e,{sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration})?(this._refreshSession(e),!1):!0}async _refreshSession(e){this._isEnabled&&(await this.stop({reason:`sessionExpired`}),this.initializeSampling(e.id))}_addListeners(){try{G.document.addEventListener(`visibilitychange`,this._handleVisibilityChange),G.addEventListener(`blur`,this._handleWindowBlur),G.addEventListener(`focus`,this._handleWindowFocus),G.addEventListener(`keydown`,this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.addListeners(),this._hasInitializedCoreListeners||(rS(this),this._hasInitializedCoreListeners=!0)}catch(e){this.handleException(e)}this._performanceCleanupCallback=pb(this)}_removeListeners(){try{G.document.removeEventListener(`visibilitychange`,this._handleVisibilityChange),G.removeEventListener(`blur`,this._handleWindowBlur),G.removeEventListener(`focus`,this._handleWindowFocus),G.removeEventListener(`keydown`,this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.removeListeners(),this._performanceCleanupCallback&&this._performanceCleanupCallback()}catch(e){this.handleException(e)}}_doChangeToBackgroundTasks(e){if(this.session){if(zb(this.session,{maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire})){dx();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:J.Custom,timestamp:e.timestamp||0,data:{tag:`breadcrumb`,payload:e}})})}_addPerformanceEntries(){let e=nb(this.performanceEntries).concat(this.replayPerformanceEntries);if(this.performanceEntries=[],this.replayPerformanceEntries=[],this._requiresManualStart){let t=this._context.
494initialTimestamp/1e3;e=e.filter(e=>e.start>=t)}return Promise.all(gx(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();n&&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 iS(this),this.eventBuffer&&e===this.getSessionId()))try{this._updateInitialTimestampFromEventBuffer();let t=Date.now();if(t-this._context.initialTimestamp>this._options.maxReplayDuration+3e4)throw new bS;let n=this._popEventContext(),r=this.session.segmentId++;this._maybeSaveSession(),await xS({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 yS?`ratelimit_backoff`:e instanceof bS?`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._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&&Mb(this.session)}_onMutationHandler(e){let{ignoreMutations:t}=this._options._experiments;if(t?.length&&e.some(e=>{let n=pS(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=Hy({category:`replay.mutations`,data:{count:n,limit:a}});this._createCustomBreadcrumb(e)}return a?(this.stop({reason:`mutationLimit`,forceFlush:this.recordingMode===`session`}),!1):!0}};function ES(e,t){return[...e,...t].join(`,`)}function DS({mask:e,unmask:t,block:n,unblock:r,ignore:i}){return{maskTextSelector:ES(e,[`.sentry-mask`,`[data-sentry-mask]`]),unmaskTextSelector:ES(t,[]),blockSelector:ES(n,[`.sentry-block`,`[data-sentry-block]`,`base`,`iframe[srcdoc]:not([src])`]),unblockSelector:ES(r,[]),ignoreSelector:ES(i,[`.sentry-ignore`,`[data-sentry-ignore]`,`input[type="file"]`])}}function OS({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 kS=`img,image,svg,video,object,picture,embed,map,audio,link[rel="icon"],link[rel="apple-touch-icon"]`,AS=[`content-length`,`content-type`,`accept`],jS=Symbol.for(`sentry__originalRequestBody`),MS=!1,NS=!1;function PS(){if(typeof Request>`u`||NS)return;let e=Request;try{let t=function(t,n){let r=new e(t,n);return n?.body!=null&&(r[jS]=n.body),r};t.prototype=e.prototype,i.Request=t,NS=!0}catch{}}var FS=(e=>new IS(e)),IS=class{constructor({flushMinDelay:e=pg,flushMaxDelay:t=mg,minReplayDuration:n=Cg,maxReplayDuration:r=Tg,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:ee,beforeAddRecordingEvent:te,beforeErrorSampling:ne,onError:re,attachRawBodyFromRequest:E=!1}={}){this.name=`Replay`;let ie=DS({mask:b,unmask:S,block:C,unblock:w,ignore:T});if(this._recordingOptions={maskAllInputs:l,maskAllText:c,maskInputOptions:{password:!0},maskTextFn:ee,maskInputFn:ee,maskAttributeFn:(e,t,n)=>OS({maskAttributes:x,maskAllText:c,privacyOptions:ie,key:e,value:t,el:n}),...ie,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,wg),maxReplayDuration:Math.min(r,Tg),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:RS(v),networkResponseHeaders:RS(y),beforeAddRecordingEvent:te,beforeErrorSampling:ne,onError:re,attachRawBodyFromRequest:E,_experiments:s},this._initialOptions.blockAllMedia&&(this._recordingOptions.blockSelector=this._recordingOptions.blockSelector?`${this._recordingOptions.blockSelector},${kS}`:kS,this._recordingOptions.ignoreCSSAttributes=new Set([`background-image`])),this._isInitialized&&so())throw Error(`Multiple Sentry Session Replay instances are not supported`);this._isInitialized=!0}get _isInitialized(){return MS}set _isInitialized(e){MS=e}afterAllSetup(e){!so()||this._replay||(this._initialOptions.attachRawBodyFromRequest&&PS(),this._setup(e),this._initialize(e))}start(){this._replay&&this._replay.start()}
494startBuffering(){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&&(ta(e,{"sentry.replay_id":t}),this.getRecordingMode()===`buffer`&&ta(e,{"sentry._internal.replay_is_buffering":!0}))}_initialize(e){this._replay&&(this._maybeLoadFromReplayCanvasIntegration(e),this._replay.initializeSampling())}_setup(e){let t=LS(this._initialOptions,e);this._replay=new TS({options:t,recordingOptions:this._recordingOptions})}_maybeLoadFromReplayCanvasIntegration(e){try{let t=e.getIntegrationByName(`ReplayCanvas`);if(!t)return;this._replay._canvas=t.getOptions()}catch{}}};function LS(e,t){let n=t.getOptions(),r={sessionSampleRate:0,errorSampleRate:0,...e},i=Gn(n.replaysSessionSampleRate),a=Gn(n.replaysOnErrorSampleRate);return i==null&&a==null&&f(()=>{console.warn("Replay is disabled because neither `replaysSessionSampleRate` nor `replaysOnErrorSampleRate` are set.")}),i!=null&&(r.sessionSampleRate=i),a!=null&&(r.errorSampleRate=a),r}function RS(e){return[...AS,...e.map(e=>e.toLowerCase())]}function zS(e){return e.split(`,`).some(e=>e.trim().startsWith(`sentry-`))}function BS(e){try{return new URL(e,V.location.origin).href}catch{return}}function VS(e){return e.entryType===`resource`&&`initiatorType`in e&&typeof e.nextHopProtocol==`string`&&(e.initiatorType===`fetch`||e.initiatorType===`xmlhttprequest`)}function HS(e){try{return new Headers(e)}catch{return}}var US={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0,trackFetchStreamPerformance:!1};function WS(e,t){let{traceFetch:n,traceXHR:r,shouldCreateSpanForRequest:i,enableHTTPTimings:a,tracePropagationTargets:o,onRequestSpanStart:s,onRequestSpanEnd:c}
494={...US,...t},l=typeof i==`function`?i:e=>!0,u=e=>qS(e,o),d={},f=e.getOptions().propagateTraceparent;n&&Ic(t=>{let n=hc(t,l,u,d,{propagateTraceparent:f,onRequestSpanEnd:c});if(n){let r=BS(t.fetchData.url),i=r?gs(r).host:void 0,o=r?vs(r):void 0;n.setAttributes({[Zi]:o,[ea]:o,"server.address":i}),a&&KS(n,e),s?.(n,{headers:t.headers})}}),r&&Km(t=>{let n=JS(t,l,u,d,f,c);n&&(a&&KS(n,e),s?.(n,{headers:HS(t.xhr.__sentry_xhr_v3__?.request_headers)}))})}var GS=300;function KS(e,t){let{url:n}=F(e).data;if(!n||typeof n!=`string`)return;let r=()=>void setTimeout(i);if(fi(t)){let t=e.end.bind(e);e.end=e=>{let n=e??A(),a=!1,o=()=>{a||(a=!0,setTimeout(i),t(n),clearTimeout(s))};r=o;let s=setTimeout(o,GS)}}let i=op(`resource`,({entries:t})=>{t.forEach(t=>{VS(t)&&t.name.endsWith(n)&&(e.setAttributes(Fp(t)),r())})})}function qS(e,t){let n=Kc();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?rt(r.toString(),t)||a&&rt(r.pathname,t):a}else{let n=!!e.match(/^\/(?!\/)/);return t?rt(e,t):n}}function JS(e,t,n,r,i,a){let o=e.xhr,s=o?.[Gm];if(!o||o.__sentry_own_request__||!s)return;let{url:c,method:l}=s,u=Dr()&&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&&(vn(n,s.status_code),n.end(),a?.(n,{headers:HS($m(o)),error:e.error})),delete r[t]);return}let d=BS(c),f=gs(d||c),p=d?vs(d):void 0,m=vs(_s(c)),h=N(),g=!!Cr(),_=g||!!h&&fi(h),v=u&&_?xi({name:`${l} ${m}`,attributes:{url:vs(c),type:`xhr`,"http.method":l,"http.url":p,[ea]:p,"server.address":f?.host,[P]:`auto.http.browser`,[cn]:`http.client`,...f?.search&&{"http.query":f?.search},...f?.hash&&{"http.fragment":f?.hash}}}):new Pr,y=Ni(v)&&g?void 0:v;return u&&!_&&h?.recordDroppedEvent(`no_parent_span`,`span`),o.__sentry_xhr_span_id__=v.spanContext().spanId,r[o.__sentry_xhr_span_id__]=v,n(c)&&YS(o,Dr()&&_?y:void 0,i),h&&h.emit(`beforeOutgoingRequestSpan`,v,e),v}function YS(e,t,n){let{"sentry-trace":r,baggage:i,traceparent:a}=Es({span:t,propagateTraceparent:n});r&&XS(e,r,i,a)}function XS(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||!zS(t))&&e.setRequestHeader(`baggage`,n)}}catch{}}var ZS=new WeakMap,QS=new WeakMap,$S=9e4,eC=[`text/event-stream`,`application/x-ndjson`,`application/stream+json`],tC=Qa(()=>({name:`FetchStreamPerformance`,setup(){Lc(e=>{if(e.response){let t=ZS.get(e.response);if(t&&e.endTimestamp){t.end(e.endTimestamp);let n=QS.get(e.response);n&&clearTimeout(n)}}}),Ic(e=>{if(e.endTimestamp&&e.response){let t=e.response.headers?.get(`content-type`)||``;if(e.response.headers?.get(`content-length`)||!eC.some(e=>t.startsWith(e)))return;let n=e.fetchData?.url||``,r=e.fetchData?.method||`GET`,i=ms(n),a=xi({name:`${r} ${n.startsWith(`data:`)?vs(n):i?hs(i):n}`,startTime:e.endTimestamp,attributes:{url:vs(n),"http.method":r,type:`fetch`,[cn]:`http.client.stream`,[P]:`auto.http.browser.stream`}});ZS.set(e.response,a);let o=setTimeout(()=>{a.isRecording()&&a.end()},$S);QS.set(e.response,o)}})}})),nC=`WebVitals`,rC=Qa((e={})=>{let t=new Set(e.ignore??[]);return{name:nC,setup(n){let r=fi(n),{enableStandaloneClsSpans:i,enableStandaloneLcpSpans:a}=e._experiments??{},o=r||t.has(`cls`)?void 0:i||!1,s=r||t.has(`lcp`)?void 0:a||!1,c=Hp({recordClsStandaloneSpans:o,recordLcpStandaloneSpans:s,client:n}),l=new WeakSet;n.on(`afterStartPageLoadSpan`,e=>{l.add(e)}),n.on(`spanEnd`,e=>{l.delete(e)&&(c(),Zp(e,{recordClsOnPageloadSpan:o===!1,recordLcpOnPageloadSpan:s===!1,spanStreamingEnabled:r}))}),r?(t.has(`lcp`)||xm(n),t.has(`cls`)||Cm(n),t.has(`inp`)||Tm()):t.has(`inp`)||mm()},afterAllSetup(){t.has(`inp`)||ym()}}});function iC(){V.document?V.document.addEventListener(`visibilitychange`,()=>{let e=Cr();if(!e)return;let t=xr(e);if(V.document.hidden&&t){let e=`cancelled`,{op:n,status:r}=F(t);rh&&x.log(`[Tracing] Transaction: ${e} -> since tab moved to the background, op: ${n}`),r||t.setStatus({code:2,message:e}),t.setAttribute(`sentry.cancellation_reason`,`document.hidden`),t.end()}}):rh&&x.warn(`[Tracing] Could not set up background tab detection due to lack of global document`)}var aC=`sentry_previous_trace`,oC=`sentry.previous_trace`;function sC(e,{linkPreviousTrace:t,consistentTraceSampling:n}){let r=t===`session-storage`,i=r?uC():void 0;e.on(`spanStart`,e=>{if(xr(e)!==e)return;let t=j().getPropagationContext();i=cC(i,e,t),r&&lC(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(dC(i.spanContext))},sampleRand:i.sampleRand}),e.parentSampled=dC(i.spanContext),e.parentSampleRate=i.sampleRate,e.spanAttributes={...e.spanAttributes,[sn]:i.sampleRate}})}function cC(e,t,n){let r=F(t);function i(){try{let e=Number(r.data?.[`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&&(rh&&x.log(`Adding previous_trace \`${JSON.stringify(o)}\` link to span \`${JSON.stringify({op:r.op,...t.spanContext()})}\``),t.addLink({context:o,attributes:{[hn]:`previous_trace`}}),t.setAttribute(oC,`${o.traceId}-${o.spanId}-${+!!dC(o)}`)),a)}function lC(e){try{V.sessionStorage.setItem(aC,JSON.stringify(e))}catch(e){rh&&x.warn(`Could not store previous trace in sessionStorage`,e)}}function uC(){try{let e=V.sessionStorage?.getItem(aC);return JSON.parse(e)}catch{return}}function dC(e){return e.traceFlags===1}var fC=`BrowserTracing`,pC=/Googlebot|Google-InspectionTool|Storebot-Google|Bingbot|Slurp|DuckDuckBot|Baiduspider|YandexBot|Facebot|facebookexternalhit|LinkedInBot|Twitterbot|Applebot/i;function mC(){let e=V.navigator;return e?.userAgent?pC.test(e.userAgent):!1}var hC={...Pi,instrumentNavigation:!0,instrumentPageLoad:!0,markBackgroun
494dSpan:!0,enableLongTask:!0,enableLongAnimationFrame:!0,enableInp:!0,ignoreResourceSpans:[],ignorePerformanceApiSpans:[],detectRedirects:!0,linkPreviousTrace:`in-memory`,consistentTraceSampling:!1,enableReportPageLoaded:!1,_experiments:{},...US},gC=((e={})=>{`enableElementTiming`in e&&f(()=>{console.warn("[Sentry] `enableElementTiming` is deprecated and no longer has any effect. Use the standalone `elementTimingIntegration` instead.")});let t={name:void 0,source:void 0},n=V.document,{enableInp:r,enableLongTask:a,enableLongAnimationFrame:o,_experiments:{enableInteractions:s,enableStandaloneClsSpans:c,enableStandaloneLcpSpans:l},beforeStartSpan:u,idleTimeout:d,finalTimeout:p,childSpanTimeout:m,markBackgroundSpan:h,traceFetch:g,traceXHR:_,trackFetchStreamPerformance:v,shouldCreateSpanForRequest:y,enableHTTPTimings:b,ignoreResourceSpans:S,ignorePerformanceApiSpans:C,instrumentPageLoad:w,instrumentNavigation:T,detectRedirects:ee,linkPreviousTrace:te,consistentTraceSampling:ne,enableReportPageLoaded:re,onRequestSpanStart:E,onRequestSpanEnd:ie}={...hC,...e},D=mC(),ae,O;function oe(e,r,i=!0,a){let o=r.op===`pageload`,s=r.name,c=u?u(r):r,l=ms(a||Kc()),f={...l?.pathname&&{"url.path":l.pathname},...l&&!ps(l)&&{"url.full":l.href},...c.attributes};if(s!==c.name&&(f[an]=`custom`),c.attributes=f,!i){let e=ht();xi({...c,startTime:e}).end(e);return}t.name=c.name,t.source=f[an];let h=zi(c,{idleTimeout:d,finalTimeout:p,childSpanTimeout:m,disableAutoFinish:o,beforeSpanEnd:t=>{Xp(t,{ignoreResourceSpans:S,ignorePerformanceApiSpans:C,spanStreamingEnabled:fi(e)}),wC(e,void 0);let n=j(),r=n.getPropagationContext();n.setPropagationContext({...r,traceId:h.spanContext().traceId,sampled:fr(h),dsc:Vr(t)}),o&&(O=void 0)},trimIdleSpanEndTimestamp:!re});o&&re&&(O=h),wC(e,h);function g(){n&&[`interactive`,`complete`].includes(n.readyState)&&(e.emit(`idleSpanEnableAutoFinish`,h),n.removeEventListener(`readystatechange`,g))}o&&!re&&n&&(n.addEventListener(`readystatechange`,g),g())}return{name:fC,setup(e){if(D){rh&&x.log(`[Tracing] Skipping browserTracingIntegration setup for bot user agent.`);return}if(Er(),o&&i.PerformanceObserver&&PerformanceObserver.supportedEntryTypes?.includes(`long-animation-frame`)?Wp():a&&Up(),s&&Gp(),ee&&n){let e=()=>{ae=A()};addEventListener(`click`,e,{capture:!0}),addEventListener(`keydown`,e,{capture:!0,passive:!0})}function t(){let t=CC(e);t&&!F(t).timestamp&&(rh&&x.log(`[Tracing] Finishing current active span with op: ${F(t).op}`),t.setAttribute(ln,`cancelled`),t.end())}e.on(`startNavigationSpan`,(n,r)=>{if(N()!==e)return;if(r?.isRedirect){rh&&x.warn(`[Tracing] Detected redirect, navigation span will not be the root span, but a child span.`),oe(e,{op:`navigation.redirect`,...n},!1,r.url);return}ae=void 0,t(),M().setPropagationContext({traceId:Et(),sampleRand:Math.random(),propagationSpanId:Dr()?void 0:Dt()});let i=j();i.setPropagationContext({traceId:Et(),sampleRand:Math.random(),propagationSpanId:Dr()?void 0:Dt()}),i.setSDKProcessingMetadata({normalizedRequest:void 0}),oe(e,{op:`navigation`,...n,parentSpan:null,forceTransaction:!0},!0,r?.url)}),e.on(`startPageLoadSpan`,(n,r={})=>{if(N()!==e)return;t();let i=Jn(r.sentryTrace||yC(`sentry-trace`)||bC(`sentry-trace`),r.baggage||yC(`baggage`)||bC(`baggage`)),a=j();a.setPropagationContext(i),Dr()||(a.getPropagationContext().propagationSpanId=Dt()),a.setSDKProcessingMetadata({normalizedRequest:Id()}),oe(e,{op:`pageload`,...n})}),e.on(`endPageloadSpan`,()=>{re&&O&&(O.setAttribute(ln,`reportPageLoaded`),O.end())})},afterAllSetup(e){if(D)return;e.addIntegration&&!e.getIntegrationByName?.(`WebVitals`)&&e.addIntegration(rC({ignore:r?[]:[`inp`],_experiments:{enableStandaloneClsSpans:c,enableStandaloneLcpSpans:l}}));let n=Kc();if(te!==`off`&&sC(e,{linkPreviousTrace:te,consistentTraceSampling:ne}),V.location){if(w){let t=bt();_C(e,{name:V.location.pathname,startTime:t?t/1e3:void 0,attributes:{[an]:`url`,[P]:`auto.pageload.browser`}})}T&&Rm(({to:t,from:r})=>{if(r===void 0&&n?.indexOf(t)!==-1){n=void 0;return}n=void 0;let i=ms(t),a=CC(e),o=a&&ee&&EC(a,ae);vC(e,{name:i?.pathname||V.location.pathname,attributes:{[an]:`url`,[P]:`auto.navigation.browser`}},{url:t,isRedirect:o})})}h&&iC(),s&&xC(e,d,p,m,t),WS(e,{traceFetch:g,traceXHR:_,tracePropagationTargets:e.getOptions().tracePropagationTargets,shouldCreateSpanForRequest:y,enableHTTPTimings:b,onRequestSpanStart:E,onRequestSpanEnd:ie}),v&&e.addIntegration(tC())}}});function _C(e,t,n){e.emit(`startPageLoadSpan`,t,n),j().setTransactionName(t.name);let r=CC(e);return r&&e.emit(`afterStartPageLoadSpan`,r),r}function vC(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();return a.setTransactionName(t.name),r&&!i&&a.setSDKProcessingMetadata({normalizedRequest:{...Id(),url:r}}),CC(e)}function yC(e){return(V.document?.querySelector(`meta[name=${e}]`))?.getAttribute(`content`)||void 0}function bC(e){return(V.performance?.getEntriesByType?.(`navigation`)[0])?.serverTiming?.find(t=>t.name===e)?.description}function xC(e,t,n,r,i){let a=V.document,o;a&&addEventListener(`click`,()=>{let a=`ui.action.click`,s=CC(e);if(s){let e=F(s).op;if([`navigation`,`pageload`].includes(e)){rh&&x.warn(`[Tracing] Did not create ${a} span because a pageload or navigation span is in progress.`);return}}if(o&&(o.setAttribute(ln,`interactionInterrupted`),o.end(),o=void 0),!i.name){rh&&x.warn(`[Tracing] Did not create ${a} transaction because _latestRouteName is missing.`);return}o=zi({name:i.name,op:a,attributes:{[an]:i.source||`url`}},{idleTimeout:t,finalTimeout:n,childSpanTimeout:r})},{capture:!0})}var SC=`_sentry_idleSpan`;function CC(e){return e[SC]}function wC(e,t){Ae(e,SC,t)}var TC=1.5;function EC(e,t){let n=F(e),r=ht();return!(r-n.start_timestamp>TC||t&&r-t<=TC)}var DC=t(n());function OC(e){return Se(e)&&`nativeEvent`in e&&`preventDefault`in e&&`stopPropagation`in e}function kC(e){let t={...e};Ts(t,`react`),ka(`react`,{version:DC.version});let n=og(t);return Ge(AC),n}function AC(e){return OC(e)?`[SyntheticEvent]`:tg(e)}export{Ld as a,Ea as c,ja as d,sg as i,Da as l,gC as n,Vl as o,FS as r,Tc as s,kC as t,Aa as u};

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.