1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8174],{98174:function(e,t,s){s.d(t,{w7:function(){return Z}}),s(26705);var n,r,o,a,i,c=s(20955),l=s.t(c,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 u extends d{}u.kind="signIn";class p extends d{}p.type="AdapterError";class h extends d{}h.type="AccessDenied";class y extends d{}y.type="CallbackRouteError";class v extends d{}v.type="ErrorPageLoop";class x extends d{}x.type="EventError";class E extends d{}E.type="InvalidCallbackUrl";class g extends Error{constructor(){super(...arguments),this.code="credentials"}}g.type="CredentialsSignin";class w extends d{}w.type="InvalidEndpoints";class f extends d{}f.type="InvalidCheck";class A extends d{}A.type="JWTSessionError";class U extends d{}U.type="MissingAdapter";class b extends d{}b.type="MissingAdapterMethods";class k extends d{}k.type="MissingAuthorize";class L extends d{}L.type="MissingSecret";class S extends u{}S.type="OAuthAccountNotLinked";class T extends u{}T.type="OAuthCallbackError";class R extends d{}R.type="OAuthProfileParseError";class _ extends d{}_.type="SessionTokenError";class m extends u{}m.type="OAuthSignInError";class C extends u{}C.type="EmailSignInError";class N extends d{}N.type="SignOutError";class I extends d{}I.type="UnknownAction";class P extends d{}P.type="UnsupportedStrategy";class M extends d{}M.type="InvalidProvider";class H extends d{}H.type="UntrustedHost";class O extends d{}O.type="Verification";class X extends u{}X.type="MissingCSRF";class j extends d{}j.type="DuplicateConditionalUI";class V extends d{}V.type="MissingWebAuthnAutocomplete";class W extends d{}W.type="WebAuthnVerificationError";class $ extends u{}$.type="AccountNotLinked";class B extends d{}B.type="ExperimentalFeatureNotEnabled";class D extends d{}async function F(e,t,s){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},r="".concat(J(t),"/").concat(e);try{var o;let e={headers:{"Content-Type":"application/json",...(null==n?void 0:null===(o=n.headers)||void 0===o?void 0:o.cookie)?{cookie:n.headers.cookie}:{}}};(null==n?void 0:n.body)&&(e.body=JSON.stringify(n.body),e.method="POST");let t=await fetch(r,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){return"undefined"==typeof window?"".concat(e.baseUrlServer).concat(e.basePathServer):e.basePath}function z(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 q=s(25566);let G={baseUrl:z(null!==(r=q.env.NEXTAUTH_URL)&&void 0!==r?r:q.env.VERCEL_URL).origin,basePath:z(q.env.NEXTAUTH_URL).path,baseUrlServer:z(null!==(a=null!==(o=q.env.NEXTAUTH_URL_INTERNAL)&&void 0!==o?o:q.env.NEXTAUTH_URL)&&void 0!==a?a:q.env.VERCEL_URL).origin,basePathServer:z(null!==(i=q.env.NEXTAUTH_URL_INTERNAL)&&void 0!==i?i:q.env.NEXTAUTH_URL).path,_lastSync:0,_session:void 0,_getSession:()=>{}},K=null,Q={debug:console.debug,error:console.error,warn:console.warn};async function Y(){var e;let t=await F("csrf",G,Q);return null!==(e=null==t?void 0:t.csrfToken)&&void 0!==e?e:""}async function Z(e){var t,s;let{callbackUrl:n=window.location.href}=null!=e?e:{},r=J(G),o=await Y(),a=await fetch("".concat(r,"/signout"),{method:"post",headers:{"Content-Type":"application/x-www-form-urlencoded","X-Auth-Return-Redirect":"1"},body:new URLSearchParams({csrfToken:o,callbackUrl:n})}),i=await a.json();if(("undefined"==typeof BroadcastChannel?{postMessage:()=>{},addEventListener:()=>{},removeEventListener:()=>{}}:(null===K&&(K=new BroadcastChannel("next-auth")),K)).postMessage({event:"session",data:{trigger:"signout"}}),null===(t=null==e?void 0:e.redirect)||void 0===t||t){let e=null!==(s=i.url)&&void 0!==s?s:n;window.location.href=e,e.includes("#")&&window.location.reload();return}return await G._getSession({event:"storage"}),i}null===(n=c.createContext)||void 0===n||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.