1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7764],{15333:(e,t,n)=>{n.d(t,{A:()=>i});var s=n(36128);let r=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.filter((e,t,n)=>!!e&&n.indexOf(e)===t).join(" ")};var a={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let o=(0,s.forwardRef)((e,t)=>{let{color:n="currentColor",size:o=24,strokeWidth:i=2,absoluteStrokeWidth:l,className:c="",children:d,iconNode:u,...h}=e;return(0,s.createElement)("svg",{ref:t,...a,width:o,height:o,stroke:n,strokeWidth:l?24*Number(i)/Number(o):i,className:r("lucide",c),...h},[...u.map(e=>{let[t,n]=e;return(0,s.createElement)(t,n)}),...Array.isArray(d)?d:[d]])}),i=(e,t)=>{let n=(0,s.forwardRef)((n,a)=>{let{className:i,...l}=n;return(0,s.createElement)(o,{ref:a,iconNode:t,className:r("lucide-".concat(e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()),i),...l})});return n.displayName="".concat(e),n}},73816:(e,t,n)=>{n.r(t),n.d(t,{SessionContext:()=>es,SessionProvider:()=>ed,__NEXTAUTH:()=>Q,getCsrfToken:()=>eo,getProviders:()=>ei,getSession:()=>ea,signIn:()=>el,signOut:()=>ec,useSession:()=>er});var s,r,a,o,i,l=n(50156),c=n(36128),d=n.t(c,2);class u 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 n=`https://errors.authjs.dev#${this.type.toLowerCase()}`;this.message+=`${this.message?". ":""}Read more at ${n}`}}class h extends u{}h.kind="signIn";class p extends u{}p.type="AdapterError";class v extends u{}v.type="AccessDenied";class f extends u{}f.type="CallbackRouteError";class w extends u{}w.type="ErrorPageLoop";class g extends u{}g.type="EventError";class y extends u{}y.type="InvalidCallbackUrl";class E extends h{constructor(){super(...arguments),this.code="credentials"}}E.type="CredentialsSignin";class x extends u{}x.type="InvalidEndpoints";class m extends u{}m.type="InvalidCheck";class S extends u{}S.type="JWTSessionError";class b extends u{}b.type="MissingAdapter";class _ extends u{}_.type="MissingAdapterMethods";class k extends u{}k.type="MissingAuthorize";class L extends u{}L.type="MissingSecret";class U extends h{}U.type="OAuthAccountNotLinked";class A extends h{}A.type="OAuthCallbackError";class R extends u{}R.type="OAuthProfileParseError";class C extends u{}C.type="SessionTokenError";class T extends h{}T.type="OAuthSignInError";class P extends h{}P.type="EmailSignInError";class N extends u{}N.type="SignOutError";class I extends u{}I.type="UnknownAction";class M extends u{}M.type="UnsupportedStrategy";class O extends u{}O.type="InvalidProvider";class j extends u{}j.type="UntrustedHost";class X extends u{}X.type="Verification";class H extends h{}H.type="MissingCSRF";class W extends u{}W.type="DuplicateConditionalUI";class $ extends u{}$.type="MissingWebAuthnAutocomplete";class V extends u{}V.type="WebAuthnVerificationError";class z extends h{}z.type="AccountNotLinked";class B extends u{}B.type="ExperimentalFeatureNotEnabled";class D extends u{}class F extends u{}async function J(e,t,n){let s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},r="".concat(q(t),"/").concat(e);try{var a;let e={headers:{"Content-Type":"application/json",...(null==s||null==(a=s.headers)?void 0:a.cookie)?{cookie:s.headers.cookie}:{}}};(null==s?void 0:s.body)&&(e.body=JSON.stringify(s.body),e.method="POST");let t=await fetch(r,e),n=await t.json();if(!t.ok)throw n;return n}catch(e){return n.error(new D(e.message,e)),null}}function q(e){return"undefined"==typeof window?"".concat(e.baseUrlServer).concat(e.basePathServer):e.basePath}function Z(){return Math.floor(Date.now()/1e3)}function G(e){let t=new URL("http://localhost:3000/api/auth");e&&!e.startsWith("http")&&(e="https://".concat(e));let n=new URL(e||t),s=("/"===n.pathname?t.pathname:n.pathname).replace(/\/$/,""),r="".concat(n.origin).concat(s);return{origin:n.origin,host:n.host,path:s,base:r,toString:()=>r}}var K=n(8065);
1let Q={baseUrl:G(null!=(r=K.env.NEXTAUTH_URL)?r:K.env.VERCEL_URL).origin,basePath:G(K.env.NEXTAUTH_URL).path,baseUrlServer:G(null!=(o=null!=(a=K.env.NEXTAUTH_URL_INTERNAL)?a:K.env.NEXTAUTH_URL)?o:K.env.VERCEL_URL).origin,basePathServer:G(null!=(i=K.env.NEXTAUTH_URL_INTERNAL)?i:K.env.NEXTAUTH_URL).path,_lastSync:0,_session:void 0,_getSession:()=>{}},Y=null;function ee(){return"undefined"==typeof BroadcastChannel?{postMessage:()=>{},addEventListener:()=>{},removeEventListener:()=>{},name:"next-auth",onmessage:null,onmessageerror:null,close:()=>{},dispatchEvent:()=>!1}:new BroadcastChannel("next-auth")}function et(){return null===Y&&(Y=ee()),Y}let en={debug:console.debug,error:console.error,warn:console.warn},es=null==(s=c.createContext)?void 0:s.call(d,void 0);function er(e){if(!es)throw Error("React Context is unavailable in Server Components");let t=c.useContext(es),{required:n,onUnauthenticated:s}=null!=e?e:{},r=n&&"unauthenticated"===t.status;return(c.useEffect(()=>{if(r){let e="".concat(Q.basePath,"/signin?").concat(new URLSearchParams({error:"SessionRequired",callbackUrl:window.location.href}));s?s():window.location.href=e}},[r,s]),r)?{data:t.data,update:t.update,status:"loading"}:t}async function ea(e){var t;let n=await J("session",Q,en,e);return(null==(t=null==e?void 0:e.broadcast)||t)&&ee().postMessage({event:"session",data:{trigger:"getSession"}}),n}async function eo(){var e;let t=await J("csrf",Q,en);return null!=(e=null==t?void 0:t.csrfToken)?e:""}async function ei(){return J("providers",Q,en)}async function el(e,t,n){var s,r,a;let{callbackUrl:o,...i}=null!=t?t:{},{redirect:l=!0,redirectTo:c=null!=o?o:window.location.href,...d}=i,u=q(Q),h=await ei();if(!h){window.location.href="".concat(u,"/error");return}if(!e||!h[e]){let e="".concat(u,"/signin?").concat(new URLSearchParams({callbackUrl:c}));window.location.href=e;return}let p=h[e].type;if("webauthn"===p)throw TypeError(['Provider id "'.concat(e,'" refers to a WebAuthn provider.'),'Please use `import { signIn } from "next-auth/webauthn"` instead.'].join("\n"));let v="".concat(u,"/").concat("credentials"===p?"callback":"signin","/").concat(e),f=await eo(),w=await fetch("".concat(v,"?").concat(new URLSearchParams(n)),{method:"post",headers:{"Content-Type":"application/x-www-form-urlencoded","X-Auth-Return-Redirect":"1"},body:new URLSearchParams({...d,csrfToken:f,callbackUrl:c})}),g=await w.json();if(l){let e=null!=(s=g.url)?s:c;window.location.href=e,e.includes("#")&&window.location.reload();return}let y=null!=(r=new URL(g.url).searchParams.get("error"))?r:void 0,E=null!=(a=new URL(g.url).searchParams.get("code"))?a:void 0;return w.ok&&await Q._getSession({event:"storage"}),{error:y,code:E,status:w.status,ok:w.ok,url:y?null:g.url}}async function ec(e){var t,n;let{redirect:s=!0,redirectTo:r=null!=(t=null==e?void 0:e.callbackUrl)?t:window.location.href}=null!=e?e:{},a=q(Q),o=await eo(),i=await fetch("".concat(a,"/signout"),{method:"post",headers:{"Content-Type":"application/x-www-form-urlencoded","X-Auth-Return-Redirect":"1"},body:new URLSearchParams({csrfToken:o,callbackUrl:r})}),l=await i.json();if(et().postMessage({event:"session",data:{trigger:"signout"}}),s){let e=null!=(n=l.url)?n:r;window.location.href=e,e.includes("#")&&window.location.reload();return}return await Q._getSession({event:"storage"}),l}function ed(e){if(!es)throw Error("React Context is unavailable in Server Components");let{children:t,basePath:n,refetchInterval:s,refetchWhenOffline:r}=e;n&&(Q.basePath=n);let a=void 0!==e.session;Q._lastSync=a?Z():0;let[o,i]=c.useState(()=>(a&&(Q._session=e.session),e.session)),[d,u]=c.useState(!a);c.useEffect(()=>(Q._getSession=async function(){let{event:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};try{let t="storage"===e;if(t||void 0===Q._session){Q._lastSync=Z(),Q._session=await ea({broadcast:!t}),i(Q._session);return}if(!e||null===Q._session||Z()<Q._lastSync)return;Q._lastSync=Z(),Q._session=await ea(),i(Q._session)}catch(e){en.error(new F(e.message,e))}finally{u(!1)}},Q._getSession(),()=>{Q._lastSync=0,Q._session=void 0,Q._getSession=()=>{}}),[]),c.useEffect(()=>{let e=()=>Q._getSession({event:"storage"});return et().addEventListener("message",e),()=>et().removeEventListener("message",e)},[]),c.useEffect(()=>{let{refetchOnWindowFocus:t=!0}=e,n=()=>{t&&"visible"===document.visibilityState&&Q._getSession({event:"visibilitychange"})};return document.addEventListener("visibilitychange",n,!1),()=>document.removeEventListener("visibilitychange",n,!1)},[e.refetchOnWindowFocus]);let h=function(){let[e,t]=c.useState("undefined"!=typeof navigator&&navigator.onLine),n=()=>t(!0),s=()=>t(!1);return c.useEffect(()=>(window.addEventListener("online",n),window.addEventListener("offline",s),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",s)}),[]),e}(),p=!1!==r||h;c.useEffect(()=>{if(s&&p){let e=setInterval(()=>{Q._session&&Q._getSession({event:"poll"})},1e3*s);return()=>clearInterval(e)}},[s,p]);let v=c.useMemo(()=>({data:o,status:d?"loading":o?"authenticated":"unauthenticated",async update(e){if(d)return;u(!0);let t=await J("session",Q,en,void 0===e?void 0:{body:{csrfToken:await eo(),data:e}});return u(!1),t&&(i(t),et().postMessage({event:"session",data:{trigger:"getSession"}})),t}}),[o,d]);return(0,l.jsx)(es.Provider,{value:v,children:t})}}
1,75149:(e,t,n)=>{n.d(t,{A:()=>s});let s=(0,n(15333).A)("CreditCard",[["rect",{width:"20",height:"14",x:"2",y:"5",rx:"2",key:"ynyp8z"}],["line",{x1:"2",x2:"22",y1:"10",y2:"10",key:"1b3vmo"}]])}}]);
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.