PageSourceSearch

https://account.nostr.build/assets/login-CiVaVERy.js

js nostr.build collected 2026-09-25 19:41:51 UTC 154,788 bytes, 2 lines download raw bytes

1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/AnimatedNBLogo-BOmDz0Kx.js","assets/rolldown-runtime-hePW80VL.js","assets/jsx-runtime-BNakU3Ej.js","assets/compiler-runtime-iSsTcneq.js","assets/clsx-DB0hHKMi.js","assets/features-animation-B8s5SFCr.js"])))=>i.map(i=>d[i]);
2import{r as e}from"./rolldown-runtime-hePW80VL.js";import{n as t,t as n}from"./jsx-runtime-BNakU3Ej.js";import{t as r}from"./link-D2rzSpxu.js";import{t as i}from"./useQuery-Cyb_4wYA.js";import{n as a,r as o}from"./store-BFd9qtpy.js";import{t as s}from"./useSelector-DU79IVjP.js";import{t as c}from"./useNavigate-qHZ6S4gr.js";import{t as l}from"./compiler-runtime-iSsTcneq.js";import{n as u}from"./brand-D1unso-8.js";import{t as d}from"./button-CzhKj0ca.js";import{n as f,t as p}from"./createIcon-D-2Lgu70.js";import{t as m}from"./runtime-CeNELguO.js";import{a as h,c as g,d as _,f as v,h as y,i as b,l as x,o as S,r as C,s as w,t as T,u as ee,w as E,y as te}from"./BunkerLoginDialog-tyhW4VDh.js";import{t as ne}from"./checkout_emailundeliverable1-736HPUW7.js";import{r as re,t as ie}from"./LanguageSwitcher-BbN0244O.js";import{a as ae,c as oe,d as se,h as ce,l as le,m as ue,o as de,p as fe,r as pe,s as me,t as he,u as ge}from"./CodeExpiryCountdown-59mB3WYs.js";import{t as _e}from"./login_passwordplaceholder1-BIVdEzHK.js";import{t as ve}from"./NostrExtensionCheck-vqzOLrmK.js";import{i as ye,n as be,r as xe,t as Se}from"./otp-field-BgSJ6Mfm.js";import{t as Ce}from"./ConfirmDialog-byKSQ56b.js";import{t as D}from"./spinner-DB3AYmIn.js";import{t as we}from"./arrow-left-wELNMCVx.js";import{t as Te}from"./chevron-right-jqTjtCSg.js";import{t as Ee}from"./alert-triangle-hGb9SBvb.js";import{t as De}from"./preload-helper-BZ1Pz5am.js";import{a as Oe,o as ke}from"./schemas-D50QD80I.js";import"./csrf-DjNIXZf7.js";import{n as O}from"./client-BgQjKd08.js";import{n as Ae,t as je}from"./profile-CO4f265y.js";import{r as Me,t as k}from"./field-D9iPrSq4.js";import{t as Ne}from"./input-B-h1F9f4.js";import{t as Pe}from"./format-npub-GPE_Hlg_.js";import{d as A}from"./dropdown-menu-jRDrvZ3W.js";import{ot as Fe}from"./index-DJSr3qW6.js";var Ie=()=>`Sign in with bunker`,Le=()=>`bunkerでサインイン`,Re=()=>`Mit Bunker anmelden`,ze=()=>`Iniciar sesión con bunker`,Be=()=>`Se connecter avec bunker`,Ve=()=>`Accedi con bunker`,j=()=>`Entrar com bunker`,He=()=>`Войти через bunker`,M=()=>`使用 bunker 登录`,N=()=>`ลงชื่อเข้าใช้ด้วย bunker`,P=()=>`bunker로 로그인`,F=()=>`Masuk dengan bunker`,Ue=()=>`Đăng nhập bằng bunker`,I=()=>`Bunker ile oturum aç`,We=(e={},t={})=>{let n=t.locale??m();return n===`ja`?Le(e):n===`de`?Re(e):n===`es`?ze(e):n===`fr`?Be(e):n===`it`?Ve(e):n===`pt`?j(e):n===`ru`?He(e):n===`zh`?M(e):n===`th`?N(e):n===`ko`?P(e):n===`id`?F(e):n===`vi`?Ue(e):n===`tr`?I(e):Ie(e)},L=()=>`That account's session has expired. Sign in again to use it.`,R=()=>`そのアカウントのセッションは期限切れです。もう一度サインインしてご利用ください。`,z=()=>`Die Sitzung dieses Kontos ist abgelaufen. Melden Sie sich erneut an, um es zu nutzen.`,B=()=>`La sesión de esa cuenta ha caducado. Inicia sesión de nuevo para usarla.`,V=()=>`La session de ce compte a expiré. Reconnectez-vous pour l'utiliser.`,H=()=>`La sessione di quell'account è scaduta. Accedi di nuovo per usarlo.`,Ge=()=>`A sessão dessa conta expirou. Entre novamente para usá-la.`,U=()=>`Сессия этой учётной записи истекла. Войдите снова, чтобы использовать её.`,W=()=>`该账户的会话已过期。请重新登录以继续使用。`,G=()=>`เซสชันของบัญชีนั้นหมดอายุแล้ว ลงชื่อเข้าใช้อีกครั้งเพื่อใช้งาน`,Ke=()=>`해당 계정의 세션이 만료되었습니다. 다시 로그인하여 사용하세요.`,qe=()=>`Sesi akun tersebut sudah kedaluwarsa. Masuk lagi untuk menggunakannya.`,Je=()=>`Phiên của tài khoản đó đã hết hạn. Hãy đăng nhập lại để sử dụng.`,K=()=>`Bu hesabın oturumu sona erdi. Kullanmak için yeniden giriş yapın.`,q=(e={},t={})=>{let n=t.locale??m();return n===`ja`?R(e):n===`de`?z(e):n===`es`?B(e):n===`fr`?V(e):n===`it`?H(e):n===`pt`?Ge(e):n===`ru`?U(e):n===`zh`?W(e):n===`th`?G(e):n===`ko`?Ke(e):n===`id`?qe(e):n===`vi`?Je(e):n===`tr`?K(e):L(e)},Ye=()=>`Add another account`,J=()=>`別のアカウントを追加`,Xe=()=>`Weiteres Konto hinzufügen`,Ze=()=>`Añadir otra cuenta`,Qe=()=>`Ajouter un autre compte`,$e=()=>`Aggiungi un altro account`,et=()=>`Adicionar outra conta`,tt=()=>`Добавить другой аккаунт`,nt=()=>`添加其他账户`,rt=()=>`เพิ่มบัญชีอื่น`,it=()=>`다른 계정 추가`,at=()=>`Tambahkan akun lain`,ot=()=>`Thêm tài khoản khác`,st=()=>`Başka bir hesap ekle`,ct=(e={},t={})=>{let n=t.locale??m();return n===`ja`?J(e):n===`de`?Xe(e):n===`es`?Ze(e):n===`fr`?Qe(e):n===`it`?$e(e):n===`pt`?et(e):n===`ru`?tt(e):n===`zh`?nt(e):n===`th`?rt(e):n===`ko`?it(e):n===`id`?at(e):n===`vi`?ot(e):n===`tr`?st(e):Ye(e)},lt=()=>`You're already signed in`,ut=()=>
2`すでにサインインしています`,dt=()=>`Sie sind bereits angemeldet`,ft=()=>`Ya tiene la sesión iniciada`,pt=()=>`Vous êtes déjà connecté`,mt=()=>`Ha già effettuato l'accesso`,ht=()=>`Você já está conectado`,gt=()=>`Вы уже вошли`,_t=()=>`你已登录`,vt=()=>`คุณลงชื่อเข้าใช้อยู่แล้ว`,yt=()=>`이미 로그인되어 있습니다`,bt=()=>`Anda sudah masuk`,xt=()=>`Bạn đã đăng nhập rồi`,St=()=>`Zaten oturum açtınız`,Ct=(e={},t={})=>{let n=t.locale??m();return n===`ja`?ut(e):n===`de`?dt(e):n===`es`?ft(e):n===`fr`?pt(e):n===`it`?mt(e):n===`pt`?ht(e):n===`ru`?gt(e):n===`zh`?_t(e):n===`th`?vt(e):n===`ko`?yt(e):n===`id`?bt(e):n===`vi`?xt(e):n===`tr`?St(e):lt(e)},wt=()=>`Back to your accounts`,Tt=()=>`アカウント一覧に戻る`,Et=()=>`Zurück zu Ihren Konten`,Dt=()=>`Volver a sus cuentas`,Ot=()=>`Retour à vos comptes`,kt=()=>`Torna ai tuoi account`,At=()=>`Voltar para suas contas`,jt=()=>`Вернуться к вашим аккаунтам`,Mt=()=>`返回你的账户`,Nt=()=>`กลับไปที่บัญชีของคุณ`,Pt=()=>`내 계정 목록으로 돌아가기`,Ft=()=>`Kembali ke akun Anda`,It=()=>`Quay lại tài khoản của bạn`,Lt=()=>`Hesaplarınıza dön`,Rt=(e={},t={})=>{let n=t.locale??m();return n===`ja`?Tt(e):n===`de`?Et(e):n===`es`?Dt(e):n===`fr`?Ot(e):n===`it`?kt(e):n===`pt`?At(e):n===`ru`?jt(e):n===`zh`?Mt(e):n===`th`?Nt(e):n===`ko`?Pt(e):n===`id`?Ft(e):n===`vi`?It(e):n===`tr`?Lt(e):wt(e)},zt=()=>`Choose an account`,Bt=()=>`アカウントを選択`,Vt=()=>`Konto auswählen`,Ht=()=>`Elige una cuenta`,Ut=()=>`Choisissez un compte`,Wt=()=>`Scegli un account`,Gt=()=>`Escolha uma conta`,Kt=()=>`Выберите аккаунт`,qt=()=>`选择账户`,Jt=()=>`เลือกบัญชี`,Yt=()=>`계정 선택`,Xt=()=>`Pilih akun`,Zt=()=>`Chọn một tài khoản`,Qt=()=>`Bir hesap seçin`,$t=(e={},t={})=>{let n=t.locale??m();return n===`ja`?Bt(e):n===`de`?Vt(e):n===`es`?Ht(e):n===`fr`?Ut(e):n===`it`?Wt(e):n===`pt`?Gt(e):n===`ru`?Kt(e):n===`zh`?qt(e):n===`th`?Jt(e):n===`ko`?Yt(e):n===`id`?Xt(e):n===`vi`?Zt(e):n===`tr`?Qt(e):zt(e)},en=()=>`That code expired. Request a new one.`,tn=()=>`このコードは期限切れです。新しいコードをリクエストしてください。`,nn=()=>`Dieser Code ist abgelaufen. Fordern Sie einen neuen an.`,rn=()=>`Ese código ha caducado. Solicite uno nuevo.`,an=()=>`Ce code a expiré. Demandez-en un nouveau.`,on=()=>`Questo codice è scaduto. Ne richieda uno nuovo.`,sn=()=>`Esse código expirou. Solicite um novo.`,cn=()=>`Этот код истёк. Запросите новый.`,ln=()=>`该验证码已过期。请重新获取。`,un=()=>`รหัสนั้นหมดอายุแล้ว ขอรหัสใหม่`,dn=()=>`코드가 만료되었습니다. 새 코드를 요청하세요.`,fn=()=>`Kode itu sudah kedaluwarsa. Minta kode baru.`,pn=()=>`Mã đó đã hết hạn. Yêu cầu mã mới.`,mn=()=>`Bu kodun süresi doldu. Yenisini isteyin.`,hn=(e={},t={})=>{let n=t.locale??m();return n===`ja`?tn(e):n===`de`?nn(e):n===`es`?rn(e):n===`fr`?an(e):n===`it`?on(e):n===`pt`?sn(e):n===`ru`?cn(e):n===`zh`?ln(e):n===`th`?un(e):n===`ko`?dn(e):n===`id`?fn(e):n===`vi`?pn(e):n===`tr`?mn(e):en(e)},gn=()=>`That code didn't work - check the DM and try again.`,_n=()=>`このコードは機能しませんでした。DMを確認して再試行してください。`,vn=()=>`Dieser Code hat nicht funktioniert – prüfen Sie die DM und versuchen Sie es erneut.`,yn=()=>`Ese código no funcionó: revise el DM e inténtelo de nuevo.`,bn=()=>`Ce code n'a pas fonctionné : vérifiez le DM et réessayez.`,xn=()=>`Questo codice non ha funzionato: controlli il DM e riprovi.`,Sn=()=>`Esse código não funcionou: verifique o DM e tente de novo.`,Cn=()=>
2`Код не сработал — проверьте сообщение и попробуйте снова.`,wn=()=>`该验证码无效——请查看私信后重试。`,Tn=()=>`รหัสนั้นใช้ไม่ได้ ตรวจสอบ DM แล้วลองอีกครั้ง`,En=()=>`코드가 올바르지 않습니다. DM을 확인하고 다시 시도하세요.`,Dn=()=>`Kode itu tidak berfungsi - periksa DM dan coba lagi.`,On=()=>`Mã đó không hoạt động - kiểm tra DM và thử lại.`,kn=()=>`Bu kod işe yaramadı; DM'i kontrol edip yeniden deneyin.`,An=(e={},t={})=>{let n=t.locale??m();return n===`ja`?_n(e):n===`de`?vn(e):n===`es`?yn(e):n===`fr`?bn(e):n===`it`?xn(e):n===`pt`?Sn(e):n===`ru`?Cn(e):n===`zh`?wn(e):n===`th`?Tn(e):n===`ko`?En(e):n===`id`?Dn(e):n===`vi`?On(e):n===`tr`?kn(e):gn(e)},jn=()=>`Continue to your account`,Mn=()=>`アカウントに進む`,Nn=()=>`Weiter zu Ihrem Konto`,Pn=()=>`Continuar a su cuenta`,Fn=()=>`Continuer vers votre compte`,In=()=>`Continua al tuo account`,Ln=()=>`Continuar para sua conta`,Rn=()=>`Перейти в аккаунт`,zn=()=>`继续前往你的账户`,Bn=()=>`ไปยังบัญชีของคุณต่อ`,Vn=()=>`계정으로 이동`,Hn=()=>`Lanjut ke akun Anda`,Un=()=>`Tiếp tục đến tài khoản của bạn`,Wn=()=>`Hesabınıza devam edin`,Gn=(e={},t={})=>{let n=t.locale??m();return n===`ja`?Mn(e):n===`de`?Nn(e):n===`es`?Pn(e):n===`fr`?Fn(e):n===`it`?In(e):n===`pt`?Ln(e):n===`ru`?Rn(e):n===`zh`?zn(e):n===`th`?Bn(e):n===`ko`?Vn(e):n===`id`?Hn(e):n===`vi`?Un(e):n===`tr`?Wn(e):jn(e)},Kn=()=>`Create your account`,qn=()=>`アカウントを作成`,Jn=()=>`Konto erstellen`,Yn=()=>`Cree su cuenta`,Xn=()=>`Créez votre compte`,Zn=()=>`Crea il tuo account`,Qn=()=>`Crie sua conta`,$n=()=>`Создайте аккаунт`,er=()=>`创建你的账户`,tr=()=>`สร้างบัญชีของคุณ`,nr=()=>`계정 만들기`,rr=()=>`Buat akun Anda`,ir=()=>`Tạo tài khoản của bạn`,ar=()=>`Hesabınızı oluşturun`,or=(e={},t={})=>{let n=t.locale??m();return n===`ja`?qn(e):n===`de`?Jn(e):n===`es`?Yn(e):n===`fr`?Xn(e):n===`it`?Zn(e):n===`pt`?Qn(e):n===`ru`?$n(e):n===`zh`?er(e):n===`th`?tr(e):n===`ko`?nr(e):n===`id`?rr(e):n===`vi`?ir(e):n===`tr`?ar(e):Kn(e)},sr=()=>`New to nostr.build? Start here`,cr=()=>`nostr.build は初めてですか?ここから始めましょう`,lr=()=>`Neu bei nostr.build? Hier starten`,ur=()=>`¿Nuevo en nostr.build? Empiece aquí`,dr=()=>`Nouveau sur nostr.build ? Commencez ici`,fr=()=>`Nuovo su nostr.build? Inizi qui`,pr=()=>`Novo no nostr.build? Comece aqui`,mr=()=>`Впервые на nostr.build? Начните отсюда`,hr=()=>`初次使用 nostr.build?从这里开始`,gr=()=>`เพิ่งเริ่มใช้ nostr.build ใช่ไหม เริ่มที่นี่`,_r=()=>`nostr.build가 처음이신가요? 여기에서 시작하세요`,vr=()=>`Baru di nostr.build? Mulai di sini`,yr=()=>`Mới dùng nostr.build? Bắt đầu tại đây`,br=()=>`nostr.build'de yeni misiniz? Buradan başlayın`,xr=(e={},t={})=>{let n=t.locale??m();return n===`ja`?cr(e):n===`de`?lr(e):n===`es`?ur(e):n===`fr`?dr(e):n===`it`?fr(e):n===`pt`?pr(e):n===`ru`?mr(e):n===`zh`?hr(e):n===`th`?gr(e):n===`ko`?_r(e):n===`id`?vr(e):n===`vi`?yr(e):n===`tr`?br(e):sr(e)},Sr=()=>`Dismiss warning`,Cr=()=>`警告を閉じる`,wr=()=>`Warnung schließen`,Tr=()=>`Descartar advertencia`,Er=()=>`Fermer l'avertissement`,Dr=()=>`Chiudi l'avviso`,Or=()=>`Dispensar aviso`,kr=()=>`Закрыть предупреждение`,Ar=()=>`关闭警告`,jr=()=>`ปิดคำเตือน`,Mr=()=>`경고 닫기`,Nr=()=>`Tutup peringatan`,Pr=()=>`Bỏ qua cảnh báo`,Fr=()=>`Uyarıyı kapat`,Ir=(e={},t={})=>{let n=t.locale??m();return n===`ja`?Cr(e):n===`de`?wr(e):n===`es`?Tr(e):n===`fr`?Er(e):n===`it`?Dr(e):n===`pt`?Or(e):n===`ru`?kr(e):n===`zh`?Ar(e):n===`th`?jr(e):n===`ko`?Mr(e):n===`id`?Nr(e):n===`vi`?Pr(e):n===`tr`?Fr(e):Sr(e)},Lr=()=>`DM verification code`,Rr=()=>`DM確認コード`,zr=()=>`DM-Bestätigungscode`,Br=()=>`Código de verificación del DM`,Vr=()=>`Code de vérification du DM`,Hr=()=>`Codice di verifica del DM`,Ur=()=>`Código de verificação do DM`,Wr=()=>`Код подтверждения из сообщения`,Gr=()=>`私信验证码`,Kr=()=>`รหัสยืนยัน DM`,qr=()=>`DM 인증 코드`,Jr=()=>`Kode verifikasi DM`,Yr=()=>`Mã xác minh DM`,Xr=()=>`DM doğrulama kodu`,Zr=(e={},t={})=>{let n=t.locale??m();return n===`ja`?Rr(e):n===`de`?zr(e):n===`es`?Br(e):n===`fr`?Vr(e):n===`it`?Hr(e):n===`pt`?Ur(e):n===`ru`?Wr(e):n===`zh`?Gr(e):n===`th`?Kr(e):n===`ko`?qr(e):n===`id`?Jr(e):n===`vi`?Yr(e):n===`tr`?Xr(e):Lr(e)},Qr=e=>`You opened a Nostr-DM login link for ${e?.npub}. Click below to finish signing in.`,$r=e=>`${e?.npub} 宛のNostr DMログインリンクを開きました。下をクリックしてサインインを完了してください。`,ei=e=>`Sie haben einen Nostr-DM-Anmeldelink für ${e?.npub} geöffnet. Klicken Sie unten, um die Anmeldung abzuschließen.`,ti=e=>`Has abierto un enlace de inicio de sesión por DM de Nostr para ${e?.npub}. Haz clic abajo para terminar de iniciar sesión.`,ni=e=>`Vous avez ouvert un lien de connexion par DM Nostr pour ${e?.npub}. Cliquez ci-dessous pour terminer la connexion.`,ri=e=>`Ha aperto un link di accesso via DM Nostr per ${e?.npub}. Clicchi qui sotto per completare l'accesso.`,ii=e=>`Você abriu um link de login por DM do Nostr para ${e?.npub}. Clique abaixo para concluir o login.`,ai=e=>`Вы открыли ссылку для входа через сообщение Nostr для ${e?.npub}. Нажмите ниже, чтобы завершить вход.`,oi=e=>`你打开了 ${e?.npub} 的 Nostr 私信登录链接。点击下方以完成登录。`,si=e=>`คุณเปิดลิงก์ลงชื่อเข้าใช้ผ่าน Nostr DM สำหรับ ${e?.npub} คลิกด้านล่างเพื่อลงชื่อเข้าใช้ให้เสร็จสมบูรณ์`,ci=e=>`${e?.npub}에 대한 Nostr DM 로그인 링크를 여셨습니다. 아래를 클릭해 로그인을 완료하세요.`,li=e=>`Anda membuka tautan masuk lewat DM Nostr untuk ${e?.npub}. Klik di bawah untuk menyelesaikan proses masuk.`,ui=e=>`Bạn đã mở liên kết đăng nhập Nostr-DM cho ${e?.npub}. Nhấp bên dưới để hoàn tất đăng nhập.`,di=e=>`${e?.npub} için bir Nostr DM oturum açma bağlantısı açtınız. Oturum açmayı tamamlamak için aşağıya tıklayın.`,fi=(e,t={})=>{let n=t.locale??m();return n===`ja`?$r(e):n===`de`?ei(e):n===`es`?ti(e):n===`fr`?ni(e):n===`it`?ri(e):n===`pt`?ii(e):n===`ru`?ai(e):n===`zh`?oi(e):n===`th`?si(e):n===`ko`?ci(e):n===`id`?li(e):n===`vi`?ui(e):n===`tr`?di(e):Qr(e)},pi=()=>`Could not complete the DM login. Please try again.`,mi=()=>`DMログインを完了できませんでした。再試行してください。`,hi=()=>`Die DM-Anmeldung konnte nicht abgeschlossen werden. Bitte versuchen Sie es erneut.`,gi=()=>`No se pudo completar el inicio de sesión por DM. Inténtelo de nuevo.`,_i=()=>`Impossible de terminer la connexion par DM. Veuillez réessayer.`,vi=()=>`Impossibile completare l'accesso via DM. Riprova.`,yi=()=>`Não foi possível concluir o login por DM. Tente de novo.`,bi=()=>`Не удалось завершить вход через сообщение. Пожалуйста, попробуйте снова.`,xi=()=>`无法完成私信登录。请重试。`,Si=()=>`ไม่สามารถลงชื่อเข้าใช้ด้วย DM ให้เสร็จสมบูรณ์ได้ โปรดลองอีกครั้ง`,Ci=()=>`DM 로그인을 완료하지 못했습니다. 다시 시도해 주세요.`,wi=()=>`Tidak bisa menyelesaikan masuk lewat DM. Mohon coba lagi.`,Ti=()=>`Không thể hoàn tất đăng nhập qua DM. Vui lòng thử lại.`,Ei=()=>`DM ile oturum açma tamamlanamadı. Lütfen yeniden deneyin.`,Di=(e={},t={})=>{let n=t.locale??m();return n===`ja`?mi(e):n===`de`?hi(e):n===`es`?gi(e):n===`fr`?_i(e):n===`it`?vi(e):n===`pt`?yi(e):n===`ru`?bi(e):n===`zh`?xi(e):n===`th`?Si(e):n===`ko`?Ci(e):n===`id`?wi(e):n===`vi`?Ti(e):n===`tr`?Ei(e):pi(e)},Oi=()=>`Could not send the DM. Please try again in a moment.`,ki=()=>`DMを送信できませんでした。少し経ってから再試行してください。`,Ai=()=>`Die DM konnte nicht gesendet werden. Bitte versuchen Sie es gleich noch einmal.`,ji=()=>`No se pudo enviar el DM. Inténtelo de nuevo en un momento.`,Mi=()=>`Impossible d'envoyer le DM. Réessayez dans un instant.`,Ni=()=>`Impossibile inviare il DM. Riprova tra un momento.`,Pi=()=>`Não foi possível enviar o DM. Tente de novo em instantes.`,Fi=()=>`Не удалось отправить сообщение. Попробуйте ещё раз через мгновение.`,Ii=()=>`无法发送私信。请稍后再试。`,Li=()=>`ไม่สามารถส่ง DM ได้ โปรดลองอีกครั้งในอีกสักครู่`,Ri=()=>`DM을 보내지 못했습니다. 잠시 후 다시 시도하세요.`,zi=()=>`Tidak bisa mengirim DM. Mohon coba lagi sebentar.`,Bi=()=>`Không thể gửi DM. Vui lòng thử lại sau giây lát.`,Vi=()=>`DM gönderilemedi. Lütfen birazdan yeniden deneyin.`,Hi=(e={},t={})=>{let n=t.locale??m();return n===`ja`?ki(e):n===`de`?Ai(e):n===`es`?ji(e):n===`fr`?Mi(e):n===`it`?Ni(e):n===`pt`?Pi(e):n===`ru`?Fi(e):n===`zh`?Ii(e):n===`th`?Li(e):n===`ko`?Ri(e):n===`id`?zi(e):n===`vi`?Bi(e):n===`tr`?Vi(e):Oi(e)},Ui=e=>`We sent a one-time code to ${e?.npub} over Nostr DM. Enter it below, or open the magic link in that DM.`,Wi=e=>`${e?.npub} 宛にワンタイムコードをNostr DMで送信しました。下に入力するか、そのDMのマジックリンクを開いてください。`,Gi=e=>`Wir haben einen Einmalcode an ${e?.npub} per Nostr-DM gesendet. Geben Sie ihn unten ein oder öffnen Sie den Magic-Link in dieser DM.`,Ki=e=>`Enviamos un código de un solo uso a ${e?.npub} por DM de Nostr. Introdúzcalo abajo o abra el enlace mágico de ese DM.`,qi=e=>`Nous avons envoyé un code à usage unique à ${e?.npub} par DM Nostr. Saisissez-le ci-dessous, ou ouvrez le lien magique dans ce DM.`,Ji=e=>`Abbiamo inviato un codice monouso a ${e?.npub} via DM Nostr. Lo inserisca qui sotto, o apra il magic link in quel DM.`,Yi=e=>`Enviamos um código de uso único para ${e?.npub} por DM do Nostr. Digite-o abaixo ou abra o link mágico nesse DM.`,Xi=e=>`Мы отправили одноразовый код на ${e?.npub}
2 в сообщении Nostr. Введите его ниже или откройте волшебную ссылку из того сообщения.`,Zi=e=>`我们已通过 Nostr 私信向 ${e?.npub} 发送了一次性验证码。请在下方输入,或打开私信中的魔法链接。`,Qi=e=>`เราได้ส่งรหัสแบบใช้ครั้งเดียวไปยัง ${e?.npub} ทาง Nostr DM แล้ว กรอกรหัสด้านล่าง หรือเปิด magic link ใน DM นั้น`,$i=e=>`${e?.npub}으로 Nostr DM을 통해 일회용 코드를 보냈습니다. 아래에 입력하거나 해당 DM의 매직 링크를 여세요.`,ea=e=>`Kami mengirim kode sekali pakai ke ${e?.npub} lewat DM Nostr. Masukkan di bawah, atau buka tautan ajaib di DM tersebut.`,ta=e=>`Chúng tôi đã gửi mã dùng một lần đến ${e?.npub} qua Nostr DM. Nhập mã bên dưới, hoặc mở liên kết magic trong DM đó.`,na=e=>`${e?.npub} adresine Nostr DM ile tek kullanımlık bir kod gönderdik. Aşağıya girin ya da o DM'deki sihirli bağlantıyı açın.`,ra=(e,t={})=>{let n=t.locale??m();return n===`ja`?Wi(e):n===`de`?Gi(e):n===`es`?Ki(e):n===`fr`?qi(e):n===`it`?Ji(e):n===`pt`?Yi(e):n===`ru`?Xi(e):n===`zh`?Zi(e):n===`th`?Qi(e):n===`ko`?$i(e):n===`id`?ea(e):n===`vi`?ta(e):n===`tr`?na(e):Ui(e)},ia=()=>`Email sign-in code`,aa=()=>`メールのサインインコード`,oa=()=>`E-Mail-Anmeldecode`,sa=()=>`Código de acceso por correo`,ca=()=>`Code de connexion par e-mail`,la=()=>`Codice di accesso via email`,ua=()=>`Código de acesso por e-mail`,da=()=>`Код для входа по почте`,fa=()=>`邮箱登录验证码`,pa=()=>`รหัสเข้าสู่ระบบทางอีเมล`,ma=()=>`이메일 로그인 코드`,ha=()=>`Kode masuk lewat email`,ga=()=>`Mã đăng nhập qua email`,_a=()=>`E-posta giriş kodu`,va=(e={},t={})=>{let n=t.locale??m();return n===`ja`?aa(e):n===`de`?oa(e):n===`es`?sa(e):n===`fr`?ca(e):n===`it`?la(e):n===`pt`?ua(e):n===`ru`?da(e):n===`zh`?fa(e):n===`th`?pa(e):n===`ko`?ma(e):n===`id`?ha(e):n===`vi`?ga(e):n===`tr`?_a(e):ia(e)},ya=()=>`We couldn’t email the code. Please try again.`,ba=()=>`コードを送信できませんでした。もう一度お試しください。`,xa=()=>`Wir konnten den Code nicht senden. Bitte versuche es erneut.`,Sa=()=>`No pudimos enviar el código. Inténtalo de nuevo.`,Ca=()=>`Nous n’avons pas pu envoyer le code. Veuillez réessayer.`,wa=()=>`Non siamo riusciti a inviare il codice. Riprova.`,Ta=()=>`Não foi possível enviar o código. Tente novamente.`,Ea=()=>`Не удалось отправить код. Попробуйте ещё раз.`,Da=()=>`无法发送验证码,请重试。`,Oa=()=>`เราไม่สามารถส่งรหัสได้ โปรดลองอีกครั้ง`,ka=()=>`코드를 보낼 수 없었습니다. 다시 시도해 주세요.`,Aa=()=>`Kami tidak dapat mengirim kode. Silakan coba lagi.`,ja=()=>`Chúng tôi không thể gửi mã. Vui lòng thử lại.`,Ma=()=>`Kodu gönderemedik. Lütfen tekrar deneyin.`,Na=(e={},t={})=>{let n=t.locale??m();return n===`ja`?ba(e):n===`de`?xa(e):n===`es`?Sa(e):n===`fr`?Ca(e):n===`it`?wa(e):n===`pt`?Ta(e):n===`ru`?Ea(e):n===`zh`?Da(e):n===`th`?Oa(e):n===`ko`?ka(e):n===`id`?Aa(e):n===`vi`?ja(e):n===`tr`?Ma(e):ya(e)},Pa=e=>`We emailed a sign-in code to ${e?.email}. Enter it below.`,Fa=e=>`サインインコードを ${e?.email} に送信しました。下に入力してください。`,Ia=e=>`Wir haben einen Anmeldecode an ${e?.email} gesendet. Gib ihn unten ein.`,La=e=>`Enviamos un código de acceso a ${e?.email}. Introdúcelo abajo.`,Ra=e=>`Nous avons envoyé un code de connexion à ${e?.email}. Saisissez-le ci-dessous.`,za=e=>`Abbiamo inviato un codice di accesso a ${e?.email}. Inseriscilo qui sotto.`,Ba=e=>`Enviamos um código de acesso para ${e?.email}. Insira-o abaixo.`,Va=e=>`Мы отправили код для входа на ${e?.email}. Введите его ниже.`,Ha=e=>`我们已将登录验证码发送到 ${e?.email}。请在下方输入。`,Ua=e=>`เราได้ส่งรหัสเข้าสู่ระบบไปที่ ${e?.email} แล้ว กรุณาป้อนด้านล่าง`,Wa=e=>`${e?.email}(으)로 로그인 코드를 보냈습니다. 아래에 입력하세요.`,Ga=e=>`Kami mengirim kode masuk ke ${e?.email}. Masukkan di bawah.`,Ka=e=>`Chúng tôi đã gửi mã đăng nhập đến ${e?.email}. Nhập mã bên dưới.`,qa=e=>`${e?.email} adresine bir giriş kodu gönderdik. Aşağıya girin.`,Ja=(e,t={})=>{let n=t.locale??m();return n===`ja`?Fa(e):n===`de`?Ia(e):n===`es`?La(e):n===`fr`?Ra(e):n===`it`?za(e):n===`pt`?Ba(e):n===`ru`?Va(e):n===`zh`?Ha(e):n===`th`?Ua(e):n===`ko`?Wa(e):n===`id`?Ga(e):n===`vi`?Ka(e):n===`tr`?qa(e):Pa(e)},Ya=()=>`Enter your email above first.`,Xa=()=>`先に上にメールアドレスを入力してください。`,Za=()=>
2`Geben Sie zuerst oben Ihre E-Mail ein.`,Qa=()=>`Introduce tu correo arriba primero.`,$a=()=>`Saisissez d’abord votre e-mail ci-dessus.`,eo=()=>`Inserisci prima la tua email qui sopra.`,to=()=>`Insira primeiro o seu e-mail acima.`,no=()=>`Сначала введите адрес почты выше.`,ro=()=>`请先在上方输入你的邮箱。`,io=()=>`โปรดป้อนอีเมลของคุณด้านบนก่อน`,ao=()=>`먼저 위에 이메일을 입력하세요.`,oo=()=>`Masukkan email Anda di atas terlebih dahulu.`,so=()=>`Vui lòng nhập email của bạn ở trên trước.`,co=()=>`Önce yukarıya e-postanızı girin.`,lo=(e={},t={})=>{let n=t.locale??m();return n===`ja`?Xa(e):n===`de`?Za(e):n===`es`?Qa(e):n===`fr`?$a(e):n===`it`?eo(e):n===`pt`?to(e):n===`ru`?no(e):n===`zh`?ro(e):n===`th`?io(e):n===`ko`?ao(e):n===`id`?oo(e):n===`vi`?so(e):n===`tr`?co(e):Ya(e)},uo=()=>`Enter your npub in the field above, then request a DM.`,fo=()=>`上の欄にnpubを入力してから、DMをリクエストしてください。`,po=()=>`Geben Sie Ihren npub in das Feld oben ein und fordern Sie dann eine DM an.`,mo=()=>`Introduce tu npub en el campo de arriba y luego solicita un DM.`,ho=()=>`Saisissez votre npub dans le champ ci-dessus, puis demandez un DM.`,go=()=>`Inserisci il tuo npub nel campo qui sopra, poi richiedi un DM.`,_o=()=>`Digite seu npub no campo acima e depois solicite um DM.`,vo=()=>`Введите свой npub в поле выше, затем запросите сообщение.`,yo=()=>`请先在上方字段中输入你的 npub,然后再请求私信。`,bo=()=>`กรอก npub ของคุณในช่องด้านบน จากนั้นขอ DM`,xo=()=>`위 칸에 npub을 입력한 뒤 DM을 요청하세요.`,So=()=>`Masukkan npub Anda di kolom di atas, lalu minta DM.`,Co=()=>`Nhập npub của bạn vào ô bên trên, rồi yêu cầu DM.`,wo=()=>`Yukarıdaki alana npub'unuzu girin, ardından bir DM isteyin.`,To=(e={},t={})=>{let n=t.locale??m();return n===`ja`?fo(e):n===`de`?po(e):n===`es`?mo(e):n===`fr`?ho(e):n===`it`?go(e):n===`pt`?_o(e):n===`ru`?vo(e):n===`zh`?yo(e):n===`th`?bo(e):n===`ko`?xo(e):n===`id`?So(e):n===`vi`?Co(e):n===`tr`?wo(e):uo(e)},Eo=()=>`The Nostr extension didn't respond. Try again, or sign in with your password.`,Do=()=>`Nostr拡張機能が応答しませんでした。再試行するか、パスワードでサインインしてください。`,Oo=()=>`Die Nostr-Erweiterung hat nicht reagiert. Versuchen Sie es erneut oder melden Sie sich mit Ihrem Passwort an.`,ko=()=>`La extensión de Nostr no respondió. Inténtelo de nuevo o inicie sesión con su contraseña.`,Ao=()=>`L'extension Nostr n'a pas répondu. Réessayez, ou connectez-vous avec votre mot de passe.`,jo=()=>`L'estensione Nostr non ha risposto. Riprova, o accedi con la tua password.`,Mo=()=>`A extensão Nostr não respondeu. Tente de novo ou entre com sua senha.`,No=()=>`Расширение Nostr не ответило. Попробуйте снова или войдите с паролем.`,Po=()=>`Nostr 扩展程序没有响应。请重试,或用密码登录。`,Fo=()=>`ส่วนขยาย Nostr ไม่ตอบสนอง ลองอีกครั้ง หรือลงชื่อเข้าใช้ด้วยรหัสผ่านของคุณ`,Io=()=>`Nostr 확장 프로그램이 응답하지 않았습니다. 다시 시도하거나 비밀번호로 로그인하세요.`,Lo=()=>`Ekstensi Nostr tidak merespons. Coba lagi, atau masuk dengan kata sandi Anda.`,Ro=()=>`Tiện ích mở rộng Nostr không phản hồi. Thử lại, hoặc đăng nhập bằng mật khẩu của bạn.`,zo=()=>`Nostr eklentisi yanıt vermedi. Yeniden deneyin ya da parolanızla oturum açın.`,Bo=(e={},t={})=>{let n=t.locale??m();return n===`ja`?Do(e):n===`de`?Oo(e):n===`es`?ko(e):n===`fr`?Ao(e):n===`it`?jo(e):n===`pt`?Mo(e):n===`ru`?No(e):n===`zh`?Po(e):n===`th`?Fo(e):n===`ko`?Io(e):n===`id`?Lo(e):n===`vi`?Ro(e):n===`tr`?zo(e):Eo(e)},Vo=()=>`Forgot password?`,Ho=()=>`パスワードをお忘れですか?`,Uo=()=>`Passwort vergessen?`,Wo=()=>`¿Olvidaste tu contraseña?`,Go=()=>`Mot de passe oublié ?`,Ko=()=>`Password dimenticata?`,qo=()=>`Esqueceu a senha?`,Jo=()=>`Забыли пароль?`,Yo=()=>`忘记密码?`,Xo=()=>`ลืมรหัสผ่าน?`,Zo=()=>`비밀번호를 잊으셨나요?`,Qo=()=>`Lupa kata sandi?`,$o=()=>`Quên mật khẩu?`,es=()=>`Şifreni mi unuttun?`,ts=(e={},t={})=>{let n=t.locale??m();return n===`ja`?Ho(e):n===`de`?Uo(e):n===`es`?Wo(e):n===`fr`?Go(e):n===`it`?Ko(e):n===`pt`?qo(e):n===`ru`?Jo(e):n===`zh`?Yo(e):n===`th`?Xo(e):n===`ko`?Zo(e):n===`id`?Qo(e):n===`vi`?$o(e):n===`tr`?es(e):Vo(e)},ns=()=>`npub or email`,rs=()=>`npub またはメール`,is=()=>`npub oder E-Mail`,as=()=>`npub o correo`,os=()=>`npub ou e-mail`,ss=()=>`npub o email`,cs=()=>`npub ou e-mail`,ls=()=>`npub или email`,us=()=>`npub 或邮箱`,ds=()=>`npub หรืออีเมล`,fs=()=>`npub 또는 이메일`,ps=()=>`npub atau email`,ms=()=>`npub hoặc email`,hs=()=>`npub veya e-posta`,gs=(e={},t={})=>{let n=t.locale??m();return n===`ja`?rs(e):n===`de`?is(e):n===`es`?as(e):n===`fr`?os(e):n===`it`?ss(e):n===`pt`?cs(e):n===`ru`?ls(e):n===`zh`?us(e):n===`th`?ds(e):n===`ko`?fs(e):n===`id`?ps(e):n===`vi`?ms(e):n===`tr`?hs(e):ns(e)},_s=()=>`Enter a valid npub or email.`,vs=()=>`有効な npub またはメールアドレスを入力してください。`,ys=()=>`Gib einen gültigen npub oder eine E-Mail ein.`,bs=()=>`Introduce un npub o un correo válido.`,xs=()=>`Saisis un npub ou un e-mail valide.`,Ss=()=>`Inserisci un npub o un’email valida.`,Cs=()=>`Insira um npub ou e-mail válido.`,ws=()=>`Введите корректный npub или email.`,Ts=()=>`请输入有效的 npub 或邮箱。`,Es=()=>`กรอก npub หรืออีเมลที่ถูกต้อง`,Ds=()=>`유효한 npub 또는 이메일을 입력하세요.`,Os=()=>`Masukkan npub atau email yang valid.`,ks=()=>`Nhập npub hoặc email hợp lệ.`,As=()=>`Geçerli bir npub veya e-posta girin.`,js=(e={},t={})=>{let n=t.locale??m();return n===`ja`?vs(e):n===`de`?ys(e):n===`es`?bs(e):n===`fr`?xs(e):n===`it`?Ss(e):n===`pt`?Cs(e):n===`ru`?ws(e):n===`zh`?Ts(e):n===`th`?Es(e):n===`ko`?Ds(e):n===`id`?Os(e):n===`vi`?ks(e):n===`tr`?As(e):_
2s(e)},Ms=()=>`npub or email`,Ns=()=>`npub またはメール`,Ps=()=>`npub oder E-Mail`,Fs=()=>`npub o correo`,Is=()=>`npub ou e-mail`,Ls=()=>`npub o email`,Rs=()=>`npub ou e-mail`,zs=()=>`npub или email`,Bs=()=>`npub 或邮箱`,Vs=()=>`npub หรืออีเมล`,Hs=()=>`npub 또는 이메일`,Us=()=>`npub atau email`,Ws=()=>`npub hoặc email`,Gs=()=>`npub veya e-posta`,Ks=(e={},t={})=>{let n=t.locale??m();return n===`ja`?Ns(e):n===`de`?Ps(e):n===`es`?Fs(e):n===`fr`?Is(e):n===`it`?Ls(e):n===`pt`?Rs(e):n===`ru`?zs(e):n===`zh`?Bs(e):n===`th`?Vs(e):n===`ko`?Hs(e):n===`id`?Us(e):n===`vi`?Ws(e):n===`tr`?Gs(e):Ms(e)},qs=()=>`Install a Nostr browser extension (Alby, nos2x, etc.) to sign in without a password.`,Js=()=>`パスワードなしでサインインするには、Nostrブラウザ拡張機能(Alby、nos2xなど)をインストールしてください。`,Ys=()=>`Installieren Sie eine Nostr-Browser-Erweiterung (Alby, nos2x usw.), um sich ohne Passwort anzumelden.`,Xs=()=>`Instale una extensión de navegador de Nostr (Alby, nos2x, etc.) para iniciar sesión sin contraseña.`,Zs=()=>`Installez une extension de navigateur Nostr (Alby, nos2x, etc.) pour vous connecter sans mot de passe.`,Qs=()=>`Installi un'estensione del browser per Nostr (Alby, nos2x, ecc.) per accedere senza password.`,$s=()=>`Instale uma extensão de navegador do Nostr (Alby, nos2x, etc.) para entrar sem senha.`,ec=()=>`Установите браузерное расширение Nostr (Alby, nos2x и др.), чтобы входить без пароля.`,tc=()=>`安装一个 Nostr 浏览器扩展程序(Alby、nos2x 等),即可无需密码登录。`,nc=()=>`ติดตั้งส่วนขยายเบราว์เซอร์ Nostr ( Alby, nos2x ฯลฯ ) เพื่อลงชื่อเข้าใช้โดยไม่ต้องใช้รหัสผ่าน`,rc=()=>`비밀번호 없이 로그인하려면 Nostr 브라우저 확장 프로그램(Alby, nos2x 등)을 설치하세요.`,ic=()=>`Pasang ekstensi browser Nostr (Alby, nos2x, dll.) untuk masuk tanpa kata sandi.`,ac=()=>`Cài đặt một tiện ích mở rộng trình duyệt Nostr (Alby, nos2x, v.v.) để đăng nhập mà không cần mật khẩu.`,oc=()=>`Parolasız oturum açmak için bir Nostr tarayıcı eklentisi (Alby, nos2x vb.) yükleyin.`,sc=(e={},t={})=>{let n=t.locale??m();return n===`ja`?Js(e):n===`de`?Ys(e):n===`es`?Xs(e):n===`fr`?Zs(e):n===`it`?Qs(e):n===`pt`?$s(e):n===`ru`?ec(e):n===`zh`?tc(e):n===`th`?nc(e):n===`ko`?rc(e):n===`id`?ic(e):n===`vi`?ac(e):n===`tr`?oc(e):qs(e)},cc=()=>`That login link has expired. Enter your npub and request a new code.`,lc=()=>`このログインリンクは期限切れです。npubを入力して新しいコードをリクエストしてください。`,uc=()=>`Dieser Anmeldelink ist abgelaufen. Geben Sie Ihren npub ein und fordern Sie einen neuen Code an.`,dc=()=>`Ese enlace de inicio de sesión ha caducado. Introduce tu npub y solicita un nuevo código.`,fc=()=>`Ce lien de connexion a expiré. Saisissez votre npub et demandez un nouveau code.`,pc=()=>`Questo link di accesso è scaduto. Inserisci il tuo npub e richiedi un nuovo codice.`,mc=()=>`Esse link de login expirou. Digite seu npub e solicite um novo código.`,hc=()=>`Эта ссылка для входа истекла. Введите свой npub и запросите новый код.`,gc=()=>`该登录链接已过期。请输入你的 npub 并重新获取验证码。`,_c=()=>`ลิงก์ลงชื่อเข้าใช้นั้นหมดอายุแล้ว กรอก npub ของคุณแล้วขอรหัสใหม่`,vc=()=>`로그인 링크가 만료되었습니다. npub을 입력하고 새 코드를 요청하세요.`,yc=()=>`Tautan masuk itu sudah kedaluwarsa. Masukkan npub Anda dan minta kode baru.`,bc=()=>`Liên kết đăng nhập đó đã hết hạn. Nhập npub của bạn và yêu cầu mã mới.`,xc=()=>`Bu oturum açma bağlantısının süresi doldu. npub'unuzu girip yeni bir kod isteyin.`,Sc=(e={},t={})=>{let n=t.locale??m();return n===`ja`?lc(e):n===`de`?uc(e):n===`es`?dc(e):n===`fr`?fc(e):n===`it`?pc(e):n===`pt`?mc(e):n===`ru`?hc(e):n===`zh`?gc(e):n===`th`?_c(e):n===`ko`?vc(e):n===`id`?yc(e):n===`vi`?bc(e):n===`tr`?xc(e):cc(e)},Cc=()=>`Loading…`,wc=()=>`読み込み中…`,Tc=()=>`Wird geladen…`,Ec=()=>`Cargando…`,Dc=()=>`Chargement…`,Oc=()=>`Caricamento…`,kc=()=>`Carregando…`,Ac=()=>`Загрузка…`,jc=()=>`加载中…`,Mc=()=>`กำลังโหลด…`,Nc=()=>`불러오는 중…`,Pc=()=>`Memuat…`,Fc=()=>`Đang tải…`,Ic=()=>`Yükleniyor…`,Lc=(e={},t={})=>{let n=t.locale??m();return n===`ja`?wc(e):n===`de`?Tc(e):n===`es`?Ec(e):n===`fr`?Dc(e):n===`it`?Oc(e):n===`pt`?kc(e):n===`ru`?Ac(e):n===`zh`?jc(e):n===`th`?Mc(e):n===`ko`?Nc(e):n===`id`?Pc(e):n===`vi`?Fc(e):n===`tr`?Ic(e):Cc(e)},Rc=()=>`Loading your account…`,zc=()=>`アカウントを読み込んでいます…`,Bc=()=>`Ihr Konto wird geladen…`,Vc=()=>`Cargando su cuenta…`,Hc=()=>`Chargement de votre compte…`,Uc=()=>`Caricamento del tuo account…`,Wc=()=>`Carregando sua conta…`,Gc=()=>`Загружаем ваш аккаунт…`,Kc=()=>`正在加载你的账户…`,qc=()=>`กำลังโหลดบัญชีของคุณ…`,Jc=()=>`계정을 불러오는 중…`,Yc=()=>`Memuat akun Anda…`,Xc=()=>`Đang tải tài khoản của bạn…`,Zc=()=>`Hesabınız yükleniyor…`,Qc=(e={},t={})=>{let n=t.locale??m();return n===`ja`?zc(e):n===`de`?Bc(e):n===`es`?Vc(e):n===`fr`?Hc(e):n===`it`?Uc(e):n===`pt`?Wc(e):n===`ru`?Gc(e):n===`zh`?Kc(e):n===`th`?qc(e):n===`ko`?Jc(e):n===`id`?Yc(e):n===`vi`?Xc(e):n===`tr`?Zc(e):Rc(e)},$c=()=>`Log in to nostr.build`,el=()=>`nostr.buildにログイン`,tl=()=>`Bei nostr.build anmelden`,nl=()=>`Iniciar sesión en nostr.build`,rl=()=>`Se connecter à nostr.build`,il=()=>`Accedi a nostr.build`,al=()=>`Entrar no nostr.build`,ol=()=>`Войти в nostr.build`,sl=()=>`登录 nostr.build`,cl=()=>`ลงชื่อเข้าใช้ nostr.build`,ll=()=>`nostr.build에 로그인`,ul=()=>`Masuk ke nostr.build`,dl=()=>`Đăng nhập vào nostr.build`,fl=()=>`nostr.build'de oturum aç`,pl=(e={},t={})=>{let n=t.locale??m();return n===`ja`?el(e):n===`de`?tl(e):n===`es`?nl(e):n===`fr`?rl(e):n===`it`?il(e):n===`pt`?al(e):n===`ru`?ol(e):n===`zh`?sl(e):n===`th`?cl(e):n===`ko`?ll(e):n===`id`?ul(e):n===`vi`?dl(e):n===`tr`?fl(e):$c(e)},ml=()=>`Logging you in…`,hl=()=>
2`サインインしています…`,gl=()=>`Sie werden angemeldet…`,_l=()=>`Iniciando su sesión…`,vl=()=>`Connexion en cours…`,yl=()=>`Accesso in corso…`,bl=()=>`Conectando você…`,xl=()=>`Выполняем вход…`,Sl=()=>`正在为你登录…`,Cl=()=>`กำลังลงชื่อเข้าใช้ให้คุณ…`,wl=()=>`로그인하는 중…`,Tl=()=>`Memasukkan Anda…`,El=()=>`Đang đăng nhập cho bạn…`,Dl=()=>`Oturumunuz açılıyor…`,Ol=(e={},t={})=>{let n=t.locale??m();return n===`ja`?hl(e):n===`de`?gl(e):n===`es`?_l(e):n===`fr`?vl(e):n===`it`?yl(e):n===`pt`?bl(e):n===`ru`?xl(e):n===`zh`?Sl(e):n===`th`?Cl(e):n===`ko`?wl(e):n===`id`?Tl(e):n===`vi`?El(e):n===`tr`?Dl(e):ml(e)},kl=()=>`Login failed`,Al=()=>`ログインに失敗しました`,jl=()=>`Anmeldung fehlgeschlagen`,Ml=()=>`Error al iniciar sesión`,Nl=()=>`Échec de la connexion`,Pl=()=>`Accesso non riuscito`,Fl=()=>`Falha no login`,Il=()=>`Не удалось войти`,Ll=()=>`登录失败`,Rl=()=>`ลงชื่อเข้าใช้ไม่สำเร็จ`,zl=()=>`로그인 실패`,Bl=()=>`Gagal masuk`,Vl=()=>`Đăng nhập thất bại`,Hl=()=>`Oturum açma başarısız`,Ul=(e={},t={})=>{let n=t.locale??m();return n===`ja`?Al(e):n===`de`?jl(e):n===`es`?Ml(e):n===`fr`?Nl(e):n===`it`?Pl(e):n===`pt`?Fl(e):n===`ru`?Il(e):n===`zh`?Ll(e):n===`th`?Rl(e):n===`ko`?zl(e):n===`id`?Bl(e):n===`vi`?Vl(e):n===`tr`?Hl(e):kl(e)},Wl=()=>`Login via Nostr DM`,Gl=()=>`Nostr DMでログイン`,Kl=()=>`Anmeldung per Nostr-DM`,ql=()=>`Iniciar sesión por DM de Nostr`,Jl=()=>`Connexion par DM Nostr`,Yl=()=>`Accesso via DM Nostr`,Xl=()=>`Entrar por DM do Nostr`,Zl=()=>`Вход через сообщение Nostr`,Ql=()=>`通过 Nostr 私信登录`,$l=()=>`ลงชื่อเข้าใช้ผ่าน Nostr DM`,eu=()=>`Nostr DM으로 로그인`,tu=()=>`Masuk lewat DM Nostr`,nu=()=>`Đăng nhập qua Nostr DM`,ru=()=>`Nostr DM'i ile oturum aç`,iu=(e={},t={})=>{let n=t.locale??m();return n===`ja`?Gl(e):n===`de`?Kl(e):n===`es`?ql(e):n===`fr`?Jl(e):n===`it`?Yl(e):n===`pt`?Xl(e):n===`ru`?Zl(e):n===`zh`?Ql(e):n===`th`?$l(e):n===`ko`?eu(e):n===`id`?tu(e):n===`vi`?nu(e):n===`tr`?ru(e):Wl(e)},au=()=>`Email me a sign-in code`,ou=()=>`サインインコードをメールで送る`,su=()=>`Anmeldecode per E-Mail senden`,cu=()=>`Enviarme un código de acceso`,lu=()=>`M’envoyer un code de connexion`,uu=()=>`Inviami un codice di accesso`,du=()=>`Enviar-me um código de acesso`,fu=()=>`Отправить код для входа на почту`,pu=()=>`把登录验证码发到我的邮箱`,mu=()=>`ส่งรหัสเข้าสู่ระบบมาที่อีเมลของฉัน`,hu=()=>`로그인 코드 이메일로 받기`,gu=()=>`Kirimi saya kode masuk`,_u=()=>`Gá»­i mã đăng nhập cho tôi`,vu=()=>`Bana giriş kodu gönder`,yu=(e={},t={})=>{let n=t.locale??m();return n===`ja`?ou(e):n===`de`?su(e):n===`es`?cu(e):n===`fr`?lu(e):n===`it`?uu(e):n===`pt`?du(e):n===`ru`?fu(e):n===`zh`?pu(e):n===`th`?mu(e):n===`ko`?hu(e):n===`id`?gu(e):n===`vi`?_u(e):n===`tr`?vu(e):au(e)},bu=()=>`Login with Nostr (NIP-07)`,xu=()=>`Nostrでログイン(NIP-07)`,Su=()=>`Mit Nostr anmelden (NIP-07)`,Cu=()=>`Iniciar sesión con Nostr (NIP-07)`,wu=()=>`Se connecter avec Nostr (NIP-07)`,Tu=()=>`Accedi con Nostr (NIP-07)`,Eu=()=>`Entrar com Nostr (NIP-07)`,Du=()=>`Войти через Nostr (NIP-07)`,Ou=()=>`使用 Nostr 登录(NIP-07)`,ku=()=>`ลงชื่อเข้าใช้ด้วย Nostr ( NIP-07 )`,Au=()=>`Nostr로 로그인 (NIP-07)`,ju=()=>`Masuk dengan Nostr (NIP-07)`,Mu=()=>`Đăng nhập bằng Nostr (NIP-07)`,Nu=()=>`Nostr ile oturum aç (NIP-07)`,Pu=(e={},t={})=>{let n=t.locale??m();return n===`ja`?xu(e):n===`de`?Su(e):n===`es`?Cu(e):n===`fr`?wu(e):n===`it`?Tu(e):n===`pt`?Eu(e):n===`ru`?Du(e):n===`zh`?Ou(e):n===`th`?ku(e):n===`ko`?Au(e):n===`id`?ju(e):n===`vi`?Mu(e):n===`tr`?Nu(e):bu(e)},Fu=()=>`Nostr login isn't enabled for this account. Sign in with your password below, then turn it on in Settings.`,Iu=()=>`このアカウントではNostrログインが有効になっていません。下のパスワードでサインインã
2—、設定で有効にしてください。`,Lu=()=>`Nostr-Anmeldung ist für dieses Konto nicht aktiviert. Melden Sie sich unten mit Ihrem Passwort an und aktivieren Sie sie dann in den Einstellungen.`,Ru=()=>`El inicio de sesión con Nostr no está activado para esta cuenta. Inicia sesión con tu contraseña abajo y luego actívalo en Ajustes.`,zu=()=>`La connexion Nostr n'est pas activée pour ce compte. Connectez-vous avec votre mot de passe ci-dessous, puis activez-la dans les Paramètres.`,Bu=()=>`L'accesso con Nostr non è attivo per questo account. Accedi con la tua password qui sotto, poi attivalo nelle Impostazioni.`,Vu=()=>`O login com Nostr não está ativado para esta conta. Entre com sua senha abaixo e depois ative-o nas Configurações.`,Hu=()=>`Вход через Nostr не включён для этого аккаунта. Войдите с паролем ниже, затем включите его в настройках.`,Uu=()=>`此账户未启用 Nostr 登录。请用下方的密码登录,然后在设置中开启它。`,Wu=()=>`ยังไม่ได้เปิดใช้งานการลงชื่อเข้าใช้ด้วย Nostr สำหรับบัญชีนี้ ลงชื่อเข้าใช้ด้วยรหัสผ่านด้านล่าง จากนั้นเปิดใช้งานในการตั้งค่า`,Gu=()=>`이 계정에는 Nostr 로그인이 활성화되어 있지 않습니다. 아래에서 비밀번호로 로그인한 뒤 설정에서 활성화하세요.`,Ku=()=>`Masuk dengan Nostr tidak diaktifkan untuk akun ini. Masuk dengan kata sandi Anda di bawah, lalu aktifkan di Pengaturan.`,qu=()=>`Đăng nhập Nostr chưa được bật cho tài khoản này. Đăng nhập bằng mật khẩu cá»§a bạn bên dưới, rồi bật tính năng này trong Cài đặt.`,Ju=()=>`Bu hesap için Nostr ile oturum açma etkin değil. Aşağıda parolanızla oturum açın, ardından Ayarlar'dan etkinleştirin.`,Yu=(e={},t={})=>{let n=t.locale??m();return n===`ja`?Iu(e):n===`de`?Lu(e):n===`es`?Ru(e):n===`fr`?zu(e):n===`it`?Bu(e):n===`pt`?Vu(e):n===`ru`?Hu(e):n===`zh`?Uu(e):n===`th`?Wu(e):n===`ko`?Gu(e):n===`id`?Ku(e):n===`vi`?qu(e):n===`tr`?Ju(e):Fu(e)},Xu=()=>`That looks like a private key (nsec). Cleared for your safety; paste your public key (npub) instead.`,Zu=()=>`これは秘密鍵(nsec)のようです。安全のため消去しました。代わりに公開鍵(npub)を貼り付けてください。`,Qu=()=>`Das sieht aus wie ein privater Schlüssel (nsec). Zu Ihrer Sicherheit gelöscht; fügen Sie stattdessen Ihren öffentlichen Schlüssel (npub) ein.`,$u=()=>`Eso parece una clave privada (nsec). Se borró por su seguridad; pegue su clave pública (npub) en su lugar.`,ed=()=>`Cela ressemble à une clé privée (nsec). Effacée pour votre sécurité ; collez plutôt votre clé publique (npub).`,td=()=>`Sembra una chiave privata (nsec). Cancellata per la tua sicurezza; incolla invece la tua chiave pubblica (npub).`,nd=()=>`Isso parece uma chave privada (nsec). Apagada para sua segurança; cole sua chave pública (npub) em vez disso.`,rd=()=>`Похоже на приватный ключ (nsec). Поле очищено для вашей безопасности; вставьте вместо этого публичный ключ (npub).`,id=()=>`这看起来像是私钥(nsec)。为了你的安全已清除;请改为粘贴你的公钥(npub)。`,ad=()=>`นั่นดูเหมือนคีย์ส่วนตัว ( nsec ) เราล้างออกแล้วเพื่อความปลอดภัยของคุณ โปรดวางคีย์สาธารณะ ( npub ) ของคุณแทน`,od=()=>`비밀 키(nsec)처럼 보입니다. 안전을 위해 지웠습니다. 대신 공개 키(npub)를 붙여넣으세요.`,sd=()=>`Itu terlihat seperti kunci pribadi (nsec). Sudah dihapus demi keamanan Anda; tempel kunci publik Anda (npub) sebagai gantinya.`,cd=()=>`Trông giống khóa riêng tư (nsec). Đã xóa để bảo vệ bạn; hãy dán khóa công khai (npub) cá»§a bạn thay vào đó.`,ld=()=>`Bu, bir gizli anahtar (nsec) gibi görünüyor. Güvenliğiniz için temizlendi; bunun yerine genel anahtarınızı (npub) yapıştırın.`,ud=(e={},t={})=>{let n=t.locale??m();return n===`ja`?Zu(e):n===`de`?Qu(e):n===`es`?$u(e):n===`fr`?ed(e):n===`it`?td(e):n===`pt`?nd(e):n===`ru`?rd(e):n===`zh`?id(e):n===`th`?ad(e):n===`ko`?od(e):n===`id`?sd(e):n===`vi`?cd(e):n===`tr`?ld(e):Xu(e)},dd=()=>`Please be careful not to enter your private key (nsec) here, it could compromise your Nostr credentials.`,fd=()=>`ここに秘密鍵(nsec)を入力しないようご注意ください。Nostrの認証情報が漏洩する恐れがあります。`,pd=()=>`Bitte achten Sie darauf, hier nicht Ihren privaten Schlüssel (nsec) einzugeben – das könnte Ihre Nostr-Anmeldedaten kompromittieren.`,md=()=>`Tenga cuidado de no introducir aquí su clave privada (nsec); podría comprometer sus credenciales de Nostr.`,hd=()=>`Veillez à ne pas saisir ici votre clé privée (nsec) ; cela pourrait compromettre vos identifiants Nostr.`,gd=()=>`Fai attenzione a non inserire qui la tua chiave privata (nsec);
2 potrebbe compromettere le tue credenziali Nostr.`,_d=()=>`Tenha cuidado para não digitar aqui sua chave privada (nsec); isso pode comprometer suas credenciais do Nostr.`,vd=()=>`Пожалуйста, не вводите здесь свой приватный ключ (nsec) — это может скомпрометировать ваши учётные данные Nostr.`,yd=()=>`请注意不要在此处输入你的私钥(nsec),否则可能会泄露你的 Nostr 凭证。`,bd=()=>`โปรดระวังอย่ากรอกคีย์ส่วนตัว ( nsec ) ของคุณที่นี่ เพราะอาจทำให้ข้อมูลรับรอง Nostr ของคุณถูกเปิดเผย`,xd=()=>`여기에 비밀 키(nsec)를 입력하지 않도록 주의하세요. Nostr 자격 증명이 노출될 수 있습니다.`,Sd=()=>`Mohon berhati-hati agar tidak memasukkan kunci pribadi (nsec) Anda di sini, karena bisa membahayakan kredensial Nostr Anda.`,Cd=()=>`Vui lòng cẩn thận đừng nhập khóa riêng tư (nsec) của bạn vào đây, điều đó có thể làm lộ thông tin đăng nhập Nostr của bạn.`,wd=()=>`Lütfen gizli anahtarınızı (nsec) buraya girmemeye dikkat edin; Nostr kimlik bilgilerinizi tehlikeye atabilir.`,Td=(e={},t={})=>{let n=t.locale??m();return n===`ja`?fd(e):n===`de`?pd(e):n===`es`?md(e):n===`fr`?hd(e):n===`it`?gd(e):n===`pt`?_d(e):n===`ru`?vd(e):n===`zh`?yd(e):n===`th`?bd(e):n===`ko`?xd(e):n===`id`?Sd(e):n===`vi`?Cd(e):n===`tr`?wd(e):dd(e)},Ed=()=>`or`,Dd=()=>`または`,Od=()=>`oder`,kd=()=>`o`,Ad=()=>`ou`,jd=()=>`o`,Md=()=>`ou`,Nd=()=>`или`,Pd=()=>`或`,Fd=()=>`หรือ`,Id=()=>`또는`,Ld=()=>`atau`,Rd=()=>`hoặc`,zd=()=>`veya`,Bd=(e={},t={})=>{let n=t.locale??m();return n===`ja`?Dd(e):n===`de`?Od(e):n===`es`?kd(e):n===`fr`?Ad(e):n===`it`?jd(e):n===`pt`?Md(e):n===`ru`?Nd(e):n===`zh`?Pd(e):n===`th`?Fd(e):n===`ko`?Id(e):n===`id`?Ld(e):n===`vi`?Rd(e):n===`tr`?zd(e):Ed(e)},Vd=()=>`Password`,Hd=()=>`パスワード`,Ud=()=>`Passwort`,Wd=()=>`Contraseña`,Gd=()=>`Mot de passe`,Kd=()=>`Password`,qd=()=>`Senha`,Jd=()=>`Пароль`,Yd=()=>`密码`,Xd=()=>`รหัสผ่าน`,Zd=()=>`비밀번호`,Qd=()=>`Kata sandi`,$d=()=>`Mật khẩu`,ef=()=>`Parola`,tf=(e={},t={})=>{let n=t.locale??m();return n===`ja`?Hd(e):n===`de`?Ud(e):n===`es`?Wd(e):n===`fr`?Gd(e):n===`it`?Kd(e):n===`pt`?qd(e):n===`ru`?Jd(e):n===`zh`?Yd(e):n===`th`?Xd(e):n===`ko`?Zd(e):n===`id`?Qd(e):n===`vi`?$d(e):n===`tr`?ef(e):Vd(e)},nf=()=>`Password required`,rf=()=>`パスワードが必要です`,af=()=>`Passwort erforderlich`,of=()=>`Contraseña obligatoria`,sf=()=>`Mot de passe requis`,cf=()=>`Password obbligatoria`,lf=()=>`Senha obrigatória`,uf=()=>`Требуется пароль`,df=()=>`需要输入密码`,ff=()=>`ต้องระบุรหัสผ่าน`,pf=()=>`비밀번호를 입력하세요`,mf=()=>`Kata sandi wajib diisi`,hf=()=>`Cần nhập mật khẩu`,gf=()=>`Parola gerekli`,_f=(e={},t={})=>{let n=t.locale??m();return n===`ja`?rf(e):n===`de`?af(e):n===`es`?of(e):n===`fr`?sf(e):n===`it`?cf(e):n===`pt`?lf(e):n===`ru`?uf(e):n===`zh`?df(e):n===`th`?ff(e):n===`ko`?pf(e):n===`id`?mf(e):n===`vi`?hf(e):n===`tr`?gf(e):nf(e)},vf=()=>`Sending Nostr DM…`,yf=()=>`Nostr DMを送信中…`,bf=()=>`Nostr-DM wird gesendet…`,xf=()=>`Enviando DM de Nostr…`,Sf=()=>`Envoi du DM Nostr…`,Cf=()=>`Invio del DM Nostr…`,wf=()=>`Enviando DM do Nostr…`,Tf=()=>`Отправляем сообщение Nostr…`,Ef=()=>`正在发送 Nostr 私信…`,Df=()=>`กำลังส่ง Nostr DM…`,Of=()=>`Nostr DM 전송 중…`,kf=()=>`Mengirim DM Nostr…`,Af=()=>`Đang gửi Nostr DM…`,jf=()=>`Nostr DM'i gönderiliyor…`,Mf=(e={},t={})=>{let n=t.locale??m();return n===`ja`?yf(e):n===`de`?bf(e):n===`es`?xf(e):n===`fr`?Sf(e):n===`it`?Cf(e):n===`pt`?wf(e):n===`ru`?Tf(e):n===`zh`?Ef(e):n===`th`?Df(e):n===`ko`?Of(e):n===`id`?kf(e):n===`vi`?Af(e):n===`tr`?jf(e):vf(e)},Nf=()=>`Sending…`,Pf=()=>`送信中…`,Ff=()=>`Wird gesendet…`,If=()=>`Enviando…`,Lf=()=>`Envoi…`,Rf=()=>
2`Invio…`,zf=()=>`Enviando…`,Bf=()=>`Отправка…`,Vf=()=>`发送中…`,Hf=()=>`กำลังส่ง…`,Uf=()=>`보내는 중…`,Wf=()=>`Mengirim…`,Gf=()=>`Đang gửi…`,Kf=()=>`Gönderiliyor…`,qf=(e={},t={})=>{let n=t.locale??m();return n===`ja`?Pf(e):n===`de`?Ff(e):n===`es`?If(e):n===`fr`?Lf(e):n===`it`?Rf(e):n===`pt`?zf(e):n===`ru`?Bf(e):n===`zh`?Vf(e):n===`th`?Hf(e):n===`ko`?Uf(e):n===`id`?Wf(e):n===`vi`?Gf(e):n===`tr`?Kf(e):Nf(e)},Jf=()=>`Sign out of this account`,Yf=()=>`このアカウントからサインアウト`,Xf=()=>`Von diesem Konto abmelden`,Zf=()=>`Cerrar sesión en esta cuenta`,Qf=()=>`Se déconnecter de ce compte`,$f=()=>`Esci da questo account`,ep=()=>`Sair desta conta`,tp=()=>`Выйти из этого аккаунта`,np=()=>`退出此账户`,rp=()=>`ลงชื่อออกจากบัญชีนี้`,ip=()=>`이 계정에서 로그아웃`,ap=()=>`Keluar dari akun ini`,op=()=>`Đăng xuất khỏi tài khoản này`,sp=()=>`Bu hesabın oturumunu kapat`,cp=(e={},t={})=>{let n=t.locale??m();return n===`ja`?Yf(e):n===`de`?Xf(e):n===`es`?Zf(e):n===`fr`?Qf(e):n===`it`?$f(e):n===`pt`?ep(e):n===`ru`?tp(e):n===`zh`?np(e):n===`th`?rp(e):n===`ko`?ip(e):n===`id`?ap(e):n===`vi`?op(e):n===`tr`?sp(e):Jf(e)},lp=()=>`Signing out only affects this device; your other sessions stay active.`,up=()=>`サインアウトはこのデバイスのみに影響します。他のセッションは引き続き有効です。`,dp=()=>`Das Abmelden betrifft nur dieses Gerät; Ihre anderen Sitzungen bleiben aktiv.`,fp=()=>`Cerrar sesión solo afecta a este dispositivo; sus otras sesiones siguen activas.`,pp=()=>`La déconnexion n'affecte que cet appareil ; vos autres sessions restent actives.`,mp=()=>`La disconnessione riguarda solo questo dispositivo; le tue altre sessioni restano attive.`,hp=()=>`Sair afeta apenas este dispositivo; suas outras sessões continuam ativas.`,gp=()=>`Выход затрагивает только это устройство; ваши другие сеансы остаются активными.`,_p=()=>`退出登录只影响此设备;你的其他会话仍保持活跃。`,vp=()=>`การลงชื่อออกมีผลกับอุปกรณ์นี้เท่านั้น เซสชันอื่น ๆ ของคุณยังคงทำงานอยู่`,yp=()=>`로그아웃은 이 기기에만 적용되며, 다른 세션은 계속 유지됩니다.`,bp=()=>`Keluar hanya memengaruhi perangkat ini; sesi Anda yang lain tetap aktif.`,xp=()=>`Đăng xuất chỉ ảnh hưởng đến thiết bị này; các phiên khác của bạn vẫn hoạt động.`,Sp=()=>`Oturumu kapatmak yalnızca bu cihazı etkiler; diğer oturumlarınız etkin kalır.`,Cp=(e={},t={})=>{let n=t.locale??m();return n===`ja`?up(e):n===`de`?dp(e):n===`es`?fp(e):n===`fr`?pp(e):n===`it`?mp(e):n===`pt`?hp(e):n===`ru`?gp(e):n===`zh`?_p(e):n===`th`?vp(e):n===`ko`?yp(e):n===`id`?bp(e):n===`vi`?xp(e):n===`tr`?Sp(e):lp(e)},wp=()=>`This device was signed out from another session. Sign in again to continue.`,Tp=()=>`このデバイスは別のセッションからサインアウトされました。続けるにはもう一度サインインしてください。`,Ep=()=>`Dieses Gerät wurde von einer anderen Sitzung abgemeldet. Melden Sie sich erneut an, um fortzufahren.`,Dp=()=>`Este dispositivo se cerró desde otra sesión. Inicia sesión de nuevo para continuar.`,Op=()=>`Cet appareil a été déconnecté depuis une autre session. Reconnectez-vous pour continuer.`,kp=()=>`Questo dispositivo è stato disconnesso da un'altra sessione. Accedi di nuovo per continuare.`,Ap=()=>`Este dispositivo foi desconectado por outra sessão. Entre novamente para continuar.`,jp=()=>`Это устройство было отключено из другого сеанса. Войдите снова, чтобы продолжить.`,Mp=()=>`此设备已在另一个会话中退出登录。请重新登录以继续。`,Np=()=>`อุปกรณ์นี้ถูกลงชื่อออกจากอีกเซสชันหนึ่ง ลงชื่อเข้าใช้อีกครั้งเพื่อดำเนินการต่อ`,Pp=()=>`다른 세션에서 이 기기가 로그아웃되었습니다. 계속하려면 다시 로그인하세요.`,Fp=()=>`Perangkat ini telah dikeluarkan dari sesi lain. Masuk lagi untuk melanjutkan.`,Ip=()=>`Thiết bị này đã bị đăng xuất từ một phiên khác. Đăng nhập lại để tiếp tục.`,Lp=()=>`Bu cihazın oturumu başka bir oturumdan kapatıldı. Devam etmek için yeniden oturum açın.`,Rp=(e={},t={})=>{let n=t.locale??m();return n===`ja`?Tp(e):n===`de`?Ep(e):n===`es`?Dp(e):n===`fr`?Op(e):n===`it`?kp(e):n===`pt`?Ap(e):n===`ru`?jp(e):n===`zh`?Mp(e):n===`th`?Np(e):n===`ko`?Pp(e):n===`id`?Fp(e):n===`vi`?Ip(e):n===`tr`?Lp(e):wp(e)},zp=()=>`Signing in…`,Bp=()=>`サインイン中…`,Vp=()=>`Anmeldung läuft…`,Hp=()=>`Iniciando sesión…`,Up=()=>`Connexion…`,Wp=()=>`Accesso in corso…`,Gp=()=>`Entrando…`,Kp=()=>`Входим…`,qp=()=>`正在登录…`,Jp=()=>`กำลังลงชื่อเข้าใช้…`,Yp=()=>`로그인하는 중…`,Xp=()=>`Masuk…`,Zp=()=>`Đang đăng nhập…`,Qp=()=>`Oturum açılıyor…`,$p=(e={},t={})=>{let n=t.locale??m();return n===`ja`?Bp(e):n===`de`?Vp(e):n===`es`?Hp(e):n===`fr`?Up(e):n===`it`?Wp(e):n===`pt`?Gp(e):n===`ru`?Kp(e):n===`zh`?qp(e):n===`th`?Jp(e):n===`ko`?Yp(e):n===`id`?Xp(e):n===`vi`?Zp(e):n===`tr`?Qp(e):zp(e)},em=()=>`Signing in with Nostr…`,tm=()=>
2`Nostrでサインインしています…`,nm=()=>`Anmeldung mit Nostr…`,rm=()=>`Iniciando sesión con Nostr…`,im=()=>`Connexion avec Nostr…`,am=()=>`Accesso con Nostr…`,om=()=>`Entrando com Nostr…`,sm=()=>`Входим через Nostr…`,cm=()=>`正在通过 Nostr 登录…`,lm=()=>`กำลังลงชื่อเข้าใช้ด้วย Nostr…`,um=()=>`Nostr로 로그인하는 중…`,dm=()=>`Masuk dengan Nostr…`,fm=()=>`Đang đăng nhập bằng Nostr…`,pm=()=>`Nostr ile oturum açılıyor…`,mm=(e={},t={})=>{let n=t.locale??m();return n===`ja`?tm(e):n===`de`?nm(e):n===`es`?rm(e):n===`fr`?im(e):n===`it`?am(e):n===`pt`?om(e):n===`ru`?sm(e):n===`zh`?cm(e):n===`th`?lm(e):n===`ko`?um(e):n===`id`?dm(e):n===`vi`?fm(e):n===`tr`?pm(e):em(e)},hm=()=>`Signing out…`,gm=()=>`サインアウト中…`,_m=()=>`Abmelden…`,vm=()=>`Cerrando sesión…`,ym=()=>`Déconnexion…`,bm=()=>`Disconnessione…`,xm=()=>`Desconectando…`,Sm=()=>`Выполняем выход…`,Cm=()=>`正在退出登录…`,wm=()=>`กำลังลงชื่อออก…`,Tm=()=>`로그아웃하는 중…`,Em=()=>`Mengeluarkan…`,Dm=()=>`Đang đăng xuất…`,Om=()=>`Oturum kapatılıyor…`,km=(e={},t={})=>{let n=t.locale??m();return n===`ja`?gm(e):n===`de`?_m(e):n===`es`?vm(e):n===`fr`?ym(e):n===`it`?bm(e):n===`pt`?xm(e):n===`ru`?Sm(e):n===`zh`?Cm(e):n===`th`?wm(e):n===`ko`?Tm(e):n===`id`?Em(e):n===`vi`?Dm(e):n===`tr`?Om(e):hm(e)},Am=()=>`Signing you in…`,jm=()=>`サインインしています…`,Mm=()=>`Sie werden angemeldet…`,Nm=()=>`Iniciando su sesión…`,Pm=()=>`Connexion en cours…`,Fm=()=>`Accesso in corso…`,Im=()=>`Conectando você…`,Lm=()=>`Выполняем ваш вход…`,Rm=()=>`正在为你登录…`,zm=()=>`กำลังลงชื่อเข้าใช้ให้คุณ…`,Bm=()=>`로그인하는 중…`,Vm=()=>`Memasukkan Anda…`,Hm=()=>`Đang đăng nhập cho bạn…`,Um=()=>`Oturumunuz açılıyor…`,Wm=(e={},t={})=>{let n=t.locale??m();return n===`ja`?jm(e):n===`de`?Mm(e):n===`es`?Nm(e):n===`fr`?Pm(e):n===`it`?Fm(e):n===`pt`?Im(e):n===`ru`?Lm(e):n===`zh`?Rm(e):n===`th`?zm(e):n===`ko`?Bm(e):n===`id`?Vm(e):n===`vi`?Hm(e):n===`tr`?Um(e):Am(e)},Gm=()=>`Signing you out…`,Km=()=>`サインアウトしています…`,qm=()=>`Sie werden abgemeldet…`,Jm=()=>`Cerrando su sesión…`,Ym=()=>`Déconnexion en cours…`,Xm=()=>`Disconnessione in corso…`,Zm=()=>`Desconectando você…`,Qm=()=>`Выполняем выход…`,$m=()=>`正在为你退出登录…`,eh=()=>`กำลังลงชื่อออกให้คุณ…`,th=()=>`로그아웃하는 중…`,nh=()=>`Mengeluarkan Anda…`,rh=()=>`Đang đăng xuất cho bạn…`,ih=()=>`Oturumunuz kapatılıyor…`,ah=(e={},t={})=>{let n=t.locale??m();return n===`ja`?Km(e):n===`de`?qm(e):n===`es`?Jm(e):n===`fr`?Ym(e):n===`it`?Xm(e):n===`pt`?Zm(e):n===`ru`?Qm(e):n===`zh`?$m(e):n===`th`?eh(e):n===`ko`?th(e):n===`id`?nh(e):n===`vi`?rh(e):n===`tr`?ih(e):Gm(e)},oh=()=>`Sign up with email`,sh=()=>`メールで登録`,ch=()=>`Mit E-Mail registrieren`,lh=()=>`Regístrate con correo`,uh=()=>`S’inscrire par e-mail`,dh=()=>`Registrati con l’email`,fh=()=>`Cadastre-se com e-mail`,ph=()=>`Регистрация по email`,mh=()=>`使用邮箱注册`,hh=()=>`สมัครด้วยอีเมล`,gh=()=>`이메일로 가입`,_h=()=>`Daftar dengan email`,vh=()=>`Đăng ký bằng email`,yh=()=>`E-posta ile kaydol`,bh=(e={},t={})=>{let n=t.locale??m();return n===`ja`?sh(e):n===`de`?ch(e):n===`es`?lh(e):n===`fr`?uh(e):n===`it`?dh(e):n===`pt`?fh(e):n===`ru`?ph(e):n===`zh`?mh(e):n===`th`?hh(e):n===`ko`?gh(e):n===`id`?_h(e):n===`vi`?vh(e):n===`tr`?yh(e):oh(e)},xh=()=>`Login`,Sh=()=>`ログイン`,Ch=()=>`Anmelden`,wh=()=>`Iniciar sesión`,Th=()=>`Se connecter`,Eh=()=>`Accedi`,Dh=()=>`Entrar`,Oh=()=>`Войти`,kh=()=>`登录`,Ah=()=>`ลงชื่อเข้าใช้`,jh=()=>`로그인`,Mh=()=>`Masuk`,Nh=()=>`Đăng nhập`,Ph=()=>`Oturum aç`,Fh=(e={},t={})=>{let n=t.locale??m();return n===`ja`?Sh(e):n===`de`?Ch(e):n===`es`?wh(e):n===`fr`?Th(e):n===`it`?Eh(e):n===`pt`?Dh(e):n===`ru`?Oh(e):n===`zh`?kh(e):n===`th`?Ah(e):n===`ko`?jh(e):n===`id`?Mh(e):n===`vi`?Nh(e):n===`tr`?Ph(e):xh(e)},Ih=()=>
2`Submit code`,Lh=()=>`コードを送信`,Rh=()=>`Code absenden`,zh=()=>`Enviar código`,Bh=()=>`Envoyer le code`,Vh=()=>`Invia il codice`,Hh=()=>`Enviar código`,Uh=()=>`Отправить код`,Wh=()=>`提交验证码`,Gh=()=>`ส่งรหัส`,Kh=()=>`코드 제출`,qh=()=>`Kirim kode`,Jh=()=>`Gửi mã`,Yh=()=>`Kodu gönder`,Xh=(e={},t={})=>{let n=t.locale??m();return n===`ja`?Lh(e):n===`de`?Rh(e):n===`es`?zh(e):n===`fr`?Bh(e):n===`it`?Vh(e):n===`pt`?Hh(e):n===`ru`?Uh(e):n===`zh`?Wh(e):n===`th`?Gh(e):n===`ko`?Kh(e):n===`id`?qh(e):n===`vi`?Jh(e):n===`tr`?Yh(e):Ih(e)},Zh=()=>`Login`,Qh=()=>`ログイン`,$h=()=>`Anmelden`,eg=()=>`Iniciar sesión`,tg=()=>`Connexion`,ng=()=>`Accedi`,rg=()=>`Entrar`,ig=()=>`Вход`,ag=()=>`登录`,og=()=>`ลงชื่อเข้าใช้`,sg=()=>`로그인`,cg=()=>`Masuk`,lg=()=>`Đăng nhập`,ug=()=>`Oturum aç`,dg=(e={},t={})=>{let n=t.locale??m();return n===`ja`?Qh(e):n===`de`?$h(e):n===`es`?eg(e):n===`fr`?tg(e):n===`it`?ng(e):n===`pt`?rg(e):n===`ru`?ig(e):n===`zh`?ag(e):n===`th`?og(e):n===`ko`?sg(e):n===`id`?cg(e):n===`vi`?lg(e):n===`tr`?ug(e):Zh(e)},fg=()=>`Use a different email`,pg=()=>`別のメールアドレスを使う`,mg=()=>`Andere E-Mail verwenden`,hg=()=>`Usar otro correo`,gg=()=>`Utiliser une autre adresse`,_g=()=>`Usa un’altra email`,vg=()=>`Usar outro e-mail`,yg=()=>`Использовать другой адрес`,bg=()=>`使用其他邮箱`,xg=()=>`ใช้อีเมลอื่น`,Sg=()=>`다른 이메일 사용`,Cg=()=>`Gunakan email lain`,wg=()=>`Dùng email khác`,Tg=()=>`Farklı bir e-posta kullan`,Eg=(e={},t={})=>{let n=t.locale??m();return n===`ja`?pg(e):n===`de`?mg(e):n===`es`?hg(e):n===`fr`?gg(e):n===`it`?_g(e):n===`pt`?vg(e):n===`ru`?yg(e):n===`zh`?bg(e):n===`th`?xg(e):n===`ko`?Sg(e):n===`id`?Cg(e):n===`vi`?wg(e):n===`tr`?Tg(e):fg(e)},Dg=()=>`Use a different npub`,Og=()=>`別のnpubを使う`,kg=()=>`Anderen npub verwenden`,Ag=()=>`Usar otro npub`,jg=()=>`Utiliser un autre npub`,Mg=()=>`Usa un altro npub`,Ng=()=>`Usar outro npub`,Pg=()=>`Использовать другой npub`,Fg=()=>`使用其他 npub`,Ig=()=>`ใช้ npub อื่น`,Lg=()=>`다른 npub 사용`,Rg=()=>`Gunakan npub lain`,zg=()=>`Dùng npub khác`,Bg=()=>`Farklı bir npub kullan`,Vg=(e={},t={})=>{let n=t.locale??m();return n===`ja`?Og(e):n===`de`?kg(e):n===`es`?Ag(e):n===`fr`?jg(e):n===`it`?Mg(e):n===`pt`?Ng(e):n===`ru`?Pg(e):n===`zh`?Fg(e):n===`th`?Ig(e):n===`ko`?Lg(e):n===`id`?Rg(e):n===`vi`?zg(e):n===`tr`?Bg(e):Dg(e)},Hg=()=>`Verification code`,Ug=()=>`確認コード`,Wg=()=>`Bestätigungscode`,Gg=()=>`Código de verificación`,Kg=()=>`Code de vérification`,qg=()=>`Codice di verifica`,Jg=()=>`Código de verificação`,Yg=()=>`Код подтверждения`,Xg=()=>`验证码`,Zg=()=>`รหัสยืนยัน`,Qg=()=>`인증 코드`,$g=()=>`Kode verifikasi`,e_=()=>`Mã xác minh`,t_=()=>`Doğrulama kodu`,n_=(e={},t={})=>{let n=t.locale??m();return n===`ja`?Ug(e):n===`de`?Wg(e):n===`es`?Gg(e):n===`fr`?Kg(e):n===`it`?qg(e):n===`pt`?Jg(e):n===`ru`?Yg(e):n===`zh`?Xg(e):n===`th`?Zg(e):n===`ko`?Qg(e):n===`id`?$g(e):n===`vi`?e_(e):n===`tr`?t_(e):Hg(e)},r_=()=>`Verifying…`,i_=()=>`確認中…`,a_=()=>`Wird überprüft…`,o_=()=>`Verificando…`,s_=()=>`Vérification…`,c_=()=>`Verifica in corso…`,l_=()=>`Verificando…`,u_=()=>`Проверяем…`,d_=()=>`正在验证…`,f_=()=>`กำลังยืนยัน…`,p_=()=>`인증하는 중…`,m_=()=>`Memverifikasi…`,h_=()=>`Đang xác minh…`,g_=()=>`Doğrulanıyor…`,__=(e={},t={})=>{let n=t.locale??m();return n===`ja`?i_(e):n===`de`?a_(e):n===`es`?o_(e):n===`fr`?s_(e):n===`it`?c_(e):n===`pt`?l_(e):n===`ru`?u_(e):n===`zh`?d_(e):n===`th`?f_(e):n===`ko`?p_(e):n===`id`?m_(e):n===`vi`?h_(e):n===`tr`?g_(e):r_(e)},v_=()=>`Warning`,y_=()=>`警告`,b_=()=>`Warnung`,x_=()=>`Advertencia`,S_=()=>`Avertissement`,C_=()=>`Avviso`,w_=()=>`Aviso`,T_=()=>`Внимание`,E_=()=>`警告`,D_=()=>`คำเตือน`,O_=()=>`경고`,k_=()=>`Peringatan`,A_=()=>`Cảnh báo`,j_=()=>`Uyarı`,M_=(e={},t={})=>{let n=t.locale??m();return n===`ja`?y_(e):n===`de`?b_(e):n===`es`?x_(e):n===`fr`?S_(e):n===`it`?C_(e):n===`pt`?w_(e):n===`ru`?T_(e):n===`zh`?E_(e):n===`th`?D_(e):n===`ko`?O_(e):n===`id`?k_(e):n===`vi`?A_(e):n===`tr`?j_(e):v_(e)},N_=p(`UserPlus`,`<path d="M16 19h6m-3-3v6M6 21v-2a4 4 0 0 1 4-4h4M8 7a4 4 0 1 0 8 0 4 4 0 0 0-8 0"/>`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`}),P_=l(),Y=n(),X=e(t(),1),F_={solid:`border-current border-solid data-[orientation=horizontal]:border-t data-[orientation=vertical]:border-l`,dashed:`text-border-strong border-current border-dashed data-[orientation=horizontal]:border-t data-[orientation=vertical]:border-l`,dotted:`text-border-strong`,double:`border-current border-double data-[orientation=horizontal]:border-t-[calc(var(--border-width)*3)] data-[orientation=vertical]:border-l-[calc(var(--border-width)*3)]`,gradient:`data-[orientation=horizontal]:h-(--border-width) data-[orientation=horizontal]:bg-[linear-gradient(to_right,transparent,currentColor_26%,currentColor_74%,transparent)] data-[orientation=vertical]:w-(--border-width) data-[orientation=vertical]:bg-[linear-gradient(to_bottom,transparent,currentColor_26%,currentColor_74%,transparent)]`,wave:``,zigzag:``},I_={dotted:{strokeScale:1.75,horizontal:{w:6,h:8,d:`M3 4 L3 4`},vertical:{w:8,h:6,d:`M4 3 L4 3`}},wave:{strokeScale:1.5,horizontal:{w:16,h:8,d:`M0 4 Q4 1 8 4 T16 4`},vertical:{w:8,h:16,d:`M4 0 Q1 4 4 8 T4 16`}},zigzag:{strokeScale:1.5,horizontal:{w:16,h:8,d:`M0 6 L4 2 L8 6 L12 2 L16 6`},vertical:{w:8,h:16,d:`M6 0 L2 4 L6 8 L2 12 L6 16`}}};function L_({variant:e,horizontal:t}){let n=X.useId(),r=I_[e];if(!r)return null;let{w:i,h:a,d:o}=t?r.horizontal:r.vertical;return(0,Y.jsxs)(`svg`,{"aria-hidden":`true`,focusable:`false`,className:`block`,width:t?`100%`:i,height:t?a:`100%`,children:[(0,Y.jsx)(`pattern`,{id:n,width:i,height:a,patternUnits:`userSpaceOnUse`,children:(0,Y.jsx)(`path`,{d:o,fill:`none`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,style:{strokeWidth:`calc(var(--border-width) * ${r.strokeScale})`}})}),(0,Y.jsx)(`rect`,{width:`100%`,height:`100%`,fill:`url(#${n})`})]})}function R_({className:e,orientation:t=`horizontal`,variant:n=`solid`,children:r,...i}){let a=n in I_;return(0,Y.jsx)(A,{"data-slot":`separator`,orientation:t,className:f(`text-border shrink-0 data-[orientation=horizontal]:w-full data-[orientation=vertical]:self-stretch`,F_[n],e),...i,children:a?(0,Y.jsx)(L_,{variant:n,horizontal:t===`horizontal`}):r})}var z_=class{constructor(e,t){this.fn=e,this.options=t,this.lastExecutionTime=0,this.isPending=!1,this.maybeExecute=(...e)=>{let t=Date.now()-this.lastExecutionTime;if(this.options.leading&&t>=this.options.wait)this.execute(...e);else if(this.lastArgs=e,!this.timeoutId&&this.options.trailing){let e=this.options.wait-t;this.isPending=!0,this.timeoutId=setTimeout(()=>{this.lastArgs!==void 0&&this.execute(...this.lastArgs)},e)}},this.execute=(...e)=>{this.fn(...e),this.options.onExecute?.(e,this),this.lastExecutionTime=Date.now(),this.clearTimeout(),this.lastArgs=void 0,this.isPending=!1},this.flush=()=>{this.isPending&&this.lastArgs&&this.execute(...this.lastArgs)},this.cancel=()=>{this.clearTimeout(),this.lastArgs=void 0,this.isPending=!1},this.clearTimeout=()=>{this.timeoutId&&=(clearTimeout(this.timeoutId),void 0)},this.options.leading===void 0&&this.options.trailing===void 0&&(this.options.leading=!0,this.options.trailing=!0)}};function B_(e,t){return new z_(e,t).maybeExecute}var V_=class{#e=!0;#t;#n;#r;#i;#a;#o;#s;#c=0;#l=5;#u=!1;#d=!1;#f=null;#p=()=>{this.debugLog(`Connected to event bus`),this.#a=!0,this.#u=!1,this.debugLog(`Emitting queued events`,this.#i),this.#i.forEac
2h(e=>this.emitEventToBus(e)),this.#i=[],this.stopConnectLoop(),this.#n().removeEventListener(`tanstack-connect-success`,this.#p)};#m=()=>{if(this.#c<this.#l){this.#c++,this.dispatchCustomEvent(`tanstack-connect`,{});return}this.#n().removeEventListener(`tanstack-connect`,this.#m),this.#d=!0,this.debugLog(`Max retries reached, giving up on connection`),this.stopConnectLoop()};#h=()=>{this.#u||(this.#u=!0,this.#n().addEventListener(`tanstack-connect-success`,this.#p),this.#m())};constructor({pluginId:e,debug:t=!1,enabled:n=!0,reconnectEveryMs:r=300}){this.#t=e,this.#e=n,this.#n=this.getGlobalTarget,this.#r=t,this.debugLog(` Initializing event subscription for plugin`,this.#t),this.#i=[],this.#a=!1,this.#d=!1,this.#o=null,this.#s=r}startConnectLoop(){this.#o!==null||this.#a||(this.debugLog(`Starting connect loop (every ${this.#s}ms)`),this.#o=setInterval(this.#m,this.#s))}stopConnectLoop(){this.#u=!1,this.#o!==null&&(clearInterval(this.#o),this.#o=null,this.#i=[],this.debugLog(`Stopped connect loop`))}debugLog(...e){this.#r&&console.log(`🌴 [tanstack-devtools:${this.#t}-plugin]`,...e)}getGlobalTarget(){if(typeof globalThis<`u`&&globalThis.__TANSTACK_EVENT_TARGET__)return this.debugLog(`Using global event target`),globalThis.__TANSTACK_EVENT_TARGET__;if(typeof window<`u`&&window.addEventListener!==void 0)return this.debugLog(`Using window as event target`),window;let e=typeof EventTarget<`u`?new EventTarget:void 0;return e===void 0||e.addEventListener===void 0?(this.debugLog(`No event mechanism available, running in non-web environment`),{addEventListener:()=>{},removeEventListener:()=>{},dispatchEvent:()=>!1}):(this.debugLog(`Using new EventTarget as fallback`),e)}getPluginId(){return this.#t}dispatchCustomEventShim(e,t){try{let n=new Event(e,{detail:t});this.#n().dispatchEvent(n)}catch{this.debugLog(`Failed to dispatch shim event`)}}dispatchCustomEvent(e,t){try{this.#n().dispatchEvent(new CustomEvent(e,{detail:t}))}catch{this.dispatchCustomEventShim(e,t)}}emitEventToBus(e){this.debugLog(`Emitting event to client bus`,e),this.dispatchCustomEvent(`tanstack-dispatch-event`,e)}createEventPayload(e,t){return{type:`${this.#t}:${e}`,payload:t,pluginId:this.#t}}emit(e,t){if(!this.#e){this.debugLog(`Event bus client is disabled, not emitting event`,e,t);return}if(this.#f&&(this.debugLog(`Emitting event to internal event target`,e,t),this.#f.dispatchEvent(new CustomEvent(`${this.#t}:${e}`,{detail:this.createEventPayload(e,t)}))),this.#d){this.debugLog(`Previously failed to connect, not emitting to bus`);return}if(!this.#a){this.debugLog(`Bus not available, will be pushed as soon as connected`),this.#i.push(this.createEventPayload(e,t)),typeof CustomEvent<`u`&&!this.#u&&(this.#h(),this.startConnectLoop());return}return this.emitEventToBus(this.createEventPayload(e,t))}on(e,t,n){let r=n?.withEventTarget??!1,i=`${this.#t}:${e}`;if(r&&(this.#f||=new EventTarget,this.#f.addEventListener(i,e=>{t(e.detail)})),!this.#e)return this.debugLog(`Event bus client is disabled, not registering event`,i),()=>{};let a=e=>{this.debugLog(`Received event from bus`,e.detail),t(e.detail)};return this.#n().addEventListener(i,a),this.debugLog(`Registered event to bus`,i
2),()=>{r&&this.#f?.removeEventListener(i,a),this.#n().removeEventListener(i,a)}}onAll(e){if(!this.#e)return this.debugLog(`Event bus client is disabled, not registering event`),()=>{};let t=t=>{let n=t.detail;e(n)};return this.#n().addEventListener(`tanstack-devtools-global`,t),()=>this.#n().removeEventListener(`tanstack-devtools-global`,t)}onAllPluginEvents(e){if(!this.#e)return this.debugLog(`Event bus client is disabled, not registering event`),()=>{};let t=t=>{let n=t.detail;this.#t&&n.pluginId!==this.#t||e(n)};return this.#n().addEventListener(`tanstack-devtools-global`,t),()=>this.#n().removeEventListener(`tanstack-devtools-global`,t)}},Z=new class extends V_{constructor(){super({pluginId:`form-devtools`,reconnectEveryMs:1e3})}};function H_(e,t){return typeof e==`function`?e(t):e}function U_(e,t){return Z_(t).reduce((e,t)=>{if(e===null)return null;if(e!==void 0)return e[t]},e)}function W_(e,t,n){let r=Z_(t);function i(e){if(!r.length)return H_(n,e);let t=r.shift();if(typeof t==`string`||typeof t==`number`&&!Array.isArray(e))return typeof e==`object`?(e===null&&(e={}),{...e,[t]:i(e[t])}):{[t]:i()};if(Array.isArray(e)&&typeof t==`number`){let n=e.slice(0,t);return[...n.length?n:Array(t),i(e[t]),...e.slice(t+1)]}return[...Array(t),i()]}return i(e)}function G_(e,t){let n=Z_(t);function r(e){if(!e)return;if(n.length===1){let t=n[0];if(Array.isArray(e)&&typeof t==`number`)return e.filter((e,n)=>n!==t);let{[t]:r,...i}=e;return i}let t=n.shift();if((typeof t==`string`||typeof t==`number`&&!Array.isArray(e))&&typeof e==`object`)return{...e,[t]:r(e[t])};if(typeof t==`number`&&Array.isArray(e)){if(t>=e.length)return e;let n=e.slice(0,t);return[...n.length?n:Array(t),r(e[t]),...e.slice(t+1)]}throw Error(`It seems we have created an infinite loop in deleteBy. `)}return r(e)}var K_=46,q_=91,J_=93,Y_=48,X_=57;function Z_(e){if(Array.isArray(e))return[...e];if(typeof e!=`string`)throw Error(`Path must be a string.`);let t=e.length,n=[],r=+(t>0&&e.charCodeAt(0)===q_),i=!0,a=-1;for(let o=r;o<=t;o++){let s=o<t?e.charCodeAt(o):-1;if(o===t||s===K_||s===q_||s===J_){let t=o-r;if(t>0){let a=i&&(t===1||e.charCodeAt(r)!==Y_),s=e.slice(r,o);if(a){let e=parseInt(s,10);t<=15||String(e)===s?n.push(e):n.push(s)}else n.push(s)}else a!==J_&&(a!==-1||s!==J_)&&(a!==s||s!==K_&&s!==q_)&&n.push(``);r=o+1,i=!0}else(s<Y_||s>X_)&&(i=!1);a=s}return n.length||n.push(``),n}function Q_(e){return!(Array.isArray(e)&&e.length===0)}function $_(e,t){return t.validationLogic({form:t.form,group:t.group,validators:t.validators,event:{type:e,fieldName:t.fieldName,async:!1},runValidation:e=>e.validators.filter(Boolean).map(e=>({cause:e.cause,validate:e.fn}))})}function ev(e,t){let{asyncDebounceMs:n}=t,{onBlurAsyncDebounceMs:r,onChangeAsyncDebounceMs:i,onDynamicAsyncDebounceMs:a}=t.validators||{},o=n??0;return t.validationLogic({form:t.form,group:t.group,validators:t.validators,event:{type:e,fieldName:t.fieldName,async:!0},runValidation:t=>t.validators.filter(Boolean).map(t=>{let n=t?.cause||e,s=o;switch(n){case`change`:s=i??o;break;case`blur`:s=r??o;break;case`dynamic`:s=a??o;break;case`submit`:s=0}return e===`submit`&&(s=0),{cause:n,validate:t.fn,debounceMs:s}})})}var tv=e=>!!e&&typeof e==`object`&&`fields`in e;function nv(e,t){if(Object.is(e,t))return!0;if(typeof e!=`object`||!e||typeof t!=`object`||!t)return!1;if(e instanceof Date&&t instanceof Date)return e.getTime()===t.getTime();if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(let[n,r]of e)if(!t.has(n)||!Object.is(r,t.get(n)))return!1;return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0}let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length||n.length===0&&!Array.isArray(e)&&!Array.isArray(t)&&(Object.getPrototypeOf(e)!==Object.prototype||Object.getPrototypeOf(t)!==Object.prototype))return!1;for(let i of n)if(!r.includes(i)||!nv(e[i],t[i]))return!1;return!0}var rv=({newFormValidatorError:e,isPreviousErrorFromFormValidator:t,previousErrorValue:n})=>e?{newErrorValue:e,newSource:`form`}:t?{newErrorValue:void 0,newSource:void 0}:n?{newErrorValue:n,newSource:`field`}:{newErrorValue:void 0,newSource:void 0},iv=({formLevelError:e,fieldLevelError:t})=>t?{newErrorValue:t,newSource:`field`}:e?{newErrorValue:e,newSource:`form`}:{newErrorValue:void 0,newSource:void 0};function Q(e,t){return e==null?t:{...e,...t}}for(var av=256,ov=[],sv;av--;)ov[av]=(av+256).toString(16).substring(1);function cv(){let e=0,t,n=``;if(!sv||av+16>256){for(sv=Array(256),e=256;e--;)sv[e]=256*Math.random()|0;e=0,av=0}for(;e<16;
2e++)t=sv[av+e],n+=e===6?ov[t&15|64]:e===8?ov[t&63|128]:ov[t],e&1&&e>1&&e<11&&(n+=`-`);return av++,n}var lv=B_(e=>Z.emit(`form-state`,{id:e.formId,state:e.store.state}),{wait:300});function uv(e){if(typeof e!=`object`||!e)return e;if(e instanceof Date)return new Date(e.getTime());if(Array.isArray(e)){let t=[];for(let n=0;n<e.length;n++)t[n]=uv(e[n]);return t}if(e instanceof Map){let t=new Map;return e.forEach((e,n)=>{t.set(n,uv(e))}),t}if(e instanceof Set){let t=new Set;return e.forEach(e=>{t.add(uv(e))}),t}let t={};for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=uv(e[n]));return t}function dv(e,t){return t===e||t.startsWith(`${e}.`)||t.startsWith(`${e}[`)}var fv=e=>{if(!e.validators)return e.runValidation({validators:[],form:e.form});let t=e.event.async,n=t?void 0:{fn:e.validators.onMount,cause:`mount`},r={fn:t?e.validators.onChangeAsync:e.validators.onChange,cause:`change`},i={fn:t?e.validators.onBlurAsync:e.validators.onBlur,cause:`blur`},a={fn:t?e.validators.onSubmitAsync:e.validators.onSubmit,cause:`submit`},o=t?void 0:{fn:()=>void 0,cause:`server`};switch(e.event.type){case`mount`:return e.runValidation({validators:[n],form:e.form});case`submit`:return e.runValidation({validators:[r,i,a,o],form:e.form});case`server`:return e.runValidation({validators:[],form:e.form});case`blur`:return e.runValidation({validators:[i,o],form:e.form});case`change`:return e.runValidation({validators:[r,o],form:e.form});default:throw Error(`Unknown validation event type: ${e.event.type}`)}};function pv(e,t){let n=new Map;for(let r of e){let e=r.path??[],i=t,a=``;for(let t=0;t<e.length;t++){let n=e[t];if(n===void 0)continue;let r=typeof n==`object`?n.key:n,o=Number(r);a+=Array.isArray(i)&&!Number.isNaN(o)?`[${o}]`:(t>0?`.`:``)+String(r),i=typeof i==`object`&&i?i[r]:void 0}n.set(a,(n.get(a)??[]).concat(r))}return Object.fromEntries(n)}var mv=(e,t)=>{let n=pv(e,t);return{form:n,fields:n}},hv={validate({value:e,validationSource:t},n){let r=n[`~standard`].validate(e);if(r instanceof Promise)throw Error(`async function passed to sync validator`);if(r.issues)return t===`field`?r.issues:mv(r.issues,e)},async validateAsync({value:e,validationSource:t},n){let r=await n[`~standard`].validate(e);if(r.issues)return t===`field`?r.issues:mv(r.issues,e)}},gv=e=>!!e&&`~standard`in e,$={isValidating:!1,isTouched:!1,isBlurred:!1,isDirty:!1,isPristine:!0,isValid:!0,isDefaultValue:!0,errors:[],errorMap:{},errorSourceMap:{},_arrayVersion:0,_pendingValidationsCount:0};function _v(e){function t(t){let n=e.getFieldMeta(t)??$;e.setFieldMeta(t,{...n,_arrayVersion:(n._arrayVersion||0)+1})}function n(n,r,i){t(n);let a=s(n,r,`move`,i),c=Math.min(r,i),u=Math.max(r,i);for(let e=c;e<=u;e++)a.push(o(n,e));let d=Object.keys(e.fieldInfo).reduce((t,i)=>(i.startsWith(o(n,r))&&t.set(i,e.getFieldMeta(i)),t),new Map);l(a,r<i?`up`:`down`),Object.keys(e.fieldInfo).filter(e=>e.startsWith(o(n,i))).forEach(t=>{let a=t.replace(o(n,i),o(n,r)),s=d.get(a);s&&e.setFieldMeta(t,s)})}function r(e,n){t(e),l(s(e,n,`remove`),`up`)}function i(n,r,i){t(n),s(n,r,`swap`,i).forEach(t=>{if(!t.toString().startsWith(o(n,r)))return;let a=t.toString().replace(o(n,r),o(n,i)),[s,c]=[e.getFieldMeta(t),e.getFieldMeta(a)];s&&e.setFieldMeta(a,s),c&&e.setFieldMeta(t,c)})}function a(n,r){t(n);let i=s(n,r,`insert`);l(i,`down`),i.forEach(t=>{t.toString().startsWith(o(n,r))&&e.setFieldMeta(t,u())})}function o(e,t){return`${e}[${t}]`}function s(t,n,r,i){let a=[o(t,n)];switch(r){case`swap`:a.push(o(t,i));break;case`move`:{let[e,r]=[Math.min(n,i),Math.max(n,i)];for(let n=e;n<=r;n++)a.push(o(t,n));break}default:{let r=e.getFieldValue(t),i=Array.isArray(r)?r.length:0;for(let e=n+1;e<i;e++)a.push(o(t,e));break}}return Object.keys(e.fieldInfo).filter(e=>a.some(t=>e.startsWith(t)))}function c(e,t){return e.replace(/\[(\d+)\]/,(e,n)=>{let r=parseInt(n,10);return`[${t===`up`?r+1:Math.max(0,r-1)}]`})}function l(t,n){(n===`up`?t:[...t].reverse()).forEach(t=>{let r=c(t.toString(),n),i=e.getFieldMeta(r);i?e.setFieldMeta(t,i):e.setFieldMeta(t,u())})}let u=()=>$;return{bumpArrayVersion:t,handleArrayMove:n,handleArrayRemove:r,handleArraySwap:i,handleArrayInsert:a}}function vv(e){return{values:e.values??{},errorMap:e.errorMap??{},fieldMetaBase:e.fieldMetaBase??{},formGroupStateBase:e.formGroupStateBase??{},isSubmitted:e.isSubmitted??!1,isSubmitting:e.isSubmitting??!1,isValidating:e.isValidating??!1,submissionAttempts:e.submissionAttempts??0,isSubmitSuccessful:e.isSubmitSuccessful??!1,validationMetaMap:e.validationMetaMap??{onChange:void 0,onBlur:void 0,onSubmit:void 0,onMount:void 0,onServer:void 0,onDynamic:void 0}}}var yv=class{constructor(e){this.options={},this.fieldInfo={},this.formGroupApis=new Set,this.mount=()=>{let e=this.store.subscribe(()=>{lv(this)}),t=Z.on(`request-form-state`,e=>{e.payload.id===this._formId&&Z.emit(`form-api`,{id:this._formId,state:this.store.state,options:this.options})}),n=Z.on(`request-form-reset`,e=>{e.payload.id===this._formId&&this.reset()}),r=Z.on(`request-form-force-submit`,e=>{e.payload.id===this._formId&&(this._devtoolsSubmissionOverride=!0,this.handleSubmit(),this._devtoolsSubmissionOverride=!1)}),i=()=>
2{r(),n(),t(),e.unsubscribe(),Z.emit(`form-unmounted`,{id:this._formId})};this.options.listeners?.onMount?.({formApi:this});let{onMount:a}=this.options.validators||{};return Z.emit(`form-api`,{id:this._formId,state:this.store.state,options:this.options}),a&&this.validateSync(`mount`),i},this.update=e=>{if(!e)return;let t=this.options;this.options=e;let n=e.defaultValues&&!nv(e.defaultValues,t.defaultValues)&&!this.state.isTouched,r=!nv(e.defaultState,t.defaultState)&&!this.state.isTouched;if(n||r){if(o(()=>{this.baseStore.setState(()=>vv(Object.assign({},this.state,r?e.defaultState:{},n?{values:e.defaultValues}:{})))}),n){let e=_v(this);for(let t of Object.keys(this.fieldInfo))Array.isArray(this.getFieldValue(t))&&e.bumpArrayVersion(t)}Z.emit(`form-api`,{id:this._formId,state:this.store.state,options:this.options})}},this.reset=(e,t)=>{let{fieldMeta:n}=this.state,r=this.resetFieldMeta(n);e&&!t?.keepDefaultValues&&(this.options={...this.options,defaultValues:e}),this.baseStore.setState(()=>{let t=e??this.options.defaultValues??this.options.defaultState?.values;return e||Object.values(this.fieldInfo).forEach(e=>{e.instance&&e.instance.options.defaultValue!==void 0&&(t=W_(t,e.instance.name,e.instance.options.defaultValue))}),vv({...this.options.defaultState,values:t,fieldMetaBase:r})})},this.validateAllFields=async e=>{let t=[];return o(()=>{Object.values(this.fieldInfo).forEach(n=>{if(!n.instance)return;let r=n.instance;t.push(Promise.resolve().then(()=>r.validate(e,{skipFormValidation:!0,skipGroupValidation:!0}))),n.instance.store.state.meta.isTouched||n.instance.setMeta(e=>({...e,isTouched:!0}))})}),(await Promise.all(t)).flat()},this.validateArrayFieldsStartingFrom=async(e,t,n)=>{let r=this.getFieldValue(e),i=Array.isArray(r)?Math.max(r.length-1,0):null,a=[`${e}[${t}]`];for(let n=t+1;n<=(i??0);n++)a.push(`${e}[${n}]`);let s=Object.keys(this.fieldInfo).filter(e=>a.some(t=>e.startsWith(t))),c=[];return o(()=>{s.forEach(e=>{c.push(Promise.resolve().then(()=>this.validateField(e,n)))})}),(await Promise.all(c)).flat()},this.validateField=(e,t)=>{let n=this.fieldInfo[e]?.instance;if(!n){let{hasErrored:n}=this.validateSync(t);return n&&!this.options.asyncAlways?this.getFieldMeta(e)?.errors??[]:this.validateAsync(t).then(()=>this.getFieldMeta(e)?.errors??[])}return n.store.state.meta.isTouched||n.setMeta(e=>({...e,isTouched:!0})),n.validate(t)},this.validateSync=(e,t)=>{let n=$_(e,{...this.options,form:this,group:t?.group,validationLogic:this.options.validationLogic||fv}),r=!1,i={};return o(()=>{for(let e of n){if(!e.validate)continue;let{formError:n,fieldErrors:a}=bv(this.runValidator({validate:e.validate,value:{value:this.state.values,formApi:this,validationSource:`form`},type:`validate`})),o=xv(e.cause),s=new Set([...Object.keys(this.state.fieldMeta),...Object.keys(a||{})]);t?.filterFieldNames&&(s=new Set([...s].filter(t.filterFieldNames)));for(let e of s){if(this.baseStore.state.fieldMetaBase[e]===void 0&&!a?.[e])continue;let{errorMap:t,errorSourceMap:n}=this.getFieldMeta(e)??$,r=a?.[e],{newErrorValue:s,newSource:c}=rv({newFormValidatorError:r,isPreviousErrorFromFormValidator:n?.[o]===`form`,previousErrorValue:t?.[o]});c===`form`&&(i[e]={...i[e],[o]:r}),t?.[o]!==s&&this.setFieldMeta(e,(e=$)=>({...e,errorMap:{...e.errorMap,[o]:s},errorSourceMap:{...e.errorSourceMap,[o]:c}}))}t?.dontUpdateFormErrorMap||this.state.errorMap?.[o]!==n&&this.baseStore.setState(e=>({...e,errorMap:{...e.errorMap,[o]:n}})),(n||a)&&(r=!0)}if(t?.dontUpdateFormErrorMap)return;let a=xv(`submit`);this.state.errorMap?.[a]&&e!==`submit`&&!r&&this.baseStore.setState(e=>({...e,errorMap:{...e.errorMap,[a]:void 0}}));let o=xv(`server`);this.state.errorMap?.[o]&&e!==`server`&&!r&&this.baseStore.setState(e=>({...e,errorMap:{...e.errorMap,[o]:void 0}}))}),{hasErrored:r,fieldsErrorMap:i}},this.validateAsync=async(e,t)=>{let n=ev(e,{...this.options,form:this,group:t?.group,validationLogic:this.options.validationLogic||fv});this.state.isFormValidating||this.baseStore.setState(e=>({...e,isFormValidating:!0}));let r=[],i;for(let e of n){if(!e.validate)continue;let n=xv(e.cause);this.state.validationMetaMap[n]?.lastAbortController.abort();let a=new AbortController;this.state.validationMetaMap[n]={lastAbortController:a},r.push(new Promise(async n=>{let r;try{r=await new Promise((t,n)=>{setTimeout(async()=>
2{if(a.signal.aborted)return t(void 0);try{t(await this.runValidator({validate:e.validate,value:{value:this.state.values,formApi:this,validationSource:`form`,signal:a.signal},type:`validateAsync`}))}catch(e){n(e)}},e.debounceMs)})}catch(e){r=e}let{formError:o,fieldErrors:s}=bv(r);s&&(i=i?{...i,...s}:s);let c=xv(e.cause),l=new Set([...Object.keys(this.state.fieldMeta),...Object.keys(i||{})]),u=Array.from(l);t?.filterFieldNames&&(u=u.filter(t.filterFieldNames));for(let e of u){if(this.baseStore.state.fieldMetaBase[e]===void 0&&!i?.[e])continue;let{errorMap:t,errorSourceMap:n}=this.getFieldMeta(e)??$,r=i?.[e],{newErrorValue:a,newSource:o}=rv({newFormValidatorError:r,isPreviousErrorFromFormValidator:n?.[c]===`form`,previousErrorValue:t?.[c]});t?.[c]!==a&&this.setFieldMeta(e,(e=$)=>({...e,errorMap:{...e.errorMap,[c]:a},errorSourceMap:{...e.errorSourceMap,[c]:o}}))}t?.dontUpdateFormErrorMap||this.baseStore.setState(e=>({...e,errorMap:{...e.errorMap,[c]:o}})),n(i?{fieldErrors:i,errorMapKey:c}:void 0)}))}let a=[],o={};if(r.length){a=await Promise.all(r);for(let e of a)if(e?.fieldErrors){let{errorMapKey:t}=e;for(let[n,r]of Object.entries(e.fieldErrors))o[n]={...o[n]||{},[t]:r}}}return this.baseStore.setState(e=>({...e,isFormValidating:!1})),o},this.validate=(e,t)=>{let{hasErrored:n,fieldsErrorMap:r}=this.validateSync(e,t);return n&&!this.options.asyncAlways?r:this.validateAsync(e,t)},this._handleSubmit=async e=>{this.baseStore.setState(e=>({...e,isSubmitted:!1,submissionAttempts:e.submissionAttempts+1,isSubmitSuccessful:!1})),o(()=>{Object.values(this.fieldInfo).forEach(e=>{e.instance&&(e.instance.store.state.meta.isTouched||e.instance.setMeta(e=>({...e,isTouched:!0})))})});let t=e??this.options.onSubmitMeta;if(!this.state.canSubmit&&!this._devtoolsSubmissionOverride&&this.baseStore.state.submissionAttempts<=1){this.options.onSubmitInvalid?.({value:this.state.values,formApi:this,meta:t});return}this.baseStore.setState(e=>({...e,isSubmitting:!0}));let n=()=>{this.baseStore.setState(e=>({...e,isSubmitting:!1}))};if(await this.validateAllFields(`submit`),!this.state.isFieldsValid){n(),this.options.onSubmitInvalid?.({value:this.state.values,formApi:this,meta:t}),Z.emit(`form-submission`,{id:this._formId,submissionAttempt:this.state.submissionAttempts,successful:!1,stage:`validateAllFields`,errors:Object.values(this.state.fieldMeta).map(e=>e.errors).flat()});return}if(await this.validate(`submit`),!this.state.isValid){n(),this.options.onSubmitInvalid?.({value:this.state.values,formApi:this,meta:t}),Z.emit(`form-submission`,{id:this._formId,submissionAttempt:this.state.submissionAttempts,successful:!1,stage:`validate`,errors:this.state.errors});return}o(()=>{Object.values(this.fieldInfo).forEach(e=>{e.instance?.triggerOnSubmitListener()})}),this.options.listeners?.onSubmit?.({formApi:this,meta:t});try{await this.options.onSubmit?.({value:this.state.values,formApi:this,meta:t}),o(()=>{this.baseStore.setState(e=>({...e,isSubmitted:!0,isSubmitSuccessful:!0})),Z.emit(`form-submission`,{id:this._formId,submissionAttempt:this.state.submissionAttempts,successful:!0}),n()})}catch(e){throw this.baseStore.setState(e=>({...e,isSubmitSuccessful:!1})),Z.emit(`form-submission`,{id:this._formId,submissionAttempt:this.state.submissionAttempts,successful:!1,stage:`inflight`,onError:e}),n(),e}},this.getFieldValue=e=>U_(this.state.values,e),this.getFieldMeta=e=>this.state.fieldMeta[e],this.getFormGroupMeta=e=>this.formGroupMetaDerived.state[e],this.getFieldInfo=e=>this.fieldInfo[e]||={instance:null,validationMetaMap:{onChange:void 0,onBlur:void 0,onSubmit:void 0,onMount:void 0,onServer:void 0,onDynamic:void 0}},this.setFieldMeta=(e,t)=>{this.baseStore.setState(n=>({...n,fieldMetaBase:{...n.fieldMetaBase,[e]:H_(t,n.fieldMetaBase[e])}}))},this.resetFieldMeta=e=>Object.keys(e).reduce((e,t)=>{let n=t;return e[n]=$,e},{}),this.setFieldValue=(e,t,n)=>{let r=n?.dontUpdateMeta??!1,i=n?.dontRunListeners??!1,a=n?.dontValidate??!1;o(()=>{r||this.setFieldMeta(e,e=>({...e,isTouched:!0,isDirty:!0,errorMap:{...e?.errorMap,onMount:void 0}})),this.baseStore.setState(n=>({...n,values:W_(n.values,e,t)}))}),i||this.getFieldInfo(e).instance?.triggerOnChangeListener(),a||this.validateField(e,`change`)},this.deleteField=e=>{let t=[...Object.keys(this.fieldInfo).filter(t=>{let n=e.toString();return t.startsWith(`${n}.`)||t.startsWith(`${n}[`)}),e];this.baseStore.setState(e=>{let n={...e};
2return t.forEach(e=>{n.values=G_(n.values,e),delete this.fieldInfo[e],delete n.fieldMetaBase[e]}),n})},this.pushFieldValue=(e,t,n)=>{this.setFieldValue(e,e=>[...Array.isArray(e)?e:[],t],n),_v(this).bumpArrayVersion(e)},this.insertFieldValue=async(e,t,n,r)=>{this.setFieldValue(e,e=>[...e.slice(0,t),n,...e.slice(t)],Q(r,{dontValidate:!0}));let i=r?.dontValidate??!1;i||await this.validateField(e,`change`),_v(this).handleArrayInsert(e,t),i||await this.validateArrayFieldsStartingFrom(e,t,`change`)},this.replaceFieldValue=async(e,t,n,r)=>{this.setFieldValue(e,e=>e.map((e,r)=>r===t?n:e),Q(r,{dontValidate:!0})),_v(this).bumpArrayVersion(e),(r?.dontValidate??!1)||(await this.validateField(e,`change`),await this.validateArrayFieldsStartingFrom(e,t,`change`))},this.removeFieldValue=async(e,t,n)=>{let r=this.getFieldValue(e),i=Array.isArray(r)?Math.max(r.length-1,0):null;if(this.setFieldValue(e,e=>e.filter((e,n)=>n!==t),Q(n,{dontValidate:!0})),_v(this).handleArrayRemove(e,t),i!==null){let t=`${e}[${i}]`;this.deleteField(t)}(n?.dontValidate??!1)||(await this.validateField(e,`change`),await this.validateArrayFieldsStartingFrom(e,t,`change`))},this.swapFieldValues=(e,t,n,r)=>{this.setFieldValue(e,e=>{let r=e[t],i=e[n];return W_(W_(e,`${t}`,i),`${n}`,r)},Q(r,{dontValidate:!0})),_v(this).handleArraySwap(e,t,n),(r?.dontValidate??!1)||(this.validateField(e,`change`),this.validateField(`${e}[${t}]`,`change`),this.validateField(`${e}[${n}]`,`change`))},this.moveFieldValues=(e,t,n,r)=>{this.setFieldValue(e,e=>{let r=[...e];return r.splice(n,0,r.splice(t,1)[0]),r},Q(r,{dontValidate:!0})),_v(this).handleArrayMove(e,t,n),(r?.dontValidate??!1)||(this.validateField(e,`change`),this.validateField(`${e}[${t}]`,`change`),this.validateField(`${e}[${n}]`,`change`))},this.clearFieldValues=(e,t)=>{let n=this.getFieldValue(e),r=Array.isArray(n)?Math.max(n.length-1,0):null;if(this.setFieldValue(e,[],Q(t,{dontValidate:!0})),_v(this).bumpArrayVersion(e),r!==null)for(let t=0;t<=r;t++){let n=`${e}[${t}]`;this.deleteField(n)}(t?.dontValidate??!1)||this.validateField(e,`change`)},this.resetField=e=>{this.baseStore.setState(t=>{let n=this.getFieldInfo(e).instance?.options.defaultValue,r=U_(this.options.defaultValues,e),i=n??r;return{...t,fieldMetaBase:{...t.fieldMetaBase,[e]:$},values:i===void 0?t.values:W_(t.values,e,i)}})},this.setErrorMap=e=>{o(()=>{Object.entries(e).forEach(([e,t])=>{let n=e;if(tv(t)){let{formError:e,fieldErrors:r}=bv(t);for(let e of Object.keys(this.fieldInfo))this.getFieldMeta(e)&&this.setFieldMeta(e,t=>({...t,errorMap:{...t.errorMap,[n]:r?.[e]},errorSourceMap:{...t.errorSourceMap,[n]:`form`}}));this.baseStore.setState(t=>({...t,errorMap:{...t.errorMap,[n]:e}}))}else this.baseStore.setState(e=>({...e,errorMap:{...e.errorMap,[n]:t}}))})})},this.getAllErrors=()=>({form:{errors:this.state.errors,errorMap:this.state.errorMap},fields:Object.entries(this.state.fieldMeta).reduce((e,[t,n])=>(Object.keys(n).length&&n.errors.length&&(e[t]={errors:n.errors,errorMap:n.errorMap}),e),{})}),this.parseValuesWithSchema=e=>hv.validate({value:this.state.values,validationSource:`form`},e),this.parseValuesWithSchemaAsync=e=>hv.validateAsync({value:this.state.values,validationSource:`form`},e),this.timeoutIds={validations:{},listeners:{},formListeners:{}},this._formId=e?.formId??cv(),this._devtoolsSubmissionOverride=!1;let t=vv({...e?.defaultState,values:e?.defaultValues??e?.defaultState?.values});if(e?.transform){t=e.transform({state:t}).state;for(let e of Object.keys(t.errorMap)){let n=t.errorMap[e];if(n!==void 0&&tv(n))for(let r of Object.keys(n.fields)){let i=n.fields[r];if(i===void 0)continue;let a=t.fieldMetaBase[r];t.fieldMetaBase[r]={isTouched:!1,isValidating:!1,isBlurred:!1,isDirty:!1,_arrayVersion:0,_pendingValidationsCount:0,...a??{},errorSourceMap:{...a?.errorSourceMap??{},onChange:`form`},errorMap:{...a?.errorMap??{},[e]:i}}}}}this.baseStore=a(t);let n;this.fieldMetaDerived=a(e=>{let t=this.baseStore.get(),r=0,i={};for(let a of Object.keys(t.fieldMetaBase)){let o=t.fieldMetaBase[a],s=n?.fieldMetaBase[a],c=e?.[a],l=U_(t.values,a),u=c?.errors;if(!s||o.errorMap!==s.errorMap){u=Object.values(o.errorMap??{}).filter(e=>e!==void 0);let e=this.getFieldInfo(a)?.instance;(!e||!e.options.disableErrorFlat)&&(u=u.flat(1))}let d=!Q_(u),f=!o.isDirty,p=nv(l,this.getFieldInfo(a)?.instance?.options.defaultValue??U_(this.options.defaultValues,a));if(c&&c.isPristine===f&&c.isValid===d&&c.isDefaultValue===p&&c.errors===u&&o===s){i[a]=c,r++;continue}i[a]={...o,errors:u??[],isPristine:f,isValid:d,isDefaultValue:p}}return Object.keys(t.fieldMetaBase).length?e&&r===Object.keys(t.fieldMetaBase).length?e:(n=this.baseStore.get(),i):i}),this.formGroupMetaDerived=a(e=>{let t=this.baseStore.get(),n=this.fieldMetaDerived.get(),r={};for(let i of this.formGroupApis){let a=i.name,o=t.formGroupStateBase[a]??{isSubmitted:!1,isSubmitting:!1,isValidating:!1,submissionAttempts:0,isSubmitSuccessful:!1},s=n[a],c=!1,l=!0,u=!1,d=!1,f=!0,p=!1;for(let e in n){if(e===a||!dv(a,e))continue;let t=n[e];t&&(t.isValidating&&(c=!0),t.isValid||(l=!1),t.isTouched&&(u=!0),t.isBlurred&&(d=!0),t.isDefaultValue||(f=!1),t.isDirty&&(p=!0))}
2let m=!p,h=!!c||o.isValidating,g=s?.errorMap??{},_=s?.errorSourceMap??{},v=!!(g.onMount||Object.entries(n).some(([e,t])=>t&&e!==a&&dv(a,e)&&t.errorMap.onMount)),y=e?.[a],b=y?.errors??[];(!y||y.__srcErrorMap!==g)&&(b=Object.values(g).reduce((e,t)=>{if(t===void 0)return e;if(t&&typeof t==`object`&&`fields`in t){let n=t.group;return n!==void 0&&e.push(n),e}return e.push(t),e},[]));let x=b.length===0,S=l&&x,C=i.options.canSubmitWhenInvalid??!1,w=o.submissionAttempts===0&&!u&&!v||!h&&!o.isSubmitting&&S||C;if(y&&y.errorMap===g&&y.errorSourceMap===_&&y.errors===b&&y.isFieldsValidating===c&&y.isFieldsValid===l&&y.isGroupValid===x&&y.isValid===S&&y.canSubmit===w&&y.isTouched===u&&y.isBlurred===d&&y.isPristine===m&&y.isDefaultValue===f&&y.isDirty===p&&y.isValidating===h&&y.isSubmitting===o.isSubmitting&&y.isSubmitted===o.isSubmitted&&y.submissionAttempts===o.submissionAttempts&&y.isSubmitSuccessful===o.isSubmitSuccessful){r[a]=y;continue}let T={...o,errorMap:g,errorSourceMap:_,_arrayVersion:s?._arrayVersion??0,isTouched:u,isBlurred:d,isDirty:p,isPristine:m,isDefaultValue:f,isValid:S,errors:b,isValidating:h,isFieldsValidating:c,isFieldsValid:l,isGroupValid:x,canSubmit:w};Object.defineProperty(T,"__srcErrorMap",{value:g,enumerable:!1,configurable:!0}),r[a]=T}return r});let r;this.store=a(e=>{let t=this.baseStore.get(),n=this.fieldMetaDerived.get(),i=Object.values(n).filter(Boolean),a=i.some(e=>e.isValidating),o=i.every(e=>e.isValid),s=i.some(e=>e.isTouched),c=i.some(e=>e.isBlurred),l=i.every(e=>e.isDefaultValue),u=s&&t.errorMap?.onMount,d=i.some(e=>e.isDirty),f=!d,p=!!(t.errorMap?.onMount||i.some(e=>e?.errorMap?.onMount)),m=!!a,h=e?.errors??[];(!r||t.errorMap!==r.errorMap)&&(h=Object.values(t.errorMap).reduce((e,t)=>t===void 0?e:t&&tv(t)?(e.push(t.form),e):(e.push(t),e),[]));let g=h.length===0,_=o&&g,v=this.options.canSubmitWhenInvalid??!1,y=t.submissionAttempts===0&&!s&&!p||!m&&!t.isSubmitting&&_||v,b=t.errorMap;if(u&&(h=h.filter(e=>e!==t.errorMap.onMount),b=Object.assign(b,{onMount:void 0})),e&&r&&e.errorMap===b&&e.fieldMeta===this.fieldMetaDerived.state&&e.errors===h&&e.isFieldsValidating===a&&e.isFieldsValid===o&&e.isFormValid===g&&e.isValid===_&&e.canSubmit===y&&e.isTouched===s&&e.isBlurred===c&&e.isPristine===f&&e.isDefaultValue===l&&e.isDirty===d&&nv(r,t))return e;let x={...t,errorMap:b,fieldMeta:this.fieldMetaDerived.state,errors:h,isFieldsValidating:a,isFieldsValid:o,isFormValid:g,isValid:_,canSubmit:y,isTouched:s,isBlurred:c,isPristine:f,isDefaultValue:l,isDirty:d};return r=this.baseStore.get(),x}),this.handleSubmit=this.handleSubmit.bind(this),this.update(e||{})}get state(){return this.store.state}get formId(){return this._formId}runValidator(e){return gv(e.validate)?hv[e.type](e.value,e.validate):e.validate(e.value)}handleSubmit(e){return this._handleSubmit(e)}};function bv(e){return e?tv(e)?{formError:bv(e.form).formError,fieldErrors:e.fields}:{formError:e}:{formError:void 0}}function xv(e){switch(e){case`submit`:return`onSubmit`;case`blur`:return`onBlur`;case`mount`:return`onMount`;case`server`:return`onServer`;case`dynamic`:return`onDynamic`;default:return`onChange`}}var Sv=class e{constructor(t){this.options={},this.mount=()=>{this.options.defaultValue!==void 0&&!this.getMeta().isTouched&&this.form.setFieldValue(this.name,this.options.defaultValue,{dontUpdateMeta:!0});let e=this.getInfo();e.instance=this,this.update(this.options);let{onMount:t}=this.options.validators||{};if(t){let e=this.runValidator({validate:t,value:{value:this.state.value,fieldApi:this,validationSource:`field`},type:`validate`});e&&this.setMeta(t=>({...t,errorMap:{...t?.errorMap,onMount:e},errorSourceMap:{...t?.errorSourceMap,onMount:`field`}}))}return this.options.listeners?.onMount?.({value:this.state.value,fieldApi:this}),()=>{for(let[e,t]of Object.entries(this.timeoutIds.validations))t&&(clearTimeout(t),this.timeoutIds.validations[e]=null);for(let[e,t]of Object.entries(this.timeoutIds.listeners))t&&(clearTimeout(t),this.timeoutIds.listeners[e]=null);for(let[e,t]of Object.entries(this.timeoutIds.formListeners))t&&(clearTimeout(t),this.timeoutIds.formListeners[e]=null);let e=this.form.fieldInfo[this.name];if(e&&e.instance===this){for(let[t,n]of Object.entries(e.validationMetaMap))n?.lastAbortController.abort(),e.validationMetaMap[t]=void 0;this.form.baseStore.setState(e=>({...e,fieldMetaBase:{...e.fieldMetaBase,[this.name]:{...$,isTouched:e.fieldMetaBase[this.name]?.isTouched??$.isTouched,isBlurred:e.fieldMetaBase[this.name]?.isBlurred??$.isBlurred,isDirty:e.fieldMetaBase[this.name]?.isDirty??$.isDirty}}})),e.instance=null,this.options.listeners?.onUnmount?.({value:this.state.value,fieldApi:this}),this.form.options.listeners?.onFieldUnmount?.({formApi:this.form,fieldApi:this})}}},this.update=e=>{this.options=e,this.name=e.name,!this.state.meta.isTouched&&this.options.defaultValue!==void 0&&(nv(this.form.getFieldValue(this.name),e.defaultValue)||this.form.setFieldValue(this.name,e.defaultValue,{dontUpdateMeta:!0,dontValidate:!0,dontRunListeners:!0})),this.form.getFieldMeta(this.name)||this.form.setFieldMeta(this.name,this.state.meta)},this.getValue=()=>this.form.getFieldValue(this.name),this.setValue=(e,t)=>
2{this.form.setFieldValue(this.name,e,Q(t,{dontRunListeners:!0,dontValidate:!0})),t?.dontRunListeners||this.triggerOnChangeListener(),t?.dontValidate||this.validate(`change`)},this.getMeta=()=>this.store.state.meta,this.setMeta=e=>this.form.setFieldMeta(this.name,e),this.getInfo=()=>this.form.getFieldInfo(this.name),this.pushValue=(e,t)=>{this.form.pushFieldValue(this.name,e,Q(t,{dontRunListeners:!0})),t?.dontRunListeners||this.triggerOnChangeListener()},this.insertValue=(e,t,n)=>{this.form.insertFieldValue(this.name,e,t,Q(n,{dontRunListeners:!0})),n?.dontRunListeners||this.triggerOnChangeListener()},this.replaceValue=(e,t,n)=>{this.form.replaceFieldValue(this.name,e,t,Q(n,{dontRunListeners:!0})),n?.dontRunListeners||this.triggerOnChangeListener()},this.removeValue=(e,t)=>{this.form.removeFieldValue(this.name,e,Q(t,{dontRunListeners:!0})),t?.dontRunListeners||this.triggerOnChangeListener()},this.swapValues=(e,t,n)=>{this.form.swapFieldValues(this.name,e,t,Q(n,{dontRunListeners:!0})),n?.dontRunListeners||this.triggerOnChangeListener()},this.moveValue=(e,t,n)=>{this.form.moveFieldValues(this.name,e,t,Q(n,{dontRunListeners:!0})),n?.dontRunListeners||this.triggerOnChangeListener()},this.clearValues=e=>{this.form.clearFieldValues(this.name,Q(e,{dontRunListeners:!0})),e?.dontRunListeners||this.triggerOnChangeListener()},this.getLinkedFields=t=>{let n=Object.values(this.form.fieldInfo),r=[];for(let i of n){if(!i.instance||!(i.instance instanceof e))continue;let{onChangeListenTo:n,onBlurListenTo:a}=i.instance.options.validators||{};t===`change`&&n?.includes(this.name)&&r.push(i.instance),t===`blur`&&a?.includes(this.name)&&r.push(i.instance)}return r},this.validateSync=(e,t)=>{let n=$_(e,{...this.options,form:this.form,fieldName:this.name,validationLogic:this.form.options.validationLogic||fv}),r=this.getLinkedFields(e).reduce((t,n)=>{let r=$_(e,{...n.options,form:n.form,fieldName:n.name,validationLogic:n.form.options.validationLogic||fv});return r.forEach(e=>{e.field=n}),t.concat(r)},[]),i=!1;o(()=>{let e=(e,n)=>{let r=wv(n.cause),a=n.validate?Cv(e.runValidator({validate:n.validate,value:{value:e.store.state.value,validationSource:`field`,fieldApi:e},type:`validate`})):void 0,o=t[r],{newErrorValue:s,newSource:c}=iv({formLevelError:o,fieldLevelError:a});e.state.meta.errorMap?.[r]!==s&&e.setMeta(e=>({...e,errorMap:{...e.errorMap,[r]:s},errorSourceMap:{...e.errorSourceMap,[r]:c}})),s&&(i=!0)};for(let t of n)e(this,t);for(let t of r)t.validate&&e(t.field,t)});let a=wv(`submit`);return this.state.meta.errorMap?.[a]&&e!==`submit`&&!i&&this.setMeta(e=>({...e,errorMap:{...e.errorMap,[a]:void 0},errorSourceMap:{...e.errorSourceMap,[a]:void 0}})),{hasErrored:i}},this.validateAsync=async(e,t)=>{let n=ev(e,{...this.options,form:this.form,fieldName:this.name,validationLogic:this.form.options.validationLogic||fv}),r=await t,i=this.getLinkedFields(e).reduce((t,n)=>{let r=ev(e,{...n.options,form:n.form,fieldName:n.name,validationLogic:n.form.options.validationLogic||fv});return r.forEach(e=>{e.field=n}),t.concat(r)},[]),a=[],s=[],c=n.some(e=>e.validate),l=Array.from(new Set(i.filter(e=>e.validate).map(e=>e.field)));o(()=>{c&&this.startValidation();for(let e of l)e.startValidation()});let u=(e,t,n)=>{let i=wv(t.cause),a=e.getInfo();a.validationMetaMap[i]?.lastAbortController.abort();let o=new AbortController;a.validationMetaMap[i]={lastAbortController:o},n.push(new Promise(async n=>{let a;try{a=await new Promise((n,r)=>{e.timeoutIds.validations[t.cause]&&(clearTimeout(e.timeoutIds.validations[t.cause]),e.endValidation()),e.timeoutIds.validations[t.cause]=setTimeout(async()=>{if(o.signal.aborted)return n(void 0);try{n(await this.runValidator({validate:t.validate,value:{value:e.store.state.value,fieldApi:e,signal:o.signal,validationSource:`field`},type:`validateAsync`}))}catch(e){r(e)}},t.debounceMs)})}catch(e){a=e}if(o.signal.aborted)return n(void 0);let s=Cv(a),c=r[e.name]?.[i],{newErrorValue:l,newSource:u}=iv({formLevelError:c,fieldLevelError:s});if(e.getInfo().instance!==e)return n(void 0);e.setMeta(e=>({...e,errorMap:{...e?.errorMap,[i]:l},errorSourceMap:{...e.errorSourceMap,[i]:u}})),n(l)}))};for(let e of n)e.validate&&u(this,e,a);for(let e of i)e.validate&&u(e.field,e,s);let d=[];return(a.length||s.length)&&(d=await Promise.all(a),await Promise.all(s)),o(()=>{c&&this.endValidation();for(let e of l)e.endValidation()}
2),d.filter(Boolean)},this.validate=(e,t)=>{if(!this.state.meta.isTouched)return[];let n=t?.skipGroupValidation?[]:Array.from(this.form.formGroupApis).filter(e=>this.name.startsWith(e.name)),r=(t?.skipFormValidation?{fieldsErrorMap:{}}:this.form.validateSync(e)).fieldsErrorMap[this.name]??{};if(!t?.skipFormValidation)for(let t of n){if(t.state.meta.submissionAttempts===0)continue;let{fieldsErrorMap:n}=this.form.validateSync(e,{group:t,dontUpdateFormErrorMap:!0,filterFieldNames:e=>dv(t.name,e)});r={...r,...n[this.name]??{}}}let{hasErrored:i}=this.validateSync(e,r),a=new WeakMap;for(let t of n){let{hasErrored:n}=t.validateSync(e,{},{skipRelatedFieldValidation:!0});a.set(t,n)}if(i&&!this.options.asyncAlways){this.getInfo().validationMetaMap[wv(e)]?.lastAbortController.abort();let t=[];for(let r of n)r.getInfo().validationMetaMap[wv(e)]?.lastAbortController.abort(),t.push(r.state.meta.errors);return[...this.state.meta.errors,...t.flat()]}let o=t?.skipFormValidation?Promise.resolve({}):this.form.validateAsync(e),s=this.validateAsync(e,o),c=[];for(let t of n)(!a.get(t)||t.options.asyncAlways)&&c.push(t.validateAsync(e,o,{skipRelatedFieldValidation:!0}));return c.length===0?s:Promise.all([s,...c]).then(e=>e.flat())},this.handleChange=e=>{this.setValue(e)},this.handleBlur=()=>{this.state.meta.isTouched||this.setMeta(e=>({...e,isTouched:!0})),this.state.meta.isBlurred||this.setMeta(e=>({...e,isBlurred:!0})),this.validate(`blur`),this.triggerOnBlurListener()},this.setErrorMap=e=>{this.setMeta(t=>({...t,errorMap:{...t.errorMap,...e}}))},this.parseValueWithSchema=e=>hv.validate({value:this.state.value,validationSource:`field`},e),this.parseValueWithSchemaAsync=e=>hv.validateAsync({value:this.state.value,validationSource:`field`},e),this.triggerOnBlurListener=()=>{let e=this.form.options.listeners?.onBlurDebounceMs;e&&e>0?(this.timeoutIds.formListeners.blur&&clearTimeout(this.timeoutIds.formListeners.blur),this.timeoutIds.formListeners.blur=setTimeout(()=>{this.form.options.listeners?.onBlur?.({formApi:this.form,fieldApi:this})},e)):this.form.options.listeners?.onBlur?.({formApi:this.form,fieldApi:this});let t=this.options.listeners?.onBlurDebounceMs;t&&t>0?(this.timeoutIds.listeners.blur&&clearTimeout(this.timeoutIds.listeners.blur),this.timeoutIds.listeners.blur=setTimeout(()=>{this.options.listeners?.onBlur?.({value:this.state.value,fieldApi:this})},t)):this.options.listeners?.onBlur?.({value:this.state.value,fieldApi:this})},this.triggerOnChangeListener=()=>{let e=this.form.options.listeners?.onChangeDebounceMs;e&&e>0?(this.timeoutIds.formListeners.change&&clearTimeout(this.timeoutIds.formListeners.change),this.timeoutIds.formListeners.change=setTimeout(()=>{this.form.options.listeners?.onChange?.({formApi:this.form,fieldApi:this})},e)):this.form.options.listeners?.onChange?.({formApi:this.form,fieldApi:this});let t=this.options.listeners?.onChangeDebounceMs;t&&t>0?(this.timeoutIds.listeners.change&&clearTimeout(this.timeoutIds.listeners.change),this.timeoutIds.listeners.change=setTimeout(()=>{this.options.listeners?.onChange?.({value:this.state.value,fieldApi:this})},t)):this.options.listeners?.onChange?.({value:this.state.value,fieldApi:this});for(let e of this.form.formGroupApis)dv(e.name,this.name)&&e.triggerOnChangeListener()},this.triggerOnSubmitListener=()=>{this.options.listeners?.onSubmit?.({value:this.state.value,fieldApi:this})},this.form=t.form,this.name=t.name,this.options=t,this.timeoutIds={validations:{},listeners:{},formListeners:{}},this.store=a(e=>{this.form.store.get();let n=this.form.getFieldMeta(this.name)??{...$,...t.defaultMeta},r=this.form.getFieldValue(this.name);return!n.isTouched&&r===void 0&&this.options.defaultValue!==void 0&&!nv(r,this.options.defaultValue)&&(r=this.options.defaultValue),e&&e.value===r&&e.meta===n?e:{value:r,meta:n}})}get state(){return this.store.state}runValidator(e){return gv(e.validate)?hv[e.type](e.value,e.validate):e.validate(e.value)}startValidation(){this.setMeta(e=>{let t=e._pendingValidationsCount+1;return{...e,_pendingValidationsCount:t,isValidating:t>0&&!e.isValidating||e.isValidating}})}endValidation(){this.setMeta(e=>{let t=Math.max(0,e._pendingValidationsCount-1);return{...e,_pendingValidationsCount:t,isValidating:t===0&&e.isValidating?!1:e.isValidating}})}};function Cv(e){if(e)return e}function wv(e){switch(e){case`submit`:return`onSubmit`;case`blur`:return`onBlur`;case`mount`:return`onMount`;case`server`:return`onServer`;case`dynamic`:return`onDynamic`;default:return`onChange`}}function Tv(e){return{isSubmitted:e.isSubmitted??!1,isSubmitting:e.isSubmitting??!1,isValidating:e.isValidating??!1,submissionAttempts:e.submissionAttempts??0,isSubmitSuccessful:e.isSubmitSuccessful??!1}}function Ev(e){return{...$,...e,errors:[],isPristine:!0,isValid:!0,isDefaultValue:!0,isFieldsValidating:!1,isFieldsValid:!0,isGroupValid:!0,canSubmit:!0,isSubmitting:!1,isSubmitted:!1,isValidating:!1,submissionAttempts:0,isSubmitSuccessful:!1}}var Dv=class e{constructor(t){this.options={},this.setFormGroupState=e=>{this.form.baseStore.setState(t=>{let n=t.formGroupStateBase[this.name]??Tv({});return{...t,formGroupStateBase:{...t.formGroupStateBase,[this.name]:e(n)}}})},this._lastDistributedFieldNames={},this.update=e=>{this.options=e,this.name=e.name,!this.state.meta.isTouched&&this.options.defaultValue!==void 0&&(nv(this.form.getFieldValue(this.name),e.defaultValue)||this.form.setFieldValue(this.name,e.defaultValue,{dontUpdateMeta:!0,dontValidate:!0,dontRunListeners:!0})),this.form.getFieldMeta(this.name)||this.form.setFieldMeta(this.name,{...$,...this.options.defaultMeta})},this.mount=()=>{this.update(this.options),this.form.formGroupApis.add(this),this.fieldInfo.instance=this,this.form.baseStore.setState(e=>({...e,formGroupStateBase:{...e.formGroupStateBase,[this.name]:e.formGroupStateBase[this.name]??Tv({...this.options.defaultState})}}));let{onMount:e}=this.options.validators||{};if(e){let t=this.runValidator({validate:e,value:{value:this.state.value,groupApi:this,validationSource:`form`},type:`validate`}),n=t,r;kv(t)&&(n=t.group,r=t.fields);let i=Ov(n);i&&this.setMeta(e=>({...e,errorMap:{...e.errorMap,onMount:i},errorSourceMap:{...e.errorSourceMap,onMount:`field`}})),this.distributeFieldErrors(`onMount`,r)}return this.options.listeners?.onMount?.({value:this.state.value,groupApi:this}),()=>{for(let[e,t]of Object.entries(this.timeoutIds.validations))t&&(clearTimeout(t),this.timeoutIds.validations[e]=null);for(let[e,t]of Object.entries(this.timeoutIds.listeners))t&&(clearTimeout(t),this.timeoutIds.listeners[e]=null);for(let[e,t]of Object.entries(this.timeoutIds.formListeners))t&&(clearTimeout(t),this.timeoutIds.formListeners[e]=null);if(this.fieldInfo.instance===this){for(let[e,t]of Object.entries(this.fieldInfo.validationMetaMap))t?.lastAbortController.abort(),this.fieldInfo.validationMetaMap[e]=void 0;this.form.formGroupApis.delete(this),this.form.baseStore.setState(e=>({...e,formGroupStateBase:{...e.formGroupStateBase,[this.name]:Tv({})}})),this.fieldInfo.instance=null,this.options.listeners?.onUnmount?.({value:this.state.value,groupApi:this})}}},this.setValue=(e,t)=>
2{this.form.setFieldValue(this.name,e,Q(t,{dontRunListeners:!0,dontValidate:!0})),t?.dontRunListeners||this.triggerOnChangeListener(),t?.dontValidate||this.validate(`change`)},this.getMeta=()=>this.store.state.meta,this.setMeta=e=>this.form.setFieldMeta(this.name,e),this.getInfo=()=>this.fieldInfo,this.getRelatedFields=()=>{let e=Object.values(this.form.fieldInfo),t=[];for(let n of e)n.instance&&n.instance instanceof Sv&&n.instance.name.startsWith(this.name)&&t.push(n.instance);return t},this.getRelatedFieldMetasDerived=()=>{let e=Object.entries(this.form.fieldMetaDerived.state),t=[];for(let[n,r]of e)n!==this.name&&dv(this.name,n)&&t.push({...r,name:n});return t},this.buildChildFieldName=e=>e===``?this.name:e.startsWith(`[`)?`${this.name}${e}`:`${this.name}.${e}`,this.distributeFieldErrors=(e,t)=>{let n=this._lastDistributedFieldNames[e]??new Set,r=new Set;if(t)for(let[e,n]of Object.entries(t))n!=null&&n!==!1&&r.add(this.buildChildFieldName(e));let i=new Set([...n,...r]),a=!1;for(let n of i){let r=n.startsWith(this.name+`[`)?n.slice(this.name.length):n.slice(this.name.length+1),i=t?.[r],o=this.form.getFieldMeta(n);if(!o&&!i)continue;let s=o?.errorMap[e],{newErrorValue:c,newSource:l}=rv({newFormValidatorError:i,isPreviousErrorFromFormValidator:o?.errorSourceMap[e]===`form`,previousErrorValue:s});c&&(a=!0),(s!==c||o?.errorSourceMap[e]!==l)&&this.form.setFieldMeta(n,(t=$)=>({...t,errorMap:{...t.errorMap,[e]:c},errorSourceMap:{...t.errorSourceMap,[e]:l}}))}return this._lastDistributedFieldNames[e]=r,a},this.validateSync=(t,n,r={})=>{let i=$_(t,{...this.options,form:this.form,group:this,validationLogic:this.options.validationLogic||this.form.options.validationLogic||fv}),a=(r.skipRelatedFieldValidation?[]:this.getRelatedFields()).reduce((e,n)=>{let r=$_(t,{...n.options,form:n.form,validationLogic:n.form.options.validationLogic||fv});return r.forEach(e=>{e.field=n}),e.concat(r)},[]),s=!1;o(()=>{let t=(t,r)=>{let i=jv(r.cause),a=t===this,o;r.validate&&(o=t.runValidator({validate:r.validate,value:{value:t.store.state.value,validationSource:a?`form`:`field`,...t instanceof e?{groupApi:t}:{fieldApi:t}},type:`validate`}));let c=o,l;a&&kv(o)&&(c=o.group,l=o.fields);let u=Ov(c),d=n[i],{newErrorValue:f,newSource:p}=iv({formLevelError:d,fieldLevelError:u});t.state.meta.errorMap?.[i]!==f&&t.setMeta(e=>({...e,errorMap:{...e.errorMap,[i]:f},errorSourceMap:{...e.errorSourceMap,[i]:p}})),f&&(s=!0),a&&this.distributeFieldErrors(i,l)&&(s=!0)};for(let e of i)t(this,e);for(let e of a)e.validate&&t(e.field,e)});let c=jv(`submit`);return this.state.meta.errorMap?.[c]&&t!==`submit`&&!s&&this.setMeta(e=>({...e,errorMap:{...e.errorMap,[c]:void 0},errorSourceMap:{...e.errorSourceMap,[c]:void 0}})),{hasErrored:s}},this.validateAsync=async(t,n,r={})=>{let i=ev(t,{...this.options,form:this.form,group:this,validationLogic:this.options.validationLogic||this.form.options.validationLogic||fv}),a=await n,o=r.skipRelatedFieldValidation?[]:this.getRelatedFields(),s=o.reduce((e,n)=>{let r=ev(t,{...n.options,form:n.form,validationLogic:n.form.options.validationLogic||fv});return r.forEach(e=>{e.field=n}),e.concat(r)},[]),c=[],l=[],u=i.some(e=>e.validate)||s.some(e=>e.validate);if(u){this.state.meta.isValidating||this.setMeta(e=>({...e,isValidating:!0}));for(let e of o)e.setMeta(e=>({...e,isValidating:!0}))}let d=(t,n,r)=>{let i=jv(n.cause),o=t.getInfo();o.validationMetaMap[i]?.lastAbortController.abort();let s=new AbortController;o.validationMetaMap[i]={lastAbortController:s};let c=t===this;r.push(new Promise(async r=>{let o;try{o=await new Promise((r,i)=>{t.timeoutIds.validations[n.cause]&&clearTimeout(t.timeoutIds.validations[n.cause]),t.timeoutIds.validations[n.cause]=setTimeout(async()=>{if(s.signal.aborted)return r(void 0);try{r(await this.runValidator({validate:n.validate,value:{value:t.store.state.value,signal:s.signal,validationSource:c?`form`:`field`,...t instanceof e?{groupApi:t}:{fieldApi:t}},type:`validateAsync`}))}catch(e){i(e)}},n.debounceMs)})}catch(e){o=e}if(s.signal.aborted)return r(void 0);let l=o,u;c&&kv(o)&&(l=o.group,u=o.fields);let d=Ov(l),f=a[t.name]?.[i],{newErrorValue:p,newSource:m}=iv({formLevelError:f,fieldLevelError:d});if(t.getInfo().instance!==t)return r(void 0);t.setMeta(e=>({...e,errorMap:{...e?.errorMap,[i]:p},errorSourceMap:{...e.errorSourceMap,[i]:m}})),c&&this.distributeFieldErrors(i,u),r(p)}))};for(let e of i)e.validate&&d(this,e,c);
2for(let e of s)e.validate&&d(e.field,e,l);let f=[];if((c.length||l.length)&&(f=await Promise.all(c),await Promise.all(l)),u){this.setMeta(e=>({...e,isValidating:!1}));for(let e of o)e.setMeta(e=>({...e,isValidating:!1}))}return f.filter(Boolean)},this.validateAllFields=async e=>{let t=[];return o(()=>{Object.values(this.getRelatedFields()).forEach(n=>{t.push(Promise.resolve().then(()=>n.validate(e,{skipFormValidation:!0,skipGroupValidation:!0}))),n.store.state.meta.isTouched||n.setMeta(e=>({...e,isTouched:!0}))})}),(await Promise.all(t)).flat()},this.validateArrayFieldsStartingFrom=(e,t,n)=>this.form.validateArrayFieldsStartingFrom(e,t,n),this.validateField=(e,t)=>this.form.validateField(e,t),this.getFieldValue=e=>this.form.getFieldValue(e),this.getFieldMeta=e=>this.form.getFieldMeta(e),this.setFieldMeta=(e,t)=>this.form.setFieldMeta(e,t),this.setFieldValue=(e,t)=>this.form.setFieldValue(e,t),this.deleteField=e=>this.form.deleteField(e),this.pushFieldValue=(e,t)=>this.form.pushFieldValue(e,t),this.insertFieldValue=(e,t,n)=>this.form.insertFieldValue(e,t,n),this.replaceFieldValue=(e,t,n)=>this.form.replaceFieldValue(e,t,n),this.swapFieldValues=(e,t,n)=>this.form.swapFieldValues(e,t,n),this.moveFieldValues=(e,t,n)=>this.form.moveFieldValues(e,t,n),this.clearFieldValues=e=>this.form.clearFieldValues(e),this.resetField=e=>this.form.resetField(e),this.removeFieldValue=(e,t)=>this.form.removeFieldValue(e,t),this.areRelatedFieldsValid=()=>Object.values(this.getRelatedFields()).every(e=>e.state.meta.isValid),this.validate=(e,t)=>{let{fieldsErrorMap:n}=t?.skipFormValidation?{fieldsErrorMap:{}}:this.form.validateSync(e,{dontUpdateFormErrorMap:!0,filterFieldNames:e=>dv(this.name,e)}),{hasErrored:r}=this.validateSync(e,n[this.name]??{},{skipRelatedFieldValidation:t?.skipRelatedFieldValidation});if(r&&!this.options.asyncAlways)return this.getInfo().validationMetaMap[jv(e)]?.lastAbortController.abort(),this.state.meta.errors;let i=t?.skipFormValidation?Promise.resolve({}):this.form.validateAsync(e,{dontUpdateFormErrorMap:!0,filterFieldNames:e=>dv(this.name,e)});return this.validateAsync(e,i,{skipRelatedFieldValidation:t?.skipRelatedFieldValidation})},this.triggerOnChangeListener=()=>{let e=this.form.options.listeners?.onChangeGroupDebounceMs;e&&e>0?(this.timeoutIds.formListeners.change&&clearTimeout(this.timeoutIds.formListeners.change),this.timeoutIds.formListeners.change=setTimeout(()=>{this.form.options.listeners?.onChangeGroup?.({formApi:this.form,groupApi:this})},e)):this.form.options.listeners?.onChangeGroup?.({formApi:this.form,groupApi:this});let t=this.options.listeners?.onChangeDebounceMs;t&&t>0?(this.timeoutIds.listeners.change&&clearTimeout(this.timeoutIds.listeners.change),this.timeoutIds.listeners.change=setTimeout(()=>{this.options.listeners?.onChange?.({value:this.state.value,groupApi:this})},t)):this.options.listeners?.onChange?.({value:this.state.value,groupApi:this})},this.triggerOnSubmitListener=()=>{this.options.listeners?.onSubmit?.({value:this.state.value,groupApi:this})},this._handleSubmit=async e=>{this.setFormGroupState(e=>({...e,isSubmitted:!1,submissionAttempts:e.submissionAttempts+1,isSubmitSuccessful:!1})),o(()=>{Object.values(this.getRelatedFields()).forEach(e=>{e.state.meta.isTouched||e.setMeta(e=>({...e,isTouched:!0}))})});let t=e??this.options.onSubmitMeta;this.setFormGroupState(e=>({...e,isSubmitting:!0}));let n=()=>{this.setFormGroupState(e=>({...e,isSubmitting:!1}))};if(await this.validateAllFields(`submit`),!this.areRelatedFieldsValid()){n(),this.options.onGroupSubmitInvalid?.({value:this.state.value,groupApi:this,meta:t});return}if(await this.validate(`submit`,{skipRelatedFieldValidation:!0}),!this.areRelatedFieldsValid()||!this.state.meta.isValid){n(),this.options.onGroupSubmitInvalid?.({value:this.state.value,groupApi:this,meta:t});return}o(()=>{Object.values(this.getRelatedFields()).forEach(e=>{e.options.listeners?.onGroupSubmit?.({value:e.state.value,fieldApi:e})})}),this.options.listeners?.onSubmit?.({groupApi:this,value:this.state.value});try{await this.options.onGroupSubmit?.({value:this.state.value,groupApi:this,meta:t}),o(()=>{this.setFormGroupState(e=>({...e,isSubmitted:!0,isSubmitSuccessful:!0})),n()})}catch(e){throw this.setFormGroupState(e=>({...e,isSubmitSuccessful:!1})),n(),e}},this.form=t.form,this.name=t.name,this.options=t,this.timeoutIds={validations:{},listeners:{},formListeners:{}},this.fieldInfo={instance:null,validationMetaMap:{onChange:void 0,onBlur:void 0,onSubmit:void 0,onMount:void 0,onServer:void 0,onDynamic:void 0}},this.store=a(e=>{this.form.formGroupMetaDerived.get(),this.form.baseStore.get();let n=this.form.getFormGroupMeta(this.name)??Ev(t.defaultMeta),r=this.form.getFieldValue(this.name);return!n.isTouched&&r===void 0&&this.options.defaultValue!==void 0&&!nv(r,this.options.defaultValue)&&(r=this.options.defaultValue),e&&e.value===r&&e.meta===n?e:{value:r,meta:n}}),this.handleSubmit=this.handleSubmit.bind(this)}get state(){return this.store.state}runValidator(e){if(gv(e.validate)){let t=hv[e.type](e.value,e.validate);return e.type===`validate`?Av(t):t.then(Av)}return e.validate(e.value)}handleSubmit(e){return this._handleSubmit(e)}};function Ov(e){if(e)return e}function kv(e){return!!e&&typeof e==`object`&&`fields`in e}function Av(e){if(!e||typeof e!=`object`||!(`form`in e)&&!(`fields`in e))return e;let{form:t,fields:n,...r}=e;return{...r,group:t,fields:n}}function jv(e){switch(e){case`submit`:return`onSubmit`;case`blur`:return`onBlur`;case`mount`:return`onMount`;case`server`:return`onServer`;case`dynamic`:return`onDynamic`;default:return`onChange`}}function Mv(e,t){if(!t)return;let n=Object.assign({},e,{state:uv(e.state)});t(n),n.fieldInfo!==e.fieldInfo&&(e.fieldInfo=n.fieldInfo),n.options!==e.options&&(e.options=n.options);let r=Object.keys({values:null,validationMetaMap:null,fieldMetaBase:null,formGroupStateBase:null,isSubmitting:null,isSubmitted:null,isValidating:null,submissionAttempts:null,isSubmitSuccessful:null,_force_re_eval:null}).reduce((t,r)=>(e.state[r]!==n.state[r]&&(t[r]=n.state[r]),t),{});return o(()=>{Object.keys(r).length&&e.baseStore.setState(e=>({...e,...r})),n.state.errorMap!==e.state.errorMap&&e.setErrorMap(n.state.errorMap)}),n}var Nv=typeof window<`u`?X.useLayoutEffect:X.useEffect;function Pv(e){let[t,n]=(0,X.useState)(()=>({form:e.form,name:e.name})),[r,i]=(0,X.useState)(()=>new Sv({...e})),a=r;(t.form!==e.form||t.name!==e.name)&&(a=new Sv({...e}),i(a),n({form:e.form,name:e.name}));let o=s(a.store,e.mode===`array`?e=>e.meta._arrayVersion||0:e=>e.value),c=s(a.store,e=>e.meta.isTouched),l=s(a.store,e=>e.meta.isBlurred),u=s(a.store,e=>e.meta.isDirty),d=s(a.store,e=>e.meta.errorMap),f=s(a.store,e=>e.meta.errorSourceMap),p=s(a.store,e=>e.meta.isValidating),m=(0,X.useMemo)(()=>({...a,get state(){return{value:e.mode===`array`?a.state.value:o,get meta(){return{...a.state.meta,isTouched:c,isBlurred:l,isDirty:u,errorMap:d,errorSourceMap:f,isValidating:p}}}}}),[a,e.mode,o,c,l,u,d,f,p]);return Nv(a.mount,[a]),Nv(()=>{a.update(e)}),m}var Fv=(({children:e,...t})=>{let n=Pv(t),r=(0,X.useMemo)(()=>H_(e,n),[e,n]);return(0,Y.jsx)(Y.Fragment,{children:r})});function Iv(){return(0,X.useState)(()=>cv())[0]}var Lv=X,Rv=`19.3.0`.split(`.`)[0]===`17`?Iv:Lv.useId;function zv(e){let[t,n]=(0,X.useState)(()=>({form:e.form,name:e.name})),[r,i]=(0,X.useState)(()=>new Dv({...e}));(t.form!==e.form||t.name!==e.name)&&(i(new Dv({...e})),n({form:e.form,name:e.name}));let a=s(r.store,e=>e.value),o=s(r.store,e=>e.meta.isTouched),c=s(r.store,e=>e.meta.isBlurred),l=s(r.store,e=>e.meta.isDirty),u=s(r.store,e=>e.meta.errorMap),d=s(r.store,e=>e.meta.errorSourceMap),f=s(r.store,e=>e.meta.isValidating),p=s(r.store,e=>e.meta.isSubmitting),m=s(r.store,e=>e.meta.isSubmitted),h=s(r.store,e=>e.meta.submissionAttempts),g=s(r.store,e=>e.meta.isSubmitSuccessful),_=s(r.store,e=>e.meta.canSubmit),v=s(r.store,e=>e.meta.isValid),y=s(r.store,e=>e.meta.isFieldsValid),b=s(r.store,e=>e.meta.isFieldsValidating),x=s(r.store,e=>e.meta.isGroupValid),S=(0,X.useMemo)(()=>({...r,handleSubmit:((...e)=>r._handleSubmit(...e)),get state(){return{...r.state,value:a,get meta(){return{...r.state.meta,isTouched:o,isBlurred:c,isDirty:l,errorMap:u,errorSourceMap:d,isValidating:f,isSubmitting:p,isSubmitted:m,submissionAttempts:h,isSubmitSuccessful:g,canSubmit:_,isValid:v,isFieldsValid:y,isFieldsValidating:b,isGroupValid:x}}}}}),[r,a,o,c,l,u,d,f,p,m,h,g,_,v,y,b,x]);return Nv(r.mount,[r]),Nv(()=>{r.update(e)}),S}var Bv=(({children:e,...t})=>{let n=zv(t),r=(0,X.useMemo)(()=>H_(e,n),[e,n]);return(0,Y.jsx)(Y.Fragment,{children:r})});function Vv({form:e,selector:t=e=>e,children:n}){let r=s(e.store,t);return(0,Y.jsx)(Y.Fragment,{children:H_(n,r)})}function Hv(e){let t=Rv(),[n,r]=(0,X.useState)(e?.formId),[i,a]=(0,X.useState)(()=>new yv({...e,formId:e?.formId??t}));if(n!==e?.formId){let n=e?.formId??t;a(new yv({...e,formId:n})),r(n)}let o=(0,X.useMemo)(()=>{let e={...i,handleSubmit:((...e)=>i._handleSubmit(...e)),get formId(){return i._formId},get state(){return i.store.state}};return e.Field=function(e){return(0,Y.jsx)(Fv,{...e,form:i})},e.FormGroup=function(e){return(0,Y.jsx)(Bv,{...e,form:i})},e.Subscribe=function(e){return(0,Y.jsx)(Vv,{form:i,selector:e.selector,children:e.children})},e},[i]);Nv(i.mount,[]),Nv(()=>{i.update(e)});let s=(0,X.useRef)(!1);return Nv(()=>{s.current&&e?.transform&&Mv(i,e.transform)},[i,e?.transform]),Nv(()=>{s.current=!0}),o}var Uv=(0,X.lazy)(()=>De(()=>import(`./AnimatedNBLogo-BOmDz0Kx.js`).then(e=>({default:e.AnimatedNBLogo})),__vite__mapDeps([0,1,2,3,4,5]))),Wv=/^npub1[02-9ac-hj-np-z]+$/i,Gv=/^[^\s@]+@[^\s@]+\.[^\s@]+$/,Kv=Array.from({length:6},(e,t)=>t);function qv({caption:e=Ol(),onCancel:t}){return(0,Y.jsx)(`div`,{role:`status`,"aria-live":`polite`,"aria-label":e,className:`fixed inset-0 z-50 grid place-items-center bg-(--bg-base)/85 backdrop-blur-sm`,children:(0,Y.jsxs)(`div`,{className:`grid w-64 justify-items-center gap-5 rounded-2xl border border-(--line) bg-(--surface-strong) p-8 shadow-2xl`,children:[(0,Y.jsx)(X.Suspense,{fallback:(0,Y.jsx)(`div`,{className:`h-8 w-32`}),children:(0,Y.jsx)(Uv,{className:`w-32`})}),(0,Y.jsx)(`p`,{className:`m-0 text-sm font-semibold text-(--sea-ink)`,children:e}),(0,Y.jsx)(`div`,{className:`relative h-1.5 w-full overflow-hidden rounded-full bg-(--chip-bg)`,children:(0,Y.jsx)(`div`,{className:`media-shimmer`})}),t&&(0,Y.jsx)(d,{type:`button`,variant:`ghost`,onClick:t,className:`h-auto p-0 text-xs font-normal text-(--lagoon) hover:text-(--lagoon) hover:underline hover:before:bg-transparent`,children:ce()})]})})}var Jv={stage:`idle`,sentToNpub:``,code:``,expiresAt:null,error:null};function Yv(e,t){switch(t.type){case`editCode`:return{...e,code:t.value};case`codeSent`:return{...Jv,stage:`sent`,sentToNpub:t.npub,expiresAt:t.expiresAt};case`expired`:return{...e,stage:`idle`,expiresAt:null,error:hn()};case`reset`:return Jv;case`clearError`:return{...e,error:null};case`failed`:return{...e,stage:t.stage,error:t.error}}}function Xv(e){let t=(0,P_.c)(34),{getNpub:n,onAuthenticated:r,autoVerify:i,addAccount:a}=e,o=ee(),s=_(),[c,l]=(0,X.useReducer)(Yv,i,$v),[u,f]=(0,X.useState)(0),[p,m]=(0,X.useState)(!1),h=c.error!=null;h!==p&&(m(h),h&&f(Qv));let g;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(g=function(e,t){let n=e instanceof O?e.status:0;if(n===404){window.location.href=`/plans`;return}if(n===403){l({type:`failed`,stage:`idle`,error:Yu()});return}if(n===401){l({type:`failed`,stage:t?`idle`:`sent`,error:t?Sc():An()});return}l({type:`failed`,stage:`idle`,error:Di()})},t[0]=g):g=t[0];let v=g,y;t[1]!==a||t[2]!==r||t[3]!==s?(y=async function(e,t,n){l({type:`clearError`});try{await s.mutateAsync({npub:e,code:t,addAccount:a}),r()}catch(e){v(e,n)}},t[1]=a,t[2]=r,t[3]=s,t[4]=y):y=t[4];let b=y,x;t[5]!==a||t[6]!==n||t[7]!==o?(x=async function(){let e=n().trim();if(!Wv.test(e)){l({type:`failed`,stage:`idle`,error:To()});return}l({type:`clearError`});try{let t=await o.mutateAsync({npub:e,addAccount:a});l({type:`codeSent`,npub:e,expiresAt:t.expiresAt})}catch{l({type:`failed`,stage:`idle`,error:Hi()})}},t[5]=a,t[6]=n,t[7]=o,t[8]=x):x=t[8];let S=x,C;t[9]!==S||t[10]!==o||t[11]!==c.stage?(C=c.stage===`idle`&&(0,Y.jsx)(d,{type:`button`,variant:`soft`,onClick:()=>void S(),disabled:o.isPending,className:`rounded-lg`,children:o.isPending?Mf():iu()}),t[9]=S,t[10]=o,t[11]=c.stage,t[12]=C):C=t[12];let w;t[13]!==i||t[14]!==b||t[15]!==c.stage||t[16]!==s?(w=c.stage===`confirm`&&i&&(0,Y.jsxs)(`div`,{className:`grid gap-2 rounded-lg border border-(--chip-line) bg-(--chip-bg) p-3`,children:[(0,Y.jsx)(`p`,{className:`m-0 text-xs text-(--sea-ink-soft)`,children:fi({npub:Pe(i.npub,{prefix:12,suffix:4,threshold:18})})}),(0,Y.jsxs)(d,{type:`button`,variant:`primary`,onClick:()=>void b(i.npub,i.code,!0),disabled:s.isPending,className:`rounded-lg`,children:[s.isPending&&(0,Y.jsx)(D,{variant:`circular`,currentColor:!0,"aria-hidden":!0,
2className:`text-base`}),s.isPending?Wm():pl()]})]}),t[13]=i,t[14]=b,t[15]=c.stage,t[16]=s,t[17]=w):w=t[17];let T;t[18]!==b||t[19]!==u||t[20]!==c.code||t[21]!==c.error||t[22]!==c.expiresAt||t[23]!==c.sentToNpub||t[24]!==c.stage||t[25]!==s?(T=c.stage===`sent`&&(0,Y.jsxs)(`div`,{className:`grid gap-2 rounded-lg border border-(--chip-line) bg-(--chip-bg) p-3`,children:[(0,Y.jsx)(`p`,{className:`m-0 text-xs text-(--sea-ink-soft)`,children:ra({npub:Pe(c.sentToNpub,{prefix:12,suffix:4,threshold:18})})}),(0,Y.jsx)(Ne,{inputSize:`md`,type:`text`,value:c.code,onChange:e=>{l({type:`editCode`,value:e.target.value})},onKeyDown:e=>{e.key===`Enter`&&c.code.trim()!==``&&(e.preventDefault(),b(c.sentToNpub,c.code.trim(),!1))},autoComplete:`one-time-code`,placeholder:n_(),"aria-label":Zr(),className:c.error?`animate-shake`:void 0},u),(0,Y.jsx)(d,{type:`button`,variant:`primary`,onClick:()=>void b(c.sentToNpub,c.code.trim(),!1),disabled:s.isPending||c.code.trim()===``,className:`rounded-lg`,children:s.isPending?__():(0,Y.jsx)(he,{expiresAt:c.expiresAt,onExpire:()=>l({type:`expired`}),label:Zv,idle:Xh()})}),(0,Y.jsx)(d,{type:`button`,variant:`ghost`,onClick:()=>{l({type:`reset`})},className:`h-auto justify-self-start p-0 text-xs font-normal text-(--lagoon) hover:text-(--lagoon) hover:underline hover:before:bg-transparent`,children:Vg()})]}),t[18]=b,t[19]=u,t[20]=c.code,t[21]=c.error,t[22]=c.expiresAt,t[23]=c.sentToNpub,t[24]=c.stage,t[25]=s,t[26]=T):T=t[26];let E;t[27]===c.error?E=t[28]:(E=c.error&&(0,Y.jsx)(`p`,{role:`alert`,className:`m-0 text-xs text-(--danger)`,children:c.error}),t[27]=c.error,t[28]=E);let te;return t[29]!==C||t[30]!==w||t[31]!==T||t[32]!==E?(te=(0,Y.jsxs)(`div`,{className:`grid gap-2`,children:[C,w,T,E]}),t[29]=C,t[30]=w,t[31]=T,t[32]=E,t[33]=te):te=t[33],te}function Zv(e){return`${Xh()} (${e})`}function Qv(e){return e+1}function $v(e){return e?{...Jv,stage:`confirm`}:Jv}var ey={stage:`idle`,sentToEmail:``,code:``,expiresAt:null,error:null};function ty(e,t){switch(t.type){case`editCode`:return{...e,code:t.value};case`codeSent`:return{...ey,stage:`sent`,sentToEmail:t.email,expiresAt:t.expiresAt};case`expired`:return{...e,stage:`idle`,expiresAt:null,error:hn()};case`reset`:return ey;case`clearError`:return{...e,error:null};case`failed`:return{...e,stage:t.stage,error:t.error}}}function ny(e){let t=(0,P_.c)(27),{getEmail:n,onAuthenticated:r,addAccount:i}=e,a=b(),o=h(),[s,c]=(0,X.useReducer)(ty,ey),[l,u]=(0,X.useState)(0),[f,p]=(0,X.useState)(!1),m=s.error!=null;m!==f&&(p(m),m&&u(ay));let g;t[0]!==n||t[1]!==a?(g=async function(){let e=n().trim().toLowerCase();if(!Gv.test(e)){c({type:`failed`,stage:`idle`,error:lo()});return}c({type:`clearError`});try{let t=await a.mutateAsync({email:e});c({type:`codeSent`,email:e,expiresAt:t.expiresAt})}catch(e){let t=e;c({type:`failed`,stage:`idle`,error:t instanceof O&&t.status===400?ne():Na()})}},t[0]=n,t[1]=a,t[2]=g):g=t[2];let _=g,v;t[3]!==i||t[4]!==r||t[5]!==s.sentToEmail||t[6]!==o?(v=async function(e){c({type:`clearError`});try{await o.mutateAsync({email:s.sentToEmail,code:e,addAccount:i}),r()}catch(e){let t=e,n=t instanceof O?t.status:0;c({type:`failed`,stage:n===429?`idle`:`sent`,error:n===429?hn():An()})}},t[3]=i,t[4]=r,t[5]=s.sentToEmail,t[6]=o,t[7]=v):v=t[7];let y=v,x;t[8]!==_||t[9]!==a||t[10]!==s.stage?(x=s.stage===`idle`&&(0,Y.jsx)(d,{type:`button`,variant:`soft`,onClick:()=>void _(),disabled:a.isPending,className:`rounded-lg`,children:a.isPending?qf():yu()}),t[8]=_,t[9]=a,t[10]=s.stage,t[11]=x):x=t[11];let S;t[12]!==y||t[13]!==l||t[14]!==s.code||t[15]!==s.error||t[16]!==s.expiresAt||t[17]!==s.sentToEmail||t[18]!==s.stage||t[19]!==o?(S=s.stage===`sent`&&(0,Y.jsxs)(`div`,{className:`grid gap-2 rounded-lg border border-(--chip-line) bg-(--chip-bg) p-3`,children:[(0,Y.jsx)(`p`,{className:`m-0 wrap-anywhere text-xs text-(--sea-ink-soft)`,children:Ja({email:s.sentToEmail})}),(0,Y.jsxs)(k,{className:`w-fit justify-self-center`,children:[(0,Y.jsx)(Me,{className:`sr-only`,children:va()}),(0,Y.jsx)(Se,{size:`sm`,length:6,value:s.code,onValueChange:e=>{c({type:`editCode`,value:e})},onValueComplete:e=>{o.isPending||y(e)},onKeyDown:e=>{e.key===`Enter`&&s.code.length===6&&!o.isPending&&(e.preventDefault(),y(s.code))},className:`flex-wrap justify-center ${s.error?`animate-shake`:``}`,children:Kv.map(iy)},l)]}),(0,Y.jsx)(d,{type:`button`,variant:`primary`,onClick:()=>void y(s.code),disabled:o.isPending||s.code.length!==6,className:`rounded-lg`,children:o.isPending?__():(0,Y.jsx)(he,{expiresAt:s.expiresAt,onExpire:()=>c({type:`expired`}),label:ry,idle:Xh()})}),(0,Y.jsx)(d,{type:`button`,variant:`ghost`,onClick:()=>{c({type:`reset`})},className:`h-auto justify-self-start p-0 text-xs font-normal text-(--lagoon) hover:text-(--lagoon) hover:underline hover:before:bg-transparent`,children:Eg()})]}),t[12]=y,t[13]=l,t[14]=s.code,t[15]=s.error,t[16]=s.expiresAt,t[17]=s.sentToEmail,t[18]=s.stage,t[19]=o,t[20]=S):S=t[20];let C;t[21]===s.error?C=t[22]:(C=s.error&&(0,Y.jsx)(`p`,{role:`alert`,className:`m-0 text-xs text-(--danger)`,children:s.error}),t[21]=s.error,t[22]=C);let w;return t[23]!==x||t[24]!==S||t[25]!==C?(w=(0,Y.jsxs)(`div`,{className:`grid gap-2`,children:[x,S,C]}),t[23]=x,t[24]=S,t[25]=C,t[26]=w):w=t[26],w}function ry(e){return`${Xh()} (${e})`}function iy(e){return(0,Y.jsx)(be,{"aria-label":e===0?void 0:ye({index:e+1,total:6})},e)}function ay(e){return e+1}function oy(e){let t=(0,P_.c)(2),{reason:n}=e,r;return t[0]===n?r=t[1]:(r=(0,Y.jsx)(`div`,{role:`status`,className:`grid gap-1 rounded-lg border border-(--chip-line) bg-(--chip-bg) px-3 py-2 text-sm`,children:n===`revoked`?(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsx)(`span`,{className:`font-semibold text-(--sea-ink)`,children:fe()}),(0,Y.jsx)(`span`,{className:`text-(--sea-ink-soft)`,children:Rp()})]}):(0,Y.jsx)(`span`,{className:`text-(--sea-ink-soft)`,children:q()})}),t[0]=n,t[1]=r),r}function sy(e){let t=(0,P_.c)(97),{user:n,accounts:r}
2=e,a=c(),o=Fe.useSearch(),s=g(),l=w(),f=te(),p=ae(),m;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(m=Ae(),t[0]=m):m=t[0];let h=n!==null,_;t[1]===h?_=t[2]:(_={...m,enabled:h},t[1]=h,t[2]=_);let{data:v}=i(_),[b,x]=(0,X.useState)(!1),[S,C]=(0,X.useState)(!1),[T,ee]=(0,X.useState)(!1),[E,ne]=(0,X.useState)(!1),[re,ce]=(0,X.useState)(null),[he,_e]=(0,X.useState)(null),ve;t[3]!==v||t[4]!==n?.displayName?(ve=v?je(v):n?.displayName?.trim()||null,t[3]=v,t[4]=n?.displayName,t[5]=ve):ve=t[5];let ye=ve,be=v?.npub||n?.npub,Se=v?.pfpUrl??null,we;t[6]===n?we=t[7]:(we=n?ge({id:n.userId}):``,t[6]=n,t[7]=we);let Ee=we,De;t[8]!==ye||t[9]!==be||t[10]!==Ee?(De=ye||(be?Pe(be,{prefix:12,suffix:4,threshold:18}):Ee),t[8]=ye,t[9]=be,t[10]=Ee,t[11]=De):De=t[11];let Oe=De,ke=!!(be&&ye),O;t[12]!==r||t[13]!==n?(O=n?r.filter(cy):r,t[12]=r,t[13]=n,t[14]=O):O=t[14];let Me=O,k=b||S||E||re!==null,Ne;t[15]===a?Ne=t[16]:(Ne=async function(){ne(!0);try{await a({to:`/`})}catch{ne(!1)}},t[15]=a,t[16]=Ne);let A=Ne,Ie;t[17]===a?Ie=t[18]:(Ie=()=>void a({to:`/login`,search:{add:!0}}),t[17]=a,t[18]=Ie);let Le=Ie,Re;t[19]!==f||t[20]!==p?(Re=function(e){return ce(e),_e(null),pe(p.mutateAsync,e,{onSwitched:()=>f.disconnectBunker(),onOtherError:e=>{ce(null),_e(e)}})},t[19]=f,t[20]=p,t[21]=Re):Re=t[21];let ze=Re,Be;t[22]!==s||t[23]!==f?(Be=async function(){x(!0);try{await s.mutateAsync({}),await f.disconnectBunker(),y()}catch{}window.location.replace(`/login`)},t[22]=s,t[23]=f,t[24]=Be):Be=t[24];let Ve=Be,j;t[25]!==l||t[26]!==f?(j=async function(){C(!0);try{await l.mutateAsync(),await f.disconnectBunker(),y()}catch{}window.location.replace(`/login`)},t[25]=l,t[26]=f,t[27]=j):j=t[27];let He=j,M=null;if(re!==null){let e;t[28]===Symbol.for(`react.memo_cache_sentinel`)?(e=se(),t[28]=e):e=t[28],M=e}else if(b||S){let e;t[29]===Symbol.for(`react.memo_cache_sentinel`)?(e=ah(),t[29]=e):e=t[29],M=e}else if(E){let e;t[30]===Symbol.for(`react.memo_cache_sentinel`)?(e=Qc(),t[30]=e):e=t[30],M=e}let N;t[31]===M?N=t[32]:(N=M!==null&&(0,Y.jsx)(qv,{caption:M}),t[31]=M,t[32]=N);let P;t[33]===Symbol.for(`react.memo_cache_sentinel`)?(P=(0,Y.jsx)(u,{}),t[33]=P):P=t[33];let F;t[34]===Symbol.for(`react.memo_cache_sentinel`)?(F=(0,Y.jsx)(`h1`,{className:`m-0 text-2xl font-semibold text-(--sea-ink)`,children:dg()}),t[34]=F):F=t[34];let Ue;t[35]===Symbol.for(`react.memo_cache_sentinel`)?(Ue=(0,Y.jsxs)(`header`,{className:`flex items-center gap-3`,children:[P,F,(0,Y.jsx)(`div`,{className:`ml-auto`,children:(0,Y.jsx)(ie,{})})]}),t[35]=Ue):Ue=t[35];let I;t[36]===o.reason?I=t[37]:(I=o.reason&&(0,Y.jsx)(oy,{reason:o.reason}),t[36]=o.reason,t[37]=I);let We;t[38]!==k||t[39]!==A||t[40]!==Oe||t[41]!==E||t[42]!==be||t[43]!==Se||t[44]!==ke||t[45]!==n?(We=n?(0,Y.jsxs)(`div`,{className:`grid gap-4`,children:[(0,Y.jsxs)(`div`,{className:`flex items-start gap-3`,children:[(0,Y.jsx)(xe,{url:Se,name:Oe,alt:Oe,className:`size-12`}),(0,Y.jsxs)(`div`,{className:`grid min-w-0 flex-1 gap-1`,children:[(0,Y.jsx)(`span`,{className:`text-xs font-semibold tracking-wide text-(--sea-ink-soft) uppercase`,children:Ct()}),(0,Y.jsx)(`span`,{className:`truncate text-base font-semibold text-(--sea-ink)`,children:Oe}),ke&&(0,Y.jsx)(`span`,{className:`truncate font-mono text-xs text-(--sea-ink-soft)`,children:Pe(be,{prefix:12,suffix:4,threshold:18})})]})]}),(0,Y.jsxs)(d,{type:`button`,variant:`primary`,onClick:()=>void A(),disabled:k,className:`rounded-lg`,children:[E&&(0,Y.jsx)(D,{variant:`circular`,currentColor:!0,"aria-hidden":!0,className:`text-base`}),E?Lc():Gn()]})]}):(0,Y.jsx)(`span`,{className:`text-xs font-semibold tracking-wide text-(--sea-ink-soft) uppercase`,children:$t()}),t[38]=k,t[39]=A,t[40]=Oe,t[41]=E,t[42]=be,t[43]=Se,t[44]=ke,t[45]=n,t[46]=We):We=t[46];let L;t[47]!==k||t[48]!==Le||t[49]!==Me||t[50]!==ze||t[51]!==re?(L=Me.length>0&&(0,Y.jsx)(`div`,{className:`grid gap-2`,children:Me.map(e=>{let t=e.npub?Pe(e.npub,{prefix:12,suffix:4,threshold:18}):null,n=e.name?.trim()||null,r=n??t??(e.expired?fe():ge({id:e.userId}));return(0,Y.jsxs)(`button`,{type:`button`,onClick:e.expired?Le:()=>void ze(e.uuid),disabled:k,className:`flex w-full items-center gap-3 rounded-lg border border-(--chip-line) bg-transparent p-3 text-left transition hover:bg-(--link-bg-hover) disabled:opacity-60`,children:[(0,Y.jsx)(xe,{url:e.pfpUrl,name:r,alt:``,className:`size-9 shrink-0 ${e.expired?`op
2acity-50`:``}`}),(0,Y.jsxs)(`span`,{className:`grid min-w-0 flex-1 grid-cols-1 gap-0.5`,children:[(0,Y.jsx)(`span`,{className:`truncate text-sm font-semibold ${e.expired?`text-(--sea-ink-soft)`:`text-(--sea-ink)`}`,children:r}),n&&t&&(0,Y.jsx)(`span`,{className:`truncate font-mono text-xs text-(--sea-ink-soft)`,children:t}),e.expired&&(0,Y.jsx)(`span`,{className:`text-xs text-(--sea-ink-soft)`,children:fe()})]}),re===e.uuid?(0,Y.jsx)(D,{variant:`circular`,currentColor:!0,"aria-hidden":!0,className:`shrink-0 text-base`}):(0,Y.jsx)(Te,{className:`size-4 shrink-0 text-(--sea-ink-soft)`})]},e.uuid)})}),t[47]=k,t[48]=Le,t[49]=Me,t[50]=ze,t[51]=re,t[52]=L):L=t[52];let R;t[53]===he?R=t[54]:(R=he&&(0,Y.jsx)(`p`,{className:`m-0 text-xs text-(--danger)`,role:`alert`,children:he}),t[53]=he,t[54]=R);let z;t[55]===Symbol.for(`react.memo_cache_sentinel`)?(z=ct(),t[55]=z):z=t[55];let B;t[56]!==k||t[57]!==Le?(B=(0,Y.jsx)(d,{type:`button`,variant:`outline`,onClick:Le,disabled:k,className:`h-auto min-h-10 whitespace-normal rounded-lg py-2`,children:z}),t[56]=k,t[57]=Le,t[58]=B):B=t[58];let V;t[59]!==k||t[60]!==Ve||t[61]!==b||t[62]!==n?(V=n&&(0,Y.jsxs)(d,{type:`button`,variant:`outline`,onClick:()=>void Ve(),disabled:k,className:`h-auto min-h-10 whitespace-normal rounded-lg py-2`,children:[b&&(0,Y.jsx)(D,{variant:`circular`,currentColor:!0,"aria-hidden":!0,className:`text-base`}),b?km():cp()]}),t[59]=k,t[60]=Ve,t[61]=b,t[62]=n,t[63]=V):V=t[63];let H;t[64]!==r.length||t[65]!==k||t[66]!==S||t[67]!==n?(H=(r.length>1||!n&&r.length>0)&&(0,Y.jsxs)(d,{type:`button`,variant:`ghost`,onClick:()=>{ee(!0)},disabled:k,className:`h-auto min-h-10 whitespace-normal py-2 text-xs font-normal text-(--sea-ink-soft)`,children:[S&&(0,Y.jsx)(D,{variant:`circular`,currentColor:!0,"aria-hidden":!0,className:`text-base`}),S?km():ue()]}),t[64]=r.length,t[65]=k,t[66]=S,t[67]=n,t[68]=H):H=t[68];let Ge;t[69]!==B||t[70]!==V||t[71]!==H?(Ge=(0,Y.jsxs)(`div`,{className:`flex flex-col gap-2`,children:[B,V,H]}),t[69]=B,t[70]=V,t[71]=H,t[72]=Ge):Ge=t[72];let U;t[73]!==We||t[74]!==L||t[75]!==R||t[76]!==Ge?(U=(0,Y.jsxs)(`div`,{className:`grid gap-4 rounded-lg border border-(--chip-line) bg-(--chip-bg) p-4`,children:[We,L,R,Ge]}),t[73]=We,t[74]=L,t[75]=R,t[76]=Ge,t[77]=U):U=t[77];let W;t[78]===S?W=t[79]:(W=()=>{S||ee(!1)},t[78]=S,t[79]=W);let G;t[80]===He?G=t[81]:(G=()=>void He(),t[80]=He,t[81]=G);let Ke,qe,Je,K;t[82]===Symbol.for(`react.memo_cache_sentinel`)?(Ke=ue(),qe=le(),Je=me(),K=oe(),t[82]=Ke,t[83]=qe,t[84]=Je,t[85]=K):(Ke=t[82],qe=t[83],Je=t[84],K=t[85]);let q;t[86]!==T||t[87]!==S||t[88]!==W||t[89]!==G?(q=(0,Y.jsx)(Ce,{open:T,onCancel:W,onConfirm:G,title:Ke,message:qe,confirmLabel:Je,cancelLabel:K,confirmIcon:de,pending:S}),t[86]=T,t[87]=S,t[88]=W,t[89]=G,t[90]=q):q=t[90];let Ye;t[91]===Symbol.for(`react.memo_cache_sentinel`)?(Ye=(0,Y.jsx)(`p`,{className:`m-0 text-center text-xs text-(--sea-ink-soft)`,children:Cp()}),t[91]=Ye):Ye=t[91];let J;return t[92]!==N||t[93]!==I||t[94]!==U||t[95]!==q?(J=(0,Y.jsxs)(`div`,{className:`mx-auto grid w-full max-w-md gap-4 px-4 py-10`,children:[N,Ue,I,U,q,Ye]}),t[92]=N,t[93]=I,t[94]=U,t[95]=q,t[96]=J):J=t[96],J}function cy(e){return!e.isActive}function ly(){let e=(0,P_.c)(106),t=c(),n=Fe.useSearch(),{currentUser:i,rememberedAccounts:a,bunkerLoginEnabled:o}=Fe.useRouteContext(),s=te(),[l,f]=(0,X.useState)(!1),p=S(),m=x(),h=v(),[g,_]=(0,X.useState)(null),[b,w]=(0,X.useState)(!0),[ee,ne]=(0,X.useState)(!1),[ae,oe]=(0,X.useState)(!1),se=(0,X.useRef)(null),[ce,le]=(0,X.useState)(!1),ue=(0,X.useRef)(null),de,fe;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(de=()=>()=>{ue.current!==null&&clearTimeout(ue.current)},fe=[],e[0]=de,e[1]=fe):(de=e[0],fe=e[1]),(0,X.useEffect)(de,fe);let pe=(0,X.useRef)(null),me,he;e[2]===ce?(me=e[3],he=e[4]):(me=()=>{if(!ce)return;let e=pe.current;e&&(e.classList.remove(`animate-shake`),e.classList.add(`animate-shake`))},he=[ce],e[2]=ce,e[3]=me,e[4]=he),(0,X.useEffect)(me,he);let[ge,ye]=(0,X.useState)(0),[be,xe]=(0,X.useState)(!1);p.isError!==be&&(xe(p.isError),p.isError&&ye(fy));let Se;e[5]!==n.c||e[6]!==n.n?(Se=()=>n.n&&n.c?{npub:n.n,code:n.c}:void 0,e[5]=n.c,e[6]=n.n,e[7]=Se):Se=e[7];let[Ce]=(0,X.useState)(Se),D=n.add===!0,Te=D&&!Ce&&(i!==null||a.length>0),De,O;
2e[8]!==D||e[9]!==t||e[10]!==n.c||e[11]!==n.n?(De=()=>{(n.n!=null||n.c!=null)&&t({to:`/login`,search:D?{add:!0}:{},replace:!0})},O=[n.n,n.c,D,t],e[8]=D,e[9]=t,e[10]=n.c,e[11]=n.n,e[12]=De,e[13]=O):(De=e[12],O=e[13]),(0,X.useEffect)(De,O);let Ae;e[14]===Symbol.for(`react.memo_cache_sentinel`)?(Ae=Oe({npub:ke().refine(dy,{message:js()}),password:ke().min(1,_f())}),e[14]=Ae):Ae=e[14];let je=Ae,Me,k;e[15]===Symbol.for(`react.memo_cache_sentinel`)?(Me={npub:``,password:``},k={onChange:je},e[15]=Me,e[16]=k):(Me=e[15],k=e[16]);let Pe;e[17]!==D||e[18]!==p||e[19]!==t?(Pe={defaultValues:Me,validators:k,onSubmit:async e=>{let{value:n}=e;_(null),ne(!0),oe(!1);try{await p.mutateAsync({identifier:n.npub.trim(),password:n.password,addAccount:D}),y(),await t({to:`/`})}catch(e){let t=e;ne(!1),_(t instanceof Error?t.message:Ul())}}},e[17]=D,e[18]=p,e[19]=t,e[20]=Pe):Pe=e[20];let A=Hv(Pe),Ie;e[21]!==D||e[22]!==m||e[23]!==t||e[24]!==s||e[25]!==h?(Ie=async function(){s.kind===`bunker`&&await s.disconnectBunker(),_(null),ne(!0);let e=new AbortController;se.current=e,oe(!0);try{let n=await m.mutateAsync(),r=await s.signEvent({kind:E.AUTH_EVENT_KIND,created_at:Math.floor(Date.now()/1e3),tags:[[E.CHALLENGE_TAG,n.nonce],[E.URL_TAG,E.EXPECTED_URL_TAG]],content:``},{signal:e.signal});await h.mutateAsync({event:r,challengeToken:n.token,addAccount:D}),y(),await t({to:`/`})}catch(e){let t=e;ne(!1),t instanceof DOMException&&(t.name===`AbortError`||t.name===`TimeoutError`)?t.name===`TimeoutError`&&_(Bo()):t instanceof Error&&t.message===`No Nostr extension available`?_(sc()):_(C(t))}se.current===e&&(se.current=null,oe(!1))},e[21]=D,e[22]=m,e[23]=t,e[24]=s,e[25]=h,e[26]=Ie):Ie=e[26];let Le=Ie,Re;e[27]===Symbol.for(`react.memo_cache_sentinel`)?(Re=function(){se.current?.abort(),se.current=null,oe(!1),ne(!1)},e[27]=Re):Re=e[27];let ze=Re,Be;e[28]===t?Be=e[29]:(Be=()=>{ne(!0),oe(!1),y(),t({to:`/`})},e[28]=t,e[29]=Be);let Ve=Be,j;e[30]!==ee||e[31]!==ae?(j=ee&&(0,Y.jsx)(qv,{onCancel:ae?ze:void 0}),e[30]=ee,e[31]=ae,e[32]=j):j=e[32];let He;e[33]===Symbol.for(`react.memo_cache_sentinel`)?(He=(0,Y.jsx)(u,{}),e[33]=He):He=e[33];let M;e[34]===Symbol.for(`react.memo_cache_sentinel`)?(M=(0,Y.jsx)(`h1`,{className:`m-0 text-2xl font-semibold text-(--sea-ink)`,children:dg()}),e[34]=M):M=e[34];let N;e[35]===Symbol.for(`react.memo_cache_sentinel`)?(N=(0,Y.jsxs)(`header`,{className:`flex items-center gap-3`,children:[He,M,(0,Y.jsx)(`div`,{className:`ml-auto`,children:(0,Y.jsx)(ie,{})})]}),e[35]=N):N=e[35];let P;e[36]!==Te||e[37]!==t?(P=Te&&(0,Y.jsxs)(d,{type:`button`,variant:`ghost`,onClick:()=>void t({to:`/login`,search:{},replace:!0}),className:`h-auto justify-self-start p-0 text-start text-xs font-normal whitespace-normal text-(--lagoon) hover:text-(--lagoon) hover:underline hover:before:bg-transparent`,children:[(0,Y.jsx)(we,{"aria-hidden":!0,className:`size-4 shrink-0`}),Rt()]}),e[36]=Te,e[37]=t,e[38]=P):P=e[38];let F;e[39]===n.reason?F=e[40]:(F=n.reason&&(0,Y.jsx)(oy,{reason:n.reason}),e[39]=n.reason,e[40]=F);let Ue;e[41]===Symbol.for(`react.memo_cache_sentinel`)?(Ue=(0,Y.jsxs)(`span`,{className:`flex items-center justify-center gap-2 text-base font-bold text-white`,children:[(0,Y.jsx)(N_,{className:`size-5`,strokeWidth:1.8}),or()]}),e[41]=Ue):Ue=e[41];let I;e[42]===Symbol.for(`react.memo_cache_sentinel`)?(I=(0,Y.jsxs)(r,{to:`/plans`,className:`grid gap-0.5 rounded-xl bg-(--lagoon-deep) px-5 py-3 text-center no-underline shadow-lg ring-2 ring-(--lagoon) transition hover:brightness-110 focus:outline-none focus-visible:ring-4 focus-visible:ring-(--lagoon)`,children:[Ue,(0,Y.jsx)(`span`,{className:`text-xs font-medium text-white/80`,children:xr()})]}),e[42]=I):I=e[42];let L,R;e[43]===Symbol.for(`react.memo_cache_sentinel`)?(L=(0,Y.jsx)(r,{to:`/signup-email`,className:`justify-self-center text-xs text-(--sea-ink-soft) hover:text-(--lagoon) hover:underline`,children:bh()}),R=(0,Y.jsx)(R_,{}),e[43]=L,e[44]=R):(L=e[43],R=e[44]);let z;e[45]!==m||e[46]!==s.extensionAvailable||e[47]!==Le||e[48]!==h?(z=s.extensionAvailable&&(0,Y.jsx)(d,{type:`button`,variant:`soft`,onClick:()=>{Le()},disabled:m.isPending||h.isPending,className:`rounded-lg`,children:m.isPending||h.isPending?mm():Pu()}),e[45]=m,e[46]=s.extensionAvailable,e[47]=Le,e[48]=h,e[49]=z):z=e[49];let B;e[50]!==s.extensionAvailable||e[51]!==s.extensionStatus?(B=!s.extensionAvailable&&s.extensionStatus===`missing`&&(0,Y.jsxs)(`div`,{className:`grid gap-1`,children:[(0,Y.jsx)(`p`,{className:`m-0 text-xs text-(--sea-ink-soft)`,children:sc()}),(0,Y.jsx)(ve,{})]}),e[50]=s.extensionAvailable,e[51]=s.extensionStatus,e[52]=B):B=e[52];let V;e[53]!==D||e[54]!==o||e[55]!==l||e[56]!==t?(V=o&&(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsx)(d,{type:`button`,variant:`soft`,className:`rounded-lg`,onClick:()=>f(!0),children:We()}),(0,Y.jsx)(T,{open:l,onOpenChange:f,mode:`login`,addAccount:D,onLoggedIn:async()=>{f(!1),await t({to:`/`})}})]}),e[53]=D,e[54]=o,e[55]=l,e[56]=t,e[57]=V):V=e[57];let H;e[58]===Symbol.for(`react.memo_cache_sentinel`)?(H=(0,Y.jsx)(R_,{className:`flex-1`}),e[58]=H):H=e[58];let Ge;e[59]===Symbol.for(`react.memo_cache_sentinel`)?(Ge=(0,Y.jsxs)(`div`,{className:`flex items-center gap-2 text-(--sea-ink-soft)`,children:[H,(0,Y.jsx)(`span`,{className:`text-sm`,children:Bd()}),(0,Y.jsx)(R_,{className:`flex-1`})]}),e[59]=Ge):Ge=e[59];let U;
2e[60]===A?U=e[61]:(U=e=>{e.preventDefault(),A.handleSubmit()},e[60]=A,e[61]=U);let W;e[62]===ce?W=e[63]:(W=e=>{let t=e.state.meta.errors[0],n=null;if(t&&typeof t==`object`&&`message`in t){let e=t.message;n=typeof e==`string`?e:JSON.stringify(e)}else typeof t==`string`?n=t:t!=null&&(n=JSON.stringify(t));let r=t=>{if(t.toLowerCase().startsWith(`nsec1`)){e.handleChange(``),le(!0),ue.current!==null&&clearTimeout(ue.current),ue.current=setTimeout(()=>{le(!1),ue.current=null},5e3);return}ce&&le(!1),e.handleChange(t)};return(0,Y.jsxs)(`div`,{className:`grid gap-1`,children:[(0,Y.jsx)(Ne,{ref:pe,inputSize:`md`,type:`text`,value:e.state.value,onBlur:e.handleBlur,onChange:e=>{r(e.target.value)},autoComplete:`username`,autoCapitalize:`none`,autoCorrect:`off`,spellCheck:!1,inputMode:`email`,placeholder:Ks(),"aria-label":gs()}),n&&(0,Y.jsx)(`em`,{className:`text-xs text-(--danger) not-italic`,children:n}),ce&&(0,Y.jsx)(`em`,{role:`alert`,className:`text-xs text-(--danger) not-italic`,children:ud()})]})},e[62]=ce,e[63]=W);let G;e[64]!==A.Field||e[65]!==W?(G=(0,Y.jsx)(A.Field,{name:`npub`,children:W}),e[64]=A.Field,e[65]=W,e[66]=G):G=e[66];let Ke;e[67]!==p.isError||e[68]!==ge?(Ke=e=>{let t=e.state.meta.errors[0],n=null;if(t&&typeof t==`object`&&`message`in t){let e=t.message;n=typeof e==`string`?e:JSON.stringify(e)}else typeof t==`string`?n=t:t!=null&&(n=JSON.stringify(t));return(0,Y.jsxs)(`div`,{className:`grid gap-1`,children:[(0,Y.jsx)(Ne,{inputSize:`md`,type:`password`,value:e.state.value,onBlur:e.handleBlur,onChange:t=>{e.handleChange(t.target.value)},autoComplete:`current-password`,placeholder:_e(),"aria-label":tf(),className:p.isError?`animate-shake`:void 0},ge),n&&(0,Y.jsx)(`em`,{className:`text-xs text-(--danger) not-italic`,children:n})]})},e[67]=p.isError,e[68]=ge,e[69]=Ke):Ke=e[69];let qe;e[70]!==A.Field||e[71]!==Ke?(qe=(0,Y.jsx)(A.Field,{name:`password`,children:Ke}),e[70]=A.Field,e[71]=Ke,e[72]=qe):qe=e[72];let Je;e[73]===Symbol.for(`react.memo_cache_sentinel`)?(Je=(0,Y.jsx)(r,{to:`/forgot-password`,className:`justify-self-end text-xs text-(--sea-ink-soft) hover:text-(--lagoon) hover:underline`,children:ts()}),e[73]=Je):Je=e[73];let K;e[74]===p.isPending?K=e[75]:(K=p.isPending?$p():Fh(),e[74]=p.isPending,e[75]=K);let q;e[76]!==p.isPending||e[77]!==K?(q=(0,Y.jsx)(d,{type:`submit`,variant:`primary`,disabled:p.isPending,className:`rounded-lg`,children:K}),e[76]=p.isPending,e[77]=K,e[78]=q):q=e[78];let Ye;e[79]!==U||e[80]!==G||e[81]!==qe||e[82]!==q?(Ye=(0,Y.jsxs)(`form`,{onSubmit:U,className:`grid gap-3`,children:[G,qe,Je,q]}),e[79]=U,e[80]=G,e[81]=qe,e[82]=q,e[83]=Ye):Ye=e[83];let J;e[84]!==D||e[85]!==Ce||e[86]!==A.Subscribe||e[87]!==A.state.values.npub||e[88]!==Ve?(J=Ce?(0,Y.jsx)(Xv,{getNpub:()=>A.state.values.npub,onAuthenticated:Ve,autoVerify:Ce,addAccount:D}):(0,Y.jsx)(A.Subscribe,{selector:uy,children:e=>Gv.test((e??``).trim())?(0,Y.jsx)(ny,{getEmail:()=>A.state.values.npub,onAuthenticated:Ve,addAccount:D}):(0,Y.jsx)(Xv,{getNpub:()=>A.state.values.npub,onAuthenticated:Ve,addAccount:D})}),e[84]=D,e[85]=Ce,e[86]=A.Subscribe,e[87]=A.state.values.npub,e[88]=Ve,e[89]=J):J=e[89];let Xe;e[90]===g?Xe=e[91]:(Xe=g&&(0,Y.jsx)(`p`,{className:`m-0 text-sm text-(--danger)`,role:`alert`,children:g}),e[90]=g,e[91]=Xe);let Ze;e[92]===b?Ze=e[93]:(Ze=b&&(0,Y.jsxs)(`div`,{role:`note`,className:`relative flex items-start gap-3 rounded-lg border border-nborange-500/50 bg-nborange-500/10 p-3`,children:[(0,Y.jsx)(Ee,{className:`size-5 shrink-0`}),(0,Y.jsxs)(`div`,{className:`flex-1 text-sm`,children:[(0,Y.jsx)(`strong`,{className:`block text-(--sea-ink)`,children:M_()}),(0,Y.jsx)(`p`,{className:`m-0 text-(--sea-ink-soft)`,children:Td()})]}),(0,Y.jsx)(d,{type:`button`,variant:`ghost`,size:`icon-sm`,onClick:()=>{w(!1)},"aria-label":Ir(),className:`size-6 rounded-md text-(--sea-ink-soft) hover:text-(--sea-ink)`,children:`×`})]}),e[92]=b,e[93]=Ze);let Qe;e[94]===Symbol.for(`react.memo_cache_sentinel`)?(Qe=(0,Y.jsx)(re,{action:`continue`,className:`pt-1`}),e[94]=Qe):Qe=e[94];let $e;return e[95]!==j||e[96]!==P||e[97]!==F||e[98]!==z||e[99]!==B||e[100]!==V||e[101]!==Ye||e[102]!==J||e[103]!==Xe||e[104]!==Ze?($e=(0,Y.jsxs)(`div`,{className:`mx-auto grid w-full max-w-md gap-4 px-4 py-10`,children:[j,N,P,F,I,L,R,z,B,V,Ge,Ye,J,Xe,Ze,Qe]}),e[95]=j,e[96]=P,e[97]=F,e[98]=z,e[99]=B,e[100]=V,e[101]=Ye,e[102]=J,e[103]=Xe,e[104]=Ze,e[105]=$e):$e=e[105],$e}function uy(e){return e.values.npub}function dy(e){return Wv.test(e.trim())||Gv.test(e.trim())}function fy(e){return e+1}function py(){let e=(0,P_.c)(7),t=Fe.useSearch(),{currentUser:n,rememberedAccounts:r}=Fe.useRouteContext(),i;e[0]!==t.c||e[1]!==t.n?(i=()=>!!(t.n&&t.c),e[0]=t.c,e[1]=t.n,e[2]=i):i=e[2];let[a]=(0,X.useState)(i);if(!t.add&&!a&&(n!==null||r.length>0)){let t;return e[3]!==n||e[4]!==r?(t=(0,Y.jsx)(sy,{user:n,accounts:r}),e[3]=n,e[4]=r,e[5]=t):t=e[5],t}let o;return e[6]===Symbol.for(`react.memo_cache_sentinel`)?(o=(0,Y.jsx)(ly,{}),e[6]=o):o=e[6],o}export{py as component};

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.