PageSourceSearch

https://getvoltr.com/app/assets/sentry-BpPna16O.js

js getvoltr.com collected 2026-10-02 05:04:26 UTC 360,255 bytes, 487 lines download raw bytes

1import{r as Ie,g as Jf}from"./react-BJCrwb27.js";const P=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,At="8.55.2",L=globalThis;function _r(e,t,n){const r=n||L,s=r.__SENTRY__=r.__SENTRY__||{},o=s[At]=s[At]||{};return o[e]||(o[e]=t())}const Wt=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,Zf="Sentry Logger ",ys=["debug","info","warn","error","log","assert","trace"],Ss={};function St(e){if(!("console"in L))return e();const t=L.console,n={},r=Object.keys(Ss);r.forEach(s=>{const o=Ss[s];n[s]=t[s],t[s]=o});try{return e()}finally{r.forEach(s=>{t[s]=n[s]})}}function Qf(){let e=!1;const t={enable:()=>{e=!0},disable:()=>{e=!1},isEnabled:()=>e};return Wt?ys.forEach(n=>{t[n]=(...r)=>{e&&St(()=>{L.console[n](`${Zf}[${n}]:`,...r)})}}):ys.forEach(n=>{t[n]=()=>{}}),t}const S=_r("logger",Qf),Du=50,tt="?",ka=/\(error: (.*)\)/,Ca=/captureMessage|captureException/;function Pu(...e){const t=e.sort((n,r)=>n[0]-r[0]).map(n=>n[1]);return(n,r=0,s=0)=>{const o=[],i=n.split(`
2`);for(let a=r;a<i.length;a++){const c=i[a];if(c.length>1024)continue;const u=ka.test(c)?c.replace(ka,"$1"):c;if(!u.match(/\S*Error: /)){for(const d of t){const l=d(u);if(l){o.push(l);break}}if(o.length>=Du+s)break}}return tp(o.slice(s))}}function ep(e){return Array.isArray(e)?Pu(...e):e}function tp(e){if(!e.length)return[];const t=Array.from(e);return/sentryWrapped/.test(Fr(t).function||"")&&t.pop(),t.reverse(),Ca.test(Fr(t).function||"")&&(t.pop(),Ca.test(Fr(t).function||"")&&t.pop()),t.slice(0,Du).map(n=>({...n,filename:n.filename||Fr(t).filename,function:n.function||tt}))}function Fr(e){return e[e.length-1]||{}}const fo="<anonymous>";function ft(e){try{return!e||typeof e!="function"?fo:e.name||fo}catch{return fo}}function $o(e){const t=e.exception;if(t){const n=[];try{return t.values.forEach(r=>{r.stacktrace.frames&&n.push(...r.stacktrace.frames)}),n}catch{return}}}const ns={},xa={};function zt(e,t){ns[e]=ns[e]||[],ns[e].push(t)}function jt(e,t){if(!xa[e]){xa[e]=!0;try{t()}catch(n){Wt&&S.error(`Error while instrumenting ${e}`,n)}}}function We(e,t){const n=e&&ns[e];if(n)for(const r of n)try{r(t)}catch(s){Wt&&S.error(`Error while triggering instrumentation handler.
3Type: ${e}
4Name: ${ft(r)}
5Error:`,s)}}let po=null;function Lu(e){const t="error";zt(t,e),jt(t,np)}function np(){po=L.onerror,L.onerror=function(e,t,n,r,s){return We("error",{column:r,error:s,line:n,msg:e,url:t}),po?po.apply(this,arguments):!1},L.onerror.__SENTRY_INSTRUMENTED__=!0}let ho=null;function Fu(e){const t="unhandledrejection";zt(t,e),jt(t,rp)}function rp(){ho=L.onunhandledrejection,L.onunhandledrejection=function(e){return We("unhandledrejection",e),ho?ho.apply(this,arguments):!0},L.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}function bt(){return Ti(L),L}function Ti(e){const t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||At,t[At]=t[At]||{}}const $u=Object.prototype.toString;function ut(e){switch($u.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return pt(e,Error)}}function Gn(e,t){return $u.call(e)===`[object ${t}]`}function Uu(e){return Gn(e,"ErrorEvent")}function Ra(e){return Gn(e,"DOMError")}function sp(e){return Gn(e,"DOMException")}function lt(e){return Gn(e,"String")}function ki(e){return typeof e=="object"&&e!==null&&"__sentry_template_string__"in e&&"__sentry_template_values__"in e}function Ci(e){return e===null||ki(e)||typeof e!="object"&&typeof e!="function"}function an(e){return Gn(e,"Object")}function Ws(e){return typeof Event<"u"&&pt(e,Event)}function op(e){return typeof Element<"u"&&pt(e,Element)}function ip(e){return Gn(e,"RegExp")}function yr(e){return!!(e&&e.then&&typeof e.then=="function")}function ap(e){return an(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}function pt(e,t){try{return e instanceof t}catch{return!1}}function Bu(e){return!!(typeof e=="object"&&e!==null&&(e.__isVue||e._isVue))}const xn=L,cp=80;function ht(e,t={}){if(!e)return"<unknown>";try{let n=e;const r=5,s=[];let o=0,i=0;const a=" > ",c=a.length;let u;const d=Array.isArray(t)?t:t.keyAttrs,l=!Array.isArray(t)&&t.maxStringLength||cp;for(;n&&o++<r&&(u=up(n,d),!(u==="html"||o>1&&i+s.length*c+u.length>=l));)s.push(u),i+=u.length,n=n.parentNode;return s.reverse().join(a)}catch{return"<unknown>"}}function up(e,t){const n=e,r=[];if(!n||!n.tagName)return"";if(xn.HTMLElement&&n instanceof HTMLElement&&n.dataset){if(n.dataset.sentryComponent)return n.dataset.sentryComponent;if(n.dataset.sentryElement)return n.dataset.sentryElement}r.push(n.tagName.toLowerCase());const s=t&&t.length?t.filter(i=>n.getAttribute(i)).map(i=>[i,n.getAttribute(i)]):null;if(s&&s.length)s.forEach(i=>
5{r.push(`[${i[0]}="${i[1]}"]`)});else{n.id&&r.push(`#${n.id}`);const i=n.className;if(i&&lt(i)){const a=i.split(/\s+/);for(const c of a)r.push(`.${c}`)}}const o=["aria-label","type","name","title","alt"];for(const i of o){const a=n.getAttribute(i);a&&r.push(`[${i}="${a}"]`)}return r.join("")}function xi(){try{return xn.document.location.href}catch{return""}}function lp(e){return xn.document&&xn.document.querySelector?xn.document.querySelector(e):null}function Hu(e){if(!xn.HTMLElement)return null;let t=e;const n=5;for(let r=0;r<n;r++){if(!t)return null;if(t instanceof HTMLElement){if(t.dataset.sentryComponent)return t.dataset.sentryComponent;if(t.dataset.sentryElement)return t.dataset.sentryElement}t=t.parentNode}return null}function Ot(e,t=0){return typeof e!="string"||t===0||e.length<=t?e:`${e.slice(0,t)}...`}function mo(e,t){let n=e;const r=n.length;if(r<=150)return n;t>r&&(t=r);let s=Math.max(t-60,0);s<5&&(s=0);let o=Math.min(s+140,r);return o>r-5&&(o=r),o===r&&(s=Math.max(o-140,0)),n=n.slice(s,o),s>0&&(n=`'{snip} ${n}`),o<r&&(n+=" {snip}"),n}function bs(e,t){if(!Array.isArray(e))return"";const n=[];for(let r=0;r<e.length;r++){const s=e[r];try{Bu(s)?n.push("[VueViewModel]"):n.push(String(s))}catch{n.push("[value cannot be serialized]")}}return n.join(t)}function dp(e,t,n=!1){return lt(e)?ip(t)?t.test(e):lt(t)?n?e===t:e.includes(t):!1:!1}function Nt(e,t=[],n=!1){return t.some(r=>dp(e,r,n))}function Re(e,t,n){if(!(t in e))return;const r=e[t],s=n(r);typeof s=="function"&&Wu(s,r);try{e[t]=s}catch{Wt&&S.log(`Failed to replace method "${t}" in object`,e)}}function De(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch{Wt&&S.log(`Failed to add non-enumerable property "${t}" to object`,e)}}function Wu(e,t){try{const n=t.prototype||{};e.prototype=t.prototype=n,De(e,"__sentry_original__",t)}catch{}}function Ri(e){return e.__sentry_original__}function zu(e){if(ut(e))return{message:e.message,name:e.name,stack:e.stack,...Aa(e)};if(Ws(e)){const t={type:e.type,target:Ma(e.target),currentTarget:Ma(e.currentTarget),...Aa(e)};return typeof CustomEvent<"u"&&pt(e,CustomEvent)&&(t.detail=e.detail),t}else return e}function Ma(e){try{return op(e)?ht(e):Object.prototype.toString.call(e)}catch{return"<unknown>"}}function Aa(e){if(typeof e=="object"&&e!==null){const t={};for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}else return{}}function fp(e,t=40){const n=Object.keys(zu(e));n.sort();const r=n[0];if(!r)return"[object has no keys]";if(r.length>=t)return Ot(r,t);for(let s=n.length;s>0;s--){const o=n.slice(0,s).join(", ");if(!(o.length>t))return s===n.length?o:Ot(o,t)}return""}function _e(e){return Uo(e,new Map)}function Uo(e,t){if(pp(e)){const n=t.get(e);if(n!==void 0)return n;const r={};t.set(e,r);for(const s of Object.getOwnPropertyNames(e))typeof e[s]<"u"&&(r[s]=Uo(e[s],t));return r}if(Array.isArray(e)){const n=t.get(e);if(n!==void 0)return n;const r=[];return t.set(e,r),e.forEach(s=>{r.push(Uo(s,t))}),r}return e}function pp(e){if(!an(e))return!1;try{const t=Object.getPrototypeOf(e).constructor.name;return!t||t==="Object"}catch{return!0}}const ju=1e3;function Sr(){return Date.now()/ju}function hp(){const{performance:e}=L;if(!e||!e.now)return Sr;const t=Date.now()-e.now(),n=e.timeOrigin==null?t:e.timeOrigin;return()=>(n+e.now())/ju}const ae=hp(),Te=(()=>{const{performance:e}=L;if(!e||!e.now)return;const t=3600*1e3,n=e.now(),r=Date.now(),s=e.timeOrigin?Math.abs(e.timeOrigin+n-r):t,o=s<t,i=e.timing&&e.timing.navigationStart,c=typeof i=="number"?Math.abs(i+n-r):t,u=c<t;return o||u?s<=c?e.timeOrigin:i:r})();function Me(){const e=L,t=e.crypto||e.msCrypto;let n=()=>Math.random()*16;try{if(t&&t.randomUUID)return t.randomUUID().replace(/-/g,"");t&&t.getRandomValues&&(n=()=>{const r=new Uint8Array(1);return t.getRandomValues(r),r[0]})}catch{}return("10000000100040008000"+1e11).replace(/[018]/g,r=>(r^(n()&15)>>r/4).toString(16))}function qu(e){return e.exception&&e.exception.values?e.exception.values[0]:void 0}function It(e){const{message:t,event_id:n}=e;if(t)return t;const r=qu(e);return r?r.type&&r.value?`${r.type}: ${r.value}
5`:r.type||r.value||n||"<unknown>":n||"<unknown>"}function Bo(e,t,n){const r=e.exception=e.exception||{},s=r.values=r.values||[],o=s[0]=s[0]||{};o.value||(o.value=t||""),o.type||(o.type="Error")}function $t(e,t){const n=qu(e);if(!n)return;const r={type:"generic",handled:!0},s=n.mechanism;if(n.mechanism={...r,...s,...t},t&&"data"in t){const o={...s&&s.data,...t.data};n.mechanism.data=o}}function mp(e,t,n=5){if(t.lineno===void 0)return;const r=e.length,s=Math.max(Math.min(r-1,t.lineno-1),0);t.pre_context=e.slice(Math.max(0,s-n),s).map(i=>mo(i,0));const o=Math.min(r-1,s);t.context_line=mo(e[o],t.colno||0),t.post_context=e.slice(Math.min(s+1,r),s+1+n).map(i=>mo(i,0))}function Oa(e){if(gp(e))return!0;try{De(e,"__sentry_captured__",!0)}catch{}return!1}function gp(e){try{return e.__sentry_captured__}catch{}}var at;(function(e){e[e.PENDING=0]="PENDING";const n=1;e[e.RESOLVED=n]="RESOLVED";const r=2;e[e.REJECTED=r]="REJECTED"})(at||(at={}));function mt(e){return new He(t=>{t(e)})}function Es(e){return new He((t,n)=>{n(e)})}class He{constructor(t){He.prototype.__init.call(this),He.prototype.__init2.call(this),He.prototype.__init3.call(this),He.prototype.__init4.call(this),this._state=at.PENDING,this._handlers=[];try{t(this._resolve,this._reject)}catch(n){this._reject(n)}}then(t,n){return new He((r,s)=>{this._handlers.push([!1,o=>{if(!t)r(o);else try{r(t(o))}catch(i){s(i)}},o=>{if(!n)s(o);else try{r(n(o))}catch(i){s(i)}}]),this._executeHandlers()})}catch(t){return this.then(n=>n,t)}finally(t){return new He((n,r)=>{let s,o;return this.then(i=>{o=!1,s=i,t&&t()},i=>{o=!0,s=i,t&&t()}).then(()=>{if(o){r(s);return}n(s)})})}__init(){this._resolve=t=>{this._setResult(at.RESOLVED,t)}}__init2(){this._reject=t=>{this._setResult(at.REJECTED,t)}}__init3(){this._setResult=(t,n)=>{if(this._state===at.PENDING){if(yr(n)){n.then(this._resolve,this._reject);return}this._state=t,this._value=n,this._executeHandlers()}}}__init4(){this._executeHandlers=()=>{if(this._state===at.PENDING)return;const t=this._handlers.slice();this._handlers=[],t.forEach(n=>{n[0]||(this._state===at.RESOLVED&&n[1](this._value),this._state===at.REJECTED&&n[2](this._value),n[0]=!0)})}}}function _p(e){const t=ae(),n={sid:Me(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>Sp(n)};return e&&An(n,e),n}function An(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||ae(),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:Me()),t.init!==void 0&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),typeof t.started=="number"&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if(typeof t.duration=="number")e.duration=t.duration;else{const n=e.timestamp-e.started;e.duration=n>=0?n:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),typeof t.errors=="number"&&(e.errors=t.errors),t.status&&(e.status=t.status)}function yp(e,t){let n={};e.status==="ok"&&(n={status:"exited"}),An(e,n)}function Sp(e){return _e({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 gt(){return Me()}function Ut(){return Me().substring(16)}function zs(e,t,n=2){if(!t||typeof t!="object"||n<=0)return t;if(e&&t&&Object.keys(t).length===0)return e;const r={...e};for(const s in t)Object.prototype.hasOwnProperty.call(t,s)&&(r[s]=zs(r[s],t[s],n-1));return r}const Ho="_sentrySpan";function cn(e,t){t?De(e,Ho,t):delete e[Ho]}function vs(e){return e[Ho]}const bp=100;class Mi{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext={traceId:gt(),spanId:Ut()}}clone(){const t=new Mi;return t._breadcrumbs=[...this._breadcrumbs],t._tags={...this._tags},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._requestSession=this._requestSession,t._attachments=[...this._attachments],t._sdkProcessingMetadata={...this._sdkProcessingMetadata},t._propagationContext={...this._propagationContext},t._client=this._client,t._lastEventId=this._lastEventId,cn(t,vs(this)),t}setClient(t){this._client=t}setLastEventId(t){this._lastEventId=t}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(t){this._scopeListeners.push(t)}addEventProcessor(t){return this._eventProcessors.push(t),this}setUser(t){return this._user=t||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&An(this._session,{user:t}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(t){return this._requestSession=t,this}setTags(t){return this._tags={...this._tags,...t},this._notifyScopeListeners(),this}setTag(t,n){return this._tags={...this._tags,[t]:n},this._notifyScopeListeners(),this}setExtras(t){return this._extra={...this._extra,...t},this._notifyScopeListeners(),this}setExtra(t,n){return this._extra={...this._extra,[t]:n},this._notifyScopeListeners(),this}setFingerprint(t){return this._fingerprint=t,this._notifyScopeListeners(),this}setLevel(t){return this._level=t,this._notifyScopeListeners(),this}setTransactionName(t){return this._transactionName=t,this._notifyScopeListeners(),this}setContext(t,n){return n===null?delete this._contexts[t]:this._contexts[t]=n,this._notifyScopeListeners(),this}setSession(t){return t?this._session=t:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(t){if(!t)return this;const n=typeof t=="function"?t(this):t,[r,s]=n instanceof Bt?[n.getScopeData(),n.getRequestSession()]:an(n)?[t,t.requestSession]:[],{tags:o,extra:i,user:a,contexts:c,level:u,fingerprint:d=[],propagationContext:l}=r||{};return this._tags={...this._tags,...o},this._extra={...this._extra,...i},this._contexts={...this._contexts,...c},a&&Object.keys(a).length&&(this._user=a),u&&(this._level=u),d.length&&(this._fingerprint=d),l&&(this._propagationContext=l),s&&(this._requestSession=s),this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._session=void 0,cn(this,void 0),this._attachments=[],this.setPropagationContext({traceId:gt()}),this._notifyScopeListeners(),this}addBreadcrumb(t,n){const r=typeof n=="number"?n:bp;if(r<=0)return this;const s={timestamp:Sr(),...t};return this._breadcrumbs.push(s),this._breadcrumbs.length>r&&(this._breadcrumbs=this._breadcrumbs.slice(-r),this._client&&this._client.re
5cordDroppedEvent("buffer_overflow","log_item")),this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(t){return this._attachments.push(t),this}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,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:vs(this)}}setSDKProcessingMetadata(t){return this._sdkProcessingMetadata=zs(this._sdkProcessingMetadata,t,2),this}setPropagationContext(t){return this._propagationContext={spanId:Ut(),...t},this}getPropagationContext(){return this._propagationContext}captureException(t,n){const r=n&&n.event_id?n.event_id:Me();if(!this._client)return S.warn("No client configured on scope - will not capture exception!"),r;const s=new Error("Sentry syntheticException");return this._client.captureException(t,{originalException:t,syntheticException:s,...n,event_id:r},this),r}captureMessage(t,n,r){const s=r&&r.event_id?r.event_id:Me();if(!this._client)return S.warn("No client configured on scope - will not capture message!"),s;const o=new Error(t);return this._client.captureMessage(t,n,{originalException:t,syntheticException:o,...r,event_id:s},this),s}captureEvent(t,n){const r=n&&n.event_id?n.event_id:Me();return this._client?(this._client.captureEvent(t,{...n,event_id:r},this),r):(S.warn("No client configured on scope - will not capture event!"),r)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(t=>{t(this)}),this._notifyingListeners=!1)}}const Bt=Mi;function Ep(){return _r("defaultCurrentScope",()=>new Bt)}function vp(){return _r("defaultIsolationScope",()=>new Bt)}class wp{constructor(t,n){let r;t?r=t:r=new Bt;let s;n?s=n:s=new Bt,this._stack=[{scope:r}],this._isolationScope=s}withScope(t){const n=this._pushScope();let r;try{r=t(n)}catch(s){throw this._popScope(),s}return yr(r)?r.then(s=>(this._popScope(),s),s=>{throw this._popScope(),s}):(this._popScope(),r)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){const t=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:t}),t}_popScope(){return this._stack.length<=1?!1:!!this._stack.pop()}}function On(){const e=bt(),t=Ti(e);return t.stack=t.stack||new wp(Ep(),vp())}function Ip(e){return On().withScope(e)}function Tp(e,t){const n=On();return n.withScope(()=>(n.getStackTop().scope=e,t(e)))}function Na(e){return On().withScope(()=>e(On().getIsolationScope()))}function kp(){return{withIsolationScope:Na,withScope:Ip,withSetScope:Tp,withSetIsolationScope:(e,t)=>Na(t),getCurrentScope:()=>On().getScope(),getIsolationScope:()=>On().getIsolationScope()}}function qt(e){const t=Ti(e);return t.acs?t.acs:kp()}function W(){const e=bt();return qt(e).getCurrentScope()}function Ee(){const e=bt();return qt(e).getIsolationScope()}function Ai(){return _r("globalScope",()=>new Bt)}function ze(...e){const t=bt(),n=qt(t);if(e.length===2){const[r,s]=e;return r?n.withSetScope(r,s):n.withScope(s)}return n.withScope(e[0])}function MT(...e){const t=bt(),n=qt(t);if(e.length===2){const[r,s]=e;return r?n.withSetIsolationScope(r,s):n.withIsolationScope(s)}return n.withIsolationScope(e[0])}function R(){return W().getClient()}function Cp(e){const t=e.getPropagationContext(),{traceId:n,spanId:r,parentSpanId:s}=t;return _e({trace_id:n,span_id:r,parent_span_id:s})}const Wo="_sentryMetrics";function zo(e){const t=e[Wo];if(!t)return;const n={};for(const[,[r,s]]of t)(n[r]||(n[r]=[])).push(_e(s));return n}function xp(e,t,n,r,s,o,i){const c=e[Wo]||(e[Wo]=new Map),u=`${t}:${n}@${s}`,d=c.get(i);if(d){const[,l]=d;c.set(i,[u,{min:Math.min(l.min,r),max:Math.max(l.max,r),count:l.count+=1,sum:l.sum+=r,tags:l.tags}])}else c.set(i,[u,{min:r,max:r,count:1,sum:r,tags:o}])}const he="sentry.source",Gu="sentry.sample_rate",Ae="sentry.op",Z="sentry.origin",jo="sentry.idle_span_finish_reason",js="sentry.measurement_unit",qs="sentry.measurement_value",qo="sentry.custom_span_name",Rp="sentry.profile_id",Oi="sentry.exclusive_time",Mp=0,Vu=1,Se=2;function Ap(e){if(e<400&&e>=100)return{code:Vu};if(e>=400&&e<500)switch(e){case 401:return{code:Se,message:"unauthenticated"};case 403:return{code:Se,message:"permission_denied"};case 404:return{code:Se,message:"not_found"};case 409:return{code:Se,message:"already_exists"};case 413:return{code:Se,message:"failed_precondition"};case 429:return{code:Se,message:"resource_exhausted"};case 499:return{code:Se,message:"cancelled"};default:return{code:Se,message:"invalid_argument"}}if(e>=500&&e<600)switch(e){case 501:return{code:Se,message:"unimplemented"};case 503:return{code:Se,message:"unavailable"};case 504:return{code:Se,message:"deadline_exceeded"};default:return{code:Se,message:"internal_error"}}return{code:Se,message:"unknown_error"}}function Yu(e,t){e.setAttribute("http.response.status_code",t);const n=Ap(t);n.message!=="unknown_error"&&e.setStatus(n)}const Ni="sentry-",Op=/^sentry-/,Np=8192;function Xu(e){const t=Dp(e);if(!t)return;const n=Object.entries(t).reduce((r,[s,o])=>{if(s.match(Op)){const i=s.slice(Ni.length);r[i]=o}return r},{});if(Object.keys(n).length>0)return n}function Ku(e){if(!e)return;const t=Object.entries(e).reduce((n,[r,s])=>(s&&(n[`${Ni}${r}`]=s),n),{});return Pp(t)}function Dp(e){if(!(!e||!lt(e)&&!Array.isArray(e)))return Array.isArray(e)?e.reduce((t,n)=>{const r=Da(n);return Object.entries(r).forEach(([s,o])=>{t[s]=o}),t},{}):Da(e)}function Da(e){return e.split(",").map(t=>t.split("=").map(n=>decodeURIComponent(n.trim()))).reduce((t,[n,r])=>(n&&r&&(t[n]=r),t),{})}function Pp(e){if(Object.keys(e).length!==0)return Object.entries(e).reduce((t,[n,r],s)=>{const o=`${encodeURIComponent(n)}=${encodeURIComponent(r)}`,i=s===0?o:`${t},${o}`;return i.length>Np?(Wt&&S.warn(`Not adding key: ${n} with val: ${r} to baggage header due to exceeding baggage size limits.`),t):i},"")}const Ju=new RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function Lp(e){if(!e)return;const t=e.match(Ju);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 Zu(e,t){const n=Lp(e),r=Xu(t);if(!n||!n.traceId)return{traceId:gt(),spanId:Ut()};const{traceId:s,parentSpanId:o,parentSampled:i}=n,a=Ut();return{traceId:s,parentSpanId:o,spanId:a,sampled:i,dsc:r||{}}}function Qu(e=gt(),t=Ut(),n){let r="";return n!==void 0&&(r=n?"-1":"-0"),`${e}-${t}${r}`}const el=0,tl=1;let Pa=!1;function Fp(e){const{spanId:t,traceId:n}=e.spanContext(),{data:r,op:s,parent_span_id:o,status:i,origin:a}=H(e);return _e({parent_span_id:o,span_id:t,trace_id:n,data:r,op:s,status:i,origin:a})}function $p(e){const{spanId:t,traceId:n,isRemote:r}=e.spanContext(),s=r?t:H(e).parent_span_id,o=r?Ut():t;return _e({parent_span_id:s,span_id:o,trace_id:n})}function Up(e){const{traceId:t,spanId:n}=e.spanContext(),r=ln(e);return Qu(t,n,r)}function nn(e){return typeof e=="number"?La(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?La(e.getTime()):ae()}function La(e){return e>9999999999?e/1e3:e}function H(e){if(Hp(e))return e.getSpanJSON();try{const{spanId:t,traceId:n}=e.spanContext();if(Bp(e)){const{attributes:r,startTime:s,name:o,endTime:i,parentSpanId:a,status:c}=e;return _e({span_id:t,trace_id:n,data:r,description:o,parent_span_id:a,start_timestamp:nn(s),timestamp:nn(i)||void 0,status:nl(c),op:r[Ae],origin:r[Z],_metrics_summary:zo(e)})}return{span_id:t,trace_id:n}}catch{return{}}}function Bp(e){const t=e;return!!t.attributes&&!!t.startTime&&!!t.name&&!!t.endTime&&!!t.status}function Hp(e){return typeof e.getSpanJSON=="function"}function ln(e){const{traceFlags:t}=e.spanContext();return t===tl}function nl(e){if(!(!e||e.code===Mp))return e.code===Vu?"ok":e.message||"unknown_error"}const rn="_sentryChildSpans",Go="_sentryRootSpan";function rl(e,t){const n=e[Go]||e;De(t,Go,n),e[rn]?e[rn].add(t):De(e,rn,new Set([t]))}function Wp(e,t){e[rn]&&e[rn].delete(t)}function rs(e){const t=new Set;function n(r){if(!t.has(r)&&ln(r)){t.add(r);const s=r[rn]?Array.from(r[rn]):[];for(const o of s)n(o)}}return n(e),Array.from(t)}function me(e){return e[Go]||e}function fe(){const e=bt(),t=qt(e);return t.getActiveSpan?t.getActiveSpan():vs(W())}function zp(e,t,n,r,s,o){const i=fe();i&&xp(i,e,t,n,r,s,o)}function sl(){Pa||(St(()=>{console.warn("[Sentry] Deprecation warning: Returning null from `beforeSendSpan` will be disallowed from SDK ver
5sion 9.0.0 onwards. The callback will only support mutating spans. To drop certain spans, configure the respective integrations directly.")}),Pa=!0)}function AT(e,t){e.updateName(t),e.setAttributes({[he]:"custom",[qo]:t})}let Fa=!1;function ol(){Fa||(Fa=!0,Lu(Vo),Fu(Vo))}function Vo(){const e=fe(),t=e&&me(e);if(t){const n="internal_error";P&&S.log(`[Tracing] Root span: ${n} -> Global error occurred`),t.setStatus({code:Se,message:n})}}Vo.tag="sentry_tracingErrorCallback";const il="_sentryScope",al="_sentryIsolationScope";function jp(e,t,n){e&&(De(e,al,n),De(e,il,t))}function $a(e){return{scope:e[il],isolationScope:e[al]}}function OT(){ol()}function Ht(e){if(typeof __SENTRY_TRACING__=="boolean"&&!__SENTRY_TRACING__)return!1;const t=R(),n=e||t&&t.getOptions();return!!n&&(n.enableTracing||"tracesSampleRate"in n||"tracesSampler"in n)}class Gt{constructor(t={}){this._traceId=t.traceId||gt(),this._spanId=t.spanId||Ut()}spanContext(){return{spanId:this._spanId,traceId:this._traceId,traceFlags:el}}end(t){}setAttribute(t,n){return this}setAttributes(t){return this}setStatus(t){return this}updateName(t){return this}isRecording(){return!1}addEvent(t,n,r){return this}addLink(t){return this}addLinks(t){return this}recordException(t,n){}}function Di(e,t,n=()=>{}){let r;try{r=e()}catch(s){throw t(s),n(),s}return qp(r,t,n)}function qp(e,t,n){return yr(e)?e.then(r=>(n(),r),r=>{throw t(r),n(),r}):(n(),e)}const Gs="production",cl="_frozenDsc";function Ua(e,t){De(e,cl,t)}function ul(e,t){const n=t.getOptions(),{publicKey:r}=t.getDsn()||{},s=_e({environment:n.environment||Gs,release:n.release,public_key:r,trace_id:e});return t.emit("createDsc",s),s}function ll(e,t){const n=t.getPropagationContext();return n.dsc||ul(n.traceId,e)}function Vt(e){const t=R();if(!t)return{};const n=me(e),r=n[cl];if(r)return r;const s=n.spanContext().traceState,o=s&&s.get("sentry.dsc"),i=o&&Xu(o);if(i)return i;const a=ul(e.spanContext().traceId,t),c=H(n),u=c.data||{},d=u[Gu];d!=null&&(a.sample_rate=`${d}`);const l=u[he],f=c.description;return l!=="url"&&f&&(a.transaction=f),Ht()&&(a.sampled=String(ln(n))),t.emit("createDsc",a,n),a}function NT(e){const t=Vt(e);return Ku(t)}function Gp(e){if(!P)return;const{description:t="< unknown name >",op:n="< unknown op >",parent_span_id:r}=H(e),{spanId:s}=e.spanContext(),o=ln(e),i=me(e),a=i===e,c=`[Tracing] Starting ${o?"sampled":"unsampled"} ${a?"root ":""}span`,u=[`op: ${n}`,`name: ${t}`,`ID: ${s}`];if(r&&u.push(`parent ID: ${r}`),!a){const{op:d,description:l}=H(i);u.push(`root ID: ${i.spanContext().spanId}`),d&&u.push(`root op: ${d}`),l&&u.push(`root description: ${l}`)}S.log(`${c}
6  ${u.join(`
7  `)}`)}function Vp(e){if(!P)return;const{description:t="< unknown name >",op:n="< unknown op >"}=H(e),{spanId:r}=e.spanContext(),o=me(e)===e,i=`[Tracing] Finishing "${n}" ${o?"root ":""}span "${t}" with ID ${r}`;S.log(i)}function ws(e){if(typeof e=="boolean")return Number(e);const t=typeof e=="string"?parseFloat(e):e;if(typeof t!="number"||isNaN(t)||t<0||t>1){P&&S.warn(`[Tracing] Given sample rate is invalid. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(e)} of type ${JSON.stringify(typeof e)}.`);return}return t}function Yp(e,t){if(!Ht(e))return[!1];const n=Ee().getScopeData().sdkProcessingMetadata.normalizedRequest,r={...t,normalizedRequest:t.normalizedRequest||n};let s;typeof e.tracesSampler=="function"?s=e.tracesSampler(r):r.parentSampled!==void 0?s=r.parentSampled:typeof e.tracesSampleRate<"u"?s=e.tracesSampleRate:s=1;const o=ws(s);return o===void 0?(P&&S.warn("[Tracing] Discarding transaction because of invalid sample rate."),[!1]):o?Math.random()<o?[!0,o]:(P&&S.log(`[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ${Number(s)})`),[!1,o]):(P&&S.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])}const Xp=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function Kp(e){return e==="http"||e==="https"}function dn(e,t=!1){const{host:n,path:r,pass:s,port:o,projectId:i,protocol:a,publicKey:c}=e;return`${a}://${c}${t&&s?`:${s}`:""}@${n}${o?`:${o}`:""}/${r&&`${r}/`}${i}`}function dl(e){const t=Xp.exec(e);if(!t){St(()=>{console.error(`Invalid Sentry Dsn: ${e}`)});return}const[n,r,s="",o="",i="",a=""]=t.slice(1);let c="",u=a;const d=u.split("/");if(d.length>1&&(c=d.slice(0,-1).join("/"),u=d.pop()),u){const l=u.match(/^\d+/);l&&(u=l[0])}return fl({host:o,pass:s,path:c,projectId:u,port:i,protocol:n,publicKey:r})}function fl(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function Jp(e){if(!Wt)return!0;const{port:t,projectId:n,protocol:r}=e;return["protocol","publicKey","host","projectId"].find(i=>e[i]?!1:(S.error(`Invalid Sentry Dsn: ${i} missing`),!0))?!1:n.match(/^\d+$/)?Kp(r)?t&&isNaN(parseInt(t,10))?(S.error(`Invalid Sentry Dsn: Invalid port ${t}`),!1):!0:(S.error(`Invalid Sentry Dsn: Invalid protocol ${r}`),!1):(S.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),!1)}function pl(e){const t=typeof e=="string"?dl(e):fl(e);if(!(!t||!Jp(t)))return t}function Zp(){const e=typeof WeakSet=="function",t=e?new WeakSet:[];function n(s){if(e)return t.has(s)?!0:(t.add(s),!1);for(let o=0;o<t.length;o++)if(t[o]===s)return!0;return t.push(s),!1}function r(s){if(e)t.delete(s);else for(let o=0;o<t.length;o++)if(t[o]===s){t.splice(o,1);break}}return[n,r]}function Be(e,t=100,n=1/0){try{return Yo("",e,t,n)}catch(r){return{ERROR:`**non-serializable** (${r})`}}}function hl(e,t=3,n=100*1024){const r=Be(e,t);return nh(r)>n?hl(e,t-1,n):r}function Yo(e,t,n=1/0,r=1/0,s=Zp()){const[o,i]=s;
7if(t==null||["boolean","string"].includes(typeof t)||typeof t=="number"&&Number.isFinite(t))return t;const a=Qp(e,t);if(!a.startsWith("[object "))return a;if(t.__sentry_skip_normalization__)return t;const c=typeof t.__sentry_override_normalization_depth__=="number"?t.__sentry_override_normalization_depth__:n;if(c===0)return a.replace("object ","");if(o(t))return"[Circular ~]";const u=t;if(u&&typeof u.toJSON=="function")try{const p=u.toJSON();return Yo("",p,c-1,r,s)}catch{}const d=Array.isArray(t)?[]:{};let l=0;const f=zu(t);for(const p in f){if(!Object.prototype.hasOwnProperty.call(f,p))continue;if(l>=r){d[p]="[MaxProperties ~]";break}const h=f[p];d[p]=Yo(p,h,c-1,r,s),l++}return i(t),d}function Qp(e,t){try{if(e==="domain"&&t&&typeof t=="object"&&t._events)return"[Domain]";if(e==="domainEmitter")return"[DomainEmitter]";if(typeof global<"u"&&t===global)return"[Global]";if(typeof window<"u"&&t===window)return"[Window]";if(typeof document<"u"&&t===document)return"[Document]";if(Bu(t))return"[VueViewModel]";if(ap(t))return"[SyntheticEvent]";if(typeof t=="number"&&!Number.isFinite(t))return`[${t}]`;if(typeof t=="function")return`[Function: ${ft(t)}]`;if(typeof t=="symbol")return`[${String(t)}]`;if(typeof t=="bigint")return`[BigInt: ${String(t)}]`;const n=eh(t);return/^HTML(\w*)Element$/.test(n)?`[HTMLElement: ${n}]`:`[object ${n}]`}catch(n){return`**non-serializable** (${n})`}}function eh(e){const t=Object.getPrototypeOf(e);return t?t.constructor.name:"null prototype"}function th(e){return~-encodeURI(e).split(/%..|./).length}function nh(e){return th(JSON.stringify(e))}function Et(e,t=[]){return[e,t]}function rh(e,t){const[n,r]=e;return[n,[...r,t]]}function un(e,t){const n=e[1];for(const r of n){const s=r[0].type;if(t(r,s))return!0}return!1}function Ba(e,t){return un(e,(n,r)=>t.includes(r))}function Is(e){return L.__SENTRY__&&L.__SENTRY__.encodePolyfill?L.__SENTRY__.encodePolyfill(e):new TextEncoder().encode(e)}function sh(e){return L.__SENTRY__&&L.__SENTRY__.decodePolyfill?L.__SENTRY__.decodePolyfill(e):new TextDecoder().decode(e)}function Ts(e){const[t,n]=e;let r=JSON.stringify(t);function s(o){typeof r=="string"?r=typeof o=="string"?r+o:[Is(r),o]:r.push(typeof o=="string"?Is(o):o)}for(const o of n){const[i,a]=o;if(s(`
8${JSON.stringify(i)}
9`),typeof a=="string"||a instanceof Uint8Array)s(a);else{let c;try{c=JSON.stringify(a)}catch{c=JSON.stringify(Be(a))}s(c)}}return typeof r=="string"?r:oh(r)}function oh(e){const t=e.reduce((s,o)=>s+o.length,0),n=new Uint8Array(t);let r=0;for(const s of e)n.set(s,r),r+=s.length;return n}function ih(e){let t=typeof e=="string"?Is(e):e;function n(i){const a=t.subarray(0,i);return t=t.subarray(i+1),a}function r(){let i=t.indexOf(10);return i<0&&(i=t.length),JSON.parse(sh(n(i)))}const s=r(),o=[];for(;t.length;){const i=r(),a=typeof i.length=="number"?i.length:void 0;o.push([i,a?n(a):r()])}return[s,o]}function ah(e){return[{type:"span"},e]}function ch(e){const t=typeof e.data=="string"?Is(e.data):e.data;return[_e({type:"attachment",length:t.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType}),t]}const uh={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",profile_chunk:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",feedback:"feedback",span:"span",statsd:"metric_bucket",raw_security:"security"};function Ha(e){return uh[e]}function Pi(e){if(!e||!e.sdk)return;const{name:t,version:n}=e.sdk;return{name:t,version:n}}function ml(e,t,n,r){const s=e.sdkProcessingMetadata&&e.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:e.event_id,sent_at:new Date().toISOString(),...t&&{sdk:t},...!!n&&r&&{dsn:dn(r)},...s&&{trace:_e({...s})}}}function lh(e,t){return t&&(e.sdk=e.sdk||{},e.sdk.name=e.sdk.name||t.name,e.sdk.version=e.sdk.version||t.version,e.sdk.integrations=[...e.sdk.integrations||[],...t.integrations||[]],e.sdk.packages=[...e.sdk.packages||[],...t.packages||[]]),e}function dh(e,t,n,r){const s=Pi(n),o={sent_at:new Date().toISOString(),...s&&{sdk:s},...!!r&&t&&{dsn:dn(t)}},i="aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e.toJSON()];return Et(o,[i])}function fh(e,t,n,r){const s=Pi(n),o=e.type&&e.type!=="replay_event"?e.type:"event";lh(e,n&&n.sdk);const i=ml(e,s,r,t);return delete e.sdkProcessingMetadata,Et(i,[[{type:o},e]])}function ph(e,t){function n(d){return!!d.trace_id&&!!d.public_key}const r=Vt(e[0]),s=t&&t.getDsn(),o=t&&t.getOptions().tunnel,i={sent_at:new Date().toISOString(),...n(r)&&{trace:r},...!!o&&s&&{dsn:dn(s)}},a=t&&t.getOptions().beforeSendSpan,c=a?d=>{const l=a(H(d));return l||sl(),l}:d=>H(d),u=[];for(const d of e){const l=c(d);l&&u.push(ah(l))}return Et(i,u)}function hh(e,t,n,r=fe()){const s=r&&me(r);
9s&&(P&&S.log(`[Measurement] Setting measurement on root span: ${e} = ${t} ${n}`),s.addEvent(e,{[qs]:t,[js]:n}))}function Wa(e){if(!e||e.length===0)return;const t={};return e.forEach(n=>{const r=n.attributes||{},s=r[js],o=r[qs];typeof s=="string"&&typeof o=="number"&&(t[n.name]={value:o,unit:s})}),t}const za=1e3;class Li{constructor(t={}){this._traceId=t.traceId||gt(),this._spanId=t.spanId||Ut(),this._startTime=t.startTimestamp||ae(),this._attributes={},this.setAttributes({[Z]:"manual",[Ae]:t.op,...t.attributes}),this._name=t.name,t.parentSpanId&&(this._parentSpanId=t.parentSpanId),"sampled"in t&&(this._sampled=t.sampled),t.endTimestamp&&(this._endTime=t.endTimestamp),this._events=[],this._isStandaloneSpan=t.isStandalone,this._endTime&&this._onSpanEnded()}addLink(t){return this}addLinks(t){return this}recordException(t,n){}spanContext(){const{_spanId:t,_traceId:n,_sampled:r}=this;return{spanId:t,traceId:n,traceFlags:r?tl:el}}setAttribute(t,n){return n===void 0?delete this._attributes[t]:this._attributes[t]=n,this}setAttributes(t){return Object.keys(t).forEach(n=>this.setAttribute(n,t[n])),this}updateStartTime(t){this._startTime=nn(t)}setStatus(t){return this._status=t,this}updateName(t){return this._name=t,this.setAttribute(he,"custom"),this}end(t){this._endTime||(this._endTime=nn(t),Vp(this),this._onSpanEnded())}getSpanJSON(){return _e({data:this._attributes,description:this._name,op:this._attributes[Ae],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:nl(this._status),timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[Z],_metrics_summary:zo(this),profile_id:this._attributes[Rp],exclusive_time:this._attributes[Oi],measurements:Wa(this._events),is_segment:this._isStandaloneSpan&&me(this)===this||void 0,segment_id:this._isStandaloneSpan?me(this).spanContext().spanId:void 0})}isRecording(){return!this._endTime&&!!this._sampled}addEvent(t,n,r){P&&S.log("[Tracing] Adding an event to span:",t);const s=ja(n)?n:r||ae(),o=ja(n)?{}:n||{},i={name:t,time:nn(s),attributes:o};return this._events.push(i),this}isStandaloneSpan(){return!!this._isStandaloneSpan}_onSpanEnded(){const t=R();if(t&&t.emit("spanEnd",this),!(this._isStandaloneSpan||this===me(this)))return;if(this._isStandaloneSpan){this._sampled?gh(ph([this],t)):(P&&S.log("[Tracing] Discarding standalone span because its trace was not chosen to be sampled."),t&&t.recordDroppedEvent("sample_rate","span"));return}const r=this._convertSpanToTransaction();r&&($a(this).scope||W()).captureEvent(r)}_convertSpanToTransaction(){if(!qa(H(this)))return;this._name||(P&&S.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),this._name="<unlabeled transaction>");const{scope:t,isolationScope:n}=$a(this),s=(t||W()).getClient()||R();if(this._sampled!==!0){P&&S.log("[Tracing] Discarding transaction because its trace was not chosen to be sampled."),s&&s.recordDroppedEvent("sample_rate","transaction");return}const i=rs(this).filter(l=>l!==this&&!mh(l)).map(l=>H(l)).filter(qa),a=this._attributes[he];
9delete this._attributes[qo],i.forEach(l=>{l.data&&delete l.data[qo]});const c={contexts:{trace:Fp(this)},spans:i.length>za?i.sort((l,f)=>l.start_timestamp-f.start_timestamp).slice(0,za):i,start_timestamp:this._startTime,timestamp:this._endTime,transaction:this._name,type:"transaction",sdkProcessingMetadata:{capturedSpanScope:t,capturedSpanIsolationScope:n,..._e({dynamicSamplingContext:Vt(this)})},_metrics_summary:zo(this),...a&&{transaction_info:{source:a}}},u=Wa(this._events);return u&&Object.keys(u).length&&(P&&S.log("[Measurements] Adding measurements to transaction event",JSON.stringify(u,void 0,2)),c.measurements=u),c}}function ja(e){return e&&typeof e=="number"||e instanceof Date||Array.isArray(e)}function qa(e){return!!e.start_timestamp&&!!e.timestamp&&!!e.span_id&&!!e.trace_id}function mh(e){return e instanceof Li&&e.isStandaloneSpan()}function gh(e){const t=R();if(!t)return;const n=e[1];if(!n||n.length===0){t.recordDroppedEvent("before_send","span");return}t.sendEnvelope(e)}const Fi="__SENTRY_SUPPRESS_TRACING__";function DT(e,t){const n=br();if(n.startSpan)return n.startSpan(e,t);const r=Ui(e),{forceTransaction:s,parentSpan:o}=e;return ze(e.scope,()=>gl(o)(()=>{const a=W(),c=Bi(a),d=e.onlyIfParent&&!c?new Gt:$i({parentSpan:c,spanArguments:r,forceTransaction:s,scope:a});return cn(a,d),Di(()=>t(d),()=>{const{status:l}=H(d);d.isRecording()&&(!l||l==="ok")&&d.setStatus({code:Se,message:"internal_error"})},()=>d.end())}))}function _h(e,t){const n=br();if(n.startSpanManual)return n.startSpanManual(e,t);const r=Ui(e),{forceTransaction:s,parentSpan:o}=e;return ze(e.scope,()=>gl(o)(()=>{const a=W(),c=Bi(a),d=e.onlyIfParent&&!c?new Gt:$i({parentSpan:c,spanArguments:r,forceTransaction:s,scope:a});cn(a,d);function l(){d.end()}return Di(()=>t(d,l),()=>{const{status:f}=H(d);d.isRecording()&&(!f||f==="ok")&&d.setStatus({code:Se,message:"internal_error"})})}))}function et(e){const t=br();if(t.startInactiveSpan)return t.startInactiveSpan(e);const n=Ui(e),{forceTransaction:r,parentSpan:s}=e;return(e.scope?i=>ze(e.scope,i):s!==void 0?i=>Nn(s,i):i=>i())(()=>{const i=W(),a=Bi(i);return e.onlyIfParent&&!a?new Gt:$i({parentSpan:a,spanArguments:n,forceTransaction:r,scope:i})})}const PT=(e,t)=>{const n=bt(),r=qt(n);if(r.continueTrace)return r.continueTrace(e,t);const{sentryTrace:s,baggage:o}=e;return ze(i=>{const a=Zu(s,o);return i.setPropagationContext(a),t()})};function Nn(e,t){const n=br();return n.withActiveSpan?n.withActiveSpan(e,t):ze(r=>(cn(r,e||void 0),t(r)))}function LT(e){const t=br();return t.suppressTracing?t.suppressTracing(e):ze(n=>(n.setSDKProcessingMetadata({[Fi]:!0}),e()))}function FT(e){return ze(t=>(t.setPropagationContext({traceId:gt()}),P&&S.info(`Starting a new trace with id ${t.getPropagationContext().traceId}`),Nn(null,e)))}function $i({parentSpan:e,spanArguments:t,forceTransaction:n,scope:r}){if(!Ht())return new Gt;const s=Ee();let o;if(e&&!n)o=yh(e,r,t),rl(e,o);else if(e){const i=Vt(e),{traceId:a,spanId:c}=e.spanContext(),u=ln(e);o=Ga({traceId:a,parentSpanId:c,...t},r,u),Ua(o,i)}else{const{traceId:i,dsc:a,parentSpanId:c,sampled:u}={...s.getPropagationContext(),...r.getPropagationContext()};o=Ga({traceId:i,parentSpanId:c,...t},r,u),a&&Ua(o,a)}return Gp(o),jp(o,r,s),o}function Ui(e){const n={isStandalone:(e.experimental||{}).standalone,...e};if(e.startTime){const r={...n};return r.startTimestamp=nn(e.startTime),delete r.startTime,r}return n}function br(){const e=bt();return qt(e)}function Ga(e,t,n){const r=R(),s=r&&r.getOptions()||{},{name:o="",attributes:i}=e,[a,c]=t.getScopeData().sdkProcessingMetadata[Fi]?[!1]:Yp(s,{name:o,parentSampled:n,attributes:i,transactionContext:{name:o,parentSampled:n}}),u=new Li({...e,attributes:{[he]:"custom",...e.attributes},sampled:a});return c!==void 0&&u.setAttribute(Gu,c),r&&r.emit("spanStart",u),u}function yh(e,t,n){const{spanId:r,traceId:s}=e.spanContext(),o=t.getScopeData().sdkProcessingMetadata[Fi]?!1:ln(e),i=o?new Li({...n,parentSpanId:r,traceId:s,sampled:o}):new Gt({traceId:s});rl(e,i);const a=R();return a&&(a.emit("spanStart",i),n.endTimestamp&&a.emit("spanEnd",i)),i}function Bi(e){const t=vs(e);if(!t)return;const n=R();return(n?n.getOptions():{}).parentSpanIsAlwaysRootSpan?me(t):t}function gl(e){return e!==void 0?t=>Nn(e,t):t=>t()}const ss={idleTimeout:1e3,finalTimeout:3e4,childSpanTimeout:15e3},Sh="heartbeatFailed",bh="idleTimeout",Eh="finalTimeout",vh="externalFinish";function _l(e,t={}){const n=new Map;let r=!1,s,o=vh,i=!t.disableAutoFinish;const a=[],{idleTimeout:c=ss.idleTimeout,finalTimeout:u=ss.finalTimeout,childSpanTimeout:d=ss.childSpanTimeout,beforeSpanEnd:l}=t,f=R();if(!f||!Ht())return new Gt;const p=W(),h=fe(),m=wh(e);m.end=new Proxy(m.end,{apply(v,x,A){l&&l(m);const[g,...E]=A,k=g||ae(),I=nn(k),B=rs(m).filter(F=>F!==m);if(!B.length)return _(I),Reflect.apply(v,x,[I,...E]);const V=B.map(F=>H(F).timestamp).filter(F=>!!F),z=V.length?Math.max(...V):void 0,O=H(m).start_timestamp,ce=Math.min(O?O+u/1e3:1/0,Math.max(O||-1/0,Math.min(I,z||1/0)));return _(ce),Reflect.apply(v,x,[ce,...E])}});function b(){s&&(clearTimeout(s),s=void 0)}function y(v){b(),s=setTimeout(()=>{!r&&n.size===0&&i&&(o=bh,m.end(v))},c)}function w(v){s=setTimeout(()=>{!r&&i&&(o=Sh,m.end(v))},d)}function C(v){b(),n.set(v,!0);const x=ae();w(x+d/1e3)}function M(v){if(n.has(v)&&n.delete(v),n.size===0){const x=ae();y(x+c/1e3)}}function _(v){r=!0,n.clear(),a.forEach(I=>I()),cn(p,h);const x=H(m),{start_timestamp:A}=x;if(!A)return;(x.data||{})[jo]||m.setAttribute(jo,o),S.log(`[Tracing] Idle span "${x.op}" finished`);const E=rs(m).filter(I=>I!==m);let k=0;
9E.forEach(I=>{I.isRecording()&&(I.setStatus({code:Se,message:"cancelled"}),I.end(v),P&&S.log("[Tracing] Cancelling span since span ended early",JSON.stringify(I,void 0,2)));const B=H(I),{timestamp:V=0,start_timestamp:z=0}=B,O=z<=v,ce=(u+c)/1e3,F=V-z<=ce;if(P){const te=JSON.stringify(I,void 0,2);O?F||S.log("[Tracing] Discarding span since it finished after idle span final timeout",te):S.log("[Tracing] Discarding span since it happened after idle span was finished",te)}(!F||!O)&&(Wp(m,I),k++)}),k>0&&m.setAttribute("sentry.idle_span_discarded_spans",k)}return a.push(f.on("spanStart",v=>{if(r||v===m||H(v).timestamp)return;rs(m).includes(v)&&C(v.spanContext().spanId)})),a.push(f.on("spanEnd",v=>{r||M(v.spanContext().spanId)})),a.push(f.on("idleSpanEnableAutoFinish",v=>{v===m&&(i=!0,y(),n.size&&w())})),t.disableAutoFinish||y(),setTimeout(()=>{r||(m.setStatus({code:Se,message:"deadline_exceeded"}),o=Eh,m.end())},u),m}function wh(e){const t=et(e);return cn(W(),t),P&&S.log("[Tracing] Started span is an idle span"),t}function Xo(e,t,n,r=0){return new He((s,o)=>{const i=e[r];if(t===null||typeof i!="function")s(t);else{const a=i({...t},n);P&&i.id&&a===null&&S.log(`Event processor "${i.id}" dropped event`),yr(a)?a.then(c=>Xo(e,c,n,r+1).then(s)).then(null,o):Xo(e,a,n,r+1).then(s).then(null,o)}})}let $r,Va,Ur;function yl(e){const t=L._sentryDebugIds;if(!t)return{};const n=Object.keys(t);return Ur&&n.length===Va||(Va=n.length,Ur=n.reduce((r,s)=>{$r||($r={});const o=$r[s];if(o)r[o[0]]=o[1];else{const i=e(s);for(let a=i.length-1;a>=0;a--){const c=i[a],u=c&&c.filename,d=t[s];if(u&&d){r[u]=d,$r[s]=[u,d];break}}}return r},{})),Ur}function Ih(e,t){const n=yl(e);if(!n)return[];const r=[];for(const s of t)s&&n[s]&&r.push({type:"sourcemap",code_file:s,debug_id:n[s]});return r}function Th(e,t){const{fingerprint:n,span:r,breadcrumbs:s,sdkProcessingMetadata:o}=t;kh(e,t),r&&Rh(e,r),Mh(e,n),Ch(e,s),xh(e,o)}function Ya(e,t){const{extra:n,tags:r,user:s,contexts:o,level:i,sdkProcessingMetadata:a,breadcrumbs:c,fingerprint:u,eventProcessors:d,attachments:l,propagationContext:f,transactionName:p,span:h}=t;Br(e,"extra",n),Br(e,"tags",r),Br(e,"user",s),Br(e,"contexts",o),e.sdkProcessingMetadata=zs(e.sdkProcessingMetadata,a,2),i&&(e.level=i),p&&(e.transactionName=p),h&&(e.span=h),c.length&&(e.breadcrumbs=[...e.breadcrumbs,...c]),u.length&&(e.fingerprint=[...e.fingerprint,...u]),d.length&&(e.eventProcessors=[...e.eventProcessors,...d]),l.length&&(e.attachments=[...e.attachments,...l]),e.propagationContext={...e.propagationContext,...f}}function Br(e,t,n){e[t]=zs(e[t],n,1)}function kh(e,t){const{extra:n,tags:r,user:s,contexts:o,level:i,transactionName:a}=t,c=_e(n);c&&Object.keys(c).length&&(e.extra={...c,...e.extra});const u=_e(r);u&&Object.keys(u).length&&(e.tags={...u,...e.tags});const d=_e(s);d&&Object.keys(d).length&&(e.user={...d,...e.user});const l=_e(o);l&&Object.keys(l).length&&(e.contexts={...l,...e.contexts}),i&&(e.level=i),a&&e.type!=="transaction"&&(e.transaction=a)}function Ch(e,t){const n=[...e.breadcrumbs||[],...t];e.breadcrumbs=n.length?n:void 0}function xh(e,t){e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...t}}function Rh(e,t){e.contexts={trace:$p(t),...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:Vt(t),...e.sdkProcessingMetadata};const n=me(t),r=H(n).description;r&&!e.transaction&&e.type==="transaction"&&(e.transaction=r)}function Mh(e,t){e.fingerprint=e.fingerprint?Array.isArray(e.fingerprint)?e.fingerprint:[e.fingerprint]:[],t&&(e.fingerprint=e.fingerprint.concat(t)),e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint}function Sl(e,t,n,r,s,o){const{normalizeDepth:i=3,normalizeMaxBreadth:a=1e3}=e,c={...t,event_id:t.event_id||n.event_id||Me(),timestamp:t.timestamp||Sr()},u=n.integrations||e.integrations.map(b=>b.name);Ah(c,e),Dh(c,u),s&&s.emit("applyFrameMetadata",t),t.type===void 0&&Oh(c,e.stackParser);const d=Lh(r,n.captureContext);n.mechanism&&$t(c,n.mechanism);const l=s?s.getEventProcessors():[],f=Ai().getScopeData();if(o){const b=o.getScopeData();Ya(f,b)}if(d){const b=d.getScopeData();Ya(f,b)}const p=[...n.attachments||[],...f.attachments];p.length&&(n.attachments=p),Th(c,f);const h=[...l,...f.eventProcessors];return Xo(h,c,n).then(b=>(b&&Nh(b),typeof i=="number"&&i>0?Ph(b,i,a):b))}function Ah(e,t){const{environment:n,release:r,dist:s,maxValueLength:o=250}=t;e.environment=e.environment||n||Gs,!e.release&&r&&(e.release=r),!e.dist&&s&&(e.dist=s),e.message&&(e.message=Ot(e.message,o));const i=e.exception&&e.exception.values&&e.exception.values[0];i&&i.value&&(i.value=Ot(i.value,o));const a=e.request;a&&a.url&&(a.url=Ot(a.url,o))}function Oh(e,t){const n=yl(t);
9try{e.exception.values.forEach(r=>{r.stacktrace.frames.forEach(s=>{n&&s.filename&&(s.debug_id=n[s.filename])})})}catch{}}function Nh(e){const t={};try{e.exception.values.forEach(r=>{r.stacktrace.frames.forEach(s=>{s.debug_id&&(s.abs_path?t[s.abs_path]=s.debug_id:s.filename&&(t[s.filename]=s.debug_id),delete s.debug_id)})})}catch{}if(Object.keys(t).length===0)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];const n=e.debug_meta.images;Object.entries(t).forEach(([r,s])=>{n.push({type:"sourcemap",code_file:r,debug_id:s})})}function Dh(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}function Ph(e,t,n){if(!e)return null;const r={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(s=>({...s,...s.data&&{data:Be(s.data,t,n)}}))},...e.user&&{user:Be(e.user,t,n)},...e.contexts&&{contexts:Be(e.contexts,t,n)},...e.extra&&{extra:Be(e.extra,t,n)}};return e.contexts&&e.contexts.trace&&r.contexts&&(r.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(r.contexts.trace.data=Be(e.contexts.trace.data,t,n))),e.spans&&(r.spans=e.spans.map(s=>({...s,...s.data&&{data:Be(s.data,t,n)}}))),e.contexts&&e.contexts.flags&&r.contexts&&(r.contexts.flags=Be(e.contexts.flags,3,n)),r}function Lh(e,t){if(!t)return e;const n=e?e.clone():new Bt;return n.update(t),n}function Fh(e){if(e)return $h(e)?{captureContext:e}:Bh(e)?{captureContext:e}:e}function $h(e){return e instanceof Bt||typeof e=="function"}const Uh=["user","level","extra","contexts","tags","fingerprint","requestSession","propagationContext"];function Bh(e){return Object.keys(e).some(t=>Uh.includes(t))}function Vs(e,t){return W().captureException(e,Fh(t))}function Ko(e,t){const n=typeof t=="string"?t:void 0,r=typeof t!="string"?{captureContext:t}:void 0;return W().captureMessage(e,n,r)}function Er(e,t){return W().captureEvent(e,t)}function Hi(e,t){Ee().setContext(e,t)}function Hh(e){Ee().setExtras(e)}function Wh(e,t){Ee().setExtra(e,t)}function zh(e){Ee().setTags(e)}function jh(e,t){Ee().setTag(e,t)}function qh(e){Ee().setUser(e)}function Gh(){return Ee().lastEventId()}async function $T(e){const t=R();return t?t.flush(e):(P&&S.warn("Cannot flush events. No client defined."),Promise.resolve(!1))}async function UT(e){const t=R();return t?t.close(e):(P&&S.warn("Cannot flush events and disable SDK. No client defined."),Promise.resolve(!1))}function BT(){return!!R()}function Vh(){const e=R();return!!e&&e.getOptions().enabled!==!1&&!!e.getTransport()}function Yh(e){Ee().addEventProcessor(e)}function Jo(e){const t=R(),n=Ee(),r=W(),{release:s,environment:o=Gs}=t&&t.getOptions()||{},{userAgent:i}=L.navigator||{},a=_p({release:s,environment:o,user:r.getUser()||n.getUser(),...i&&{userAgent:i},...e}),c=n.getSession();return c&&c.status==="ok"&&An(c,{status:"exited"}),ks(),n.setSession(a),r.setSession(a),a}function ks(){const e=Ee(),t=W(),n=t.getSession()||e.getSession();n&&yp(n),bl(),e.setSession(),t.setSession()}function bl(){const e=Ee(),t=W(),n=R(),r=t.getSession()||e.getSession();r&&n&&n.captureSession(r)}function Xa(e=!1){if(e){ks();return}bl()}const Xh="7";function El(e){const t=e.protocol?`${e.protocol}:`:"",n=e.port?`:${e.port}`:"";return`${t}//${e.host}${n}${e.path?`/${e.path}`:""}/api/`}function Kh(e){return`${El(e)}${e.projectId}/envelope/`}function Jh(e,t){const n={sentry_version:Xh};return e.publicKey&&(n.sentry_key=e.publicKey),t&&(n.sentry_client=`${t.name}/${t.version}`),new URLSearchParams(n).toString()}function vl(e,t,n){return t||`${Kh(e)}?${Jh(e,n)}`}function Zh(e,t){const n=pl(e);if(!n)return"";const r=`${El(n)}embed/error-page/`;let s=`dsn=${dn(n)}`;for(const o in t)if(o!=="dsn"&&o!=="onClose")if(o==="user"){const i=t.user;if(!i)continue;i.name&&(s+=`&name=${encodeURIComponent(i.name)}`),i.email&&(s+=`&email=${encodeURIComponent(i.email)}`)}else s+=`&${encodeURIComponent(o)}=${encodeURIComponent(t[o])}`;return`${r}?${s}`}const Ka=[];function Qh(e){const t={};return e.forEach(n=>{const{name:r}=n,s=t[r];s&&!s.isDefaultInstance&&n.isDefaultInstance||(t[r]=n)}),Object.values(t)}function em(e){const t=e.defaultIntegrations||[],n=e.integrations;t.forEach(i=>
9{i.isDefaultInstance=!0});let r;if(Array.isArray(n))r=[...t,...n];else if(typeof n=="function"){const i=n(t);r=Array.isArray(i)?i:[i]}else r=t;const s=Qh(r),o=s.findIndex(i=>i.name==="Debug");if(o>-1){const[i]=s.splice(o,1);s.push(i)}return s}function tm(e,t){const n={};return t.forEach(r=>{r&&wl(e,r,n)}),n}function Ja(e,t){for(const n of t)n&&n.afterAllSetup&&n.afterAllSetup(e)}function wl(e,t,n){if(n[t.name]){P&&S.log(`Integration skipped because it was already installed: ${t.name}`);return}if(n[t.name]=t,Ka.indexOf(t.name)===-1&&typeof t.setupOnce=="function"&&(t.setupOnce(),Ka.push(t.name)),t.setup&&typeof t.setup=="function"&&t.setup(e),typeof t.preprocessEvent=="function"){const r=t.preprocessEvent.bind(t);e.on("preprocessEvent",(s,o)=>r(s,o,e))}if(typeof t.processEvent=="function"){const r=t.processEvent.bind(t),s=Object.assign((o,i)=>r(o,i,e),{id:t.name});e.addEventProcessor(s)}P&&S.log(`Integration installed: ${t.name}`)}function Za(e){const t=R();if(!t){P&&S.warn(`Cannot add integration "${e.name}" because no SDK Client is available.`);return}t.addIntegration(e)}function nm(e,t,n){const r=[{type:"client_report"},{timestamp:Sr(),discarded_events:e}];return Et(t?{dsn:t}:{},[r])}class Xe extends Error{constructor(t,n="warn"){super(t),this.message=t,this.logLevel=n}}const Qa="Not capturing exception because it's already been captured.";class rm{constructor(t){if(this._options=t,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],t.dsn?this._dsn=pl(t.dsn):P&&S.warn("No DSN provided, client will not send events."),this._dsn){const s=vl(this._dsn,t.tunnel,t._metadata?t._metadata.sdk:void 0);this._transport=t.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...t.transportOptions,url:s})}const r=["enableTracing","tracesSampleRate","tracesSampler"].find(s=>s in t&&t[s]==null);r&&St(()=>{console.warn(`[Sentry] Deprecation warning: \`${r}\` is set to undefined, which leads to tracing being enabled. In v9, a value of \`undefined\` will result in tracing being disabled.`)})}captureException(t,n,r){const s=Me();if(Oa(t))return P&&S.log(Qa),s;const o={event_id:s,...n};return this._process(this.eventFromException(t,o).then(i=>this._captureEvent(i,o,r))),o.event_id}captureMessage(t,n,r,s){const o={event_id:Me(),...r},i=ki(t)?t:String(t),a=Ci(t)?this.eventFromMessage(i,n,o):this.eventFromException(t,o);return this._process(a.then(c=>this._captureEvent(c,o,s))),o.event_id}captureEvent(t,n,r){const s=Me();if(n&&n.originalException&&Oa(n.originalException))return P&&S.log(Qa),s;const o={event_id:s,...n},a=(t.sdkProcessingMetadata||{}).capturedSpanScope;return this._process(this._captureEvent(t,o,a||r)),o.event_id}captureSession(t){typeof t.release!="string"?P&&S.warn("Discarded session because of missing or non-string release"):(this.sendSession(t),An(t,{init:!1}))}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(t){const n=this._transport;
9return n?(this.emit("flush"),this._isClientDoneProcessing(t).then(r=>n.flush(t).then(s=>r&&s))):mt(!0)}close(t){return this.flush(t).then(n=>(this.getOptions().enabled=!1,this.emit("close"),n))}getEventProcessors(){return this._eventProcessors}addEventProcessor(t){this._eventProcessors.push(t)}init(){(this._isEnabled()||this._options.integrations.some(({name:t})=>t.startsWith("Spotlight")))&&this._setupIntegrations()}getIntegrationByName(t){return this._integrations[t]}addIntegration(t){const n=this._integrations[t.name];wl(this,t,this._integrations),n||Ja(this,[t])}sendEvent(t,n={}){this.emit("beforeSendEvent",t,n);let r=fh(t,this._dsn,this._options._metadata,this._options.tunnel);for(const o of n.attachments||[])r=rh(r,ch(o));const s=this.sendEnvelope(r);s&&s.then(o=>this.emit("afterSendEvent",t,o),null)}sendSession(t){const n=dh(t,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(n)}recordDroppedEvent(t,n,r){if(this._options.sendClientReports){const s=typeof r=="number"?r:1,o=`${t}:${n}`;P&&S.log(`Recording outcome: "${o}"${s>1?` (${s} times)`:""}`),this._outcomes[o]=(this._outcomes[o]||0)+s}}on(t,n){const r=this._hooks[t]=this._hooks[t]||[];return r.push(n),()=>{const s=r.indexOf(n);s>-1&&r.splice(s,1)}}emit(t,...n){const r=this._hooks[t];r&&r.forEach(s=>s(...n))}sendEnvelope(t){return this.emit("beforeEnvelope",t),this._isEnabled()&&this._transport?this._transport.send(t).then(null,n=>(P&&S.error("Error while sending envelope:",n),n)):(P&&S.error("Transport disabled"),mt({}))}_setupIntegrations(){const{integrations:t}=this._options;this._integrations=tm(this,t),Ja(this,t)}_updateSessionFromEvent(t,n){let r=n.level==="fatal",s=!1;const o=n.exception&&n.exception.values;if(o){s=!0;for(const c of o){const u=c.mechanism;if(u&&u.handled===!1){r=!0;break}}}const i=t.status==="ok";(i&&t.errors===0||i&&r)&&(An(t,{...r&&{status:"crashed"},errors:t.errors||Number(s||r)}),this.captureSession(t))}_isClientDoneProcessing(t){return new He(n=>{let r=0;const s=1,o=setInterval(()=>{this._numProcessing==0?(clearInterval(o),n(!0)):(r+=s,t&&r>=t&&(clearInterval(o),n(!1)))},s)})}_isEnabled(){return this.getOptions().enabled!==!1&&this._transport!==void 0}_prepareEvent(t,n,r=W(),s=Ee()){const o=this.getOptions(),i=Object.keys(this._integrations);return!n.integrations&&i.length>0&&(n.integrations=i),this.emit("preprocessEvent",t,n),t.type||s.setLastEventId(t.event_id||n.event_id),Sl(o,t,n,r,this,s).then(a=>{if(a===null)return a;a.contexts={trace:Cp(r),...a.contexts};const c=ll(this,r);return a.sdkProcessingMetadata={dynamicSamplingContext:c,...a.sdkProcessingMetadata},a})}_captureEvent(t,n={},r){return this._processEvent(t,n,r).then(s=>s.event_id,s=>{P&&(s instanceof Xe&&s.logLevel==="log"?S.log(s.message):S.warn(s))})}_processEvent(t,n,r){const s=this.getOptions(),{sampleRate:o}=s,i=Tl(t),a=Il(t),c=t.type||"error",u=`before send for type \`${c}\``,d=typeof o>"u"?void 0:ws(o);if(a&&typeof d=="number"&&Math.random()>d)return this.recordDroppedEvent("sample_rate","error",t),Es(new Xe(`Discarding event because it's not included in the random sample (sampling rate = ${o})`,"log"));const l=c==="replay_event"?"replay":c,p=(t.sdkProcessingMetadata||{}).capturedSpanIsolationScope;return this._prepareEvent(t,n,r,p).then(h=>{if(h===null)throw this.recordDroppedEvent("event_processor",l,t),new Xe("An event processor returned `null`, will not send event.","log");if(n.data&&n.data.__sentry__===!0)return h;const b=om(this,s,h,n);return sm(b,u)}).then(h=>{if(h===null){if(this.recordDroppedEvent("before_send",l,t),i){const w=1+(t.spans||[]).length;this.recordDroppedEvent("before_send","span",w)}throw new Xe(`${u} returned \`null\`, will not send event.`,"log")}const m=r&&r.getSession();if(!i&&m&&this._updateSessionFromEvent(m,h),i){const y=h.sdkProcessingMetadata&&h.sdkProcessingMetadata.spanCountBeforeProcessing||0,w=h.spans?h.spans.length:0,C=y-w;C>0&&this.recordDroppedEvent("before_send","span",C)}const b=h.transaction_info;if(i&&b&&h.transaction!==t.transaction){const y="custom";h.transaction_info={...b,source:y}}return this.sendEvent(h,n),h}).then(null,h=>{throw h instanceof Xe?h:(this.captureException(h,{data:{__sentry__:!0},originalException:h}),new Xe(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.
10Reason: ${h}`))})}_process(t){this._numProcessing++,t.then(n=>(this._numProcessing--,n),n=>(this._numProcessing--,n))}_clearOutcomes(){const t=this._outcomes;return this._outcomes={},Object.entries(t).map(([n,r])=>{const[s,o]=n.split(":");return{reason:s,category:o,quantity:r}})}_flushOutcomes(){P&&S.log("Flushing outcomes...");const t=this._clearOutcomes();if(t.length===0){P&&S.log("No outcomes to send");return}if(!this._dsn){P&&S.log("No dsn provided, will not send outcomes");return}P&&S.log("Sending outcomes:",t);const n=nm(t,this._options.tunnel&&dn(this._dsn));this.sendEnvelope(n)}}function sm(e,t){const n=`${t} must return \`null\` or a valid event.`;if(yr(e))return e.then(r=>{if(!an(r)&&r!==null)throw new Xe(n);return r},r=>{throw new Xe(`${t} rejected with ${r}`)});if(!an(e)&&e!==null)throw new Xe(n);return e}function om(e,t,n,r){const{beforeSend:s,beforeSendTransaction:o,beforeSendSpan:i}=t;if(Il(n)&&s)return s(n,r);
10if(Tl(n)){if(n.spans&&i){const a=[];for(const c of n.spans){const u=i(c);u?a.push(u):(sl(),e.recordDroppedEvent("before_send","span"))}n.spans=a}if(o){if(n.spans){const a=n.spans.length;n.sdkProcessingMetadata={...n.sdkProcessingMetadata,spanCountBeforeProcessing:a}}return o(n,r)}}return n}function Il(e){return e.type===void 0}function Tl(e){return e.type==="transaction"}function im(e,t){t.debug===!0&&(P?S.enable():St(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})),W().update(t.initialScope);const r=new e(t);return am(r),r.init(),r}function am(e){W().setClient(e)}function cm(e){const t=[];function n(){return e===void 0||t.length<e}function r(i){return t.splice(t.indexOf(i),1)[0]||Promise.resolve(void 0)}function s(i){if(!n())return Es(new Xe("Not adding Promise because buffer limit was reached."));const a=i();return t.indexOf(a)===-1&&t.push(a),a.then(()=>r(a)).then(null,()=>r(a).then(null,()=>{})),a}function o(i){return new He((a,c)=>{let u=t.length;if(!u)return a(!0);const d=setTimeout(()=>{i&&i>0&&a(!1)},i);t.forEach(l=>{mt(l).then(()=>{--u||(clearTimeout(d),a(!0))},c)})})}return{$:t,add:s,drain:o}}const um=60*1e3;function kl(e,t=Date.now()){const n=parseInt(`${e}`,10);if(!isNaN(n))return n*1e3;const r=Date.parse(`${e}`);return isNaN(r)?um:r-t}function lm(e,t){return e[t]||e.all||0}function Cl(e,t,n=Date.now()){return lm(e,t)>n}function xl(e,{statusCode:t,headers:n},r=Date.now()){const s={...e},o=n&&n["x-sentry-rate-limits"],i=n&&n["retry-after"];if(o)for(const a of o.trim().split(",")){const[c,u,,,d]=a.split(":",5),l=parseInt(c,10),f=(isNaN(l)?60:l)*1e3;if(!u)s.all=r+f;else for(const p of u.split(";"))p==="metric_bucket"?(!d||d.split(";").includes("custom"))&&(s[p]=r+f):s[p]=r+f}else i?s.all=r+kl(i,r):t===429&&(s.all=r+60*1e3);return s}const dm=64;function fm(e,t,n=cm(e.bufferSize||dm)){let r={};const s=i=>n.drain(i);function o(i){const a=[];if(un(i,(l,f)=>{const p=Ha(f);if(Cl(r,p)){const h=ec(l,f);e.recordDroppedEvent("ratelimit_backoff",p,h)}else a.push(l)}),a.length===0)return mt({});const c=Et(i[0],a),u=l=>{un(c,(f,p)=>{const h=ec(f,p);e.recordDroppedEvent(l,Ha(p),h)})},d=()=>t({body:Ts(c)}).then(l=>(l.statusCode!==void 0&&(l.statusCode<200||l.statusCode>=300)&&P&&S.warn(`Sentry responded with status code ${l.statusCode} to sent event.`),r=xl(r,l),l),l=>{throw u("network_error"),l});return n.add(d).then(l=>l,l=>{if(l instanceof Xe)return P&&S.error("Skipped sending event because buffer is full."),u("queue_overflow"),mt({});throw l})}return{send:o,flush:s}}function ec(e,t){if(!(t!=="event"&&t!=="transaction"))return Array.isArray(e)?e[1]:void 0}const go=100,_o=5e3,pm=36e5;function hm(e){function t(...n){P&&S.info("[Offline]:",...n)}return n=>{const r=e(n);if(!n.createStore)throw new Error("No `createStore` function was provided");const s=n.createStore(n);let o=_o,i;function a(l,f,p){return Ba(l,["client_report"])?!1:n.shouldStore?n.shouldStore(l,f,p):!0}function c(l){i&&clearTimeout(i),i=setTimeout(async()=>{i=void 0;const f=await s.shift();f&&(t("Attempting to send previously queued event"),f[0].sent_at=new Date().toISOString(),d(f,!0).catch(p=>{t("Failed to retry sending",p)}))},l),typeof i!="number"&&i.unref&&i.unref()}function u(){i||(c(o),o=Math.min(o*2,pm))}async function d(l,f=!1){if(!f&&Ba(l,["replay_event","replay_recording"]))return await s.push(l),c(go),{};try{const p=await r.send(l);let h=go;if(p){if(p.headers&&p.headers["retry-after"])h=kl(p.headers["retry-after"]);else if(p.headers&&p.headers["x-sentry-rate-limits"])h=6e4;else if((p.statusCode||0)>=400)return p}return c(h),o=_o,p}catch(p){if(await a(l,p,o))return f?await s.unshift(l):await s.push(l),u(),t("Error sending. Event queued.",p),{};throw p}}return n.flushAtStartup&&u(),{send:d,flush:l=>(l===void 0&&(o=_o,c(go)),r.flush(l))}}}function Rl(e,t){let n;return un(e,(r,s)=>(t.includes(s)&&(n=Array.isArray(r)?r[1]:void 0),!!n)),n}function mm(e,t){return n=>{const r=e(n);return{...r,send:async s=>{const o=Rl(s,["event","transaction","profile","replay_event"]);return o&&(o.release=t),r.send(s)}}}}function gm(e,t){return Et(t?{...e[0],dsn:t}:e[0],e[1])}function HT(e,t){return n=>{const r=e(n),s=new Map;function o(c,u){const d=u?`${c}:${u}`:c;let l=s.get(d);if(!l){const f=dl(c);if(!f)return;const p=vl(f,n.tunnel);l=u?mm(e,u)({...n,url:p}):e({...n,url:p}),s.set(d,l)}return[c,l]}async function i(c){function u(p){const h=p&&p.length?p:["event"];return Rl(c,h)}const d=t({envelope:c,getEvent:u}).map(p=>typeof p=="string"?o(p,void 0):o(p.dsn,p.release)).filter(p=>!!p),l=d.length?d:[["",r]];return(await Promise.all(l.map(([p,h])=>
10h.send(gm(c,p)))))[0]}async function a(c){const u=[...s.values(),r];return(await Promise.all(u.map(l=>l.flush(c)))).every(l=>l)}return{send:i,flush:a}}}function Ml(e,t){const n=t&&t.getDsn(),r=t&&t.getOptions().tunnel;return ym(e,n)||_m(e,r)}function _m(e,t){return t?tc(e)===tc(t):!1}function ym(e,t){return t?e.includes(t.host):!1}function tc(e){return e[e.length-1]==="/"?e.slice(0,-1):e}function WT(e,...t){const n=new String(String.raw(e,...t));return n.__sentry_template_string__=e.join("\0").replace(/%/g,"%%").replace(/\0/g,"%s"),n.__sentry_template_values__=t,n}function Al(e,t,n=[t],r="npm"){const s=e._metadata||{};s.sdk||(s.sdk={name:`sentry.javascript.${t}`,packages:n.map(o=>({name:`${r}:@sentry/${o}`,version:At})),version:At}),e._metadata=s}function Ol(e={}){const t=R();if(!Vh()||!t)return{};const n=bt(),r=qt(n);if(r.getTraceData)return r.getTraceData(e);const s=W(),o=e.span||fe(),i=o?Up(o):Sm(s),a=o?Vt(o):ll(t,s),c=Ku(a);return Ju.test(i)?{"sentry-trace":i,baggage:c}:(S.warn("Invalid sentry-trace data. Cannot generate trace data"),{})}function Sm(e){const{traceId:t,sampled:n,spanId:r}=e.getPropagationContext();return Qu(t,r,n)}const bm=100;function nt(e,t){const n=R(),r=Ee();if(!n)return;const{beforeBreadcrumb:s=null,maxBreadcrumbs:o=bm}=n.getOptions();if(o<=0)return;const a={timestamp:Sr(),...e},c=s?St(()=>s(a,t)):a;c!==null&&(n.emit&&n.emit("beforeAddBreadcrumb",c,t),r.addBreadcrumb(c,o))}let nc;const Em="FunctionToString",rc=new WeakMap,vm=(()=>({name:Em,setupOnce(){nc=Function.prototype.toString;try{Function.prototype.toString=function(...e){const t=Ri(this),n=rc.has(R())&&t!==void 0?t:this;return nc.apply(n,e)}}catch{}},setup(e){rc.set(e,!0)}})),wm=vm,Im=[/^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.L')",`can't redefine non-configurable property "solana"`,"vv().getRestrictions is not a function. (In 'vv().getRestrictions(1,a)', 'vv().getRestrictions' is undefined)","Can't find variable: _AutofillCallbackHandler",/^Non-Error promise rejection captured with value: Object Not Found Matching Id:\d+, MethodName:simulateEvent, ParamCount:\d+$/,/^Java exception was raised during method invocation$/],Tm="InboundFilters",km=((e={})=>({name:Tm,processEvent(t,n,r){const s=r.getOptions(),o=xm(e,s);return Rm(t,o)?null:t}})),Cm=km;function xm(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:Im],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[]],ignoreInternal:e.ignoreInternal!==void 0?e.ignoreInternal:!0}}function Rm(e,t){return t.ignoreInternal&&Pm(e)?(P&&S.warn(`Event dropped due to being internal Sentry Error.
11Event: ${It(e)}`),!0):Mm(e,t.ignoreErrors)?(P&&S.warn(`Event dropped due to being matched by \`ignoreErrors\` option.
12Event: ${It(e)}`),!0):Fm(e)?(P&&S.warn(`Event dropped due to not having an error message, error type or stacktrace.
13Event: ${It(e)}`),!0):Am(e,t.ignoreTransactions)?(P&&S.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.
14Event: ${It(e)}`),!0):Om(e,t.denyUrls)?(P&&S.warn(`Event dropped due to being matched by \`denyUrls\` option.
15Event: ${It(e)}.
16Url: ${Cs(e)}`),!0):Nm(e,t.allowUrls)?!1:(P&&S.warn(`Event dropped due to not being matched by \`allowUrls\` option.
17Event: ${It(e)}.
18Url: ${Cs(e)}`),!0)}function Mm(e,t){return e.type||!t||!t.length?!1:Dm(e).some(n=>Nt(n,t))}function Am(e,t){if(e.type!=="transaction"||!t||!t.length)return!1;const n=e.transaction;return n?Nt(n,t):!1}function Om(e,t){if(!t||!t.length)return!1;const n=Cs(e);return n?Nt(n,t):!1}function Nm(e,t){if(!t||!t.length)return!0;const n=Cs(e);return n?Nt(n,t):!0}function Dm(e){const t=[];e.message&&t.push(e.message);let n;try{n=e.exception.values[e.exception.values.length-1]}catch{}return n&&n.value&&(t.push(n.value),n.type&&t.push(`${n.type}: ${n.value}`)),t}function Pm(e){try{return e.exception.values[0].type==="SentryError"}catch{}return!1}function Lm(e=[]){for(let t=e.length-1;t>=0;t--){const n=e[t];if(n&&n.filename!=="<anonymous>"&&n.filename!=="[native code]")return n.filename||null}return null}function Cs(e){try{let t;try{t=e.exception.values[0].stacktrace.frames}catch{}return t?Lm(t):null}catch{return P&&S.error(`Cannot extract url for event ${It(e)}`),null}}function Fm(e){return e.type||!e.exception||!e.exception.values||e.exception.values.length===0?!1:!e.message&&!e.exception.values.some(t=>t.stacktrace||t.type&&t.type!=="Error"||t.value)}function $m(e,t,n=250,r,s,o,i){if(!o.exception||!o.exception.values||!i||!pt(i.originalException,Error))return;const a=o.exception.values.length>0?o.exception.values[o.exception.values.length-1]:void 0;a&&(o.exception.values=Um(Zo(e,t,s,i.originalException,r,o.exception.values,a,0),n))}function Zo(e,t,n,r,s,o,i,a){if(o.length>=n+1)return o;let c=[...o];if(pt(r[s],Error)){sc(i,a);const u=e(t,r[s]),d=c.length;oc(u,s,d,a),c=Zo(e,t,n,r[s],s,[u,...c],u,d)}
18return Array.isArray(r.errors)&&r.errors.forEach((u,d)=>{if(pt(u,Error)){sc(i,a);const l=e(t,u),f=c.length;oc(l,`errors[${d}]`,f,a),c=Zo(e,t,n,u,s,[l,...c],l,f)}}),c}function sc(e,t){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,...e.type==="AggregateError"&&{is_exception_group:!0},exception_id:t}}function oc(e,t,n,r){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,type:"chained",source:t,exception_id:n,parent_id:r}}function Um(e,t){return e.map(n=>(n.value&&(n.value=Ot(n.value,t)),n))}const Nl=new Map,ic=new Set;function Bm(e){if(L._sentryModuleMetadata)for(const t of Object.keys(L._sentryModuleMetadata)){const n=L._sentryModuleMetadata[t];if(ic.has(t))continue;ic.add(t);const r=e(t);for(const s of r.reverse())if(s.filename){Nl.set(s.filename,n);break}}}function Hm(e,t){return Bm(e),Nl.get(t)}function Dl(e,t){try{t.exception.values.forEach(n=>{if(n.stacktrace)for(const r of n.stacktrace.frames||[]){if(!r.filename||r.module_metadata)continue;const s=Hm(e,r.filename);s&&(r.module_metadata=s)}})}catch{}}function Pl(e){try{e.exception.values.forEach(t=>{if(t.stacktrace)for(const n of t.stacktrace.frames||[])delete n.module_metadata})}catch{}}const zT=()=>({name:"ModuleMetadata",setup(e){e.on("beforeEnvelope",t=>{un(t,(n,r)=>{if(r==="event"){const s=Array.isArray(n)?n[1]:void 0;s&&(Pl(s),n[1]=s)}})}),e.on("applyFrameMetadata",t=>{if(t.type)return;const n=e.getOptions().stackParser;Dl(n,t)})}});function sn(e){if(!e)return{};const t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};const n=t[6]||"",r=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],search:n,hash:r,relative:t[5]+n+r}}function Wm(e){return e.split(/[?#]/,1)[0]}function ac(e){return e.split(/\\?\//).filter(t=>t.length>0&&t!==",").length}function Ll(e){const t="console";zt(t,e),jt(t,zm)}function zm(){"console"in L&&ys.forEach(function(e){e in L.console&&Re(L.console,e,function(t){return Ss[e]=t,function(...n){We("console",{args:n,level:e});const s=Ss[e];s&&s.apply(L.console,n)}})})}function Wi(e){return e==="warn"?"warning":["fatal","error","warning","log","info","debug"].includes(e)?e:"log"}const jm="CaptureConsole",qm=((e={})=>{const t=e.levels||ys,n=!!e.handled;return{name:jm,setup(r){"console"in L&&Ll(({args:s,level:o})=>{R()!==r||!t.includes(o)||Gm(s,o,n)})}}}),jT=qm;function Gm(e,t,n){const r={level:Wi(t),extra:{arguments:e}};ze(s=>{if(s.addEventProcessor(a=>(a.logger="console",$t(a,{handled:n,type:"console"}),a)),t==="assert"){if(!e[0]){const a=`Assertion failed: ${bs(e.slice(1)," ")||"console.assert"}`;s.setExtra("arguments",e.slice(1)),Ko(a,r)}return}const o=e.find(a=>a instanceof Error);if(o){Vs(o,r);return}const i=bs(e," ");Ko(i,r)})}const Vm="Debug",Ym=((e={})=>{const t={debugger:!1,stringify:!1,...e};return{name:Vm,setup(n){n.on("beforeSendEvent",(r,s)=>{if(t.debugger)debugger;St(()=>{t.stringify?(console.log(JSON.stringify(r,null,2)),s&&Object.keys(s).length&&console.log(JSON.stringify(s,null,2))):(console.log(r),s&&Object.keys(s).length&&console.log(s))})})}}}),qT=Ym,Xm="Dedupe",Km=(()=>{let e;return{name:Xm,processEvent(t){if(t.type)return t;try{if(Zm(t,e))return P&&S.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}return e=t}}}),Jm=Km;function Zm(e,t){return t?!!(Qm(e,t)||eg(e,t)):!1}function Qm(e,t){const n=e.message,r=t.message;return!(!n&&!r||n&&!r||!n&&r||n!==r||!$l(e,t)||!Fl(e,t))}function eg(e,t){const n=cc(t),r=cc(e);return!(!n||!r||n.type!==r.type||n.value!==r.value||!$l(e,t)||!Fl(e,t))}function Fl(e,t){let n=$o(e),r=$o(t);if(!n&&!r)return!0;if(n&&!r||!n&&r||(n=n,r=r,r.length!==n.length))return!1;for(let s=0;s<r.length;s++){const o=r[s],i=n[s];if(o.filename!==i.filename||o.lineno!==i.lineno||o.colno!==i.colno||o.function!==i.function)return!1}return!0}function $l(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 cc(e){return e.exception&&e.exception.values&&e.exception.values[0]}const tg="ExtraErrorData",ng=((e={})=>{const{depth:t=3,captureErrorCause:n=!0}=e;return{name:tg,processEvent(r,s,o){const{maxValueLength:i=250}=o.getOptions();return rg(r,s,t,n,i)}}}),GT=ng;function rg(e,t={},n,r,s){if(!t.originalException||!ut(t.originalException))return e;const o=t.originalException.name||t.originalException.constructor.name,i=sg(t.originalException,r,s);if(i){const a={...e.contexts},c=Be(i,n);return an(c)&&(De(c,"__sentry_skip_normalization__",!0),a[o]=c),{...e,contexts:a}}return e}
18function sg(e,t,n){try{const r=["name","message","stack","line","column","fileName","lineNumber","columnNumber","toJSON"],s={};for(const o of Object.keys(e)){if(r.indexOf(o)!==-1)continue;const i=e[o];s[o]=ut(i)||typeof i=="string"?Ot(`${i}`,n):i}if(t&&e.cause!==void 0&&(s.cause=ut(e.cause)?e.cause.toString():e.cause),typeof e.toJSON=="function"){const o=e.toJSON();for(const i of Object.keys(o)){const a=o[i];s[i]=ut(a)?a.toString():a}}return s}catch(r){P&&S.error("Unable to extract extra data from the Error object:",r)}return null}function og(e,t){let n=0;for(let r=e.length-1;r>=0;r--){const s=e[r];s==="."?e.splice(r,1):s===".."?(e.splice(r,1),n++):n&&(e.splice(r,1),n--)}if(t)for(;n--;n)e.unshift("..");return e}const ig=/^(\S+:\\|\/?)([\s\S]*?)((?:\.{1,2}|[^/\\]+?|)(\.[^./\\]*|))(?:[/\\]*)$/;function ag(e){const t=e.length>1024?`<truncated>${e.slice(-1024)}`:e,n=ig.exec(t);return n?n.slice(1):[]}function uc(...e){let t="",n=!1;for(let r=e.length-1;r>=-1&&!n;r--){const s=r>=0?e[r]:"/";s&&(t=`${s}/${t}`,n=s.charAt(0)==="/")}return t=og(t.split("/").filter(r=>!!r),!n).join("/"),(n?"/":"")+t||"."}function lc(e){let t=0;for(;t<e.length&&e[t]==="";t++);let n=e.length-1;for(;n>=0&&e[n]==="";n--);return t>n?[]:e.slice(t,n-t+1)}function cg(e,t){e=uc(e).slice(1),t=uc(t).slice(1);const n=lc(e.split("/")),r=lc(t.split("/")),s=Math.min(n.length,r.length);let o=s;for(let a=0;a<s;a++)if(n[a]!==r[a]){o=a;break}let i=[];for(let a=o;a<n.length;a++)i.push("..");return i=i.concat(r.slice(o)),i.join("/")}function ug(e,t){return ag(e)[2]||""}const lg="RewriteFrames",VT=(e={})=>{const t=e.root,n=e.prefix||"app:///",r="window"in L&&L.window!==void 0,s=e.iteratee||dg({isBrowser:r,root:t,prefix:n});function o(a){try{return{...a,exception:{...a.exception,values:a.exception.values.map(c=>({...c,...c.stacktrace&&{stacktrace:i(c.stacktrace)}}))}}}catch{return a}}function i(a){return{...a,frames:a&&a.frames&&a.frames.map(c=>s(c))}}return{name:lg,processEvent(a){let c=a;return a.exception&&Array.isArray(a.exception.values)&&(c=o(c)),c}}};function dg({isBrowser:e,root:t,prefix:n}){return r=>{if(!r.filename)return r;const s=/^[a-zA-Z]:\\/.test(r.filename)||r.filename.includes("\\")&&!r.filename.includes("/"),o=/^\//.test(r.filename);if(e){if(t){const i=r.filename;i.indexOf(t)===0&&(r.filename=i.replace(t,n))}}else if(s||o){const i=s?r.filename.replace(/^[a-zA-Z]:/,"").replace(/\\/g,"/"):r.filename,a=t?cg(t,i):ug(i);r.filename=`${n}${a}`}return r}}const fg="SessionTiming",pg=(()=>{const e=ae()*1e3;return{name:fg,processEvent(t){const n=ae()*1e3;return{...t,extra:{...t.extra,"session:start":e,"session:duration":n-e,"session:end":n}}}}}),YT=pg,hg=10,mg="ZodErrors";function gg(e){return ut(e)&&e.name==="ZodError"&&Array.isArray(e.issues)}function _g(e){return{...e,path:"path"in e&&Array.isArray(e.path)?e.path.join("."):void 0,keys:"keys"in e?JSON.stringify(e.keys):void 0,unionErrors:"unionErrors"in e?JSON.stringify(e.unionErrors):void 0}}function yg(e){return e.map(t=>typeof t=="number"?"<array>":t).join(".")}function Sg(e){const t=new Set;for(const r of e.issues){const s=yg(r.path);s.length>0&&t.add(s)}const n=Array.from(t);if(n.length===0){let r="variable";if(e.issues.length>0){const s=e.issues[0];s!==void 0&&"expected"in s&&typeof s.expected=="string"&&(r=s.expected)}return`Failed to validate ${r}`}return`Failed to validate keys: ${Ot(n.join(", "),100)}`}function bg(e,t=!1,n,r){if(!n.exception||!n.exception.values||!r||!r.originalException||!gg(r.originalException)||r.originalException.issues.length===0)return n;try{const o=(t?r.originalException.issues:r.originalException.issues.slice(0,e)).map(_g);return t&&(Array.isArray(r.attachments)||(r.attachments=[]),r.attachments.push({filename:"zod_issues.json",data:JSON.stringify({issues:o})})),{...n,exception:{...n.exception,values:[{...n.exception.values[0],value:Sg(r.originalException)},...n.exception.values.slice(1)]},extra:{...n.extra,"zoderror.issues":o.slice(0,e)}}}catch(s){return{...n,extra:{...n.extra,"zoderrors sentry integration parse error":{message:"an exception was thrown while processing ZodError within applyZodErrorsToEvent()",error:s 
18instanceof Error?`${s.name}: ${s.message}
19${s.stack}`:"unknown"}}}}}const Eg=((e={})=>{const t=typeof e.limit>"u"?hg:e.limit;return{name:mg,processEvent(n,r){return bg(t,e.saveZodIssuesAsAttachment,n,r)}}}),XT=Eg,KT=e=>({name:"ThirdPartyErrorsFilter",setup(t){t.on("beforeEnvelope",n=>{un(n,(r,s)=>{if(s==="event"){const o=Array.isArray(r)?r[1]:void 0;o&&(Pl(o),r[1]=o)}})}),t.on("applyFrameMetadata",n=>{if(n.type)return;const r=t.getOptions().stackParser;Dl(r,n)})},processEvent(t){const n=vg(t);if(n){const r=e.behaviour==="drop-error-if-contains-third-party-frames"||e.behaviour==="apply-tag-if-contains-third-party-frames"?"some":"every";if(n[r](o=>!o.some(i=>e.filterKeys.includes(i)))){if(e.behaviour==="drop-error-if-contains-third-party-frames"||e.behaviour==="drop-error-if-exclusively-contains-third-party-frames")return null;t.tags={...t.tags,third_party_code:!0}}}return t}});function vg(e){const t=$o(e);if(t)return t.filter(n=>!!n.filename).map(n=>n.module_metadata?Object.keys(n.module_metadata).filter(r=>r.startsWith(dc)).map(r=>r.slice(dc.length)):[])}const dc="_sentryBundlerPluginAppKey:",Ul="c",Bl="g",zi="s",Hl="d",wg=5e3;function Wl(e,t){const n=_r("globalMetricsAggregators",()=>new WeakMap),r=n.get(e);if(r)return r;const s=new t(e);return e.on("flush",()=>s.flush()),e.on("close",()=>s.close()),n.set(e,s),s}function Ys(e,t,n,r,s={}){const o=s.client||R();if(!o)return;const i=fe(),a=i?me(i):void 0,c=a&&H(a).description,{unit:u,tags:d,timestamp:l}=s,{release:f,environment:p}=o.getOptions(),h={};f&&(h.release=f),p&&(h.environment=p),c&&(h.transaction=c),P&&S.log(`Adding value of ${r} to ${t} metric ${n}`),Wl(o,e).add(t,n,r,u,{...h,...d},l)}function Ig(e,t,n=1,r){Ys(e,Ul,t,ji(n),r)}function Qo(e,t,n,r){Ys(e,Hl,t,ji(n),r)}function Tg(e,t,n,r="second",s){if(typeof n=="function"){const o=ae();return _h({op:"metrics.timing",name:t,startTime:o,onlyIfParent:!0},i=>Di(()=>n(),()=>{},()=>{const a=ae(),c=a-o;Qo(e,t,c,{...s,unit:"second"}),i.end(a)}))}Qo(e,t,n,{...s,unit:r})}function kg(e,t,n,r){Ys(e,zi,t,n,r)}function Cg(e,t,n,r){Ys(e,Bl,t,ji(n),r)}const vr={increment:Ig,distribution:Qo,set:kg,gauge:Cg,timing:Tg,getMetricsAggregatorForClient:Wl};function ji(e){return typeof e=="string"?parseInt(e):e}function xg(e,t,n,r){const s=Object.entries(_e(r)).sort((o,i)=>o[0].localeCompare(i[0]));return`${e}${t}${n}${s}`}function Rg(e){let t=0;for(let n=0;n<e.length;n++){const r=e.charCodeAt(n);t=(t<<5)-t+r,t&=t}return t>>>0}function Mg(e){let t="";for(const n of e){const r=Object.entries(n.tags),s=r.length>0?`|#${r.map(([o,i])=>`${o}:${i}`).join(",")}`:"";t+=`${n.name}@${n.unit}:${n.metric}|${n.metricType}${s}|T${n.timestamp}
20`}return t}function Ag(e){return e.replace(/[^\w]+/gi,"_")}function Og(e){return e.replace(/[^\w\-.]+/gi,"_")}function Ng(e){return e.replace(/[^\w\-./]+/gi,"")}const Dg=[[`
21`,"\\n"],["\r","\\r"],["	","\\t"],["\\","\\\\"],["|","\\u{7c}"],[",","\\u{2c}"]];function Pg(e){for(const[t,n]of Dg)if(e===t)return n;return e}function Lg(e){return[...e].reduce((t,n)=>t+Pg(n),"")}function Fg(e){const t={};for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)){const r=Ng(n);t[r]=Lg(String(e[n]))}return t}function $g(e,t){S.log(`Flushing aggregated metrics, number of metrics: ${t.length}`);const n=e.getDsn(),r=e.getSdkMetadata(),s=e.getOptions().tunnel,o=Ug(t,n,r,s);e.sendEnvelope(o)}function Ug(e,t,n,r){const s={sent_at:new Date().toISOString()};n&&n.sdk&&(s.sdk={name:n.sdk.name,version:n.sdk.version}),r&&t&&(s.dsn=dn(t));const o=Bg(e);return Et(s,[o])}function Bg(e){const t=Mg(e);return[{type:"statsd",length:t.length},t]}class Hg{constructor(t){this._value=t}get weight(){return 1}add(t){this._value+=t}toString(){return`${this._value}`}}class Wg{constructor(t){this._last=t,this._min=t,this._max=t,this._sum=t,this._count=1}get weight(){return 5}add(t){this._last=t,t<this._min&&(this._min=t),t>this._max&&(this._max=t),this._sum+=t,this._count++}toString(){return`${this._last}:${this._min}:${this._max}:${this._sum}:${this._count}`}}class zg{constructor(t){this._value=[t]}get weight(){return this._value.length}add(t){this._value.push(t)}toString(){return this._value.join(":")}}class jg{constructor(t){this.first=t,this._value=new Set([t])}get weight(){return this._value.size}add(t){this._value.add(t)}toString(){return Array.from(this._value).map(t=>typeof t=="string"?Rg(t):t).join(":")}}const qg={[Ul]:Hg,[Bl]:Wg,[Hl]:zg,[zi]:jg};class wr{constructor(t){this._client=t,this._buckets=new Map,this._interval=setInterval(()=>this.flush(),wg)}add(t,n,r,s="none",o={},i=ae()){const a=Math.floor(i),c=Og(n),u=Fg(o),d=Ag(s),l=xg(t,c,d,u);let f=this._buckets.get(l);const p=f&&t===zi?f.metric.weight:0;f?(f.metric.add(r),f.timestamp<a&&(f.timestamp=a)):(f={metric:new qg[t](r),timestamp:a,metricType:t,name:c,unit:d,tags:u},this._buckets.set(l,f));const h=typeof r=="string"?f.metric.weight-p:r;zp(t,c,h,d,o,l)}flush(){if(this._buckets.size===0)return;const t=Array.from(this._buckets.values());$g(this._client,t),this._buckets.clear()}close(){clearInterval(this._interval),this.flush()}}function Gg(e,t,n,r,s="auto.http.browser"){if(!e.fetchData)return;const o=Ht()&&t(e.fetchData.url);if(e.endTimestamp&&o){const f=e.fetchData.__span;if(!f)return;const p=r[f];p&&(Xg(p,e),delete r[f]);return}const{method:i,url:a}=e.fetchData,c=Yg(a),u=c?sn(c).host:void 0,d=!!fe(),l=o&&d?et({name:`${i} ${a}`,attributes:{url:a,type:"fetch","http.method":i,"http.url":c,"server.address":u,[Z]:s,[Ae]:"http.client"}}):new Gt;if(e.fetchData.__span=l.spanContext().spanId,r[l.spanContext().spanId]=l,n(e.fetchData.url)){const f=e.args[0],p=e.args[1]||{},h=Vg(f,p,Ht()&&d?l:void 0);h&&(e.args[1]=p,p.headers=h)}return l}function Vg(e,t,n){const r=Ol({span:n}),s=r["sentry-trace"],o=r.baggage;if(!s)return;const i=t.headers||(Kg(e)?e.headers:void 0);if(i)if(Jg(i)){const a=new Headers(i);if(a.set("sentry-trace",s),o){const c=a.get("baggage");if(c){const u=Hr(c);a.set("baggage",u?`${u},${o}`:o)}else a.set("baggage",o)}return a}else if(Array.isArray(i)){const a=[...i.filter(c=>!(Array.isArray(c)&&c[0]==="sentry-trace")).map(c=>{if(Array.isArray(c)&&c[0]==="baggage"&&typeof c[1]=="string"){const[u,d,...l]=c;return[u,Hr(d),...l]}else return c}),["sentry-trace",s]];return o&&a.push(["baggage",o]),a}else{const a="baggage"in i?i.baggage:void 0;let c=[];return Array.isArray(a)?c=a.map(u=>typeof u=="string"?Hr(u):u).filter(u=>u===""):a&&c.push(Hr(a)),o&&c.push(o),{...i,"sentry-trace":s,baggage:c.length>0?c.join(","):void 0}}else return{...r}}function Yg(e){try{return new URL(e).href}catch{return}}function Xg(e,t){if(t.response){Yu(e,t.response.status);const n=t.response&&t.response.headers&&t.response.headers.get("content-length");if(n){const r=parseInt(n);r>0&&e.setAttribute("http.response_content_length",r)}}else t.error&&e.setStatus({code:Se,message:"internal_error"});e.end()}function Hr(e){return e.split(",").filter(t=>!t.split("=")[0].startsWith(Ni)).join(",")}function Kg(e){return typeof Request<"u"&&pt(e,Request)}function Jg(e){return typeof Headers<"u"&&pt(e,Headers)}function Zg(e,t={},n=W()){const{message:r,name:s,email:o,url:i,source:a,associatedEventId:c,tags:u}=e,d={contexts:{feedback:_e({contact_email:o,name:s,message:r,url:i,source:a,associated_event_id:c})},type:"feedback",level:"info",tags:u},l=n&&n.getClient()||R();return l&&l.emit("beforeSendFeedback",d,t),n.captureEvent(d,t)}function Qg(){return{bindClient(e){W().setClient(e)},withScope:ze,getClient:()=>R(),getScope:W,getIsolationScope:Ee,captureException:(e,t)=>
21W().captureException(e,t),captureMessage:(e,t,n)=>W().captureMessage(e,t,n),captureEvent:Er,addBreadcrumb:nt,setUser:qh,setTags:zh,setTag:jh,setExtra:Wh,setExtras:Hh,setContext:Hi,getIntegration(e){const t=R();return t&&t.getIntegrationByName(e.id)||null},startSession:Jo,endSession:ks,captureSession(e){if(e)return ks();e_()}}}const JT=Qg;function e_(){const e=W(),t=R(),n=e.getSession();t&&n&&t.captureSession(n)}function zl(e){if(e!==void 0)return e>=400&&e<500?"warning":e>=500?"error":void 0}const xs=L;function jl(){if(!("fetch"in xs))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch{return!1}}function ei(e){return e&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function ql(){if(typeof EdgeRuntime=="string")return!0;if(!jl())return!1;if(ei(xs.fetch))return!0;let e=!1;const t=xs.document;if(t&&typeof t.createElement=="function")try{const n=t.createElement("iframe");n.hidden=!0,t.head.appendChild(n),n.contentWindow&&n.contentWindow.fetch&&(e=ei(n.contentWindow.fetch)),t.head.removeChild(n)}catch(n){Wt&&S.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",n)}return e}function t_(){return"ReportingObserver"in xs}function qi(e,t){const n="fetch";zt(n,e),jt(n,()=>Gl(void 0,t))}function n_(e){const t="fetch-body-resolved";zt(t,e),jt(t,()=>Gl(s_))}function Gl(e,t=!1){t&&!ql()||Re(L,"fetch",function(n){return function(...r){const s=new Error,{method:o,url:i}=o_(r),a={args:r,fetchData:{method:o,url:i},startTimestamp:ae()*1e3,virtualError:s};return e||We("fetch",{...a}),n.apply(L,r).then(async c=>(e?e(c):We("fetch",{...a,endTimestamp:ae()*1e3,response:c}),c),c=>{throw We("fetch",{...a,endTimestamp:ae()*1e3,error:c}),ut(c)&&c.stack===void 0&&(c.stack=s.stack,De(c,"framesToPop",1)),c})}})}async function r_(e,t){if(e&&e.body){const n=e.body,r=n.getReader(),s=setTimeout(()=>{n.cancel().then(null,()=>{})},90*1e3);let o=!0;for(;o;){let i;try{i=setTimeout(()=>{n.cancel().then(null,()=>{})},5e3);const{done:a}=await r.read();clearTimeout(i),a&&(t(),o=!1)}catch{o=!1}finally{clearTimeout(i)}}clearTimeout(s),r.releaseLock(),n.cancel().then(null,()=>{})}}function s_(e){let t;try{t=e.clone()}catch{return}r_(t,()=>{We("fetch-body-resolved",{endTimestamp:ae()*1e3,response:e})})}function ti(e,t){return!!e&&typeof e=="object"&&!!e[t]}function fc(e){return typeof e=="string"?e:e?ti(e,"url")?e.url:e.toString?e.toString():"":""}function o_(e){if(e.length===0)return{method:"GET",url:""};if(e.length===2){const[n,r]=e;return{url:fc(n),method:ti(r,"method")?String(r.method).toUpperCase():"GET"}}const t=e[0];return{url:fc(t),method:ti(t,"method")?String(t.method).toUpperCase():"GET"}}function i_(){return typeof __SENTRY_BROWSER_BUNDLE__<"u"&&!!__SENTRY_BROWSER_BUNDLE__}function a_(){return"npm"}function c_(){return!i_()&&Object.prototype.toString.call(typeof process<"u"?process:0)==="[object process]"}function ni(){return typeof window<"u"&&(!c_()||u_())}function u_(){const e=L.process;return!!e&&e.type==="renderer"}const Wr=L;function l_(){const e=Wr.chrome,t=e&&e.app&&e.app.runtime,n="history"in Wr&&!!Wr.history.pushState&&!!Wr.history.replaceState;return!t&&n}function d_(e,t){return e??t()}function on(e){let t,n=e[0],r=1;for(;r<e.length;){const s=e[r],o=e[r+1];if(r+=2,(s==="optionalAccess"||s==="optionalCall")&&n==null)return;s==="access"||s==="optionalAccess"?(t=n,n=o(n)):(s==="call"||s==="optionalCall")&&(n=o((...i)=>n.call(t,...i)),t=void 0)}return n}const T=L;let ri=0;function Vl(){return ri>0}function f_(){ri++,setTimeout(()=>{ri--})}function Dn(e,t={}){function n(s){return typeof s=="function"}if(!n(e))return e;try{const s=e.__sentry_wrapped__;if(s)return typeof s=="function"?s:e;if(Ri(e))return e}catch{return e}const r=function(...s){try{const o=s.map(i=>Dn(i,t));return e.apply(this,o)}catch(o){throw f_(),ze(i=>{i.addEventProcessor(a=>(t.mechanism&&(Bo(a,void 0),$t(a,t.mechanism)),a.extra={...a.extra,arguments:s},a)),Vs(o)}),o}};try{for(const s in e)Object.prototype.hasOwnProperty.call(e,s)&&(r[s]=e[s])}catch{}Wu(r,e),De(e,"__sentry_wrapped__",r);try{Object.getOwnPropertyDescriptor(r,"name").configurable&&Object.defineProperty(r,"name",{get(){return e.name}})}catch{}return r}const G=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;function Gi(e,t){const n=Vi(e,t),r={type:__(t),value:y_(t)};return n.length&&(r.stacktrace={frames:n}),r.type===void 0&&r.value===""&&(r.value="Unrecoverable error caught"),r}function p_(e,t,n,r){const s=R(),o=s&&s.getOptions().normalizeDepth,i=w_(t),a={__serialized__:hl(t,o)};if(i)return{exception:{values:[Gi(e,i)]},extra:a};const c={exception:{values:[{type:Ws(t)?t.constructor.name:r?"UnhandledRejection":"Error",value:E_(t,{isUnhandledRejection:r})}]},extra:a};if(n){const u=Vi(e,n);u.length&&(c.exception.values[0].stacktrace={frames:u})}return c}function yo(e,t){return{exception:{values:[Gi(e,t)]}}}function Vi(e,t){const n=t.stacktrace||t.stack||"",r=m_(t),s=g_(t);try{return e(n,r,s)}catch{}return[]}const h_=/Minified React error #\d+;/i;function m_(e){return e&&h_.test(e.message)?1:0}function g_(e){return typeof e.framesToPop=="number"?e.framesToPop:0}function Yl(e){return typeof WebAssembly<"u"&&typeof WebAssembly.Exception<"u"?e instanceof WebAssembly.Exception:!1}function __(e){const t=e&&e.name;return!t&&Yl(e)?e.message&&Array.isArray(e.message)&&e.message.length==2?e.message[0]:"WebAssembly.Exception":t}function y_(e){const t=e&&e.message;return t?t.error&&typeof t.error.message=="string"?t.error.message:Yl(e)&&Array.isArray(e.message)&&e.message.length==2?e.message[1]:t:"No error message"}function S_(e,t,n,r){const s=n&&n.syntheticException||void 0,o=Yi(e,t,s,r);return $t(o),o.level="error",n&&n.event_id&&(o.event_id=n.event_id),mt(o)}function b_(e,t,n="info",r,s){const o=r&&r.syntheticException||void 0,i=si(e,t,o,s);return i.level=n,r&&r.event_id&&(i.event_id=r.event_id),mt(i)}
21function Yi(e,t,n,r,s){let o;if(Uu(t)&&t.error)return yo(e,t.error);if(Ra(t)||sp(t)){const i=t;if("stack"in t)o=yo(e,t);else{const a=i.name||(Ra(i)?"DOMError":"DOMException"),c=i.message?`${a}: ${i.message}`:a;o=si(e,c,n,r),Bo(o,c)}return"code"in i&&(o.tags={...o.tags,"DOMException.code":`${i.code}`}),o}return ut(t)?yo(e,t):an(t)||Ws(t)?(o=p_(e,t,n,s),$t(o,{synthetic:!0}),o):(o=si(e,t,n,r),Bo(o,`${t}`),$t(o,{synthetic:!0}),o)}function si(e,t,n,r){const s={};if(r&&n){const o=Vi(e,n);o.length&&(s.exception={values:[{value:t,stacktrace:{frames:o}}]}),$t(s,{synthetic:!0})}if(ki(t)){const{__sentry_template_string__:o,__sentry_template_values__:i}=t;return s.logentry={message:o,params:i},s}return s.message=t,s}function E_(e,{isUnhandledRejection:t}){const n=fp(e),r=t?"promise rejection":"exception";return Uu(e)?`Event \`ErrorEvent\` captured as ${r} with message \`${e.message}\``:Ws(e)?`Event \`${v_(e)}\` (type=${e.type}) captured as ${r}`:`Object captured as ${r} with keys: ${n}`}function v_(e){try{const t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch{}}function w_(e){for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t)){const n=e[t];if(n instanceof Error)return n}}function I_(e,{metadata:t,tunnel:n,dsn:r}){const s={event_id:e.event_id,sent_at:new Date().toISOString(),...t&&t.sdk&&{sdk:{name:t.sdk.name,version:t.sdk.version}},...!!n&&!!r&&{dsn:dn(r)}},o=T_(e);return Et(s,[o])}function T_(e){return[{type:"user_report"},e]}class k_ extends rm{constructor(t){const n={parentSpanIsAlwaysRootSpan:!0,...t},r=T.SENTRY_SDK_SOURCE||a_();Al(n,"browser",["browser"],r),super(n),n.sendClientReports&&T.document&&T.document.addEventListener("visibilitychange",()=>{T.document.visibilityState==="hidden"&&this._flushOutcomes()})}eventFromException(t,n){return S_(this._options.stackParser,t,n,this._options.attachStacktrace)}eventFromMessage(t,n="info",r){return b_(this._options.stackParser,t,n,r,this._options.attachStacktrace)}captureUserFeedback(t){if(!this._isEnabled()){G&&S.warn("SDK not enabled, will not capture user feedback.");return}const n=I_(t,{metadata:this.getSdkMetadata(),dsn:this.getDsn(),tunnel:this.getOptions().tunnel});this.sendEnvelope(n)}_prepareEvent(t,n,r){return t.platform=t.platform||"javascript",super._prepareEvent(t,n,r)}}const Xi=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,C_=(e,t)=>e>t[1]?"poor":e>t[0]?"needs-improvement":"good",Vn=(e,t,n,r)=>{let s,o;return i=>{t.value>=0&&(i||r)&&(o=t.value-(s||0),(o||s===void 0)&&(s=t.value,t.delta=o,t.rating=C_(t.value,n),e(t)))}},N=L,x_=()=>`v4-${Date.now()}-${Math.floor(Math.random()*(9e12-1))+1e12}`,Ir=(e=!0)=>{const t=N.performance&&N.performance.getEntriesByType&&N.performance.getEntriesByType("navigation")[0];if(!e||t&&t.responseStart>0&&t.responseStart<performance.now())return t},Tr=()=>{const e=Ir();return e&&e.activationStart||0},Yn=(e,t)=>{const n=Ir();let r="navigate";return n&&(N.document&&N.document.prerendering||Tr()>0?r="prerender":N.document&&N.document.wasDiscarded?r="restore":n.type&&(r=n.type.replace(/_/g,"-"))),{name:e,value:typeof t>"u"?-1:t,rating:"good",delta:0,entries:[],id:x_(),navigationType:r}},fn=(e,t,n)=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){const r=new PerformanceObserver(s=>{Promise.resolve().then(()=>{t(s.getEntries())})});return r.observe(Object.assign({type:e,buffered:!0},n||{})),r}}catch{}},Xn=e=>{const t=n=>{(n.type==="pagehide"||N.document&&N.document.visibilityState==="hidden")&&e(n)};N.document&&(addEventListener("visibilitychange",t,!0),addEventListener("pagehide",t,!0))},Xs=e=>{let t=!1;return()=>{t||(e(),t=!0)}};let nr=-1;const R_=()=>N.document.visibilityState==="hidden"&&!N.document.prerendering?0:1/0,Rs=e=>{N.document.visibilityState==="hidden"&&nr>-1&&(nr=e.type==="visibilitychange"?e.timeStamp:0,A_())},M_=()=>{addEventListener("visibilitychange",Rs,!0),addEventListener("prerenderingchange",Rs,!0)},A_=()=>{removeEventListener("visibilitychange",Rs,!0),removeEventListener("prerenderingchange",Rs,!0)},Ks=()=>(N.document&&nr<0&&(nr=R_(),M_()),{get firstHiddenTime(){return nr}}),kr=e=>{N.document&&N.document.prerendering?addEventListener("prerenderingchange",()=>e(),!0):e()},O_=[1800,3e3],N_=(e,t={})=>{kr(()=>{const n=Ks(),r=Yn("FCP");let s;const i=fn("paint",a=>{a.forEach(c=>{c.name==="first-contentful-paint"&&(i.disconnect(),c.startTime<n.firstHiddenTime&&(r.value=Math.max(c.startTime-Tr(),0),r.entries.push(c),s(!0)))})});i&&(s=Vn(e,r,O_,t.reportAllChanges))})},D_=[.1,.25],P_=(e,t={})=>{N_(Xs(()=>{const n=Yn("CLS",0);let r,s=0,o=[];const i=c=>
21{c.forEach(u=>{if(!u.hadRecentInput){const d=o[0],l=o[o.length-1];s&&d&&l&&u.startTime-l.startTime<1e3&&u.startTime-d.startTime<5e3?(s+=u.value,o.push(u)):(s=u.value,o=[u])}}),s>n.value&&(n.value=s,n.entries=o,r())},a=fn("layout-shift",i);a&&(r=Vn(e,n,D_,t.reportAllChanges),Xn(()=>{i(a.takeRecords()),r(!0)}),setTimeout(r,0))}))},L_=[100,300],F_=(e,t={})=>{kr(()=>{const n=Ks(),r=Yn("FID");let s;const o=c=>{c.startTime<n.firstHiddenTime&&(r.value=c.processingStart-c.startTime,r.entries.push(c),s(!0))},i=c=>{c.forEach(o)},a=fn("first-input",i);s=Vn(e,r,L_,t.reportAllChanges),a&&Xn(Xs(()=>{i(a.takeRecords()),a.disconnect()}))})};let Xl=0,So=1/0,zr=0;const $_=e=>{e.forEach(t=>{t.interactionId&&(So=Math.min(So,t.interactionId),zr=Math.max(zr,t.interactionId),Xl=zr?(zr-So)/7+1:0)})};let oi;const U_=()=>oi?Xl:performance.interactionCount||0,B_=()=>{"interactionCount"in performance||oi||(oi=fn("event",$_,{type:"event",buffered:!0,durationThreshold:0}))},ct=[],bo=new Map,H_=40;let W_=0;const z_=()=>U_()-W_,j_=()=>{const e=Math.min(ct.length-1,Math.floor(z_()/50));return ct[e]},Eo=10,q_=[],G_=e=>{if(q_.forEach(r=>r(e)),!(e.interactionId||e.entryType==="first-input"))return;const t=ct[ct.length-1],n=bo.get(e.interactionId);if(n||ct.length<Eo||t&&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]&&n.entries[0].startTime)&&n.entries.push(e);else{const r={id:e.interactionId,latency:e.duration,entries:[e]};bo.set(r.id,r),ct.push(r)}ct.sort((r,s)=>s.latency-r.latency),ct.length>Eo&&ct.splice(Eo).forEach(r=>bo.delete(r.id))}},Kl=e=>{const t=N.requestIdleCallback||N.setTimeout;let n=-1;return e=Xs(e),N.document&&N.document.visibilityState==="hidden"?e():(n=t(e),Xn(e)),n},V_=[200,500],Y_=(e,t={})=>{"PerformanceEventTiming"in N&&"interactionId"in PerformanceEventTiming.prototype&&kr(()=>{B_();const n=Yn("INP");let r;const s=i=>{Kl(()=>{i.forEach(G_);const a=j_();a&&a.latency!==n.value&&(n.value=a.latency,n.entries=a.entries,r())})},o=fn("event",s,{durationThreshold:t.durationThreshold!=null?t.durationThreshold:H_});r=Vn(e,n,V_,t.reportAllChanges),o&&(o.observe({type:"first-input",buffered:!0}),Xn(()=>{s(o.takeRecords()),r(!0)}))})},X_=[2500,4e3],pc={},K_=(e,t={})=>{kr(()=>{const n=Ks(),r=Yn("LCP");let s;const o=a=>{t.reportAllChanges||(a=a.slice(-1)),a.forEach(c=>{c.startTime<n.firstHiddenTime&&(r.value=Math.max(c.startTime-Tr(),0),r.entries=[c],s())})},i=fn("largest-contentful-paint",o);if(i){s=Vn(e,r,X_,t.reportAllChanges);const a=Xs(()=>{pc[r.id]||(o(i.takeRecords()),i.disconnect(),pc[r.id]=!0,s(!0))});["keydown","click"].forEach(c=>{N.document&&addEventListener(c,()=>Kl(a),{once:!0,capture:!0})}),Xn(a)}})},J_=[800,1800],ii=e=>{N.document&&N.document.prerendering?kr(()=>ii(e)):N.document&&N.document.readyState!=="complete"?addEventListener("load",()=>ii(e),!0):setTimeout(e,0)},Z_=(e,t={})=>{const n=Yn("TTFB"),r=Vn(e,n,J_,t.reportAllChanges);ii(()=>{const s=Ir();s&&(n.value=Math.max(s.responseStart-Tr(),0),n.entries=[s],r(!0))})},rr={},Ms={};let Jl,Zl,Ql,ed,td;function Ki(e,t=!1){return Cr("cls",e,ey,Jl,t)}function nd(e,t=!1){return Cr("lcp",e,ny,Ql,t)}function rd(e){return Cr("fid",e,ty,Zl)}function Q_(e){return Cr("ttfb",e,ry,ed)}function sd(e){return Cr("inp",e,sy,td)}function Pn(e,t){return od(e,t),Ms[e]||(oy(e),Ms[e]=!0),id(e,t)}function Kn(e,t){const n=rr[e];if(!(!n||!n.length))for(const r of n)try{r(t)}catch(s){Xi&&S.error(`Error while triggering instrumentation handler.
22Type: ${e}
23Name: ${ft(r)}
24Error:`,s)}}function ey(){return P_(e=>{Kn("cls",{metric:e}),Jl=e},{reportAllChanges:!0})}function ty(){return F_(e=>{Kn("fid",{metric:e}),Zl=e})}function ny(){return K_(e=>{Kn("lcp",{metric:e}),Ql=e},{reportAllChanges:!0})}function ry(){return Z_(e=>{Kn("ttfb",{metric:e}),ed=e})}function sy(){return Y_(e=>{Kn("inp",{metric:e}),td=e})}function Cr(e,t,n,r,s=!1){od(e,t);let o;return Ms[e]||(o=n(),Ms[e]=!0),r&&t({metric:r}),id(e,t,s?o:void 0)}function oy(e){const t={};e==="event"&&(t.durationThreshold=0),fn(e,n=>{Kn(e,{entries:n})},t)}function od(e,t){rr[e]=rr[e]||[],rr[e].push(t)}function id(e,t,n){return()=>{n&&n();const r=rr[e];
24if(!r)return;const s=r.indexOf(t);s!==-1&&r.splice(s,1)}}function iy(e){return"duration"in e}function vo(e){return typeof e=="number"&&isFinite(e)}function _t(e,t,n,{...r}){const s=H(e).start_timestamp;return s&&s>t&&typeof e.updateStartTime=="function"&&e.updateStartTime(t),Nn(e,()=>{const o=et({startTime:t,...r});return o&&o.end(n),o})}function ad(e){const t=R();if(!t)return;const{name:n,transaction:r,attributes:s,startTime:o}=e,{release:i,environment:a}=t.getOptions(),c=t.getIntegrationByName("Replay"),u=c&&c.getReplayId(),d=W(),l=d.getUser(),f=l!==void 0?l.email||l.id||l.ip_address:void 0;let p;try{p=d.getScopeData().contexts.profile.profile_id}catch{}const h={release:i,environment:a,user:f||void 0,profile_id:p||void 0,replay_id:u||void 0,transaction:r,"user_agent.original":N.navigator&&N.navigator.userAgent,...s};return et({name:n,attributes:h,startTime:o,experimental:{standalone:!0}})}function Ji(){return N&&N.addEventListener&&N.performance}function ye(e){return e/1e3}function cd(e){let t="unknown",n="unknown",r="";for(const s of e){if(s==="/"){[t,n]=e.split("/");break}if(!isNaN(Number(s))){t=r==="h"?"http":r,n=e.split(r)[1];break}r+=s}return r===e&&(t=r),{name:t,version:n}}function ay(){let e=0,t,n;if(!uy())return;let r=!1;function s(){r||(r=!0,n&&cy(e,t,n),o())}const o=Ki(({metric:i})=>{const a=i.entries[i.entries.length-1];a&&(e=i.value,t=a)},!0);Xn(()=>{s()}),setTimeout(()=>{const i=R();if(!i)return;const a=i.on("startNavigationSpan",()=>{s(),a&&a()}),c=fe(),u=c&&me(c),d=u&&H(u);d&&d.op==="pageload"&&(n=u.spanContext().spanId)},0)}function cy(e,t,n){Xi&&S.log(`Sending CLS span (${e})`);const r=ye((Te||0)+(t&&t.startTime||0)),s=W().getScopeData().transactionName,o=t?ht(t.sources[0]&&t.sources[0].node):"Layout shift",i=_e({[Z]:"auto.http.browser.cls",[Ae]:"ui.webvital.cls",[Oi]:t&&t.duration||0,"sentry.pageload.span_id":n}),a=ad({name:o,transaction:s,attributes:i,startTime:r});a&&(a.addEvent("cls",{[js]:"",[qs]:e}),a.end(r))}function uy(){try{return PerformanceObserver.supportedEntryTypes.includes("layout-shift")}catch{return!1}}const ly=2147483647;let hc=0,we={},Ne,sr;function dy({recordClsStandaloneSpans:e}){const t=Ji();if(t&&Te){t.mark&&N.performance.mark("sentry-tracing-init");const n=_y(),r=gy(),s=yy(),o=e?ay():my();return()=>{n(),r(),s(),o&&o()}}return()=>{}}function fy(){Pn("longtask",({entries:e})=>{const t=fe();if(!t)return;const{op:n,start_timestamp:r}=H(t);for(const s of e){const o=ye(Te+s.startTime),i=ye(s.duration);n==="navigation"&&r&&o<r||_t(t,o,o+i,{name:"Main UI thread blocked",op:"ui.long-task",attributes:{[Z]:"auto.ui.browser.metrics"}})}})}function py(){new PerformanceObserver(t=>{const n=fe();if(n)for(const r of t.getEntries()){if(!r.scripts[0])continue;const s=ye(Te+r.startTime),{start_timestamp:o,op:i}=H(n);if(i==="navigation"&&o&&s<o)continue;const a=ye(r.duration),c={[Z]:"auto.ui.browser.metrics"},u=r.scripts[0],{invoker:d,invokerType:l,sourceURL:f,sourceFunctionName:p,sourceCharPosition:h}=u;c["browser.script.invoker"]=d,c["browser.script.invoker_type"]=l,f&&(c["code.filepath"]=f),p&&(c["code.function"]=p),h!==-1&&(c["browser.script.source_char_position"]=h),_t(n,s,s+a,{name:"Main UI thread blocked",op:"ui.long-animation-frame",attributes:c})}}).observe({type:"long-animation-frame",buffered:!0})}function hy(){Pn("event",({entries:e})=>{const t=fe();if(t){for(const n of e)if(n.name==="click"){const r=ye(Te+n.startTime),s=ye(n.duration),o={name:ht(n.target),op:`ui.interaction.${n.name}`,startTime:r,attributes:{[Z]:"auto.ui.browser.metrics"}},i=Hu(n.target);i&&(o.attributes["ui.component_name"]=i),_t(t,r,r+s,o)}}})}function my(){return Ki(({metric:e})=>{const t=e.entries[e.entries.length-1];t&&(we.cls={value:e.value,unit:""},sr=t)},!0)}function gy(){return nd(({metric:e})=>{const t=e.entries[e.entries.length-1];t&&(we.lcp={value:e.value,unit:"millisecond"},Ne=t)},!0)}function _y(){return rd(({metric:e})=>{const t=e.entries[e.entries.length-1];if(!t)return;const n=ye(Te),r=ye(t.startTime);we.fid={value:e.value,unit:"millisecond"},we["mark.fid"]={value:n+r,unit:"second"}})}function yy(){return Q_(({metric:e})=>
24{e.entries[e.entries.length-1]&&(we.ttfb={value:e.value,unit:"millisecond"})})}function Sy(e,t){const n=Ji();if(!n||!n.getEntries||!Te)return;const r=ye(Te),s=n.getEntries(),{op:o,start_timestamp:i}=H(e);if(s.slice(hc).forEach(a=>{const c=ye(a.startTime),u=ye(Math.max(0,a.duration));if(!(o==="navigation"&&i&&r+c<i))switch(a.entryType){case"navigation":{Ey(e,a,r);break}case"mark":case"paint":case"measure":{by(e,a,c,u,r);const d=Ks(),l=a.startTime<d.firstHiddenTime;a.name==="first-paint"&&l&&(we.fp={value:a.startTime,unit:"millisecond"}),a.name==="first-contentful-paint"&&l&&(we.fcp={value:a.startTime,unit:"millisecond"});break}case"resource":{Iy(e,a,a.name,c,u,r);break}}}),hc=Math.max(s.length-1,0),Ty(e),o==="pageload"){Cy(we);const a=we["mark.fid"];a&&we.fid&&(_t(e,a.value,a.value+ye(we.fid.value),{name:"first input delay",op:"ui.action",attributes:{[Z]:"auto.ui.browser.metrics"}}),delete we["mark.fid"]),(!("fcp"in we)||!t.recordClsOnPageloadSpan)&&delete we.cls,Object.entries(we).forEach(([c,u])=>{hh(c,u.value,u.unit)}),e.setAttribute("performance.timeOrigin",r),e.setAttribute("performance.activationStart",Tr()),ky(e)}Ne=void 0,sr=void 0,we={}}function by(e,t,n,r,s){const o=Ir(!1),i=ye(o?o.requestStart:0),a=s+Math.max(n,i),c=s+n,u=c+r,d={[Z]:"auto.resource.browser.metrics"};a!==c&&(d["sentry.browser.measure_happened_before_request"]=!0,d["sentry.browser.measure_start_time"]=a),a<=u&&_t(e,a,u,{name:t.name,op:t.entryType,attributes:d})}function Ey(e,t,n){["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach(r=>{jr(e,t,r,n)}),jr(e,t,"secureConnection",n,"TLS/SSL"),jr(e,t,"fetch",n,"cache"),jr(e,t,"domainLookup",n,"DNS"),wy(e,t,n)}function jr(e,t,n,r,s=n){const o=vy(n),i=t[o],a=t[`${n}Start`];!a||!i||_t(e,r+ye(a),r+ye(i),{op:`browser.${s}`,name:t.name,attributes:{[Z]:"auto.ui.browser.metrics"}})}function vy(e){return e==="secureConnection"?"connectEnd":e==="fetch"?"domainLookupStart":`${e}End`}function wy(e,t,n){const r=n+ye(t.requestStart),s=n+ye(t.responseEnd),o=n+ye(t.responseStart);t.responseEnd&&(_t(e,r,s,{op:"browser.request",name:t.name,attributes:{[Z]:"auto.ui.browser.metrics"}}),_t(e,o,s,{op:"browser.response",name:t.name,attributes:{[Z]:"auto.ui.browser.metrics"}}))}function Iy(e,t,n,r,s,o){if(t.initiatorType==="xmlhttprequest"||t.initiatorType==="fetch")return;const i=sn(n),a={[Z]:"auto.resource.browser.metrics"};wo(a,t,"transferSize","http.response_transfer_size"),wo(a,t,"encodedBodySize","http.response_content_length"),wo(a,t,"decodedBodySize","http.decoded_response_content_length");const c=t.deliveryType;c!=null&&(a["http.response_delivery_type"]=c);const u=t.renderBlockingStatus;u&&(a["resource.render_blocking_status"]=u),i.protocol&&(a["url.scheme"]=i.protocol.split(":").pop()),i.host&&(a["server.address"]=i.host),a["url.same_origin"]=n.includes(N.location.origin);const{name:d,version:l}=cd(t.nextHopProtocol);a["network.protocol.name"]=d,a["network.protocol.version"]=l;const f=o+r,p=f+s;_t(e,f,p,{name:n.replace(N.location.origin,""),op:t.initiatorType?`resource.${t.initiatorType}`:"resource.other",attributes:a})}function Ty(e){const t=N.navigator;if(!t)return;const n=t.connection;n&&(n.effectiveType&&e.setAttribute("effectiveConnectionType",n.effectiveType),n.type&&e.setAttribute("connectionType",n.type),vo(n.rtt)&&(we["connection.rtt"]={value:n.rtt,unit:"millisecond"})),vo(t.deviceMemory)&&e.setAttribute("deviceMemory",`${t.deviceMemory} GB`),vo(t.hardwareConcurrency)&&e.setAttribute("hardwareConcurrency",String(t.hardwareConcurrency))}function ky(e){Ne&&(Ne.element&&e.setAttribute("lcp.element",ht(Ne.element)),Ne.id&&e.setAttribute("lcp.id",Ne.id),Ne.url&&e.setAttribute("lcp.url",Ne.url.trim().slice(0,200)),Ne.loadTime!=null&&e.setAttribute("lcp.loadTime",Ne.loadTime),Ne.renderTime!=null&&e.setAttribute("lcp.renderTime",Ne.renderTime),e.setAttribute("lcp.size",Ne.size)),sr&&sr.sources&&sr.sources.forEach((t,n)=>e.setAttribute(`cls.source.${n+1}`,ht(t.node)))}function wo(e,t,n,r){const s=t[n];s!=null&&s<ly&&(e[r]=s)}function Cy(e){const t=Ir(!1);if(!t)return;const{responseStart:n,requestStart:r}=t;r<=n&&(e["ttfb.requestTime"]={value:n-r,unit:"millisecond"})}const xy=1e3;let mc,ai,ci;function ud(e){zt("dom",e),jt("dom",Ry)}function Ry(){if(!N.document)return;const e=We.bind(null,"dom"),t=gc(e,!0);N.document.addEventListener("click",t,!1),N.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach(n=>{const s=N[n],o=s&&s.prototype;!o||!o.hasOwnProperty||!o.hasOwnProperty("addEventListener")||(Re(o,"addEventListener",function(i){return function(a,c,u){if(a==="click"||a=="keypress")try{const d=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},l=d[a]=d[a]||{refCount:0};if(!l.handler){const f=gc(e);l.handler=f,i.call(this,a,f,u)}l.refCount++}catch{}return i.call(this,a,c,u)}}),Re(o,"removeEventListener",function(i){return function(a,c,u){if(a==="click"||a=="keypress")try{const d=this.__sentry_instrumentation_handlers__||{},l=d[a];l&&(l.refCount--,l.refCount<=0&&(i.call(this,a,l.handler,u),l.handler=void 0,delete d[a]),Object.keys(d).length===0&&delete this.__sentry_instrumentation_handlers__)}catch{}return i.call(this,a,c,u)}}))})}function My(e){if(e.type!==ai)return!1;try{if(!e.target||e.target._sentryId!==ci)return!1}catch{}return!0}function Ay(e,t){return e!=="keypress"?!1:!t||!t.tagName?!0:!(t.tagName==="INPUT"||t.tagName==="TEXTAREA"||t.isContentEditable)}function gc(e,t=!1){return n=>{if(!n||n._sentryCaptured)return;const r=Oy(n);if(Ay(n.type,r))return;De(n,"_sentryCaptured",!0),r&&!r._sentryId&&De(r,"_sentryId",Me()
24);const s=n.type==="keypress"?"input":n.type;My(n)||(e({event:n,name:s,global:t}),ai=n.type,ci=r?r._sentryId:void 0),clearTimeout(mc),mc=N.setTimeout(()=>{ci=void 0,ai=void 0},xy)}}function Oy(e){try{return e.target}catch{return null}}let qr;function Js(e){const t="history";zt(t,e),jt(t,Ny)}function Ny(){if(!l_())return;const e=N.onpopstate;N.onpopstate=function(...n){const r=N.location.href,s=qr;if(qr=r,We("history",{from:s,to:r}),e)try{return e.apply(this,n)}catch{}};function t(n){return function(...r){const s=r.length>2?r[2]:void 0;if(s){const o=qr,i=String(s);qr=i,We("history",{from:o,to:i})}return n.apply(this,r)}}Re(N.history,"pushState",t),Re(N.history,"replaceState",t)}const os={};function Zi(e){const t=os[e];if(t)return t;let n=N[e];if(ei(n))return os[e]=n.bind(N);const r=N.document;if(r&&typeof r.createElement=="function")try{const s=r.createElement("iframe");s.hidden=!0,r.head.appendChild(s);const o=s.contentWindow;o&&o[e]&&(n=o[e]),r.head.removeChild(s)}catch(s){Xi&&S.warn(`Could not create sandbox iframe for ${e} check, bailing to window.${e}: `,s)}return n&&(os[e]=n.bind(N))}function _c(e){os[e]=void 0}function Ln(...e){return Zi("setTimeout")(...e)}const Rt="__sentry_xhr_v3__";function Qi(e){zt("xhr",e),jt("xhr",Dy)}function Dy(){if(!N.XMLHttpRequest)return;const e=XMLHttpRequest.prototype;e.open=new Proxy(e.open,{apply(t,n,r){const s=new Error,o=ae()*1e3,i=lt(r[0])?r[0].toUpperCase():void 0,a=Py(r[1]);if(!i||!a)return t.apply(n,r);n[Rt]={method:i,url:a,request_headers:{}},i==="POST"&&a.match(/sentry_key/)&&(n.__sentry_own_request__=!0);const c=()=>{const u=n[Rt];if(u&&n.readyState===4){try{u.status_code=n.status}catch{}const d={endTimestamp:ae()*1e3,startTimestamp:o,xhr:n,virtualError:s};We("xhr",d)}};return"onreadystatechange"in n&&typeof n.onreadystatechange=="function"?n.onreadystatechange=new Proxy(n.onreadystatechange,{apply(u,d,l){return c(),u.apply(d,l)}}):n.addEventListener("readystatechange",c),n.setRequestHeader=new Proxy(n.setRequestHeader,{apply(u,d,l){const[f,p]=l,h=d[Rt];return h&&lt(f)&&lt(p)&&(h.request_headers[f.toLowerCase()]=p),u.apply(d,l)}}),t.apply(n,r)}}),e.send=new Proxy(e.send,{apply(t,n,r){const s=n[Rt];if(!s)return t.apply(n,r);r[0]!==void 0&&(s.body=r[0]);const o={startTimestamp:ae()*1e3,xhr:n};return We("xhr",o),t.apply(n,r)}})}function Py(e){if(lt(e))return e;try{return e.toString()}catch{}}const Io=[],is=new Map;function Ly(){if(Ji()&&Te){const t=Fy();return()=>{t()}}return()=>{}}const yc={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 Fy(){return sd(({metric:e})=>{if(e.value==null)return;const t=e.entries.find(h=>h.duration===e.value&&yc[h.name]);if(!t)return;const{interactionId:n}=t,r=yc[t.name],s=ye(Te+t.startTime),o=ye(e.value),i=fe(),a=i?me(i):void 0,u=(n!=null?is.get(n):void 0)||a,d=u?H(u).description:W().getScopeData().transactionName,l=ht(t.target),f=_e({[Z]:"auto.http.browser.inp",[Ae]:`ui.interaction.${r}`,[Oi]:t.duration}),p=ad({name:l,transaction:d,attributes:f,startTime:s});p&&(p.addEvent("inp",{[js]:"millisecond",[qs]:e.value}),p.end(s+o))})}function $y(e){const t=({entries:n})=>{const r=fe(),s=r&&me(r);n.forEach(o=>{if(!iy(o)||!s)return;const i=o.interactionId;if(i!=null&&!is.has(i)){if(Io.length>10){const a=Io.shift();is.delete(a)}Io.push(i),is.set(i,s)}})};Pn("event",t),Pn("first-input",t)}function ld(e,t=Zi("fetch")){let n=0,r=0;function s(o){const i=o.body.length;n+=i,r++;const a={body:o.body,method:"POST",referrerPolicy:"origin",headers:e.headers,keepalive:n<=6e4&&r<15,...e.fetchOptions};if(!t)return _c("fetch"),Es("No fetch implementation available");try{return t(e.url,a).then(c=>(n-=i,r--,{statusCode:c.status,headers:{"x-sentry-rate-limits":c.headers.get("X-Sentry-Rate-Limits"),"retry-after":c.headers.get("Retry-After")}}))}catch(c){return _c("fetch"),n-=i,r--,Es(c)}}return fm(e,s)}const Uy=10,By=20,Hy=30,Wy=40,zy=50;function Fn(e,t,n,r){const s={filename:e,function:t==="<anonymous>"?tt:t,in_app:!0};return n!==void 0&&(s.lineno=n),r!==void 0&&(s.colno=r),s}
24const jy=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,qy=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,Gy=/\((\S*)(?::(\d+))(?::(\d+))\)/,Vy=e=>{const t=jy.exec(e);if(t){const[,r,s,o]=t;return Fn(r,tt,+s,+o)}const n=qy.exec(e);if(n){if(n[2]&&n[2].indexOf("eval")===0){const i=Gy.exec(n[2]);i&&(n[2]=i[1],n[3]=i[2],n[4]=i[3])}const[s,o]=dd(n[1]||tt,n[2]);return Fn(o,s,n[3]?+n[3]:void 0,n[4]?+n[4]:void 0)}},Yy=[Hy,Vy],Xy=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,Ky=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,Jy=e=>{const t=Xy.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){const o=Ky.exec(t[3]);o&&(t[1]=t[1]||"eval",t[3]=o[1],t[4]=o[2],t[5]="")}let r=t[3],s=t[1]||tt;return[s,r]=dd(s,r),Fn(r,s,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}},Zy=[zy,Jy],Qy=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i,eS=e=>{const t=Qy.exec(e);return t?Fn(t[2],t[1]||tt,+t[3],t[4]?+t[4]:void 0):void 0},ZT=[Wy,eS],tS=/ line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i,nS=e=>{const t=tS.exec(e);return t?Fn(t[2],t[3]||tt,+t[1]):void 0},QT=[Uy,nS],rS=/ line (\d+), column (\d+)\s*(?:in (?:<anonymous function: ([^>]+)>|([^)]+))\(.*\))? in (.*):\s*$/i,sS=e=>{const t=rS.exec(e);return t?Fn(t[5],t[3]||t[4]||tt,+t[1],+t[2]):void 0},e1=[By,sS],oS=[Yy,Zy],iS=Pu(...oS),dd=(e,t)=>{const n=e.indexOf("safari-extension")!==-1,r=e.indexOf("safari-web-extension")!==-1;return n||r?[e.indexOf("@")!==-1?e.split("@")[0]:tt,n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]},Gr=1024,aS="Breadcrumbs",cS=((e={})=>{const t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:aS,setup(n){t.console&&Ll(fS(n)),t.dom&&ud(dS(n,t.dom)),t.xhr&&Qi(pS(n)),t.fetch&&qi(hS(n)),t.history&&Js(mS(n)),t.sentry&&n.on("beforeSendEvent",lS(n))}}}),uS=cS;function lS(e){return function(n){R()===e&&nt({category:`sentry.${n.type==="transaction"?"transaction":"event"}`,event_id:n.event_id,level:n.level,message:It(n)},{event:n})}}function dS(e,t){return function(r){if(R()!==e)return;let s,o,i=typeof t=="object"?t.serializeAttribute:void 0,a=typeof t=="object"&&typeof t.maxStringLength=="number"?t.maxStringLength:void 0;a&&a>Gr&&(G&&S.warn(`\`dom.maxStringLength\` cannot exceed ${Gr}, but a value of ${a} was configured. Sentry will use ${Gr} instead.`),a=Gr),typeof i=="string"&&(i=[i]);try{const u=r.event,d=gS(u)?u.target:u;s=ht(d,{keyAttrs:i,maxStringLength:a}),o=Hu(d)}catch{s="<unknown>"}if(s.length===0)return;const c={category:`ui.${r.name}`,message:s};o&&(c.data={"ui.component_name":o}),nt(c,{event:r.event,name:r.name,global:r.global})}}function fS(e){return function(n){if(R()!==e)return;const r={category:"console",data:{arguments:n.args,logger:"console"},level:Wi(n.level),message:bs(n.args," ")};if(n.level==="assert")if(n.args[0]===!1)r.message=`Assertion failed: ${bs(n.args.slice(1)," ")||"console.assert"}`,r.data.arguments=n.args.slice(1);else return;nt(r,{input:n.args,level:n.level})}}function pS(e){return function(n){if(R()!==e)return;const{startTimestamp:r,endTimestamp:s}=n,o=n.xhr[Rt];if(!r||!s||!o)return;const{method:i,url:a,status_code:c,body:u}=o,d={method:i,url:a,status_code:c},l={xhr:n.xhr,input:u,startTimestamp:r,endTimestamp:s},f=zl(c);nt({category:"xhr",data:d,type:"http",level:f},l)}}function hS(e){return function(n){if(R()!==e)return;const{startTimestamp:r,endTimestamp:s}=n;if(s&&!(n.fetchData.url.match(/sentry_key/)&&n.fetchData.method==="POST"))if(n.error){const o=n.fetchData,i={data:n.error,input:n.args,startTimestamp:r,endTimestamp:s};nt({category:"fetch",data:o,level:"error",type:"http"},i)}else{const o=n.response,i={...n.fetchData,status_code:o&&o.status},a={input:n.args,response:o,startTimestamp:r,endTimestamp:s},c=zl(i.status_code);nt({category:"fetch",data:i,type:"http",level:c},a)}}}function mS(e){return function(n){if(R()!==e)return;let r=n.from,s=n.to;const o=sn(T.location.href);let i=r?sn(r):void 0;const a=sn(s);(!i||!i.path)&&(i=o),o.protocol===a.protocol&&o.host===a.host&&(s=a.relative),o.protocol===i.protocol&&o.host===i.host&&(r=i.relative),nt({category:"navigation",data:{from:r,to:s}})}}function gS(e){return!!e&&!!e.target}const _S=["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"],yS="BrowserApiErrors",SS=((e={})=>{const t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...e};return{name:yS,setupOnce(){t.setTimeout&&Re(T,"setTimeout",Sc),t.setInterval&&Re(T,"setInterval",Sc),t.requestAnimationFrame&&Re(T,"requestAnimationFrame",ES),t.XMLHttpRequest&&"XMLHttpRequest"in T&&Re(XMLHttpRequest.prototype,"send",vS);const n=t.eventTarget;
24n&&(Array.isArray(n)?n:_S).forEach(wS)}}}),bS=SS;function Sc(e){return function(...t){const n=t[0];return t[0]=Dn(n,{mechanism:{data:{function:ft(e)},handled:!1,type:"instrument"}}),e.apply(this,t)}}function ES(e){return function(t){return e.apply(this,[Dn(t,{mechanism:{data:{function:"requestAnimationFrame",handler:ft(e)},handled:!1,type:"instrument"}})])}}function vS(e){return function(...t){const n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(s=>{s in n&&typeof n[s]=="function"&&Re(n,s,function(o){const i={mechanism:{data:{function:s,handler:ft(o)},handled:!1,type:"instrument"}},a=Ri(o);return a&&(i.mechanism.data.handler=ft(a)),Dn(o,i)})}),e.apply(this,t)}}function wS(e){const n=T[e],r=n&&n.prototype;!r||!r.hasOwnProperty||!r.hasOwnProperty("addEventListener")||(Re(r,"addEventListener",function(s){return function(o,i,a){try{IS(i)&&(i.handleEvent=Dn(i.handleEvent,{mechanism:{data:{function:"handleEvent",handler:ft(i),target:e},handled:!1,type:"instrument"}}))}catch{}return s.apply(this,[o,Dn(i,{mechanism:{data:{function:"addEventListener",handler:ft(i),target:e},handled:!1,type:"instrument"}}),a])}}),Re(r,"removeEventListener",function(s){return function(o,i,a){try{const c=i.__sentry_wrapped__;c&&s.call(this,o,c,a)}catch{}return s.call(this,o,i,a)}}))}function IS(e){return typeof e.handleEvent=="function"}const TS=()=>({name:"BrowserSession",setupOnce(){if(typeof T.document>"u"){G&&S.warn("Using the `browserSessionIntegration` in non-browser environments is not supported.");return}Jo({ignoreDuration:!0}),Xa(),Js(({from:e,to:t})=>{e!==void 0&&e!==t&&(Jo({ignoreDuration:!0}),Xa())})}}),kS="GlobalHandlers",CS=((e={})=>{const t={onerror:!0,onunhandledrejection:!0,...e};return{name:kS,setupOnce(){Error.stackTraceLimit=50},setup(n){t.onerror&&(RS(n),bc("onerror")),t.onunhandledrejection&&(MS(n),bc("onunhandledrejection"))}}}),xS=CS;function RS(e){Lu(t=>{const{stackParser:n,attachStacktrace:r}=fd();if(R()!==e||Vl())return;const{msg:s,url:o,line:i,column:a,error:c}=t,u=NS(Yi(n,c||s,void 0,r,!1),o,i,a);u.level="error",Er(u,{originalException:c,mechanism:{handled:!1,type:"onerror"}})})}function MS(e){Fu(t=>{const{stackParser:n,attachStacktrace:r}=fd();if(R()!==e||Vl())return;const s=AS(t),o=Ci(s)?OS(s):Yi(n,s,void 0,r,!0);o.level="error",Er(o,{originalException:s,mechanism:{handled:!1,type:"onunhandledrejection"}})})}function AS(e){if(Ci(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 OS(e){return{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(e)}`}]}}}function NS(e,t,n,r){const s=e.exception=e.exception||{},o=s.values=s.values||[],i=o[0]=o[0]||{},a=i.stacktrace=i.stacktrace||{},c=a.frames=a.frames||[],u=r,d=n,l=lt(t)&&t.length>0?t:xi();return c.length===0&&c.push({colno:u,filename:l,function:tt,in_app:!0,lineno:d}),e}function bc(e){G&&S.log(`Global Handler attached: ${e}`)}function fd(){const e=R();return e&&e.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}const DS=()=>({name:"HttpContext",preprocessEvent(e){if(!T.navigator&&!T.location&&!T.document)return;const t=e.request&&e.request.url||T.location&&T.location.href,{referrer:n}=T.document||{},{userAgent:r}=T.navigator||{},s={...e.request&&e.request.headers,...n&&{Referer:n},...r&&{"User-Agent":r}},o={...e.request,...t&&{url:t},headers:s};e.request=o}}),PS="cause",LS=5,FS="LinkedErrors",$S=((e={})=>{const t=e.limit||LS,n=e.key||PS;return{name:FS,preprocessEvent(r,s,o){const i=o.getOptions();$m(Gi,i.stackParser,i.maxValueLength,n,t,r,s)}}}),US=$S;function BS(e){const t=[Cm(),wm(),bS(),uS(),xS(),US(),Jm(),DS()];return e.autoSessionTracking!==!1&&t.push(TS()),t}function HS(e={}){const t={defaultIntegrations:BS(e),release:typeof __SENTRY_RELEASE__=="string"?__SENTRY_RELEASE__:T.SENTRY_RELEASE&&T.SENTRY_RELEASE.id?T.SENTRY_RELEASE.id:void 0,autoSessionTracking:!0,sendClientReports:!0};return e.defaultIntegrations==null&&delete e.defaultIntegrations,{...t,...e}}function WS(){const e=typeof T.window<"u"&&T;if(!e)return!1;const t=e.chrome?"chrome":"browser",n=e[t],r=n&&n.runtime&&n.runtime.id,s=T.location&&T.location.href||"",o=["chrome-extension:","moz-extension:","ms-browser-extension:","safari-web-extension:"],i=!!r&&T===T.top&&o.some(c=>s.startsWith(`${c}//`)),a=typeof e.nw<"u";return!!r&&!i&&!a}function zS(e={}){const t=HS(e);if(!t.skipBrowserExtensionCheck&&WS()){St(()=>{console.error("[Sentry] You cannot run Sentry this way in a browser extension, check: https://docs.sentry.io/platforms/javascript/best-practices/browser-extensions/")});return}G&&(jl()||S.warn("No Fetch API detected. The Sentry SDK requires a Fetch API compatible environment to send events. Please add a Fetch API polyfill."));const n={...t,stackParser:ep(t.stackParser||iS),integrations:em(t),transport:t.transport||ld};return im(k_,n)}function Ec(e={}){if(!T.document){G&&S.error("Global document not defined in showReportDialog call");return}const t=W(),n=t.getClient(),r=n&&n.getDsn();if(!r){G&&S.error("DSN not configured for showReportDialog call");return}if(t&&(e.user={...t.getUser(),...e.user}),!e.eventId){const a=Gh();a&&(e.eventId=a)}const s=T.document.createElement("script");s.async=!0,s.crossOrigin="anonymous",s.src=Zh(r,e),e.onLoad&&(s.onload=e.onLoad);const{onClose:o}=e;if(o){const a=c=>{if(c.data==="__sentry_reportdialog_closed__")try{o()}finally{T.removeEventListener("message",a)}};T.addEventListener("message",a)}const i=T.document.head||T.document.body;i?i.appendChild(s):G&&S.error("Not injecting report dialog. No injection point found in HTML")}function t1(){}function n1(e){e()}function r1(e){const t=R();t&&t.captureUserFeedback(e)}const jS={replayIntegration:"replay",replayCanvasIntegration:"replay-canvas",feedbackIntegration:"feedback",feedbackModalIntegration:"feedback-modal",feedbackScreenshotIntegration:"feedback-screenshot",captureConsoleIntegration:"captureconsole",contextLinesIntegration:"contextlines",linkedErrorsIntegration:"linkederrors",debugIntegration:"debug",dedupeIntegration:"dedupe",extraErrorDataIntegration:"extraerrordata",httpClientIntegration:"httpclient",reportingObserverIntegration:"reportingobserver",rewriteFramesIntegration:"rewriteframes",sessionTimingIntegration:"sessiontiming",browserProfilingIntegration:"browserprofiling",moduleMetadataIntegration:"modulemetadata"},vc=T;async function qS(e,t){const n=jS[e],r=vc.Sentry=vc.Sentry||{};if(!n)throw new Error(`Cannot lazy load integration: ${e}`);const s=r[e];if(typeof s=="function"&&!("_isShim"in s))return s;const o=GS(n),i=T.document.createElement("script");i.src=o,i.crossOrigin="anonymous",i.referrerPolicy="origin",t&&i.setAttribute("nonce",t);const a=new Promise((l,f)=>{i.addEventListener("load",()=>l()),i.addEventListener("error",f)}),c=T.document.currentScript,u=T.document.body||T.document.head||c&&c.parentElement;if(u)u.appendChild(i);else throw new Error(`Could not find parent element to insert lazy-loaded ${e} script`);try{await a}catch{throw new Error(`Error when loading integration: ${e}`)}const d=r[e];if(typeof d!="function")throw new Error(`Could not load integration: ${e}`);return d}function GS(e){const t=R(),n=t&&t.getOptions(),r=n&&n.cdnBaseUrl||"https://browser.sentry-cdn.com";return new URL(`/${At}/${e}.min.js`,r).toString()}const VS=L,YS="ReportingObserver",wc=new WeakMap,XS=((e={})=>{const t=e.types||["crash","deprecation","intervention"];function n(r){if(wc.has(R()))for(const s of r)ze(o=>{o.setExtra("url",s.url);const i=`ReportingObserver [${s.type}]`;let a="No details available";if(s.body){const c={};for(const u in s.body)c[u]=s.body[u];if(o.setExtra("body",c),s.type==="crash"){const u=s.body;a=[u.crashId||"",u.reason||""].join(" ").trim()||a}else a=s.body.message||a}Ko(`${i}: ${a}`)})}return{name:YS,setupOnce(){if(!t_())return;new VS.ReportingObserver(n,{buffered:!0,types:t}).observe()},setup(r){wc.set(r,!0)}}}),s1=XS,KS="HttpClient",JS=((e={})=>{const t={failedRequestStatusCodes:[[500,599]],failedRequestTargets:[/.*/],...e};return{name:KS,setup(n){ob(n,t),ib(n,t)}}}),o1=JS;
24function ZS(e,t,n,r,s){if(hd(e,n.status,n.url)){const o=ab(t,r);let i,a,c,u;gd()&&([i,c]=Ic("Cookie",o),[a,u]=Ic("Set-Cookie",n));const d=md({url:o.url,method:o.method,status:n.status,requestHeaders:i,responseHeaders:a,requestCookies:c,responseCookies:u,error:s});Er(d)}}function Ic(e,t){const n=tb(t.headers);let r;try{const s=n[e]||n[e.toLowerCase()]||void 0;s&&(r=pd(s))}catch{}return[n,r]}function QS(e,t,n,r,s){if(hd(e,t.status,t.responseURL)){let o,i,a;if(gd()){try{const u=t.getResponseHeader("Set-Cookie")||t.getResponseHeader("set-cookie")||void 0;u&&(i=pd(u))}catch{}try{a=nb(t)}catch{}o=r}const c=md({url:t.responseURL,method:n,status:t.status,requestHeaders:o,responseHeaders:a,responseCookies:i,error:s});Er(c)}}function eb(e){if(e){const t=e["Content-Length"]||e["content-length"];if(t)return parseInt(t,10)}}function pd(e){return e.split("; ").reduce((t,n)=>{const[r,s]=n.split("=");return r&&s&&(t[r]=s),t},{})}function tb(e){const t={};return e.forEach((n,r)=>{t[r]=n}),t}function nb(e){const t=e.getAllResponseHeaders();return t?t.split(`\r
25`).reduce((n,r)=>{const[s,o]=r.split(": ");return s&&o&&(n[s]=o),n},{}):{}}function rb(e,t){return e.some(n=>typeof n=="string"?t.includes(n):n.test(t))}function sb(e,t){return e.some(n=>typeof n=="number"?n===t:t>=n[0]&&t<=n[1])}function ob(e,t){ql()&&qi(n=>{if(R()!==e)return;const{response:r,args:s,error:o,virtualError:i}=n,[a,c]=s;r&&ZS(t,a,r,c,o||i)},!1)}function ib(e,t){"XMLHttpRequest"in L&&Qi(n=>{if(R()!==e)return;const{error:r,virtualError:s}=n,o=n.xhr,i=o[Rt];if(!i)return;const{method:a,request_headers:c}=i;try{QS(t,o,a,c,r||s)}catch(u){G&&S.warn("Error while extracting response event form XHR response",u)}})}function hd(e,t,n){return sb(e.failedRequestStatusCodes,t)&&rb(e.failedRequestTargets,n)&&!Ml(n,R())}function md(e){const t=R(),n=t&&e.error&&e.error instanceof Error?e.error.stack:void 0,r=n&&t?t.getOptions().stackParser(n,0,1):void 0,s=`HTTP Client Error with status code: ${e.status}`,o={message:s,exception:{values:[{type:"Error",value:s,stacktrace:r?{frames:r}:void 0}]},request:{url:e.url,method:e.method,headers:e.requestHeaders,cookies:e.requestCookies},contexts:{response:{status_code:e.status,headers:e.responseHeaders,cookies:e.responseCookies,body_size:eb(e.responseHeaders)}}};return $t(o,{type:"http.client",handled:!1}),o}function ab(e,t){return!t&&e instanceof Request||e instanceof Request&&e.bodyUsed?e:new Request(e,t)}function gd(){const e=R();return e?!!e.getOptions().sendDefaultPii:!1}const To=L,cb=7,ub="ContextLines",lb=((e={})=>{const t=e.frameContextLines!=null?e.frameContextLines:cb;return{name:ub,processEvent(n){return db(n,t)}}}),i1=lb;function db(e,t){const n=To.document,r=To.location&&Wm(To.location.href);if(!n||!r)return e;const s=e.exception&&e.exception.values;if(!s||!s.length)return e;const o=n.documentElement.innerHTML;if(!o)return e;const i=["<!DOCTYPE html>","<html>",...o.split(`
26`),"</html>"];return s.forEach(a=>{const c=a.stacktrace;c&&c.frames&&(c.frames=c.frames.map(u=>fb(u,i,r,t)))}),e}function fb(e,t,n,r){return e.filename!==n||!e.lineno||!t.length||mp(t,e,r),e}const ie=L,ea="sentryReplaySession",pb="replay_event",ta="Unable to send Replay",hb=3e5,mb=9e5,gb=5e3,_b=5500,yb=6e4,Sb=5e3,bb=3,Tc=15e4,Vr=5e3,Eb=3e3,vb=300,na=2e7,wb=4999,Ib=15e3,kc=36e5;function ui(e,t){return e??t()}function ur(e){let t,n=e[0],r=1;for(;r<e.length;){const s=e[r],o=e[r+1];if(r+=2,(s==="optionalAccess"||s==="optionalCall")&&n==null)return;s==="access"||s==="optionalAccess"?(t=n,n=o(n)):(s==="call"||s==="optionalCall")&&(n=o((...i)=>n.call(t,...i)),t=void 0)}return n}var be;(function(e){e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment"})(be||(be={}));function Tb(e){return e.nodeType===e.ELEMENT_NODE}function or(e){const t=ur([e,"optionalAccess",n=>n.host]);return ur([t,"optionalAccess",n=>n.shadowRoot])===e}function ir(e){return Object.prototype.toString.call(e)==="[object ShadowRoot]"}function kb(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 Cb(e){const{cssText:t}=e;if(t.split('"').length<3)return t;const n=["@import",`url(${JSON.stringify(e.href)})`];return e.layerName===""?n.push("layer"):e.layerName&&n.push(`layer(${e.layerName})`),e.supportsText&&n.push(`supports(${e.supportsText})`),e.media.length&&n.push(e.media.mediaText),n.join(" ")+";"}function As(e){try{const t=e.rules||e.cssRules;return t?kb(Array.from(t,_d).join("")):null}catch{return null}}function xb(e){let t="";for(let n=0;n<e.style.length;n++){const r=e.style,s=r[n],o=r.getPropertyPriority(s);t+=`${s}:${r.getPropertyValue(s)}${o?" !important":""};`}return`${e.selectorText} { ${t} }`}function _d(e){let t;if(Mb(e))try{t=As(e.styleSheet)||Cb(e)}catch{}else if(Ab(e)){let n=e.cssText;const r=e.selectorText.includes(":"),s=typeof e.style.all=="string"&&e.style.all;if(s&&(n=xb(e)),r&&(n=Rb(n)),r||s)return n}return t||e.cssText}function Rb(e){const t=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return e.replace(t,"$1\\$2")}function Mb(e){return"styleSheet"in e}function Ab(e){return"selectorText"in e}class yd{constructor(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}getId(t){if(!t)return-1;const n=ur([this,"access",r=>r.getMeta,"call",r=>r(t),"optionalAccess",r=>r.id]);return ui(n,()=>-1)}getNode(t){return this.idNodeMap.get(t)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(t){return this.nodeMetaMap.get(t)||null}removeNodeFromMap(t){const n=this.getId(t);
26this.idNodeMap.delete(n),t.childNodes&&t.childNodes.forEach(r=>this.removeNodeFromMap(r))}has(t){return this.idNodeMap.has(t)}hasNode(t){return this.nodeMetaMap.has(t)}add(t,n){const r=n.id;this.idNodeMap.set(r,t),this.nodeMetaMap.set(t,n)}replace(t,n){const r=this.getNode(t);if(r){const s=this.nodeMetaMap.get(r);s&&this.nodeMetaMap.set(n,s)}this.idNodeMap.set(t,n)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function Ob(){return new yd}function Zs({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 lr({isMasked:e,element:t,value:n,maskInputFn:r}){let s=n||"";return e?(r&&(s=r(s,t)),"*".repeat(s.length)):s}function $n(e){return e.toLowerCase()}function li(e){return e.toUpperCase()}const Cc="__rrweb_original__";function Nb(e){const t=e.getContext("2d");if(!t)return!0;const n=50;for(let r=0;r<e.width;r+=n)for(let s=0;s<e.height;s+=n){const o=t.getImageData,i=Cc in o?o[Cc]:o;if(new Uint32Array(i.call(t,r,s,Math.min(n,e.width-r),Math.min(n,e.height-s)).data.buffer).some(c=>c!==0))return!1}return!0}function ra(e){const t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?$n(t):null}function Os(e,t,n){return t==="INPUT"&&(n==="radio"||n==="checkbox")?e.getAttribute("value")||"":e.value}function Sd(e,t){let n;try{n=new URL(e,ui(t,()=>window.location.href))}catch{return null}const r=/\.([0-9a-z]+)(?:$)/i,s=n.pathname.match(r);return ui(ur([s,"optionalAccess",o=>o[1]]),()=>null)}const xc={};function bd(e){const t=xc[e];if(t)return t;const n=window.document;let r=window[e];if(n&&typeof n.createElement=="function")try{const s=n.createElement("iframe");s.hidden=!0,n.head.appendChild(s);const o=s.contentWindow;o&&o[e]&&(r=o[e]),n.head.removeChild(s)}catch{}return xc[e]=r.bind(window)}function di(...e){return bd("setTimeout")(...e)}function Ed(...e){return bd("clearTimeout")(...e)}function vd(e){try{return e.contentDocument}catch{}}let Db=1;const Pb=new RegExp("[^a-z0-9-_:]"),dr=-2;function sa(){return Db++}function Lb(e){if(e instanceof HTMLFormElement)return"form";const t=$n(e.tagName);return Pb.test(t)?"div":t}function Fb(e){let t="";return e.indexOf("//")>-1?t=e.split("/").slice(0,3).join("/"):t=e.split("/")[0],t=t.split("?")[0],t}let yn,Rc;const $b=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,Ub=/^(?:[a-z+]+:)?\/\//i,Bb=/^www\..*/i,Hb=/^(data:)([^,]*),(.*)/i;function Ns(e,t){return(e||"").replace($b,(n,r,s,o,i,a)=>{const c=s||i||a,u=r||o||"";if(!c)return n;if(Ub.test(c)||Bb.test(c))return`url(${u}${c}${u})`;if(Hb.test(c))return`url(${u}${c}${u})`;if(c[0]==="/")return`url(${u}${Fb(t)+c}${u})`;const d=t.split("/"),l=c.split("/");d.pop();for(const f of l)f!=="."&&(f===".."?d.pop():d.push(f));return`url(${u}${d.join("/")}${u})`})}const Wb=/^[^ \t\n\r\u000c]+/,zb=/^[, \t\n\r\u000c]+/;function jb(e,t){if(t.trim()==="")return t;let n=0;function r(o){let i;const a=o.exec(t.substring(n));return a?(i=a[0],n+=i.length,i):""}const s=[];for(;r(zb),!(n>=t.length);){let o=r(Wb);if(o.slice(-1)===",")o=vn(e,o.substring(0,o.length-1)),s.push(o);else{let i="";o=vn(e,o);let a=!1;for(;;){const c=t.charAt(n);if(c===""){s.push((o+i).trim());break}else if(a)c===")"&&(a=!1);else if(c===","){n+=1,s.push((o+i).trim());break}else c==="("&&(a=!0);i+=c,n+=1}}}return s.join(", ")}const Mc=new WeakMap;function vn(e,t){return!t||t.trim()===""?t:Qs(e,t)}function qb(e){return!!(e.tagName==="svg"||e.ownerSVGElement)}function Qs(e,t){let n=Mc.get(e);if(n||(n=e.createElement("a"),Mc.set(e,n)),!t)t="";else if(t.startsWith("blob:")||t.startsWith("data:"))return t;return n.setAttribute("href",t),n.href}function wd(e,t,n,r,s,o){return r&&(n==="src"||n==="href"&&!(t==="use"&&r[0]==="#")||n==="xlink:href"&&r[0]!=="#"||n==="background"&&(t==="table"||t==="td"||t==="th")?vn(e,r):n==="srcset"?jb(e,r):n==="style"?Ns(r,Qs(e)):t==="object"&&n==="data"?vn(e,r):typeof o=="function"?o(n,r,s):r)}function Id(e,t,n){return(e==="video"||e==="audio")&&t==="autoplay"}function Gb(e,t,n,r){try{if(r&&e.matches(r))return!1;if(typeof t=="string"){if(e.classList.contains(t))return!0}else for(let s=e.classList.length;s--;){const o=e.classList[s];if(t.test(o))return!0}if(n)return e.matches(n)}catch{}return!1}function Vb(e,t){for(let n=e.classList.length;n--;){const r=e.classList[n];if(t.test(r))return!0}return!1}function en(e,t,n=1/0,r=0){return!e||e.nodeType!==e.ELEMENT_NODE||r>n?-1:t(e)?r:en(e.parentNode,t,n,r+1)}function wn(e,t){return n=>{const r=n;if(r===null)return!1;try{if(e){if(typeof e=="string"){if(r.matches(`.${e}`))return!0}else if(Vb(r,e))return!0}return!!(t&&r.matches(t))}catch{return!1}}}function Un(e,t,n,r,s,o){try{const i=e.nodeType===e.ELEMENT_NODE?e:e.parentElement;if(i===null)return!1;if(i.tagName==="INPUT"){const u=i.getAttribute("autocomplete");if(["current-password","new-password","cc-number","cc-exp","cc-exp-month","cc-exp-year","cc-csc"].includes(u))return!0}let a=-1,c=-1;if(o){if(c=en(i,wn(r,s)),c<0)return!0;a=en(i,wn(t,n),c>=0?c:1/0)}else{if(a=en(i,wn(t,n)),a<0)return!1;c=en(i,wn(r,s),a>=0?a:1/0)}return a>=0?c>=0?a<=c:!0:c>=0?!1:!!o}catch{}return!!o}function Yb(e,t,n){const r=e.contentWindow;if(!r)return;let s=!1,o;try{o=r.document.readyState}catch{return}if(o!=="complete"){const a=di(()=>{s||(t(),s=!0)},n);e.addEventListener("load",()=>{Ed(a),s=!0,t()});return}const i="about:blank";if(r.location.href!==i||e.src===i||e.src==="")return di(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}function Xb(e,t,n){let r=!1,s;try{s=e.sheet}catch{return}if(s)return;const o=di(()=>{r||(t(),r=!0)},n);e.addEventListener("load",()=>{Ed(o),r=!0,t()})}function Kb(e,t){const{doc:n,mirror:r,blockClass:s,blockSelector:o,unblockSelector:i,maskAllText:a,maskAttributeFn:c,maskTextClass:u,unmaskTextClass:d,maskTextSelector:l,unmaskTextSelector:f,inlineStylesheet:p,maskInputOptions:h={},maskTextFn:m,maskInputFn:b,dataURLOptions:y={}
26,inlineImages:w,recordCanvas:C,keepIframeSrcFn:M,newlyAddedElement:_=!1}=t,v=Jb(n,r);switch(e.nodeType){case e.DOCUMENT_NODE:return e.compatMode!=="CSS1Compat"?{type:be.Document,childNodes:[],compatMode:e.compatMode}:{type:be.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:be.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:v};case e.ELEMENT_NODE:return Qb(e,{doc:n,blockClass:s,blockSelector:o,unblockSelector:i,inlineStylesheet:p,maskAttributeFn:c,maskInputOptions:h,maskInputFn:b,dataURLOptions:y,inlineImages:w,recordCanvas:C,keepIframeSrcFn:M,newlyAddedElement:_,rootId:v,maskTextClass:u,unmaskTextClass:d,maskTextSelector:l,unmaskTextSelector:f});case e.TEXT_NODE:return Zb(e,{doc:n,maskAllText:a,maskTextClass:u,unmaskTextClass:d,maskTextSelector:l,unmaskTextSelector:f,maskTextFn:m,maskInputOptions:h,maskInputFn:b,rootId:v});case e.CDATA_SECTION_NODE:return{type:be.CDATA,textContent:"",rootId:v};case e.COMMENT_NODE:return{type:be.Comment,textContent:e.textContent||"",rootId:v};default:return!1}}function Jb(e,t){if(!t.hasNode(e))return;const n=t.getId(e);return n===1?void 0:n}function Zb(e,t){const{maskAllText:n,maskTextClass:r,unmaskTextClass:s,maskTextSelector:o,unmaskTextSelector:i,maskTextFn:a,maskInputOptions:c,maskInputFn:u,rootId:d}=t,l=e.parentNode&&e.parentNode.tagName;let f=e.textContent;const p=l==="STYLE"?!0:void 0,h=l==="SCRIPT"?!0:void 0,m=l==="TEXTAREA"?!0:void 0;if(p&&f){try{e.nextSibling||e.previousSibling||ur([e,"access",y=>y.parentNode,"access",y=>y.sheet,"optionalAccess",y=>y.cssRules])&&(f=As(e.parentNode.sheet))}catch(y){console.warn(`Cannot get CSS styles from text's parentNode. Error: ${y}`,e)}f=Ns(f,Qs(t.doc))}h&&(f="SCRIPT_PLACEHOLDER");const b=Un(e,r,o,s,i,n);if(!p&&!h&&!m&&f&&b&&(f=a?a(f,e.parentElement):f.replace(/[\S]/g,"*")),m&&f&&(c.textarea||b)&&(f=u?u(f,e.parentNode):f.replace(/[\S]/g,"*")),l==="OPTION"&&f){const y=Zs({type:null,tagName:l,maskInputOptions:c});f=lr({isMasked:Un(e,r,o,s,i,y),element:e,value:f,maskInputFn:u})}return{type:be.Text,textContent:f||"",isStyle:p,rootId:d}}function Qb(e,t){const{doc:n,blockClass:r,blockSelector:s,unblockSelector:o,inlineStylesheet:i,maskInputOptions:a={},maskAttributeFn:c,maskInputFn:u,dataURLOptions:d={},inlineImages:l,recordCanvas:f,keepIframeSrcFn:p,newlyAddedElement:h=!1,rootId:m,maskTextClass:b,unmaskTextClass:y,maskTextSelector:w,unmaskTextSelector:C}=t,M=Gb(e,r,s,o),_=Lb(e);let v={};const x=e.attributes.length;for(let g=0;g<x;g++){const E=e.attributes[g];E.name&&!Id(_,E.name,E.value)&&(v[E.name]=wd(n,_,$n(E.name),E.value,e,c))}if(_==="link"&&i){const g=Array.from(n.styleSheets).find(k=>k.href===e.href);let E=null;g&&(E=As(g)),E&&(v.rel=null,v.href=null,v.crossorigin=null,v._cssText=Ns(E,g.href))}if(_==="style"&&e.sheet&&!(e.innerText||e.textContent||"").trim().length){const g=As(e.sheet);g&&(v._cssText=Ns(g,Qs(n)))}if(_==="input"||_==="textarea"||_==="select"||_==="option"){const g=e,E=ra(g),k=Os(g,li(_),E),I=g.checked;if(E!=="submit"&&E!=="button"&&k){const B=Un(g,b,w,y,C,Zs({type:E,tagName:li(_),maskInputOptions:a}));v.value=lr({isMasked:B,element:g,value:k,maskInputFn:u})}I&&(v.checked=I)}if(_==="option"&&(e.selected&&!a.select?v.selected=!0:delete v.selected),_==="canvas"&&f){if(e.__context==="2d")Nb(e)||(v.rr_dataURL=e.toDataURL(d.type,d.quality));else if(!("__context"in e)){const g=e.toDataURL(d.type,d.quality),E=n.createElement("canvas");E.width=e.width,E.height=e.height;const k=E.toDataURL(d.type,d.quality);g!==k&&(v.rr_dataURL=g)}}if(_==="img"&&l){yn||(yn=n.createElement("canvas"),Rc=yn.getContext("2d"));const g=e,E=g.currentSrc||g.getAttribute("src")||"<unknown-src>",k=g.crossOrigin,I=()=>{g.removeEventListener("load",I);try{yn.width=g.naturalWidth,yn.height=g.naturalHeight,Rc.drawImage(g,0,0),v.rr_dataURL=yn.toDataURL(d.type,d.quality)}catch(B){if(g.crossOrigin!=="anonymous"){g.crossOrigin="anonymous",g.complete&&g.naturalWidth!==0?I():g.addEventListener("load",I);return}else console.warn(`Cannot inline img src=${E}! Error: ${B}`)}g.crossOrigin==="anonymous"&&(k?v.crossOrigin=k:g.removeAttribute("crossorigin"))};
26g.complete&&g.naturalWidth!==0?I():g.addEventListener("load",I)}if((_==="audio"||_==="video")&&(v.rr_mediaState=e.paused?"paused":"played",v.rr_mediaCurrentTime=e.currentTime),h||(e.scrollLeft&&(v.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(v.rr_scrollTop=e.scrollTop)),M){const{width:g,height:E}=e.getBoundingClientRect();v={class:v.class,rr_width:`${g}px`,rr_height:`${E}px`}}_==="iframe"&&!p(v.src)&&(!M&&!vd(e)&&(v.rr_src=v.src),delete v.src);let A;try{customElements.get(_)&&(A=!0)}catch{}return{type:be.Element,tagName:_,attributes:v,childNodes:[],isSVG:qb(e)||void 0,needBlock:M,rootId:m,isCustom:A}}function oe(e){return e==null?"":e.toLowerCase()}function eE(e,t){if(t.comment&&e.type===be.Comment)return!0;if(e.type===be.Element){if(t.script&&(e.tagName==="script"||e.tagName==="link"&&(e.attributes.rel==="preload"||e.attributes.rel==="modulepreload")||e.tagName==="link"&&e.attributes.rel==="prefetch"&&typeof e.attributes.href=="string"&&Sd(e.attributes.href)==="js"))return!0;if(t.headFavicon&&(e.tagName==="link"&&e.attributes.rel==="shortcut icon"||e.tagName==="meta"&&(oe(e.attributes.name).match(/^msapplication-tile(image|color)$/)||oe(e.attributes.name)==="application-name"||oe(e.attributes.rel)==="icon"||oe(e.attributes.rel)==="apple-touch-icon"||oe(e.attributes.rel)==="shortcut icon")))return!0;if(e.tagName==="meta"){if(t.headMetaDescKeywords&&oe(e.attributes.name).match(/^description|keywords$/))return!0;if(t.headMetaSocial&&(oe(e.attributes.property).match(/^(og|twitter|fb):/)||oe(e.attributes.name).match(/^(og|twitter):/)||oe(e.attributes.name)==="pinterest"))return!0;if(t.headMetaRobots&&(oe(e.attributes.name)==="robots"||oe(e.attributes.name)==="googlebot"||oe(e.attributes.name)==="bingbot"))return!0;if(t.headMetaHttpEquiv&&e.attributes["http-equiv"]!==void 0)return!0;if(t.headMetaAuthorship&&(oe(e.attributes.name)==="author"||oe(e.attributes.name)==="generator"||oe(e.attributes.name)==="framework"||oe(e.attributes.name)==="publisher"||oe(e.attributes.name)==="progid"||oe(e.attributes.property).match(/^article:/)||oe(e.attributes.property).match(/^product:/)))return!0;if(t.headMetaVerification&&(oe(e.attributes.name)==="google-site-verification"||oe(e.attributes.name)==="yandex-verification"||oe(e.attributes.name)==="csrf-token"||oe(e.attributes.name)==="p:domain_verify"||oe(e.attributes.name)==="verify-v1"||oe(e.attributes.name)==="verification"||oe(e.attributes.name)==="shopify-checkout-api-token"))return!0}}return!1}function In(e,t){const{doc:n,mirror:r,blockClass:s,blockSelector:o,unblockSelector:i,maskAllText:a,maskTextClass:c,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:l,skipChild:f=!1,inlineStylesheet:p=!0,maskInputOptions:h={},maskAttributeFn:m,maskTextFn:b,maskInputFn:y,slimDOMOptions:w,dataURLOptions:C={},inlineImages:M=!1,recordCanvas:_=!1,onSerialize:v,onIframeLoad:x,iframeLoadTimeout:A=5e3,onStylesheetLoad:g,stylesheetLoadTimeout:E=5e3,keepIframeSrcFn:k=()=>!1,newlyAddedElement:I=!1}=t;let{preserveWhiteSpace:B=!0}=t;const V=Kb(e,{doc:n,mirror:r,blockClass:s,blockSelector:o,maskAllText:a,unblockSelector:i,maskTextClass:c,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:l,inlineStylesheet:p,maskInputOptions:h,maskAttributeFn:m,maskTextFn:b,maskInputFn:y,dataURLOptions:C,inlineImages:M,recordCanvas:_,keepIframeSrcFn:k,newlyAddedElement:I});if(!V)return console.warn(e,"not serialized"),null;let z;r.hasNode(e)?z=r.getId(e):eE(V,w)||!B&&V.type===be.Text&&!V.isStyle&&!V.textContent.replace(/^\s+|\s+$/gm,"").length?z=dr:z=sa();const O=Object.assign(V,{id:z});if(r.add(e,O),z===dr)return null;v&&v(e);let ce=!f;if(O.type===be.Element){ce=ce&&!O.needBlock,delete O.needBlock;const F=e.shadowRoot;F&&ir(F)&&(O.isShadowHost=!0)}if((O.type===be.Document||O.type===be.Element)&&ce){w.headWhitespace&&O.type===be.Element&&O.tagName==="head"&&(B=!1);const F={doc:n,mirror:r,blockClass:s,blockSelector:o,maskAllText:a,unblockSelector:i,maskTextClass:c,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:l,skipChild:f,inlineStylesheet:p,maskInputOptions:h,maskAttributeFn:m,maskTextFn:b,maskInputFn:y,slimDOMOptions:w,dataURLOptions:C,inl
26ineImages:M,recordCanvas:_,preserveWhiteSpace:B,onSerialize:v,onIframeLoad:x,iframeLoadTimeout:A,onStylesheetLoad:g,stylesheetLoadTimeout:E,keepIframeSrcFn:k};for(const te of Array.from(e.childNodes)){const ke=In(te,F);ke&&O.childNodes.push(ke)}if(Tb(e)&&e.shadowRoot)for(const te of Array.from(e.shadowRoot.childNodes)){const ke=In(te,F);ke&&(ir(e.shadowRoot)&&(ke.isShadow=!0),O.childNodes.push(ke))}}return e.parentNode&&or(e.parentNode)&&ir(e.parentNode)&&(O.isShadow=!0),O.type===be.Element&&O.tagName==="iframe"&&Yb(e,()=>{const F=vd(e);if(F&&x){const te=In(F,{doc:F,mirror:r,blockClass:s,blockSelector:o,unblockSelector:i,maskAllText:a,maskTextClass:c,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:l,skipChild:!1,inlineStylesheet:p,maskInputOptions:h,maskAttributeFn:m,maskTextFn:b,maskInputFn:y,slimDOMOptions:w,dataURLOptions:C,inlineImages:M,recordCanvas:_,preserveWhiteSpace:B,onSerialize:v,onIframeLoad:x,iframeLoadTimeout:A,onStylesheetLoad:g,stylesheetLoadTimeout:E,keepIframeSrcFn:k});te&&x(e,te)}},A),O.type===be.Element&&O.tagName==="link"&&typeof O.attributes.rel=="string"&&(O.attributes.rel==="stylesheet"||O.attributes.rel==="preload"&&typeof O.attributes.href=="string"&&Sd(O.attributes.href)==="css")&&Xb(e,()=>{if(g){const F=In(e,{doc:n,mirror:r,blockClass:s,blockSelector:o,unblockSelector:i,maskAllText:a,maskTextClass:c,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:l,skipChild:!1,inlineStylesheet:p,maskInputOptions:h,maskAttributeFn:m,maskTextFn:b,maskInputFn:y,slimDOMOptions:w,dataURLOptions:C,inlineImages:M,recordCanvas:_,preserveWhiteSpace:B,onSerialize:v,onIframeLoad:x,iframeLoadTimeout:A,onStylesheetLoad:g,stylesheetLoadTimeout:E,keepIframeSrcFn:k});F&&g(e,F)}},E),O}function tE(e,t){const{mirror:n=new yd,blockClass:r="rr-block",blockSelector:s=null,unblockSelector:o=null,maskAllText:i=!1,maskTextClass:a="rr-mask",unmaskTextClass:c=null,maskTextSelector:u=null,unmaskTextSelector:d=null,inlineStylesheet:l=!0,inlineImages:f=!1,recordCanvas:p=!1,maskAllInputs:h=!1,maskAttributeFn:m,maskTextFn:b,maskInputFn:y,slimDOM:w=!1,dataURLOptions:C,preserveWhiteSpace:M,onSerialize:_,onIframeLoad:v,iframeLoadTimeout:x,onStylesheetLoad:A,stylesheetLoadTimeout:g,keepIframeSrcFn:E=()=>!1}=t||{};return In(e,{doc:e,mirror:n,blockClass:r,blockSelector:s,unblockSelector:o,maskAllText:i,maskTextClass:a,unmaskTextClass:c,maskTextSelector:u,unmaskTextSelector:d,skipChild:!1,inlineStylesheet:l,maskInputOptions: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}:h===!1?{}:h,maskAttributeFn:m,maskTextFn:b,maskInputFn:y,slimDOMOptions:w===!0||w==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:w==="all",headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:w===!1?{}:w,dataURLOptions:C,inlineImages:f,recordCanvas:p,preserveWhiteSpace:M,onSerialize:_,onIframeLoad:v,iframeLoadTimeout:x,onStylesheetLoad:A,stylesheetLoadTimeout:g,keepIframeSrcFn:E,newlyAddedElement:!1})}function Tt(e){let t,n=e[0],r=1;for(;r<e.length;){const s=e[r],o=e[r+1];if(r+=2,(s==="optionalAccess"||s==="optionalCall")&&n==null)return;s==="access"||s==="optionalAccess"?(t=n,n=o(n)):(s==="call"||s==="optionalCall")&&(n=o((...i)=>n.call(t,...i)),t=void 0)}return n}function xe(e,t,n=document){const r={capture:!0,passive:!0};return n.addEventListener(e,t,r),()=>n.removeEventListener(e,t,r)}const bn=`Please stop import mirror directly. Instead of that,\r
27now you can use replayer.getMirror() to access the mirror instance of a replayer,\r
28or you can use record.mirror to access the mirror instance during recording.`;let Ac={map:{},getId(){return console.error(bn),-1},getNode(){return console.error(bn),null},removeNodeFromMap(){console.error(bn)},has(){return console.error(bn),!1},reset(){console.error(bn)}};typeof window<"u"&&window.Proxy&&window.Reflect&&(Ac=new Proxy(Ac,{get(e,t,n){return t==="map"&&console.error(bn),Reflect.get(e,t,n)}}));function fr(e,t,n={}){let r=null,s=0;return function(...o){const i=Date.now();!s&&n.leading===!1&&(s=i);const a=t-(i-s),c=this;a<=0||a>t?(r&&(cE(r),r=null),s=i,e.apply(c,o)):!r&&n.trailing!==!1&&(r=eo(()=>{s=n.leading===!1?0:Date.now(),r=null,e.apply(c,o)},a))}}function Td(e,t,n,r,s=window){const o=s.Object.getOwnPropertyDescriptor(e,t);return s.Object.defineProperty(e,t,r?n:{set(i){eo(()=>{n.set.call(this,i)},0),o&&o.set&&o.set.call(this,i)}}),()=>Td(e,t,o||{},!0)}
28function oa(e,t,n){try{if(!(t in e))return()=>{};const r=e[t],s=n(r);return typeof s=="function"&&(s.prototype=s.prototype||{},Object.defineProperties(s,{__rrweb_original__:{enumerable:!1,value:r}})),e[t]=s,()=>{e[t]=r}}catch{return()=>{}}}let Ds=Date.now;/[1-9][0-9]{12}/.test(Date.now().toString())||(Ds=()=>new Date().getTime());function kd(e){const t=e.document;return{left:t.scrollingElement?t.scrollingElement.scrollLeft:e.pageXOffset!==void 0?e.pageXOffset:Tt([t,"optionalAccess",n=>n.documentElement,"access",n=>n.scrollLeft])||Tt([t,"optionalAccess",n=>n.body,"optionalAccess",n=>n.parentElement,"optionalAccess",n=>n.scrollLeft])||Tt([t,"optionalAccess",n=>n.body,"optionalAccess",n=>n.scrollLeft])||0,top:t.scrollingElement?t.scrollingElement.scrollTop:e.pageYOffset!==void 0?e.pageYOffset:Tt([t,"optionalAccess",n=>n.documentElement,"access",n=>n.scrollTop])||Tt([t,"optionalAccess",n=>n.body,"optionalAccess",n=>n.parentElement,"optionalAccess",n=>n.scrollTop])||Tt([t,"optionalAccess",n=>n.body,"optionalAccess",n=>n.scrollTop])||0}}function Cd(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function xd(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function Rd(e){return e?e.nodeType===e.ELEMENT_NODE?e:e.parentElement:null}function Pe(e,t,n,r,s){if(!e)return!1;const o=Rd(e);if(!o)return!1;const i=wn(t,n);if(!s){const u=r&&o.matches(r);return i(o)&&!u}const a=en(o,i);let c=-1;return a<0?!1:(r&&(c=en(o,wn(null,r))),a>-1&&c<0?!0:a<c)}function nE(e,t){return t.getId(e)!==-1}function ko(e,t){return t.getId(e)===dr}function Md(e,t){if(or(e))return!1;const n=t.getId(e);return t.has(n)?e.parentNode&&e.parentNode.nodeType===e.DOCUMENT_NODE?!1:e.parentNode?Md(e.parentNode,t):!0:!0}function fi(e){return!!e.changedTouches}function rE(e=window){"NodeList"in e&&!e.NodeList.prototype.forEach&&(e.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in e&&!e.DOMTokenList.prototype.forEach&&(e.DOMTokenList.prototype.forEach=Array.prototype.forEach),Node.prototype.contains||(Node.prototype.contains=(...t)=>{let n=t[0];if(!(0 in t))throw new TypeError("1 argument is required");do if(this===n)return!0;while(n=n&&n.parentNode);return!1})}function Ad(e,t){return!!(e.nodeName==="IFRAME"&&t.getMeta(e))}function Od(e,t){return!!(e.nodeName==="LINK"&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&e.getAttribute("rel")==="stylesheet"&&t.getMeta(e))}function pi(e){return!!Tt([e,"optionalAccess",t=>t.shadowRoot])}class sE{constructor(){this.id=1,this.styleIDMap=new WeakMap,this.idStyleMap=new Map}getId(t){return d_(this.styleIDMap.get(t),()=>-1)}has(t){return this.styleIDMap.has(t)}add(t,n){if(this.has(t))return this.getId(t);let r;return n===void 0?r=this.id++:r=n,this.styleIDMap.set(t,r),this.idStyleMap.set(r,t),r}getStyle(t){return this.idStyleMap.get(t)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}}function Nd(e){let t=null;return Tt([e,"access",n=>n.getRootNode,"optionalCall",n=>n(),"optionalAccess",n=>n.nodeType])===Node.DOCUMENT_FRAGMENT_NODE&&e.getRootNode().host&&(t=e.getRootNode().host),t}function oE(e){let t=e,n;for(;n=Nd(t);)t=n;return t}function iE(e){const t=e.ownerDocument;if(!t)return!1;const n=oE(e);return t.contains(n)}function Dd(e){const t=e.ownerDocument;return t?t.contains(e)||iE(e):!1}const Oc={};function ia(e){const t=Oc[e];if(t)return t;const n=window.document;let r=window[e];if(n&&typeof n.createElement=="function")try{const s=n.createElement("iframe");s.hidden=!0,n.head.appendChild(s);const o=s.contentWindow;o&&o[e]&&(r=o[e]),n.head.removeChild(s)}catch{}return Oc[e]=r.bind(window)}function aE(...e){return ia("requestAnimationFrame")(...e)}function eo(...e){return ia("setTimeout")(...e)}function cE(...e){return ia("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||{}),U=(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))(U||{}),Ce=(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))(Ce||{}),ot=(e=>(e[e.Mouse=0]="Mouse",e[e.Pen=1]="Pen",e[e.Touch=2]="Touch",e))(ot||{}),Nc;(function(e){e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment"})(Nc||(Nc={}));var Dc;(function(e){e[e.PLACEHOLDER=0]="PLACEHOLDER",e[e.ELEMENT_NODE=1]="ELEMENT_NODE",e[e.ATTRIBUTE_NODE=2]="ATTRIBUTE_NODE",e[e.TEXT_NODE=3]="TEXT_NODE",e[e.CDATA_SECTION_NODE=4]="CDATA_SECTION_NODE",e[e.ENTITY_REFERENCE_NODE=5]="ENTITY_REFERENCE_NODE",e[e.ENTITY_NODE=6]="ENTITY_NODE",e[e.PROCESSING_INSTRUCTION_NODE=7]="PROCESSING_INSTRUCTION_NODE",e[e.COMMENT_NODE=8]="COMMENT_NODE",e[e.DOCUMENT_NODE=9]="DOCUMENT_NODE",e[e.DOCUMENT_TYPE_NODE=10]="DOCUMENT_TYPE_NODE",e[e.DOCUMENT_FRAGMENT_NODE=11]="DOCUMENT_FRAGMENT_NODE"})(Dc||(Dc={}));function aa(e){try{return e.contentDocument}catch{}}function uE(e){try{return e.contentWindow}catch{}}function lE(e){let t,n=e[0],r=1;for(;r<e.length;){const s=e[r],o=e[r+1];if(r+=2,(s==="optionalAccess"||s==="optionalCall")&&n==null)return;s==="access"||s==="optionalAccess"?(t=n,n=o(n)):(s==="call"||s==="optionalCall")&&(n=o((...i)=>n.call(t,...i)),t=void 0)}return n}function Pc(e){return"__ln"in e}class dE{constructor(){this.length=0,this.head=null,this.tail=null}get(t){if(t>=this.length)throw new Error("Position outside of list range");let n=this.head;for(let r=0;r<t;r++)n=lE([n,"optionalAccess",s=>s.next])||null;return n}addNode(t){const n={value:t,previous:null,next:null};if(t.__ln=n,t.previousSibling&&Pc(t.previousSibling)){const r=t.previousSibling.__ln.next;n.next=r,n.previous=t.previousSibling.__ln,t.previousSibling.__ln.next=n,r&&(r.previous=n)}else if(t.nextSibling&&Pc(t.nextSibling)&&t.nextSibling.__ln.previous){const r=t.nextSibling.__ln.previous;
28n.previous=r,n.next=t.nextSibling.__ln,t.nextSibling.__ln.previous=n,r&&(r.next=n)}else this.head&&(this.head.previous=n),n.next=this.head,this.head=n;n.next===null&&(this.tail=n),this.length++}removeNode(t){const n=t.__ln;this.head&&(n.previous?(n.previous.next=n.next,n.next?n.next.previous=n.previous:this.tail=n.previous):(this.head=n.next,this.head?this.head.previous=null:this.tail=null),t.__ln&&delete t.__ln,this.length--)}}const Lc=(e,t)=>`${e}@${t}`;class fE{constructor(){this.frozen=!1,this.locked=!1,this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.mapRemoves=[],this.movedMap={},this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.processMutations=t=>{t.forEach(this.processMutation),this.emit()},this.emit=()=>{if(this.frozen||this.locked)return;const t=[],n=new Set,r=new dE,s=c=>{let u=c,d=dr;for(;d===dr;)u=u&&u.nextSibling,d=u&&this.mirror.getId(u);return d},o=c=>{if(!c.parentNode||!Dd(c))return;const u=or(c.parentNode)?this.mirror.getId(Nd(c)):this.mirror.getId(c.parentNode),d=s(c);if(u===-1||d===-1)return r.addNode(c);const l=In(c,{doc:this.doc,mirror:this.mirror,blockClass:this.blockClass,blockSelector:this.blockSelector,maskAllText:this.maskAllText,unblockSelector:this.unblockSelector,maskTextClass:this.maskTextClass,unmaskTextClass:this.unmaskTextClass,maskTextSelector:this.maskTextSelector,unmaskTextSelector:this.unmaskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:this.inlineStylesheet,maskInputOptions:this.maskInputOptions,maskAttributeFn:this.maskAttributeFn,maskTextFn:this.maskTextFn,maskInputFn:this.maskInputFn,slimDOMOptions:this.slimDOMOptions,dataURLOptions:this.dataURLOptions,recordCanvas:this.recordCanvas,inlineImages:this.inlineImages,onSerialize:f=>{Ad(f,this.mirror)&&!Pe(f,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&this.iframeManager.addIframe(f),Od(f,this.mirror)&&this.stylesheetManager.trackLinkElement(f),pi(c)&&this.shadowDomManager.addShadowRoot(c.shadowRoot,this.doc)},onIframeLoad:(f,p)=>{Pe(f,this.blockClass,this.blockSelector,this.unblockSelector,!1)||(this.iframeManager.attachIframe(f,p),f.contentWindow&&this.canvasManager.addWindow(f.contentWindow),this.shadowDomManager.observeAttachShadow(f))},onStylesheetLoad:(f,p)=>{this.stylesheetManager.attachLinkElement(f,p)}});l&&(t.push({parentId:u,nextId:d,node:l}),n.add(l.id))};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(const c of this.movedSet)Fc(this.removes,c,this.mirror)&&!this.movedSet.has(c.parentNode)||o(c);for(const c of this.addedSet)!$c(this.droppedSet,c)&&!Fc(this.removes,c,this.mirror)||$c(this.movedSet,c)?o(c):this.droppedSet.add(c);let i=null;for(;r.length;){let c=null;if(i){const u=this.mirror.getId(i.value.parentNode),d=s(i.value);u!==-1&&d!==-1&&(c=i)}if(!c){let u=r.tail;for(;u;){const d=u;if(u=u.previous,d){const l=this.mirror.getId(d.value.parentNode);if(s(d.value)===-1)continue;if(l!==-1){c=d;break}else{const p=d.value;if(p.parentNode&&p.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE){const h=p.parentNode.host;if(this.mirror.getId(h)!==-1){c=d;break}}}}}}if(!c){for(;r.head;)r.removeNode(r.head.value);break}i=c.previous,r.removeNode(c.value),o(c.value)}const a={texts:this.texts.map(c=>({id:this.mirror.getId(c.node),value:c.value})).filter(c=>!n.has(c.id)).filter(c=>this.mirror.has(c.id)),attributes:this.attributes.map(c=>{const{attributes:u}=c;if(typeof u.style=="string"){const d=JSON.stringify(c.styleDiff),l=JSON.stringify(c._unchangedStyles);d.length<u.style.length&&(d+l).split("var(").length===u.style.split("var(").length&&(u.style=c.styleDiff)}return{id:this.mirror.getId(c.node),attributes:u}}).filter(c=>!n.has(c.id)).filter(c=>this.mirror.has(c.id)),removes:this.removes,adds:t};!a.texts.length&&!a.attributes.length&&!a.removes.length&&!a.adds.length||(this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.movedMap={},this.mutationCb(a))},this.processMutation=t=>{if(!ko(t.target,this.mirror))switch(t.type){case"characterData":{const n=t.target.textContent;!Pe(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&n!==t.oldValue&&this.texts.push({value:Un(t.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,this.maskAllText)&&n?this.maskTextFn?this.maskTextFn(n,Rd(t.target)):n.replace(/[\S]/g,"*"):n,node:t.target});break}case"attributes":{const n=t.target;let r=t.attributeName,s=t.target.getAttribute(r);if(r==="value"){const i=ra(n),a=n.tagName;s=Os(n,a,i);const c=Zs({maskInputOptions:this.maskInputOptions,tagName:a,type:i}),u=Un(t.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,c);s=lr({isMasked:u,element:n,value:s,maskInputFn:this.maskInputFn})}if(Pe(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||s===t.oldValue)return;let o=this.attributeMap.get(t.target);if(n.tagName==="IFRAME"&&r==="src"&&!this.keepIframeSrcFn(s))if(!aa(n))r="rr_src";else return;if(o||(o={node:t.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(o),this.attributeMap.set(t.target,o)),r==="type"&&n.tagName==="INPUT"&&(t.oldValue||"").toLowerCase()==="password"&&n.setAttribute("data-rr-is-password","true"),!Id(n.tagName,r)&&(o.attributes[r]=wd(this.doc,$n(n.tagName),$n(r),s,n,this.maskAttributeFn),r==="style")){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch{this.unattachedDoc=this.doc}const i=this.unattachedDoc.createElement("span");t.oldValue&&i.setAttribute("style",t.oldValue);for(const a of Array.from(n.style)){const c=n.style.getPropertyValue(a),u=n.style.getPropertyPriority(a);c!==i.style.getPropertyValue(a)||u!==i.style.getPropertyPriority(a)?u===""?o.styleDiff[a]=c:o.styleDiff[a]=[c,u]:o._unchangedStyles[a]=[c,u]}for(const a of Array.from(i.style))n.style.getPropertyValue(a)===""&&(o.styleDiff[a]=!1)}break}
28case"childList":{if(Pe(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!0))return;t.addedNodes.forEach(n=>this.genAdds(n,t.target)),t.removedNodes.forEach(n=>{const r=this.mirror.getId(n),s=or(t.target)?this.mirror.getId(t.target.host):this.mirror.getId(t.target);Pe(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||ko(n,this.mirror)||!nE(n,this.mirror)||(this.addedSet.has(n)?(hi(this.addedSet,n),this.droppedSet.add(n)):this.addedSet.has(t.target)&&r===-1||Md(t.target,this.mirror)||(this.movedSet.has(n)&&this.movedMap[Lc(r,s)]?hi(this.movedSet,n):this.removes.push({parentId:s,id:r,isShadow:or(t.target)&&ir(t.target)?!0:void 0})),this.mapRemoves.push(n))});break}}},this.genAdds=(t,n)=>{if(!this.processedNodeManager.inOtherBuffer(t,this)&&!(this.addedSet.has(t)||this.movedSet.has(t))){if(this.mirror.hasNode(t)){if(ko(t,this.mirror))return;this.movedSet.add(t);let r=null;n&&this.mirror.hasNode(n)&&(r=this.mirror.getId(n)),r&&r!==-1&&(this.movedMap[Lc(this.mirror.getId(t),r)]=!0)}else this.addedSet.add(t),this.droppedSet.delete(t);Pe(t,this.blockClass,this.blockSelector,this.unblockSelector,!1)||(t.childNodes.forEach(r=>this.genAdds(r)),pi(t)&&t.shadowRoot.childNodes.forEach(r=>{this.processedNodeManager.add(r,this),this.genAdds(r,t)}))}}}init(t){["mutationCb","blockClass","blockSelector","unblockSelector","maskAllText","maskTextClass","unmaskTextClass","maskTextSelector","unmaskTextSelector","inlineStylesheet","maskInputOptions","maskAttributeFn","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager"].forEach(n=>{this[n]=t[n]})}freeze(){this.frozen=!0,this.canvasManager.freeze()}unfreeze(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()}isFrozen(){return this.frozen}lock(){this.locked=!0,this.canvasManager.lock()}unlock(){this.locked=!1,this.canvasManager.unlock(),this.emit()}reset(){this.shadowDomManager.reset(),this.canvasManager.reset()}}function hi(e,t){e.delete(t),t.childNodes.forEach(n=>hi(e,n))}function Fc(e,t,n){return e.length===0?!1:pE(e,t,n)}function pE(e,t,n){let r=t.parentNode;for(;r;){const s=n.getId(r);if(e.some(o=>o.id===s))return!0;r=r.parentNode}return!1}function $c(e,t){return e.size===0?!1:Pd(e,t)}function Pd(e,t){const{parentNode:n}=t;return n?e.has(n)?!0:Pd(e,n):!1}let ar;function hE(e){ar=e}function mE(){ar=void 0}const X=e=>ar?((...n)=>{try{return e(...n)}catch(r){if(ar&&ar(r)===!0)return()=>{};throw r}}):e;function Ke(e){let t,n=e[0],r=1;for(;r<e.length;){const s=e[r],o=e[r+1];if(r+=2,(s==="optionalAccess"||s==="optionalCall")&&n==null)return;s==="access"||s==="optionalAccess"?(t=n,n=o(n)):(s==="call"||s==="optionalCall")&&(n=o((...i)=>n.call(t,...i)),t=void 0)}return n}const Tn=[];function xr(e){try{if("composedPath"in e){const t=e.composedPath();if(t.length)return t[0]}else if("path"in e&&e.path.length)return e.path[0]}catch{}return e&&e.target}function Ld(e,t){const n=new fE;Tn.push(n),n.init(e);let r=window.MutationObserver||window.__rrMutationObserver;const s=Ke([window,"optionalAccess",i=>i.Zone,"optionalAccess",i=>i.__symbol__,"optionalCall",i=>i("MutationObserver")]);s&&window[s]&&(r=window[s]);const o=new r(X(i=>{e.onMutation&&e.onMutation(i)===!1||n.processMutations.bind(n)(i)}));return o.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),o}function gE({mousemoveCb:e,sampling:t,doc:n,mirror:r}){if(t.mousemove===!1)return()=>{};const s=typeof t.mousemove=="number"?t.mousemove:50,o=typeof t.mousemoveCallback=="number"?t.mousemoveCallback:500;let i=[],a;const c=fr(X(l=>{const f=Date.now()-a;e(i.map(p=>(p.timeOffset-=f,p)),l),i=[],a=null}),o),u=X(fr(X(l=>{const f=xr(l),{clientX:p,clientY:h}=fi(l)?l.changedTouches[0]:l;a||(a=Ds()),i.push({x:p,y:h,id:r.getId(f),timeOffset:Ds()-a}),c(typeof DragEvent<"u"&&l instanceof DragEvent?U.Drag:l instanceof MouseEvent?U.MouseMove:U.TouchMove)}),s,{trailing:!1})),d=[xe("mousemove",u,n),xe("touchmove",u,n),xe("drag",u,n)];return X(()=>{d.forEach(l=>l())})}function _E({mouseInteractionCb:e,doc:t,mirror:n,blockClass:r,blockSelector:s,unblockSelector:o,sampling:i}){if(i.mouseInteraction===!1)return()=>{};const a=i.mouseInteraction===!0||i.mouseInteraction===void 0?{}:i.mouseInteraction,c=[];let u=null;const d=l=>f=>{const p=xr(f);if(Pe(p,r,s,o,!0))return;let h=null,m=l;if("pointerType"in f){switch(f.pointerType){case"mouse":h=ot.Mouse;break;case"touch":h=ot.Touch;break;case"pen":h=ot.Pen;break}h===ot.Touch?Ce[l]===Ce.MouseDown?m="TouchStart":Ce[l]===Ce.MouseUp&&(m="TouchEnd"):ot.Pen}else fi(f)&&(h=ot.Touch);h!==null?(u=h,(m.startsWith("Touch")&&h===ot.Touch||m.startsWith("Mouse")&&h===ot.Mouse)&&(h=null)):Ce[l]===Ce.Click&&(h=u,u=null);const b=fi(f)?f.changedTouches[0]:f;if(!b)return;const y=n.getId(p),{clientX:w,clientY:C}=b;X(e)({type:Ce[m],id:y,x:w,y:C,...h!==null&&{pointerType:h}})};return Object.keys(Ce).filter(l=>Number.isNaN(Number(l))&&!l.endsWith("_Departed")&&a[l]!==!1).forEac
28h(l=>{let f=$n(l);const p=d(l);if(window.PointerEvent)switch(Ce[l]){case Ce.MouseDown:case Ce.MouseUp:f=f.replace("mouse","pointer");break;case Ce.TouchStart:case Ce.TouchEnd:return}c.push(xe(f,p,t))}),X(()=>{c.forEach(l=>l())})}function Fd({scrollCb:e,doc:t,mirror:n,blockClass:r,blockSelector:s,unblockSelector:o,sampling:i}){const a=X(fr(X(c=>{const u=xr(c);if(!u||Pe(u,r,s,o,!0))return;const d=n.getId(u);if(u===t&&t.defaultView){const l=kd(t.defaultView);e({id:d,x:l.left,y:l.top})}else e({id:d,x:u.scrollLeft,y:u.scrollTop})}),i.scroll||100));return xe("scroll",a,t)}function yE({viewportResizeCb:e},{win:t}){let n=-1,r=-1;const s=X(fr(X(()=>{const o=Cd(),i=xd();(n!==o||r!==i)&&(e({width:Number(i),height:Number(o)}),n=o,r=i)}),200));return xe("resize",s,t)}const SE=["INPUT","TEXTAREA","SELECT"],Uc=new WeakMap;function bE({inputCb:e,doc:t,mirror:n,blockClass:r,blockSelector:s,unblockSelector:o,ignoreClass:i,ignoreSelector:a,maskInputOptions:c,maskInputFn:u,sampling:d,userTriggeredOnInput:l,maskTextClass:f,unmaskTextClass:p,maskTextSelector:h,unmaskTextSelector:m}){function b(x){let A=xr(x);const g=x.isTrusted,E=A&&li(A.tagName);if(E==="OPTION"&&(A=A.parentElement),!A||!E||SE.indexOf(E)<0||Pe(A,r,s,o,!0))return;const k=A;if(k.classList.contains(i)||a&&k.matches(a))return;const I=ra(A);let B=Os(k,E,I),V=!1;const z=Zs({maskInputOptions:c,tagName:E,type:I}),O=Un(A,f,h,p,m,z);(I==="radio"||I==="checkbox")&&(V=A.checked),B=lr({isMasked:O,element:A,value:B,maskInputFn:u}),y(A,l?{text:B,isChecked:V,userTriggered:g}:{text:B,isChecked:V});const ce=A.name;I==="radio"&&ce&&V&&t.querySelectorAll(`input[type="radio"][name="${ce}"]`).forEach(F=>{if(F!==A){const te=lr({isMasked:O,element:F,value:Os(F,E,I),maskInputFn:u});y(F,l?{text:te,isChecked:!V,userTriggered:!1}:{text:te,isChecked:!V})}})}function y(x,A){const g=Uc.get(x);if(!g||g.text!==A.text||g.isChecked!==A.isChecked){Uc.set(x,A);const E=n.getId(x);X(e)({...A,id:E})}}const C=(d.input==="last"?["change"]:["input","change"]).map(x=>xe(x,X(b),t)),M=t.defaultView;if(!M)return()=>{C.forEach(x=>x())};const _=M.Object.getOwnPropertyDescriptor(M.HTMLInputElement.prototype,"value"),v=[[M.HTMLInputElement.prototype,"value"],[M.HTMLInputElement.prototype,"checked"],[M.HTMLSelectElement.prototype,"value"],[M.HTMLTextAreaElement.prototype,"value"],[M.HTMLSelectElement.prototype,"selectedIndex"],[M.HTMLOptionElement.prototype,"selected"]];return _&&_.set&&C.push(...v.map(x=>Td(x[0],x[1],{set(){X(b)({target:this,isTrusted:!1})}},!1,M))),X(()=>{C.forEach(x=>x())})}function Ps(e){const t=[];function n(r,s){if(Yr("CSSGroupingRule")&&r.parentRule instanceof CSSGroupingRule||Yr("CSSMediaRule")&&r.parentRule instanceof CSSMediaRule||Yr("CSSSupportsRule")&&r.parentRule instanceof CSSSupportsRule||Yr("CSSConditionRule")&&r.parentRule instanceof CSSConditionRule){const i=Array.from(r.parentRule.cssRules).indexOf(r);s.unshift(i)}else if(r.parentStyleSheet){const i=Array.from(r.parentStyleSheet.cssRules).indexOf(r);s.unshift(i)}return s}return n(e,t)}function kt(e,t,n){let r,s;return e?(e.ownerNode?r=t.getId(e.ownerNode):s=n.getId(e),{styleId:s,id:r}):{}}function EE({styleSheetRuleCb:e,mirror:t,stylesheetManager:n},{win:r}){if(!r.CSSStyleSheet||!r.CSSStyleSheet.prototype)return()=>{};const s=r.CSSStyleSheet.prototype.insertRule;r.CSSStyleSheet.prototype.insertRule=new Proxy(s,{apply:X((d,l,f)=>{const[p,h]=f,{id:m,styleId:b}=kt(l,t,n.styleMirror);return(m&&m!==-1||b&&b!==-1)&&e({id:m,styleId:b,adds:[{rule:p,index:h}]}),d.apply(l,f)})});const o=r.CSSStyleSheet.prototype.deleteRule;r.CSSStyleSheet.prototype.deleteRule=new Proxy(o,{apply:X((d,l,f)=>{const[p]=f,{id:h,styleId:m}=kt(l,t,n.styleMirror);return(h&&h!==-1||m&&m!==-1)&&e({id:h,styleId:m,removes:[{index:p}]}),d.apply(l,f)})});let i;r.CSSStyleSheet.prototype.replace&&(i=r.CSSStyleSheet.prototype.replace,r.CSSStyleSheet.prototype.replace=new Proxy(i,{apply:X((d,l,f)=>{const[p]=f,{id:h,styleId:m}=kt(l,t,n.styleMirror);return(h&&h!==-1||m&&m!==-1)&&e({id:h,styleId:m,replace:p}),d.apply(l,f)})}));let a;r.CSSStyleSheet.prototype.replaceSync&&(a=r.CSSStyleSheet.prototype.replaceSync,r.CSSStyleSheet.prototype.replaceSync=new Proxy(a,{apply:X((d,l,f)=>{const[p]=f,{id:h,styleId:m}=kt(l,t,n.styleMirror);
28return(h&&h!==-1||m&&m!==-1)&&e({id:h,styleId:m,replaceSync:p}),d.apply(l,f)})}));const c={};Xr("CSSGroupingRule")?c.CSSGroupingRule=r.CSSGroupingRule:(Xr("CSSMediaRule")&&(c.CSSMediaRule=r.CSSMediaRule),Xr("CSSConditionRule")&&(c.CSSConditionRule=r.CSSConditionRule),Xr("CSSSupportsRule")&&(c.CSSSupportsRule=r.CSSSupportsRule));const u={};return Object.entries(c).forEach(([d,l])=>{u[d]={insertRule:l.prototype.insertRule,deleteRule:l.prototype.deleteRule},l.prototype.insertRule=new Proxy(u[d].insertRule,{apply:X((f,p,h)=>{const[m,b]=h,{id:y,styleId:w}=kt(p.parentStyleSheet,t,n.styleMirror);return(y&&y!==-1||w&&w!==-1)&&e({id:y,styleId:w,adds:[{rule:m,index:[...Ps(p),b||0]}]}),f.apply(p,h)})}),l.prototype.deleteRule=new Proxy(u[d].deleteRule,{apply:X((f,p,h)=>{const[m]=h,{id:b,styleId:y}=kt(p.parentStyleSheet,t,n.styleMirror);return(b&&b!==-1||y&&y!==-1)&&e({id:b,styleId:y,removes:[{index:[...Ps(p),m]}]}),f.apply(p,h)})})}),X(()=>{r.CSSStyleSheet.prototype.insertRule=s,r.CSSStyleSheet.prototype.deleteRule=o,i&&(r.CSSStyleSheet.prototype.replace=i),a&&(r.CSSStyleSheet.prototype.replaceSync=a),Object.entries(c).forEach(([d,l])=>{l.prototype.insertRule=u[d].insertRule,l.prototype.deleteRule=u[d].deleteRule})})}function $d({mirror:e,stylesheetManager:t},n){let r=null;n.nodeName==="#document"?r=e.getId(n):r=e.getId(n.host);const s=n.nodeName==="#document"?Ke([n,"access",i=>i.defaultView,"optionalAccess",i=>i.Document]):Ke([n,"access",i=>i.ownerDocument,"optionalAccess",i=>i.defaultView,"optionalAccess",i=>i.ShadowRoot]),o=Ke([s,"optionalAccess",i=>i.prototype])?Object.getOwnPropertyDescriptor(Ke([s,"optionalAccess",i=>i.prototype]),"adoptedStyleSheets"):void 0;return r===null||r===-1||!s||!o?()=>{}:(Object.defineProperty(n,"adoptedStyleSheets",{configurable:o.configurable,enumerable:o.enumerable,get(){return Ke([o,"access",i=>i.get,"optionalAccess",i=>i.call,"call",i=>i(this)])},set(i){const a=Ke([o,"access",c=>c.set,"optionalAccess",c=>c.call,"call",c=>c(this,i)]);if(r!==null&&r!==-1)try{t.adoptStyleSheets(i,r)}catch{}return a}}),X(()=>{Object.defineProperty(n,"adoptedStyleSheets",{configurable:o.configurable,enumerable:o.enumerable,get:o.get,set:o.set})}))}function vE({styleDeclarationCb:e,mirror:t,ignoreCSSAttributes:n,stylesheetManager:r},{win:s}){const o=s.CSSStyleDeclaration.prototype.setProperty;s.CSSStyleDeclaration.prototype.setProperty=new Proxy(o,{apply:X((a,c,u)=>{const[d,l,f]=u;if(n.has(d))return o.apply(c,[d,l,f]);const{id:p,styleId:h}=kt(Ke([c,"access",m=>m.parentRule,"optionalAccess",m=>m.parentStyleSheet]),t,r.styleMirror);return(p&&p!==-1||h&&h!==-1)&&e({id:p,styleId:h,set:{property:d,value:l,priority:f},index:Ps(c.parentRule)}),a.apply(c,u)})});const i=s.CSSStyleDeclaration.prototype.removeProperty;return s.CSSStyleDeclaration.prototype.removeProperty=new Proxy(i,{apply:X((a,c,u)=>{const[d]=u;if(n.has(d))return i.apply(c,[d]);const{id:l,styleId:f}=kt(Ke([c,"access",p=>p.parentRule,"optionalAccess",p=>p.parentStyleSheet]),t,r.styleMirror);return(l&&l!==-1||f&&f!==-1)&&e({id:l,styleId:f,remove:{property:d},index:Ps(c.parentRule)}),a.apply(c,u)})}),X(()=>{s.CSSStyleDeclaration.prototype.setProperty=o,s.CSSStyleDeclaration.prototype.removeProperty=i})}function wE({mediaInteractionCb:e,blockClass:t,blockSelector:n,unblockSelector:r,mirror:s,sampling:o,doc:i}){const a=X(u=>fr(X(d=>{const l=xr(d);if(!l||Pe(l,t,n,r,!0))return;const{currentTime:f,volume:p,muted:h,playbackRate:m}=l;e({type:u,id:s.getId(l),currentTime:f,volume:p,muted:h,playbackRate:m})}),o.media||500)),c=[xe("play",a(0),i),xe("pause",a(1),i),xe("seeked",a(2),i),xe("volumechange",a(3),i),xe("ratechange",a(4),i)];return X(()=>{c.forEach(u=>u())})}function IE({fontCb:e,doc:t}){const n=t.defaultView;if(!n)return()=>{};const r=[],s=new WeakMap,o=n.FontFace;n.FontFace=function(c,u,d){const l=new o(c,u,d);return s.set(l,{family:c,buffer:typeof u!="string",descriptors:d,fontSource:typeof u=="string"?u:JSON.stringify(Array.from(new Uint8Array(u)))}),l};const i=oa(t.fonts,"add",function(a){return function(c){return eo(X(()=>{const u=s.get(c);u&&(e(u),s.delete(c))}),0),a.apply(this,[c])}});return r.push(()=>{n.FontFace=o}),r.push(i),X(()=>{r.forEach(a=>a())})}function TE(e){const{doc:t,mirror:n,blockClass:r,blockSelector:s,unblockSelector:o,selectionCb:i}=e;let a=!0;const c=X(()=>{const u=t.getSelection();if(!u||a&&Ke([u,"optionalAccess",f=>f.isCollapsed]))return;a=u.isCollapsed||!1;const d=[],l=u.rangeCount||0;for(let f=0;f<l;f++){const p=u.getRangeAt(f),{startContainer:h,startOffset:m,endContainer:b,endOffset:y}=p;Pe(h,r,s,o,!0)||Pe(b,r,s,o,!0)||d.push({start:n.getId(h),startOffset:m,end:n.getId(b),endOffset:y})}i({ranges:d})});return c(),xe("selectionchange",c)}function kE({doc:e,customElementCb:t}){const n=e.defaultView;return!n||!n.customElements?()=>{}:oa(n.customElements,"define",function(s){return function(o,i,a){try{t({define:{name:o}})}catch{}return s.apply(this,[o,i,a])}})}function CE(e,t={}){const n=e.doc.defaultView;if(!n)return()=>{};let r;e.recordDOM&&(r=Ld(e,e.doc));const s=gE(e),o=_E(e),i=Fd(e),a=yE(e,{win:n}),c=bE(e),u=wE(e);let d=()=>{},l=()=>{},f=()=>{},p=()=>{};e.recordDOM&&(d=EE(e,{win:n}),l=$d(e,e.doc),f=vE(e,{win:n}),e.collectFonts&&(p=IE(e)));const h=TE(e),m=kE(e),b=[];for(const y of e.plugins)b.push(y.observer(y.callback,n,y.options));return X(()=>
28{Tn.forEach(y=>y.reset()),Ke([r,"optionalAccess",y=>y.disconnect,"call",y=>y()]),s(),o(),i(),a(),c(),u(),d(),l(),f(),p(),h(),m(),b.forEach(y=>y())})}function Yr(e){return typeof window[e]<"u"}function Xr(e){return!!(typeof window[e]<"u"&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}class mi{constructor(t){this.generateIdFn=t,this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap}getId(t,n,r,s){const o=r||this.getIdToRemoteIdMap(t),i=s||this.getRemoteIdToIdMap(t);let a=o.get(n);return a||(a=this.generateIdFn(),o.set(n,a),i.set(a,n)),a}getIds(t,n){const r=this.getIdToRemoteIdMap(t),s=this.getRemoteIdToIdMap(t);return n.map(o=>this.getId(t,o,r,s))}getRemoteId(t,n,r){const s=r||this.getRemoteIdToIdMap(t);if(typeof n!="number")return n;const o=s.get(n);return o||-1}getRemoteIds(t,n){const r=this.getRemoteIdToIdMap(t);return n.map(s=>this.getRemoteId(t,s,r))}reset(t){if(!t){this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap;return}this.iframeIdToRemoteIdMap.delete(t),this.iframeRemoteIdToIdMap.delete(t)}getIdToRemoteIdMap(t){let n=this.iframeIdToRemoteIdMap.get(t);return n||(n=new Map,this.iframeIdToRemoteIdMap.set(t,n)),n}getRemoteIdToIdMap(t){let n=this.iframeRemoteIdToIdMap.get(t);return n||(n=new Map,this.iframeRemoteIdToIdMap.set(t,n)),n}}function Bc(e){let t,n=e[0],r=1;for(;r<e.length;){const s=e[r],o=e[r+1];if(r+=2,(s==="optionalAccess"||s==="optionalCall")&&n==null)return;s==="access"||s==="optionalAccess"?(t=n,n=o(n)):(s==="call"||s==="optionalCall")&&(n=o((...i)=>n.call(t,...i)),t=void 0)}return n}class xE{constructor(){this.crossOriginIframeMirror=new mi(sa),this.crossOriginIframeRootIdMap=new WeakMap}addIframe(){}addLoadListener(){}attachIframe(){}}class RE{constructor(t){this.iframes=new WeakMap,this.crossOriginIframeMap=new WeakMap,this.crossOriginIframeMirror=new mi(sa),this.crossOriginIframeRootIdMap=new WeakMap,this.mutationCb=t.mutationCb,this.wrappedEmit=t.wrappedEmit,this.stylesheetManager=t.stylesheetManager,this.recordCrossOriginIframes=t.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new mi(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=t.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}addIframe(t){this.iframes.set(t,!0),t.contentWindow&&this.crossOriginIframeMap.set(t.contentWindow,t)}addLoadListener(t){this.loadListener=t}attachIframe(t,n){this.mutationCb({adds:[{parentId:this.mirror.getId(t),nextId:null,node:n}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),Bc([this,"access",s=>s.loadListener,"optionalCall",s=>s(t)]);const r=aa(t);r&&r.adoptedStyleSheets&&r.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(r.adoptedStyleSheets,this.mirror.getId(r))}handleMessage(t){const n=t;if(n.data.type!=="rrweb"||n.origin!==n.data.origin||!t.source)return;const s=this.crossOriginIframeMap.get(t.source);if(!s)return;const o=this.transformCrossOriginEvent(s,n.data.event);o&&this.wrappedEmit(o,n.data.isCheckout)}transformCrossOriginEvent(t,n){switch(n.type){case j.FullSnapshot:{this.crossOriginIframeMirror.reset(t),this.crossOriginIframeStyleMirror.reset(t),this.replaceIdOnNode(n.data.node,t);const r=n.data.node.id;return this.crossOriginIframeRootIdMap.set(t,r),this.patchRootIdOnNode(n.data.node,r),{timestamp:n.timestamp,type:j.IncrementalSnapshot,data:{source:U.Mutation,adds:[{parentId:this.mirror.getId(t),nextId:null,node:n.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case j.Meta:case j.Load:case j.DomContentLoaded:return!1;case j.Plugin:return n;case j.Custom:return this.replaceIds(n.data.payload,t,["id","parentId","previousId","nextId"]),n;case j.IncrementalSnapshot:switch(n.data.source){case U.Mutation:return n.data.adds.forEach(r=>{this.replaceIds(r,t,["parentId","nextId","previousId"]),this.replaceIdOnNode(r.node,t);const s=this.crossOriginIframeRootIdMap.get(t);s&&this.patchRootIdOnNode(r.node,s)}),n.data.removes.forEach(r=>{this.replaceIds(r,t,["parentId","id"])}
28),n.data.attributes.forEach(r=>{this.replaceIds(r,t,["id"])}),n.data.texts.forEach(r=>{this.replaceIds(r,t,["id"])}),n;case U.Drag:case U.TouchMove:case U.MouseMove:return n.data.positions.forEach(r=>{this.replaceIds(r,t,["id"])}),n;case U.ViewportResize:return!1;case U.MediaInteraction:case U.MouseInteraction:case U.Scroll:case U.CanvasMutation:case U.Input:return this.replaceIds(n.data,t,["id"]),n;case U.StyleSheetRule:case U.StyleDeclaration:return this.replaceIds(n.data,t,["id"]),this.replaceStyleIds(n.data,t,["styleId"]),n;case U.Font:return n;case U.Selection:return n.data.ranges.forEach(r=>{this.replaceIds(r,t,["start","end"])}),n;case U.AdoptedStyleSheet:return this.replaceIds(n.data,t,["id"]),this.replaceStyleIds(n.data,t,["styleIds"]),Bc([n,"access",r=>r.data,"access",r=>r.styles,"optionalAccess",r=>r.forEach,"call",r=>r(s=>{this.replaceStyleIds(s,t,["styleId"])})]),n}}return!1}replace(t,n,r,s){for(const o of s)!Array.isArray(n[o])&&typeof n[o]!="number"||(Array.isArray(n[o])?n[o]=t.getIds(r,n[o]):n[o]=t.getId(r,n[o]));return n}replaceIds(t,n,r){return this.replace(this.crossOriginIframeMirror,t,n,r)}replaceStyleIds(t,n,r){return this.replace(this.crossOriginIframeStyleMirror,t,n,r)}replaceIdOnNode(t,n){this.replaceIds(t,n,["id","rootId"]),"childNodes"in t&&t.childNodes.forEach(r=>{this.replaceIdOnNode(r,n)})}patchRootIdOnNode(t,n){t.type!==be.Document&&!t.rootId&&(t.rootId=n),"childNodes"in t&&t.childNodes.forEach(r=>{this.patchRootIdOnNode(r,n)})}}class ME{init(){}addShadowRoot(){}observeAttachShadow(){}reset(){}}class AE{constructor(t){this.shadowDoms=new WeakSet,this.restoreHandlers=[],this.mutationCb=t.mutationCb,this.scrollCb=t.scrollCb,this.bypassOptions=t.bypassOptions,this.mirror=t.mirror,this.init()}init(){this.reset(),this.patchAttachShadow(Element,document)}addShadowRoot(t,n){if(!ir(t)||this.shadowDoms.has(t))return;this.shadowDoms.add(t),this.bypassOptions.canvasManager.addShadowRoot(t);const r=Ld({...this.bypassOptions,doc:n,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this},t);this.restoreHandlers.push(()=>r.disconnect()),this.restoreHandlers.push(Fd({...this.bypassOptions,scrollCb:this.scrollCb,doc:t,mirror:this.mirror})),eo(()=>{t.adoptedStyleSheets&&t.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(t.adoptedStyleSheets,this.mirror.getId(t.host)),this.restoreHandlers.push($d({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},t))},0)}observeAttachShadow(t){const n=aa(t),r=uE(t);!n||!r||this.patchAttachShadow(r.Element,n)}patchAttachShadow(t,n){const r=this;this.restoreHandlers.push(oa(t.prototype,"attachShadow",function(s){return function(o){const i=s.call(this,o);return this.shadowRoot&&Dd(this)&&r.addShadowRoot(this.shadowRoot,n),i}}))}reset(){this.restoreHandlers.forEach(t=>{try{t()}catch{}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet,this.bypassOptions.canvasManager.resetShadowRoots()}}class Hc{reset(){}freeze(){}unfreeze(){}lock(){}unlock(){}snapshot(){}addWindow(){}addShadowRoot(){}resetShadowRoots(){}}class OE{constructor(t){this.trackedLinkElements=new WeakSet,this.styleMirror=new sE,this.mutationCb=t.mutationCb,this.adoptedStyleSheetCb=t.adoptedStyleSheetCb}attachLinkElement(t,n){"_cssText"in n.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:n.id,attributes:n.attributes}]}),this.trackLinkElement(t)}trackLinkElement(t){this.trackedLinkElements.has(t)||(this.trackedLinkElements.add(t),this.trackStylesheetInLinkElement(t))}adoptStyleSheets(t,n){if(t.length===0)return;const r={id:n,styleIds:[]},s=[];for(const o of t){let i;this.styleMirror.has(o)?i=this.styleMirror.getId(o):(i=this.styleMirror.add(o),s.push({styleId:i,rules:Array.from(o.rules||CSSRule,(a,c)=>({rule:_d(a),index:c}))})),r.styleIds.push(i)}s.length>0&&(r.styles=s),this.adoptedStyleSheetCb(r)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(t){}}class NE{constructor(){this.nodeMap=new WeakMap,this.active=!1}inOtherBuffer(t,n){const r=this.nodeMap.get(t);return r&&Array.from(r).some(s=>s!==n)}add(t,n){this.active||(this.active=!0,aE(()=>{this.nodeMap=new WeakMap,this.active=!1})),this.nodeMap.set(t,(this.nodeMap.get(t)||new Set).add(n))}destroy(){}}let pe,Ls;try{if(Array.from([1],e=>e*2)[0]!==2){const e=document.createElement("iframe");document.body.appendChild(e),Array.from=on([e,"access",t=>t.contentWindow,"optionalAccess",t=>t.Array,"access",t=>t.from])||Array.from,document.body.removeChild(e)}}catch(e){console.debug("Unable to override Array.from",e)}const Ye=Ob();function dt(e={}){const{emit:t,checkoutEveryNms:n,checkoutEveryNth:r,blockClass:s="rr
28-block",blockSelector:o=null,unblockSelector:i=null,ignoreClass:a="rr-ignore",ignoreSelector:c=null,maskAllText:u=!1,maskTextClass:d="rr-mask",unmaskTextClass:l=null,maskTextSelector:f=null,unmaskTextSelector:p=null,inlineStylesheet:h=!0,maskAllInputs:m,maskInputOptions:b,slimDOMOptions:y,maskAttributeFn:w,maskInputFn:C,maskTextFn:M,maxCanvasSize:_=null,packFn:v,sampling:x={},dataURLOptions:A={},mousemoveWait:g,recordDOM:E=!0,recordCanvas:k=!1,recordCrossOriginIframes:I=!1,recordAfter:B=e.recordAfter==="DOMContentLoaded"?e.recordAfter:"load",userTriggeredOnInput:V=!1,collectFonts:z=!1,inlineImages:O=!1,plugins:ce,keepIframeSrcFn:F=()=>!1,ignoreCSSAttributes:te=new Set([]),errorHandler:ke,onMutation:je,getCanvasManager:Yt}=e;hE(ke);const hn=I?window.parent===window:!0;let qe=!1;if(!hn)try{window.parent.document&&(qe=!1)}catch{qe=!0}if(hn&&!t)throw new Error("emit function is required");if(!hn&&!qe)return()=>{};g!==void 0&&x.mousemove===void 0&&(x.mousemove=g),Ye.reset();const $e=m===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,radio:!0,checkbox:!0}:b!==void 0?b:{},st=y===!0||y==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:y==="all",headMetaDescKeywords:y==="all"}:y||{};rE();let mn,gn=0;const Jn=K=>{for(const Ve of ce||[])Ve.eventProcessor&&(K=Ve.eventProcessor(K));return v&&!qe&&(K=v(K)),K};pe=(K,Ve)=>{const Y=K;if(Y.timestamp=Ds(),on([Tn,"access",le=>le[0],"optionalAccess",le=>le.isFrozen,"call",le=>le()])&&Y.type!==j.FullSnapshot&&!(Y.type===j.IncrementalSnapshot&&Y.data.source===U.Mutation)&&Tn.forEac
28h(le=>le.unfreeze()),hn)on([t,"optionalCall",le=>le(Jn(Y),Ve)]);else if(qe){const le={type:"rrweb",event:Jn(Y),origin:window.location.origin,isCheckout:Ve};window.parent.postMessage(le,"*")}if(Y.type===j.FullSnapshot)mn=Y,gn=0;else if(Y.type===j.IncrementalSnapshot){if(Y.data.source===U.Mutation&&Y.data.isAttachIframe)return;gn++;const le=r&&gn>=r,J=n&&mn&&Y.timestamp-mn.timestamp>n;(le||J)&&lo(!0)}};const vt=K=>{pe({type:j.IncrementalSnapshot,data:{source:U.Mutation,...K}})},se=K=>pe({type:j.IncrementalSnapshot,data:{source:U.Scroll,...K}}),ve=K=>pe({type:j.IncrementalSnapshot,data:{source:U.CanvasMutation,...K}}),Ge=K=>pe({type:j.IncrementalSnapshot,data:{source:U.AdoptedStyleSheet,...K}}),ge=new OE({mutationCb:vt,adoptedStyleSheetCb:Ge}),ue=typeof __RRWEB_EXCLUDE_IFRAME__=="boolean"&&__RRWEB_EXCLUDE_IFRAME__?new xE:new RE({mirror:Ye,mutationCb:vt,stylesheetManager:ge,recordCrossOriginIframes:I,wrappedEmit:pe});for(const K of ce||[])K.getMirror&&K.getMirror({nodeMirror:Ye,crossOriginIframeMirror:ue.crossOriginIframeMirror,crossOriginIframeStyleMirror:ue.crossOriginIframeStyleMirror});const Ue=new NE,Xt=PE(Yt,{mirror:Ye,win:window,mutationCb:K=>pe({type:j.IncrementalSnapshot,data:{source:U.CanvasMutation,...K}}),recordCanvas:k,blockClass:s,blockSelector:o,unblockSelector:i,maxCanvasSize:_,sampling:x.canvas,dataURLOptions:A,errorHandler:ke}),_n=typeof __RRWEB_EXCLUDE_SHADOW_DOM__=="boolean"&&__RRWEB_EXCLUDE_SHADOW_DOM__?new ME:new AE({mutationCb:vt,scrollCb:se,bypassOptions:{onMutation:je,blockClass:s,blockSelector:o,unblockSelector:i,maskAllText:u,maskTextClass:d,unmaskTextClass:l,maskTextSelector:f,unmaskTextSelector:p,inlineStylesheet:h,maskInputOptions:$e,dataURLOptions:A,maskAttributeFn:w,maskTextFn:M,maskInputFn:C,recordCanvas:k,inlineImages:O,sampling:x,slimDOMOptions:st,iframeManager:ue,stylesheetManager:ge,canvasManager:Xt,keepIframeSrcFn:F,processedNodeManager:Ue},mirror:Ye}),lo=(K=!1)=>{if(!E)return;pe({type:j.Meta,data:{href:window.location.href,width:xd(),height:Cd()}},K),ge.reset(),_n.init(),Tn.forEach(Y=>Y.lock());const Ve=tE(document,{mirror:Ye,blockClass:s,blockSelector:o,unblockSelector:i,maskAllText:u,maskTextClass:d,unmaskTextClass:l,maskTextSelector:f,unmaskTextSelector:p,inlineStylesheet:h,maskAllInputs:$e,maskAttributeFn:w,maskInputFn:C,maskTextFn:M,slimDOM:st,dataURLOptions:A,recordCanvas:k,inlineImages:O,onSerialize:Y=>{Ad(Y,Ye)&&ue.addIframe(Y),Od(Y,Ye)&&ge.trackLinkElement(Y),pi(Y)&&_n.addShadowRoot(Y.shadowRoot,document)},onIframeLoad:(Y,le)=>{ue.attachIframe(Y,le),Y.contentWindow&&Xt.addWindow(Y.contentWindow),_n.observeAttachShadow(Y)},onStylesheetLoad:(Y,le)=>{ge.attachLinkElement(Y,le)},keepIframeSrcFn:F});if(!Ve)return console.warn("Failed to snapshot the document");pe({type:j.FullSnapshot,data:{node:Ve,initialOffset:kd(window)}}),Tn.forEach(Y=>Y.unlock()),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&ge.adoptStyleSheets(document.adoptedStyleSheets,Ye.getId(document))};Ls=lo;try{const K=[],Ve=le=>X(CE)({onMutation:je,mutationCb:vt,mousemoveCb:(J,Kt)=>pe({type:j.IncrementalSnapshot,data:{source:Kt,positions:J}}),mouseInteractionCb:J=>pe({type:j.IncrementalSnapshot,data:{source:U.MouseInteraction,...J}}),scrollCb:se,viewportResizeCb:J=>pe({type:j.IncrementalSnapshot,data:{source:U.ViewportResize,...J}}),inputCb:J=>pe({type:j.IncrementalSnapshot,data:{source:U.Input,...J}}),mediaInteractionCb:J=>pe({type:j.IncrementalSnapshot,data:{source:U.MediaInteraction,...J}}),styleSheetRuleCb:J=>pe({type:j.IncrementalSnapshot,data:{source:U.StyleSheetRule,...J}}),styleDeclarationCb:J=>pe({type:j.IncrementalSnapshot,data:{source:U.StyleDeclaration,...J}}),canvasMutationCb:ve,fontCb:J=>pe({type:j.IncrementalSnapshot,data:{source:U.Font,...J}}),selectionCb:J=>{pe({type:j.IncrementalSnapshot,data:{source:U.Selection,...J}})},customElementCb:J=>{pe({type:j.IncrementalSnapshot,data:{source:U.CustomElement,...J}})},blockClass:s,ignoreClass:a,ignoreSelector:c,maskAllText:u,maskTextClass:d,unmaskTextClass:l,maskTextSelector:f,unmaskTextSelector:p,maskInputOptions:$e,inlineStylesheet:h,sampling:x,recordDOM:E,recordCanvas:k,inlineImages:O,userTriggeredOnInput:V,collectFonts:z,doc:le,maskAttributeFn:w,maskInputFn:C,maskTextFn:M,keepIframeSrcFn:F,blockSelector:o,unblockSelector:i,slimDOMOptions:st,dataURLOptions:A,mirror:Ye,iframeManager:ue,stylesheetManager:ge,shadowDomManager:_n,processedNodeManager:Ue,canvasManager:Xt,ignoreCSSAttributes:te,plugins:on([ce,"optionalAccess",J=>J.filter,"call",J=>J(Kt=>Kt.observer),"optionalAccess",J=>J.map,"call",J=>J(Kt=>({observer:Kt.observer,options:Kt.options,callback:Kf=>pe({type:j.Plugin,data:{plugin:Kt.name,payload:Kf}})}))])||[]},{});ue.addLoadListener(le=>{try{K.push(Ve(le.contentDocument))}catch(J){console.warn(J)}});const Y=()=>{lo(),K.push(Ve(document))};return document.readyState==="interactive"||document.readyState==="complete"?Y():(K.push(xe("DOMContentLoaded",()=>{pe({type:j.DomContentLoaded,data:{}}),B==="DOMContentLoaded"&&Y()})),K.push(xe("load",()=>{pe({type:j.Load,data:{}}),B==="load"&&Y()}
28,window))),()=>{K.forEach(le=>le()),Ue.destroy(),Ls=void 0,mE()}}catch(K){console.warn(K)}}function DE(e){if(!Ls)throw new Error("please take full snapshot after start recording");Ls(e)}dt.mirror=Ye;dt.takeFullSnapshot=DE;function PE(e,t){try{return e?e(t):new Hc}catch{return console.warn("Unable to initialize CanvasManager"),new Hc}}const LE=3,FE=5;function ca(e){return e>9999999999?e:e*1e3}function Co(e){return e>9999999999?e/1e3:e}function Rr(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:Be(t,10,1e3)}}),t.category==="console")))}const $E="button,a";function Ud(e){return e.closest($E)||e}function Bd(e){const t=Hd(e);return!t||!(t instanceof Element)?t:Ud(t)}function Hd(e){return UE(e)?e.target:e}function UE(e){return typeof e=="object"&&!!e&&"target"in e}let Ct;function BE(e){return Ct||(Ct=[],HE()),Ct.push(e),()=>{const t=Ct?Ct.indexOf(e):-1;t>-1&&Ct.splice(t,1)}}function HE(){Re(ie,"open",function(e){return function(...t){if(Ct)try{Ct.forEach(n=>n())}catch{}return e.apply(ie,t)}})}const WE=new Set([U.Mutation,U.StyleSheetRule,U.StyleDeclaration,U.AdoptedStyleSheet,U.CanvasMutation,U.Selection,U.MediaInteraction]);function zE(e,t,n){e.handleClick(t,n)}class jE{constructor(t,n,r=Rr){this._lastMutation=0,this._lastScroll=0,this._clicks=[],this._timeout=n.timeout/1e3,this._threshold=n.threshold/1e3,this._scrollTimeout=n.scrollTimeout/1e3,this._replay=t,this._ignoreSelector=n.ignoreSelector,this._addBreadcrumbEvent=r}addListeners(){const t=BE(()=>{this._lastMutation=Wc()});this._teardown=()=>{t(),this._clicks=[],this._lastMutation=0,this._lastScroll=0}}removeListeners(){this._teardown&&this._teardown(),this._checkClickTimeout&&clearTimeout(this._checkClickTimeout)}handleClick(t,n){if(GE(n,this._ignoreSelector)||!VE(t))return;const r={timestamp:Co(t.timestamp),clickBreadcrumb:t,clickCount:0,node:n};this._clicks.some(s=>s.node===r.node&&Math.abs(s.timestamp-r.timestamp)<1)||(this._clicks.push(r),this._clicks.length===1&&this._scheduleCheckClicks())}registerMutation(t=Date.now()){this._lastMutation=Co(t)}registerScroll(t=Date.now()){this._lastScroll=Co(t)}registerClick(t){const n=Ud(t);this._handleMultiClick(n)}_handleMultiClick(t){this._getClicks(t).forEach(n=>{n.clickCount++})}_getClicks(t){return this._clicks.filter(n=>n.node===t)}_checkClicks(){const t=[],n=Wc();this._clicks.forEach(r=>{!r.mutationAfter&&this._lastMutation&&(r.mutationAfter=r.timestamp<=this._lastMutation?this._lastMutation-r.timestamp:void 0),!r.scrollAfter&&this._lastScroll&&(r.scrollAfter=r.timestamp<=this._lastScroll?this._lastScroll-r.timestamp:void 0),r.timestamp+this._timeout<=n&&t.push(r)});for(const r of t){const s=this._clicks.indexOf(r);s>-1&&(this._generateBreadcrumbs(r),this._clicks.splice(s,1))}this._clicks.length&&this._scheduleCheckClicks()}_generateBreadcrumbs(t){const n=this._replay,r=t.scrollAfter&&t.scrollAfter<=this._scrollTimeout,s=t.mutationAfter&&t.mutationAfter<=this._threshold,o=!r&&!s,{clickCount:i,clickBreadcrumb:a}=t;if(o){const c=Math.min(t.mutationAfter||this._timeout,this._timeout)*1e3,u=c<this._timeout*1e3?"mutation":"timeout",d={type:"default",message:a.message,timestamp:a.timestamp,category:"ui.slowClickDetected",data:{...a.data,url:ie.location.href,route:n.getCurrentRoute(),timeAfterClickMs:c,endReason:u,clickCount:i||1}};this._addBreadcrumbEvent(n,d);return}if(i>1){const c={type:"default",message:a.message,timestamp:a.timestamp,category:"ui.multiClick",data:{...a.data,url:ie.location.href,route:n.getCurrentRoute(),clickCount:i,metric:!0}};this._addBreadcrumbEvent(n,c)}}_scheduleCheckClicks(){this._checkClickTimeout&&clearTimeout(this._checkClickTimeout),this._checkClickTimeout=Ln(()=>this._checkClicks(),1e3)}}const qE=["A","BUTTON","INPUT"];function GE(e,t){return!!(!qE.includes(e.tagName)||e.tagName==="INPUT"&&!["submit","button"].includes(e.getAttribute("type")||"")||e.tagName==="A"&&(e.hasAttribute("download")||e.hasAttribute("target")&&e.getAttribute("target")!=="_self")||t&&e.matches(t))}function VE(e){return!!(e.data&&typeof e.data.nodeId=="number"&&e.timestamp)}function Wc(){return Date.now()/1e3}function YE(e,t){try{if(!XE(t))return;const{source:n}=t.data;if(WE.has(n)&&e.registerMutation(t.timestamp),n===U.Scroll&&e.registerScroll(t.timestamp),KE(t)){const{type:r,id:s}=t.data,o=dt.mirror.getNode(s);o instanceof HTMLElement&&r===Ce.Click&&e.registerClick(o)}}catch{}}function XE(e){return e.type===LE}function KE(e){return e.data.source===U.MouseInteraction}function Ze(e){return{timestamp:Date.now()/1e3,type:"default",...e}}var Fs;(function(e){e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment"})(Fs||(Fs={}));const JE=new Set(["id","class","aria-label","role","name","alt","title","data-test-id","data-testid","disabled","aria-disabled","data-sentry-component"]);function ZE(e){const t={};!e["data-sentry-component"]&&e["data-sentry-element"]&&(e["data-sentry-component"]=e["data-sentry-element"]);for(const n in e)if(JE.has(n)){let r=n;(n==="data-testid"||n==="data-test-id")&&(r="testId"),t[r]=e[n]}return t}const QE=e=>t=>{if(!e.isEnabled())return;const n=ev(t);if(!n)return;
28const r=t.name==="click",s=r?t.event:void 0;r&&e.clickDetector&&s&&s.target&&!s.altKey&&!s.metaKey&&!s.ctrlKey&&!s.shiftKey&&zE(e.clickDetector,n,Bd(t.event)),Rr(e,n)};function Wd(e,t){const n=dt.mirror.getId(e),r=n&&dt.mirror.getNode(n),s=r&&dt.mirror.getMeta(r),o=s&&nv(s)?s:null;return{message:t,data:o?{nodeId:n,node:{id:n,tagName:o.tagName,textContent:Array.from(o.childNodes).map(i=>i.type===Fs.Text&&i.textContent).filter(Boolean).map(i=>i.trim()).join(""),attributes:ZE(o.attributes)}}:{}}}function ev(e){const{target:t,message:n}=tv(e);return Ze({category:`ui.${e.name}`,...Wd(t,n)})}function tv(e){const t=e.name==="click";let n,r=null;try{r=t?Bd(e.event):Hd(e.event),n=ht(r,{maxStringLength:200})||"<unknown>"}catch{n="<unknown>"}return{target:r,message:n}}function nv(e){return e.type===Fs.Element}function rv(e,t){if(!e.isEnabled())return;e.updateUserActivity();const n=sv(t);n&&Rr(e,n)}function sv(e){const{metaKey:t,shiftKey:n,ctrlKey:r,altKey:s,key:o,target:i}=e;if(!i||ov(i)||!o)return null;const a=t||r||s,c=o.length===1;if(!a&&c)return null;const u=ht(i,{maxStringLength:200})||"<unknown>",d=Wd(i,u);return Ze({category:"ui.keyDown",message:u,data:{...d.data,metaKey:t,shiftKey:n,ctrlKey:r,altKey:s,key:o}})}function ov(e){return e.tagName==="INPUT"||e.tagName==="TEXTAREA"||e.isContentEditable}const iv={resource:dv,paint:uv,navigation:lv};function Kr(e,t){return({metric:n})=>void t.replayPerformanceEntries.push(e(n))}function av(e){return e.map(cv).filter(Boolean)}function cv(e){const t=iv[e.entryType];return t?t(e):null}function Bn(e){return((Te||ie.performance.timeOrigin)+e)/1e3}function uv(e){const{duration:t,entryType:n,name:r,startTime:s}=e,o=Bn(s);return{type:n,name:r,start:o,end:o+t,data:void 0}}function lv(e){const{entryType:t,name:n,decodedBodySize:r,duration:s,domComplete:o,encodedBodySize:i,domContentLoadedEventStart:a,domContentLoadedEventEnd:c,domInteractive:u,loadEventStart:d,loadEventEnd:l,redirectCount:f,startTime:p,transferSize:h,type:m}=e;return s===0?null:{type:`${t}.${m}`,start:Bn(p),end:Bn(o),name:n,data:{size:h,decodedBodySize:r,encodedBodySize:i,duration:s,domInteractive:u,domContentLoadedEventStart:a,domContentLoadedEventEnd:c,loadEventStart:d,loadEventEnd:l,domComplete:o,redirectCount:f}}}function dv(e){const{entryType:t,initiatorType:n,name:r,responseEnd:s,startTime:o,decodedBodySize:i,encodedBodySize:a,responseStatus:c,transferSize:u}=e;return["fetch","xmlhttprequest"].includes(n)?null:{type:`${t}.${n}`,start:Bn(o),end:Bn(s),name:r,data:{size:u,statusCode:c,decodedBodySize:i,encodedBodySize:a}}}function fv(e){const t=e.entries[e.entries.length-1],n=t&&t.element?[t.element]:void 0;return to(e,"largest-contentful-paint",n)}function pv(e){return e.sources!==void 0}function hv(e){const t=[],n=[];for(const r of e.entries)if(pv(r)){const s=[];for(const o of r.sources)if(o.node){n.push(o.node);const i=dt.mirror.getId(o.node);i&&s.push(i)}t.push({value:r.value,nodeIds:s.length?s:void 0})}return to(e,"cumulative-layout-shift",n,t)}function mv(e){const t=e.entries[e.entries.length-1],n=t&&t.target?[t.target]:void 0;return to(e,"first-input-delay",n)}function gv(e){const t=e.entries[e.entries.length-1],n=t&&t.target?[t.target]:void 0;return to(e,"interaction-to-next-paint",n)}function to(e,t,n,r){const s=e.value,o=e.rating,i=Bn(s);return{type:"web-vital",name:t,start:i,end:i,data:{value:s,size:s,rating:o,nodeIds:n?n.map(a=>dt.mirror.getId(a)):void 0,attributions:r}}}function _v(e){function t(s){e.performanceEntries.includes(s)||e.performanceEntries.push(s)}function n({entries:s}){s.forEach(t)}const r=[];return["navigation","paint","resource"].forEach(s=>{r.push(Pn(s,n))}),r.push(nd(Kr(fv,e)),Ki(Kr(hv,e)),rd(Kr(mv,e)),sd(Kr(gv,e))),()=>{r.forEach(s=>s())}}const D=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,yv='var t=Uint8Array,n=Uint16Array,r=Int32Array,e=new t([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),i=new t([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),a=new t([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),s=function(t,e){for(var i=new n(31),a=0;a<31;++a)i[a]=e+=1<<t[a-1];var s=new r(i[30]);for(a=1;a<30;++a)for(var o=i[a];o<i[a+1];++o)s[o]=o-i[a]<<5|a;return{b:i,r:s}
vendor: 5,457 bytes, line 28
28},o=s(e,2),f=o.b,h=o.r;f[28]=258,h[258]=28;for(var l=s(i,0).r,u=new n(32768),c=0;c<32768;++c){var v=(43690&c)>>1|(21845&c)<<1;v=(61680&(v=(52428&v)>>2|(13107&v)<<2))>>4|(3855&v)<<4,u[c]=((65280&v)>>8|(255&v)<<8)>>1}var d=function(t,r,e){for(var i=t.length,a=0,s=new n(r);a<i;++a)t[a]&&++s[t[a]-1];var o,f=new n(r);for(a=1;a<r;++a)f[a]=f[a-1]+s[a-1]<<1;if(e){o=new n(1<<r);var h=15-r;for(a=0;a<i;++a)if(t[a])for(var l=a<<4|t[a],c=r-t[a],v=f[t[a]-1]++<<c,d=v|(1<<c)-1;v<=d;++v)o[u[v]>>h]=l}else for(o=new n(i),a=0;a<i;++a)t[a]&&(o[a]=u[f[t[a]-1]++]>>15-t[a]);return o},g=new t(288);for(c=0;c<144;++c)g[c]=8;for(c=144;c<256;++c)g[c]=9;for(c=256;c<280;++c)g[c]=7;for(c=280;c<288;++c)g[c]=8;var w=new t(32);for(c=0;c<32;++c)w[c]=5;var p=d(g,9,0),y=d(w,5,0),m=function(t){return(t+7)/8|0},b=function(n,r,e){return(null==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=[],a=0;a<r.length;++a)r[a]&&i.push({s:a,f:r[a]});var s=i.length,o=i.slice();if(!s)return{t:F,l:0};if(1==s){var f=new t(i[0].s+1);return f[i[0].s]=1,{t:f,l:1}}i.sort((function(t,n){return t.f-n.f})),i.push({s:-1,f:25001});var h=i[0],l=i[1],u=0,c=1,v=2;for(i[0]={s:-1,f:h.f+l.f,l:h,r:l};c!=s-1;)h=i[i[u].f<i[v].f?u++:v++],l=i[u!=c&&i[u].f<i[v].f?u++:v++],i[c++]={s:-1,f:h.f+l.f,l:h,r:l};var d=o[0].s;for(a=1;a<s;++a)o[a].s>d&&(d=o[a].s);var g=new n(d+1),w=A(i[c-1],g,0);if(w>e){a=0;var p=0,y=w-e,m=1<<y;for(o.sort((function(t,n){return g[n.s]-g[t.s]||t.f-n.f}));a<s;++a){var b=o[a].s;if(!(g[b]>e))break;p+=m-(1<<w-g[b]),g[b]=e}for(p>>=y;p>0;){var M=o[a].s;g[M]<e?p-=1<<e-g[M]++-1:++a}for(;a>=0&&p;--a){var E=o[a].s;g[E]==e&&(--g[E],++p)}w=e}return{t:new t(g),l:w}},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,a=t[0],s=1,o=function(t){e[i++]=t},f=1;f<=r;++f)if(t[f]==a&&f!=r)++s;else{if(!a&&s>2){for(;s>138;s-=138)o(32754);s>2&&(o(s>10?s-11<<5|28690:s-3<<5|12305),s=0)}else if(s>3){for(o(a),--s;s>6;s-=6)o(8304);s>2&&(o(s-3<<5|8208),s=0)}for(;s--;)o(a);s=1,a=t[f]}return{c:e.subarray(0,i),n:r}},T=function(t,n){for(var r=0,e=0;e<n.length;++e)r+=t[e]*n[e];return r},k=function(t,n,r){var e=r.length,i=m(n+2);t[i]=255&e,t[i+1]=e>>8,t[i+2]=255^t[i],t[i+3]=255^t[i+1];for(var a=0;a<e;++a)t[i+a+4]=r[a];return 8*(i+4+e)},U=function(t,r,s,o,f,h,l,u,c,v,m){z(r,m++,s),++f[256];for(var b=x(f,15),M=b.t,E=b.l,A=x(h,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[a[K-1]];--K);var N,P,Q,R,V=v+5<<3,W=T(f,g)+T(h,w)+l,X=T(f,M)+T(h,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[a[B]]);m+=3*K;for(var Z=[I,O],$=0;$<2;++$){var tt=Z[$];for(B=0;B<tt.length;++B){var nt=31&tt[B];z(r,m,Y[nt]),m+=H[nt],nt>15&&(z(r,m,tt[B]>>5&127),m+=tt[B]>>12)}}}else N=p,P=g,Q=y,R=w;for(B=0;B<u;++B){var rt=o[B];if(rt>255){_(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;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}}},L=function(){var t=1,n=0;return{p:function(r){for(var e=t,i=n,a=0|r.length,s=0;s!=a;){for(var o=Math.min(s+2655,a);s<o;++s)i+=e+=r[s];e=(65535&e)+15*(e>>16),i=(65535&i)+15*(i>>16)}t=e,n=i},d:function(){return(255&(t%=65521))<<24|(65280&t)<<8|(255&(n%=65521))<<8|n>>8}}},O=function(a,s,o,f,u){if(!u&&(u={l:1},s.dictionary)){var c=s.dictionary.subarray(-32768),v=new t(c.length+a.length);v.set(c),v.set(a,c.length),a=v,u.w=c.length}return function(a,s,o,f,u,c){var v=c.z||a.length,d=new t(f+v+5*(1+Math.ceil(v/7e3))+u),g=d.subarray(f,d.length-u),w=c.l,p=7&(c.r||0);if(s){p&&(g[0]=c.r>>3);for(var y=C[s-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(a[t]^a[t+1]<<A^a[t+2]<<D)&z},F=new r(25e3),I=new n(288),S=new n(32),L=0,O=0,j=c.i||0,q=0,B=c.w||0,G=0;j+2<v;++j){var H=T(j),J=32767&j,K=x[H];if(_[J]=K,x[H]=J,B<=j){var N=v-j;if((L>7e3||q>24576)&&(N>423||!w)){p=U(a,g,0,F,I,S,O,q,G,j-G,p),q=L=O=0,G=j;for(var P=0;P<286;++P)I[P]=0;for(P=0;P<30;++P)S[P]=0}var Q=2,R=0,V=E,W=J-K&32767;if(N>2&&H==T(j-W))for(var X=Math.min(M,N)-1,Y=Math.min(32767,j),Z=Math.min(258,N);W<=Y&&--V&&J!=K;){if(a[j+Q]==a[j+Q-W]){for(var $=0;$<Z&&a[j+$]==a[j+$-W];++$);if($>Q){if(Q=$,R=W,$>X)break;var tt=Math.min(W,$-2),nt=0;for(P=0;P<tt;
28++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|h[Q]<<18|l[R];var it=31&h[Q],at=31&l[R];O+=e[it]+i[at],++I[257+it],++S[at],B=j+Q,++L}else F[q++]=a[j],++I[a[j]]}}for(j=Math.max(j,B);j<v;++j)F[q++]=a[j],++I[a[j]];p=U(a,g,w,F,I,S,O,q,G,j-G,p),w||(c.r=7&p|g[p/8|0]<<3,p-=7,c.h=x,c.p=_,c.i=j,c.w=B)}else{for(j=c.w||0;j<v+w;j+=65535){var st=j+65535;st>=v&&(g[p/8|0]=w,st=v),p=k(g,p+1,a.subarray(j,st))}c.i=v}return b(d,0,f+m(p)+u)}(a,null==s.level?6:s.level,null==s.mem?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(a.length)))):12+s.mem,o,f,u)},j=function(t,n,r){for(;r;++n)t[n]=r,r>>>=8},q=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&&j(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)}},B=function(t){return 10+(t.filename?t.filename.length+1:0)},G=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(O(t,this.o,0,0,this.s),n)},n.prototype.push=function(n,r){this.ondata||E(5),this.s.l&&E(4);var e=n.length+this.s.z;if(e>this.b.length){if(e>2*this.b.length-32768){var i=new t(-32768&e);i.set(this.b.subarray(0,this.s.z)),this.b=i}var a=this.b.length-this.s.z;a&&(this.b.set(n.subarray(0,a),this.s.z),this.s.z=this.b.length,this.p(this.b,!1)),this.b.set(this.b.subarray(-32768)),this.b.set(n.subarray(a),32768),this.s.z=n.length-a+32768,this.s.i=32766,this.s.w=32768}else this.b.set(n,this.s.z),this.s.z+=n.length;this.s.l=1&r,(this.s.z>this.s.w+8191||r)&&(this.p(this.b,r||!1),this.s.w=this.s.i,this.s.i-=2)},n}();var H=function(){function t(t,n){this.c=L(),this.v=1,G.call(this,t,n)}return t.prototype.push=function(t,n){this.c.p(t),G.prototype.push.call(this,t,n)},t.prototype.p=function(t,n){var r=O(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=L();i.p(n.dictionary),j(t,2,i.d())}}(r,this.o),this.v=0),n&&j(r,r.length-4,this.c.d()),this.ondata(r,n)},t}(),J="undefined"!=typeof TextEncoder&&new TextEncoder,K="undefined"!=typeof TextDecoder&&new TextDecoder;try{K.decode(F,{stream:!0})}catch(t){}var N=function(){function t(t){this.ondata=t}return t.prototype.push=function(t,n){this.ondata||E(5),this.d&&E(4),this.ondata(P(t),this.d=n||!1)},t}();function P(n,r){if(J)return J.encode(n);for(var e=n.length,i=new t(n.length+(n.length>>1)),a=0,s=function(t){i[a++]=t},o=0;o<e;++o){if(a+5>i.length){var f=new t(a+8+(e-o<<1));f.set(i),i=f}var h=n.charCodeAt(o);h<128||r?s(h):h<2048?(s(192|h>>6),s(128|63&h)):h>55295&&h<57344?(s(240|(h=65536+(1047552&h)|1023&n.charCodeAt(++o))>>18),s(128|h>>12&63),s(128|h>>6&63),s(128|63&h)):(s(224|h>>12),s(128|h>>6&63),s(128|63&h))}return b(i,0,a)}function Q(t){return function(t,n){n||(n={});var r=S(),e=t.length;r.p(t);var i=O(t,n,B(n),8),a=i.length;return q(i,n),j(i,a-8,r.d()),j(i,a-4,e),i}(P(t))}const R=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 H,this.deflate.ondata=(t,n)=>{this._deflatedData.push(t)},this.stream=new N(((t,n)=>{this.deflate.push(t,n)})),this.stream.push("[")}},V={clear:()=>{R.clear()},addEvent:t=>R.addEvent(t),finish:()=>R.finish(),compress:t=>Q(t)};addEventListener("message",(function(t){const n=t.data.method,r=t.data.id,e=t.data.arg;if(n in V&&"function"==typeof V[n])try{const t=V[n](e);postMessage({id:r,method:n,success:!0,response:t})}catch(t){postMessage({id:r,method:n,success:!1,response:t.message}),console.error(t)}})),postMessage({id:void 0,method:"init",success:!0,response:void 0});';function Sv(){const e=new Blob([yv]);return URL.createObjectURL(e)}const zc=["info","warn","error","log"],as="[Replay] ";function xo(e,t="info"){nt({category:"console",data:{logger:"replay"},level:t,message:`${as}${e}`},{level:t})}function bv(){let e=!1,t=!1;const n={exception:()=>{},infoTick:()=>{},setConfig:r=>{e=r.captureExceptions,t=r.traceInternals}};
28return D?(zc.forEach(r=>{n[r]=(...s)=>{S[r](as,...s),t&&xo(s.join(""),Wi(r))}}),n.exception=(r,...s)=>{s.length&&n.error&&n.error(...s),S.error(as,r),e?Vs(r):t&&xo(r,"error")},n.infoTick=(...r)=>{S.info(as,...r),t&&setTimeout(()=>xo(r[0]),0)}):zc.forEach(r=>{n[r]=()=>{}}),n}const $=bv();class ua extends Error{constructor(){super(`Event buffer exceeded maximum size of ${na}.`)}}class zd{constructor(){this.events=[],this._totalSize=0,this.hasCheckout=!1,this.waitForCheckout=!1}get hasEvents(){return this.events.length>0}get type(){return"sync"}destroy(){this.events=[]}async addEvent(t){const n=JSON.stringify(t).length;if(this._totalSize+=n,this._totalSize>na)throw new ua;this.events.push(t)}finish(){return new Promise(t=>{const n=this.events;this.clear(),t(JSON.stringify(n))})}clear(){this.events=[],this._totalSize=0,this.hasCheckout=!1}getEarliestTimestamp(){const t=this.events.map(n=>n.timestamp).sort()[0];return t?ca(t):null}}class Ev{constructor(t){this._worker=t,this._id=0}ensureReady(){return this._ensureReadyPromise?this._ensureReadyPromise:(this._ensureReadyPromise=new Promise((t,n)=>{this._worker.addEventListener("message",({data:r})=>{r.success?t():n()},{once:!0}),this._worker.addEventListener("error",r=>{n(r)},{once:!0})}),this._ensureReadyPromise)}destroy(){D&&$.info("Destroying compression worker"),this._worker.terminate()}postMessage(t,n){const r=this._getAndIncrementId();return new Promise((s,o)=>{const i=({data:a})=>{const c=a;if(c.method===t&&c.id===r){if(this._worker.removeEventListener("message",i),!c.success){D&&$.error("Error in compression worker: ",c.response),o(new Error("Error in compression worker"));return}s(c.response)}};this._worker.addEventListener("message",i),this._worker.postMessage({id:r,method:t,arg:n})})}_getAndIncrementId(){return this._id++}}class vv{constructor(t){this._worker=new Ev(t),this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this.waitForCheckout=!1}get hasEvents(){return!!this._earliestTimestamp}get type(){return"worker"}ensureReady(){return this._worker.ensureReady()}destroy(){this._worker.destroy()}addEvent(t){const n=ca(t.timestamp);(!this._earliestTimestamp||n<this._earliestTimestamp)&&(this._earliestTimestamp=n);const r=JSON.stringify(t);return this._totalSize+=r.length,this._totalSize>na?Promise.reject(new ua):this._sendEventToWorker(r)}finish(){return this._finishRequest()}clear(){this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this._worker.postMessage("clear").then(null,t=>{D&&$.exception(t,'Sending "clear" message to worker failed',t)})}getEarliestTimestamp(){return this._earliestTimestamp}_sendEventToWorker(t){return this._worker.postMessage("addEvent",t)}async _finishRequest(){const t=await this._worker.postMessage("finish");return this._earliestTimestamp=null,this._totalSize=0,t}}class wv{constructor(t){this._fallback=new zd,this._compression=new vv(t),this._used=this._fallback,this._ensureWorkerIsLoadedPromise=this._ensureWorkerIsLoaded()}get waitForCheckout(){return this._used.waitForCheckout}get type(){return this._used.type}get hasEvents(){return this._used.hasEvents}get hasCheckout(){return this._used.hasCheckout}set hasCheckout(t){this._used.hasCheckout=t}set waitForCheckout(t){this._used.waitForCheckout=t}destroy(){this._fallback.destroy(),this._compression.destroy()}clear(){return this._used.clear()}getEarliestTimestamp(){return this._used.getEarliestTimestamp()}addEvent(t){return this._used.addEvent(t)}async finish(){return await this.ensureWorkerIsLoaded(),this._used.finish()}ensureWorkerIsLoaded(){return this._ensureWorkerIsLoadedPromise}async _ensureWorkerIsLoaded(){try{await this._compression.ensureReady()}catch(t){D&&$.exception(t,"Failed to load the compression worker, falling back to simple buffer");return}await this._switchToCompressionWorker()}async _switchToCompressionWorker(){const{events:t,hasCheckout:n,waitForCheckout:r}=this._fallback,s=[];for(const o of t)s.push(this._compression.addEvent(o));this._compression.hasCheckout=n,this._compression.waitForCheckout=r,this._used=this._compression;try{await Promise.all(s),this._fallback.clear()}catch(o){D&&$.exception(o,"Failed to add events when switching buffers.")}}}function Iv({useCompression:e,workerUrl:t}){if(e&&window.Worker){const n=Tv(t);if(n)return n}return D&&$.info("Using simple buffer"),new zd}function Tv(e){try{const t=e||kv();if(!t)return;D&&$.info(`Using compression worker${e?` from ${e}`:""}`);const n=new Worker(t);return new wv(n)}catch(t){D&&$.exception(t,"Failed to create compression worker")}}function kv(){return typeof __SENTRY_EXCLUDE_REPLAY_WORKER__>"u"||!__SENTRY_EXCLUDE_REPLAY_WORKER__?Sv():""}function la(){try{return"sessionStorage"in ie&&!!ie.sessionStorage}catch{return!1}}function Cv(e){xv(),e.session=void 0}function xv(){if(la())try{ie.sessionStorage.removeItem(ea)}catch{}}
28function jd(e){return e===void 0?!1:Math.random()<e}function qd(e){const t=Date.now(),n=e.id||Me(),r=e.started||t,s=e.lastActivity||t,o=e.segmentId||0,i=e.sampled,a=e.previousSessionId;return{id:n,started:r,lastActivity:s,segmentId:o,sampled:i,previousSessionId:a}}function da(e){if(la())try{ie.sessionStorage.setItem(ea,JSON.stringify(e))}catch{}}function Rv(e,t){return jd(e)?"session":t?"buffer":!1}function jc({sessionSampleRate:e,allowBuffering:t,stickySession:n=!1},{previousSessionId:r}={}){const s=Rv(e,t),o=qd({sampled:s,previousSessionId:r});return n&&da(o),o}function Mv(){if(!la())return null;try{const e=ie.sessionStorage.getItem(ea);if(!e)return null;const t=JSON.parse(e);return D&&$.infoTick("Loading existing session"),qd(t)}catch{return null}}function gi(e,t,n=+new Date){return e===null||t===void 0||t<0?!0:t===0?!1:e+t<=n}function Gd(e,{maxReplayDuration:t,sessionIdleExpire:n,targetTime:r=Date.now()}){return gi(e.started,t,r)||gi(e.lastActivity,n,r)}function Vd(e,{sessionIdleExpire:t,maxReplayDuration:n}){return!(!Gd(e,{sessionIdleExpire:t,maxReplayDuration:n})||e.sampled==="buffer"&&e.segmentId===0)}function Ro({sessionIdleExpire:e,maxReplayDuration:t,previousSessionId:n},r){const s=r.stickySession&&Mv();return s?Vd(s,{sessionIdleExpire:e,maxReplayDuration:t})?(D&&$.infoTick("Session in sessionStorage is expired, creating new one..."),jc(r,{previousSessionId:s.id})):s:(D&&$.infoTick("Creating new session"),jc(r,{previousSessionId:n}))}function Av(e){return e.type===j.Custom}function fa(e,t,n){return Xd(e,t)?(Yd(e,t,n),!0):!1}function Ov(e,t,n){return Xd(e,t)?Yd(e,t,n):Promise.resolve(null)}async function Yd(e,t,n){const{eventBuffer:r}=e;if(!r||r.waitForCheckout&&!n)return null;const s=e.recordingMode==="buffer";try{n&&s&&r.clear(),n&&(r.hasCheckout=!0,r.waitForCheckout=!1);const o=e.getOptions(),i=Nv(t,o.beforeAddRecordingEvent);return i?await r.addEvent(i):void 0}catch(o){const i=o&&o instanceof ua,a=i?"addEventSizeExceeded":"addEvent";if(i&&s)return r.clear(),r.waitForCheckout=!0,null;e.handleException(o),await e.stop({reason:a});const c=R();c&&c.recordDroppedEvent("internal_sdk_error","replay")}}function Xd(e,t){if(!e.eventBuffer||e.isPaused()||!e.isEnabled())return!1;const n=ca(t.timestamp);return n+e.timeouts.sessionIdlePause<Date.now()?!1:n>e.getContext().initialTimestamp+e.getOptions().maxReplayDuration?(D&&$.infoTick(`Skipping event with timestamp ${n} because it is after maxReplayDuration`),!1):!0}function Nv(e,t){try{if(typeof t=="function"&&Av(e))return t(e)}catch(n){return D&&$.exception(n,"An error occurred in the `beforeAddRecordingEvent` callback, skipping the event..."),null}return e}function pa(e){return!e.type}function _i(e){return e.type==="transaction"}function Dv(e){return e.type==="replay_event"}function qc(e){return e.type==="feedback"}function Pv(e){return(t,n)=>{if(!e.isEnabled()||!pa(t)&&!_i(t))return;const r=n&&n.statusCode;if(!(!r||r<200||r>=300)){if(_i(t)){Lv(e,t);return}Fv(e,t)}}}function Lv(e,t){const n=e.getContext();t.contexts&&t.contexts.trace&&t.contexts.trace.trace_id&&n.traceIds.size<100&&n.traceIds.add(t.contexts.trace.trace_id)}function Fv(e,t){const n=e.getContext();if(t.event_id&&n.errorIds.size<100&&n.errorIds.add(t.event_id),e.recordingMode!=="buffer"||!t.tags||!t.tags.replayId)return;const{beforeErrorSampling:r}=e.getOptions();typeof r=="function"&&!r(t)||Ln(async()=>{try{await e.sendBufferedReplayOrFlush()}catch(s){e.handleException(s)}})}function $v(e){return t=>{!e.isEnabled()||!pa(t)||Uv(e,t)}}function Uv(e,t){const n=t.exception&&t.exception.values&&t.exception.values[0]&&t.exception.values[0].value;if(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))){const r=Ze({category:"replay.hydrate-error",data:{url:xi()}});Rr(e,r)}}function Bv(e){const t=R();t&&t.on("beforeAddBreadcrumb",n=>Hv(e,n))}function Hv(e,t){if(!e.isEnabled()||!Kd(t))return;const n=Wv(t);n&&Rr(e,n)}function Wv(e){return!Kd(e)||["fetch","xhr","sentry.event","sentry.transaction"].includes(e.category)||e.category.startsWith("ui.")?null:e.category==="console"?zv(e):Ze(e)}function zv(e){const t=e.data&&e.data.arguments;if(!Array.isArray(t)||t.length===0)return Ze(e);let n=!1;const r=t.map(s=>{if(!s)return s;if(typeof s=="string")return s.length>Vr?(n=!0,`${s.slice(0,Vr)}…`):s;if(typeof s=="object")try{const o=Be(s,7);return JSON.stringify(o).length>Vr?(n=!0,`${JSON.stringify(o,null,2).slice(0,Vr)}…`):o}catch{}return s});return Ze({...e,data:{...e.data,arguments:r,...n?{_meta:{warnings:["CONSOLE_ARG_TRUNCATED"]}}:{}}})}function Kd(e){return!!e.category}function jv(e,t){return e.type||!e.exception||!e.exception.values||!e.exception.values.length?!1:!!(t.originalException&&t.originalException.__rrweb__)}function Jd(){const e=W().getPropagationContext().dsc;e&&delete e.replay_id;const t=fe();if(t){const n=Vt(t);delete n.replay_id}}function qv(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 Gv(e,t){return e.recordingMode!=="buffer"||t.message===ta||!t.exception||t.type?!1:jd(e.getOptions().errorSampleRate)}function Vv(e){return Object.assign((t,n)=>
28!e.isEnabled()||e.isPaused()?t:Dv(t)?(delete t.breadcrumbs,t):!pa(t)&&!_i(t)&&!qc(t)?t:e.checkAndHandleExpiredSession()?qc(t)?(e.flush(),t.contexts.feedback.replay_id=e.getSessionId(),qv(e,t),t):jv(t,n)&&!e.getOptions()._experiments.captureExceptions?(D&&$.log("Ignoring error from rrweb internals",t),null):((Gv(e,t)||e.recordingMode==="session")&&(t.tags={...t.tags,replayId:e.getSessionId()}),t):(Jd(),t),{id:"Replay"})}function no(e,t){return t.map(({type:n,start:r,end:s,name:o,data:i})=>{const a=e.throttledAddEvent({type:j.Custom,timestamp:r,data:{tag:"performanceSpan",payload:{op:n,description:o,startTimestamp:r,endTimestamp:s,data:i}}});return typeof a=="string"?Promise.resolve(null):a})}function Yv(e){const{from:t,to:n}=e,r=Date.now()/1e3;return{type:"navigation.push",start:r,end:r,name:n,data:{previous:t}}}function Xv(e){return t=>{if(!e.isEnabled())return;const n=Yv(t);n!==null&&(e.getContext().urls.push(n.name),e.triggerUserActivity(),e.addUpdate(()=>(no(e,[n]),!1)))}}function Kv(e,t){return D&&e.getOptions()._experiments.traceInternals?!1:Ml(t,R())}function Zd(e,t){e.isEnabled()&&t!==null&&(Kv(e,t.name)||e.addUpdate(()=>(no(e,[t]),!0)))}function ro(e){if(!e)return;const t=new TextEncoder;try{if(typeof e=="string")return t.encode(e).length;if(e instanceof URLSearchParams)return t.encode(e.toString()).length;if(e instanceof FormData){const n=nf(e);return t.encode(n).length}if(e instanceof Blob)return e.size;if(e instanceof ArrayBuffer)return e.byteLength}catch{}}function Qd(e){if(!e)return;const t=parseInt(e,10);return isNaN(t)?void 0:t}function ef(e){try{if(typeof e=="string")return[e];if(e instanceof URLSearchParams)return[e.toString()];if(e instanceof FormData)return[nf(e)];if(!e)return[void 0]}catch(t){return D&&$.exception(t,"Failed to serialize body",e),[void 0,"BODY_PARSE_ERROR"]}return D&&$.info("Skipping network body because of body type",e),[void 0,"UNPARSEABLE_BODY_TYPE"]}function $s(e,t){if(!e)return{headers:{},size:void 0,_meta:{warnings:[t]}};const n={...e._meta},r=n.warnings||[];return n.warnings=[...r,t],e._meta=n,e}function tf(e,t){if(!t)return null;const{startTimestamp:n,endTimestamp:r,url:s,method:o,statusCode:i,request:a,response:c}=t;return{type:e,start:n/1e3,end:r/1e3,name:s,data:_e({method:o,statusCode:i,request:a,response:c})}}function pr(e){return{headers:{},size:e,_meta:{warnings:["URL_SKIPPED"]}}}function Dt(e,t,n){if(!t&&Object.keys(e).length===0)return;if(!t)return{headers:e};if(!n)return{headers:e,size:t};const r={headers:e,size:t},{body:s,warnings:o}=Jv(n);return r.body=s,o&&o.length>0&&(r._meta={warnings:o}),r}function yi(e,t){return Object.entries(e).reduce((n,[r,s])=>{const o=r.toLowerCase();return t.includes(o)&&e[r]&&(n[o]=s),n},{})}function nf(e){return new URLSearchParams(e).toString()}function Jv(e){if(!e||typeof e!="string")return{body:e};const t=e.length>Tc,n=Zv(e);if(t){const r=e.slice(0,Tc);return n?{body:r,warnings:["MAYBE_JSON_TRUNCATED"]}:{body:`${r}…`,warnings:["TEXT_TRUNCATED"]}}if(n)try{return{body:JSON.parse(e)}}catch{}return{body:e}}function Zv(e){const t=e[0],n=e[e.length-1];return t==="["&&n==="]"||t==="{"&&n==="}"}function Us(e,t){const n=Qv(e);return Nt(n,t)}function Qv(e,t=ie.document.baseURI){if(e.startsWith("http://")||e.startsWith("https://")||e.startsWith(ie.location.origin))return e;const n=new URL(e,t);if(n.origin!==new URL(t).origin)return e;const r=n.href;return!e.endsWith("/")&&r.endsWith("/")?r.slice(0,-1):r}async function e0(e,t,n){try{const r=await n0(e,t,n),s=tf("resource.fetch",r);Zd(n.replay,s)}catch(r){D&&$.exception(r,"Failed to capture fetch breadcrumb")}}function t0(e,t){const{input:n,response:r}=t,s=n?rf(n):void 0,o=ro(s),i=r?Qd(r.headers.get("content-length")):void 0;o!==void 0&&(e.data.request_body_size=o),i!==void 0&&(e.data.response_body_size=i)}async function n0(e,t,n){const r=Date.now(),{startTimestamp:s=r,endTimestamp:o=r}=t,{url:i,method:a,status_code:c=0,request_body_size:u,response_body_size:d}=e.data,l=Us(i,n.networkDetailAllowUrls)&&!Us(i,n.networkDetailDenyUrls),f=l?r0(n,t.input,u):pr(u),p=await s0(l,n,t.response,d);return{startTimestamp:s,endTimestamp:o,url:i,method:a,statusCode:c,request:f,response:p}}function r0({networkCaptureBodies:e,networkRequestHeaders:t},n,r){const s=n?a0(n,t):{};if(!e)return Dt(s,r,void 0);const o=rf(n),[i,a]=ef(o),c=Dt(s,r,i);return a?$s(c,a):c}async function s0(e,{networkCaptureBodies:t,networkResponseHeaders:n}
28,r,s){if(!e&&s!==void 0)return pr(s);const o=r?sf(r.headers,n):{};if(!r||!t&&s!==void 0)return Dt(o,s,void 0);const[i,a]=await i0(r),c=o0(i,{networkCaptureBodies:t,responseBodySize:s,captureDetails:e,headers:o});return a?$s(c,a):c}function o0(e,{networkCaptureBodies:t,responseBodySize:n,captureDetails:r,headers:s}){try{const o=e&&e.length&&n===void 0?ro(e):n;return r?t?Dt(s,o,e):Dt(s,o,void 0):pr(o)}catch(o){return D&&$.exception(o,"Failed to serialize response body"),Dt(s,n,void 0)}}async function i0(e){const t=c0(e);if(!t)return[void 0,"BODY_PARSE_ERROR"];try{return[await u0(t)]}catch(n){return n instanceof Error&&n.message.indexOf("Timeout")>-1?(D&&$.warn("Parsing text body from response timed out"),[void 0,"BODY_PARSE_TIMEOUT"]):(D&&$.exception(n,"Failed to get text body from response"),[void 0,"BODY_PARSE_ERROR"])}}function rf(e=[]){if(!(e.length!==2||typeof e[1]!="object"))return e[1].body}function sf(e,t){const n={};return t.forEach(r=>{e.get(r)&&(n[r]=e.get(r))}),n}function a0(e,t){return e.length===1&&typeof e[0]!="string"?Gc(e[0],t):e.length===2?Gc(e[1],t):{}}function Gc(e,t){if(!e)return{};const n=e.headers;return n?n instanceof Headers?sf(n,t):Array.isArray(n)?{}:yi(n,t):{}}function c0(e){try{return e.clone()}catch(t){D&&$.exception(t,"Failed to clone response body")}}function u0(e){return new Promise((t,n)=>{const r=Ln(()=>n(new Error("Timeout while trying to read response body")),500);l0(e).then(s=>t(s),s=>n(s)).finally(()=>clearTimeout(r))})}async function l0(e){return await e.text()}async function d0(e,t,n){try{const r=p0(e,t,n),s=tf("resource.xhr",r);Zd(n.replay,s)}catch(r){D&&$.exception(r,"Failed to capture xhr breadcrumb")}}function f0(e,t){const{xhr:n,input:r}=t;if(!n)return;const s=ro(r),o=n.getResponseHeader("content-length")?Qd(n.getResponseHeader("content-length")):_0(n.response,n.responseType);s!==void 0&&(e.data.request_body_size=s),o!==void 0&&(e.data.response_body_size=o)}function p0(e,t,n){const r=Date.now(),{startTimestamp:s=r,endTimestamp:o=r,input:i,xhr:a}=t,{url:c,method:u,status_code:d=0,request_body_size:l,response_body_size:f}=e.data;if(!c)return null;if(!a||!Us(c,n.networkDetailAllowUrls)||Us(c,n.networkDetailDenyUrls)){const v=pr(l),x=pr(f);return{startTimestamp:s,endTimestamp:o,url:c,method:u,statusCode:d,request:v,response:x}}const p=a[Rt],h=p?yi(p.request_headers,n.networkRequestHeaders):{},m=yi(h0(a),n.networkResponseHeaders),[b,y]=n.networkCaptureBodies?ef(i):[void 0],[w,C]=n.networkCaptureBodies?m0(a):[void 0],M=Dt(h,l,b),_=Dt(m,f,w);return{startTimestamp:s,endTimestamp:o,url:c,method:u,statusCode:d,request:y?$s(M,y):M,response:C?$s(_,C):_}}function h0(e){const t=e.getAllResponseHeaders();return t?t.split(`\r
29`).reduce((n,r)=>{const[s,o]=r.split(": ");return o&&(n[s.toLowerCase()]=o),n},{}):{}}function m0(e){const t=[];try{return[e.responseText]}catch(n){t.push(n)}try{return g0(e.response,e.responseType)}catch(n){t.push(n)}return D&&$.warn("Failed to get xhr response body",...t),[void 0]}function g0(e,t){try{if(typeof e=="string")return[e];if(e instanceof Document)return[e.body.outerHTML];if(t==="json"&&e&&typeof e=="object")return[JSON.stringify(e)];if(!e)return[void 0]}catch(n){return D&&$.exception(n,"Failed to serialize body",e),[void 0,"BODY_PARSE_ERROR"]}return D&&$.info("Skipping network body because of body type",e),[void 0,"UNPARSEABLE_BODY_TYPE"]}function _0(e,t){try{const n=t==="json"&&e&&typeof e=="object"?JSON.stringify(e):e;return ro(n)}catch{return}}function y0(e){const t=R();try{const{networkDetailAllowUrls:n,networkDetailDenyUrls:r,networkCaptureBodies:s,networkRequestHeaders:o,networkResponseHeaders:i}=e.getOptions(),a={replay:e,networkDetailAllowUrls:n,networkDetailDenyUrls:r,networkCaptureBodies:s,networkRequestHeaders:o,networkResponseHeaders:i};t&&t.on("beforeAddBreadcrumb",(c,u)=>S0(a,c,u))}catch{}}function S0(e,t,n){if(t.data)try{b0(t)&&v0(n)&&(f0(t,n),d0(t,n,e)),E0(t)&&w0(n)&&(t0(t,n),e0(t,n,e))}catch(r){D&&$.exception(r,"Error when enriching network breadcrumb")}}function b0(e){return e.category==="xhr"}function E0(e){return e.category==="fetch"}function v0(e){return e&&e.xhr}function w0(e){return e&&e.response}function I0(e){const t=R();ud(QE(e)),Js(Xv(e)),Bv(e),y0(e);const n=Vv(e);Yh(n),t&&(t.on("beforeSendEvent",$v(e)),t.on("afterSendEvent",Pv(e)),t.on("createDsc",r=>{const s=e.getSessionId();s&&e.isEnabled()&&e.recordingMode==="session"&&e.checkAndHandleExpiredSession()&&(r.replay_id=s)}),t.on("spanStart",r=>{e.lastActiveSpan=r}),t.on("spanEnd",r=>{e.lastActiveSpan=r}),t.on("beforeSendFeedback",(r,s)=>{const o=e.getSessionId();s&&s.includeReplay&&e.isEnabled()&&o&&r.contexts&&r.contexts.feedback&&(r.contexts.feedback.replay_id=o)}))}async function T0(e){try{return Promise.all(no(e,[k0(ie.performance.memory)]))}catch{return[]}}function k0(e){const{jsHeapSizeLimit:t,totalJSHeapSize:n,usedJSHeapSize:r}=e,s=Date.now()/1e3;return{type:"memory",name:"memory",start:s,end:s,data:{memory:{jsHeapSizeLimit:t,totalJSHeapSize:n,usedJSHeapSize:r}}}}function C0(e,t,n){let r,s,o;const i=n&&n.maxWait?Math.max(n.maxWait,t):0;function a(){return c(),r=e(),r}function c(){s!==void 0&&clearTimeout(s),o!==void 0&&clearTimeout(o),s=o=void 0}function u(){return s!==void 0||o!==void 0?a():r}function d(){return s&&clearTimeout(s),s=Ln(a,t),i&&o===void 0&&(o=Ln(a,i)),r}return d.cancel=c,d.flush=u,d}const Jt=L.navigator;function x0(){return/iPhone|iPad|iPod/i.test(Jt&&Jt.userAgent||"")||/Macintosh/i.test(Jt&&Jt.userAgent||"")&&Jt&&Jt.maxTouchPoints&&Jt.maxTouchPoints>1?{sampling:{mousemove:!1}}:{}}function R0(e){let t=!1;return(n,r)=>{if(!e.checkAndHandleExpiredSession()){D&&$.warn("Received replay event after session expired.");return}const s=r||!t;t=!0,e.clickDetector&&YE(e.clickDetector,n),e.addUpdate(()=>{if(e.recordingMode==="buffer"&&s&&e.setInitialState(),!fa(e,n,s))return!0;
29if(!s)return!1;const o=e.session;if(A0(e,s),e.recordingMode==="buffer"&&o&&e.eventBuffer){const i=e.eventBuffer.getEarliestTimestamp();i&&(D&&$.info(`Updating session start time to earliest event in buffer to ${new Date(i)}`),o.started=i,e.getOptions().stickySession&&da(o))}return o&&o.previousSessionId||e.recordingMode==="session"&&e.flush(),!0})}}function M0(e){const 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 A0(e,t){!t||!e.session||e.session.segmentId!==0||fa(e,M0(e),!1)}function O0(e,t,n,r){return Et(ml(e,Pi(e),r,n),[[{type:"replay_event"},e],[{type:"replay_recording",length:typeof t=="string"?new TextEncoder().encode(t).length:t.length},t]])}function N0({recordingData:e,headers:t}){let n;const r=`${JSON.stringify(t)}
30`;if(typeof e=="string")n=`${r}${e}`;else{const o=new TextEncoder().encode(r);n=new Uint8Array(o.length+e.length),n.set(o),n.set(e,o.length)}return n}async function D0({client:e,scope:t,replayId:n,event:r}){const s=typeof e._integrations=="object"&&e._integrations!==null&&!Array.isArray(e._integrations)?Object.keys(e._integrations):void 0,o={event_id:n,integrations:s};e.emit("preprocessEvent",r,o);const i=await Sl(e.getOptions(),r,o,t,e,Ee());if(!i)return null;i.platform=i.platform||"javascript";const a=e.getSdkMetadata(),{name:c,version:u}=a&&a.sdk||{};return i.sdk={...i.sdk,name:c||"sentry.javascript.unknown",version:u||"0.0.0"},i}async function P0({recordingData:e,replayId:t,segmentId:n,eventContext:r,timestamp:s,session:o}){const i=N0({recordingData:e,headers:{segment_id:n}}),{urls:a,errorIds:c,traceIds:u,initialTimestamp:d}=r,l=R(),f=W(),p=l&&l.getTransport(),h=l&&l.getDsn();if(!l||!p||!h||!o.sampled)return mt({});const m={type:pb,replay_start_timestamp:d/1e3,timestamp:s/1e3,error_ids:c,trace_ids:u,urls:a,replay_id:t,segment_id:n,replay_type:o.sampled},b=await D0({scope:f,client:l,replayId:t,event:m});if(!b)return l.recordDroppedEvent("event_processor","replay",m),D&&$.info("An event processor returned `null`, will not send event."),mt({});delete b.sdkProcessingMetadata;const y=O0(b,i,h,l.getOptions().tunnel);let w;try{w=await p.send(y)}catch(M){const _=new Error(ta);try{_.cause=M}catch{}throw _}if(typeof w.statusCode=="number"&&(w.statusCode<200||w.statusCode>=300))throw new of(w.statusCode);const C=xl({},w);if(Cl(C,"replay"))throw new ha(C);return w}class of extends Error{constructor(t){super(`Transport returned status code ${t}`)}}class ha extends Error{constructor(t){super("Rate limit hit"),this.rateLimits=t}}async function af(e,t={count:0,interval:Sb}){const{recordingData:n,onError:r}=e;if(n.length)try{return await P0(e),!0}catch(s){if(s instanceof of||s instanceof ha)throw s;if(Hi("Replays",{_retryCount:t.count}),r&&r(s),t.count>=bb){const o=new Error(`${ta} - max retries exceeded`);try{o.cause=s}catch{}throw o}return t.interval*=++t.count,new Promise((o,i)=>{Ln(async()=>{try{await af(e,t),o(!0)}catch(a){i(a)}},t.interval)})}}const cf="__THROTTLED",L0="__SKIPPED";function F0(e,t,n){const r=new Map,s=a=>{const c=a-n;r.forEach((u,d)=>{d<c&&r.delete(d)})},o=()=>[...r.values()].reduce((a,c)=>a+c,0);let i=!1;return(...a)=>{const c=Math.floor(Date.now()/1e3);if(s(c),o()>=t){const d=i;return i=!0,d?L0:cf}i=!1;const u=r.get(c)||0;return r.set(c,u+1),e(...a)}}class xt{constructor({options:t,recordingOptions:n}){xt.prototype.__init.call(this),xt.prototype.__init2.call(this),xt.prototype.__init3.call(this),xt.prototype.__init4.call(this),xt.prototype.__init5.call(this),xt.prototype.__init6.call(this),this.eventBuffer=null,this.performanceEntries=[],this.replayPerformanceEntries=[],this.recordingMode="session",this.timeouts={sessionIdlePause:hb,sessionIdleExpire:mb},this._lastActivity=Date.now(),this._isEnabled=!1,this._isPaused=!1,this._requiresManualStart=!1,this._hasInitializedCoreListeners=!1,this._context={errorIds:new Set,traceIds:new Set,urls:[],initialTimestamp:Date.now(),initialUrl:""},this._recordingOptions=n,this._options=t,this._debouncedFlush=C0(()=>this._flush(),this._options.flushMinDelay,{maxWait:this._options.flushMaxDelay}),this._throttledAddEvent=F0((i,a)=>Ov(this,i,a),300,5);const{slowClickTimeout:r,slowClickIgnoreSelectors:s}=this.getOptions(),o=r?{threshold:Math.min(Eb,r),timeout:r,scrollTimeout:vb,ignoreSelector:s?s.join(","):""}:void 0;if(o&&(this.clickDetector=new jE(this,o)),D){const i=t._experiments;$.setConfig({captureExceptions:!!i.captureExceptions,traceInternals:!!i.traceInternals})}}getContext(){return this._context}isEnabled(){return this._isEnabled}isPaused(){return this._isPaused}isRecordingCanvas(){return!!this._canvas}getOptions(){return this._options}handleException(t){D&&$.exception(t),this._options.onError&&this._options.onError(t)}initializeSampling(t){const{errorSampleRate:n,sessionSampleRate:r}=this._options,s=n<=0&&r<=0;if(this._requiresManualStart=s,!s){if(this._initializeSessionForSampling(t),!this.session){D&&$.exception(new Error("Unable to initialize and create session"));return}this.session.sampled!==!1&&(this.recordingMode=this.session.sampled==="buffer"&&this.session.segmentId===0?"buffer":"session",D&&$.infoTick(`Starting replay in ${this.recordingMode} mode`),this._initializeRecording())}}
30start(){if(this._isEnabled&&this.recordingMode==="session"){D&&$.info("Recording is already in progress");return}if(this._isEnabled&&this.recordingMode==="buffer"){D&&$.info("Buffering is in progress, call `flush()` to save the replay");return}D&&$.infoTick("Starting replay in session mode"),this._updateUserActivity();const t=Ro({maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire},{stickySession:this._options.stickySession,sessionSampleRate:1,allowBuffering:!1});this.session=t,this._initializeRecording()}startBuffering(){if(this._isEnabled){D&&$.info("Buffering is in progress, call `flush()` to save the replay");return}D&&$.infoTick("Starting replay in buffer mode");const t=Ro({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration},{stickySession:this._options.stickySession,sessionSampleRate:0,allowBuffering:!0});this.session=t,this.recordingMode="buffer",this._initializeRecording()}startRecording(){try{const t=this._canvas;this._stopRecording=dt({...this._recordingOptions,...this.recordingMode==="buffer"?{checkoutEveryNms:yb}:this._options._experiments.continuousCheckout&&{checkoutEveryNms:Math.max(36e4,this._options._experiments.continuousCheckout)},emit:R0(this),...x0(),onMutation:this._onMutationHandler,...t?{recordCanvas:t.recordCanvas,getCanvasManager:t.getCanvasManager,sampling:t.sampling,dataURLOptions:t.dataURLOptions}:{}})}catch(t){this.handleException(t)}}stopRecording(){try{return this._stopRecording&&(this._stopRecording(),this._stopRecording=void 0),!0}catch(t){return this.handleException(t),!1}}async stop({forceFlush:t=!1,reason:n}={}){if(this._isEnabled){this._isEnabled=!1;try{D&&$.info(`Stopping Replay${n?` triggered by ${n}`:""}`),Jd(),this._removeListeners(),this.stopRecording(),this._debouncedFlush.cancel(),t&&await this._flush({force:!0}),this.eventBuffer&&this.eventBuffer.destroy(),this.eventBuffer=null,Cv(this)}catch(r){this.handleException(r)}}}pause(){this._isPaused||(this._isPaused=!0,this.stopRecording(),D&&$.info("Pausing replay"))}resume(){!this._isPaused||!this._checkSession()||(this._isPaused=!1,this.startRecording(),D&&$.info("Resuming replay"))}async sendBufferedReplayOrFlush({continueRecording:t=!0}={}){if(this.recordingMode==="session")return this.flushImmediate();const n=Date.now();D&&$.info("Converting buffer to session"),await this.flushImmediate();const r=this.stopRecording();!t||!r||this.recordingMode!=="session"&&(this.recordingMode="session",this.session&&(this._updateUserActivity(n),this._updateSessionActivity(n),this._maybeSaveSession()),this.startRecording())}addUpdate(t){const n=t();this.recordingMode!=="buffer"&&n!==!0&&this._debouncedFlush()}triggerUserActivity(){if(this._updateUserActivity(),!this._stopRecording){if(!this._checkSession())return;this.resume();return}this.checkAndHandleExpiredSession(),this._updateSessionActivity()}updateUserActivity(){this._updateUserActivity(),this._updateSessionActivity()}conditionalFlush(){return this.recordingMode==="buffer"?Promise.resolve():this.flushImmediate()}flush(){return this._debouncedFlush()}flushImmediate(){return this._debouncedFlush(),this._debouncedFlush.flush()}cancelFlush(){this._debouncedFlush.cancel()}getSessionId(){return this.session&&this.session.id}checkAndHandleExpiredSession(){if(this._lastActivity&&gi(this._lastActivity,this.timeouts.sessionIdlePause)&&this.session&&this.session.sampled==="session"){this.pause();return}return!!this._checkSession()}setInitialState(){const t=`${ie.location.pathname}${ie.location.hash}${ie.location.search}`,n=`${ie.location.origin}${t}`;this.performanceEntries=[],this.replayPerformanceEntries=[],this._clearContext(),this._context.initialUrl=n,this._context.initialTimestamp=Date.now(),this._context.urls.push(n)}throttledAddEvent(t,n){const r=this._throttledAddEvent(t,n);if(r===cf){const s=Ze({category:"replay.throttled"});this.addUpdate(()=>!fa(this,{type:FE,timestamp:s.timestamp||0,data:{tag:"breadcrumb",payload:s,metric:!0}}))}return r}getCurrentRoute(){const t=this.lastActiveSpan||fe(),n=t&&me(t),s=(n&&H(n).data||{})[he];if(!(!n||!s||!["route","custom"].includes(s)))return H(n).description}_initializeRecording(){this.setInitialState(),this._updateSessionActivity(),this.eventBuffer=Iv({useCompression:this._options.useCompression,workerUrl:this._options.workerUrl}),this._removeListeners(),this._addListeners(),this._isEnabled=!0,this._isPaused=!1,this.startRecording()}_initializeSessionForSampling(t){const n=this._options.errorSampleRate>0,r=Ro({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration,previousSessionId:t},{stickySession:this._options.stickySession,sessionSampleRate:this._options.sessionSampleRate,allowBuffering:n});this.session=r}_checkSession(){if(!this.session)return!1;const t=this.session;return Vd(t,{sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration})?(this._refreshSession(t),!1):!0}async _refreshSession(t){this._isEnabled&&(await this.stop({reason:"refresh session"}),this.initializeSampling(t.id))}_addListeners(){try{ie.document.addEventListener("visibilitychange",this._handleVisibilityChange),ie.addEventListener("blur",this._handleWindowBlur),ie.addEventListener("focus",this._handleWindowFocus),ie.addEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.addListeners(),this._hasInitializedCoreListeners||(I0(this),this._hasInitializedCoreListeners=!0)}catch(t){this.handleException(t)}this._performanceCleanupCallback=_v(this)}_removeListeners(){try{ie.document.removeEventListener("visibilitychange",this._handleVisibilityChange),ie.removeEventListener("blur",this._handleWindowBlur),ie.removeEventListener("focus",this._handleWindowFocus),ie.removeEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.removeListeners(),this._performanceCleanupCallback&&this._performanceCleanupCallback()}catch(t){this.handleException(t)}}__init(){this._handleVisibilityChange=()=>{ie.document.visibilityState==="visible"?this._doChangeToForegroundTasks():this._doChangeToBackgroun
30dTasks()}}__init2(){this._handleWindowBlur=()=>{const t=Ze({category:"ui.blur"});this._doChangeToBackgroundTasks(t)}}__init3(){this._handleWindowFocus=()=>{const t=Ze({category:"ui.focus"});this._doChangeToForegroundTasks(t)}}__init4(){this._handleKeyboardEvent=t=>{rv(this,t)}}_doChangeToBackgroundTasks(t){!this.session||Gd(this.session,{maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire})||(t&&this._createCustomBreadcrumb(t),this.conditionalFlush())}_doChangeToForegroundTasks(t){if(!this.session)return;if(!this.checkAndHandleExpiredSession()){D&&$.info("Document has become active, but session has expired");return}t&&this._createCustomBreadcrumb(t)}_updateUserActivity(t=Date.now()){this._lastActivity=t}_updateSessionActivity(t=Date.now()){this.session&&(this.session.lastActivity=t,this._maybeSaveSession())}_createCustomBreadcrumb(t){this.addUpdate(()=>{this.throttledAddEvent({type:j.Custom,timestamp:t.timestamp||0,data:{tag:"breadcrumb",payload:t}})})}_addPerformanceEntries(){let t=av(this.performanceEntries).concat(this.replayPerformanceEntries);if(this.performanceEntries=[],this.replayPerformanceEntries=[],this._requiresManualStart){const n=this._context.initialTimestamp/1e3;t=t.filter(r=>r.start>=n)}return Promise.all(no(this,t))}_clearContext(){this._context.errorIds.clear(),this._context.traceIds.clear(),this._context.urls=[]}_updateInitialTimestampFromEventBuffer(){const{session:t,eventBuffer:n}=this;if(!t||!n||this._requiresManualStart||t.segmentId)return;const r=n.getEarliestTimestamp();r&&r<this._context.initialTimestamp&&(this._context.initialTimestamp=r)}_popEventContext(){const t={initialTimestamp:this._context.initialTimestamp,initialUrl:this._context.initialUrl,errorIds:Array.from(this._context.errorIds),traceIds:Array.from(this._context.traceIds),urls:this._context.urls};return this._clearContext(),t}async _runFlush(){const t=this.getSessionId();if(!this.session||!this.eventBuffer||!t){D&&$.error("No session or eventBuffer found to flush.");return}if(await this._addPerformanceEntries(),!(!this.eventBuffer||!this.eventBuffer.hasEvents)&&(await T0(this),!!this.eventBuffer&&t===this.getSessionId()))try{this._updateInitialTimestampFromEventBuffer();const n=Date.now();if(n-this._context.initialTimestamp>this._options.maxReplayDuration+3e4)throw new Error("Session is too long, not sending replay");const r=this._popEventContext(),s=this.session.segmentId++;this._maybeSaveSession();const o=await this.eventBuffer.finish();await af({replayId:t,recordingData:o,segmentId:s,eventContext:r,session:this.session,timestamp:n,onError:i=>this.handleException(i)})}catch(n){this.handleException(n),this.stop({reason:"sendReplay"});const r=R();if(r){const s=n instanceof ha?"ratelimit_backoff":"send_error";r.recordDroppedEvent(s,"replay")}}}__init5(){this._flush=async({force:t=!1}={})=>{if(!this._isEnabled&&!t)return;if(!this.checkAndHandleExpiredSession()){D&&$.error("Attempting to finish replay event after session expired.");return}if(!this.session)return;const n=this.session.started,s=Date.now()-n;this._debouncedFlush.cancel();const o=s<this._options.minReplayDuration,i=s>this._options.maxReplayDuration+5e3;if(o||i){D&&$.info(`Session duration (${Math.floor(s/1e3)}s) is too ${o?"short":"long"}, not sending replay.`),o&&this._debouncedFlush();return}const a=this.eventBuffer;a&&this.session.segmentId===0&&!a.hasCheckout&&D&&$.info("Flushing initial segment without checkout.");const c=!!this._flushLock;this._flushLock||(this._flushLock=this._runFlush());try{await this._flushLock}catch(u){this.handleException(u)}finally{this._flushLock=void 0,c&&this._debouncedFlush()}}}_maybeSaveSession(){this.session&&this._options.stickySession&&da(this.session)}__init6(){this._onMutationHandler=t=>{const n=t.length,r=this._options.mutationLimit,s=this._options.mutationBreadcrumbLimit,o=r&&n>r;if(n>s||o){const i=Ze({category:"replay.mutations",data:{count:n,limit:o}});this._createCustomBreadcrumb(i)}return o?(this.stop({reason:"mutationLimit",forceFlush:this.recordingMode==="session"}),!1):!0}}}function Zn(e,t){return[...e,...t].join(",")}function $0({mask:e,unmask:t,block:n,unblock:r,ignore:s}
30){const o=["base","iframe[srcdoc]:not([src])"],i=Zn(e,[".sentry-mask","[data-sentry-mask]"]),a=Zn(t,[]);return{maskTextSelector:i,unmaskTextSelector:a,blockSelector:Zn(n,[".sentry-block","[data-sentry-block]",...o]),unblockSelector:Zn(r,[]),ignoreSelector:Zn(s,[".sentry-ignore","[data-sentry-ignore]",'input[type="file"]'])}}function U0({el:e,key:t,maskAttributes:n,maskAllText:r,privacyOptions:s,value:o}){return!r||s.unmaskTextSelector&&e.matches(s.unmaskTextSelector)?o:n.includes(t)||t==="value"&&e.tagName==="INPUT"&&["submit","button"].includes(e.getAttribute("type")||"")?o.replace(/[\S]/g,"*"):o}const Vc='img,image,svg,video,object,picture,embed,map,audio,link[rel="icon"],link[rel="apple-touch-icon"]',B0=["content-length","content-type","accept"];let Yc=!1;const a1=(e=>new so(e));class so{static __initStatic(){this.id="Replay"}constructor({flushMinDelay:t=gb,flushMaxDelay:n=_b,minReplayDuration:r=wb,maxReplayDuration:s=kc,stickySession:o=!0,useCompression:i=!0,workerUrl:a,_experiments:c={},maskAllText:u=!0,maskAllInputs:d=!0,blockAllMedia:l=!0,mutationBreadcrumbLimit:f=750,mutationLimit:p=1e4,slowClickTimeout:h=7e3,slowClickIgnoreSelectors:m=[],networkDetailAllowUrls:b=[],networkDetailDenyUrls:y=[],networkCaptureBodies:w=!0,networkRequestHeaders:C=[],networkResponseHeaders:M=[],mask:_=[],maskAttributes:v=["title","placeholder"],unmask:x=[],block:A=[],unblock:g=[],ignore:E=[],maskFn:k,beforeAddRecordingEvent:I,beforeErrorSampling:B,onError:V}={}){this.name=so.id;const z=$0({mask:_,unmask:x,block:A,unblock:g,ignore:E});if(this._recordingOptions={maskAllInputs:d,maskAllText:u,maskInputOptions:{password:!0},maskTextFn:k,maskInputFn:k,maskAttributeFn:(O,ce,F)=>U0({maskAttributes:v,maskAllText:u,privacyOptions:z,key:O,value:ce,el:F}),...z,slimDOMOptions:"all",inlineStylesheet:!0,inlineImages:!1,collectFonts:!0,errorHandler:O=>{try{O.__rrweb__=!0}catch{}}},this._initialOptions={flushMinDelay:t,flushMaxDelay:n,minReplayDuration:Math.min(r,Ib),maxReplayDuration:Math.min(s,kc),stickySession:o,useCompression:i,workerUrl:a,blockAllMedia:l,maskAllInputs:d,maskAllText:u,mutationBreadcrumbLimit:f,mutationLimit:p,slowClickTimeout:h,slowClickIgnoreSelectors:m,networkDetailAllowUrls:b,networkDetailDenyUrls:y,networkCaptureBodies:w,networkRequestHeaders:Xc(C),networkResponseHeaders:Xc(M),beforeAddRecordingEvent:I,beforeErrorSampling:B,onError:V,_experiments:c},this._initialOptions.blockAllMedia&&(this._recordingOptions.blockSelector=this._recordingOptions.blockSelector?`${this._recordingOptions.blockSelector},${Vc}`:Vc),this._isInitialized&&ni())throw new Error("Multiple Sentry Session Replay instances are not supported");this._isInitialized=!0}get _isInitialized(){return Yc}set _isInitialized(t){Yc=t}afterAllSetup(t){!ni()||this._replay||(this._setup(t),this._initialize(t))}start(){this._replay&&this._replay.start()}startBuffering(){this._replay&&this._replay.startBuffering()}stop(){return this._replay?this._replay.stop({forceFlush:this._replay.recordingMode==="session"}):Promise.resolve()}flush(t){return this._replay?this._replay.isEnabled()?this._replay.sendBufferedReplayOrFlush(t):(this._replay.start(),Promise.resolve()):Promise.resolve()}getReplayId(){if(!(!this._replay||!this._replay.isEnabled()))return this._replay.getSessionId()}getRecordingMode(){if(!(!this._replay||!this._replay.isEnabled()))return this._replay.recordingMode}_initialize(t){this._replay&&(this._maybeLoadFromReplayCanvasIntegration(t),this._replay.initializeSampling())}_setup(t){const n=H0(this._initialOptions,t);this._replay=new xt({options:n,recordingOptions:this._recordingOptions})}_maybeLoadFromReplayCanvasIntegration(t){try{const n=t.getIntegrationByName("ReplayCanvas");if(!n)return;this._replay._canvas=n.getOptions()}catch{}}}so.__initStatic();function H0(e,t){const n=t.getOptions(),r={sessionSampleRate:0,errorSampleRate:0,..._e(e)},s=ws(n.replaysSessionSampleRate),o=ws(n.replaysOnErrorSampleRate);return s==null&&o==null&&St(()=>{console.warn("Replay is disabled because neither `replaysSessionSampleRate` nor `replaysOnErrorSampleRate` are set.")}),s!=null&&(r.sessionSampleRate=s),o!=null&&(r.errorSampleRate=o),r}function Xc(e){return[...B0,...e.map(t=>t.toLowerCase())]}function c1(){const e=R();return e&&e.getIntegrationByName("Replay")}var Kc;(function(e){e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment"})(Kc||(Kc={}));function W0(e,t){for(let n=e.classList.length;n--;){const r=e.classList[n];if(t.test(r))return!0}return!1}function Si(e,t,n=1/0,r=0){return!e||e.nodeType!==e.ELEMENT_NODE||r>n?-1:t(e)?r:Si(e.parentNode,t,n,r+1)}
30function Jc(e,t){return n=>{const r=n;if(r===null)return!1;try{if(e){if(typeof e=="string"){if(r.matches(`.${e}`))return!0}else if(W0(r,e))return!0}return!!(t&&r.matches(t))}catch{return!1}}}const En=`Please stop import mirror directly. Instead of that,\r
31now you can use replayer.getMirror() to access the mirror instance of a replayer,\r
32or you can use record.mirror to access the mirror instance during recording.`;let Zc={map:{},getId(){return console.error(En),-1},getNode(){return console.error(En),null},removeNodeFromMap(){console.error(En)},has(){return console.error(En),!1},reset(){console.error(En)}};typeof window<"u"&&window.Proxy&&window.Reflect&&(Zc=new Proxy(Zc,{get(e,t,n){return t==="map"&&console.error(En),Reflect.get(e,t,n)}}));function ma(e,t,n,r,s=window){const o=s.Object.getOwnPropertyDescriptor(e,t);return s.Object.defineProperty(e,t,r?n:{set(i){lf(()=>{n.set.call(this,i)},0),o&&o.set&&o.set.call(this,i)}}),()=>ma(e,t,o||{},!0)}function ga(e,t,n){try{if(!(t in e))return()=>{};const r=e[t],s=n(r);return typeof s=="function"&&(s.prototype=s.prototype||{},Object.defineProperties(s,{__rrweb_original__:{enumerable:!1,value:r}})),e[t]=s,()=>{e[t]=r}}catch{return()=>{}}}/[1-9][0-9]{12}/.test(Date.now().toString());function z0(e){return e?e.nodeType===e.ELEMENT_NODE?e:e.parentElement:null}function oo(e,t,n,r,s){if(!e)return!1;const o=z0(e);if(!o)return!1;const i=Jc(t,n),a=Si(o,i);let c=-1;return a<0?!1:(r&&(c=Si(o,Jc(null,r))),a>-1&&c<0?!0:a<c)}const Qc={};function uf(e){const t=Qc[e];if(t)return t;const n=window.document;let r=window[e];if(n&&typeof n.createElement=="function")try{const s=n.createElement("iframe");s.hidden=!0,n.head.appendChild(s);const o=s.contentWindow;o&&o[e]&&(r=o[e]),n.head.removeChild(s)}catch{}return Qc[e]=r.bind(window)}function Zt(...e){return uf("requestAnimationFrame")(...e)}function lf(...e){return uf("setTimeout")(...e)}var Hn=(e=>(e[e["2D"]=0]="2D",e[e.WebGL=1]="WebGL",e[e.WebGL2=2]="WebGL2",e))(Hn||{});let cs;function j0(e){cs=e}const Mo=e=>cs?((...n)=>{try{return e(...n)}catch(r){if(cs&&cs(r)===!0)return()=>{};throw r}}):e;var kn="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",q0=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var Jr=0;Jr<kn.length;Jr++)q0[kn.charCodeAt(Jr)]=Jr;var G0=function(e){var t=new Uint8Array(e),n,r=t.length,s="";for(n=0;n<r;n+=3)s+=kn[t[n]>>2],s+=kn[(t[n]&3)<<4|t[n+1]>>4],s+=kn[(t[n+1]&15)<<2|t[n+2]>>6],s+=kn[t[n+2]&63];return r%3===2?s=s.substring(0,s.length-1)+"=":r%3===1&&(s=s.substring(0,s.length-2)+"=="),s};const eu=new Map;function V0(e,t){let n=eu.get(e);return n||(n=new Map,eu.set(e,n)),n.has(t)||n.set(t,[]),n.get(t)}const df=(e,t,n)=>{if(!e||!(pf(e,t)||typeof e=="object"))return;const r=e.constructor.name,s=V0(n,r);let o=s.indexOf(e);return o===-1&&(o=s.length,s.push(e)),o};function us(e,t,n){if(e instanceof Array)return e.map(r=>us(r,t,n));if(e===null)return e;if(e instanceof Float32Array||e instanceof Float64Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Uint8Array||e instanceof Uint16Array||e instanceof Int16Array||e instanceof Int8Array||e instanceof Uint8ClampedArray)return{rr_type:e.constructor.name,args:[Object.values(e)]};if(e instanceof ArrayBuffer){const r=e.constructor.name,s=G0(e);return{rr_type:r,base64:s}}else{if(e instanceof DataView)return{rr_type:e.constructor.name,args:[us(e.buffer,t,n),e.byteOffset,e.byteLength]};if(e instanceof HTMLImageElement){const r=e.constructor.name,{src:s}=e;return{rr_type:r,src:s}}else if(e instanceof HTMLCanvasElement){const r="HTMLImageElement",s=e.toDataURL();return{rr_type:r,src:s}}else{if(e instanceof ImageData)return{rr_type:e.constructor.name,args:[us(e.data,t,n),e.width,e.height]};if(pf(e,t)||typeof e=="object"){const r=e.constructor.name,s=df(e,t,n);return{rr_type:r,index:s}}}}return e}const ff=(e,t,n)=>e.map(r=>us(r,t,n)),pf=(e,t)=>!!["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"].filter(s=>typeof t[s]=="function").find(s=>e instanceof t[s]);
32function Y0(e,t,n,r,s){const o=[],i=Object.getOwnPropertyNames(t.CanvasRenderingContext2D.prototype);for(const a of i)try{if(typeof t.CanvasRenderingContext2D.prototype[a]!="function")continue;const c=ga(t.CanvasRenderingContext2D.prototype,a,function(u){return function(...d){return oo(this.canvas,n,r,s,!0)||lf(()=>{const l=ff(d,t,this);e(this.canvas,{type:Hn["2D"],property:a,args:l})},0),u.apply(this,d)}});o.push(c)}catch{const u=ma(t.CanvasRenderingContext2D.prototype,a,{set(d){e(this.canvas,{type:Hn["2D"],property:a,args:[d],setter:!0})}});o.push(u)}return()=>{o.forEach(a=>a())}}function X0(e){return e==="experimental-webgl"?"webgl":e}function tu(e,t,n,r,s){const o=[];try{const i=ga(e.HTMLCanvasElement.prototype,"getContext",function(a){return function(c,...u){if(!oo(this,t,n,r,!0)){const d=X0(c);if("__context"in this||(this.__context=d),s&&["webgl","webgl2"].includes(d))if(u[0]&&typeof u[0]=="object"){const l=u[0];l.preserveDrawingBuffer||(l.preserveDrawingBuffer=!0)}else u.splice(0,1,{preserveDrawingBuffer:!0})}return a.apply(this,[c,...u])}});o.push(i)}catch{console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return()=>{o.forEach(i=>i())}}function nu(e,t,n,r,s,o,i,a){const c=[],u=Object.getOwnPropertyNames(e);for(const d of u)if(!["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(d))try{if(typeof e[d]!="function")continue;const l=ga(e,d,function(f){return function(...p){const h=f.apply(this,p);if(df(h,a,this),"tagName"in this.canvas&&!oo(this.canvas,r,s,o,!0)){const m=ff(p,a,this),b={type:t,property:d,args:m};n(this.canvas,b)}return h}});c.push(l)}catch{const f=ma(e,d,{set(p){n(this.canvas,{type:t,property:d,args:[p],setter:!0})}});c.push(f)}return c}function K0(e,t,n,r,s,o){const i=[];return i.push(...nu(t.WebGLRenderingContext.prototype,Hn.WebGL,e,n,r,s,o,t)),typeof t.WebGL2RenderingContext<"u"&&i.push(...nu(t.WebGL2RenderingContext.prototype,Hn.WebGL2,e,n,r,s,o,t)),()=>{i.forEach(a=>a())}}var J0='for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t="undefined"==typeof Uint8Array?[]:new Uint8Array(256),a=0;a<64;a++)t[e.charCodeAt(a)]=a;var n=function(t){var a,n=new Uint8Array(t),r=n.length,s="";for(a=0;a<r;a+=3)s+=e[n[a]>>2],s+=e[(3&n[a])<<4|n[a+1]>>4],s+=e[(15&n[a+1])<<2|n[a+2]>>6],s+=e[63&n[a+2]];return r%3==2?s=s.substring(0,s.length-1)+"=":r%3==1&&(s=s.substring(0,s.length-2)+"=="),s};const r=new Map,s=new Map;const i=self;i.onmessage=async function(e){if(!("OffscreenCanvas"in globalThis))return i.postMessage({id:e.data.id});{const{id:t,bitmap:a,width:o,height:f,maxCanvasSize:c,dataURLOptions:g}=e.data,u=async function(e,t,a){const r=e+"-"+t;if("OffscreenCanvas"in globalThis){if(s.has(r))return s.get(r);const i=new OffscreenCanvas(e,t);i.getContext("2d");const o=await i.convertToBlob(a),f=await o.arrayBuffer(),c=n(f);return s.set(r,c),c}return""}(o,f,g),[h,d]=function(e,t,a){if(!a)return[e,t];const[n,r]=a;if(e<=n&&t<=r)return[e,t];let s=e,i=t;return s>n&&(i=Math.floor(n*t/e),s=n),i>r&&(s=Math.floor(r*e/t),i=r),[s,i]}(o,f,c),l=new OffscreenCanvas(h,d),w=l.getContext("bitmaprenderer"),p=h===o&&d===f?a:await createImageBitmap(a,{resizeWidth:h,resizeHeight:d,resizeQuality:"low"});w.transferFromImageBitmap(p),a.close();const y=await l.convertToBlob(g),v=y.type,b=await y.arrayBuffer(),m=n(b);if(p.close(),!r.has(t)&&await u===m)return r.set(t,m),i.postMessage({id:t});if(r.get(t)===m)return i.postMessage({id:t});i.postMessage({id:t,type:v,base64:m,width:o,height:f}),r.set(t,m)}};';function Z0(){const e=new Blob([J0]);return URL.createObjectURL(e)}class Q0{reset(){this.pendingCanvasMutations.clear(),this.restoreHandlers.forEach(t=>{try{t()}catch{}}),this.restoreHandlers=[],this.windowsSet=new WeakSet,this.windows=[],this.shadowDoms=new Set,on([this,"access",t=>t.worker,"optionalAccess",t=>t.terminate,"call",t=>t()]),this.worker=null,this.snapshotInProgressMap=new Map}freeze(){this.frozen=!0}unfreeze(){this.frozen=!1}lock(){this.locked=!0}unlock(){this.locked=!1}constructor(t){this.pendingCanvasMutations=new Map,this.rafStamps={latestId:0,invokeId:null},this.shadowDoms=new Set,this.windowsSet=new WeakSet,this.windows=[],this.restoreHandlers=[],this.frozen=!1,this.locked=!1,this.snapshotInProgressMap=new Map,this.worker=null,this.processMutation=(l,f)=>{(this.rafStamps.invokeId&&this.rafStamps.latestId!==this.rafStamps.invokeId||!this.rafStamps.invokeId)&&(this.rafStamps.invokeId=this.rafStamps.latestId),this.pendingCanvasMutations.has(l)||this.pendingCanvasMutations.set(l,[]),this.pendingCanvasMutations.get(l).push(f)};const{sampling:n="all",win:r,blockClass:s,blockSelector:o,unblockSelector:i,maxCanvasSize:a,recordCanvas:c,dataURLOptions:u,errorHandler:d}=t;this.mutationCb=t.mutationCb,this.mirror=t.mirror,this.options=t,d&&j0(d),(c&&typeof n=="number"||t.enableManualSnapshot)&&(this.worker=this.initFPSWorker()),this.addWindow(r),!t.enableManualSnapshot&&Mo(()=>{c&&n==="all"&&(this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher()),c&&typeof n=="number"&&this.initCanvasFPSObserver(n,s,o,i,a,{dataURLOptions:u})})()}addWindow(t){const{sampling:n="all",blockClass:r,blockSelector:s,unblockSelector:o,recordCanvas:i,enableManualSnapshot:a}=this.options;if(!this.windowsSet.has(t)){if(a){this.windowsSet.add(t),this.windows.push(new WeakRef(t));return}Mo(()=>
32{if(i&&n==="all"&&this.initCanvasMutationObserver(t,r,s,o),i&&typeof n=="number"){const c=tu(t,r,s,o,!0);this.restoreHandlers.push(()=>{c()})}})(),this.windowsSet.add(t),this.windows.push(new WeakRef(t))}}addShadowRoot(t){this.shadowDoms.add(new WeakRef(t))}resetShadowRoots(){this.shadowDoms=new Set}initFPSWorker(){const t=new Worker(Z0());return t.onmessage=n=>{const r=n.data,{id:s}=r;if(this.snapshotInProgressMap.set(s,!1),!("base64"in r))return;const{base64:o,type:i,width:a,height:c}=r;this.mutationCb({id:s,type:Hn["2D"],commands:[{property:"clearRect",args:[0,0,a,c]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:o}],type:i}]},0,0,a,c]}]})},t}initCanvasFPSObserver(t,n,r,s,o,i){const a=this.takeSnapshot(!1,t,n,r,s,o,i.dataURLOptions);this.restoreHandlers.push(()=>{cancelAnimationFrame(a)})}initCanvasMutationObserver(t,n,r,s){const o=tu(t,n,r,s,!1),i=Y0(this.processMutation.bind(this),t,n,r,s),a=K0(this.processMutation.bind(this),t,n,r,s,this.mirror);this.restoreHandlers.push(()=>{o(),i(),a()})}snapshot(t){const{options:n}=this,r=this.takeSnapshot(!0,n.sampling==="all"?2:n.sampling||2,n.blockClass,n.blockSelector,n.unblockSelector,n.maxCanvasSize,n.dataURLOptions,t);this.restoreHandlers.push(()=>{cancelAnimationFrame(r)})}takeSnapshot(t,n,r,s,o,i,a,c){const u=1e3/n;let d=0,l;const f=h=>{if(h)return[h];const m=[],b=y=>{y.querySelectorAll("canvas").forEach(w=>{oo(w,r,s,o)||m.push(w)})};for(const y of this.windows){const w=y.deref();w&&b(w.document)}for(const y of this.shadowDoms){const w=y.deref();w&&b(w)}return m},p=h=>{if(this.windows.length){if(d&&h-d<u){l=Zt(p);return}
32d=h,f(c).forEach(m=>{if(!this.mirror.hasNode(m))return;const b=this.mirror.getId(m);if(!this.snapshotInProgressMap.get(b)&&!(!m.width||!m.height)){if(this.snapshotInProgressMap.set(b,!0),!t&&["webgl","webgl2"].includes(m.__context)){const y=m.getContext(m.__context);on([y,"optionalAccess",w=>w.getContextAttributes,"call",w=>w(),"optionalAccess",w=>w.preserveDrawingBuffer])===!1&&y.clear(y.COLOR_BUFFER_BIT)}createImageBitmap(m).then(y=>{on([this,"access",w=>w.worker,"optionalAccess",w=>w.postMessage,"call",w=>w({id:b,bitmap:y,width:m.width,height:m.height,dataURLOptions:a,maxCanvasSize:i},[y])])}).catch(y=>{Mo(()=>{throw y})()})}}),t||(l=Zt(p))}};return l=Zt(p),l}startPendingCanvasMutationFlusher(){Zt(()=>this.flushPendingCanvasMutations())}startRAFTimestamping(){const t=n=>{this.rafStamps.latestId=n,Zt(t)};Zt(t)}flushPendingCanvasMutations(){this.pendingCanvasMutations.forEach((t,n)=>{const r=this.mirror.getId(n);this.flushPendingCanvasMutationFor(n,r)}),Zt(()=>this.flushPendingCanvasMutations())}flushPendingCanvasMutationFor(t,n){if(this.frozen||this.locked)return;const r=this.pendingCanvasMutations.get(t);if(!r||n===-1)return;const s=r.map(i=>{const{type:a,...c}=i;return c}),{type:o}=r[0];this.mutationCb({id:n,type:o,commands:s}),this.pendingCanvasMutations.delete(t)}}const ru={low:{sampling:{canvas:1},dataURLOptions:{type:"image/webp",quality:.25}},medium:{sampling:{canvas:2},dataURLOptions:{type:"image/webp",quality:.4}},high:{sampling:{canvas:4},dataURLOptions:{type:"image/webp",quality:.5}}},ew="ReplayCanvas",Zr=1280,tw=((e={})=>{const[t,n]=e.maxCanvasSize||[],r={quality:e.quality||"medium",enableManualSnapshot:e.enableManualSnapshot,maxCanvasSize:[t?Math.min(t,Zr):Zr,n?Math.min(n,Zr):Zr]};let s;const o=new Promise(i=>s=i);return{name:ew,getOptions(){const{quality:i,enableManualSnapshot:a,maxCanvasSize:c}=r;return{enableManualSnapshot:a,recordCanvas:!0,getCanvasManager:u=>{const d=new Q0({...u,enableManualSnapshot:a,maxCanvasSize:c,errorHandler:l=>{try{typeof l=="object"&&(l.__rrweb__=!0)}catch{}}});return s(d),d},...ru[i]||ru.medium}},async snapshot(i){(await o).snapshot(i)}}}),u1=tw,Qe=L,ee=Qe.document,er=Qe.navigator,hf="Report a Bug",nw="Cancel",rw="Send Bug Report",sw="Confirm",ow="Report a Bug",iw="[email protected]",aw="Email",cw="What's the bug? What did you expect?",uw="Description",lw="Your Name",dw="Name",fw="Thank you for your report!",pw="(required)",hw="Add a screenshot",mw="Remove screenshot",gw="widget",_w="api",yw=5e3,Sw=(e,t={includeReplay:!0})=>{if(!e.message)throw new Error("Unable to submit feedback with empty message");const n=R();if(!n)throw new Error("No client setup, cannot send feedback.");e.tags&&Object.keys(e.tags).length&&W().setTags(e.tags);const r=Zg({source:_w,url:xi(),...e},t);return new Promise((s,o)=>{const i=setTimeout(()=>o("Unable to determine if Feedback was correctly sent."),5e3),a=n.on("afterSendEvent",(c,u)=>{if(c.event_id===r)return clearTimeout(i),a(),u&&typeof u.statusCode=="number"&&u.statusCode>=200&&u.statusCode<300?s(r):u&&typeof u.statusCode=="number"&&u.statusCode===0?o("Unable to send Feedback. This is because of network issues, or because you are using an ad-blocker."):u&&typeof u.statusCode=="number"&&u.statusCode===403?o("Unable to send Feedback. This could be because this domain is not in your list of allowed domains."):o("Unable to send Feedback. This could be because of network issues, or because you are using an ad-blocker")})})},ls=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;function bw(){return!(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(er.userAgent)||/Macintosh/i.test(er.userAgent)&&er.maxTouchPoints&&er.maxTouchPoints>1||!isSecureContext)}function Qr(e,t){return{...e,...t,tags:{...e.tags,...t.tags},onFormOpen:()=>{t.onFormOpen&&t.onFormOpen(),e.onFormOpen&&e.onFormOpen()},onFormClose:()=>{t.onFormClose&&t.onFormClose(),e.onFormClose&&e.onFormClose()},onSubmitSuccess:n=>{t.onSubmitSuccess&&t.onSubmitSuccess(n),e.onSubmitSuccess&&e.onSubmitSuccess(n)},onSubmitError:n=>{t.onSubmitError&&t.onSubmitError(n),e.onSubmitError&&e.onSubmitError(n)},onFormSubmitted:()=>{t.onFormSubmitted&&t.onFormSubmitted(),e.onFormSubmitted&&e.onFormSubmitted()},themeDark:{...e.themeDark,...t.themeDark},themeLight:{...e.themeLight,...t.themeLight}}}function Ew(e){const t=ee.createElement("style");return t.textContent=`
33.widget__actor {
34  position: fixed;
35  z-index: var(--z-index);
36  margin: var(--page-margin);
37  inset: var(--actor-inset);
38
39  display: flex;
40  align-items: center;
41  gap: 8px;
42  padding: 16px;
43
44  font-family: inherit;
45  font-size: var(--font-size);
46  font-weight: 600;
47  line-height: 1.14em;
48  text-decoration: none;
49
50  background: var(--actor-background, var(--background));
51  border-radius: var(--actor-border-radius, 1.7em/50%);
52  border: var(--actor-border, var(--border));
53  box-shadow: var(--actor-box-shadow, var(--box-shadow));
54  color: var(--actor-color, var(--foreground));
55  fill: var(--actor-color, var(--foreground));
56  cursor: pointer;
57  opacity: 1;
58  transition: transform 0.2s ease-in-out;
59  transform: translate(0, 0) scale(1);
60}
61.widget__actor[aria-hidden="true"] {
62  opacity: 0;
63  pointer-events: none;
64  visibility: hidden;
65  transform: translate(0, 16px) scale(0.98);
66}
67
68.widget__actor:hover {
69  background: var(--actor-hover-background, var(--background));
70  filter: var(--interactive-filter);
71}
72
73.widget__actor svg {
74  width: 1.14em;
75  height: 1.14em;
76}
77
78@media (max-width: 600px) {
79  .widget__actor span {
80    display: none;
81  }
82}
83`,e&&t.setAttribute("nonce",e),t}function Le(e,t){return Object.entries(t).forEach(([n,r])=>{e.setAttributeNS(null,n,r)}),e}const Sn=20,vw="http://www.w3.org/2000/svg";function ww(){const e=a=>Qe.document.createElementNS(vw,a),t=Le(e("svg"),{width:`${Sn}`,height:`${Sn}`,viewBox:`0 0 ${Sn} ${Sn}`,fill:"var(--actor-color, var(--foreground))"}),n=Le(e("g"),{clipPath:"url(#clip0_57_80)"}),r=Le(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);const s=e("defs"),o=Le(e("clipPath"),{id:"clip0_57_80"}),i=Le(e("rect"),{width:`${Sn}`,height:`${Sn}`,fill:"white"});return o.appendChild(i),s.appendChild(o),t.appendChild(s).appendChild(o).appendChild(i),t}function Iw({triggerLabel:e,triggerAriaLabel:t,shadow:n,styleNonce:r}){const s=ee.createElement("button");if(s.type="button",s.className="widget__actor",s.ariaHidden="false",s.ariaLabel=t||e||hf,s.appendChild(ww()),e){const i=ee.createElement("span");i.appendChild(ee.createTextNode(e)),s.appendChild(i)}const o=Ew(r);return{el:s,appendToDom(){n.appendChild(o),n.appendChild(s)},removeFromDom(){n.removeChild(s),n.removeChild(o)},show(){s.ariaHidden="false"},hide(){s.ariaHidden="true"}}}const mf="rgba(88, 74, 192, 1)",Tw={foreground:"#2b2233",background:"#ffffff",accentForeground:"white",accentBackgroun
83d:mf,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%)"},su={foreground:"#ebe6ef",background:"#29232f",accentForeground:"white",accentBackground:mf,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 ou(e){return`
84  --foreground: ${e.foreground};
85  --background: ${e.background};
86  --accent-foreground: ${e.accentForeground};
87  --accent-background: ${e.accentBackground};
88  --success-color: ${e.successColor};
89  --error-color: ${e.errorColor};
90  --border: ${e.border};
91  --box-shadow: ${e.boxShadow};
92  --outline: ${e.outline};
93  --interactive-filter: ${e.interactiveFilter};
94  `}function kw({colorScheme:e,themeDark:t,themeLight:n,styleNonce:r}){const s=ee.createElement("style");return s.textContent=`
95:host {
96  --font-family: system-ui, 'Helvetica Neue', Arial, sans-serif;
97  --font-size: 14px;
98  --z-index: 100000;
99
100  --page-margin: 16px;
101  --inset: auto 0 0 auto;
102  --actor-inset: var(--inset);
103
104  font-family: var(--font-family);
105  font-size: var(--font-size);
106
107  ${e!=="system"?"color-scheme: only light;":""}
108
109  ${ou(e==="dark"?{...su,...t}:{...Tw,...n})}
110}
111
112${e==="system"?`
113@media (prefers-color-scheme: dark) {
114  :host {
115    ${ou({...su,...t})}
116  }
117}`:""}
118}
119`,r&&s.setAttribute("nonce",r),s}const gf=({lazyLoadIntegration:e,getModalIntegration:t,getScreenshotIntegration:n})=>(({id:s="sentry-feedback",autoInject:o=!0,showBranding:i=!0,isEmailRequired:a=!1,isNameRequired:c=!1,showEmail:u=!0,showName:d=!0,enableScreenshot:l=!0,useSentryUser:f={email:"email",name:"username"},tags:p,styleNonce:h,scriptNonce:m,colorScheme:b="system",themeLight:y={},themeDark:w={},addScreenshotButtonLabel:C=hw,cancelButtonLabel:M=nw,confirmButtonLabel:_=sw,emailLabel:v=aw,emailPlaceholder:x=iw,formTitle:A=ow,isRequiredLabel:g=pw,messageLabel:E=uw,messagePlaceholder:k=cw,nameLabel:I=dw,namePlaceholder:B=lw,removeScreenshotButtonLabel:V=mw,submitButtonLabel:z=rw,successMessageText:O=fw,triggerLabel:ce=hf,triggerAriaLabel:F="",onFormOpen:te,onFormClose:ke,onSubmitSuccess:je,onSubmitError:Yt,onFormSubmitted:hn}={})=>{const qe={id:s,autoInject:o,showBranding:i,isEmailRequired:a,isNameRequired:c,showEmail:u,showName:d,enableScreenshot:l,useSentryUser:f,tags:p,styleNonce:h,scriptNonce:m,colorScheme:b,themeDark:w,themeLight:y,triggerLabel:ce,triggerAriaLabel:F,cancelButtonLabel:M,submitButtonLabel:z,confirmButtonLabel:_,formTitle:A,emailLabel:v,emailPlaceholder:x,messageLabel:E,messagePlaceholder:k,nameLabel:I,namePlaceholder:B,successMessageText:O,isRequiredLabel:g,addScreenshotButtonLabel:C,removeScreenshotButtonLabel:V,onFormClose:ke,onFormOpen:te,onSubmitError:Yt,onSubmitSuccess:je,onFormSubmitted:hn};let $e=null,st=[];const mn=se=>{if(!$e){const ve=ee.createElement("div");ve.id=String(se.id),ee.body.appendChild(ve),$e=ve.attachShadow({mode:"open"}),$e.appendChild(kw(se))}return $e},gn=async se=>{const ve=se.enableScreenshot&&bw();let Ge,ge;try{Ge=(t?t():await e("feedbackModalIntegration",m))(),Za(Ge)}catch{throw ls&&S.error("[Feedback] Error when trying to load feedback integrations. Try using `feedbackSyncIntegration` in your `Sentry.init`."),new Error("[Feedback] Missing feedback modal integration!")}try{const Ue=ve?n?n():await e("feedbackScreenshotIntegration",m):void 0;Ue&&(ge=Ue(),Za(ge))}catch{ls&&S.error("[Feedback] Missing feedback screenshot integration. Proceeding without screenshots.")}const ue=Ge.createDialog({options:{...se,onFormClose:()=>{ue&&ue.close(),se.onFormClose&&se.onFormClose()},onFormSubmitted:()=>{ue&&ue.close(),se.onFormSubmitted&&se.onFormSubmitted()}},screenshotIntegration:ge,sendFeedback:Sw,shadow:mn(se)});return ue},Jn=(se,ve={})=>{const Ge=Qr(qe,ve),ge=typeof se=="string"?ee.querySelector(se):typeof se.addEventListener=="function"?se:null;if(!ge)throw ls&&S.error("[Feedback] Unable to attach to target element"),new Error("Unable to attach to target element");let ue=null;const Ue=async()=>
119{ue||(ue=await gn({...Ge,onFormSubmitted:()=>{ue&&ue.removeFromDom(),Ge.onFormSubmitted&&Ge.onFormSubmitted()}})),ue.appendToDom(),ue.open()};ge.addEventListener("click",Ue);const Xt=()=>{st=st.filter(_n=>_n!==Xt),ue&&ue.removeFromDom(),ue=null,ge.removeEventListener("click",Ue)};return st.push(Xt),Xt},vt=(se={})=>{const ve=Qr(qe,se),Ge=mn(ve),ge=Iw({triggerLabel:ve.triggerLabel,triggerAriaLabel:ve.triggerAriaLabel,shadow:Ge,styleNonce:h});return Jn(ge.el,{...ve,onFormOpen(){ge.hide()},onFormClose(){ge.show()},onFormSubmitted(){ge.show()}}),ge};return{name:"Feedback",setupOnce(){!ni()||!qe.autoInject||(ee.readyState==="loading"?ee.addEventListener("DOMContentLoaded",()=>vt().appendToDom()):vt().appendToDom())},attachTo:Jn,createWidget(se={}){const ve=vt(Qr(qe,se));return ve.appendToDom(),ve},async createForm(se={}){return gn(Qr(qe,se))},remove(){$e&&($e.parentElement&&$e.parentElement.remove(),$e=null),st.forEach(se=>se()),st=[]}}});function l1(){const e=R();return e&&e.getIntegrationByName("Feedback")}var io,re,_f,Qt,iu,yf,bi,hr={},_a=[],Cw=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,ya=Array.isArray;function Mt(e,t){for(var n in t)e[n]=t[n];return e}function Sf(e){var t=e.parentNode;t&&t.removeChild(e)}function q(e,t,n){var r,s,o,i={};for(o in t)o=="key"?r=t[o]:o=="ref"?s=t[o]:i[o]=t[o];if(arguments.length>2&&(i.children=arguments.length>3?io.call(arguments,2):n),typeof e=="function"&&e.defaultProps!=null)for(o in e.defaultProps)i[o]===void 0&&(i[o]=e.defaultProps[o]);return ds(e,i,r,s,null)}function ds(e,t,n,r,s){var o={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:s??++_f,__i:-1,__u:0};return s==null&&re.vnode!=null&&re.vnode(o),o}function Mr(e){return e.children}function fs(e,t){this.props=e,this.context=t}function Wn(e,t){if(t==null)return e.__?Wn(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"?Wn(e):null}function xw(e,t,n){var r,s=e.__v,o=s.__e,i=e.__P;if(i)return(r=Mt({},s)).__v=s.__v+1,re.vnode&&re.vnode(r),Sa(i,r,s,e.__n,i.ownerSVGElement!==void 0,32&s.__u?[o]:null,t,o??Wn(s),!!(32&s.__u),n),r.__.__k[r.__i]=r,r.__d=void 0,r.__e!=o&&bf(r),r}function bf(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 bf(e)}}function au(e){(!e.__d&&(e.__d=!0)&&Qt.push(e)&&!Bs.__r++||iu!==re.debounceRendering)&&((iu=re.debounceRendering)||yf)(Bs)}function Bs(){var e,t,n,r=[],s=[];for(Qt.sort(bi);e=Qt.shift();)e.__d&&(n=Qt.length,t=xw(e,r,s)||t,n===0||Qt.length>n?(Ei(r,t,s),s.length=r.length=0,t=void 0,Qt.sort(bi)):t&&re.__c&&re.__c(t,_a));t&&Ei(r,t,s),Bs.__r=0}function Ef(e,t,n,r,s,o,i,a,c,u,d){var l,f,p,h,m,b=r&&r.__k||_a,y=t.length;for(n.__d=c,Rw(n,t,b),c=n.__d,l=0;l<y;l++)(p=n.__k[l])!=null&&typeof p!="boolean"&&typeof p!="function"&&(f=p.__i===-1?hr:b[p.__i]||hr,p.__i=l,Sa(e,p,f,s,o,i,a,c,u,d),h=p.__e,p.ref&&f.ref!=p.ref&&(f.ref&&ba(f.ref,null,p),d.push(p.ref,p.__c||h,p)),m==null&&h!=null&&(m=h),65536&p.__u||f.__k===p.__k?c=vf(p,c,e):typeof p.type=="function"&&p.__d!==void 0?c=p.__d:h&&(c=h.nextSibling),p.__d=void 0,p.__u&=-196609);n.__d=c,n.__e=m}function Rw(e,t,n){var r,s,o,i,a,c=t.length,u=n.length,d=u,l=0;for(e.__k=[],r=0;r<c;r++)(s=e.__k[r]=(s=t[r])==null||typeof s=="boolean"||typeof s=="function"?null:typeof s=="string"||typeof s=="number"||typeof s=="bigint"||s.constructor==String?ds(null,s,null,null,s):ya(s)?ds(Mr,{children:s},null,null,null):s.constructor===void 0&&s.__b>0?ds(s.type,s.props,s.key,s.ref?s.ref:null,s.__v):s)!=null?(s.__=e,s.__b=e.__b+1,a=Mw(s,n,i=r+l,d),s.__i=a,o=null,a!==-1&&(d--,(o=n[a])&&(o.__u|=131072)),o==null||o.__v===null?(a==-1&&l--,typeof s.type!="function"&&(s.__u|=65536)):a!==i&&(a===i+1?l++:a>i?d>c-i?l+=a-i:l--:l=a<i&&a==i-1?a-i:0,a!==r+l&&(s.__u|=65536))):(o=n[r])&&o.key==null&&o.__e&&(o.__e==e.__d&&(e.__d=Wn(o)),vi(o,o,!1),n[r]=null,d--);if(d)for(r=0;r<u;r++)(o=n[r])!=null&&(131072&o.__u)==0&&(o.__e==e.__d&&(e.__d=Wn(o)),vi(o,o))}function vf(e,t,n){var r,s;if(typeof e.type=="function"){for(r=e.__k,s=0;r&&s<r.length;s++)r[s]&&(r[s].__=e,t=vf(r[s],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 Mw(e,t,n,r){var s=e.key,o=e.type,i=n-1,a=n+1,c=t[n];if(c===null||c&&s==c.key&&o===c.type)return n;if(r>(c!=null&&(131072&c.__u)==0?1:0))for(;i>=0||a<t.length;){if(i>=0){if((c=t[i])&&(131072&c.__u)==0&&s==c.key&&o===c.type)return i;i--}
vendor: 4,993 bytes, line 119
119if(a<t.length){if((c=t[a])&&(131072&c.__u)==0&&s==c.key&&o===c.type)return a;a++}}return-1}function cu(e,t,n){t[0]==="-"?e.setProperty(t,n??""):e[t]=n==null?"":typeof n!="number"||Cw.test(t)?n:n+"px"}function es(e,t,n,r,s){var o;e: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||cu(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||cu(e.style,t,n[t])}else if(t[0]==="o"&&t[1]==="n")o=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+o]=n,n?r?n.u=r.u:(n.u=Date.now(),e.addEventListener(t,o?lu:uu,o)):e.removeEventListener(t,o?lu:uu,o);else{if(s)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 e}catch{}typeof n=="function"||(n==null||n===!1&&t[4]!=="-"?e.removeAttribute(t):e.setAttribute(t,n))}}function uu(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(re.event?re.event(e):e)}}function lu(e){if(this.l)return this.l[e.type+!0](re.event?re.event(e):e)}function Sa(e,t,n,r,s,o,i,a,c,u){var d,l,f,p,h,m,b,y,w,C,M,_,v,x,A,g=t.type;if(t.constructor!==void 0)return null;128&n.__u&&(c=!!(32&n.__u),o=[a=t.__e=n.__e]),(d=re.__b)&&d(t);e:if(typeof g=="function")try{if(y=t.props,w=(d=g.contextType)&&r[d.__c],C=d?w?w.props.value:d.__:r,n.__c?b=(l=t.__c=n.__c).__=l.__E:("prototype"in g&&g.prototype.render?t.__c=l=new g(y,C):(t.__c=l=new fs(y,C),l.constructor=g,l.render=Ow),w&&w.sub(l),l.props=y,l.state||(l.state={}),l.context=C,l.__n=r,f=l.__d=!0,l.__h=[],l._sb=[]),l.__s==null&&(l.__s=l.state),g.getDerivedStateFromProps!=null&&(l.__s==l.state&&(l.__s=Mt({},l.__s)),Mt(l.__s,g.getDerivedStateFromProps(y,l.__s))),p=l.props,h=l.state,l.__v=t,f)g.getDerivedStateFromProps==null&&l.componentWillMount!=null&&l.componentWillMount(),l.componentDidMount!=null&&l.__h.push(l.componentDidMount);else{if(g.getDerivedStateFromProps==null&&y!==p&&l.componentWillReceiveProps!=null&&l.componentWillReceiveProps(y,C),!l.__e&&(l.shouldComponentUpdate!=null&&l.shouldComponentUpdate(y,l.__s,C)===!1||t.__v===n.__v)){for(t.__v!==n.__v&&(l.props=y,l.state=l.__s,l.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.forEach(function(E){E&&(E.__=t)}),M=0;M<l._sb.length;M++)l.__h.push(l._sb[M]);l._sb=[],l.__h.length&&i.push(l);break e}l.componentWillUpdate!=null&&l.componentWillUpdate(y,l.__s,C),l.componentDidUpdate!=null&&l.__h.push(function(){l.componentDidUpdate(p,h,m)})}if(l.context=C,l.props=y,l.__P=e,l.__e=!1,_=re.__r,v=0,"prototype"in g&&g.prototype.render){for(l.state=l.__s,l.__d=!1,_&&_(t),d=l.render(l.props,l.state,l.context),x=0;x<l._sb.length;x++)l.__h.push(l._sb[x]);l._sb=[]}else do l.__d=!1,_&&_(t),d=l.render(l.props,l.state,l.context),l.state=l.__s;while(l.__d&&++v<25);l.state=l.__s,l.getChildContext!=null&&(r=Mt(Mt({},r),l.getChildContext())),f||l.getSnapshotBeforeUpdate==null||(m=l.getSnapshotBeforeUpdate(p,h)),Ef(e,ya(A=d!=null&&d.type===Mr&&d.key==null?d.props.children:d)?A:[A],t,n,r,s,o,i,a,c,u),l.base=t.__e,t.__u&=-161,l.__h.length&&i.push(l),b&&(l.__E=l.__=null)}catch(E){t.__v=null,c||o!=null?(t.__e=a,t.__u|=c?160:32,o[o.indexOf(a)]=null):(t.__e=n.__e,t.__k=n.__k),re.__e(E,t,n)}else o==null&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=Aw(n.__e,t,n,r,s,o,i,c,u);(d=re.diffed)&&d(t)}function Ei(e,t,n){for(var r=0;r<n.length;r++)ba(n[r],n[++r],n[++r]);re.__c&&re.__c(t,e),e.some(function(s){try{e=s.__h,s.__h=[],e.some(function(o){o.call(s)})}catch(o){re.__e(o,s.__v)}})}function Aw(e,t,n,r,s,o,i,a,c){var u,d,l,f,p,h,m,b=n.props,y=t.props,w=t.type;if(w==="svg"&&(s=!0),o!=null){for(u=0;u<o.length;u++)if((p=o[u])&&"setAttribute"in p==!!w&&(w?p.localName===w:p.nodeType===3)){e=p,o[u]=null;break}}if(e==null){if(w===null)return document.createTextNode(y);e=s?document.createElementNS("http://www.w3.org/2000/svg",w):document.createElement(w,y.is&&y),o=null,a=!1}if(w===null)b===y||a&&e.data===y||(e.data=y);else{if(o=o&&io.call(e.childNodes),b=n.props||hr,!a&&o!=null)for(b={},u=0;u<e.attributes.length;u++)b[(p=e.attributes[u]).name]=p.value;for(u in b)p=b[u],u=="children"||(u=="dangerouslySetInnerHTML"?l=p:u==="key"||u in y||es(e,u,null,p,s));for(u in y)p=y[u],u=="children"?f=p:u=="dangerouslySetInnerHTML"?d=p:u=="value"?h=p:u=="checked"?m=p:u==="key"||a&&typeof p!="function"||b[u]===p||es(e,u,p,b[u],s);if(d)a||l&&(d.__html===l.__html||d.__html===e.innerHTML)||(e.innerHTML=d.__html),t.__k=[];else if(l&&(e.innerHTML=""),Ef(e,ya(f)?f:[f],t,n,r,s&&w!=="foreignObject",o,i,o?o[0]:n.__k&&Wn(n,0),a,c),o!=null)for(u=o.length;u--;)o[u]!=null&&Sf(o[u]);a||(u="value",h!==void 0&&(h!==e[u]||w==="progress"&&!h||w==="option"&&h!==b[u])&&es(e,u,h,b[u],!1),u="checked",m!==void 0&&m!==e[u]&&es(e,u,m,b[u],!1))}return e}function ba(e,t,n){try{typeof e=="function"?e(t):e.current=t}catch(r){re.__e(r,n)}}
119function vi(e,t,n){var r,s;if(re.unmount&&re.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||ba(r,null,t)),(r=e.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(o){re.__e(o,t)}r.base=r.__P=null,e.__c=void 0}if(r=e.__k)for(s=0;s<r.length;s++)r[s]&&vi(r[s],t,n||typeof e.type!="function");n||e.__e==null||Sf(e.__e),e.__=e.__e=e.__d=void 0}function Ow(e,t,n){return this.constructor(e,n)}function Nw(e,t,n){var r,s,o,i;re.__&&re.__(e,t),s=(r=!1)?null:t.__k,o=[],i=[],Sa(t,e=t.__k=q(Mr,null,[e]),s||hr,hr,t.ownerSVGElement!==void 0,s?null:t.firstChild?io.call(t.childNodes):null,o,s?s.__e:t.firstChild,r,i),e.__d=void 0,Ei(o,e,i)}io=_a.slice,re={__e:function(e,t,n,r){for(var s,o,i;t=t.__;)if((s=t.__c)&&!s.__)try{if((o=s.constructor)&&o.getDerivedStateFromError!=null&&(s.setState(o.getDerivedStateFromError(e)),i=s.__d),s.componentDidCatch!=null&&(s.componentDidCatch(e,r||{}),i=s.__d),i)return s.__E=s}catch(a){e=a}throw e}},_f=0,fs.prototype.setState=function(e,t){var n;n=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=Mt({},this.state),typeof e=="function"&&(e=e(Mt({},n),this.props)),e&&Mt(n,e),e!=null&&this.__v&&(t&&this._sb.push(t),au(this))},fs.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),au(this))},fs.prototype.render=Mr,Qt=[],yf=typeof Promise=="function"?Promise.prototype.then.bind(Prom
119ise.resolve()):setTimeout,bi=function(e,t){return e.__v.__b-t.__v.__b},Bs.__r=0;var yt,ne,Ao,du,zn=0,wf=[],ps=[],de=re,fu=de.__b,pu=de.__r,hu=de.diffed,mu=de.__c,gu=de.unmount,_u=de.__;function pn(e,t){de.__h&&de.__h(ne,e,zn||t),zn=0;var n=ne.__H||(ne.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({__V:ps}),n.__[e]}function Rn(e){return zn=1,If(kf,e)}function If(e,t,n){var r=pn(yt++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):kf(void 0,t),function(a){var c=r.__N?r.__N[0]:r.__[0],u=r.t(c,a);c!==u&&(r.__N=[u,r.__[1]],r.__c.setState({}))}],r.__c=ne,!ne.u)){var s=function(a,c,u){if(!r.__c.__H)return!0;var d=r.__c.__H.__.filter(function(f){return!!f.__c});if(d.every(function(f){return!f.__N}))return!o||o.call(this,a,c,u);var l=!1;return d.forEach(function(f){if(f.__N){var p=f.__[0];f.__=f.__N,f.__N=void 0,p!==f.__[0]&&(l=!0)}}),!(!l&&r.__c.props===a)&&(!o||o.call(this,a,c,u))};ne.u=!0;var o=ne.shouldComponentUpdate,i=ne.componentWillUpdate;ne.componentWillUpdate=function(a,c,u){if(this.__e){var d=o;o=void 0,s(a,c,u),o=d}i&&i.call(this,a,c,u)},ne.shouldComponentUpdate=s}return r.__N||r.__}function Dw(e,t){var n=pn(yt++,3);!de.__s&&Ea(n.__H,t)&&(n.__=e,n.i=t,ne.__H.__h.push(n))}function Tf(e,t){var n=pn(yt++,4);!de.__s&&Ea(n.__H,t)&&(n.__=e,n.i=t,ne.__h.push(n))}function Pw(e){return zn=5,Ar(function(){return{current:e}},[])}function Lw(e,t,n){zn=6,Tf(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 Ar(e,t){var n=pn(yt++,7);return Ea(n.__H,t)?(n.__V=e(),n.i=t,n.__h=e,n.__V):n.__}function Mn(e,t){return zn=8,Ar(function(){return e},t)}function Fw(e){var t=ne.context[e.__c],n=pn(yt++,9);return n.c=e,t?(n.__==null&&(n.__=!0,t.sub(ne)),t.props.value):e.__}function $w(e,t){de.useDebugValue&&de.useDebugValue(t?t(e):e)}function Uw(e){var t=pn(yt++,10),n=Rn();return t.__=e,ne.componentDidCatch||(ne.componentDidCatch=function(r,s){t.__&&t.__(r,s),n[1](r)}),[n[0],function(){n[1](void 0)}]}function Bw(){var e=pn(yt++,11);if(!e.__){for(var t=ne.__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 Hw(){for(var e;e=wf.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(hs),e.__H.__h.forEach(wi),e.__H.__h=[]}catch(t){e.__H.__h=[],de.__e(t,e.__v)}}de.__b=function(e){ne=null,fu&&fu(e)},de.__=function(e,t){t.__k&&t.__k.__m&&(e.__m=t.__k.__m),_u&&_u(e,t)},de.__r=function(e){pu&&pu(e),yt=0;var t=(ne=e.__c).__H;t&&(Ao===ne?(t.__h=[],ne.__h=[],t.__.forEach(function(n){n.__N&&(n.__=n.__N),n.__V=ps,n.__N=n.i=void 0})):(t.__h.forEach(hs),t.__h.forEach(wi),t.__h=[],yt=0)),Ao=ne},de.diffed=function(e){hu&&hu(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(wf.push(t)!==1&&du===de.requestAnimationFrame||((du=de.requestAnimationFrame)||Ww)(Hw)),t.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.__V!==ps&&(n.__=n.__V),n.i=void 0,n.__V=ps})),Ao=ne=null},de.__c=function(e,t){t.some(function(n){try{n.__h.forEach(hs),n.__h=n.__h.filter(function(r){return!r.__||wi(r)})}catch(r){t.some(function(s){s.__h&&(s.__h=[])}),t=[],de.__e(r,n.__v)}}),mu&&mu(e,t)},de.unmount=function(e){gu&&gu(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(r){try{hs(r)}catch(s){t=s}}),n.__H=void 0,t&&de.__e(t,n.__v))};var yu=typeof requestAnimationFrame=="function";function Ww(e){var t,n=function(){clearTimeout(r),yu&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);yu&&(t=requestAnimationFrame(n))}function hs(e){var t=ne,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),ne=t}function wi(e){var t=ne;e.__c=e.__(),ne=t}function Ea(e,t){return!e||e.length!==t.length||t.some(function(n,r){return n!==e[r]})}function kf(e,t){return typeof t=="function"?t(e):t}const zw={__proto__:null,useCallback:Mn,useContext:Fw,useDebugValue:$w,useEffect:Dw,useErrorBoundary:Uw,useId:Bw,useImperativeHandle:Lw,useLayoutEffect:Tf,useMemo:Ar,useReducer:If,useRef:Pw,useState:Rn},jw="http://www.w3.org/2000/svg";function qw(){const e=r=>ee.createElementNS(jw,r),t=Le(e("svg"),{width:"32",height:"30",viewBox:"0 0 72 66",fill:"inherit"}),n=Le(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 Gw({options:e}){const t=Ar(()=>({__html:qw().outerHTML}),[]);return q("h2",{class:"dialog__header"},q("span",{class:"dialog__title"},e.formTitle),e.showBranding?q("a",{class:"brand-link",target:"_blank",href:"https://sentry.io/welcome/",title:"Powered by Sentry",rel:"noopener noreferrer",dangerouslySetInnerHTML:t}):null)}function Vw(e,t){const 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 Oo(e,t){const n=e.get(t);return typeof n=="string"?n.trim():""}function Yw({options:e,defaultEmail:t,defaultName:n,onFormClose:r,onSubmit:s,onSubmitSuccess:o,onSubmitError:i,showEmail
119:a,showName:c,screenshotInput:u}){const{tags:d,addScreenshotButtonLabel:l,removeScreenshotButtonLabel:f,cancelButtonLabel:p,emailLabel:h,emailPlaceholder:m,isEmailRequired:b,isNameRequired:y,messageLabel:w,messagePlaceholder:C,nameLabel:M,namePlaceholder:_,submitButtonLabel:v,isRequiredLabel:x}=e,[A,g]=Rn(null),[E,k]=Rn(!1),I=u&&u.input,[B,V]=Rn(null),z=Mn(F=>{V(F),k(!1)},[]),O=Mn(F=>{const te=Vw(F,{emailLabel:h,isEmailRequired:b,isNameRequired:y,messageLabel:w,nameLabel:M});return te.length>0?g(`Please enter in the following required fields: ${te.join(", ")}`):g(null),te.length===0},[h,b,y,w,M]),ce=Mn(async F=>{try{if(F.preventDefault(),!(F.target instanceof HTMLFormElement))return;const te=new FormData(F.target),ke=await(u&&E?u.value():void 0),je={name:Oo(te,"name"),email:Oo(te,"email"),message:Oo(te,"message"),attachments:ke?[ke]:void 0};if(!O(je))return;try{await s({name:je.name,email:je.email,message:je.message,source:gw,tags:d},{attachments:je.attachments}),o(je)}catch(Yt){ls&&S.error(Yt),g(Yt),i(Yt)}}catch{}},[u&&E,o,i]);return q("form",{class:"form",onSubmit:ce},I&&E?q(I,{onError:z}):null,q("div",{class:"form__right","data-sentry-feedback":!0},q("div",{class:"form__top"},A?q("div",{class:"form__error-container"},A):null,c?q("label",{for:"name",class:"form__label"},q(No,{label:M,isRequiredLabel:x,isRequired:y}),q("input",{class:"form__input",defaultValue:n,id:"name",name:"name",placeholder:_,required:y,type:"text"})):q("input",{"aria-hidden":!0,value:n,name:"name",type:"hidden"}),a?q("label",{for:"email",class:"form__label"},q(No,{label:h,isRequiredLabel:x,isRequired:b}),q("input",{class:"form__input",defaultValue:t,id:"email",name:"email",placeholder:m,required:b,type:"email"})):q("input",{"aria-hidden":!0,value:t,name:"email",type:"hidden"}),q("label",{for:"message",class:"form__label"},q(No,{label:w,isRequiredLabel:x,isRequired:!0}),q("textarea",{autoFocus:!0,class:"form__input form__input--textarea",id:"message",name:"message",placeholder:C,required:!0,rows:5})),I?q("label",{for:"screenshot",class:"form__label"},q("button",{class:"btn btn--default",type:"button",onClick:()=>{V(null),k(F=>!F)}},E?f:l),B?q("div",{class:"form__error-container"},B.message):null):null),q("div",{class:"btn-group"},q("button",{class:"btn btn--primary",type:"submit"},v),q("button",{class:"btn btn--default",type:"button",onClick:r},p))))}function No({label:e,isRequired:t,isRequiredLabel:n}){return q("span",{class:"form__label__text"},e,t&&q("span",{class:"form__label__text--required"},n))}const ts=16,Su=17,Xw="http://www.w3.org/2000/svg";function Kw(){const e=c=>Qe.document.createElementNS(Xw,c),t=Le(e("svg"),{width:`${ts}`,height:`${Su}`,viewBox:`0 0 ${ts} ${Su}`,fill:"inherit"}),n=Le(e("g"),{clipPath:"url(#clip0_57_156)"}),r=Le(e("path"),{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M3.55544 15.1518C4.87103 16.0308 6.41775 16.5 8 16.5C10.1217 16.5 12.1566 15.6571 13.6569 14.1569C15.1571 12.6566 16 10.6217 16 8.5C16 6.91775 15.5308 5.37103 14.6518 4.05544C13.7727 2.73985 12.5233 1.71447 11.0615 1.10897C9.59966 0.503466 7.99113 0.34504 6.43928 0.653721C4.88743 0.962403 3.46197 1.72433 2.34315 2.84315C1.22433 3.96197 0.462403 5.38743 0.153721 6.93928C-0.15496 8.49113 0.00346625 10.0997 0.608967 11.5615C1.21447 13.0233 2.23985 14.2727 3.55544 15.1518ZM4.40546 3.1204C5.46945 2.40946 6.72036 2.03 8 2.03C9.71595 2.03 11.3616 2.71166 12.575 3.92502C13.7883 5.13838 14.47 6.78405 14.47 8.5C14.47 9.77965 14.0905 11.0306 13.3796 12.0945C12.6687 13.1585 11.6582 13.9878 10.476 14.4775C9.29373 14.9672 7.99283 15.0953 6.73777 14.8457C5.48271 14.596 4.32987 13.9798 3.42502 13.075C2.52018 12.1701 1.90397 11.0173 1.65432 9.76224C1.40468 8.50718 1.5328 7.20628 2.0225 6.02404C2.5122 4.8418 3.34148 3.83133 4.40546 3.1204Z"}),s=Le(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 
11910.77 4.79999L6.88 10.57L5.13 8.56999C5.06508 8.49566 4.98613 8.43488 4.89768 8.39111C4.80922 8.34735 4.713 8.32148 4.61453 8.31498C4.51605 8.30847 4.41727 8.32147 4.32382 8.35322C4.23038 8.38497 4.14413 8.43484 4.07 8.49999C3.92511 8.63217 3.83692 8.81523 3.82387 9.01092C3.81083 9.2066 3.87393 9.39976 4 9.54999L6.43 12.24C6.50187 12.3204 6.58964 12.385 6.68775 12.4297Z"});t.appendChild(n).append(s,r);const o=e("defs"),i=Le(e("clipPath"),{id:"clip0_57_156"}),a=Le(e("rect"),{width:`${ts}`,height:`${ts}`,fill:"white",transform:"translate(0 0.5)"});return i.appendChild(a),o.appendChild(i),t.appendChild(o).appendChild(i).appendChild(a),t}function Jw({open:e,onFormSubmitted:t,...n}){const r=n.options,s=Ar(()=>({__html:Kw().outerHTML}),[]),[o,i]=Rn(null),a=Mn(()=>{o&&(clearTimeout(o),i(null)),t()},[o]),c=Mn(u=>{n.onSubmitSuccess(u),i(setTimeout(()=>{t(),i(null)},yw))},[t]);return q(Mr,null,o?q("div",{class:"success__position",onClick:a},q("div",{class:"success__content"},r.successMessageText,q("span",{class:"success__icon",dangerouslySetInnerHTML:s}))):q("dialog",{class:"dialog",onClick:r.onFormClose,open:e},q("div",{class:"dialog__position"},q("div",{class:"dialog__content",onClick:u=>{u.stopPropagation()}},q(Gw,{options:r}),q(Yw,{...n,onSubmitSuccess:c})))))}const Zw=`
120.dialog {
121  position: fixed;
122  z-index: var(--z-index);
123  margin: 0;
124  inset: 0;
125
126  display: flex;
127  align-items: center;
128  justify-content: center;
129  padding: 0;
130  height: 100vh;
131  width: 100vw;
132
133  color: var(--dialog-color, var(--foreground));
134  fill: var(--dialog-color, var(--foreground));
135  line-height: 1.75em;
136
137  background-color: rgba(0, 0, 0, 0.05);
138  border: none;
139  inset: 0;
140  opacity: 1;
141  transition: opacity 0.2s ease-in-out;
142}
143
144.dialog__position {
145  position: fixed;
146  z-index: var(--z-index);
147  inset: var(--dialog-inset);
148  padding: var(--page-margin);
149  display: flex;
150  max-height: calc(100vh - (2 * var(--page-margin)));
151}
152@media (max-width: 600px) {
153  .dialog__position {
154    inset: var(--page-margin);
155    padding: 0;
156  }
157}
158
159.dialog__position:has(.editor) {
160  inset: var(--page-margin);
161  padding: 0;
162}
163
164.dialog:not([open]) {
165  opacity: 0;
166  pointer-events: none;
167  visibility: hidden;
168}
169.dialog:not([open]) .dialog__content {
170  transform: translate(0, -16px) scale(0.98);
171}
172
173.dialog__content {
174  display: flex;
175  flex-direction: column;
176  gap: 16px;
177  padding: var(--dialog-padding, 24px);
178  max-width: 100%;
179  width: 100%;
180  max-height: 100%;
181  overflow: auto;
182
183  background: var(--dialog-background, var(--background));
184  border-radius: var(--dialog-border-radius, 20px);
185  border: var(--dialog-border, var(--border));
186  box-shadow: var(--dialog-box-shadow, var(--box-shadow));
187  transform: translate(0, 0) scale(1);
188  transition: transform 0.2s ease-in-out;
189}
190
191`,Qw=`
192.dialog__header {
193  display: flex;
194  gap: 4px;
195  justify-content: space-between;
196  font-weight: var(--dialog-header-weight, 600);
197  margin: 0;
198}
199.dialog__title {
200  align-self: center;
201  width: var(--form-width, 272px);
202}
203
204@media (max-width: 600px) {
205  .dialog__title {
206    width: auto;
207  }
208}
209
210.dialog__position:has(.editor) .dialog__title {
211  width: auto;
212}
213
214
215.brand-link {
216  display: inline-flex;
217}
218.brand-link:focus-visible {
219  outline: var(--outline);
220}
221`,eI=`
222.form {
223  display: flex;
224  overflow: auto;
225  flex-direction: row;
226  gap: 16px;
227  flex: 1 0;
228}
229
230.form__right {
231  flex: 0 0 auto;
232  display: flex;
233  overflow: auto;
234  flex-direction: column;
235  justify-content: space-between;
236  gap: 20px;
237  width: var(--form-width, 100%);
238}
239
240.dialog__position:has(.editor) .form__right {
241  width: var(--form-width, 272px);
242}
243
244.form__top {
245  display: flex;
246  flex-direction: column;
247  gap: 8px;
248}
249
250.form__error-container {
251  color: var(--error-color);
252  fill: var(--error-color);
253}
254
255.form__label {
256  display: flex;
257  flex-direction: column;
258  gap: 4px;
259  margin: 0px;
260}
261
262.form__label__text {
263  display: flex;
264  gap: 4px;
265  align-items: center;
266}
267
268.form__label__text--required {
269  font-size: 0.85em;
270}
271
272.form__input {
273  font-family: inherit;
274  line-height: inherit;
275  background: transparent;
276  box-sizing: border-box;
277  border: var(--input-border, var(--border));
278  border-radius: var(--input-border-radius, 6px);
279  color: var(--input-color, inherit);
280  fill: var(--input-color, inherit);
281  font-size: var(--input-font-size, inherit);
282  font-weight: var(--input-font-weight, 500);
283  padding: 6px 12px;
284}
285
286.form__input::placeholder {
287  opacity: 0.65;
288  color: var(--input-placeholder-color, inherit);
289  filter: var(--interactive-filter);
290}
291
292.form__input:focus-visible {
293  outline: var(--input-focus-outline, var(--outline));
294}
295
296.form__input--textarea {
297  font-family: inherit;
298  resize: vertical;
299}
300
301.error {
302  color: var(--error-color);
303  fill: var(--error-color);
304}
305`,tI=`
306.btn-group {
307  display: grid;
308  gap: 8px;
309}
310
311.btn {
312  line-height: inherit;
313  border: var(--button-border, var(--border));
314  border-radius: var(--button-border-radius, 6px);
315  cursor: pointer;
316  font-family: inherit;
317  font-size: var(--button-font-size, inherit);
318  font-weight: var(--button-font-weight, 600);
319  padding: var(--button-padding, 6px 16px);
320}
321.btn[disabled] {
322  opacity: 0.6;
323  pointer-events: none;
324}
325
326.btn--primary {
327  color: var(--button-primary-color, var(--accent-foreground));
328  fill: var(--button-primary-color, var(--accent-foreground));
329  background: var(--button-primary-background, var(--accent-background));
330  border: var(--button-primary-border, var(--border));
331  border-radius: var(--button-primary-border-radius, 6px);
332  font-weight: var(--button-primary-font-weight, 500);
333}
334.btn--primary:hover {
335  color: var(--button-primary-hover-color, var(--accent-foreground));
336  fill: var(--button-primary-hover-color, var(--accent-foreground));
337  background: var(--button-primary-hover-background, var(--accent-background));
338  filter: var(--interactive-filter);
339}
340.btn--primary:focus-visible {
341  background: var(--button-primary-hover-background, var(--accent-background));
342  filter: var(--interactive-filter);
343  outline: var(--button-primary-focus-outline, var(--outline));
344}
345
346.btn--default {
347  color: var(--button-color, var(--foreground));
348  fill: var(--button-color, var(--foreground));
349  background: var(--button-background, var(--background));
350  border: var(--button-border, var(--border));
351  border-radius: var(--button-border-radius, 6px);
352  font-weight: var(--button-font-weight, 500);
353}
354.btn--default:hover {
355  color: var(--button-color, var(--foreground));
356  fill: var(--button-color, var(--foreground));
357  background: var(--button-hover-background, var(--background));
358  filter: var(--interactive-filter);
359}
360.btn--default:focus-visible {
361  background: var(--button-hover-background, var(--background));
362  filter: var(--interactive-filter);
363  outline: var(--button-focus-outline, var(--outline));
364}
365`,nI=`
366.success__position {
367  position: fixed;
368  inset: var(--dialog-inset);
369  padding: var(--page-margin);
370  z-index: var(--z-index);
371}
372.success__content {
373  background: var(--success-background, var(--background));
374  border: var(--success-border, var(--border));
375  border-radius: var(--success-border-radius, 1.7em/50%);
376  box-shadow: var(--success-box-shadow, var(--box-shadow));
377  font-weight: var(--success-font-weight, 600);
378  color: var(--success-color);
379  fill: var(--success-color);
380  padding: 12px 24px;
381  line-height: 1.75em;
382
383  display: grid;
384  align-items: center;
385  grid-auto-flow: column;
386  gap: 6px;
387  cursor: default;
388}
389
390.success__icon {
391  display: flex;
392}
393`;function rI(e){const t=ee.createElement("style");return t.textContent=`
394:host {
395  --dialog-inset: var(--inset);
396}
397
398${Zw}
399${Qw}
400${eI}
401${tI}
402${nI}
403`,e&&t.setAttribute("nonce",e),t}function sI(){const e=W().getUser(),t=Ee().getUser(),n=Ai().getUser();return e&&Object.keys(e).length?e:t&&Object.keys(t).length?t:n}const oI=(()=>({name:"FeedbackModal",setupOnce(){},createDialog:({options:e,screenshotIntegration:t,sendFeedback:n,shadow:r})=>{const s=r,o=e.useSentryUser,i=sI(),a=ee.createElement("div"),c=rI(e.styleNonce);let u="";const d={get el(){return a},appendToDom(){!s.contains(c)&&!s.contains(a)&&(s.appendChild(c),s.appendChild(a))},removeFromDom(){s.removeChild(a),s.removeChild(c),ee.body.style.overflow=u},open(){f(!0),e.onFormOpen&&e.onFormOpen(),u=ee.body.style.overflow,ee.body.style.overflow="hidden"},close(){f(!1),ee.body.style.overflow=u}},l=t&&t.createInput({h:q,hooks:zw,dialog:d,options:e}),f=p=>{Nw(q(Jw,{options:e,screenshotInput:l,showName:e.showName||e.isNameRequired,showEmail:e.showEmail||e.isEmailRequired,defaultName:o&&i&&i[o.name]||"",defaultEmail:o&&i&&i[o.email]||"",onFormClose:()=>{f(!1),e.onFormClose&&e.onFormClose()},onSubmit:n,onSubmitSuccess:h=>{f(!1),e.onSubmitSuccess&&e.onSubmitSuccess(h)},onSubmitError:h=>{e.onSubmitError&&e.onSubmitError(h)},onFormSubmitted:()=>{e.onFormSubmitted&&e.onFormSubmitted()},open:p}),a)};return d}}));function iI({h:e}){return function({top:n,left:r,corner:s,onGrabButton:o}){return e("button",{class:`editor__crop-corner editor__crop-corner--${s} `,style:{top:n,left:r},onMouseDown:i=>{i.preventDefault(),o(i,s)},onClick:i=>{i.preventDefault()}})}}function aI(e){const t=ee.createElement("style"),n="#1A141F",r="#302735";return t.textContent=`
404.editor {
405  padding: 10px;
406  padding-top: 65px;
407  padding-bottom: 65px;
408  flex-grow: 1;
409
410  background-color: ${n};
411  background-image: repeating-linear-gradient(
412      -145deg,
413      transparent,
414      transparent 8px,
415      ${n} 8px,
416      ${n} 11px
417    ),
418    repeating-linear-gradient(
419      -45deg,
420      transparent,
421      transparent 15px,
422      ${r} 15px,
423      ${r} 16px
424    );
425}
426
427.editor__canvas-container {
428  width: 100%;
429  height: 100%;
430  position: relative;
431  display: flex;
432  align-items: center;
433  justify-content: center;
434}
435
436.editor__canvas-container canvas {
437  object-fit: contain;
438  position: relative;
439}
440
441.editor__crop-btn-group {
442  padding: 8px;
443  gap: 8px;
444  border-radius: var(--menu-border-radius, 6px);
445  background: var(--button-primary-background, var(--background));
446  width: 175px;
447  position: absolute;
448}
449
450.editor__crop-corner {
451  width: 30px;
452  height: 30px;
453  position: absolute;
454  background: none;
455  border: 3px solid #ffffff;
456}
457
458.editor__crop-corner--top-left {
459  cursor: nwse-resize;
460  border-right: none;
461  border-bottom: none;
462}
463.editor__crop-corner--top-right {
464  cursor: nesw-resize;
465  border-left: none;
466  border-bottom: none;
467}
468.editor__crop-corner--bottom-left {
469  cursor: nesw-resize;
470  border-right: none;
471  border-top: none;
472}
473.editor__crop-corner--bottom-right {
474  cursor: nwse-resize;
475  border-left: none;
476  border-top: none;
477}
478`,e&&t.setAttribute("nonce",e),t}function cI({hooks:e}){return function({onBeforeScreenshot:n,onScreenshot:r,onAfterScreenshot:s,onError:o}){e.useEffect(()=>{(async()=>{n();const a=await er.mediaDevices.getDisplayMedia({video:{width:Qe.innerWidth*Qe.devicePixelRatio,height:Qe.innerHeight*Qe.devicePixelRatio},audio:!1,monitorTypeSurfaces:"exclude",preferCurrentTab:!0,selfBrowserSurface:"include",surfaceSwitching:"exclude"}),c=ee.createElement("video");await new Promise((u,d)=>{c.srcObject=a,c.onloadedmetadata=()=>{r(c),a.getTracks().forEach(l=>l.stop()),u()},c.play().catch(d)}),s()})().catch(o)},[])}}const tr=30,it=3,wt=tr+it,Oe=Qe.devicePixelRatio,Qn=e=>({x:Math.min(e.startX,e.endX),y:Math.min(e.startY,e.endY),width:Math.abs(e.startX-e.endX),height:Math.abs(e.startY-e.endY)}),Do=e=>{const t=e.clientHeight,n=e.clientWidth,r=e.width/e.height;let s=t*r,o=t;s>n&&(s=n,o=n/r);const i=(n-s)/2,a=(t-o)/2;return{startX:i,startY:a,endX:s+i,endY:o+a}};function uI({h:e,hooks:t,imageBuffer:n,dialog:r,options:s}){const o=cI({hooks:t});return function({onError:a}){const c=t.useMemo(()=>({__html:aI(s.styleNonce).innerText}),[]),u=iI({h:e}),d=t.useRef(null),l=t.useRef(null),f=t.useRef(null),[p,h]=t.useState({startX:0,startY:0,endX:0,endY:0}),[m,b]=t.useState(!1),[y,w]=t.useState(!1);t.useEffect(()=>{Qe.addEventListener("resize",C,!1)},[]);function C(){const g=f.current,E=Qn(Do(n));if(g){g.width=E.width*Oe,g.height=E.height*Oe,g.style.width=`${E.width}px`,g.style.height=`${E.height}px`;
478const I=g.getContext("2d");I&&I.scale(Oe,Oe)}const k=l.current;k&&(k.style.width=`${E.width}px`,k.style.height=`${E.height}px`),h({startX:0,startY:0,endX:E.width,endY:E.height})}t.useEffect(()=>{const g=f.current;if(!g)return;const E=g.getContext("2d");if(!E)return;const k=Qn(Do(n)),I=Qn(p);E.clearRect(0,0,k.width,k.height),E.fillStyle="rgba(0, 0, 0, 0.5)",E.fillRect(0,0,k.width,k.height),E.clearRect(I.x,I.y,I.width,I.height),E.strokeStyle="#ffffff",E.lineWidth=3,E.strokeRect(I.x+1,I.y+1,I.width-2,I.height-2),E.strokeStyle="#000000",E.lineWidth=1,E.strokeRect(I.x+3,I.y+3,I.width-6,I.height-6)},[p]);function M(g,E){b(!1),w(!0);const k=_(E),I=()=>{ee.removeEventListener("mousemove",k),ee.removeEventListener("mouseup",I),b(!0),w(!1)};ee.addEventListener("mouseup",I),ee.addEventListener("mousemove",k)}const _=t.useCallback(g=>function(E){if(!f.current)return;const k=f.current,I=k.getBoundingClientRect(),B=E.clientX-I.x,V=E.clientY-I.y;switch(g){case"top-left":h(z=>({...z,startX:Math.min(Math.max(0,B),z.endX-wt),startY:Math.min(Math.max(0,V),z.endY-wt)}));break;case"top-right":h(z=>({...z,endX:Math.max(Math.min(B,k.width/Oe),z.startX+wt),startY:Math.min(Math.max(0,V),z.endY-wt)}));break;case"bottom-left":h(z=>({...z,startX:Math.min(Math.max(0,B),z.endX-wt),endY:Math.max(Math.min(V,k.height/Oe),z.startY+wt)}));break;case"bottom-right":h(z=>({...z,endX:Math.max(Math.min(B,k.width/Oe),z.startX+wt),endY:Math.max(Math.min(V,k.height/Oe),z.startY+wt)}));break}},[]),v=t.useRef({initialX:0,initialY:0});function x(g){if(y)return;v.current={initialX:g.clientX,initialY:g.clientY};const E=I=>{const B=f.current;if(!B)return;const V=I.clientX-v.current.initialX,z=I.clientY-v.current.initialY;h(O=>{const ce=Math.max(0,Math.min(O.startX+V,B.width/Oe-(O.endX-O.startX))),F=Math.max(0,Math.min(O.startY+z,B.height/Oe-(O.endY-O.startY))),te=ce+(O.endX-O.startX),ke=F+(O.endY-O.startY);return v.current.initialX=I.clientX,v.current.initialY=I.clientY,{startX:ce,startY:F,endX:te,endY:ke}})},k=()=>{ee.removeEventListener("mousemove",E),ee.removeEventListener("mouseup",k)};ee.addEventListener("mousemove",E),ee.addEventListener("mouseup",k)}function A(){const g=ee.createElement("canvas"),E=Qn(Do(n)),k=Qn(p);g.width=k.width*Oe,g.height=k.height*Oe;const I=g.getContext("2d");I&&n&&I.drawImage(n,k.x/E.width*n.width,k.y/E.height*n.height,k.width/E.width*n.width,k.height/E.height*n.height,0,0,g.width,g.height);const B=n.getContext("2d");B&&(B.clearRect(0,0,n.width,n.height),n.width=g.width,n.height=g.height,n.style.width=`${k.width}px`,n.style.height=`${k.height}px`,B.drawImage(g,0,0),C())}return o({onBeforeScreenshot:t.useCallback(()=>{r.el.style.display="none"},[]),onScreenshot:t.useCallback(g=>{const E=n.getContext("2d");if(!E)throw new Error("Could not get canvas context");n.width=g.videoWidth,n.height=g.videoHeight,n.style.width="100%",n.style.height="100%",E.drawImage(g,0,0)},[n]),onAfterScreenshot:t.useCallback(()=>{r.el.style.display="block";const g=d.current;g&&g.appendChild(n),C()},[]),onError:t.useCallback(g=>{r.el.style.display="block",a(g)},[])}),e("div",{class:"editor"},e("style",{nonce:s.styleNonce,dangerouslySetInnerHTML:c}),e("div",{class:"editor__canvas-container",ref:d},e("div",{class:"editor__crop-container",style:{position:"absolute",zIndex:1},ref:l},e("canvas",{onMouseDown:x,style:{position:"absolute",cursor:m?"move":"auto"},ref:f}),e(u,{left:p.startX-it,top:p.startY-it,onGrabButton:M,corner:"top-left"}),e(u,{left:p.endX-tr+it,top:p.startY-it,onGrabButton:M,corner:"top-right"}),e(u,{left:p.startX-it,top:p.endY-tr+it,onGrabButton:M,corner:"bottom-left"}),e(u,{left:p.endX-tr+it,top:p.endY-tr+it,onGrabButton:M,corner:"bottom-right"}),e("div",{style:{left:Math.max(0,p.endX-191),top:Math.max(0,p.endY+8),display:m?"flex":"none"},class:"editor__crop-btn-group"},e("button",{onClick:g=>{g.preventDefault(),f.current&&h({startX:0,startY:0,endX:f.current.width/Oe,endY:f.current.height/Oe}),b(!1)},class:"btn btn--default"},s.cancelButtonLabel),e("button",{onClick:g=>{g.preventDefault(),A(),b(!1)},class:"btn btn--primary"},s.confirmButtonLabel)))))}}const lI=(()=>({name:"FeedbackScreenshot",setupOnce(){},createInput:({h:e,hooks:t,dialog:n,options:r})=>{const s=ee.createElement("canvas");return{input:uI({h:e,hooks:t,imageBuffer:s,dialog:n,options:r}),value:async()=>{const o=await new Promise(i=>{s.toBlob(i,"image/png")});if(o)return{data:new Uint8Array(await o.arrayBuffer()),filename:"screenshot.png",contentType:"application/png"}}}}})),d1=gf({lazyLoadIntegration:qS}),f1=gf({getModalIntegration:()=>oI,getScreenshotIntegration:()=>lI});function dI(e,t=1,n){vr.increment(wr,e,t,n)}function fI(e,t,n){vr.distribution(wr,e,t,n)}
478function pI(e,t,n){vr.set(wr,e,t,n)}function hI(e,t,n){vr.gauge(wr,e,t,n)}function mI(e,t,n="second",r){return vr.timing(wr,e,t,n,r)}const p1={increment:dI,distribution:fI,set:pI,gauge:hI,timing:mI},bu=new WeakMap,Po=new Map,ms={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0,trackFetchStreamPerformance:!1};function gI(e,t){const{traceFetch:n,traceXHR:r,trackFetchStreamPerformance:s,shouldCreateSpanForRequest:o,enableHTTPTimings:i,tracePropagationTargets:a}={traceFetch:ms.traceFetch,traceXHR:ms.traceXHR,trackFetchStreamPerformance:ms.trackFetchStreamPerformance,...t},c=typeof o=="function"?o:l=>!0,u=l=>SI(l,a),d={};n&&(e.addEventProcessor(l=>(l.type==="transaction"&&l.spans&&l.spans.forEach(f=>{if(f.op==="http.client"){const p=Po.get(f.span_id);p&&(f.timestamp=p/1e3,Po.delete(f.span_id))}}),l)),s&&n_(l=>{if(l.response){const f=bu.get(l.response);f&&l.endTimestamp&&Po.set(f,l.endTimestamp)}}),qi(l=>{const f=Gg(l,c,u,d);if(l.response&&l.fetchData.__span&&bu.set(l.response,l.fetchData.__span),f){const p=Cf(l.fetchData.url),h=p?sn(p).host:void 0;f.setAttributes({"http.url":p,"server.address":h})}i&&f&&Eu(f)})),r&&Qi(l=>{const f=bI(l,c,u,d);i&&f&&Eu(f)})}function _I(e){return e.entryType==="resource"&&"initiatorType"in e&&typeof e.nextHopProtocol=="string"&&(e.initiatorType==="fetch"||e.initiatorType==="xmlhttprequest")}function Eu(e){const{url:t}=H(e).data||{};if(!t||typeof t!="string")return;const n=Pn("resource",({entries:r})=>{r.forEach(s=>{_I(s)&&s.name.endsWith(t)&&(yI(s).forEach(i=>e.setAttribute(...i)),setTimeout(n))})})}function Je(e=0){return((Te||performance.timeOrigin)+e)/1e3}function yI(e){const{name:t,version:n}=cd(e.nextHopProtocol),r=[];return r.push(["network.protocol.version",n],["network.protocol.name",t]),Te?[...r,["http.request.redirect_start",Je(e.redirectStart)],["http.request.fetch_start",Je(e.fetchStart)],["http.request.domain_lookup_start",Je(e.domainLookupStart)],["http.request.domain_lookup_end",Je(e.domainLookupEnd)],["http.request.connect_start",Je(e.connectStart)],["http.request.secure_connection_start",Je(e.secureConnectionStart)],["http.request.connection_end",Je(e.connectEnd)],["http.request.request_start",Je(e.requestStart)],["http.request.response_start",Je(e.responseStart)],["http.request.response_end",Je(e.responseEnd)]]:r}function SI(e,t){const n=T.location&&T.location.href;if(n){let r,s;try{r=new URL(e,n),s=new URL(n).origin}catch{return!1}const o=r.origin===s;return t?Nt(r.toString(),t)||o&&Nt(r.pathname,t):o}else{const r=!!e.match(/^\/(?!\/)/);return t?Nt(e,t):r}}function bI(e,t,n,r){const s=e.xhr,o=s&&s[Rt];if(!s||s.__sentry_own_request__||!o)return;const i=Ht()&&t(o.url);if(e.endTimestamp&&i){const l=s.__sentry_xhr_span_id__;if(!l)return;const f=r[l];f&&o.status_code!==void 0&&(Yu(f,o.status_code),f.end(),delete r[l]);return}const a=Cf(o.url),c=a?sn(a).host:void 0,u=!!fe(),d=i&&u?et({name:`${o.method} ${o.url}`,attributes:{type:"xhr","http.method":o.method,"http.url":a,url:o.url,"server.address":c,[Z]:"auto.http.browser",[Ae]:"http.client"}}):new Gt;return s.__sentry_xhr_span_id__=d.spanContext().spanId,r[s.__sentry_xhr_span_id__]=d,n(o.url)&&EI(s,Ht()&&u?d:void 0),d}function EI(e,t){const{"sentry-trace":n,baggage:r}=Ol({span:t});n&&vI(e,n,r)}function vI(e,t,n){try{e.setRequestHeader("sentry-trace",t),n&&e.setRequestHeader("baggage",n)}catch{}}function Cf(e){try{return new URL(e,T.location.origin).href}catch{return}}function wI(){T&&T.document?T.document.addEventListener("visibilitychange",()=>{const e=fe();if(!e)return;const t=me(e);if(T.document.hidden&&t){const n="cancelled",{op:r,status:s}=H(t);G&&S.log(`[Tracing] Transaction: ${n} -> since tab moved to the background, op: ${r}`),s||t.setStatus({code:Se,message:n}),t.setAttribute("sentry.cancellation_reason","document.hidden"),t.end()}}):G&&S.warn("[Tracing] Could not set up background tab detection due to lack of global document")}const II="BrowserTracing",TI={...ss,instrumentNavigation:!0,instrumentPageLoad:!0,markBackgroundSpan:!0,enableLongTask:!0,enableLongAnimationFrame:!0,enableInp:!0,_experiments:{},...ms},Or=((e={})=>{ol();const{enableInp:t,enableLongTask:n,enableLongAnimationFrame:r,_experiments:{enableInteractions:s,enableStandaloneClsSpans:o},beforeStartSpan:i,idleTimeout:a,finalTimeout:c,childSpanTimeout:u,markBackgroun
478dSpan:d,traceFetch:l,traceXHR:f,trackFetchStreamPerformance:p,shouldCreateSpanForRequest:h,enableHTTPTimings:m,instrumentPageLoad:b,instrumentNavigation:y}={...TI,...e},w=dy({recordClsStandaloneSpans:o||!1});t&&Ly(),r&&L.PerformanceObserver&&PerformanceObserver.supportedEntryTypes&&PerformanceObserver.supportedEntryTypes.includes("long-animation-frame")?py():n&&fy(),s&&hy();const C={name:void 0,source:void 0};function M(_,v){const x=v.op==="pageload",A=i?i(v):v,g=A.attributes||{};v.name!==A.name&&(g[he]="custom",A.attributes=g),C.name=A.name,C.source=g[he];const E=_l(A,{idleTimeout:a,finalTimeout:c,childSpanTimeout:u,disableAutoFinish:x,beforeSpanEnd:I=>{w(),Sy(I,{recordClsOnPageloadSpan:!o})}});function k(){["interactive","complete"].includes(T.document.readyState)&&_.emit("idleSpanEnableAutoFinish",E)}return x&&T.document&&(T.document.addEventListener("readystatechange",()=>{k()}),k()),E}return{name:II,afterAllSetup(_){let v,x=T.location&&T.location.href;function A(){v&&!H(v).timestamp&&(G&&S.log(`[Tracing] Finishing current active span with op: ${H(v).op}`),v.end())}_.on("startNavigationSpan",g=>{R()===_&&(A(),v=M(_,{op:"navigation",...g}))}),_.on("startPageLoadSpan",(g,E={})=>{if(R()!==_)return;A();const k=E.sentryTrace||vu("sentry-trace"),I=E.baggage||vu("baggage"),B=Zu(k,I);W().setPropagationContext(B),v=M(_,{op:"pageload",...g})}),_.on("spanEnd",g=>{const E=H(g).op;if(g!==me(g)||E!=="navigation"&&E!=="pageload")return;const k=W(),I=k.getPropagationContext();k.setPropagationContext({...I,sampled:I.sampled!==void 0?I.sampled:ln(g),dsc:I.dsc||Vt(g)})}),T.location&&(b&&Nr(_,{name:T.location.pathname,startTime:Te?Te/1e3:void 0,attributes:{[he]:"url",[Z]:"auto.pageload.browser"}}),y&&Js(({to:g,from:E})=>{if(E===void 0&&x&&x.indexOf(g)!==-1){x=void 0;return}E!==g&&(x=void 0,Dr(_,{name:T.location.pathname,attributes:{[he]:"url",[Z]:"auto.navigation.browser"}}))})),d&&wI(),s&&kI(a,c,u,C),t&&$y(),gI(_,{traceFetch:l,traceXHR:f,trackFetchStreamPerformance:p,tracePropagationTargets:_.getOptions().tracePropagationTargets,shouldCreateSpanForRequest:h,enableHTTPTimings:m})}}});function Nr(e,t,n){e.emit("startPageLoadSpan",t,n),W().setTransactionName(t.name);const r=fe();return(r&&H(r).op)==="pageload"?r:void 0}function Dr(e,t){Ee().setPropagationContext({traceId:gt()}),W().setPropagationContext({traceId:gt()}),e.emit("startNavigationSpan",t),W().setTransactionName(t.name);const n=fe();return(n&&H(n).op)==="navigation"?n:void 0}function vu(e){const t=lp(`meta[name=${e}]`);return t?t.getAttribute("content"):void 0}function kI(e,t,n,r){let s;const o=()=>{const i="ui.action.click",a=fe(),c=a&&me(a);if(c){const u=H(c).op;if(["navigation","pageload"].includes(u)){G&&S.warn(`[Tracing] Did not create ${i} span because a pageload or navigation span is in progress.`);return}}if(s&&(s.setAttribute(jo,"interactionInterrupted"),s.end(),s=void 0),!r.name){G&&S.warn(`[Tracing] Did not create ${i} transaction because _latestRouteName is missing.`);return}s=_l({name:r.name,op:i,attributes:{[he]:r.source||"url"}},{idleTimeout:e,finalTimeout:t,childSpanTimeout:n})};T.document&&addEventListener("click",o,{once:!1,capture:!0})}function jn(e){return new Promise((t,n)=>{e.oncomplete=e.onsuccess=()=>t(e.result),e.onabort=e.onerror=()=>n(e.error)})}function CI(e,t){const n=indexedDB.open(e);n.onupgradeneeded=()=>n.result.createObjectStore(t);const r=jn(n);return s=>r.then(o=>s(o.transaction(t,"readwrite").objectStore(t)))}function va(e){return jn(e.getAllKeys())}function xI(e,t,n){return e(r=>va(r).then(s=>{if(!(s.length>=n))return r.put(t,Math.max(...s,0)+1),jn(r.transaction)}))}function RI(e,t,n){return e(r=>va(r).then(s=>{if(!(s.length>=n))return r.put(t,Math.min(...s,0)-1),jn(r.transaction)}))}function MI(e){return e(t=>va(t).then(n=>{const r=n[0];if(r!=null)return jn(t.get(r)).then(s=>(t.delete(r),jn(t.transaction).then(()=>s)))}))}function AI(e){let t;function n(){return t==null&&(t=CI(e.dbName||"sentry-offline",e.storeName||"queue")),t}return{push:async r=>{try{const s=await Ts(r);await xI(n(),s,e.maxQueueSize||30)}catch{}},unshift:async r=>{try{const s=await Ts(r);await RI(n(),s,e.maxQueueSize||30)}catch{}},shift:async()=>{try{const r=await MI(n());if(r)return ih(r)}catch{}}}}function OI(e){return t=>{const n=e({...t,createStore:AI});return T.addEventListener("online",async r=>{await n.flush()}),n}}function h1(e=ld){return OI(hm(e))}const wu=1e6,gs=String(0),NI="main";let xf="",Rf="",Mf="",Ii=T.navigator&&T.navigator.userAgent||"",Af="";const DI=T.navigator&&T.navigator.language||T.navigator&&T.navigator.languages&&T.navigator.languages[0]||"";function PI(e){return typeof e=="object"&&e!==null&&"getHighEntropyValues"in e}const Iu=T.navigator&&T.navigator.userAgentData;PI(Iu)&&Iu.getHighEntropyValues(["architecture","model","platform","platformVersion","fullVersionList"]).then(e=>{if(xf=e.platform||"",Mf=e.architecture||"",Af=e.model||"",Rf=e.platformVersion||"",e.fullVersionList&&e.fullVersionList.length>0){const t=e.fullVersionList[e.fullVersionList.length-1];Ii=`${t.brand} ${t.version}`}}).catch(e=>{});function LI(e){return!("thread_metadata"in e)}function FI(e){return LI(e)?BI(e):e}function $I(e){const t=e&&e.contexts&&e.contexts.trace&&e.contexts.trace.trace_id;return typeof t=="string"&&t.length!==32&&G&&S.log(`[Profiling] Invalid traceId: ${t} on profiled event`),typeof t!="string"?"":t}function UI(e,t,n,r){if(r.type!=="transaction")throw new TypeError("Profiling events may only be attached to transactions, this should never occur.");if(n==null)throw new TypeError(`Cannot construct profiling event envelope without a valid profile. Got ${n} instead.`);const s=$I(r),o=FI(n),i=t||(typeof r.start_timestamp=="number"?r.start_timestamp*1e3:ae()*1e3),a=typeof r.timestamp=="number"?r.timestamp*1e3:ae()*1e3;return{event_id:e,timestamp:new Date(i).toISOString(),platform:"javascript",version:"1",release:r.release||"",environment:r.environment||Gs,runtime:{name:"javascript",version:T.navigator.userAgent},os:{name:xf,version:Rf,build_number:Ii},device:{locale:DI,model:Af,manufacturer:Ii,architecture:Mf,is_emulator:!1},debug_meta:{images:zI(n.resources)},profile:o,transactions:[{name:r.transaction||"",id:r.event_id||Me(),trace_id:s,active_thread_id:gs,relative_start_ns:"0",relative_end_ns:((a-i)*1e6).toFixed(0)}]}}function Of(e){return H(e).op==="pageload"}function BI(e){let t,n=0;const r={samples:[],stacks:[],frames:[],thread_metadata:{[gs]:{name:NI}}},s=e.samples[0];if(!s)return r;const o=s.timestamp,i=typeof performance.timeOrigin=="number"?performance.timeOrigin:Te||0,a=i-(Te||i);
478return e.samples.forEach((c,u)=>{if(c.stackId===void 0){t===void 0&&(t=n,r.stacks[t]=[],n++),r.samples[u]={elapsed_since_start_ns:((c.timestamp+a-o)*wu).toFixed(0),stack_id:t,thread_id:gs};return}let d=e.stacks[c.stackId];const l=[];for(;d;){l.push(d.frameId);const p=e.frames[d.frameId];p&&r.frames[d.frameId]===void 0&&(r.frames[d.frameId]={function:p.name,abs_path:typeof p.resourceId=="number"?e.resources[p.resourceId]:void 0,lineno:p.line,colno:p.column}),d=d.parentId===void 0?void 0:e.stacks[d.parentId]}const f={elapsed_since_start_ns:((c.timestamp+a-o)*wu).toFixed(0),stack_id:n,thread_id:gs};r.stacks[n]=l,r.samples[u]=f,n++}),r}function HI(e,t){if(!t.length)return e;for(const n of t)e[1].push([{type:"profile"},n]);return e}function WI(e){const t=[];return un(e,(n,r)=>{if(r==="transaction")for(let s=1;s<n.length;s++){const o=n[s];o&&o.contexts&&o.contexts.profile&&o.contexts.profile.profile_id&&t.push(n[s])}}),t}function zI(e){const t=R(),n=t&&t.getOptions(),r=n&&n.stackParser;return r?Ih(r,e):[]}function jI(e){return typeof e!="number"&&typeof e!="boolean"||typeof e=="number"&&isNaN(e)?(G&&S.warn(`[Profiling] Invalid sample rate. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(e)} of type ${JSON.stringify(typeof e)}.`),!1):e===!0||e===!1?!0:e<0||e>1?(G&&S.warn(`[Profiling] Invalid sample rate. Sample rate must be between 0 and 1. Got ${e}.`),!1):!0}function qI(e){return e.samples.length<2?(G&&S.log("[Profiling] Discarding profile because it contains less than 2 samples"),!1):e.frames.length?!0:(G&&S.log("[Profiling] Discarding profile because it contains no frames"),!1)}let Nf=!1;const Df=3e4;function GI(e){return typeof e=="function"}function VI(){const e=T.Profiler;if(!GI(e)){G&&S.log("[Profiling] Profiling is not supported by this browser, Profiler interface missing on window object.");return}const t=10,n=Math.floor(Df/t);try{return new e({sampleInterval:t,maxBufferSize:n})}catch{G&&(S.log("[Profiling] Failed to initialize the Profiling constructor, this is likely due to a missing 'Document-Policy': 'js-profiling' header."),S.log("[Profiling] Disabling profiling for current user session.")),Nf=!0}}function Tu(e){if(Nf)return G&&S.log("[Profiling] Profiling has been disabled for the duration of the current user session."),!1;if(!e.isRecording())return G&&S.log("[Profiling] Discarding profile because transaction was not sampled."),!1;const t=R(),n=t&&t.getOptions();if(!n)return G&&S.log("[Profiling] Profiling disabled, no options found."),!1;const r=n.profilesSampleRate;return jI(r)?r?(r===!0?!0:Math.random()<r)?!0:(G&&S.log(`[Profiling] Discarding profile because it's not included in the random sample (sampling rate = ${Number(r)})`),!1):(G&&S.log("[Profiling] Discarding profile because a negative sampling decision was inherited or profileSampleRate is set to 0"),!1):(G&&S.warn("[Profiling] Discarding profile because of invalid sample rate."),!1)}function YI(e,t,n,r){return qI(n)?UI(e,t,n,r):null}const tn=new Map;function XI(){return tn.size}function KI(e){const t=tn.get(e);return t&&tn.delete(e),t}function JI(e,t){if(tn.set(e,t),tn.size>30){const n=tn.keys().next().value;tn.delete(n)}}function ku(e){let t;Of(e)&&(t=ae()*1e3);const n=VI();if(!n)return;G&&S.log(`[Profiling] started profiling span: ${H(e).description}`);const r=Me();W().setContext("profile",{profile_id:r,start_timestamp:t});async function s(){if(e&&n)return n.stop().then(c=>{if(o&&(T.clearTimeout(o),o=void 0),G&&S.log(`[Profiling] stopped profiling of span: ${H(e).description}`),!c){G&&S.log(`[Profiling] profiler returned null profile for: ${H(e).description}`,"this may indicate an overlapping span or a call to stopProfiling with a profile title that was never started");return}JI(r,c)}).catch(c=>{G&&S.log("[Profiling] error while stopping profiler:",c)})}let o=T.setTimeout(()=>{G&&S.log("[Profiling] max profile duration elapsed, stopping profiling for:",H(e).description),s()},Df);const i=e.end.bind(e);function a(){return e?(s().then(()=>{i()},()=>{i()}),e):i()}e.end=a}const ZI="BrowserProfiling",QI=(()=>({name:ZI,setup(e){const t=fe(),n=t&&me(t);n&&Of(n)&&Tu(n)&&ku(n),e.on("spanStart",r=>{r===me(r)&&Tu(r)&&ku(r)}),e.on("beforeEnvelope",r=>{if(!XI())return;const s=WI(r);if(!s.length)return;const o=[];for(const i of s){const a=i&&i.contexts,c=a&&a.profile&&a.profile.profile_id,u=a&&a.profile&&a.profile.start_timestamp;if(typeof c!="string"){G&&S.log("[Profiling] cannot find profile for a span without a profile context");continue}if(!c){G&&S.log("[Profiling] cannot find profile for a span without a profile context");continue}a&&a.profile&&delete a.profile;const d=KI(c);if(!d){G&&S.log(`[Profiling] Could not retrieve profile for span: ${c}`);continue}const l=YI(c,u,d,i);l&&o.push(l)}HI(r,o)})}})),m1=QI,eT="SpotlightBrowser",tT=((e={})=>{const t=e.sidecarUrl||"http://localhost:8969/stream";return{name:eT,setup:()=>{G&&S.log("Using Sidecar URL",t)},processEvent:n=>rT(n)?null:n,afterAllSetup:n=>{nT(n,t)}}});function nT(e,t){const n=Zi("fetch");let r=0;e.on("beforeEnvelope",s=>{if(r>3){S.warn("[Spotlight] Disabled Sentry -> Spotlight integration due to too many failed requests:",r);return}n(t,{method:"POST",body:Ts(s),headers:{"Content-Type":"application/x-sentry-envelope"},mode:"cors"}).then(o=>{o.status>=200&&o.status<400&&(r=0)},o=>
478{r++,S.error("Sentry SDK can't connect to Sidecar is it running? See: https://spotlightjs.com/sidecar/npx/",o)})})}const g1=tT;function rT(e){return!!(e.type==="transaction"&&e.spans&&e.contexts&&e.contexts.trace&&e.contexts.trace.op==="ui.action.click"&&e.spans.some(({description:t})=>t&&t.includes("#sentry-spotlight")))}const sT=100;function Pr(e){const n=W().getScopeData().contexts.flags,r=n?n.values:[];return r.length&&(e.contexts===void 0&&(e.contexts={}),e.contexts.flags={values:[...r]}),e}function qn(e,t,n=sT){const r=W().getScopeData().contexts;r.flags||(r.flags={values:[]});const s=r.flags.values;oT(s,e,t,n)}function oT(e,t,n,r){if(typeof n!="boolean")return;if(e.length>r){G&&S.error(`[Feature Flags] insertToFlagBuffer called on a buffer larger than maxSize=${r}`);return}const s=e.findIndex(o=>o.flag===t);s!==-1&&e.splice(s,1),e.length===r&&e.shift(),e.push({flag:t,result:n})}const _1=()=>({name:"FeatureFlags",processEvent(e,t,n){return Pr(e)},addFeatureFlag(e,t){qn(e,t)}}),y1=()=>({name:"LaunchDarkly",processEvent(e,t,n){return Pr(e)}});function S1(){return{name:"sentry-flag-auditor",type:"flag-used",synchronous:!0,method:(e,t,n)=>{qn(e,t.value)}}}const b1=()=>({name:"OpenFeature",processEvent(e,t,n){return Pr(e)}});class E1{after(t,n){qn(n.flagKey,n.value)}error(t,n,r){qn(t.flagKey,t.defaultValue)}}const v1=({featureFlagClientClass:e,unleashClientClass:t})=>{const n=e||t;if(!n)throw new Error("featureFlagClientClass option is required");return{name:"Unleash",processEvent(r,s,o){return Pr(r)},setupOnce(){const r=n.prototype;Re(r,"isEnabled",iT)}}};function iT(e){return function(...t){const n=t[0],r=e.apply(this,t);return typeof n=="string"&&typeof r=="boolean"?qn(n,r):G&&S.error(`[Feature Flags] UnleashClient.isEnabled does not match expected signature. arg0: ${n} (${typeof n}), result: ${r} (${typeof r})`),r}}const w1=({featureFlagClient:e})=>({name:"Statsig",processEvent(t,n,r){return Pr(t)},setup(){e.on("gate_evaluation",t=>{qn(t.gate.name,t.gate.value)})}});function I1(e){const t={...e};return Al(t,"react"),Hi("react",{version:Ie.version}),zS(t)}function aT(e){const t=e.match(/^([^.]+)/);return t!==null&&parseInt(t[0])>=17}function cT(e,t){const n=new WeakSet;function r(s,o){if(!n.has(s)){if(s.cause)return n.add(s),r(s.cause,o);s.cause=o}}r(e,t)}function Pf(e,{componentStack:t},n){if(aT(Ie.version)&&ut(e)&&t){const r=new Error(e.message);r.name=`React ErrorBoundary ${e.name}`,r.stack=t,cT(e,r)}return Vs(e,{...n,captureContext:{contexts:{react:{componentStack:t}}}})}function T1(e){return(t,n)=>{const r=Pf(t,n);e&&e(t,n,r)}}var Lo={exports:{}},Q={};/** @license React v16.13.1
479 * react-is.production.min.js
480 *
481 * Copyright (c) Facebook, Inc. and its affiliates.
482 *
483 * This source code is licensed under the MIT license found in the
484 * LICENSE file in the root directory of this source tree.
485 */var Cu;function uT(){if(Cu)return Q;Cu=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,s=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,i=e?Symbol.for("react.provider"):60109,a=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,l=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,h=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,b=e?Symbol.for("react.fundamental"):60117,y=e?Symbol.for("react.responder"):60118,w=e?Symbol.for("react.scope"):60119;function C(_){if(typeof _=="object"&&_!==null){var v=_.$$typeof;switch(v){case t:switch(_=_.type,_){case c:case u:case r:case o:case s:case l:return _;default:switch(_=_&&_.$$typeof,_){case a:case d:case h:case p:case i:return _;default:return v}}case n:return v}}}function M(_){return C(_)===u}return Q.AsyncMode=c,Q.ConcurrentMode=u,Q.ContextConsumer=a,Q.ContextProvider=i,Q.Element=t,Q.ForwardRef=d,Q.Fragment=r,Q.Lazy=h,Q.Memo=p,Q.Portal=n,Q.Profiler=o,Q.StrictMode=s,Q.Suspense=l,Q.isAsyncMode=function(_){return M(_)||C(_)===c},Q.isConcurrentMode=M,Q.isContextConsumer=function(_){return C(_)===a},Q.isContextProvider=function(_){return C(_)===i},Q.isElement=function(_){return typeof _=="object"&&_!==null&&_.$$typeof===t},Q.isForwardRef=function(_){return C(_)===d},Q.isFragment=function(_){return C(_)===r},Q.isLazy=function(_){return C(_)===h},Q.isMemo=function(_){return C(_)===p},Q.isPortal=function(_){return C(_)===n},Q.isProfiler=function(_){return C(_)===o},Q.isStrictMode=function(_){return C(_)===s},Q.isSuspense=function(_){return C(_)===l},Q.isValidElementType=function(_){return typeof _=="string"||typeof _=="function"||_===r||_===u||_===o||_===s||_===l||_===f||typeof _=="object"&&_!==null&&(_.$$typeof===h||_.$$typeof===p||_.$$typeof===i||_.$$typeof===a||_.$$typeof===d||_.$$typeof===b||_.$$typeof===y||_.$$typeof===w||_.$$typeof===m)},Q.typeOf=C,Q}var xu;function lT(){return xu||(xu=1,Lo.exports=uT()),Lo.exports}var Fo,Ru;function dT(){if(Ru)return Fo;Ru=1;var e=lT(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},n={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},r={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},o={};o[e.ForwardRef]=r,o[e.Memo]=s;function i(h){return e.isMemo(h)?s:o[h.$$typeof]||t}var a=Object.defineProperty,c=Object.getOwnPropertyNames,u=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,l=Object.getPrototypeOf,f=Object.prototype;function p(h,m,b){if(typeof m!="string"){if(f){var y=l(m);y&&y!==f&&p(h,y,b)}var w=c(m);u&&(w=w.concat(u(m)));for(var C=i(h),M=i(m),_=0;_<w.length;++_){var v=w[_];if(!n[v]&&!(b&&b[v])&&!(M&&M[v])&&!(C&&C[v])){var x=d(m,v);try{a(h,v,x)}catch{}}}}return h}return Fo=p,Fo}var fT=dT();const ao=Jf(fT),Lf="ui.react.render",pT="ui.react.update",Ff="ui.react.mount",hT="unknown";class $f extends Ie.Component{static __initStatic(){this.defaultProps={disabled:!1,includeRender:!0,includeUpdates:!0}}constructor(t){super(t);const{name:n,disabled:r=!1}=this.props;r||(this._mountSpan=et({name:`<${n}>`,onlyIfParent:!0,op:Ff,attributes:{[Z]:"auto.ui.react.profiler","ui.component_name":n}}))}componentDidMount(){this._mountSpan&&this._mountSpan.end()}shouldComponentUpdate({updateProps:t,includeUpdates:n=!0}){if(n&&this._mountSpan&&t!==this.props.updateProps){const r=Object.keys(t).filter(s=>t[s]!==this.props.updateProps[s]);if(r.length>0){const s=ae();this._updateSpan=Nn(this._mountSpan,()=>et({name:`<${this.props.name}>`,onlyIfParent:!0,op:pT,startTime:s,attributes:{[Z]:"auto.ui.react.profiler","ui.component_name":this.props.name,"ui.react.changed_props":r}}))}}return!0}componentDidUpdate(){this._updateSpan&&(this._updateSpan.end(),this._updateSpan=void 0)}componentWillUnmount(){const t=ae(),{name:n,includeRender:r=!0}=this.props;if(this._mountSpan&&r){const s=H(this._mountSpan).timestamp;Nn(this._mountSpan,()=>{const o=et({onlyIfParent:!0,name:`<${n}>`,op:Lf,startTime:s,attributes:{[Z]:"auto.ui.react.profiler","ui.component_name":n}});o&&o.end(t)})}}render(){return this.props.children}}$f.__initStatic();function k1(e,t){const n=t&&t.name||e.displayName||e.name||hT,r=s=>Ie.createElement($f,{...t,name:n,updateProps:s},Ie.createElement(e,{...s}));return r.displayName=`profiler(${n})`,ao(r,e),r}function C1(e,t={disabled:!1,hasRenderSpan:!0}
485){const[n]=Ie.useState(()=>{if(!(t&&t.disabled))return et({name:`<${e}>`,onlyIfParent:!0,op:Ff,attributes:{[Z]:"auto.ui.react.profiler","ui.component_name":e}})});Ie.useEffect(()=>(n&&n.end(),()=>{if(n&&t.hasRenderSpan){const r=H(n).timestamp,s=ae(),o=et({name:`<${e}>`,onlyIfParent:!0,op:Lf,startTime:r,attributes:{[Z]:"auto.ui.react.profiler","ui.component_name":e}});o&&o.end(s)}}),[])}const Lr=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,mT="unknown",Mu={componentStack:null,error:null,eventId:null};class wa extends Ie.Component{constructor(t){super(t),wa.prototype.__init.call(this),this.state=Mu,this._openFallbackReportDialog=!0;const n=R();n&&t.showDialog&&(this._openFallbackReportDialog=!1,this._cleanupHook=n.on("afterSendEvent",r=>{!r.type&&this._lastEventId&&r.event_id===this._lastEventId&&Ec({...t.dialogOptions,eventId:this._lastEventId})}))}componentDidCatch(t,n){const{componentStack:r}=n,s=r??void 0,{beforeCapture:o,onError:i,showDialog:a,dialogOptions:c}=this.props;ze(u=>{o&&o(u,t,s);const d=this.props.handled!=null?this.props.handled:!!this.props.fallback,l=Pf(t,n,{mechanism:{handled:d}});i&&i(t,s,l),a&&(this._lastEventId=l,this._openFallbackReportDialog&&Ec({...c,eventId:l})),this.setState({error:t,componentStack:r,eventId:l})})}componentDidMount(){const{onMount:t}=this.props;t&&t()}componentWillUnmount(){const{error:t,componentStack:n,eventId:r}=this.state,{onUnmount:s}=this.props;s&&s(t,n,r),this._cleanupHook&&(this._cleanupHook(),this._cleanupHook=void 0)}__init(){this.resetErrorBoundary=()=>{const{onReset:t}=this.props,{error:n,componentStack:r,eventId:s}=this.state;t&&t(n,r,s),this.setState(Mu)}}render(){const{fallback:t,children:n}=this.props,r=this.state;if(r.error){let s;return typeof t=="function"?s=Ie.createElement(t,{error:r.error,componentStack:r.componentStack,resetError:this.resetErrorBoundary,eventId:r.eventId}):s=t,Ie.isValidElement(s)?s:(t&&Lr&&S.warn("fallback did not produce a valid ReactElement"),null)}return typeof n=="function"?n():n}}function x1(e,t){const n=e.displayName||e.name||mT,r=s=>Ie.createElement(wa,{...t},Ie.createElement(e,{...s}));return r.displayName=`errorBoundary(${n})`,ao(r,e),r}const gT="redux.action",_T="info",yT={attachReduxState:!0,actionTransformer:e=>e,stateTransformer:e=>e||null};function R1(e){const t={...yT,...e};return n=>(r,s)=>(t.attachReduxState&&Ai().addEventProcessor((i,a)=>{try{i.type===void 0&&i.contexts.state.state.type==="redux"&&(a.attachments=[...a.attachments||[],{filename:"redux_state.json",data:JSON.stringify(i.contexts.state.state.value)}])}catch{}return i}),n((i,a)=>{const c=r(i,a),u=W(),d=t.actionTransformer(a);typeof d<"u"&&d!==null&&nt({category:gT,data:d,type:_T});const l=t.stateTransformer(c);if(typeof l<"u"&&l!==null){const p=R(),h=p&&p.getOptions(),m=h&&h.normalizeDepth||3,b={state:{type:"redux",value:l}};De(b,"__sentry_override_normalization_depth__",3+m),u.setContext("state",b)}else u.setContext("state",null);const{configureScopeWithState:f}=t;return typeof f=="function"&&f(u,c),c},s))}function M1(e){const t=Or({...e,instrumentPageLoad:!1,instrumentNavigation:!1}),{history:n,routes:r,match:s,instrumentPageLoad:o=!0,instrumentNavigation:i=!0}=e;return{...t,afterAllSetup(a){t.afterAllSetup(a),o&&T&&T.location&&Au(r,T.location,s,(c,u="url")=>{Nr(a,{name:c,attributes:{[Ae]:"pageload",[Z]:"auto.pageload.react.reactrouter_v3",[he]:u}})}),i&&n.listen&&n.listen(c=>{(c.action==="PUSH"||c.action==="POP")&&Au(r,c,s,(u,d="url")=>{Dr(a,{name:u,attributes:{[Ae]:"navigation",[Z]:"auto.navigation.react.reactrouter_v3",[he]:d}})})})}}}function Au(e,t,n,r){let s=t.pathname;n({location:t,routes:e},(o,i,a)=>{if(o||!a)return r(s);const c=ST(a.routes||[]);return c.length===0||c==="/*"?r(s):(s=c,r(s,"route"))})}function ST(e){if(!Array.isArray(e)||e.length===0)return"";const t=e.filter(r=>!!r.path);let n=-1;for(let r=t.length-1;r>=0;r--){const s=t[r];if(s.path&&s.path.startsWith("/")){n=r;break}}return t.slice(n).filter(({path:r})=>!!r).map(({path:r})=>r).join("")}function A1(e,t={}){const n=e,r=Or({...t,instrumentNavigation:!1,instrumentPageLoad:!1}),{instrumentPageLoad:s=!0,instrumentNavigation:o=!0}=t;return{...r,afterAllSetup(i){r.afterAllSetup(i);const a=T.location;if(s&&a){const c=n.matchRoutes(a.pathname,n.options.parseSearch(a.search),{preload:!1,throwOnError:!1}),u=c[c.length-1];Nr(i,{name:u?u.routeId:a.pathname,attributes:{[Ae]:"pageload",[Z]:"auto.pageload.react.tanstack_router",[he]:u?"route":"url",...Ou(u)}})}o&&n.subscribe("onBeforeNavigate",c=>{const u=c.fromLocation&&c.fromLocation.state;if(c.toLocation.state===u)return;const d=n.matchRoutes(c.toLocation.pathname,c.toLocation.search,{preload:!1,throwOnError:!1}),l=d[d.length-1],f=T.location,p=Dr(i,{name:l?l.routeId:f.pathname,attributes:{[Ae]:"navigation",[Z]:"auto.navigation.react.tanstack_router",[he]:l?"route":"url"}}),h=n.subscribe("onResolved",m=>
485{if(h(),p){const b=n.matchRoutes(m.toLocation.pathname,m.toLocation.search,{preload:!1,throwOnError:!1}),y=b[b.length-1];y&&(p.updateName(y.routeId),p.setAttribute(he,"route"),p.setAttributes(Ou(y)))}})})}}}function Ou(e){if(!e)return{};const t={};return Object.entries(e.params).forEach(([n,r])=>{t[`url.path.params.${n}`]=r}),t}function O1(e){const t=Or({...e,instrumentPageLoad:!1,instrumentNavigation:!1}),{history:n,routes:r,matchPath:s,instrumentPageLoad:o=!0,instrumentNavigation:i=!0}=e;return{...t,afterAllSetup(a){t.afterAllSetup(a),Uf(a,o,i,n,"reactrouter_v4",r,s)}}}function N1(e){const t=Or({...e,instrumentPageLoad:!1,instrumentNavigation:!1}),{history:n,routes:r,matchPath:s,instrumentPageLoad:o=!0,instrumentNavigation:i=!0}=e;return{...t,afterAllSetup(a){t.afterAllSetup(a),Uf(a,o,i,n,"reactrouter_v5",r,s)}}}function Uf(e,t,n,r,s,o=[],i){function a(){if(r&&r.location)return r.location.pathname;if(T&&T.location)return T.location.pathname}function c(u){if(o.length===0||!i)return[u,"url"];const d=Bf(o,u,i);for(const l of d)if(l.match.isExact)return[l.match.path,"route"];return[u,"url"]}if(t){const u=a();if(u){const[d,l]=c(u);Nr(e,{name:d,attributes:{[Ae]:"pageload",[Z]:`auto.pageload.react.${s}`,[he]:l}})}}n&&r.listen&&r.listen((u,d)=>{if(d&&(d==="PUSH"||d==="POP")){const[l,f]=c(u.pathname);Dr(e,{name:l,attributes:{[Ae]:"navigation",[Z]:`auto.navigation.react.${s}`,[he]:f}})}})}function Bf(e,t,n,r=[]){return e.some(s=>{const o=s.path?n(t,s):r.length?r[r.length-1].match:bT(t);return o&&(r.push({route:s,match:o}),s.routes&&Bf(s.routes,t,n,r)),!!o}),r}function bT(e){return{path:"/",url:"/",params:{},isExact:e==="/"}}function D1(e){const t=e.displayName||e.name,n=r=>{if(r&&r.computedMatch&&r.computedMatch.isExact){const s=r.computedMatch.path,o=ET();W().setTransactionName(s),o&&(o.updateName(s),o.setAttribute(he,"route"))}return Ie.createElement(e,{...r})};return n.displayName=`sentryRoute(${t})`,ao(n,e),n}function ET(){const e=fe(),t=e&&me(e);if(!t)return;const n=H(t).op;return n==="navigation"||n==="pageload"?t:void 0}let Pt,Lt,Ft,_s,rt,Cn=!1;const Hf=new WeakSet,Fe=new Set;function Wf(e,t){return!Pt||!Lt||!Ft||!rt?(Lr&&S.warn(`reactRouterV${t}Instrumentation was unable to wrap the \`createRouter\` function because of one or more missing parameters.`),e):function(n,r){n.forEach(a=>{Fe.add(a)});const s=e(n,r),o=r&&r.basename,i=uo();return s.state.historyAction==="POP"&&i&&co(i,s.state.location,n,void 0,o,Array.from(Fe)),s.subscribe(a=>{(a.historyAction==="PUSH"||a.historyAction==="POP")&&(a.navigation.state!=="idle"?requestAnimationFrame(()=>{mr({location:a.location,routes:n,navigationType:a.historyAction,version:t,basename:o,allRoutes:Array.from(Fe)})}):mr({location:a.location,routes:n,navigationType:a.historyAction,version:t,basename:o,allRoutes:Array.from(Fe)}))}),s}}function zf(e,t){return!Pt||!Lt||!Ft||!rt?(Lr&&S.warn(`reactRouterV${t}Instrumentation was unable to wrap the \`createMemoryRouter\` function because of one or more missing parameters.`),e):function(n,r){n.forEach(p=>{Fe.add(p)});const s=e(n,r),o=r?r.basename:void 0,i=uo();let a;const c=r?r.initialEntries:void 0,u=r?r.initialIndex:void 0,d=c&&c.length===1,l=u!==void 0&&c&&c[u];a=d?c[0]:l?c[u]:void 0;const f=a?typeof a=="string"?{pathname:a}:a:s.state.location;return s.state.historyAction==="POP"&&i&&co(i,f,n,void 0,o,Array.from(Fe)),s.subscribe(p=>{const h=p.location;(p.historyAction==="PUSH"||p.historyAction==="POP")&&mr({location:h,routes:n,navigationType:p.historyAction,version:t,basename:o,allRoutes:Array.from(Fe)})}),s}}function jf(e,t){const n=Or({...e,instrumentPageLoad:!1,instrumentNavigation:!1}),{useEffect:r,useLocation:s,useNavigationType:o,createRoutesFromChildren:i,matchRoutes:a,stripBasename:c,instrumentPageLoad:u=!0,instrumentNavigation:d=!0}=e;return{...n,setup(){Pt=r,Lt=s,Ft=o,rt=a,_s=i,Cn=c||!1},afterAllSetup(l){n.afterAllSetup(l);const f=T&&T.location&&T.location.pathname;u&&f&&Nr(l,{name:f,attributes:{[he]:"url",[Ae]:"pageload",[Z]:`auto.pageload.react.reactrouter_v${t}`}}),d&&Hf.add(l)}}}function qf(e,t){if(!Pt||!Lt||!Ft||!rt)return Lr&&S.warn("reactRouterV6Instrumentation was unable to wrap `useRoutes` be
485cause of one or more missing parameters."),e;const n=r=>{const s=Ie.useRef(!0),{routes:o,locationArg:i}=r,a=e(o,i),c=Lt(),u=Ft(),d=typeof i=="string"||i&&i.pathname?i:c;return Pt(()=>{const l=typeof d=="string"?{pathname:d}:d;s.current?(o.forEach(f=>{Ia(f).forEach(h=>{Fe.add(h)})}),co(uo(),l,o,void 0,void 0,Array.from(Fe)),s.current=!1):mr({location:l,routes:o,navigationType:u,version:t,allRoutes:Array.from(Fe)})},[u,d]),a};return(r,s)=>Ie.createElement(n,{routes:r,locationArg:s})}function mr(e){const{location:t,routes:n,navigationType:r,version:s,matches:o,basename:i,allRoutes:a}=e,c=Array.isArray(o)?o:rt(n,t,i),u=R();if(!(!u||!Hf.has(u))&&(r==="PUSH"||r==="POP")&&c){let d,l="url";const f=Vf(t,a||n);f&&(d=gr(Ta(a||n,t)),l="route"),(!f||!d)&&([d,l]=Yf(n,t,c,i)),Dr(u,{name:d,attributes:{[he]:l,[Ae]:"navigation",[Z]:`auto.navigation.react.reactrouter_v${s}`}})}}function Hs(e,t){if(!t||t==="/"||!e.toLowerCase().startsWith(t.toLowerCase()))return e;const n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?e:e.slice(n)||"/"}function vT(e,t,n){const r=e||Cn?Hs(t,n):t;return[r[r.length-1]==="/"||r.slice(-2)==="/*"?r.slice(0,-1):r,"route"]}function Gf(e){return e.endsWith("*")}function Nu(e,t){return Gf(e)&&t.route.children&&t.route.children.length>0||!1}function wT(e){return!!(!e.children&&e.element&&e.path&&e.path.endsWith("/*"))}function Vf(e,t){const n=rt(t,e);if(n){for(const r of n)if(wT(r.route)&&TT(r))return!0}return!1}function Ia(e,t=new Set){return t.has(e)||(t.add(e),e.children&&!e.index&&e.children.forEach(n=>{Ia(n,t).forEach(s=>t.add(s))})),t}function IT(e){return kT(e.route.path||"")}function TT(e){return e.params["*"]||""}function kT(e){return e[e.length-1]==="*"?e.slice(0,-1):e}function cr(e){return e[e.length-1]==="/"?e.slice(0,-1):e}function gr(e){return e[0]==="/"?e:`/${e}`}function Ta(e,t){const n=rt(e,t);if(!n||n.length===0)return"";for(const r of n)if(r.route.path&&r.route.path!=="*"){const s=IT(r),o=Hs(t.pathname,gr(r.pathnameBase));return cr(cr(s||"")+gr(Ta(e.filter(i=>i!==r.route),{pathname:o})))}return""}function Yf(e,t,n,r=""){if(!e||e.length===0)return[Cn?Hs(t.pathname,r):t.pathname,"url"];let s="";if(n)for(const i of n){const a=i.route;if(a){if(a.index)return vT(s,i.pathname,r);const c=a.path;if(c&&!Nu(c,i)){const u=c[0]==="/"||s[s.length-1]==="/"?c:`/${c}`;if(s=cr(s)+gr(u),cr(t.pathname)===cr(r+i.pathname))return ac(s)!==ac(i.pathname)&&!Gf(s)?[(Cn?"":r)+u,"route"]:(Nu(s,i)&&(s=s.slice(0,-1)),[(Cn?"":r)+s,"route"])}}}return[Cn?Hs(t.pathname,r):t.pathname||"/","url"]}function co(e,t,n,r,s,o){const i=Array.isArray(r)?r:rt(o||n,t,s);if(i){let a,c="url";const u=Vf(t,o||n);u&&(a=gr(Ta(o||n,t)),c="route"),(!u||!a)&&([a,c]=Yf(n,t,i,s)),W().setTransactionName(a||"/"),e&&(e.updateName(a),e.setAttribute(he,c))}}function Xf(e,t){if(!Pt||!Lt||!Ft||!_s||!rt)return Lr&&S.warn(`reactRouterV6Instrumentation was unable to wrap Routes because of one or more missing parameters.
486      useEffect: ${Pt}. useLocation: ${Lt}. useNavigationType: ${Ft}.
487      createRoutesFromChildren: ${_s}. matchRoutes: ${rt}.`),e;const n=r=>{const s=Ie.useRef(!0),o=Lt(),i=Ft();return Pt(()=>{const a=_s(r.children);s.current?(a.forEach(c=>{Ia(c).forEach(d=>{Fe.add(d)})}),co(uo(),o,a,void 0,void 0,Array.from(Fe)),s.current=!1):mr({location:o,routes:a,navigationType:i,version:t,allRoutes:Array.from(Fe)})},[o,i]),Ie.createElement(e,{...r})};return ao(n,e),n}function uo(){const e=fe(),t=e?me(e):void 0;if(!t)return;const n=H(t).op;return n==="navigation"||n==="pageload"?t:void 0}function P1(e){return jf(e,"6")}function CT(e){return qf(e,"6")}const L1=CT;function xT(e){return Wf(e,"6")}const F1=xT;function $1(e){return zf(e,"6")}function U1(e){return Xf(e,"6")}function B1(e){return jf(e,"7")}function H1(e){return Xf(e,"7")}function W1(e){return Wf(e,"7")}function z1(e){return zf(e,"7")}function j1(e){return qf(e,"7")}export{k_ as BrowserClient,wa as ErrorBoundary,E1 as OpenFeatureIntegrationHook,$f as Profiler,At as SDK_VERSION,Ae as SEMANTIC_ATTRIBUTE_SENTRY_OP,Z as SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,Gu as SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE,he as SEMANTIC_ATTRIBUTE_SENTRY_SOURCE,Bt as Scope,T as WINDOW,nt as addBreadcrumb,Yh as addEventProcessor,Za as addIntegration,OT as addTracingExtensions,uS as breadcrumbsIntegration,bS as browserApiErrorsIntegration,m1 as browserProfilingIntegration,TS as browserSessionIntegration,Or as browserTracingIntegration,S1 as buildLaunchDarklyFlagUsedHandler,jT as captureConsoleIntegration,Er as captureEvent,Vs as captureException,Zg as captureFeedback,Ko as captureMessage,Xa as captureSession,r1 as captureUserFeedback,Yy as chromeStackLineParser,UT as close,i1 as contextLinesIntegration,PT as continueTrace,R1 as createReduxEnhancer,fm as createTransport,I_ as createUserFeedbackEnvelope,qT as debugIntegration,Jm as dedupeIntegration,ms as defaultRequestInstrumentationOptions,oS as defaultStackLineParsers,iS as defaultStackParser,ks as endSession,S_ as eventFromException,b_ as eventFromMessage,Gi as exceptionFromError,GT as extraErrorDataIntegration,_1 as featureFlagsIntegration,d1 as feedbackAsyncIntegration,f1 as feedbackIntegration,f1 as feedbackSyncIntegration,$T as flush,t1 as forceLoad,wm as functionToStringIntegration,Zy as geckoStackLineParser,fe as getActiveSpan,R as getClient,JT as getCurrentHub,W as getCurrentScope,BS as getDefaultIntegrations,l1 as getFeedback,Ai as getGlobalScope,Ee as getIsolationScope,c1 as getReplay,me as getRootSpan,rs as getSpanDescendants,Ap as getSpanStatusFromHttpCode,xS as globalHandlersIntegration,o1 as httpClientIntegration,DS as httpContextIntegration,Cm as inbou
487ndFiltersIntegration,I1 as init,gI as instrumentOutgoingRequests,BT as isInitialized,Gh as lastEventId,y1 as launchDarklyIntegration,qS as lazyLoadIntegration,US as linkedErrorsIntegration,h1 as makeBrowserOfflineTransport,ld as makeFetchTransport,HT as makeMultiplexedTransport,p1 as metrics,zT as moduleMetadataIntegration,n1 as onLoad,b1 as openFeatureIntegration,QT as opera10StackLineParser,e1 as opera11StackLineParser,WT as parameterize,T1 as reactErrorHandler,M1 as reactRouterV3BrowserTracingIntegration,O1 as reactRouterV4BrowserTracingIntegration,N1 as reactRouterV5BrowserTracingIntegration,P1 as reactRouterV6BrowserTracingIntegration,B1 as reactRouterV7BrowserTracingIntegration,ol as registerSpanErrorInstrumentation,u1 as replayCanvasIntegration,a1 as replayIntegration,s1 as reportingObserverIntegration,VT as rewriteFramesIntegration,Sw as sendFeedback,YT as sessionTimingIntegration,Hi as setContext,am as setCurrentClient,Wh as setExtra,Hh as setExtras,Yu as setHttpStatus,hh as setMeasurement,jh as setTag,zh as setTags,qh as setUser,Ec as showReportDialog,NT as spanToBaggageHeader,H as spanToJSON,Up as spanToTraceHeader,g1 as spotlightBrowserIntegration,Dr as startBrowserTracingNavigationSpan,Nr as startBrowserTracingPageLoadSpan,et as startInactiveSpan,FT as startNewTrace,Jo as startSession,DT as startSpan,_h as startSpanManual,w1 as statsigIntegration,LT as suppressTracing,A1 as tanstackRouterBrowserTracingIntegration,KT as thirdPartyErrorFilterIntegration,v1 as unleashIntegration,AT as updateSpanName,C1 as useProfiler,ZT as winjsStackLineParser,Nn as withActiveSpan,x1 as withErrorBoundary,MT as withIsolationScope,k1 as withProfiler,ze as withScope,U1 as withSentryReactRouterV6Routing,H1 as withSentryReactRouterV7Routing,D1 as withSentryRouting,F1 as wrapCreateBrowserRouter,xT as wrapCreateBrowserRouterV6,W1 as wrapCreateBrowserRouterV7,$1 as wrapCreateMemoryRouterV6,z1 as wrapCreateMemoryRouterV7,L1 as wrapUseRoutes,CT as wrapUseRoutesV6,j1 as wrapUseRoutesV7,XT as zodErrorsIntegration};

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.