1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9565],{523:(t,e,s)=>{t.exports=s(67301)},30255:(t,e,s)=>{"use strict";let n;s.d(e,{O:()=>N});let i="9.46.0",r=globalThis;function o(t){let e=t.__SENTRY__=t.__SENTRY__||{};return e.version=e.version||i,e[i]=e[i]||{}}function a(t,e,s=r){let n=s.__SENTRY__=s.__SENTRY__||{},o=n[i]=n[i]||{};return o[t]||(o[t]=e())}let c="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;function h(t=r.crypto||r.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 u(){return Date.now()/1e3}let _={};function l(t,...e){c&&function(){return c?a("loggerSettings",()=>({enabled:!1})):{enabled:!1}}().enabled&&function(t){if(!("console"in r))return t();let e=r.console,s={},n=Object.keys(_);n.forEach(t=>{let n=_[t];s[t]=e[t],e[t]=n});try{return t()}finally{n.forEach(t=>{e[t]=s[t]})}}(()=>{r.console[t](`Sentry Logger [${t}]:`,...e)})}let p={log:function(...t){l("log",...t)},warn:function(...t){l("warn",...t)}},d=Object.prototype.toString,g="_sentrySpan";function f(t,e){if(e)try{Object.defineProperty(t,g,{value:e,writable:!0,configurable:!0})}catch{c&&p.log(`Failed to add non-enumerable property "${g}" to object`,t)}else delete t[g]}class m{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:h(),sampleRand:Math.random()}}clone(){let t=new m;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,f(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}=r;if(!t?.now||!t.timeOrigin)return u;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:h()),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 m?e.getScopeData():"[object Object]"===d.call(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,f(this,void 0),this._attachments=[],this.setPropagationContext({traceId:h(),sampleRand:Math.random()}),this._notifyScopeListeners(),this}addBreadcrumb(t,e){let s="number"==typeof e?e:100;if(s<=0)return this;let n={timestamp:u(),...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[g]}}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||h();if(!this._client)return c&&p.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||h();if(!this._client)return c&&p.warn("No client configured on scope - will not capture message!"),n;let i=Error(t);return this._client.captureMessage(t,e,{originalException:t,syntheticException:i,...s,event_id:n},this),n}captureEvent(t,e){let s=e?.event_id||h();return this._client?this._client.captureEvent(t,{...e,event_id:s},this):c&&p.warn("No client configured on scope - will not capture event!"),s}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEac
1h(t=>{t(this)}),this._notifyingListeners=!1)}}class S{constructor(t,e){let s,n;s=t||new m,n=e||new m,this._stack=[{scope:s}],this._isolationScope=n}withScope(t){var e;let s,n=this._pushScope();try{s=t(n)}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=(o(r),r),e=o(t);return e.stack=e.stack||new S(a("defaultCurrentScope",()=>new m),a("defaultIsolationScope",()=>new m))}function y(t){return v().withScope(t)}function b(t,e){let s=v();return s.withScope(()=>(s.getStackTop().scope=t,e(t)))}function x(t){return v().withScope(()=>t(v().getIsolationScope()))}function w(t){let e=o(t);return e.acs?e.acs:{withIsolationScope:x,withScope:y,withSetScope:b,withSetIsolationScope:(t,e)=>x(e),getCurrentScope:()=>v().getScope(),getIsolationScope:()=>v().getIsolationScope()}}function E(){return w((o(r),r)).getCurrentScope()}let k=["user","level","extra","contexts","tags","fingerprint","propagationContext"];async function C(t){let e=E().getClient();return e?e.flush(t):(c&&p.warn("Cannot flush events. No client defined."),Promise.resolve(!1))}let L="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;async function P(){try{L&&p.log("Flushing events..."),await C(2e3),L&&p.log("Done flushing events")}catch(t){L&&p.log("Error while flushing events:\n",t)}}async function N(t){let{req:e,res:s,err:n}=t,i=s?.statusCode||t.statusCode;if(i&&i<500||!t.pathname)return Promise.resolve();!function(...t){let e=w((o(r),r));if(2===t.length){let[s,n]=t;return s?e.withSetScope(s,n):e.withScope(n)}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),n=("string"==typeof e["x-forwarded-proto"]?e["x-forwarded-proto"]:void 0)||t.protocol||(t.socket?.encrypted?"https":"http"),i=t.url||"",r=function({url:t,protocol:e,host:s}){return t?.startsWith("http")?t:t&&s?`${e}://${s}${t}`:void 0}({url:i,host:s,protocol:n}),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}}(i),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=n||`_error.js called with falsy error (${n})`,E().captureException(s,function(t){if(t){var e;return(e=t)instanceof m||"function"==typeof e||Object.keys(t).some(t=>k.includes(t))?{captureContext:t}:t}}({mechanism:{type:"instrument",handled:!1,data:{function:"_error.getInitialProps"}}}))});var a=P();let c=r[Symbol.for("@vercel/request-context")],h=c?.get?.();h?.waitUntil&&h.waitUntil(a)}}}]); 2//# sourceMappingURL=9565-217d4f90e8b8288b.js.map
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.