(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[565],{255:(t,e,s)=>{"use strict";let i,n;s.d(e,{O:()=>D});let r="10.32.1",o=globalThis;function a(t){let e=t.__SENTRY__=t.__SENTRY__||{};return e.version=e.version||r,e[r]=e[r]||{}}function c(t,e,s=o){let i=s.__SENTRY__=s.__SENTRY__||{},n=i[r]=i[r]||{};return n[t]||(n[t]=e())}let h="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;function u(t=o.crypto||o.msCrypto){try{if(t?.randomUUID)return t.randomUUID().replace(/-/g,"")}catch{}return i||(i="10000000100040008000100000000000"),i.replace(/[018]/g,t=>(t^(15&16*Math.random())>>t/4).toString(16))}function _(){return Date.now()/1e3}let l={};function p(t,...e){h&&function(){return h?c("loggerSettings",()=>({enabled:!1})):{enabled:!1}}().enabled&&function(t){if(!("console"in o))return t();let e=o.console,s={},i=Object.keys(l);i.forEach(t=>{let i=l[t];s[t]=e[t],e[t]=i});try{return t()}finally{i.forEach(t=>{e[t]=s[t]})}}(()=>{o.console[t](`Sentry Logger [${t}]:`,...e)})}let d={log:function(...t){p("log",...t)},warn:function(...t){p("warn",...t)}},f=Object.prototype.toString,g="_sentrySpan";function m(t,e){if(e)try{Object.defineProperty(t,g,{value:e,writable:!0,configurable:!0})}catch{h&&d.log(`Failed to add non-enumerable property "${g}" to object`,t)}else delete t[g]}class b{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._attributes={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext={traceId:u(),sampleRand:Math.random()}}clone(){let t=new b;return t._breadcrumbs=[...this._breadcrumbs],t._tags={...this._tags},t._attributes={...this._attributes},t._extra={...this._extra},t._contexts={...this._contexts},this._contexts.flags&&(t._contexts.flags={values:[...this._contexts.flags.values]}),t._user=this._user,t._level=this._level,t._session=this._session,t._transactionName=this._transactionName,t._fingerprint=this._fingerprint,t._eventProcessors=[...this._eventProcessors],t._attachments=[...this._attachments],t._sdkProcessingMetadata={...this._sdkProcessingMetadata},t._propagationContext={...this._propagationContext},t._client=this._client,t._lastEventId=this._lastEventId,m(t,this[g]),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}=o;if(!t?.now||!t.timeOrigin)return _;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:u()),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.setTags({[t]:e})}setAttributes(t){return this._attributes={...this._attributes,...t},this._notifyScopeListeners(),this}setAttribute(t,e){return this.setAttributes({[t]:e})}removeAttribute(t){return t in this._attributes&&(delete this._attributes[t],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,attributes:i,extra:n,user:r,contexts:o,level:a,fingerprint:c=[],propagationContext:h}=(e instanceof b?e.getScopeData():"[object Object]"===f.call(e)?t:void 0)||{};return this._tags={...this._tags,...s},this._attributes={...this._attributes,...i},this._extra={...this._extra,...n},this._contexts={...this._contexts,...o},r&&Object.keys(r).length&&(this._user=r),a&&(this._level=a),c.length&&(this._fingerprint=c),h&&(this._propagationContext=h),this}clear(){return this._breadcrumbs=[],this._tags={},this._attributes={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._session=void 0,m(this,void 0),this._attachments=[],this.setPropagationContext({traceId:u(),sampleRand:Math.random()}),this._notifyScopeListeners(),this}addBreadcrumb(t,e){let s="number"==typeof e?e:100;if(s<=0)return this;let i={timestamp:_(),...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(i),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,attributes:this._attributes,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,span:this[g]}}setSDKProcessingMetadata(t){return this._sdkProcessingMetadata=function t(e,s,i=2){if(!s||"object"!=typeof s||i<=0)return s;if(e&&0===Object.keys(s).length)return e;let n={...e};for(let e in s)Object.prototype.hasOwnProperty.call(s,e)&&(n[e]=t(n[e],s[e],i-1));return n}(this._sdkProcessingMetadata,t,2),this}setPropagationContext(t){return this._propagationContext=t,this}getPropagationContext(){return this._propagationContext}captureException(t,e){let s=e?.event_id||u();if(!this._client)return h&&d.warn("No client configured on scope - will not capture exception!"),s;let i=Error("Sentry syntheticException");return this._client.captureException(t,{originalException:t,syntheticException:i,...e,event_id:s},this),s}captureMessage(t,e,s){let i=s?.event_id||u();if(!this._client)return h&&d.warn("No client configured on scope - will not capture message!"),i;let n=s?.syntheticException??Error(t);return this._client.captureMessage(t,e,{originalException:t,syntheticException:n,...s,event_id:i},this),i}captureEvent(t,e){let s=e?.event_id||u();return this._client?this._client.captureEvent(t,{...e,event_id:s},this):h&&d.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)}}class S{constructor(t,e){let s,i;s=t||new b,i=e||new b,this._stack=[{scope:s}],this._isolationScope=i}withScope(t){var e;let s,i=this._pushScope();try{s=t(i)}catch(t){throw this._popScope(),t}return(e=s,e?.then&&"function"==typeof e.then)?s.then(t=>(this._popScope(),t),t=>{throw this._popScope(),t}):(this._popScope(),s)}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 v(){let t=(a(o),o),e=a(t);return e.stack=e.stack||new S(c("defaultCurrentScope",()=>new b),c("defaultIsolationScope",()=>new b))}function y(t){return v().withScope(t)}function x(t,e){let s=v();return s.withScope(()=>(s.getStackTop().scope=t,e(t)))}function w(t){return v().withScope(()=>t(v().getIsolationScope()))}function E(t){let e=a(t);return e.acs?e.acs:{withIsolationScope:w,withScope:y,withSetScope:x,withSetIsolationScope:(t,e)=>w(e),getCurrentScope:()=>v().getScope(),getIsolationScope:()=>v().getIsolationScope()}}function k(){return E((a(o),o)).getCurrentScope()}let C=["user","level","extra","contexts","tags","fingerprint","propagationContext"];async function L(t){let e=k().getClient();return e?e.flush(t):(h&&d.warn("Cannot flush events. No client defined."),Promise.resolve(!1))}let P="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;async function N(){try{P&&d.log("Flushing events..."),await L(2e3),P&&d.log("Done flushing events")}catch(t){P&&d.log("Error while flushing events:\n",t)}}function I(){let t=Symbol.for("__cloudflare-context__");return o[t]?.ctx}async function D(t){let{req:e,res:s,err:i}=t,n=s?.statusCode||t.statusCode;if(n&&n<500||!t.pathname)return Promise.resolve();!function(...t){let e=E((a(o),o));if(2===t.length){let[s,i]=t;return s?e.withSetScope(s,i):e.withScope(i)}e.withScope(t[0])}(t=>{var s;if(e){let s=function(t){let e=t.headers||{},s=("string"==typeof e["x-forwarded-host"]?e["x-forwarded-host"]:void 0)||("string"==typeof e.host?e.host:void 0),i=("string"==typeof e["x-forwarded-proto"]?e["x-forwarded-proto"]:void 0)||t.protocol||(t.socket?.encrypted?"https":"http"),n=t.url||"",r=function({url:t,protocol:e,host:s}){return t?.startsWith("http")?t:t&&s?`${e}://${s}${t}`:void 0}({url:n,host:s,protocol:i}),o=t.body||void 0,a=t.cookies;return{url:r,method:t.method,query_string:function(t){if(t)try{let e=new URL(t,"http://s.io").search.slice(1);return e.length?e:void 0}catch{return}}(n),headers:function(t){let e=Object.create(null);try{Object.entries(t).forEach(([t,s])=>{"string"==typeof s&&(e[t]=s)})}catch{}return e}(e),cookies:a,data:o}}(e);t.setSDKProcessingMetadata({normalizedRequest:s})}s=i||`_error.js called with falsy error (${i})`,k().captureException(s,function(t){if(t){var e;return(e=t)instanceof b||"function"==typeof e||Object.keys(t).some(t=>C.includes(t))?{captureContext:t}:t}}({mechanism:{type:"auto.function.nextjs.underscore_error",handled:!1,data:{function:"_error.getInitialProps"}}}))}),function(t){if("function"==typeof I()?.waitUntil){var e;return e=t,I()?.waitUntil(e)}let s=o[Symbol.for("@vercel/request-context")],i=s?.get?.();i?.waitUntil&&i.waitUntil(t)}(N())}},523:(t,e,s)=>{t.exports=s(3826)}}]);