PageSourceSearch

https://www.alphaxiv.org/assets/AuthFlow-47IJq3EK.js

js alphaxiv.org collected 2026-10-01 10:26:51 UTC 21,205 bytes, 3 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]="01a0f51d-c7b9-79b3-a87b-9e6bdf92cf97")}catch(e){}}();import{a as e}from"./rolldown-runtime-Cyuzqnbw.js";import{t}from"./react-BjcluYZV.js";import{t as n}from"./link-DvwI1pHE.js";import{t as r}from"./jsx-runtime-BH1R-mb2.js";import{n as i}from"./useNavigate-BfC9Za0j.js";import{t as a}from"./useLocation-B0AE-sKT.js";import{X as o,f as s,r as c,w as l}from"./react-query-helpers-ef4mbdxy.js";import{l as u}from"./live-query-CmNsybN6.js";import{o as d}from"./user-55pNusO7.js";import{n as f}from"./react-DvucTI-8.js";import{t as p}from"./meo-button-hrtjhLpl.js";import{a as m,n as h}from"./react-mutation-B9M7zENF.js";import{t as g}from"./input-DXb9v3fr.js";import{a as _,r as v,t as y}from"./auth-client-C0Lvs30o.js";import{t as b}from"./FormError-hVhhiE7S.js";import{n as x,t as ee}from"./ResendOtpLine-FJCAOa5U.js";import{Qa as S,fn as C}from"./index-DK9I7wrN.js";import{t as w}from"./AppleButton-5Tt75flt.js";import{t as T}from"./GoogleButton-BP228JaC.js";import{n as E,r as D}from"./use-user-agent-Bclq0q2h.js";import{t as te}from"./auth-Dz6xSvBy.js";import{t as O}from"./PasswordInput-Ck545-8-.js";import{t as k}from"./auth-P7AwVGZs.js";import{t as A}from"./HuggingFaceLogo-CnIBEK03.js";var j=e(t(),1),M=e(r(),1),N=(0,j.forwardRef)(({as:e=`div`,...t},n)=>(0,M.jsx)(e,{...t,ref:n})),P=`https://challenges.cloudflare.com/turnstile/v0/api.js`,F=`cf-turnstile-script`,I=`onloadTurnstileCallback`,L=e=>!!document.getElementById(e),R=({render:e=`explicit`,onLoadCallbackName:t=I,scriptOptions:{nonce:n=``,defer:r=!0,async:i=!0,id:a=``,appendTo:o,onError:s,crossOrigin:c=``}={}})=>{let l=a||`cf-turnstile-script`;if(L(l))return;let u=document.createElement(`script`);u.id=l,u.src=`${P}?onload=${t}&render=${e}`,!document.querySelector(`script[src="${u.src}"]`)&&(u.defer=!!r,u.async=!!i,n&&u.setAttribute(`nonce`,n),c&&(u.crossOrigin=c),s&&(u.onerror=s,delete window[t]),(o===`body`?document.body:document.getElementsByTagName(`head`)[0]).appendChild(u))},z={normal:{width:300,height:65},compact:{width:150,height:140},invisible:{width:0,height:0,overflow:`hidden`},flexible:{minWidth:300,width:`100%`,height:65},interactionOnly:{width:`fit-content`,height:`auto`,display:`flex`}};function B(e){if(e!==`invisible`&&e!==`interactionOnly`)return e}function V(e=F){let[t,n]=(0,j.useState)(!1);return(0,j.useEffect)(()=>{let t=()=>{L(e)&&n(!0)},r=new MutationObserver(t);return r.observe(document,{childList:!0,subtree:!0}),t(),()=>{r.disconnect()}},[e]),t}var H=`unloaded`,U,ne=new Promise((e,t)=>{U={resolve:e,reject:t},H===`ready`&&e(void 0)}),W=(e=I)=>(H===`unloaded`&&(H=`loading`,window[e]=()=>{U.resolve(),H=`ready`,delete window[e]}),ne),re=(0,j.forwardRef)((e,t)=>{let{scriptOptions:n,options:r={},siteKey:i,onWidgetLoad:a,onSuccess:o,onExpire:s,onError:c,onBeforeInteractive:l,onAfterInteractive:u,onUnsupported:d,onTimeout:f,onLoadScript:p,id:m,style:h,as:g=`div`,injectScript:_=!0,rerenderOnCallbackChange:v=!1,...y}=e,b=r.size,x=(0,j.useCallback)(()=>b===void 0?{}:r.execution===`execute`?z.invisible:r.appearance===`interaction-only`?z.interactionOnly:z[b],[r.execution,b,r.appearance]),[ee,S]=(0,j.useState)(x()),C=(0,j.useRef)(null),[w,T]=(0,j.use
1State)(!1),E=(0,j.useRef)(void 0),D=(0,j.useRef)(!1),te=m||`cf-turnstile`,O=(0,j.useRef)({onSuccess:o,onError:c,onExpire:s,onBeforeInteractive:l,onAfterInteractive:u,onUnsupported:d,onTimeout:f});(0,j.useEffect)(()=>{v||(O.current={onSuccess:o,onError:c,onExpire:s,onBeforeInteractive:l,onAfterInteractive:u,onUnsupported:d,onTimeout:f})});let k=n?.id||`cf-turnstile-script`,A=V(k),P=n?.onLoadCallbackName||`onloadTurnstileCallback`,F=r.appearance||`always`,I=(0,j.useMemo)(()=>({sitekey:i,action:r.action,cData:r.cData,theme:r.theme||`auto`,language:r.language||`auto`,tabindex:r.tabIndex,"response-field":r.responseField,"response-field-name":r.responseFieldName,size:B(b),retry:r.retry||`auto`,"retry-interval":r.retryInterval||8e3,"refresh-expired":r.refreshExpired||`auto`,"refresh-timeout":r.refreshTimeout||`auto`,execution:r.execution||`render`,appearance:r.appearance||`always`,"feedback-enabled":r.feedbackEnabled??!0,callback:e=>{D.current=!0,v?o?.(e):O.current.onSuccess?.(e)},"error-callback":v?c:(...e)=>O.current.onError?.(...e),"expired-callback":v?s:(...e)=>O.current.onExpire?.(...e),"before-interactive-callback":v?l:(...e)=>O.current.onBeforeInteractive?.(...e),"after-interactive-callback":v?u:(...e)=>O.current.onAfterInteractive?.(...e),"unsupported-callback":v?d:(...e)=>O.current.onUnsupported?.(...e),"timeout-callback":v?f:(...e)=>O.current.onTimeout?.(...e)}),[r.action,r.appearance,r.cData,r.execution,r.language,r.refreshExpired,r.responseField,r.responseFieldName,r.retry,r.retryInterval,r.tabIndex,r.theme,r.feedbackEnabled,r.refreshTimeout,i,b,v,v?o:null,v?c:null,v?s:null,v?l:null,v?u:null,v?d:null,v?f:null]),L=(0,j.useCallback)(()=>typeof window<`u`&&!!window.turnstile,[]);return(0,j.useEffect)(function(){_&&!w&&(W(P),R({onLoadCallbackName:P,scriptOptions:{...n,id:k}}))}
1,[_,w,n,k,P]),(0,j.useEffect)(function(){H!==`ready`&&W(P).then(()=>T(!0)).catch(console.error)},[P]),(0,j.useEffect)(function(){if(!C.current||!w)return;let e=!1;return(async()=>{e||!C.current||(E.current=window.turnstile.render(C.current,I),E.current&&a?.(E.current))})(),()=>{e=!0,E.current&&(window.turnstile.remove(E.current),D.current=!1)}},[te,w,I]),(0,j.useImperativeHandle)(t,()=>{let{turnstile:e}=window;return{getResponse(){if(!e?.getResponse||!E.current||!L()){console.warn(`Turnstile has not been loaded`);return}return e.getResponse(E.current)},async getResponsePromise(e=3e4,t=100){return new Promise((n,r)=>{let i,a=async()=>{if(D.current&&window.turnstile&&E.current)try{let e=window.turnstile.getResponse(E.current);return i&&clearTimeout(i),e?n(e):r(Error(`No response received`))}catch(e){return i&&clearTimeout(i),console.warn(`Failed to get response`,e),r(Error(`Failed to get response`))}i||=setTimeout(()=>{i&&clearTimeout(i),r(Error(`Timeout`))},e),await new Promise(e=>setTimeout(e,t)),await a()};a()})},reset(){if(!e?.reset||!E.current||!L()){console.warn(`Turnstile has not been loaded`);return}r.execution===`execute`&&S(z.invisible);try{D.current=!1,e.reset(E.current)}catch(e){console.warn(`Failed to reset Turnstile widget ${E.current}`,e)}},remove(){if(!e?.remove||!E.current||!L()){console.warn(`Turnstile has not been loaded`);return}S(z.invisible),D.current=!1,e.remove(E.current),E.current=null},render(){if(!e?.render||!C.current||!L()||E.current){console.warn(`Turnstile has not been loaded or container not found`);return}let t=e.render(C.current,I);return E.current=t,E.current&&a?.(E.current),r.execution!==`execute`&&S(b?z[b]:{}),t},execute(){if(r.execution!==`execute`){console.warn(`Execution mode is not set to "execute"`);return}if(!e?.execute||!C.current||!E.current||!L()){console.warn(`Turnstile has not been loaded or container not found`);return}e.execute(C.current),S(b?z[b]:{})},isExpired(){return!e?.isExpired||!E.current||!L()?(console.warn(`Turnstile has not been loaded`),!1):e.isExpired(E.current)}}},[E,r.execution,b,I,C,L,w,a]),(0,j.useEffect)(()=>{if(w||!A)return;if(window.turnstile){T(!0);return}let e=setInterval(()=>{window.turnstile&&(T(!0),clearInterval(e))},50);return()=>{clearInterval(e)}},[w,A]),(0,j.useEffect)(()=>{S(x())},[r.execution,b,F]),(0,j.useEffect)(()=>{!A||typeof p!=`function`||p()},[A]),(0,M.jsx)(N,{ref:C,as:g,id:te,style:{...ee,...h},...y})});re.displayName=`Turnstile`;function ie({disabled:e,onClick:t}){return(0,M.jsxs)(p,{type:`button`,variant:`outline`,size:`extra`,className:`w-full gap-2`,disabled:e,onClick:t,children:[(0,M.jsx)(`img`,{src:A,alt:``,"aria-hidden":!0,className:`size-5`}),`Sign in with Hugging Face`]})}var ae=c([`dev-login-available`],async()=>{let{available:e}=await s(`GET /users/v3/dev-login-available`,{}).unwrap();return e}),oe=h.define({id:`auth/checkEmail`,async mutate(e){return await s(`POST /users/v3/check-account`,{body:{email:e}}).unwrap()},optimistic(){},describe:`check account`,describeResult:null}),se=h.define({id:`auth/signInPassword`,async mutate({email:e,password:t}){let n=await y.signIn.email({email:e,password:t});if(n.error)throw Error(n.error.message??`Sign in failed`);d();let{user:r}=n.data;return{resumeUrl:_(n.data),emailVerified:r?.emailVerified??!0}},optimistic(){},describe:`sign in`,describeResult:null}),ce=`0x4AAAAAADiQS1JTPONoI3Vg`,le=h.define({id:`auth/signUp`,async mutate(e){let t=await y.signUp.email({email:e.email,password:e.password,name:`${e.firstName} ${e.lastName}`.trim()},e.captchaToken?{headers:{"x-captcha-response":e.captchaToken}}:void 0);if(t.error)throw Error(t.error.message??`Could not create account`);d(),await y.emailOtp.sendVerificationOtp({email:e.email,type:`email-verification`})},optimistic(){},describe:`sign up`,describeResult:null}),ue=h.define({id:`auth/devLoginPreset`,async mutate(e){let{email:t,password:n}=await s(`POST /users/v3/dev-login`,{body:{preset:e}}).unwrap(),r=await y.signIn.email({email:t,password:n});if(r.error)throw Error(r.error.message??`Dev sign in failed`);return d(),_(r.data)},optimistic(){},describe:`sign in`,describeResult:null}),de=h.define({id:`auth/signInPasskey`,async mutate(){let e=await y.signIn.passkey();if(e?.error)throw Error(e.error.message??`Passkey sign in failed`);return d(),_(e?.data)},optimistic(){},describe:`sign in with a passkey`,describeResult:null}),fe=h.define({id:`auth/sendSignInOtp`,async mutate(e){let t=await y.emailOtp.sendVerificationOtp({email:e,type:`sign-in`});if(t.error)throw Error(t.error.message??`Could not send a sign-in code`)},optimistic(){},describe:`send sign-in code`,describeResult:null}),pe=h.define({id:`auth/signInOtp`,async mutate({email:e,otp:t}){let n=await y.signIn.emailOtp({email:e,otp:t});if(n.error)throw Error(n.error.message??`Sign in failed`);return d(),_(n.data)},optimistic(){},describe:`sign in`,describeResult:null});function me(e){let t=e.toLowerCase();return t.includes(`visual studio code`)||t.includes(`vs code`)||t===`vscode`?`Visual Studio Code`:t.includes(`cursor`)?`Cursor`:e}function G(e){if(!e)return!1;try{let t=new URL(e);return(t.hostname===`127.0.0.1`||t.hostname===`localhost`)&&t.pathname===`/`}catch{return!1}}function he(e,t){let n=e?.trim();return n?me(n):G(t)?`Visual Studio Code`:`your MCP client`}function K({intent:e}){let t=i(),r=a({select:e=>e.searchStr}),{flow:s,error:c,client_id:h,redirect_uri:A}=S({from:`/_sidebar/_auth`}),N=C(s),P=!!h,F=N===`/`?`/onboard`:`/onboard?next=${encodeURIComponent(N)}
1`,I=E(D()),[L,R]=(0,j.useState)(`email`),[z,B]=f(k),[V,H]=(0,j.useState)(``),[U,ne]=(0,j.useState)({hasPassword:!1,hasGoogle:!1,hasApple:!1,hasHuggingFace:!1,hasPasskey:!1}),W=m(oe);m(ue);let{data:me}=l({...ae,enabled:!1}),G=m(se),K=m(le),J=m(de),Y=m(te),X=m(fe),Z=m(pe),{data:be}=l({queryKey:[`oauth-public-client`,h],queryFn:h?()=>v(h):o,enabled:P}),xe=P?he(be?.client_name,A):null,Se=(0,j.useRef)(void 0),[Ce,Q]=(0,j.useState)(null);function $(e){e?window.location.assign(e):t({to:N,replace:!0})}function we(e){e.emailVerified&&$(e.resumeUrl)}function Te(){J.runWithOptions({onSuccessData:$})}function Ee(){if(I)return;let e=window.location.origin+window.location.pathname+window.location.search;y.signIn.social({provider:`google`,callbackURL:P?e:window.location.origin+N,newUserCallbackURL:P?e:`${window.location.origin}${F}`,errorCallbackURL:e})}function De(){if(I)return;let e=window.location.origin+window.location.pathname+window.location.search;y.signIn.social({provider:`apple`,callbackURL:P?e:window.location.origin+N,newUserCallbackURL:P?e:`${window.location.origin}${F}`,errorCallbackURL:e})}function Oe(){if(I)return;let e=window.location.origin+window.location.pathname+window.location.search;y.signIn.oauth2({providerId:`huggingface`,callbackURL:P?e:window.location.origin+N,newUserCallbackURL:P?e:`${window.location.origin}${F}`,errorCallbackURL:e})}let ke=(0,j.useRef)(!1);(0,j.useEffect)(()=>{if(!c||ke.current)return;
1ke.current=!0,u(c===`access_denied`?`Sign-in was cancelled.`:c===`account_not_linked`?`An account with this email already exists. Sign in with your password, then connect this provider in account settings.`:`Sign-in failed. Please try again.`,`error`);let e=new URLSearchParams(window.location.search);e.delete(`error`);let n=e.toString();t({href:`${window.location.pathname}${n?`?${n}`:``}`,replace:!0})},[c,t]);let Ae=(0,j.useRef)(!1);(0,j.useEffect)(()=>{e!==`sign-in`||Ae.current||(Ae.current=!0,y.signIn.passkey({autoFill:!0}).then(e=>{if(e&&!e.error){d();let n=_(e.data);n?window.location.assign(n):t({to:N,replace:!0})}}).catch(()=>{}))},[e,t,N]);function je(e){if(W.isPending||G.isPending)return;let t=new FormData(e),n=(t.get(`email`)??``).trim(),r=t.get(`password`)??``;n&&(B(n),W.runWithOptions(n,{onSuccessData:({exists:e,...t})=>{if(ne(t),e&&t.hasPassword&&r){G.runWithOptions({email:n,password:r},{onSuccessData:we,onError:()=>R(`password`)});return}e?t.hasPassword?R(`password`):R(`methods`):R(`create`)}}))}function Me(){X.runWithOptions(z,{onSuccessUi:()=>{H(``),R(`code`)}})}if(L===`email`){let t=e===`sign-up`;return(0,M.jsxs)(`form`,{className:`flex flex-col gap-6`,onSubmit:e=>{e.preventDefault(),je(e.currentTarget)},children:[(0,M.jsxs)(`div`,{className:`flex flex-col gap-2`,children:[(0,M.jsx)(`h1`,{className:`text-[32px] font-bold`,children:t?`Create your account`:`Sign in to alphaXiv`}),(0,M.jsx)(`p`,{className:`text-subtext`,children:t?`Welcome! Enter your email to get started.`:`Welcome! Enter your email to continue.`})]}),xe&&(0,M.jsx)(_e,{clientName:xe}),(0,M.jsxs)(`div`,{className:`flex flex-col gap-3`,children:[(0,M.jsx)(T,{disabled:I,onClick:Ee}),(0,M.jsx)(w,{disabled:I,onClick:De}),(0,M.jsx)(ie,{disabled:I,onClick:Oe}),I&&(0,M.jsx)(ve,{})]}),(0,M.jsx)(ye,{}),(0,M.jsx)(g,{id:`email`,name:`email`,type:`email`,size:`extra`,"aria-label":`Email address`,autoComplete:t?`email`:`email webauthn`,placeholder:`Enter your email address`,defaultValue:z,onChange:e=>B(e.target.value),required:!0,autoFocus:!0}),(0,M.jsx)(`input`,{type:`password`,name:`password`,autoComplete:`current-password`,tabIndex:-1,"aria-hidden":`true`,className:`sr-only`}),(0,M.jsx)(b,{message:W.errorMessage}),(0,M.jsx)(p,{variant:`primary`,type:`submit`,size:`extra`,className:`w-full`,isLoading:W.isPending||G.isPending,children:`Continue`}),(0,M.jsx)(`p`,{className:`text-sm`,children:t?(0,M.jsxs)(M.Fragment,{children:[`Already have an account?`,` `,(0,M.jsx)(`a`,{href:`/signin${r}`,className:`font-medium text-custom-red hover:underline`,children:`Sign in`})]}):(0,M.jsxs)(M.Fragment,{children:[`Don’t have an account?`,` `,(0,M.jsx)(`a`,{href:`/signup${r}`,className:`font-medium text-custom-red hover:underline`,children:`Sign up`})]})}),!1]})}if(L===`methods`){let e=U.hasGoogle||U.hasApple||U.hasHuggingFace;return(0,M.jsxs)(`div`,{className:`flex flex-col gap-6`,children:[(0,M.jsxs)(`div`,{className:`flex flex-col gap-2`,children:[(0,M.jsx)(`h1`,{className:`text-[32px] font-bold`,children:`Sign in to your account`}),(0,M.jsx)(q,{email:z,onChange:()=>R(`email`)}),(0,M.jsx)(`p`,{className:`text-subtext`,children:e?`This account doesn't use a password.`:`This account signs in with a one-time code.`})]}),U.hasGoogle&&(0,M.jsx)(T,{disabled:I,onClick:Ee}),U.hasApple&&(0,M.jsx)(w,{disabled:I,onClick:De}),U.hasHuggingFace&&(0,M.jsx)(ie,{disabled:I,onClick:Oe}),I&&e&&(0,M.jsx)(ve,{}),(0,M.jsx)(p,{type:`button`,size:`extra`,variant:e?`outline`:`primary`,className:`w-full`,isLoading:X.isPending,onClick:Me,children:`Email me a one-time code`}),U.hasPasskey&&(0,M.jsx)(p,{type:`button`,size:`extra`,variant:`outline`,className:`w-full`,isLoading:J.isPending,onClick:Te,children:`Sign in with a passkey`}),(0,M.jsx)(b,{message:X.errorMessage??J.errorMessage})]})}return L===`code`?(0,M.jsxs)(`form`,{className:`flex flex-col gap-6`,onSubmit:e=>{e.preventDefault(),Z.runWithOptions({email:z,otp:V},{onSuccessData:$,onError:()=>H(``)})},children:[(0,M.jsxs)(`div`,{className:`flex flex-col gap-2`,children:[(0,M.jsx)(`h1`,{className:`text-[32px] font-bold`,children:`Enter your co
1de`}),(0,M.jsx)(q,{email:z,onChange:()=>R(`email`)}),(0,M.jsxs)(`p`,{className:`text-subtext`,children:[`Enter the `,6,`-digit code sent to your email address.`]})]}),(0,M.jsx)(x,{value:V,onChange:H}),(0,M.jsx)(ee,{resend:e=>X.runWithOptions(z,{onError:e})}),(0,M.jsx)(b,{message:Z.errorMessage??X.errorMessage}),(0,M.jsx)(p,{variant:`primary`,type:`submit`,size:`extra`,className:`w-full`,disabled:V.length<6,isLoading:Z.isPending,children:`Sign in`})]}):L===`password`?(0,M.jsxs)(`form`,{className:`flex flex-col gap-6`,onSubmit:e=>{e.preventDefault();let t=new FormData(e.currentTarget).get(`password`);G.runWithOptions({email:z,password:t},{onSuccessData:we})},children:[(0,M.jsxs)(`div`,{className:`flex flex-col gap-2`,children:[(0,M.jsx)(`h1`,{className:`text-[32px] font-bold`,children:`Enter your password`}),(0,M.jsx)(q,{email:z,onChange:()=>R(`email`)})]}),(0,M.jsx)(ge,{email:z}),(0,M.jsxs)(`div`,{className:`flex flex-col gap-2`,children:[(0,M.jsx)(O,{id:`password`,name:`password`,size:`extra`,"aria-label":`Password`,autoComplete:`current-password`,placeholder:`Enter your password`,required:!0,autoFocus:!0}),(0,M.jsx)(p,{type:`button`,variant:`link`,size:`inline`,className:`self-start text-sm`,disabled:Y.isPending,onClick:()=>Y.runWithOptions(z,{onSuccessUi:()=>{let e=new URLSearchParams(window.location.search);e.set(`email`,z),t({href:`/reset-password?${e}`})}}),children:`Forgot password?`})]}),(0,M.jsx)(b,{message:G.errorMessage??Y.errorMessage??J.errorMessage??X.errorMessage}),(0,M.jsxs)(`div`,{className:`flex flex-col gap-3`,children:[(0,M.jsx)(p,{type:`button`,size:`extra`,variant:`outline`,className:`w-full`,isLoading:X.isPending,onClick:Me,children:`Email me a one-time code instead`}),U.hasPasskey&&(0,M.jsx)(p,{type:`button`,size:`extra`,variant:`outline`,className:`w-full`,isLoading:J.isPending,onClick:Te,children:`Sign in with a passkey instead`}),(0,M.jsx)(p,{variant:`primary`,type:`submit`,size:`extra`,className:`w-full`,isLoading:G.isPending,children:`Continue`})]})]}):(0,M.jsxs)(`form`,{className:`flex flex-col gap-6`,onSubmit:e=>{e.preventDefault();let t=new FormData(e.currentTarget);K.runWithOptions({email:z,password:t.get(`password`),firstName:t.get(`firstName`),lastName:t.get(`lastName`),captchaToken:Ce},{onError:()=>{Se.current?.reset(),Q(null)}})},children:[(0,M.jsxs)(`div`,{className:`flex flex-col gap-2`,children:[(0,M.jsx)(`h1`,{className:`text-[32px] font-bold`,children:`Create your account`}),(0,M.jsx)(q,{email:z,onChange:()=>R(`email`)})]}),(0,M.jsx)(ge,{email:z}),(0,M.jsxs)(`div`,{className:`grid grid-cols-2 gap-3`,children:[(0,M.jsx)(g,{id:`firstName`,name:`firstName`,size:`extra`,"aria-label":`First name`,autoComplete:`given-name`,placeholder:`First name`,required:!0,autoFocus:!0}),(0,M.jsx)(g,{id:`lastName`,name:`lastName`,size:`extra`,"aria-label":`Last name`,autoComplete:`family-name`,placeholder:`Last name`,required:!0})]}),(0,M.jsx)(O,{id:`password`,name:`password`,size:`extra`,"aria-label":`Password`,autoComplete:`new-password`,placeholder:`Create a password`,minLength:8,required:!0}),(0,M.jsxs)(`p`,{className:`text-sm text-subtext`,children:[`By creating an account, you agree to the`,` `,(0,M.jsx)(n,{to:`/terms`,className:`text-custom-red hover:underline`,children:`Terms of Service`}),` `,`and`,` `,(0,M.jsx)(n,{to:`/privacy`,className:`text-custom-red hover:underline`,children:`Privacy Policy`}),`.`]}),(0,M.jsx)(re,{ref:Se,siteKey:ce,onSuccess:Q,onExpire:()=>Q(null),onError:()=>Q(null)}),(0,M.jsx)(b,{message:K.errorMessage}),(0,M.jsx)(p,{variant:`primary`,type:`submit`,size:`extra`,className:`w-full`,isLoading:K.isPending,disabled:!!ce&&!Ce,children:`Create account`})]})}function ge({email:e}){return(0,M.jsx)(`input`,{type:`email`,name:`username`,autoComplete:`username`,value:e,readOnly:!0,tabIndex:-1,"aria-hidden":`true`,className:`sr-only`})}function q({email:e,onChange:t}){return(0,M.jsxs)(`p`,{className:`text-subtext`,children:[(0,M.jsx)(`span`,{className:`text-text`,children:e}),` `,(0,M.jsx)(p,{type:`button`,variant:`link`,size:`inline`,onClick:t,children:`Change`})]})}function _e({clientName:e}){return(0,M.jsxs)(`div`,{className:`rounded-xl border border-custom-red/20 bg-custom-red/5 px-3 py-2 text-sm text-subtext`,children:[`After signing in, you'll grant MCP access to`,` `,(0,M.jsx)(`span`,{className:`font-medium text-text`,children:e}),`.`]})}function ve(){return(0,M.jsx)(`p`,{className:`text-sm text-error`,children:`Sign in with Google and Apple are unavailable in an embedded/in-app browser. Instead, use your standard browser app to Sign In.`})}function ye(){return(0,M.jsxs)(`div`,{className:`flex items-center gap-3 text-subtext`,children:[(0,M.jsx)(`div`,{className:`h-px flex-1 bg-border`}),(0,M.jsx)(`span`,{className:`text-sm`,children:`or`}),(0,M.jsx)(`div`,{className:`h-px flex-1 bg-border`})]})}
1export{K as t};
2//# sourceMappingURL=AuthFlow-47IJq3EK.js.map
3//# chunkId=01a0f51d-c7b9-79b3-a87b-9e6bdf92cf97

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.