PageSourceSearch

https://heyagent.pages.dev/_next/static/chunks/635-c901542db3f6cc44.js

js heyagent.pages.dev collected 2026-10-03 05:12:48 UTC 10,050 bytes, 2 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[635],{2601:function(e,t,n){"use strict";var s,r;e.exports=(null==(s=n.g.process)?void 0:s.env)&&"object"==typeof(null==(r=n.g.process)?void 0:r.env)?n.g.process:n(8960)},8960:function(e){!function(){var t={229:function(e){var t,n,s,r=e.exports={};function o(){throw Error("setTimeout has not been defined")}function a(){throw Error("clearTimeout has not been defined")}function i(e){if(t===setTimeout)return setTimeout(e,0);if((t===o||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:o}catch(e){t=o}try{n="function"==typeof clearTimeout?clearTimeout:a}catch(e){n=a}}();var c=[],l=!1,u=-1;function d(){l&&s&&(l=!1,s.length?c=s.concat(c):u=-1,c.length&&h())}function h(){if(!l){var e=i(d);l=!0;for(var t=c.length;t;){for(s=c,c=[];++u<t;)s&&s[u].run();u=-1,t=c.length}s=null,l=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===a||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}(e)}}function p(e,t){this.fun=e,this.array=t}function f(){}r.nextTick=function(e){var t=Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];c.push(new p(e,t)),1!==c.length||l||i(h)},p.prototype.run=function(){this.fun.apply(null,this.array)},r.title="browser",r.browser=!0,r.env={},r.argv=[],r.version="",r.versions={},r.on=f,r.addListener=f,r.once=f,r.off=f,r.removeListener=f,r.removeAllListeners=f,r.emit=f,r.prependListener=f,r.prependOnceListener=f,r.listeners=function(e){return[]},r.binding=function(e){throw Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(e){throw Error("process.chdir is not supported")},r.umask=function(){return 0}}},n={};function s(e){var r=n[e];if(void 0!==r)return r.exports;var o=n[e]={exports:{}},a=!0;try{t[e](o,o.exports,s),a=!1}finally{a&&delete n[e]}return o.exports}s.ab="//";var r=s(229);e.exports=r}()},2635:function(e,t,n){"use strict";n.d(t,{eA:function(){return er},zB:function(){return en},w7:function(){return es},kP:function(){return Y}});var s=n(7437),r=n(2265);class o 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 a extends o{}a.kind="signIn";class i extends o{}i.type="AdapterError";class c extends o{}c.type="AccessDenied";class l extends o{}l.type="CallbackRouteError";class u extends o{}u.type="ErrorPageLoop";class d extends o{}d.type="EventError";class h extends o{}h.type="InvalidCallbackUrl";class p extends a{constructor(){super(...arguments),this.code="credentials"}}p.type="CredentialsSignin";class f extends o{}f.type="InvalidEndpoints";class v extends o{}v.type="InvalidCheck";class g extends o{}g.type="JWTSessionError";class y extends o{}y.type="MissingAdapter";class w extends o{}w.type="MissingAdapterMethods";class m extends o{}m.type="MissingAuthorize";class x extends o{}x.type="MissingSecret";class E extends a{}E.type="OAuthAccountNotLinked";class b extends a{}b.type="OAuthCallbackError";class S extends o{}S.type="OAuthProfileParseError";class L extends o{}L.type="SessionTokenError";class k extends a{}k.type="OAuthSignInError";class _ extends a{}_.type="EmailSignInError";class T extends o{}T.type="SignOutError";class U extends o{}U.type="UnknownAction";class A extends o{}A.type="UnsupportedStrategy";class R extends o{}R.type="InvalidProvider";class $ extends o{}$.type="UntrustedHost";class C extends o{}C.type="Verification";class P extends a{}P.type="MissingCSRF";class I extends o{}I.type="DuplicateConditionalUI";class M extends o{}M.type="MissingWebAuthnAutocomplete";class N extends o{}N.type="WebAuthnVerificationError";class O extends a{}O.type="AccountNotLinked";class j extends o{}j.type="ExperimentalFeatureNotEnabled";class W extends o{}class X extends o{}async function B(e,t,n,s={}){let r=`${D(t)}/${e}`;try{let e={headers:{"Content-Type":"application/json",...s?.headers?.cookie?{cookie
1:s.headers.cookie}:{}}};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 W(e.message,e)),null}}function D(e){return"undefined"==typeof window?`${e.baseUrlServer}${e.basePathServer}`:e.basePath}function F(){return Math.floor(Date.now()/1e3)}function H(e){let t=new URL("http://localhost:3000/api/auth");e&&!e.startsWith("http")&&(e=`https://${e}`);let n=new URL(e||t),s=("/"===n.pathname?t.pathname:n.pathname).replace(/\/$/,""),r=`${n.origin}${s}`;return{origin:n.origin,host:n.host,path:s,base:r,toString:()=>r}}var V=n(2601);let z={baseUrl:H("https://heyagent.pages.dev").origin,basePath:H("https://heyagent.pages.dev").path,baseUrlServer:H(V.env.NEXTAUTH_URL_INTERNAL??"https://heyagent.pages.dev"??V.env.VERCEL_URL).origin,basePathServer:H(V.env.NEXTAUTH_URL_INTERNAL??"https://heyagent.pages.dev").path,_lastSync:0,_session:void 0,_getSession:()=>{}},J=null;function q(){return"undefined"==typeof BroadcastChannel?{postMessage:()=>{},addEventListener:()=>{},removeEventListener:()=>{},name:"next-auth",onmessage:null,onmessageerror:null,close:()=>{},dispatchEvent:()=>!1}:new BroadcastChannel("next-auth")}function G(){return null===J&&(J=q()),J}let K={debug:console.debug,error:console.error,warn:console.warn},Q=r.createContext?.(void 0);function Y(e){if(!Q)throw Error("React Context is unavailable in Server Components");let t=r.useContext(Q),{required:n,onUnauthenticated:s}=e??{},o=n&&"unauthenticated"===t.status;return(r.useEffect(()=>{if(o){let e=`${z.basePath}/signin?${new URLSearchParams({error:"SessionRequired",callbackUrl:window.location.href})}`;s?s():window.location.href=e}},[o,s]),o)?{data:t.data,update:t.update,status:"loading"}:t}async function Z(e){let t=await B("session",z,K,e);return(e?.broadcast??!0)&&q().postMessage({event:"session",data:{trigger:"getSession"}}),t}async function ee(){let e=await B("csrf",z,K);return e?.csrfToken??""}async function et(){return B("providers",z,K)}async function en(e,t,n){let{callbackUrl:s,...r}=t??{},{redirect:o=!0,redirectTo:a=s??window.location.href,...i}=r,c=D(z),l=await et();if(!l){let e=`${c}/error`;window.location.href=e;return}if(!e||!l[e]){let e=`${c}/signin?${new URLSearchParams({callbackUrl:a})}`;window.location.href=e;return}let u=l[e].type;if("webauthn"===u)throw TypeError(`Provider id "${e}" refers to a WebAuthn provider.
2Please use \`import { signIn } from "next-auth/webauthn"\` instead.`);let d=`${c}/${"credentials"===u?"callback":"signin"}/${e}`,h=await ee(),p=await fetch(`${d}?${new URLSearchParams(n)}`,{method:"post",headers:{"Content-Type":"application/x-www-form-urlencoded","X-Auth-Return-Redirect":"1"},body:new URLSearchParams({...i,csrfToken:h,callbackUrl:a})}),f=await p.json();if(o){let e=f.url??a;window.location.href=e,e.includes("#")&&window.location.reload();return}let v=new URL(f.url).searchParams.get("error")??void 0,g=new URL(f.url).searchParams.get("code")??void 0;return p.ok&&await z._getSession({event:"storage"}),{error:v,code:g,status:p.status,ok:p.ok,url:v?null:f.url}}async function es(e){let{redirect:t=!0,redirectTo:n=e?.callbackUrl??window.location.href}=e??{},s=D(z),r=await ee(),o=await fetch(`${s}/signout`,{method:"post",headers:{"Content-Type":"application/x-www-form-urlencoded","X-Auth-Return-Redirect":"1"},body:new URLSearchParams({csrfToken:r,callbackUrl:n})}),a=await o.json();if(G().postMessage({event:"session",data:{trigger:"signout"}}),t){let e=a.url??n;window.location.href=e,e.includes("#")&&window.location.reload();return}return await z._getSession({event:"storage"}),a}function er(e){if(!Q)throw Error("React Context is unavailable in Server Components");let{children:t,basePath:n,refetchInterval:o,refetchWhenOffline:a}=e;n&&(z.basePath=n);let i=void 0!==e.session;z._lastSync=i?F():0;let[c,l]=r.useState(()=>(i&&(z._session=e.session),e.session)),[u,d]=r.useState(!i);r.useEffect(()=>(z._getSession=async({event:e}={})=>{try{let t="storage"===e;if(t||void 0===z._session){z._lastSync=F(),z._session=await Z({broadcast:!t}),l(z._session);return}if(!e||null===z._session||F()<z._lastSync)return;z._lastSync=F(),z._session=await Z(),l(z._session)}catch(e){K.error(new X(e.message,e))}finally{d(!1)}},z._getSession(),()=>{z._lastSync=0,z._session=void 0,z._getSession=()=>{}}),[]),r.useEffect(()=>{let e=()=>z._getSession({event:"storage"});return G().addEventListener("message",e),()=>G().removeEventListener("message",e)},[]),r.useEffect(()=>{let{refetchOnWindowFocus:t=!0}=e,n=()=>{t&&"visible"===document.visibilityState&&z._getSession({event:"visibilitychange"})};return document.addEventListener("visibilitychange",n,!1),()=>document.removeEventListener("visibilitychange",n,!1)},[e.refetchOnWindowFocus]);let h=function(){let[e,t]=r.useState("undefined"!=typeof navigator&&navigator.onLine),n=()=>t(!0),s=()=>t(!1);return r.useEffect(()=>(window.addEventListener("online",n),window.addEventListener("offline",s),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",s)}),[]),e}(),p=!1!==a||h;r.useEffect(()=>{if(o&&p){let e=setInterval(()=>{z._session&&z._getSession({event:"poll"})},1e3*o);return()=>clearInterval(e)}},[o,p]);let f=r.useMemo(()=>({data:c,status:u?"loading":c?"authenticated":"unauthenticated",async update(e){if(u)return;d(!0);let t=await B("session",z,K,void 0===e?void 0:{body:{csrfToken:await ee(),data:e}});return d(!1),t&&(l(t),G().postMessage({event:"session",data:{trigger:"getSession"}})),t}}),[c,u]);return(0,s.jsx)(Q.Provider,{value:f,children:t})}}}]);

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.