1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5158],{65158:(e,t,s)=>{s.d(t,{getSession:()=>K}),s(56221);var n,r,a,o,c,i=s(43529),l=s.t(i,2);class d extends Error{constructor(e,t){e instanceof Error?super(void 0,{cause:{err:e,...e.cause,...t}}):"string"==typeof e?(t instanceof Error&&(t={err:t,...t.cause}),super(e,t)):super(void 0,e),this.name=this.constructor.name,this.type=this.constructor.type??"AuthError",this.kind=this.constructor.kind??"error",Error.captureStackTrace?.(this,this.constructor);let s=`https://errors.authjs.dev#${this.type.toLowerCase()}`;this.message+=`${this.message?". ":""}Read more at ${s}`}}class p extends d{}p.kind="signIn";class u extends d{}u.type="AdapterError";class h extends d{}h.type="AccessDenied";class y extends d{}y.type="CallbackRouteError";class x extends d{}x.type="ErrorPageLoop";class E extends d{}E.type="EventError";class g extends d{}g.type="InvalidCallbackUrl";class v extends p{constructor(){super(...arguments),this.code="credentials"}}v.type="CredentialsSignin";class A extends d{}A.type="InvalidEndpoints";class U extends d{}U.type="InvalidCheck";class b extends d{}b.type="JWTSessionError";class S extends d{}S.type="MissingAdapter";class k extends d{}k.type="MissingAdapterMethods";class L extends d{}L.type="MissingAuthorize";class T extends d{}T.type="MissingSecret";class f extends p{}f.type="OAuthAccountNotLinked";class m extends p{}m.type="OAuthCallbackError";class R extends d{}R.type="OAuthProfileParseError";class _ extends d{}_.type="SessionTokenError";class w extends p{}w.type="OAuthSignInError";class C extends p{}C.type="EmailSignInError";class N extends d{}N.type="SignOutError";class I extends d{}I.type="UnknownAction";class M extends d{}M.type="UnsupportedStrategy";class P extends d{}P.type="InvalidProvider";class H extends d{}H.type="UntrustedHost";class O extends d{}O.type="Verification";class X extends p{}X.type="MissingCSRF";class V extends d{}V.type="DuplicateConditionalUI";class W extends d{}W.type="MissingWebAuthnAutocomplete";class $ extends d{}$.type="WebAuthnVerificationError";class j extends p{}j.type="AccountNotLinked";class B extends d{}B.type="ExperimentalFeatureNotEnabled";class D extends d{}async function F(e,t,s){var n,r;let a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o="".concat((n=t,"undefined"==typeof window?"".concat(n.baseUrlServer).concat(n.basePathServer):n.basePath),"/").concat(e);try{let e={headers:{"Content-Type":"application/json",...(null==a||null==(r=a.headers)?void 0:r.cookie)?{cookie:a.headers.cookie}:{}}};(null==a?void 0:a.body)&&(e.body=JSON.stringify(a.body),e.method="POST");let t=await fetch(o,e),s=await t.json();if(!t.ok)throw s;return s}catch(e){return s.error(new D(e.message,e)),null}}function J(e){let t=new URL("http://localhost:3000/api/auth");e&&!e.startsWith("http")&&(e="https://".concat(e));let s=new URL(e||t),n=("/"===s.pathname?t.pathname:s.pathname).replace(/\/$/,""),r="".concat(s.origin).concat(n);return{origin:s.origin,host:s.host,path:n,base:r,toString:()=>r}}var z=s(8482);let q={baseUrl:J(null!=(r=z.env.NEXTAUTH_URL)?r:z.env.VERCEL_URL).origin,basePath:J(z.env.NEXTAUTH_URL).path,baseUrlServer:J(null!=(o=null!=(a=z.env.NEXTAUTH_URL_INTERNAL)?a:z.env.NEXTAUTH_URL)?o:z.env.VERCEL_URL).origin,basePathServer:J(null!=(c=z.env.NEXTAUTH_URL_INTERNAL)?c:z.env.NEXTAUTH_URL).path,_lastSync:0,_session:void 0,_getSession:()=>{}},G={debug:console.debug,error:console.error,warn:console.warn};async function K(e){var t;let s=await F("session",q,G,e);return(null==(t=null==e?void 0:e.broadcast)||t)&&("undefined"==typeof BroadcastChannel?{postMessage:()=>{},addEventListener:()=>{},removeEventListener:()=>{},name:"next-auth",onmessage:null,onmessageerror:null,close:()=>{},dispatchEvent:()=>!1}:new BroadcastChannel("next-auth")).postMessage({event:"session",data:{trigger:"getSession"}}),s}null==(n=i.createContext)||n.call(l,void 0)}}]);
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.