"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[996],{1008:(t,e,s)=>{s.d(e,{BY:()=>a,EU:()=>r,Se:()=>o});let n="10.8.0";var i=s(6219);function r(){return o(i.O),i.O}function o(t){let e=t.__SENTRY__=t.__SENTRY__||{};return e.version=e.version||n,e[n]=e[n]||{}}function a(t,e,s=i.O){let r=s.__SENTRY__=s.__SENTRY__||{},o=r[n]=r[n]||{};return o[t]||(o[t]=e())}},6219:(t,e,s)=>{s.d(e,{O:()=>n});let n=globalThis},20996:(t,e,s)=>{s.d(e,{Cp:()=>c,bX:()=>h});var n=s(54641),i=s(62036),r=s(61350),o=s(34195);let a=["user","level","extra","contexts","tags","fingerprint","propagationContext"];function c(t,e){return(0,n.o5)().captureException(t,function(t){if(t){var e;return(e=t)instanceof o.H||"function"==typeof e||Object.keys(t).some(t=>a.includes(t))?{captureContext:t}:t}}(e))}async function h(t){let e=(0,n.KU)();return e?e.flush(t):(i.T&&r.Yz.warn("Cannot flush events. No client defined."),Promise.resolve(!1))}},34195:(t,e,s)=>{let n;s.d(e,{H:()=>l});var i=s(62036),r=s(6219);function o(t=function(){let t=r.O;return t.crypto||t.msCrypto}()){let e=()=>16*Math.random();try{if(t?.randomUUID)return t.randomUUID().replace(/-/g,"");t?.getRandomValues&&(e=()=>{let e=new Uint8Array(1);return t.getRandomValues(e),e[0]})}catch{}return"10000000100040008000100000000000".replace(/[018]/g,t=>(t^(15&e())>>t/4).toString(16))}function a(){return Date.now()/1e3}var c=s(61350),h=s(66120);let u="_sentrySpan";function _(t,e){if(e)try{Object.defineProperty(t,u,{value:e,writable:!0,configurable:!0})}catch{i.T&&c.Yz.log(`Failed to add non-enumerable property "${u}" to object`,t)}else delete t[u]}class l{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:o(),sampleRand:Math.random()}}clone(){let t=new l;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._attachments=[...this._attachments],t._sdkProcessingMetadata={...this._sdkProcessingMetadata},t._propagationContext={...this._propagationContext},t._client=this._client,t._lastEventId=this._lastEventId,_(t,this[u]),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&&function(t,e={}){if(e.user&&(!t.ipAddress&&e.user.ip_address&&(t.ipAddress=e.user.ip_address),t.did||e.did||(t.did=e.user.id||e.user.email||e.user.username)),t.timestamp=e.timestamp||(n??(n=function(){let{performance:t}=r.O;if(!t?.now||!t.timeOrigin)return a;let e=t.timeOrigin;return()=>(e+t.now())/1e3}()))(),e.abnormal_mechanism&&(t.abnormal_mechanism=e.abnormal_mechanism),e.ignoreDuration&&(t.ignoreDuration=e.ignoreDuration),e.sid&&(t.sid=32===e.sid.length?e.sid:o()),void 0!==e.init&&(t.init=e.init),!t.did&&e.did&&(t.did=`${e.did}`),"number"==typeof e.started&&(t.started=e.started),t.ignoreDuration)t.duration=void 0;else if("number"==typeof e.duration)t.duration=e.duration;else{let e=t.timestamp-t.started;t.duration=e>=0?e:0}e.release&&(t.release=e.release),e.environment&&(t.environment=e.environment),!t.ipAddress&&e.ipAddress&&(t.ipAddress=e.ipAddress),!t.userAgent&&e.userAgent&&(t.userAgent=e.userAgent),"number"==typeof e.errors&&(t.errors=e.errors),e.status&&(t.status=e.status)}(this._session,{user:t}),this._notifyScopeListeners(),this}getUser(){return this._user}setTags(t){return this._tags={...this._tags,...t},this._notifyScopeListeners(),this}setTag(t,e){return this._tags={...this._tags,[t]:e},this._notifyScopeListeners(),this}setExtras(t){return this._extra={...this._extra,...t},this._notifyScopeListeners(),this}setExtra(t,e){return this._extra={...this._extra,[t]:e},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,e){return null===e?delete this._contexts[t]:this._contexts[t]=e,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;let e="function"==typeof t?t(this):t,{tags:s,extra:n,user:i,contexts:r,level:o,fingerprint:a=[],propagationContext:c}=(e instanceof l?e.getScopeData():(0,h.Qd)(e)?t:void 0)||{};return this._tags={...this._tags,...s},this._extra={...this._extra,...n},this._contexts={...this._contexts,...r},i&&Object.keys(i).length&&(this._user=i),o&&(this._level=o),a.length&&(this._fingerprint=a),c&&(this._propagationContext=c),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._session=void 0,_(this,void 0),this._attachments=[],this.setPropagationContext({traceId:o(),sampleRand:Math.random()}),this._notifyScopeListeners(),this}addBreadcrumb(t,e){let s="number"==typeof e?e:100;if(s<=0)return this;let n={timestamp:a(),...t,message:t.message?function(t,e=0){return"string"!=typeof t||0===e||t.length<=e?t:`${t.slice(0,e)}...`}(t.message,2048):t.message};return this._breadcrumbs.push(n),this._breadcrumbs.length>s&&(this._breadcrumbs=this._breadcrumbs.slice(-s),this._client?.recordDroppedEvent("buffer_overflow","log_item")),this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(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:this[u]}}setSDKProcessingMetadata(t){return this._sdkProcessingMetadata=function t(e,s,n=2){if(!s||"object"!=typeof s||n<=0)return s;if(e&&0===Object.keys(s).length)return e;let i={...e};for(let e in s)Object.prototype.hasOwnProperty.call(s,e)&&(i[e]=t(i[e],s[e],n-1));return i}(this._sdkProcessingMetadata,t,2),this}setPropagationContext(t){return this._propagationContext=t,this}getPropagationContext(){return this._propagationContext}captureException(t,e){let s=e?.event_id||o();if(!this._client)return i.T&&c.Yz.warn("No client configured on scope - will not capture exception!"),s;let n=Error("Sentry syntheticException");return this._client.captureException(t,{originalException:t,syntheticException:n,...e,event_id:s},this),s}captureMessage(t,e,s){let n=s?.event_id||o();if(!this._client)return i.T&&c.Yz.warn("No client configured on scope - will not capture message!"),n;let r=Error(t);return this._client.captureMessage(t,e,{originalException:t,syntheticException:r,...s,event_id:n},this),n}captureEvent(t,e){let s=e?.event_id||o();return this._client?this._client.captureEvent(t,{...e,event_id:s},this):i.T&&c.Yz.warn("No client configured on scope - will not capture event!"),s}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(t=>{t(this)}),this._notifyingListeners=!1)}}},54641:(t,e,s)=>{s.d(e,{KU:()=>d,o5:()=>l,v4:()=>p});var n=s(1008),i=s(34195),r=s(66120);class o{constructor(t,e){let s,n;s=t||new i.H,n=e||new i.H,this._stack=[{scope:s}],this._isolationScope=n}withScope(t){let e,s=this._pushScope();try{e=t(s)}catch(t){throw this._popScope(),t}return(0,r.Qg)(e)?e.then(t=>(this._popScope(),t),t=>{throw this._popScope(),t}):(this._popScope(),e)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){let t=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:t}),t}_popScope(){return!(this._stack.length<=1)&&!!this._stack.pop()}}function a(){let t=(0,n.EU)(),e=(0,n.Se)(t);return e.stack=e.stack||new o((0,n.BY)("defaultCurrentScope",()=>new i.H),(0,n.BY)("defaultIsolationScope",()=>new i.H))}function c(t){return a().withScope(t)}function h(t,e){let s=a();return s.withScope(()=>(s.getStackTop().scope=t,e(t)))}function u(t){return a().withScope(()=>t(a().getIsolationScope()))}function _(t){let e=(0,n.Se)(t);return e.acs?e.acs:{withIsolationScope:u,withScope:c,withSetScope:h,withSetIsolationScope:(t,e)=>u(e),getCurrentScope:()=>a().getScope(),getIsolationScope:()=>a().getIsolationScope()}}function l(){return _((0,n.EU)()).getCurrentScope()}function p(...t){let e=_((0,n.EU)());if(2===t.length){let[s,n]=t;return s?e.withSetScope(s,n):e.withScope(n)}return e.withScope(t[0])}function d(){return l().getClient()}},61350:(t,e,s)=>{s.d(e,{Yz:()=>u});var n=s(1008),i=s(62036),r=s(6219);let o={};function a(){return h().enabled}function c(t,...e){i.T&&a()&&function(t){if(!("console"in r.O))return t();let e=r.O.console,s={},n=Object.keys(o);n.forEach(t=>{let n=o[t];s[t]=e[t],e[t]=n});try{return t()}finally{n.forEach(t=>{e[t]=s[t]})}}(()=>{r.O.console[t](`Sentry Logger [${t}]:`,...e)})}function h(){return i.T?(0,n.BY)("loggerSettings",()=>({enabled:!1})):{enabled:!1}}let u={enable:function(){h().enabled=!0},disable:function(){h().enabled=!1},isEnabled:a,log:function(...t){c("log",...t)},warn:function(...t){c("warn",...t)},error:function(...t){c("error",...t)}}},62036:(t,e,s)=>{s.d(e,{T:()=>n});let n="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__},66120:(t,e,s)=>{s.d(e,{Qd:()=>i,Qg:()=>r});let n=Object.prototype.toString;function i(t){return"[object Object]"===n.call(t)}function r(t){return!!(t?.then&&"function"==typeof t.then)}}}]);